joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40289c
Capabilities:
Create directory
Write file on windows

Disassembly:
jmp 0x422610
push ecx
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], ecx
xor ebp, ebp
mov esi, 0x1d4
lea ebx, [edi + 1]
call fcn.00402243
mov dword [eax + esi + 0xbc], ebx
call fcn.00402243
mov dword [eax + esi], edi
cmp ebp, 5
jge 0x42265f
call fcn.00402243
mov dword [eax + esi - 0x88], edi
call fcn.00402243
mov dword [eax + esi - 0x34], edi
call fcn.00402243
mov dword [eax + esi + 0x88], ebx
cmp ebp, 4
jge 0x422686
call fcn.00402243
mov dword [eax + esi - 0x74], edi
call fcn.00402243
mov dword [eax + esi - 0x20], edi
call fcn.00402243
mov dword [eax + esi + 0x9c], 5
cmp ebp, 2
jge 0x4226cf
call fcn.00402243
mov dword [eax + esi - 0x64], edi
call fcn.00402243
mov dword [eax + esi - 0x5c], edi
call fcn.00402243
mov dword [eax + esi - 0x10], edi
call fcn.00402243
mov dword [eax + esi + 0xac], 5
call fcn.00402243
mov dword [eax + esi - 8], edi
call fcn.00402243
mov dword [eax + esi + 0xb4], 5
add esi, 4
add ebp, ebx
cmp esi, 0x1ec
jl 0x422625
call fcn.00402243
mov dword [eax + 0x240], 0x1e
call fcn.00402243
mov dword [eax + 0x180], ebx
call fcn.00402243
mov dword [eax + 0x184], ebx
call fcn.00402243
mov esi, 0xfa
mov dword [eax + 0x228], esi
call fcn.00402243
mov dword [eax + 0x22c], esi
call fcn.00402243
mov dword [eax + 0x188], ebx
call fcn.00402243
mov dword [eax + 0x18c], ebx
call fcn.00402243
mov dword [eax + 0x250], ebx
call fcn.00402243
mov ebp, 3
mov dword [eax + 0x254], ebp
call fcn.00402243
mov dword [eax + 0x190], ebx
call fcn.00402243
mov dword [eax + 0x12c], ebx
call fcn.00402243
mov dword [eax + 0xf0], edi
call fcn.00402243
mov dword [eax + 0xf4], edi
call fcn.00402243
mov dword [eax + 0xf8], edi
call fcn.00402243
mov dword [eax + 0x194], edi
call fcn.00402243
mov dword [eax + 0x198], edi
call fcn.00402243
mov esi, 5
mov dword [eax + 0x218], esi
call fcn.00402243
mov dword [eax + 0x220], esi
call fcn.00402243
mov dword [eax + 0x21c], esi
call fcn.00402243
mov dword [eax + 0x258], ebp
call fcn.00402243
mov dword [eax + 0x204], esi
call fcn.00402243
mov dword [eax + 0x19c], edi
call fcn.00402243
mov dword [eax + 0xfc], edi
call fcn.00402243
mov dword [eax + 0x10c], ebx
call fcn.00402243
mov dword [eax + 0x110], ebx
call fcn.00402243
mov dword [eax + 0x118], ebx
call fcn.00402243
mov dword [eax + 0x120], ebx
call fcn.00402243
mov ecx, dword [esp + 0x10]
mov dword [eax + 0x2a8], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 4
jmp fcn.00405781
Function at 0x402987
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x5cd490
sub esp, 0x24
push ebx
push ebp
push esi
mov ebx, ecx
push edi
lea edi, [ebx + 0xb8]
mov ecx, edi
call fcn.004068de
xor ebp, ebp
cmp dword [ebx + 0x88], ebp
jbe 0x5cd613
fldz
fstp dword [esp + 0x20]
fld dword [esp + 0x3c]
fmul qword [0x6439b0]
fstp qword [esp + 0x14]
jmp 0x5cd4d0
mov ecx, dword [ebx + 0x78]
mov edx, dword [ebx + 0x84]
xor eax, eax
test ecx, ecx
je 0x5cd4e7
mov ecx, dword [ecx]
test ecx, ecx
je 0x5cd4e7
mov eax, dword [ecx]
lea ecx, [edx + ebp]
test eax, eax
je 0x5cd4fa
mov eax, dword [eax]
test eax, eax
je 0x5cd4fa
mov eax, dword [eax]
test eax, eax
jne 0x5cd4fe
xor edx, edx
jmp 0x5cd500
mov edx, dword [eax]
mov esi, dword [edx + 8]
mov eax, ecx
shr eax, 2
and ecx, 3
cmp esi, eax
ja 0x5cd511
sub eax, esi
mov edx, dword [edx + 4]
mov eax, dword [edx + eax*4]
mov ecx, dword [eax + ecx*4]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
test eax, eax
jns 0x5cd533
fadd dword [0x6405a4]
fmul dword [esp + 0x3c]
mov eax, dword [ebx + 0x78]
mov ecx, dword [ebx + 0x84]
xor edx, edx
fadd qword [esp + 0x14]
fstp dword [esp + 0x1c]
test eax, eax
je 0x5cd556
mov eax, dword [eax]
test eax, eax
je 0x5cd556
mov edx, dword [eax]
add ecx, ebp
test edx, edx
je 0x5cd568
mov edx, dword [edx]
test edx, edx
je 0x5cd568
mov edx, dword [edx]
test edx, edx
jne 0x5cd56c
xor edx, edx
jmp 0x5cd56e
mov edx, dword [edx]
mov esi, dword [edx + 8]
mov eax, ecx
shr eax, 2
and ecx, 3
cmp esi, eax
ja 0x5cd57f
sub eax, esi
mov edx, dword [edx + 4]
mov eax, dword [edx + eax*4]
mov ecx, dword [eax + ecx*4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
test eax, eax
jns 0x5cd5a1
fadd dword [0x6405a4]
fmul dword [esp + 0x3c]
mov ecx, dword [edi + 0x10]
inc ecx
fadd qword [esp + 0x14]
fstp dword [esp + 0x24]
cmp dword [edi + 8], ecx
ja 0x5cd5bf
push 1
mov ecx, edi
call fcn.004106e5
mov esi, dword [edi + 0xc]
add esi, dword [edi + 0x10]
mov eax, dword [edi + 8]
cmp eax, esi
ja 0x5cd5ce
sub esi, eax
mov edx, dword [edi + 4]
cmp dword [edx + esi*4], 0
jne 0x5cd5eb
push 0xc
call fcn.00606266
add esp, 4
test eax, eax
je 0x5cd62b
mov ecx, dword [edi + 4]
mov dword [ecx + esi*4], eax
mov eax, dword [edi + 4]
mov ecx, dword [eax + esi*4]
lea edx, [esp + 0x1c]
push edx
push ecx
lea edx, [edi + 0x14]
push edx
call fcn.0040cc5c
inc dword [edi + 0x10]
inc ebp
add esp, 0xc
cmp ebp, dword [ebx + 0x88]
jb 0x5cd4d0
mov esi, dword [esp + 0x38]
push edi
mov ecx, esi
call fcn.0040c3e7
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x14], 0
call fcn.00606fb0
push 0x6782c8
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x30], vtable.std::bad_alloc.0
call fcn.00606ecb
int3
Function at 0x403666
Capabilities:
Print debug messages

