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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c5390
cmp edx, dword [eax]
je 0x4bad53
add eax, 8
inc ecx
cmp eax, 0x4c5420
jl 0x4bad44
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c5390]
jne 0x4bae81
mov eax, dword [0x4c9d28]
cmp eax, 1
je 0x4bae5b
test eax, eax
jne 0x4bad84
cmp dword [0x4c52b8], 1
je 0x4bae5b
cmp edx, 0xfc
je 0x4bae81
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4badbb
lea eax, [ebp - 0x1a4]
push 0x4c0d48
push eax
call fcn.004bb710
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bbba0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4badfe
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bbba0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c0d44
push edi
call fcn.004bda70
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c0d28
push eax
call fcn.004bb710
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bb720
lea eax, [ebp - 0xa0]
push 0x4c0d24
push eax
call fcn.004bb720
push dword [esi + 0x4c5394]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bb720
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c0cfc
push eax
call fcn.004bd9e4
add esp, 0x2c
pop edi
jmp 0x4bae81
lea eax, [ebp + 8]
lea esi, [esi + 0x4c5394]
push 0
push eax
push dword [esi]
call fcn.004bbba0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40139d
Capabilities:
Create thread

Disassembly:
jmp 0x5ca8d0
push esi
mov esi, ecx
cmp dword [esi + 0x1f4], 0
push edi
je 0x5ca97f
mov edi, dword [esp + 0x14]
test edi, edi
je 0x5ca97f
push 0
push 1
push 0x7eace0
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, 1
je 0x5ca97f
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov dword [0x7eac8c], ecx
mov edx, dword [eax + 4]
mov dword [0x7eac90], edx
mov eax, dword [eax + 8]
mov dword [0x7eac94], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov dword [0x7eac80], ecx
mov edx, dword [eax + 4]
mov dword [0x7eac84], edx
mov eax, dword [eax + 8]
mov edx, dword [esp + 0x18]
mov dword [0x7eac88], eax
mov ecx, dword [esi + 0x1f4]
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0x402036
push 0
push 0
mov dword [0x7eacdc], ecx
mov dword [0x7eacd8], edi
mov dword [0x79fc60], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x5ca986
push eax
push 0x7eace0
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 0x4024b9
Capabilities:
Read file on windows

Disassembly:
jmp 0x602740
sub esp, 0x724
push ebx
mov ebx, dword [esp + 0x72c]
push esi
mov esi, ecx
test ebx, ebx
jne 0x602762
pop esi
xor eax, eax
pop ebx
add esp, 0x724
ret 0x10
cmp dword [esp + 0x734], 0
je 0x602755
push edi
push ebx
push 1
lea eax, [esp + 0x1b]
push 1
push eax
call fcn.0060a958
push 0x200
xor edi, edi
lea ecx, [esp + 0x544]
push edi
push ecx
add esi, 0x10
call fcn.00609d70
lea edx, [esp + 0x30]
push edx
push str._02X
push esi
call fcn.0060c5d2
add esp, 0x28
test eax, eax
jle 0x6027de
jmp 0x6027b0
cmp edi, 0x200
jge 0x6027de
mov al, byte [esp + 0x14]
lea ecx, [esp + 0x14]
push ecx
add esi, 2
push str._02X
mov byte [esp + edi + 0x538], al
push esi
inc edi
call fcn.0060c5d2
add esp, 0xc
test eax, eax
jg 0x6027b0
push ebp
push 0x100
lea edx, [esp + 0x538]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.0040e5ac
mov ebp, dword [esp + 0x74c]
mov cl, byte [esp + 0x750]
add esp, 0xc
xor edi, edi
mov byte [esp + 0x13], cl
test ebp, ebp
jle 0x6028cf
push ebx
push 0x10
lea edx, [esp + 0x13c]
push 1
push edx
call fcn.0060a958
add esp, 0x10
cmp eax, 0x10
jne 0x602903
lea eax, [esp + 0x134]
push eax
mov ecx, eax
push ecx
lea edx, [esp + 0x24]
push 0
push edx
call fcn.0040dc0b
mov ecx, dword [esp + 0x74c]
xor eax, eax
add esp, 0x10
xor dl, dl
mov byte [esp + 0x14], al
mov byte [esp + 0x15], al
lea esi, [ecx + edi + 1]
jmp 0x602870
mov cl, byte [esp + eax + 0x134]
add byte [esp + 0x13], cl
mov byte [esi + eax - 1], cl
mov cl, byte [esp + eax + 0x135]
add byte [esp + 0x15], cl
mov byte [esi + eax], cl
mov cl, byte [esp + eax + 0x136]
add byte [esp + 0x14], cl
mov byte [esi + eax + 1], cl
mov cl, byte [esp + eax + 0x137]
mov byte [esi + eax + 2], cl
add eax, 4
add dl, cl
cmp eax, 0x10
jl 0x602870
add dl, byte [esp + 0x14]
mov ebx, dword [esp + 0x738]
add dl, byte [esp + 0x15]
add edi, 0x10
add byte [esp + 0x13], dl
cmp edi, ebp
jl 0x602815
push ebx
push 1
lea edx, [esp + 0x1e]
push 1
push edx
call fcn.0060a958
mov al, byte [esp + 0x27]
add esp, 0x10
cmp al, byte [esp + 0x16]
jne 0x602903
cmp al, byte [esp + 0x13]
jne 0x602903
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x724
ret 0x10
push 0
push str.Error__
push str.Header_Version_Error__
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x724
ret 0x10
Function at 0x402946
Capabilities:
Read file on windows

