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

Disassembly:
push 0xffffffffffffffff
push 0x56b718
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x5bf500]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
mov dword [esp + 8], 0
push eax
call fcn.004f83f0
mov esi, dword [esp + 0x2c]
push 1
push eax
push esi
mov dword [esp + 0x30], 0
call fcn.004f4a60
mov eax, dword [esp + 0x1c]
add esp, 0x10
test eax, eax
je 0x4f82cf
push eax
call fcn.00443e80
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret

Function at 0x4f82f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x56b718
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x5bf500]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
mov dword [esp + 8], 0
push eax
call fcn.004f8270
mov esi, dword [esp + 0x2c]
push 1
push eax
push esi
mov dword [esp + 0x30], 0
call fcn.004f4a60
mov eax, dword [esp + 0x1c]
add esp, 0x10
test eax, eax
je 0x4f834f
push eax
call fcn.00443e80
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret

Function at 0x4f8370
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x56b718
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x5bf500]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
mov dword [esp + 8], 0
push eax
call fcn.004f82f0
mov esi, dword [esp + 0x2c]
push 1
push eax
push esi
mov dword [esp + 0x30], 0
call fcn.004f4a60
mov eax, dword [esp + 0x1c]
add esp, 0x10
test eax, eax
je 0x4f83cf
push eax
call fcn.00443e80
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret

Function at 0x4f83f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x56b718
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x5bf500]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
mov dword [esp + 8], 0
push eax
call fcn.004f8170
mov esi, dword [esp + 0x2c]
push 0x1bb8d
push eax
push esi
mov dword [esp + 0x30], 0
call fcn.004f4a60
mov eax, dword [esp + 0x1c]
add esp, 0x10
test eax, eax
je 0x4f8452
push eax
call fcn.00443e80
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret
Function at 0x4fd110
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x56c0b0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5bf500]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x30]
push esi
mov dword [esp + 0x18], esi
call fcn.0043a9c0
add esp, 4
test esi, esi
jne 0x4fd151
xor ebx, ebx
jmp 0x4fd15c
push esi
call fcn.004edb80
add esp, 4
mov ebx, eax
mov dword [esp + 0x18], ebx
push 1
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], 0
call fcn.004eaa60
mov dword [esp + 0x30], 0x572f68
push esi
push ebx
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 1
call fcn.004fcf90
mov eax, dword [edi]
mov ecx, edi
push esi
push ebx
mov byte [esp + 0x2c], 0
mov dword [esp + 0x38], 0x572f68
call dword [eax + 0xc]
xor al, al
mov dword [esp + 0x24], 0xffffffff
mov edi, ebx
mov ecx, esi
rep stosb byte es:[edi], al
push ebx
call fcn.00443e80
add esp, 4
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret 8

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

Disassembly:
push 0xffffffffffffffff
push 0x56c268
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5bf500]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [esp + 0x44]
push 0
call fcn.004eaa60
mov dword [ebx + 0xc], 0xffffffff
mov byte [ebx + 0x10], 0
mov dword [ebx], 0x5726f8
mov dword [ebx + 4], 0x5727b0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x48]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
mov byte [esp + 0x10], 0
push 1
lea eax, [esp + 0x14]
mov dword [esp + 0x40], 3
push eax
lea eax, [esp + 0x30]
push str.InputBuffer
push eax
call fcn.0043ae90
add esp, 0x10
push eax
mov ecx, ebx
mov byte [esp + 0x40], 4
call fcn.004ea280
mov ecx, dword [esp + 0x2c]
mov byte [esp + 0x3c], 3
test ecx, ecx
je 0x4fe3bd
mov eax, dword [ecx]
push 1
call dword [eax]
mov edx, dword [esp + 0x24]
xor al, al
mov ecx, dword [esp + 0x20]
mov edi, edx
rep stosb byte es:[edi], al
push edx
mov dword [esp + 0x40], 0xffffffff
call fcn.00443e80
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x30
ret 8
Function at 0x50ef00
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x56cad9
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5bf500]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x10], 0
cmp dword [0x5c8524], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], esi
jne 0x50ef5c
call fcn.0050e4a0
mov dword [0x5c8524], 0x4ff510
mov dword [esi], 0x5730f4
push 8
mov dword [esi + 8], 2
call fcn.004edb80
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0
mov dword [eax + 4], 0
mov ecx, dword [esi + 0xc]
mov dword [ecx], 0
push ebx
push edi
push esi
mov dword [esp + 0x30], 0
mov dword [esp + 0x20], 1
call fcn.00504120
add esp, 0x10
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 8
Function at 0x40ce09
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [str.zX.]
jne 0x40ce13
repz ret
jmp fcn.00413639