Disassembly:
jmp 0x4b2860
push ebx
mov ebx, dword [esp + 8]
mov eax, dword [ebx]
push edi
mov edi, ecx
test eax, eax
jne 0x4b2880
push str.Item_DB_idx__0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
xor eax, eax
pop ebx
ret 4
push esi
push eax
mov ecx, 0x7b1b98
call fcn.0040d2ba
mov esi, eax
test esi, esi
je 0x4b289f
mov ax, word [ebx + 6]
mov word [esi + 0x28e], ax
jmp 0x4b28cd
push str.CItemShopGridDialog::AddItem
push ebx
mov ecx, 0x7b1b98
call fcn.00402db5
mov esi, eax
test esi, esi
jne 0x4b28bb
pop esi
pop edi
pop ebx
ret 4
push esi
mov ecx, 0x7b1b98
mov dword [esi + 0x24], 1
call fcn.0040f443
mov edx, dword [esi]
mov eax, dword [edx + 0x7c]
mov ecx, esi
call eax
movzx ecx, ax
push ecx
mov ecx, edi
call fcn.0040cf68
movzx eax, ax
push esi
push eax
mov ecx, edi
call fcn.0040ab73
pop esi
pop edi
pop ebx
ret 4

Function at 0x403ebd
Capabilities:
Get file size

