joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d7ea0
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, dword [ecx + 0x23c]
test ecx, ecx
je 0x4d7eaf
jmp fcn.004d68e0
ret 8

Function at 0x4dce60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x55a768
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6397d4]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push eax
push ecx
push edi
push edx
mov ecx, esi
call fcn.004dcda0
mov eax, dword [esi + 0xc]
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x1c], ecx
mov dword [esi], vtable.CQuestLimitKind_Level.0
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], ecx
jne 0x4dcee3
mov ecx, edi
call fcn.0054eef0
mov ebx, dword [sym.imp.MSVCR80.dll_atol]
push eax
call ebx
add esp, 4
mov ecx, edi
mov dword [esi + 0x10], eax
call fcn.0054eef0
push eax
call ebx
mov dword [esi + 0x14], eax
jmp 0x4dcf16
cmp eax, 1
jne 0x4dcefb
mov ecx, edi
call fcn.0054eef0
push eax
call dword [sym.imp.MSVCR80.dll_atol]
mov dword [esi + 0x14], eax
jmp 0x4dcf16
cmp eax, 4
je 0x4dcebe
cmp eax, 5
jne 0x4dcf19
mov ecx, edi
call fcn.0054eef0
push eax
call dword [sym.imp.MSVCR80.dll_atol]
mov dword [esi + 0x10], eax
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0x10

Function at 0x4de270
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x55a9a8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x6397d4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 8]
call fcn.0041fed0
mov eax, dword [esp + 0x3c]
cmp eax, 3
mov dword [esp + 0x30], 0
ja case.default.0x4de2b0
jmp dword [eax*4 + 0x4de36c]
mov ecx, dword [esp + 0x40]
lea eax, [esp + 8]
push eax
push ecx
mov ecx, 0x649790
call fcn.00498f60
jmp case.default.0x4de2b0
push 0
lea edx, [esp + 0xc]
push edx
push 0x59
jmp 0x4de2ec
push 0
lea eax, [esp + 0xc]
push eax
push 0x58
jmp 0x4de2ec
push 0
lea ecx, [esp + 0xc]
push ecx
push 0x5b
mov ecx, 0x648290
call fcn.00425560
mov edx, dword [esi + 0x27c]
mov ecx, dword [edx + 0x268]
mov edx, dword [esp + 0xc]
movzx eax, word [esp + 0x38]
mov ecx, dword [ecx + eax*8]
lea eax, [ecx + 0x1d4]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x10]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x14]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 0x10], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + 0x14], edx
mov edx, dword [esp + 0x20]
mov dword [eax + 0x18], edx
mov edx, dword [esp + 0x24]
mov dword [eax + 0x1c], edx
mov dword [ecx + 0x1f4], eax
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0xffffffff
call fcn.0041fee0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret 0xc
Function at 0x4df4f0
Capabilities:
Access peb ldr_data

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0xc]
push 0x562b08
push 0x566220
call fcn.0042bee0
fild dword [0x66a5c4]
mov esi, eax
mov eax, dword [0x66a5c4]
test eax, eax
jge 0x4357f1
fadd dword [0x562930]
movzx ecx, word [esi + 0x22c]
mov edx, dword [0x66a5c8]
test edx, edx
mov dword [esp + 0xc], ecx
fild dword [esp + 0xc]
fsubp st(1)
fsub qword [0x566218]
fstp dword [esp + 0x10]
fild dword [0x66a5c8]
jge 0x435822
fadd dword [0x562930]
mov ax, word [esi + 0x22e]
fmul qword [0x562ae8]
mov ebx, dword [esi]
shr ax, 1
movzx ecx, ax
mov dword [esp + 0xc], ecx
fild dword [esp + 0xc]
fsubp st(1)
fsub qword [0x566210]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
call fcn.00551860
fld dword [esp + 0x10]
push eax
call fcn.00551860
mov edx, dword [ebx + 0x24]
push eax
mov ecx, esi
call edx
mov ecx, dword [edi + 0x18]
push esi
call fcn.0054ea60
pop edi
mov dword [0x63af4c], esi
mov ecx, esi
pop esi
pop ebx
add esp, 0xc
jmp 0x4df4f0
push 0xffffffffffffffff
push 0x55aa48
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x6397d4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x60]
push 0x525
call edx
mov dword [esi + 0x260], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x60]
push 0x526
mov ecx, esi
call edx
lea ecx, [esp + 8]
mov dword [esi + 0x264], eax
call fcn.0041fed0
push 0
lea eax, [esp + 0xc]
push eax
push 0x3f
mov ecx, 0x648290
mov dword [esp + 0x3c], 0
call fcn.00425560
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0xffffffff
call fcn.0041fee0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret

Function at 0x4e11e0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4e12a2
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [esp + 0x2c]
push edx
push esi
call edi
test eax, eax
je 0x4e1235
cmp dword [esp + 0x20], 0x6060801
je 0x4e1245
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
push 0
lea eax, [esp + 0x10]
push eax
push 0xc
lea ecx, [esp + 0x1c]
push ecx
push esi
call edi
test eax, eax
push esi
je 0x4e1236
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx + 0x1c], 0
je 0x4e12a1
mov ecx, dword [0x648a5c]
test ecx, ecx
je 0x4e12a1
mov edx, dword [esp + 0x14]
push edx
call fcn.004857c0
mov eax, dword [esp + 0x10]
mov ecx, dword [0x648a5c]
push eax
call fcn.00484c00
fld dword [esp + 0x18]
push 0
push ecx
fstp dword [esp]
push 0
mov ecx, 0x66d8e8
call fcn.00530fa0
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x4e12b0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [0x648a5c]
sub esp, 0x14
test ecx, ecx
je 0x4e1344
push esi
call fcn.004857b0
fld dword [0x66d928]
mov edx, dword [esp + 0x1c]
push 0
push 0x80
push 2
push 0
mov dword [esp + 0x20], eax
mov eax, dword [0x648a5c]
mov cx, word [eax + 0x6f0]
fstp dword [esp + 0x24]
push 0
push 0x40000000
push edx
mov word [esp + 0x28], cx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4e1343
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [esp + 0x14]
push ecx
push esi
mov dword [esp + 0x1c], 0x6060801
call edi
push 0
lea edx, [esp + 0x10]
push edx
push 0xc
lea eax, [esp + 0x1c]
push eax
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
add esp, 0x14
ret 4
Function at 0x4e2030
Capabilities:
Create directory

Disassembly:
sub esp, 0x108
mov eax, dword [0x6397d4]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
mov ebx, dword [esp + 0x110]
test ebx, ebx
push esi
mov esi, ecx
je 0x4e2119
push ebp
push edi
push 0
mov ecx, 0x66e140
call fcn.0053dd50
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
lea eax, [esp + 0x14]
push str._sData
push eax
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0xc
push 0
lea ecx, [esp + 0x14]
push ecx
call ebp
mov edx, dword [esi + 0x18]
push edx
push 0
mov ecx, 0x66e140
call fcn.0053dd50
push eax
lea eax, [esp + 0x18]
push str._sData_d
push eax
call edi
add esp, 0x10
push 0
lea ecx, [esp + 0x14]
push ecx
call ebp
test bl, 1
je 0x4e20e5
mov eax, dword [esi + 0x18]
push eax
push eax
push 0
mov ecx, 0x66e140
call fcn.0053dd50
push eax
lea edx, [esp + 0x1c]
push str._sData_d_d.UII
push edx
call edi
add esp, 0x14
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.004e1a60
test bl, 2
je 0x4e2117
mov eax, dword [esi + 0x18]
push eax
push eax
push 0
mov ecx, 0x66e140
call fcn.0053dd50
push eax
lea ecx, [esp + 0x1c]
push str._sData_d_d.UIS
push ecx
call edi
add esp, 0x14
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.004e12b0
pop edi
pop ebp
mov ecx, dword [esp + 0x10c]
pop esi
pop ebx
xor ecx, esp
call fcn.0055160d
add esp, 0x108
ret 4
Function at 0x4f8be0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x6397d4]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x114]
push ebx
mov ebx, dword [esp + 0x110]
push ebp
mov ebp, dword [esp + 0x118]
push esi
mov esi, dword [esp + 0x124]
push edi
push 0xff
lea ecx, [esp + 0x18]
push ecx
push 0
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x14]
push 0x5c
push edx
call dword [sym.imp.MSVCR80.dll_strrchr]
mov byte [eax + 1], 0
mov eax, esi
add esp, 8
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4f8c42
lea edi, [esp + 0x14]
sub eax, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4f8c54
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x14]
push eax
push 0xff
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
push ecx
push 0
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0055160d
add esp, 0x108
ret
Function at 0x501d00
Capabilities:
Create directory