Disassembly:
jmp 0x58f8d0
sub esp, 0x200
push esi
push edi
mov edi, dword [esp + 0x20c]
mov esi, ecx
test edi, edi
jne 0x58f8f2
pop edi
xor eax, eax
pop esi
add esp, 0x200
ret 4
push 0x6449fc
push edi
call fcn.0060a237
lea edx, [esi + 0x30]
add esp, 8
mov dword [esi + 4], eax
mov eax, edi
sub edx, edi
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x58f910
mov eax, dword [esi + 4]
test eax, eax
je 0x58f8e5
push ebx
push ebp
push 2
push 0
push eax
call fcn.0060dc1c
mov eax, dword [esi + 4]
push eax
call fcn.0060df64
mov ecx, dword [esi + 4]
push 0
push 0
push ecx
mov ebx, eax
call fcn.0060dc1c
add esp, 0x1c
mov ecx, esi
call fcn.00409edf
mov edx, dword [esi + 4]
push edx
push 1
lea edi, [esi + 0x18]
push 0xc
push edi
call fcn.0060a958
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.00406f55
test eax, eax
jne 0x58f9c2
push eax
push 0x38
push str.MHFile.cpp
call fcn.004099cb
mov ecx, dword [esp + 0x220]
push ecx
lea edx, [esp + 0x20]
push str.Bin_File_Version_Error_____s
push edx
call fcn.0060a295
add esp, 0x18
push 0
push 0
lea eax, [esp + 0x18]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x200
ret 4
lea ecx, [esi + 0x148]
call fcn.00401497
test eax, eax
je 0x58fa7e
lea edi, [ebx - 0xe]
push edi
call fcn.00608f1a
add esp, 4
mov dword [esi + 0x28], eax
test eax, eax
jne 0x58fa07
push eax
push 0x49
push str.MHFile.cpp
call fcn.004099cb
add esp, 0xc
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x200
ret 4
push edi
push 0
push eax
call fcn.00609d70
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.004024b9
test eax, eax
jne 0x58fa56
mov ecx, dword [esp + 0x214]
push ecx
lea edx, [esp + 0x14]
push str.File_Open_Error_:__s
push edx
call fcn.0060a295
add esp, 0xc
push 0
push 0
lea eax, [esp + 0x18]
jmp 0x58f9aa
mov ecx, dword [esi + 4]
push ecx
call fcn.00609f36
add esp, 4
pop ebp
pop ebx
mov eax, 1
pop edi
mov dword [esi + 4], 0
mov dword [esi + 0x2c], eax
pop esi
add esp, 0x200
ret 4
mov edx, dword [esi + 4]
push edx
push 1
lea eax, [esi + 0x24]
push 1
push eax
call fcn.0060a958
mov eax, dword [esi + 0x20]
add esp, 0x10
test eax, eax
je 0x58fab5
push eax
call fcn.00608f1a
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.0060a958
add esp, 0x14
mov eax, dword [esi + 4]
push eax
push 1
lea ecx, [esi + 0x25]
push 1
push ecx
call fcn.0060a958
mov edx, dword [esi + 4]
push edx
call fcn.00609f36
add esp, 0x14
mov ecx, esi
mov dword [esi + 4], 0
call fcn.00409cc3
test eax, eax
je 0x58f9b3
call fcn.0040e5e8
test eax, eax
je 0x58f9b3
pop ebp
pop ebx
mov eax, 1
pop edi
mov dword [esi + 0x2c], eax
pop esi
add esp, 0x200
ret 4
Function at 0x402a04
Capabilities:
Create directory
Write file on windows