Disassembly:
jmp 0x5950f0
sub esp, 0x3a0
mov eax, dword [0x79d4f0]
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 fcn.006061b0
add esp, 0xc
test esi, esi
je 0x595158
mov ecx, dword [esp + 0x3b0]
push esi
push ecx
push edi
lea edx, [esp + 0x1b0]
push str._s_line:_d__msg:_s_
push edx
call fcn.00606889
add esp, 0x14
jmp 0x595176
mov eax, dword [esp + 0x3b0]
push eax
push edi
lea ecx, [esp + 0x1ac]
push str._s_line:_d_
push ecx
call fcn.00606889
add esp, 0x10
push 0xff
lea edx, [esp + 0xa9]
push 0
push edx
mov byte [esp + 0xb0], 0
call fcn.006061b0
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 fcn.00606889
add esp, 0x14
cmp dword [0x7c4f6c], 0
jne 0x595279
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 0x59524b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xa4]
push 0x655d28
push ecx
call fcn.0060682b
mov esi, eax
add esp, 8
test esi, esi
je 0x595279
call fcn.0040db2a
push eax
lea edx, [esp + 0x1a8]
push edx
push str._stime:_s_n
push esi
call fcn.00607991
push esi
call fcn.0060652a
add esp, 0x14
pop edi
pop esi
mov ecx, dword [esp + 0x39c]
xor ecx, esp
call fcn.00606374
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 0x5951f7
mov dword [0x7c4f6c], 1
mov ecx, dword [esp + 0x3a4]
pop edi
pop esi
xor ecx, esp
call fcn.00606374
add esp, 0x3a0
ret
Function at 0x4051d2
Capabilities:
Initialize winsock library
Set socket configuration

Disassembly:
jmp 0x581580
sub esp, 0x198
mov eax, dword [0x79d4f0]
xor eax, esp
mov dword [esp + 0x194], eax
push esi
xor eax, eax
push 0x18e
mov esi, ecx
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.006061b0
add esp, 0xc
lea edx, [esp + 8]
push edx
push 0x102
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x5815dc
xor al, al
pop esi
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.00606374
add esp, 0x198
ret
push 1
push 3
push 2
call sub.WSOCK32.dll_socket
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x5815c4
push 4
lea ecx, [esp + 8]
push ecx
push 0x1006
push 0xffff
push eax
mov dword [esp + 0x18], 0x7d0
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
je 0x5815c4
mov eax, dword [esi + 4]
push 4
lea edx, [esp + 8]
push edx
push 0x1005
push 0xffff
push eax
mov dword [esp + 0x18], 0x7d0
call sub.WSOCK32.dll_setsockopt
mov ecx, dword [esp + 0x198]
cmp eax, 0xffffffff
setne al
pop esi
xor ecx, esp
call fcn.00606374
add esp, 0x198
ret
Function at 0x405781
Capabilities:
Create directory
Write file on windows