Function at 0x413b7e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004104e0
and dword [ebp - 4], 0
cmp dword [0x423e1c], 0
mov ebx, eax
jne 0x413c2f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x413ce0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x413ce0
push eax
call fcn.0041046e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423e1c], eax
call esi
push eax
call fcn.0041046e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423e20], eax
call esi
push eax
call fcn.0041046e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x423e24], eax
call esi
push eax
call fcn.0041046e
pop ecx
mov dword [0x423e2c], eax
test eax, eax
je 0x413c2f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041046e
pop ecx
mov dword [0x423e28], eax
mov eax, dword [0x423e28]
cmp eax, ebx
je 0x413c87
cmp dword [0x423e2c], ebx
je 0x413c87
push eax
call fcn.004104e9
push dword [0x423e2c]
mov esi, eax
call fcn.004104e9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x413c87
test edi, edi
je 0x413c87
call esi
test eax, eax
je 0x413c7e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x413c7e
test byte [ebp - 0xc], 1
jne 0x413c87
or dword [ebp + 0x10], 0x200000
jmp 0x413cc0
mov eax, dword [0x423e20]
cmp eax, ebx
je 0x413cc0
push eax
call fcn.004104e9
pop ecx
test eax, eax
je 0x413cc0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x413cc0
mov eax, dword [0x423e24]
cmp eax, ebx
je 0x413cc0
push eax
call fcn.004104e9
pop ecx
test eax, eax
je 0x413cc0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423e1c]
call fcn.004104e9
pop ecx
test eax, eax
je 0x413ce0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x413ce2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4013b0
Capabilities:
Delete directory
Delete file

Disassembly:
sub esp, 0x214
mov eax, dword [0x419058]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
call fcn.00401330
mov edi, 0x14
call fcn.00401370
cmp eax, 0xffffffff
je 0x401526
push ebx
mov ebx, dword [esp + 0x220]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test edi, edi
jle 0x401523
test bl, bl
je 0x401458
cmp bl, 1
jne 0x401510
mov eax, dword [0x41a554]
mov ecx, dword [0x41a550]
push 0
push 0x3c
push eax
push ecx
call fcn.00405fb0
push 0
push 0x3c
push edx
push eax
call fcn.00405fb0
push 0
push 0x18
push edx
push eax
call fcn.00405fb0
mov ecx, dword [0x41a668]
sub ecx, eax
mov eax, dword [0x41a66c]
sbb eax, edx
mov dword [esp + 0x14], eax
js 0x401510
jg 0x401458
cmp ecx, 2
jb 0x401510
mov ecx, dword [0x41a538]
push ecx
call fcn.004013a0
add esp, 4
cmp eax, 1
jne 0x401509
push 0x415274
push 0x41a55c
call fcn.0041163b
add esp, 8
test eax, eax
je 0x401510
push 0x415270
push 0x41a55c
call fcn.0041163b
add esp, 8
test eax, eax
je 0x401510
xor eax, eax
mov cl, byte [eax + 0x41a55c]
mov byte [esp + eax + 0x18], cl
add eax, 1
test cl, cl
jne 0x4014a2
lea edx, [esp + 0x11c]
push 0x104
push edx
call fcn.004061c6
add esp, 8
lea eax, [esp + 0x18]
push eax
call esi
test eax, eax
jne 0x401504
lea ecx, [esp + 0x18]
push ecx
call fcn.004062d6
call fcn.00401310
push ebx
call fcn.004013b0
lea edx, [esp + 0x124]
push edx
call fcn.004062d6
add esp, 0xc
lea eax, [esp + 0x18]
push eax
call esi
call fcn.00401330
sub edi, 1
jmp 0x401510
push 0x41a55c
call ebp
call fcn.00401380
call fcn.00401370
cmp eax, 0xffffffff
jne 0x4013f3
pop esi
pop ebp
pop ebx
call fcn.00401310
mov ecx, dword [esp + 0x214]
pop edi
xor ecx, esp
call fcn.00405cae
add esp, 0x214
ret
Function at 0x402110
Capabilities:
Delete file