Disassembly:
jmp 0x424f10
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.00402365
mov dword [eax + esi + 0xbc], ebx
call fcn.00402365
mov dword [eax + esi], edi
cmp ebp, 5
jge 0x424f5f
call fcn.00402365
mov dword [eax + esi - 0x88], edi
call fcn.00402365
mov dword [eax + esi - 0x34], edi
call fcn.00402365
mov dword [eax + esi + 0x88], ebx
cmp ebp, 4
jge 0x424f86
call fcn.00402365
mov dword [eax + esi - 0x74], edi
call fcn.00402365
mov dword [eax + esi - 0x20], edi
call fcn.00402365
mov dword [eax + esi + 0x9c], 5
cmp ebp, 2
jge 0x424fcf
call fcn.00402365
mov dword [eax + esi - 0x64], edi
call fcn.00402365
mov dword [eax + esi - 0x5c], edi
call fcn.00402365
mov dword [eax + esi - 0x10], edi
call fcn.00402365
mov dword [eax + esi + 0xac], 5
call fcn.00402365
mov dword [eax + esi - 8], edi
call fcn.00402365
mov dword [eax + esi + 0xb4], 5
add esi, 4
add ebp, ebx
cmp esi, 0x1ec
jl 0x424f25
call fcn.00402365
mov dword [eax + 0x240], 0x1e
call fcn.00402365
mov dword [eax + 0x180], ebx
call fcn.00402365
mov dword [eax + 0x184], ebx
call fcn.00402365
mov esi, 0xfa
mov dword [eax + 0x228], esi
call fcn.00402365
mov dword [eax + 0x22c], esi
call fcn.00402365
mov dword [eax + 0x188], ebx
call fcn.00402365
mov dword [eax + 0x18c], ebx
call fcn.00402365
mov dword [eax + 0x250], ebx
call fcn.00402365
mov ebp, 3
mov dword [eax + 0x254], ebp
call fcn.00402365
mov dword [eax + 0x190], ebx
call fcn.00402365
mov dword [eax + 0x12c], ebx
call fcn.00402365
mov dword [eax + 0xf0], edi
call fcn.00402365
mov dword [eax + 0xf4], edi
call fcn.00402365
mov dword [eax + 0xf8], edi
call fcn.00402365
mov dword [eax + 0x194], edi
call fcn.00402365
mov dword [eax + 0x198], edi
call fcn.00402365
mov esi, 5
mov dword [eax + 0x218], esi
call fcn.00402365
mov dword [eax + 0x220], esi
call fcn.00402365
mov dword [eax + 0x21c], esi
call fcn.00402365
mov dword [eax + 0x258], ebp
call fcn.00402365
mov dword [eax + 0x204], esi
call fcn.00402365
mov dword [eax + 0x19c], edi
call fcn.00402365
mov dword [eax + 0xfc], edi
call fcn.00402365
mov dword [eax + 0x10c], ebx
call fcn.00402365
mov dword [eax + 0x110], ebx
call fcn.00402365
mov dword [eax + 0x118], ebx
call fcn.00402365
mov dword [eax + 0x120], ebx
call fcn.00402365
mov ecx, dword [esp + 0x10]
mov dword [eax + 0x2a8], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 4
jmp fcn.00405ba0
Function at 0x402af9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x5d0cb0
sub esp, 0x24
push ebx
push ebp
push esi
mov ebx, ecx
push edi
lea edi, [ebx + 0xb8]
mov ecx, edi
call fcn.00406dde
xor ebp, ebp
cmp dword [ebx + 0x88], ebp
jbe 0x5d0e33
fldz
fstp dword [esp + 0x20]
fld dword [esp + 0x3c]
fmul qword [0x6479e0]
fstp qword [esp + 0x14]
jmp 0x5d0cf0
mov ecx, dword [ebx + 0x78]
mov edx, dword [ebx + 0x84]
xor eax, eax
test ecx, ecx
je 0x5d0d07
mov ecx, dword [ecx]
test ecx, ecx
je 0x5d0d07
mov eax, dword [ecx]
lea ecx, [edx + ebp]
test eax, eax
je 0x5d0d1a
mov eax, dword [eax]
test eax, eax
je 0x5d0d1a
mov eax, dword [eax]
test eax, eax
jne 0x5d0d1e
xor edx, edx
jmp 0x5d0d20
mov edx, dword [eax]
mov esi, dword [edx + 8]
mov eax, ecx
shr eax, 2
and ecx, 3
cmp esi, eax
ja 0x5d0d31
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 0x5d0d53
fadd dword [0x6449c4]
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 0x5d0d76
mov eax, dword [eax]
test eax, eax
je 0x5d0d76
mov edx, dword [eax]
add ecx, ebp
test edx, edx
je 0x5d0d88
mov edx, dword [edx]
test edx, edx
je 0x5d0d88
mov edx, dword [edx]
test edx, edx
jne 0x5d0d8c
xor edx, edx
jmp 0x5d0d8e
mov edx, dword [edx]
mov esi, dword [edx + 8]
mov eax, ecx
shr eax, 2
and ecx, 3
cmp esi, eax
ja 0x5d0d9f
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 0x5d0dc1
fadd dword [0x6449c4]
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 0x5d0ddf
push 1
mov ecx, edi
call fcn.00410c3a
mov esi, dword [edi + 0xc]
add esi, dword [edi + 0x10]
mov eax, dword [edi + 8]
cmp eax, esi
ja 0x5d0dee
sub esi, eax
mov edx, dword [edi + 4]
cmp dword [edx + esi*4], 0
jne 0x5d0e0b
push 0xc
call fcn.0060a537
add esp, 4
test eax, eax
je 0x5d0e4b
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.0040cea0
inc dword [edi + 0x10]
inc ebp
add esp, 0xc
cmp ebp, dword [ebx + 0x88]
jb 0x5d0cf0
mov esi, dword [esp + 0x38]
push edi
mov ecx, esi
call fcn.0040c5d6
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.0060ab5e
push 0x67c3f0
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x30], vtable.std::bad_alloc.0
call fcn.0060ad57
int3
Function at 0x4034bd
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x4811d0
sub esp, 0xfc
push ebx
mov eax, 0x74
push esi
push edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov eax, 0x62
mov edi, ecx
lea ecx, [esp + 0xc8]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 2
mov dword [esp + 0x30], 3
mov dword [esp + 0x34], 4
mov dword [esp + 0x38], 5
mov dword [esp + 0x3c], 6
mov dword [esp + 0x40], 7
mov dword [esp + 0x44], 8
mov dword [esp + 0x48], 9
mov dword [esp + 0x4c], 0xa
mov dword [esp + 0x50], 0xb
mov dword [esp + 0x54], 0xc
mov dword [esp + 0x58], 0xd
mov dword [esp + 0x5c], 0xe
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x64], 0x10
mov dword [esp + 0x68], 0x11
mov dword [esp + 0x6c], 0x12
mov dword [esp + 0x70], 0x13
mov dword [esp + 0x74], 0x14
mov dword [esp + 0x78], 0x15
mov dword [esp + 0x7c], 0x16
mov dword [esp + 0x80], 0x17
mov dword [esp + 0x84], 0x18
mov dword [esp + 0x88], 0x19
mov dword [esp + 0x8c], 0x1a
mov dword [esp + 0x90], 0x1b
mov dword [esp + 0x94], 0x1c
mov dword [esp + 0x98], 0x1d
mov dword [esp + 0x9c], 0x4d
mov dword [esp + 0xa0], 0x4e
mov dword [esp + 0xa4], 0x4f
call fcn.0040a0fb
lea ecx, [esp + 0xa8]
call fcn.0040a0fb
lea ecx, [esp + 0xe8]
call fcn.0040a0fb
movzx eax, word [esp + 0x10c]
lea esi, [eax + eax*2]
add esi, esi
push 0
lea eax, [esp + 0xac]
add esi, esi
mov ecx, dword [esp + esi + 0x10]
push eax
push ecx
mov ecx, 0x7b40c0
call fcn.00404bf1
mov eax, dword [esp + esi + 0x10]
push 0
lea edx, [esp + 0xec]
push edx
push eax
mov ecx, 0x7b40c0
call fcn.00404bf1
mov edx, dword [esp + esi + 0x14]
push 0
lea ecx, [esp + 0xcc]
push ecx
push edx
mov ecx, 0x7b40c0
call fcn.00404bf1
push 0x3d8
call fcn.0060a537
add esp, 4
test eax, eax
je 0x4813bd
mov ecx, eax
call fcn.0040415b
mov esi, eax
jmp 0x4813bf
xor esi, esi
mov ebx, dword [esi]
lea ecx, [edi + 0x284]
call fcn.006045d0
push eax
push 0
lea eax, [esp + 0xf0]
push eax
movzx eax, word [edi + 0x23e]
lea ecx, [esp + 0xb4]
push ecx
movzx ecx, word [edi + 0x23c]
lea edx, [esp + 0xd8]
push edx
mov edx, dword [ebx + 0x40]
push eax
push ecx
push 0
push 0
mov ecx, esi
call edx
lea ecx, [esp + 0xe8]
mov dword [esi + 0x24], 1
call fcn.0041182e
lea ecx, [esp + 0xa8]
call fcn.0041182e
lea ecx, [esp + 0xc8]
call fcn.0041182e
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0xfc
ret 4
Function at 0x403891
Capabilities:
Print debug messages

