joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402db0
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x24], 0x10
lea eax, [esi + 0x10]
jb 0x402dbf
mov eax, dword [eax]
push 0
push 0
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x402dff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x402dff
cmp eax, 6
jbe 0x402df1
cmp eax, 0xd
jne 0x402dff
push edi
mov byte [esi + 0x28], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
ret
push edi
mov byte [esi + 0x28], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
ret

Function at 0x402e50
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x1000
mov esi, ecx
mov dword [ebp - 4], 0
call fcn.00414a3b
push 0x1000
mov edi, eax
push 0
push edi
call fcn.00416ea0
add esi, 0x10
add esp, 0x10
cmp dword [esi + 0x14], 0x10
jb 0x402e86
mov esi, dword [esi]
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x14], 0x10
jb 0x402e91
mov eax, dword [eax]
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 0x14], 0x10
jb 0x402e9c
mov ecx, dword [ecx]
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x14], 0x10
jb 0x402ea7
mov edx, dword [edx]
push esi
push 0x1000
push edi
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, dword [ebp + 8]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [edi], 0
jne 0x402ee5
xor ecx, ecx
push ecx
push edi
mov ecx, esi
call fcn.004015c0
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov ecx, edi
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402ef0
sub ecx, edx
push ecx
push edi
mov ecx, esi
call fcn.004015c0
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x403fb0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4716e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x403fe4
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x403fe4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [ebx]
test al, al
je 0x404097
push esi
mov esi, ebx
mov ecx, ebx
cmp al, 0x2f
je 0x403ffb
cmp al, 0x5c
jne 0x403ffd
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x403ff3
cmp esi, ebx
je 0x404040
sub esi, ebx
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00416850
add esp, 0xc
cmp esi, 0x104
jae 0x4040a7
lea eax, [ebp - 0x20c]
push eax
push edi
mov byte [ebp + esi - 0x20c], 0
call fcn.00403fb0
add esp, 8
mov byte [ebp - 0x108], 0
pop esi
test edi, edi
je 0x404061
push edi
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00416f30
add esp, 0xc
push ebx
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00416f85
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x404097
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004163f4
mov esp, ebp
pop ebp
ret
call fcn.004159a2
int3

Function at 0x4047e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4048a1
cmp dword [esi + 4], 0xffffffff
jne 0x4048a1
push edi
lea edi, [esi + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404811
sub ecx, edx
mov al, byte [ecx + esi + 0x13f]
cmp al, 0x5c
je 0x40483c
cmp al, 0x2f
je 0x40483c
push 0x45d054
push 0x104
push edi
call fcn.00416f85
add esp, 0xc
mov edi, dword [ebp + 0x10]
cmp edi, 1
jne 0x404862
push edi
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x404862
pop edi
mov eax, 0x2000000
pop esi
pop ebp
ret 0xc
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00407280
add esp, 0x10
test eax, eax
jne 0x404882
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebp
ret 0xc
push eax
call fcn.00407840
add esp, 4
xor ecx, ecx
test eax, eax
mov edx, 0x200
mov dword [esi], eax
cmove ecx, edx
pop edi
mov eax, ecx
pop esi
pop ebp
ret 0xc
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x404d50
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movsx eax, byte [ebp + 0xc]
mov ecx, dword [edx]
xor eax, ecx
shr ecx, 8
and eax, 0xff
mov eax, dword [eax*4 + 0x45d090]
xor eax, ecx
movzx ecx, al
add ecx, dword [edx + 4]
mov dword [edx], eax
mov eax, dword [edx + 8]
imul ecx, ecx, 0x8088405
inc ecx
mov dword [edx + 4], ecx
shr ecx, 0x18
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x45d090]
mov dword [edx + 8], eax
pop ebp
ret
Function at 0x4073b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4716e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, ebx
imul esi, dword [ebp + 0x10]
cmp byte [edi], 0
mov dword [ebp - 8], eax
je 0x4073f8
push 0
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4073f3
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x407420
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x407409
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp - 8]
call fcn.00416850
add esp, 0xc
add dword [edi + 0x1c], esi
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor edx, edx
div ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.004163f4
mov esp, ebp
pop ebp
ret

Function at 0x407440
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x40744e
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x40752d
push edi
mov edi, esi
shr edi, 3
jmp 0x407470
movzx ecx, byte [edx]
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x45d090]
movzx ecx, byte [edx + 1]
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x45d090]
movzx ecx, byte [edx + 2]
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x45d090]
movzx ecx, byte [edx + 3]
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x45d090]
movzx ecx, byte [edx + 4]
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x45d090]
movzx ecx, byte [edx + 5]
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x45d090]
movzx ecx, byte [edx + 6]
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x45d090]
movzx ecx, byte [edx + 7]
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x45d090]
add edx, 8
sub esi, 8
dec edi
jne 0x407470
pop edi
test esi, esi
je 0x40754c
movzx ecx, byte [edx]
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x45d090]
lea edx, [edx + 1]
dec esi
jne 0x407531
not eax
pop esi
pop ebp
ret
Function at 0x408430
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4716e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
mov edi, dword [ebp + 8]
cmp byte [edi], 0
je 0x40847a
cmp byte [edi + 1], 0
je 0x408468
push 2
push 0
push 0
push dword [edi + 4]
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x408480
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004163f4
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x18]
mov dword [edi + 0x1c], eax
cmp byte [edi], 0
je 0x40849f
cmp byte [edi + 1], 0
je 0x40849b
push 1
push 0
push 0
push dword [edi + 4]
call ecx
sub eax, dword [edi + 0xc]
jmp 0x4084a2
xor eax, eax
jmp 0x4084a2
mov eax, dword [edi + 0x1c]
push ebx
mov ebx, 0xffff
cmp eax, ebx
push esi
cmovb ebx, eax
push 0x404
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], ebx
call fcn.00417e75
mov esi, eax
add esp, 4
test esi, esi
jne 0x4084db
pop esi
pop ebx
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004163f4
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0xc], 0xffffffff
cmp ebx, eax
jbe 0x4085d7
nop
mov ecx, dword [ebp - 0x10]
add eax, 0x400
cmp eax, ebx
mov edx, eax
cmova edx, ebx
mov ebx, dword [ebp - 0x10]
sub ecx, edx
sub ebx, ecx
cmp ebx, 0x404
mov eax, 0x404
cmova ebx, eax
cmp byte [edi], 0
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], ecx
je 0x40853e
cmp byte [edi + 1], 0
je 0x4085d7
mov eax, dword [edi + 0xc]
push 0
push 0
add eax, ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x408541
mov dword [edi + 0x1c], ecx
cmp byte [edi], 0
mov ecx, ebx
mov dword [ebp - 0x14], ebx
je 0x408569
push 0
lea eax, [ebp - 8]
push eax
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x408564
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x408592
mov edx, dword [edi + 0x1c]
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
jbe 0x40857c
mov ecx, dword [edi + 0x18]
sub ecx, edx
mov dword [ebp - 0x14], ecx
push ecx
mov ecx, dword [edi + 0x14]
add ecx, edx
push ecx
push esi
call fcn.00416850
mov eax, dword [ebp - 0x14]
add esp, 0xc
add dword [edi + 0x1c], eax
xor edx, edx
div ebx
cmp eax, 1
jne 0x4085d7
lea eax, [ebx - 3]
test eax, eax
js 0x4085c2
dec eax
cmp byte [eax + esi], 0x50
jne 0x4085be
cmp byte [eax + esi + 1], 0x4b
jne 0x4085be
cmp byte [eax + esi + 2], 5
jne 0x4085be
cmp byte [eax + esi + 3], 6
je 0x4085f4
test eax, eax
jns 0x4085a2
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4085d7
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
cmp eax, ebx
jb 0x4084f0
push esi
call fcn.00417e3d
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add esp, 4
xor ecx, ebp
pop esi
pop ebx
pop edi
call fcn.004163f4
mov esp, ebp
pop ebp
ret
add eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4085c5
Function at 0x408600
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4716e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
cmp byte [esi], 0
mov dword [ebp - 0xc], ebx
mov edi, 1
je 0x408647
push 0
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 5]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x408642
mov byte [esi + 8], 1
mov edi, dword [ebp - 0xc]
jmp 0x408674
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x408658
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x14]
add eax, ebx
push edi
push eax
lea eax, [ebp - 5]
push eax
call fcn.00416850
lea eax, [ebx + edi]
mov ebx, dword [ebp - 0xc]
add esp, 0xc
mov dword [esi + 0x1c], eax
cmp edi, 1
jne 0x408692
movzx eax, byte [ebp - 5]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004163f4
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x40867f
cmp byte [esi + 8], 0
je 0x40867f
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.004163f4
mov esp, ebp
pop ebp
ret

Function at 0x4087f0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov dl, byte [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 8]
mov ecx, esi
and ecx, 0xfffd
or ecx, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
mov ecx, dword [edi]
shr eax, 8
xor dl, al
movsx eax, dl
xor eax, ecx
and eax, 0xff
shr ecx, 8
mov eax, dword [eax*4 + 0x45d090]
xor eax, ecx
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x45d090]
mov al, dl
mov dword [edi + 8], esi
pop edi
pop esi
pop ebp
ret
Function at 0x40a300
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444669
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4716e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x5c], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 4], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x2c], 0xf
mov dword [esi + 0x28], 0
mov byte [esi + 0x18], 0
mov dword [esi + 0x44], 0xf
mov dword [esi + 0x40], 0
mov byte [esi + 0x30], 0
push 0x2f
push str.Content_Type:_application_x_www_form_urlencoded
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
call fcn.004015c0
push 0xe
push str.localhost:8080
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.004015c0
push 0
push 0x45eb53
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004015c0
cmp dword [ebp - 0x14], 0x10
mov dword [esi + 0x54], 0
jb 0x40a409
push dword [ebp - 0x28]
call fcn.0041572d
add esp, 4
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x40a42c
push dword [ebp - 0x40]
call fcn.0041572d
add esp, 4
cmp dword [ebp - 0x44], 0x10
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jb 0x40a44f
push dword [ebp - 0x58]
call fcn.0041572d
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004163f4
mov esp, ebp
pop ebp
ret
Function at 0x40a770
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x4716e0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x4c], 0
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x40c], ecx
jne 0x40a7a7
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004163f4
mov esp, ebp
pop ebp
ret 4
push edi
xor eax, eax
lea edi, [ecx + 0x50]
push ebx
mov dword [ebp - 0x408], eax
push edi
push 0x3fc
lea eax, [ebp - 0x404]
push eax
push dword [ecx + 0x4c]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [ebp - 0x40c]
test eax, eax
je 0x40a7b4
mov edi, dword [edi]
cmp edi, 0x3fc
ja 0x40a930
test edi, edi
je 0x40a917
cmp edi, 0x400
jae 0x40a952
mov ecx, dword [esi + 0x14]
mov byte [ebp + edi - 0x404], 0
cmp ecx, 0x10
jb 0x40a80a
mov eax, dword [esi]
jmp 0x40a80c
mov eax, esi
lea edx, [ebp - 0x404]
cmp edx, eax
jb 0x40a861
cmp ecx, 0x10
jb 0x40a81f
mov edx, dword [esi]
jmp 0x40a821
mov edx, esi
mov eax, dword [esi + 0x10]
add eax, edx
lea edx, [ebp - 0x404]
cmp eax, edx
jbe 0x40a861
cmp ecx, 0x10
jb 0x40a84a
mov ecx, dword [esi]
mov eax, edx
push edi
sub eax, ecx
push eax
push esi
mov ecx, esi
call fcn.00402680
jmp 0x40a8e4
mov ecx, esi
push edi
lea eax, [ebp - 0x404]
sub eax, ecx
push eax
push esi
call fcn.00402680
jmp 0x40a8e4
mov edx, dword [esi + 0x10]
or eax, 0xffffffff
sub eax, edx
cmp eax, edi
jbe 0x40a948
test edi, edi
je 0x40a8e4
lea ebx, [edx + edi]
cmp ebx, 0xfffffffe
ja 0x40a948
cmp ecx, ebx
jae 0x40a89c
push edx
push ebx
mov ecx, esi
call fcn.004011a0
test ebx, ebx
je 0x40a8e4
cmp dword [esi + 0x14], 0x10
jb 0x40a8b5
mov ecx, dword [esi]
jmp 0x40a8b7
test ebx, ebx
jne 0x40a892
mov dword [esi + 0x10], ebx
cmp ecx, 0x10
jb 0x40a8ae
mov eax, dword [esi]
mov byte [eax], bl
jmp 0x40a8e4
mov eax, esi
mov byte [eax], 0
jmp 0x40a8e4
mov ecx, esi
test edi, edi
je 0x40a8d1
push edi
lea eax, [ebp - 0x404]
push eax
mov eax, dword [esi + 0x10]
add eax, ecx
push eax
call fcn.00416850
add esp, 0xc
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], ebx
jb 0x40a8de
mov eax, dword [esi]
jmp 0x40a8e0
mov eax, esi
mov byte [eax + ebx], 0
mov edi, dword [ebp - 0x40c]
push 0x45eb47
push dword [edi + 0x50]
add edi, 0x50
lea eax, [ebp - 0x404]
push eax
call fcn.00416f30
mov eax, dword [ebp - 0x408]
mov ecx, dword [ebp - 0x40c]
add esp, 0xc
add eax, dword [edi]
jmp 0x40a7ae
mov eax, dword [ebp - 0x408]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004163f4
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
mov eax, 0xfffffffe
pop esi
call fcn.004163f4
mov esp, ebp
pop ebp
ret 4
push str.string_too_long
call fcn.004149df
call fcn.004159a2
int3
Function at 0x40bc90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44487a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4716e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.00414a73
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x40bd36
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], str.bad_locale_name
call fcn.00418c8a
push 0x46cb94
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], vtable.std::runtime_error.0
call fcn.00416403
push edi
push esi
call fcn.00414f75
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004163f4
mov esp, ebp
pop ebp
ret 4

Function at 0x40c590
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x40c5f2
mov eax, dword [esi + 0x10]
push edi
push 1
push dword [eax + 4]
push dword [eax]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
push 5
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esi + 0x1c], 0
mov edi, eax
jne 0x40c5ec
mov eax, dword [esi + 0x10]
cmp dword [eax + 0x10], 1
jle 0x40c5ea
lea eax, [esi + 8]
push eax
push 0
push esi
push 0x40e070
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret 8
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x40d1d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444948
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4716e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x40d2f5
cmp byte [ebx + 0x45], 0
je 0x40d2f5
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x40d224
xor al, al
jmp 0x40d2f7
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
cmp ecx, 0x10
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], 8
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
mov ecx, dword [ebx + 0x40]
lea eax, [ebp - 0x2c]
mov edx, dword [ecx]
push eax
mov eax, dword [ebp - 0x18]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x40d28e
dec eax
je 0x40d292
sub eax, 2
je 0x40d2de
xor bl, bl
jmp 0x40d2e0
mov byte [ebx + 0x45], 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, edx
sub esi, eax
je 0x40d2c4
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [ebp - 0x28]
cmovae eax, edx
push 1
push eax
call fcn.00417a4e
add esp, 0x10
cmp esi, eax
jne 0x40d28a
cmp byte [ebx + 0x45], 0
je 0x40d2de
test esi, esi
jne 0x40d254
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.004013e0
jmp 0x40d254
mov bl, 1
cmp dword [ebp - 0x14], 0x10
jb 0x40d2f1
push dword [ebp - 0x28]
call fcn.0041572d
add esp, 4
mov al, bl
jmp 0x40d2f7
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004163f4
mov esp, ebp
pop ebp
ret
Function at 0x40e690
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444ae8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4716e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [ebp + 8]
cmp ecx, 0xffffffff
jne 0x40e6cc
xor eax, eax
jmp 0x40e85c
mov eax, dword [ebx + 0x20]
mov edx, dword [eax]
test edx, edx
je 0x40e6fa
mov esi, dword [ebx + 0x30]
mov edi, dword [esi]
lea eax, [edi + edx]
cmp edx, eax
jae 0x40e6fa
lea eax, [edi - 1]
mov dword [esi], eax
mov ecx, dword [ebx + 0x20]
mov edx, dword [ecx]
lea eax, [edx + 1]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov byte [edx], al
jmp 0x40e85c
cmp dword [ebx + 0x50], 0
jne 0x40e708
or eax, 0xffffffff
jmp 0x40e85c
mov edx, dword [ebx + 0xc]
lea eax, [ebx + 0x44]
cmp dword [edx], eax
jne 0x40e729
mov eax, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x3c]
mov dword [edx], eax
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
sub ecx, ecx
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
cmp dword [ebx + 0x40], 0
jne 0x40e74e
push dword [ebx + 0x50]
movsx eax, cl
push eax
call fcn.004185b1
or ecx, 0xffffffff
add esp, 8
cmp eax, ecx
cmovne ecx, dword [ebp + 8]
mov eax, ecx
jmp 0x40e85c
mov byte [ebp - 0x14], cl
mov ecx, 0xf
mov byte [ebp - 0x2c], 0
xorps xmm0, xmm0
movq qword [ebp - 0x2c], xmm0
lea eax, [ebp - 0x2c]
cmp ecx, 0x10
cmovae eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 8
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0x10
mov esi, dword [ebx + 0x40]
lea eax, [ebp - 0x30]
mov edi, dword [esi]
push eax
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x2c]
cmovae edx, dword [ebp - 0x2c]
add eax, ecx
push eax
push edx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x13]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebx + 0x48]
push eax
mov ecx, esi
call dword [edi + 0x1c]
test eax, eax
js 0x40e846
cmp eax, 1
jg 0x40e826
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
cmp edi, 0x10
lea eax, [ebp - 0x2c]
cmovae eax, ecx
sub esi, eax
je 0x40e7f7
push dword [ebx + 0x50]
lea eax, [ebp - 0x2c]
push esi
cmp edi, 0x10
cmovae eax, ecx
push 1
push eax
call fcn.00417a4e
add esp, 0x10
cmp esi, eax
jne 0x40e846
lea eax, [ebp - 0x14]
mov byte [ebx + 0x45], 1
cmp dword [ebp - 0x34], eax
jne 0x40e821
test esi, esi
jne 0x40e781
cmp dword [ebp - 0x1c], 0x20
jae 0x40e846
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.004013e0
jmp 0x40e781
mov ebx, dword [ebp + 8]
jmp 0x40e849
cmp eax, 3
jne 0x40e846
push dword [ebx + 0x50]
push dword [ebp - 0x14]
call fcn.0040b790
or ecx, 0xffffffff
add esp, 8
test al, al
cmovne ecx, dword [ebp + 8]
mov ebx, ecx
jmp 0x40e849
or ebx, 0xffffffff
cmp dword [ebp - 0x18], 0x10
jb 0x40e85a
push dword [ebp - 0x2c]
call fcn.0041572d
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004163f4
mov esp, ebp
pop ebp
ret 4