Disassembly:
jmp 0x422480
sub esp, 0x48
mov eax, dword [0x79d4f0]
xor eax, esp
mov dword [esp + 0x44], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push edi
push 0
push str.data
mov edi, ecx
call esi
push 0
push str.data_aiconfig
call esi
mov eax, dword [0x7b0d24]
movzx ecx, word [eax + 0x129]
push ecx
lea edx, [esp + 0x10]
push str.._data_aiconfig__d.dat
push edx
call fcn.00606889
push 0x640624
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00606842
mov eax, dword [esp + 0x20]
add esp, 0x18
test eax, eax
je 0x422506
push eax
push 1
push 0x1c64
add edi, 0xec
push edi
call fcn.006066f5
mov edx, dword [esp + 0x18]
push edx
call fcn.0060652a
add esp, 0x14
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
xor ecx, esp
call fcn.00606374
add esp, 0x48
ret
Function at 0x406244
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x5cd2c0
sub esp, 0x24
push ebx
push ebp
push esi
mov ebx, ecx
push edi
lea edi, [ebx + 0xa0]
mov ecx, edi
call fcn.004068de
mov ebp, 1
cmp dword [ebx + 0x88], ebp
jbe 0x5cd443
fldz
fstp dword [esp + 0x20]
fld dword [esp + 0x3c]
fmul qword [0x6439b0]
fstp qword [esp + 0x14]
jmp 0x5cd300
mov ecx, dword [ebx + 0x78]
mov edx, dword [ebx + 0x84]
xor eax, eax
test ecx, ecx
je 0x5cd317
mov ecx, dword [ecx]
test ecx, ecx
je 0x5cd317
mov eax, dword [ecx]
lea ecx, [edx + ebp]
test eax, eax
je 0x5cd32a
mov eax, dword [eax]
test eax, eax
je 0x5cd32a
mov eax, dword [eax]
test eax, eax
jne 0x5cd32e
xor edx, edx
jmp 0x5cd330
mov edx, dword [eax]
mov esi, dword [edx + 8]
mov eax, ecx
shr eax, 2
and ecx, 3
cmp esi, eax
ja 0x5cd341
sub eax, esi
mov edx, dword [edx + 4]
mov eax, dword [edx + eax*4]
mov ecx, dword [eax + ecx*4]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
test eax, eax
jns 0x5cd363
fadd dword [0x6405a4]
fmul dword [esp + 0x3c]
mov eax, dword [ebx + 0x78]
mov ecx, dword [ebx + 0x84]
xor edx, edx
fadd qword [esp + 0x14]
fstp dword [esp + 0x1c]
test eax, eax
je 0x5cd386
mov eax, dword [eax]
test eax, eax
je 0x5cd386
mov edx, dword [eax]
add ecx, ebp
test edx, edx
je 0x5cd398
mov edx, dword [edx]
test edx, edx
je 0x5cd398
mov edx, dword [edx]
test edx, edx
jne 0x5cd39c
xor edx, edx
jmp 0x5cd39e
mov edx, dword [edx]
mov esi, dword [edx + 8]
mov eax, ecx
shr eax, 2
and ecx, 3
cmp esi, eax
ja 0x5cd3af
sub eax, esi
mov edx, dword [edx + 4]
mov eax, dword [edx + eax*4]
mov ecx, dword [eax + ecx*4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
test eax, eax
jns 0x5cd3d1
fadd dword [0x6405a4]
fmul dword [esp + 0x3c]
mov ecx, dword [edi + 0x10]
inc ecx
fadd qword [esp + 0x14]
fstp dword [esp + 0x24]
cmp dword [edi + 8], ecx
ja 0x5cd3ef
push 1
mov ecx, edi
call fcn.004106e5
mov esi, dword [edi + 0xc]
add esi, dword [edi + 0x10]
mov eax, dword [edi + 8]
cmp eax, esi
ja 0x5cd3fe
sub esi, eax
mov edx, dword [edi + 4]
cmp dword [edx + esi*4], 0
jne 0x5cd41b
push 0xc
call fcn.00606266
add esp, 4
test eax, eax
je 0x5cd45b
mov ecx, dword [edi + 4]
mov dword [ecx + esi*4], eax
mov eax, dword [edi + 4]
mov ecx, dword [eax + esi*4]
lea edx, [esp + 0x1c]
push edx
push ecx
lea edx, [edi + 0x14]
push edx
call fcn.0040cc5c
inc dword [edi + 0x10]
inc ebp
add esp, 0xc
cmp ebp, dword [ebx + 0x88]
jb 0x5cd300
mov esi, dword [esp + 0x38]
push edi
mov ecx, esi
call fcn.0040c3e7
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x14], 0
call fcn.00606fb0
push 0x6782c8
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x30], vtable.std::bad_alloc.0
call fcn.00606ecb
int3
Function at 0x406b13
Capabilities:
Read .ini file