Disassembly:
sub esp, 0x144
mov eax, dword [0x419058]
xor eax, esp
mov dword [esp + 0x140], eax
push esi
mov esi, dword [esp + 0x14c]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call edi
test eax, eax
jne 0x402155
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x402152
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
mov ecx, dword [esp + 0x148]
pop edi
pop esi
xor ecx, esp
call fcn.00405cae
add esp, 0x144
ret 4

Function at 0x402170
Capabilities:
Delete directory

Disassembly:
sub esp, 0x210
mov eax, dword [0x419058]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push esi
push edi
lea eax, [esp + 0x114]
push 0x104
push eax
mov ebx, ecx
call fcn.004061c6
push 0x41a328
call fcn.004062d6
mov esi, dword [ebx + 8]
add esp, 0xc
xor edi, edi
test esi, esi
je 0x4021c5
lea ecx, [esi + 8]
push ecx
mov ecx, ebx
call fcn.00402110
mov esi, dword [esi]
add edi, 1
test esi, esi
jne 0x4021b1
push str.compress.dll
mov ecx, ebx
call fcn.00402110
push str.debug.txt
mov ecx, ebx
call fcn.00402110
add edi, 1
je 0x402240
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea esp, [esp]
mov esi, dword [ebx + 8]
test esi, esi
je 0x40223a
lea eax, [esi + 8]
lea edx, [esp + 0x14]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x402200
lea edx, [esp + 0x14]
push edx
mov ecx, ebx
call fcn.00401f60
lea eax, [esp + 0x14]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402220
sub eax, edx
je 0x402234
lea eax, [esp + 0x14]
push eax
call ebp
mov esi, dword [esi]
test esi, esi
jne 0x4021f7
sub edi, 1
jne 0x4021f0
pop ebp
lea ecx, [esp + 0x114]
push ecx
call fcn.004062d6
mov ecx, dword [esp + 0x21c]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.00405cae
add esp, 0x210
ret
Function at 0x4023a0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4023d1
pop edi
xor al, al
pop ebx
pop ecx
ret 8
push ebp
push esi
push 0
push ebx
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0
lea ecx, [esp + 0x14]
push ecx
push ebp
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + ebp - 0xc], 0xbc614e
jne 0x4024b3
mov edx, dword [esi + ebp - 0x10]
mov dword [0x41a320], edx
mov eax, dword [esi + ebp - 8]
mov dword [edi + 0xc], eax
mov ebx, dword [esi + ebp - 4]
sub ebp, ebx
push ebp
push 0
mov dword [edi + 4], ebp
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [edi + 4]
push ecx
add ebx, esi
push ebx
push eax
mov dword [edi], eax
call fcn.004068f0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esi, dword [esp + 0x1c]
push esi
mov ecx, edi
call fcn.00402110
push 0
push 0x80
push 1
push 0
push 2
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4024a2
mov eax, dword [edi + 4]
mov ecx, dword [edi]
push 0
lea edx, [esp + 0x1c]
push edx
push eax
push ecx
push esi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.00401e80
pop esi
pop ebp
pop edi
mov al, 1
pop ebx
pop ecx
ret 8
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov esi, edx
sub esi, eax
nop
mov cl, byte [eax]
mov byte [esi + eax], cl
add eax, 1
test cl, cl
jne 0x4024c0
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4024d1
sub eax, esi
mov byte [eax + edx - 4], cl
add edx, 0xffffffff
mov al, byte [edx + 1]
add edx, 1
test al, al
jne 0x4024e3
mov eax, dword [str..pck]
pop esi
mov dword [edx], eax
mov cl, byte [0x4153c8]
pop ebp
pop edi
mov byte [edx + 4], cl
mov al, 1
pop ebx
pop ecx
ret 8
Function at 0x402510
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10c
mov eax, dword [0x419058]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
mov ebx, dword [esp + 0x118]
push esi
mov esi, dword [esp + 0x118]
lea edx, [esp + 0xc]
push edi
mov edi, ecx
mov eax, esi
sub edx, esi
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x402540
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call fcn.00401f60
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
call fcn.00402020
push esi
mov ecx, edi
call fcn.00402110
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402590
xor al, al
jmp 0x4025b0
mov eax, dword [esp + 0x124]
push 0
lea edx, [esp + 0x10]
push edx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00405cae
add esp, 0x10c
ret 0xc
Function at 0x402d30
Capabilities:
Allocate or change rwx memory