Disassembly:
jmp 0x4b4680
push ebx
mov ebx, dword [esp + 8]
mov eax, dword [ebx]
push edi
mov edi, ecx
test eax, eax
jne 0x4b46a0
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, 0x7b5bb8
call fcn.0040d558
mov esi, eax
test esi, esi
je 0x4b46bf
mov ax, word [ebx + 6]
mov word [esi + 0x28e], ax
jmp 0x4b46ed
push str.CItemShopGridDialog::AddItem
push ebx
mov ecx, 0x7b5bb8
call fcn.00402f54
mov esi, eax
test esi, esi
jne 0x4b46db
pop esi
pop edi
pop ebx
ret 4
push esi
mov ecx, 0x7b5bb8
mov dword [esi + 0x24], 1
call fcn.0040f8cb
mov edx, dword [esi]
mov eax, dword [edx + 0x7c]
mov ecx, esi
call eax
movzx ecx, ax
push ecx
mov ecx, edi
call fcn.0040d1c5
movzx eax, ax
push esi
push eax
mov ecx, edi
call fcn.0040ac27
pop esi
pop edi
pop ebx
ret 4

Function at 0x40418d
Capabilities:
Get file size

Disassembly:
jmp 0x595f60
sub esp, 0x39c
push 0x1ff
lea eax, [esp + 0x119]
push 0
push eax
mov byte [esp + 0x120], 0
call fcn.00609d70
mov eax, dword [esp + 0x3b4]
mov ecx, dword [esp + 0x3b0]
mov edx, dword [esp + 0x3ac]
add esp, 0xc
test eax, eax
je 0x595fb8
push eax
push ecx
push edx
lea eax, [esp + 0x120]
push str._s_line:_d__msg:_s_
push eax
call fcn.0060a295
add esp, 0x14
jmp 0x595fcf
push ecx
push edx
lea eax, [esp + 0x11c]
push str._s_line:_d_
push eax
call fcn.0060a295
add esp, 0x10
push 0xff
lea ecx, [esp + 0x19]
push 0
push ecx
mov byte [esp + 0x20], 0
call fcn.00609d70
add esp, 0xc
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [esp + 0xa]
movzx ecx, word [esp + 6]
movzx edx, word [esp + 4]
push eax
push ecx
push edx
lea eax, [esp + 0x20]
push str.._Log_Debug__4d_02d_02d.txt
push eax
call fcn.0060a295
add esp, 0x14
cmp dword [0x7c8dd4], 0
jne 0x5960bc
push esi
push edi
push 0
lea ecx, [esp + 0x320]
push ecx
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov edi, eax
cmp edi, 0xffffffff
jne 0x59608c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x1c]
push 0x659e38
push eax
call fcn.0060a237
mov esi, eax
add esp, 8
test esi, esi
je 0x5960ba
call fcn.0040de40
push eax
lea ecx, [esp + 0x120]
push ecx
push str._stime:_s_n
push esi
call fcn.0060b581
push esi
call fcn.00609f36
add esp, 0x14
pop edi
pop esi
add esp, 0x39c
ret
lea edx, [esp + 8]
push edx
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 0x596049
mov dword [0x7c8dd4], 1
pop edi
pop esi
add esp, 0x39c
ret
Function at 0x405592
Capabilities:
Create raw socket
Initialize winsock library
Set socket configuration