Disassembly:
jmp 0x57fa30
sub esp, 0x108
mov eax, dword [0x79d4f0]
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 fcn.006093d0
mov byte [eax + 1], 0
mov eax, esi
add esp, 8
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x57fa91
lea edi, [esp + 0x14]
sub eax, ecx
dec edi
nop
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x57faa0
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.00606374
add esp, 0x108
ret

Function at 0x406c26
Capabilities:
Read file on windows

Disassembly:
jmp 0x422520
sub esp, 0x4c
mov eax, dword [0x79d4f0]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [0x7b0d24]
push esi
mov esi, ecx
movzx ecx, word [eax + 0x129]
push edi
push ecx
lea edx, [esp + 0x14]
push str.._data_aiconfig__d.dat
push edx
call fcn.00606889
push 0x1c64
lea edi, [esi + 0xec]
push 0
push edi
call fcn.006061b0
push 0x64065c
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.00606842
mov eax, dword [esp + 0x2c]
add esp, 0x24
test eax, eax
je 0x4225f8
push eax
push 1
push 0x1c64
push edi
call fcn.00606ca9
mov edx, dword [esp + 0x18]
push edx
call fcn.0060652a
add esp, 0x14
call fcn.00402243
mov eax, dword [eax + 0x228]
imul eax, eax, 0x64
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
test eax, eax
jns 0x4225bb
fadd dword [0x6405a4]
fstp dword [esi + 0xe0]
call fcn.00402243
mov ecx, dword [eax + 0x22c]
imul ecx, ecx, 0x64
mov dword [esp + 0xc], ecx
fild dword [esp + 0xc]
test ecx, ecx
jns 0x4225e1
fadd dword [0x6405a4]
pop edi
fstp dword [esi + 0xe8]
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00606374
add esp, 0x4c
ret
mov ecx, esi
call fcn.0040289c
mov ecx, dword [esp + 0x50]
pop edi
pop esi
xor ecx, esp
call fcn.00606374
add esp, 0x4c
ret
Function at 0x40742d
Capabilities:
Print debug messages

Disassembly:
jmp 0x5c5390
jmp 0x5cb880
mov ecx, dword [ecx + 0x1f4]
test ecx, ecx
jne 0x5c539f
xor eax, eax
ret 8
jmp 0x40e520
mov edx, dword [esp + 4]
fld dword [edx]
sub esp, 8
fld qword [0x64a740]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jnp 0x5cb984
fldz
fcom dword [edx]
fnstsw ax
test ah, 0x41
je 0x5cb982
fld dword [edx + 8]
fcomp st(2)
fnstsw ax
fstp st(1)
test ah, 1
je 0x5cb984
fcomp dword [edx + 8]
fnstsw ax
test ah, 0x41
je 0x5cb986
push esi
fnstcw word [esp + 0x10]
mov esi, dword [esp + 0x14]
fld dword [esi + 8]
fld qword [0x648ed8]
movzx eax, word [esp + 0x10]
fdiv st(1), st(0)
or eax, 0xc00
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fxch st(1)
fistp qword [esp + 4]
mov eax, dword [esp + 4]
push eax
fldcw word [esp + 0x14]
fld dword [esi]
fdiv st(1)
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
or eax, 0xc00
mov dword [esp + 0x18], eax
fldcw word [esp + 0x18]
fistp qword [esp + 8]
mov eax, dword [esp + 8]
push eax
fldcw word [esp + 0x18]
fld dword [edx + 8]
fdiv st(1)
fnstcw word [esp + 0x18]
movzx eax, word [esp + 0x18]
or eax, 0xc00
mov dword [esp + 0x1c], eax
fldcw word [esp + 0x1c]
fistp qword [esp + 0xc]
mov eax, dword [esp + 0xc]
push eax
fldcw word [esp + 0x1c]
fdivr dword [edx]
fnstcw word [esp + 0x1c]
movzx eax, word [esp + 0x1c]
or eax, 0xc00
mov dword [esp + 0x20], eax
fldcw word [esp + 0x20]
fistp qword [esp + 0x10]
mov edx, dword [esp + 0x10]
push edx
fldcw word [esp + 0x20]
call fcn.00408e54
pop esi
add esp, 8
ret 8
fstp st(0)
fstp st(0)
push str._____________________________.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
add esp, 8
ret 8