Disassembly:
sub esp, 0x210
mov eax, dword [0x6397d4]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x260]
mov ecx, dword [eax + 0x24]
lea esi, [edi + 0x260]
push esi
call ecx
test eax, eax
je 0x501d66
push 0x8ab
mov ecx, 0x64aa48
call fcn.004bcff0
push eax
push 0x17
push 0x64aa48
call fcn.004be450
add esp, 0xc
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0055160d
add esp, 0x210
ret
mov eax, dword [0x66b728]
mov dword [esp + 8], 0
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push 0x56f2f8
push eax
mov eax, dword [ecx + 0x138]
call eax
test eax, eax
je 0x501d4d
cmp dword [edi + 0x26c], 0
jne 0x501dd6
push str.bdcap32.dll
mov ecx, esi
call fcn.00501960
test eax, eax
jge 0x501db7
push 0xa0f
jmp 0x501d33
mov ecx, dword [esi]
mov edx, dword [ecx + 0xc]
push str.e5b68af6
push str.EYA_LUNAPLUS_20100218
push esi
call edx
cmp dword [edi + 0x26c], 0
je 0x501e9a
mov eax, dword [esi]
mov ecx, dword [eax + 0x44]
push 0x3c
push 0x1e
push esi
call ecx
mov ecx, edi
call fcn.00501b20
push 0
mov ecx, 0x66e140
call fcn.0053dd50
push eax
lea edx, [esp + 0x10]
push str._sScreenShot
push edx
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0xc
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x501e31
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x501e31
push 0x8ae
jmp 0x501d33
push 0x104
lea ecx, [esp + 0x114]
push ecx
push 0x56f454
push 0x56f44c
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.00501530
lea eax, [esp + 0x110]
push eax
push 0x971
mov ecx, 0x64aa48
call fcn.004bcff0
push eax
push 0x17
push 0x64aa48
call fcn.004be450
mov ecx, dword [esp + 0x18]
add esp, 0x10
push ecx
push 1
push 0
lea edx, [esp + 0x11c]
push edx
push esi
call fcn.00501610
test eax, eax
jl 0x501d4d
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.0055160d
add esp, 0x210
ret
Function at 0x5055e0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
xor ebx, ebx
cmp edi, ebx
mov esi, ecx
je 0x505707
push 0x562b08
push edi
call dword [sym.imp.MSVCR80.dll_fopen]
mov ecx, esi
add esp, 8
sub ecx, edi
mov dword [esi + 4], eax
mov eax, edi
lea edx, [ecx + 0x30]
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x505610
cmp dword [esi + 4], ebx
je 0x505707
mov eax, dword [esi + 0x28]
cmp eax, ebx
je 0x505638
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esi + 0x28], ebx
mov edx, dword [esi + 4]
mov edi, dword [sym.imp.MSVCR80.dll_fread]
push ebp
push edx
push 1
lea eax, [esi + 0x18]
push 0xc
push eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x2c], ebx
call edi
add esp, 0x10
lea ebx, [esi + 0x24]
mov ebp, 0x4d
mov edi, edi
mov eax, dword [esi + 4]
push eax
push 1
push 1
push ebx
call edi
add esp, 0x10
sub ebp, 1
jne 0x505660
mov eax, dword [esi + 0x20]
test eax, eax
je 0x505693
push eax
call fcn.00551608
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x20]
push ecx
push edx
push 1
push eax
mov dword [esi + 0x28], eax
call edi
add esp, 0x14
lea ebp, [esi + 0x25]
mov ebx, 0x4d
jmp 0x5056a0
mov eax, dword [esi + 4]
push eax
push 1
push 1
push ebp
call edi
add esp, 0x10
sub ebx, 1
jne 0x5056a0
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.MSVCR80.dll_fclose]
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x20]
add esp, 4
xor edi, edi
lea ecx, [eax + edx + 0x134653a]
cmp dword [esi + 0x18], ecx
mov dword [esi + 4], edi
pop ebp
jne 0x5056dc
cmp eax, edi
jne 0x50570f
mov eax, dword [esi + 0x28]
cmp eax, edi
je 0x5056ef
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esi + 0x28], edi
push edi
push str.Error__
push str.Header_Version_Error__
push edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x2c], edi
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
ret 4
mov ecx, esi
call fcn.00504e20
test eax, eax
je 0x505707
mov eax, 1
pop edi
mov dword [esi + 0x2c], eax
pop esi
pop ebx
ret 4
Function at 0x508dc0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x114
mov eax, dword [0x6397d4]
xor eax, esp
mov dword [esp + 0x110], eax
push ebp
push esi
mov esi, dword [esp + 0x120]
lea edx, [esp + 0x18]
mov ebp, ecx
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x508de7
movsx eax, byte [esi]
push eax
call dword [sym.imp.MSVCR80.dll_isalpha]
add esp, 4
test eax, eax
je 0x508ea2
lea ecx, [esp + 0x18]
push ecx
call sub.WSOCK32.dll_gethostbyname
mov esi, eax
test esi, esi
jne 0x508e33
call sub.WSOCK32.dll_WSAGetLastError
push eax
push str.Error:__u_n
call dword [sym.imp.MSVCR80.dll_printf]
add esp, 8
xor eax, eax
jmp 0x508ecc
movsx edx, word [esi + 0xa]
movsx eax, word [esi + 8]
mov ecx, dword [esi + 4]
push edi
push edx
mov edx, dword [esi]
push eax
push ecx
push edx
push str.name_s_naliases_s_naddrtype_d_nlength_d_n
call dword [sym.imp.MSVCR80.dll_printf]
mov eax, dword [esi + 0xc]
xor edi, edi
add esp, 0x14
cmp dword [eax], edi
je 0x508ea1
push ebx
mov ebx, dword [sym.imp.MSVCR80.dll_sprintf]
movsx ecx, word [esi + 0xa]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x1c]
push eax
call sub.MSVCR80.dll_memcpy
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ecx
call sub.WSOCK32.dll_inet_ntoa
push eax
lea edx, [esp + 0x24]
push 0x5627bc
push edx
call ebx
mov eax, dword [esi + 0xc]
add edi, 1
lea eax, [eax + edi*4]
add esp, 0xc
cmp dword [eax], 0
jne 0x508e63
pop ebx
pop edi
mov edx, dword [esp + 0x124]
mov eax, dword [ebp + 0x114]
mov ecx, dword [eax]
push edx
lea edx, [esp + 0x1c]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
xor ecx, ecx
test eax, eax
setne cl
mov dword [ebp + 0x118], eax
mov eax, ecx
mov ecx, dword [esp + 0x118]
pop esi
pop ebp
xor ecx, esp
call fcn.0055160d
add esp, 0x114
ret 8
Function at 0x509d60
Capabilities:
Get file size