Disassembly:
jmp 0x582fa0
sub esp, 0x194
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.00609d70
add esp, 0xc
lea edx, [esp + 8]
push edx
push 0x102
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x582fe0
xor al, al
pop esi
add esp, 0x194
ret
push 1
push 3
push 2
call sub.WSOCK32.dll_socket
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x582fd6
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 0x582fd6
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
cmp eax, 0xffffffff
setne al
pop esi
add esp, 0x194
ret
Function at 0x405ba0
Capabilities:
Create directory
Write file on windows

Disassembly:
jmp 0x421f50
sub esp, 0x44
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 [0x7b4d44]
movzx ecx, word [eax + 0x129]
push ecx
lea edx, [esp + 0x10]
push str.._data_aiconfig__d.dat
push edx
call fcn.0060a295
push 0x64497c
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.0060a24e
mov eax, dword [esp + 0x20]
add esp, 0x18
test eax, eax
je 0x421fcb
push eax
push 1
push 0x1c64
add edi, 0xec
push edi
call fcn.0060a101
mov edx, dword [esp + 0x18]
push edx
call fcn.00609f36
add esp, 0x14
pop edi
pop esi
add esp, 0x44
ret
Function at 0x4066f9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x5d0ae0
sub esp, 0x24
push ebx
push ebp
push esi
mov ebx, ecx
push edi
lea edi, [ebx + 0xa0]
mov ecx, edi
call fcn.00406dde
mov ebp, 1
cmp dword [ebx + 0x88], ebp
jbe 0x5d0c63
fldz
fstp dword [esp + 0x20]
fld dword [esp + 0x3c]
fmul qword [0x6479e0]
fstp qword [esp + 0x14]
jmp 0x5d0b20
mov ecx, dword [ebx + 0x78]
mov edx, dword [ebx + 0x84]
xor eax, eax
test ecx, ecx
je 0x5d0b37
mov ecx, dword [ecx]
test ecx, ecx
je 0x5d0b37
mov eax, dword [ecx]
lea ecx, [edx + ebp]
test eax, eax
je 0x5d0b4a
mov eax, dword [eax]
test eax, eax
je 0x5d0b4a
mov eax, dword [eax]
test eax, eax
jne 0x5d0b4e
xor edx, edx
jmp 0x5d0b50
mov edx, dword [eax]
mov esi, dword [edx + 8]
mov eax, ecx
shr eax, 2
and ecx, 3
cmp esi, eax
ja 0x5d0b61
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 0x5d0b83
fadd dword [0x6449c4]
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 0x5d0ba6
mov eax, dword [eax]
test eax, eax
je 0x5d0ba6
mov edx, dword [eax]
add ecx, ebp
test edx, edx
je 0x5d0bb8
mov edx, dword [edx]
test edx, edx
je 0x5d0bb8
mov edx, dword [edx]
test edx, edx
jne 0x5d0bbc
xor edx, edx
jmp 0x5d0bbe
mov edx, dword [edx]
mov esi, dword [edx + 8]
mov eax, ecx
shr eax, 2
and ecx, 3
cmp esi, eax
ja 0x5d0bcf
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 0x5d0bf1
fadd dword [0x6449c4]
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 0x5d0c0f
push 1
mov ecx, edi
call fcn.00410c3a
mov esi, dword [edi + 0xc]
add esi, dword [edi + 0x10]
mov eax, dword [edi + 8]
cmp eax, esi
ja 0x5d0c1e
sub esi, eax
mov edx, dword [edi + 4]
cmp dword [edx + esi*4], 0
jne 0x5d0c3b
push 0xc
call fcn.0060a537
add esp, 4
test eax, eax
je 0x5d0c7b
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.0040cea0
inc dword [edi + 0x10]
inc ebp
add esp, 0xc
cmp ebp, dword [ebx + 0x88]
jb 0x5d0b20
mov esi, dword [esp + 0x38]
push edi
mov ecx, esi
call fcn.0040c5d6
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.0060ab5e
push 0x67c3f0
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x30], vtable.std::bad_alloc.0
call fcn.0060ad57
int3