Function at 0x407441
Capabilities:
Write file on windows

Disassembly:
jmp 0x55c380
sub esp, 0x18
mov eax, dword [0x79d4f0]
xor eax, esp
mov dword [esp + 0x14], eax
mov ecx, dword [0x7b0d24]
push esi
mov esi, dword [esp + 0x20]
test ecx, ecx
je 0x55c41a
call fcn.00401f7d
fld dword [0x7e7198]
push 0
push 0x80
push 2
push 0
mov dword [esp + 0x20], eax
mov eax, dword [0x7b0d24]
mov cx, word [eax + 0x688]
fstp dword [esp + 0x24]
push 0
push 0x40000000
push esi
mov word [esp + 0x28], cx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x55c41a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [esp + 0xc]
push edx
push 4
lea eax, [esp + 0x18]
push eax
push esi
mov dword [esp + 0x20], 0x6060801
call edi
push 0
lea ecx, [esp + 0xc]
push ecx
push 0xc
lea edx, [esp + 0x1c]
push edx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [esp + 0x18]
pop esi
xor ecx, esp
call fcn.00606374
add esp, 0x18
ret 4
Function at 0x40759a
Capabilities:
Read file on windows

Disassembly:
jmp 0x579810
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x654290
push eax
mov esi, ecx
xor bl, bl
call fcn.0060682b
mov edi, eax
add esp, 8
test edi, edi
je 0x5798dd
push edi
push 0x118
lea ecx, [esi + 0x14]
push 1
push ecx
call fcn.00606ca9
add esp, 0x10
cmp eax, 0x118
jne 0x5798ab
mov edx, dword [esi + 0x118]
mov eax, dword [esi + 0x11c]
lea ecx, [eax + edx*2]
cmp dword [esi + 0x120], ecx
jne 0x5798ab
mov edx, dword [esi + 0x124]
push edx
call fcn.0060529a
add esp, 4
mov dword [esi + 0x10], eax
test eax, eax
je 0x5798ab
push ebp
mov ebp, dword [esi + 0x124]
push edi
push ebp
push 1
push eax
call fcn.00606ca9
add esp, 0x10
cmp ebp, eax
jne 0x5798aa
mov edx, dword [esi + 0x118]
mov eax, dword [esi + 0x11c]
mov dword [esi + 4], edx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ebp
mov bl, 1
pop ebp
push edi
call fcn.0060652a
add esp, 4
test bl, bl
jne 0x5798cf
mov eax, dword [esi + 0x10]
test eax, eax
je 0x5798cf
push eax
call fcn.00606235
add esp, 4
mov dword [esi + 0x10], 0
pop edi
mov byte [esi + 0x128], bl
pop esi
mov al, bl
pop ebx
ret 4
pop edi
pop esi
xor al, al
pop ebx
ret 4

Function at 0x407b03
Capabilities:
Read file on windows

Disassembly:
jmp 0x527ad0
sub esp, 8
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push str.._ini_GameOption.opt
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x527b03
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push esi
mov dword [esp + 0x20], 0
call edi
test eax, eax
je 0x527b48
cmp dword [esp + 0x10], 0x61208
jne 0x527b48
push 0
lea edx, [esp + 0x10]
push edx
push 0xac
add ebx, 4
push ebx
push esi
call edi
test eax, eax
jne 0x527b58
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
cmp dword [esp + 0xc], 0xac
push esi
ja 0x527b49
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 8
ret
Function at 0x407cc0
Capabilities:
Enumerate processes