Disassembly:
sub esp, 0x3a0
mov eax, dword [0x6397d4]
xor eax, esp
mov dword [esp + 0x39c], eax
push esi
mov esi, dword [esp + 0x3b0]
push edi
mov edi, dword [esp + 0x3ac]
push 0x1ff
lea eax, [esp + 0x1a9]
push 0
push eax
mov byte [esp + 0x1b0], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
test esi, esi
je 0x509dcb
mov ecx, dword [esp + 0x3b0]
push esi
mov esi, dword [sym.imp.MSVCR80.dll_sprintf]
push ecx
push edi
lea edx, [esp + 0x1b0]
push str._s_line:_d__msg:_s_
push edx
call esi
add esp, 0x14
jmp 0x509dec
mov eax, dword [esp + 0x3b0]
mov esi, dword [sym.imp.MSVCR80.dll_sprintf]
push eax
push edi
lea ecx, [esp + 0x1ac]
push str._s_line:_d_
push ecx
call esi
add esp, 0x10
push 0xff
lea edx, [esp + 0xa9]
push 0
push edx
mov byte [esp + 0xb0], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [esp + 0x12]
movzx edx, word [esp + 0xe]
movzx eax, word [esp + 0xc]
push ecx
push edx
push eax
lea ecx, [esp + 0xb0]
push str.._Log_Debug__4d_02d_02d.txt
push ecx
call esi
add esp, 0x14
cmp dword [0x650890], 0
jne 0x509eef
push 0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov edi, eax
cmp edi, 0xffffffff
jne 0x509ec1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xa4]
push 0x56fa54
push ecx
call dword [sym.imp.MSVCR80.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x509eef
call fcn.00509ac0
push eax
lea edx, [esp + 0x1a8]
push edx
push str._stime:_s_n
push esi
call dword [sym.imp.MSVCR80.dll_fprintf]
push esi
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 0x14
pop edi
pop esi
mov ecx, dword [esp + 0x39c]
xor ecx, esp
call fcn.0055160d
add esp, 0x3a0
ret
lea eax, [esp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [esp + 8]
shl esi, 0x10
push edi
or esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xf4240
jbe 0x509e6a
mov dword [0x650890], 1
mov ecx, dword [esp + 0x3a4]
pop edi
pop esi
xor ecx, esp
call fcn.0055160d
add esp, 0x3a0
ret
Function at 0x513460
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x51346c
pop esi
ret
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x513487
add ecx, 0xffffffff
mov dword [eax + 0x10], ecx
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*4]
test eax, eax
jne 0x513570
mov ecx, dword [esi + 8]
mov eax, dword [ecx + 0x14]
test eax, eax
push ebx
push ebp
push edi
jne 0x513501
mov edx, dword [esi + 0xc]
push edx
lea edi, [esi + 4]
push edi
call fcn.00513070
mov eax, dword [edi]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0xc]
add dword [esi + 0x10], 1
mov ebp, dword [sym.imp.MSVCR80.dll_sprintf]
push ecx
push edx
mov dword [esi + 8], eax
mov eax, dword [esi + 0x10]
push eax
lea ebx, [esi + 0x18]
push ebx
lea edi, [esi + 0x9c]
push str.___s_alloc_Band
push edi
call ebp
add esp, 0x20
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 0xc]
add dword [esi + 0x98], eax
mov ecx, dword [esi + 0x98]
lea edx, [ecx*4]
push edx
mov edx, dword [esi + 0x10]
push ecx
mov ecx, dword [esi + 0x14]
push ecx
push eax
push edx
push ebx
push str.__s__Increse_t_d_t_d_t_d_t_d_t_d_n
jmp 0x513559
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x10]
mov ebp, dword [sym.imp.MSVCR80.dll_sprintf]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x14]
push eax
push ecx
push edx
lea ebx, [esi + 0x18]
push ebx
lea edi, [esi + 0x9c]
push 0x5640ac
push edi
call ebp
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 0xc]
sub dword [esi + 0x98], eax
mov ecx, dword [esi + 0x98]
lea edx, [ecx*4]
push edx
mov edx, dword [esi + 0x10]
push ecx
mov ecx, dword [esi + 0x14]
push ecx
push eax
push edx
push ebx
push str.__s__Decrese_t_d_t_d_t_d_t_d_t_d_n
push edi
call ebp
push edi
call fcn.004135c0
add esp, 0x24
pop edi
pop ebp
pop ebx
mov ecx, esi
pop esi
jmp fcn.00513460
add dword [esi + 0x14], 1
pop esi
ret