Disassembly:
cmp dword [esp + 8], 0x40
jne 0x402d55
mov eax, dword [esp + 4]
push 0x40
push 0x3000
lea ecx, [eax*4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
ret 8
push esi
mov esi, dword [esp + 8]
xor ecx, ecx
mov eax, esi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00405c2e
add esp, 4
test esi, esi
mov edx, eax
jbe 0x402d87
push edi
xor eax, eax
mov ecx, esi
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, edx
pop edi
pop esi
ret 8

Function at 0x402e40
Capabilities:
Read file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
lea eax, [esp + 4]
push eax
push 4
push ecx
push edx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp], 0
setne al
pop ecx
ret 8

Function at 0x402e70
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x14]
lea eax, [esi + 1]
push eax
mov dword [esp + 8], 0
call fcn.00405c2e
mov ecx, dword [esp + 0x14]
add esp, 4
push 0
lea edx, [esp + 8]
push edx
push esi
push eax
mov dword [ecx], eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 4], 0
pop esi
setne al
pop ecx
ret 0xc

Function at 0x402ec0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [esp + 0x18]
mov eax, dword [esi]
test eax, eax
mov dword [esp + 8], 0
mov bl, 1
jbe 0x402f06
push 0
push eax
call fcn.00402d30
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
mov ecx, dword [esi]
push 0
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x18]
add ecx, ecx
add ecx, ecx
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 8], 0
jne 0x402f0e
pop esi
xor al, al
pop ebx
pop ecx
ret 0xc
pop esi
mov al, bl
pop ebx
pop ecx
ret 0xc

Function at 0x402f20
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [esp + 0x18]
mov eax, dword [esi]
test eax, eax
mov dword [esp + 8], 0
mov bl, 1
jbe 0x402f65
mov edx, dword [esp + 0x1c]
push edx
push eax
call fcn.00402d30
mov ecx, dword [esp + 0x14]
push 0
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x18]
mov dword [ecx], eax
mov ecx, dword [esi]
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 8], 0
jne 0x402f6d
pop esi
xor al, al
pop ebx
pop ecx
ret 0x10
pop esi
mov al, bl
pop ebx
pop ecx
ret 0x10
Function at 0x402fa0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
push edi
xor edi, edi
cmp eax, edi
mov bl, 1
mov dword [esp + 0x10], edi
mov byte [esp + 0xf], bl
jbe 0x403055
push edi
push eax
call fcn.00402d30
mov ecx, dword [esp + 0x1c]
mov dword [ecx], eax
cmp dword [esi], edi
jbe 0x403060
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
mov ebp, dword [esp + 0x1c]
push 0
lea edx, [esp + 0x18]
push edx
push 4
lea eax, [esp + 0x28]
push eax
push ebp
mov dword [esp + 0x30], 0
call ebx
mov ecx, dword [esp + 0x1c]
add ecx, 1
push ecx
call fcn.00405c2e
mov esi, eax
mov eax, dword [esp + 0x20]
add esp, 4
test eax, eax
jbe 0x40302b
push 0
lea edx, [esp + 0x18]
push edx
push eax
push esi
push ebp
call ebx
cmp dword [esp + 0x14], 0
jne 0x40302b
mov byte [esp + 0x13], 0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov byte [esi + eax], 0
mov edx, dword [ecx]
mov eax, dword [esp + 0x24]
mov dword [edx + edi*4], esi
add edi, 1
cmp edi, dword [eax]
jb 0x402fe0
mov al, byte [esp + 0x13]
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 0xc
pop edi
pop esi
xor al, al
pop ebx
add esp, 8
ret 0xc
pop edi
pop esi
mov al, bl
pop ebx
add esp, 8
ret 0xc
Function at 0x404e00
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebx
push edi
mov edi, dword [esp + 0x14]
test edi, edi
je 0x404eb9
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x404eb9
push esi
lea eax, [esp + 0x10]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [esp + 0x18], eax
jbe 0x404ead
push eax
call fcn.00405c2e
mov esi, eax
add esp, 4
test esi, esi
jne 0x404e4c
pop esi
pop edi
mov eax, 0x8007000e
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x18]
push esi
push ecx
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x404ea4
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x10]
push eax
push 0x4153a4
push esi
mov dword [esp + 0x1c], 0
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x404ea4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x404ea4
mov ecx, dword [eax + 8]
mov dword [ebx + 4], ecx
mov edx, dword [eax + 0xc]
push esi
mov dword [ebx], edx
call fcn.004062d1
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 8
ret
push esi
call fcn.004062d1
add esp, 4
pop esi
pop edi
mov eax, 0x80004005
pop ebx
add esp, 8
ret
pop edi
mov eax, 0x80070057
pop ebx
add esp, 8
ret
Function at 0x405a00
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x419058]
xor eax, esp
mov dword [esp + 0x414], eax
push ebx
mov ebx, dword [esp + 0x424]
push ebp
mov ebp, dword [esp + 0x424]
push esi
xor esi, esi
cmp ebp, esi
je 0x405a2e
mov dword [ebp], esi
cmp ebx, esi
je 0x405a3e
cmp dword [esp + 0x430], esi
jle 0x405a3e
mov byte [ebx], 0
lea eax, [esp + 0xf]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
mov byte [esp + 0x1b], 0x20
call fcn.00404b90
add esp, 0xc
test eax, eax
jl 0x405af7
push 0x104
lea eax, [esp + 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x405af7
lea ecx, [esp + 0x220]
push ecx
push 0x200
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x32f], 0
call fcn.00404ad0
mov ecx, 0x200
lea eax, [esp + 0x20]
lea esp, [esp]
cmp byte [eax], 0
je 0x405abf
add eax, 1
sub ecx, 1
jne 0x405ab0
jmp 0x405ae1
cmp ecx, esi
je 0x405ae1
mov eax, 0x200
sub eax, ecx
push str.d3dx9_28.dll
mov ecx, 0x200
sub ecx, eax
push ecx
lea edx, [esp + eax + 0x28]
push edx
call fcn.00404ad0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00404e00
add esp, 8
test eax, eax
jge 0x405b2f
lea edx, [esp + 0xf]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00404f50
add esp, 0xc
test eax, eax
jge 0x405b2f
pop esi
pop ebp
mov eax, 0x80004005
pop ebx
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.00405cae
add esp, 0x418
ret
movsx edx, byte [esp + 0xf]
push edi
push edx
call fcn.0040734e
mov edi, dword [esp + 0x18]
add esp, 4
cmp ebp, esi
mov esi, dword [esp + 0x18]
je 0x405b68
mov ecx, esi
shl ecx, 8
add ecx, edi
mov dl, al
sub dl, 0x61
shl ecx, 8
cmp dl, 0x19
ja 0x405b65
movsx edx, al
lea ecx, [ecx + edx - 0x60]
mov dword [ebp], ecx
test ebx, ebx
je 0x405ba3
mov ecx, dword [esp + 0x434]
test ecx, ecx
jle 0x405ba3
cmp al, 0x20
jne 0x405b8e
push edi
push esi
push str._d._d
push ecx
push ebx
call fcn.00404f20
add esp, 0x14
jmp 0x405ba3
movsx eax, al
push eax
push edi
push esi
push str._d._d_c
push ecx
push ebx
call fcn.00404f20
add esp, 0x18
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00405cae
add esp, 0x418
ret

Function at 0x405cae
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x419058]
jne 0x405cb8
repz ret
jmp fcn.00407a9d