Disassembly:
jmp 0x4fb4a0
sub esp, 0x1ac
mov eax, dword [0x79d4f0]
xor eax, esp
mov dword [esp + 0x1a8], eax
push ebx
mov ebx, dword [sym.imp.WINMM.dll_timeGetTime]
push esi
mov esi, ecx
call ebx
cmp dword [esi + 0xf4], 0
jne 0x4fb4cf
mov dword [esi + 0xf4], eax
sub eax, dword [esi + 0xf4]
cmp eax, 0x1388
jbe 0x4fb5ab
mov ecx, dword [esi + 0xd0]
mov eax, dword [esi + 0xdc]
mov dword [esi + 0xe4], eax
test ecx, ecx
jle 0x4fb505
test eax, eax
je 0x4fb502
mov eax, dword [eax]
mov dword [esi + 0xe4], eax
dec ecx
jne 0x4fb4f6
push edi
push 0
push 2
mov dword [esp + 0x14], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x4fb5aa
lea ecx, [esp + 0xc]
push ecx
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4fb59b
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x138]
push 0x640a64
push eax
call fcn.00606889
add esp, 0xc
lea ecx, [esp + 0x134]
push ecx
mov ecx, esi
call fcn.00404d18
test eax, eax
je 0x4fb58c
mov ecx, 0x7c45f8
call fcn.0040db16
push 0x230
mov ecx, 0x7b3388
call fcn.004107c6
push eax
push 1
push 0x179e
push 0x7b0258
call fcn.00408a53
add esp, 0x10
lea edx, [esp + 0xc]
push edx
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4fb531
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov dword [esi + 0xf4], eax
pop edi
mov ecx, dword [esp + 0x1b0]
pop esi
pop ebx
xor ecx, esp
call fcn.00606374
add esp, 0x1ac
ret

Function at 0x407cde
Capabilities:
Resolve dns

Disassembly:
jmp 0x5928a0
sub esp, 0x114
mov eax, dword [0x79d4f0]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push esi
mov esi, dword [esp + 0x120]
lea edx, [esp + 0x18]
mov ebx, ecx
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x5928c7
movsx eax, byte [esi]
push eax
call fcn.0060a1aa
add esp, 4
test eax, eax
je 0x59293f
lea ecx, [esp + 0x18]
push ecx
call sub.WSOCK32.dll_gethostbyname
mov esi, eax
test esi, esi
je 0x5929aa
mov eax, dword [esi + 0xc]
push edi
xor edi, edi
cmp dword [eax], edi
je 0x59293e
nop
movsx edx, word [esi + 0xa]
mov eax, dword [eax]
push edx
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00607fd0
mov edx, dword [esp + 0x1c]
add esp, 0xc
push edx
call sub.WSOCK32.dll_inet_ntoa
push eax
lea eax, [esp + 0x20]
push 0x640a64
push eax
call fcn.00606889
mov ecx, dword [esi + 0xc]
inc edi
lea eax, [ecx + edi*4]
add esp, 0xc
cmp dword [eax], 0
jne 0x592900
pop edi
lea edx, [esp + 0x18]
push edx
push 0x20
push 0x7c2b80
call fcn.0060a0f5
mov eax, dword [0x7c2bc0]
mov esi, dword [esp + 0x130]
imul eax, eax, 0x58
add esp, 0xc
cmp si, word [eax + 0x7de520]
jne 0x592987
cmp dword [0x7c2ba0], 0
je 0x592987
cmp dword [0x7c2bbc], 0
jne 0x592987
mov ecx, 0x7c2ba0
call fcn.00401c67
mov eax, dword [ebx + 0x114]
mov ecx, dword [eax]
push esi
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 [ebx + 0x118], eax
mov eax, ecx
mov ecx, dword [esp + 0x118]
pop esi
pop ebx
xor ecx, esp
call fcn.00606374
add esp, 0x114
ret 8