Function at 0x516830
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0x80
push eax
lea ebp, [esi + 0x18]
push ebp
call dword [sym.imp.MSVCR80.dll_strncpy]
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
lea edi, [esi + 4]
add esp, 0xc
cmp dword [edi], 0
mov dword [esi + 0xc], ecx
jne 0x51686f
push ebx
push edi
call fcn.005159d0
mov edx, dword [edi]
add esp, 8
mov dword [esi + 8], edx
mov eax, dword [esp + 0x18]
push eax
push ebx
push ebp
lea edi, [esi + 0x9c]
push str._MemoryPooltempl__s_
push edi
mov dword [esi + 0x98], ebx
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 0x98]
mov edx, dword [esi + 0x14]
lea ecx, [eax*4]
push ecx
push eax
mov eax, dword [esi + 0xc]
push edx
push eax
push ebx
push ebp
push str.__s__Init_t_d_t_d_t_d_t_d_t_d_n
push edi
call dword [sym.imp.MSVCR80.dll_sprintf]
push edi
call fcn.004135c0
add esp, 0x24
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x5168d0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x55d21d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6397d4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
xor edi, edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esp + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
push 0xa
lea ecx, [esi + 0x48]
mov byte [esp + 0x24], 1
call fcn.0054e940
lea ecx, [esi + 0x68]
mov byte [esp + 0x20], 2
call fcn.005185b0
lea ebx, [esi + 0x94]
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], edi
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], edi
lea ebp, [esi + 0xb8]
mov dword [ebp], edi
mov dword [ebp + 4], edi
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], edi
mov dword [ebp + 0x10], edi
mov dword [ebp + 0x14], edi
mov dword [esi + 0xdc], edi
mov dword [esi + 0xe0], edi
mov dword [esi + 0xe4], edi
mov dword [esi + 0xe8], edi
mov dword [esi + 0xec], edi
mov dword [esi + 0xf0], edi
mov dword [esi + 0x100], edi
mov dword [esi + 0x104], edi
mov dword [esi + 0x108], edi
mov dword [esi + 0x10c], edi
mov dword [esi + 0x110], edi
mov dword [esi + 0x114], edi
mov dword [esi + 0x124], edi
mov dword [esi + 0x128], edi
mov dword [esi + 0x12c], edi
mov dword [esi + 0x130], edi
mov dword [esi + 0x134], edi
mov dword [esi + 0x138], edi
mov dword [esi + 0x148], edi
mov dword [esi + 0x14c], edi
mov dword [esi + 0x150], edi
mov dword [esi + 0x154], edi
mov dword [esi + 0x158], edi
mov dword [esi + 0x15c], edi
push str.g_PoolSTLIST
push 0x32
push 0x64
mov ecx, 0x637428
mov byte [esp + 0x2c], 9
call fcn.00516830
push 0x1e
mov ecx, ebx
mov dword [esi + 0x64], edi
call fcn.0044c4f0
push 0x1e
mov ecx, ebp
call fcn.0044c4f0
push 0x1e
lea ecx, [esi + 0xdc]
call fcn.0044c4f0
push 0x1e
lea ecx, [esi + 0x100]
call fcn.0044c4f0
push 3
lea ecx, [esi + 0x124]
call fcn.0044c4f0
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret