joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52b9cc
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x48], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x52bae2
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
je 0x52baa8
lea eax, [ebp - 0x3c]
xor ecx, ecx
mov edx, 0x3c
call fcn.0040337c
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x28], 1
mov dword [ebp - 0xc], 1
mov eax, esi
call fcn.00404fd4
mov edi, eax
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
push edi
call sub.wininet.dll_InternetCrackUrlA
mov eax, dword [ebp - 0x30]
add eax, 0xfffffffd
sub eax, 2
jb 0x52ba71
mov dword [ebp - 0x44], esi
mov byte [ebp - 0x40], 0xb
lea eax, [ebp - 0x44]
push eax
push 0
push 0
lea edx, [ebp - 0x48]
mov eax, dword [0x5b6e54]
call fcn.00407140
mov ecx, dword [ebp - 0x48]
mov dl, 1
mov eax, dword [0x52af5c]
call fcn.0052b630
call fcn.00404534
mov eax, dword [ebp - 0x30]
mov dword [ebx + 0x64], eax
movzx eax, word [ebp - 0x24]
mov dword [ebx + 0x60], eax
lea eax, [ebx + 0x58]
push eax
mov edx, dword [ebp - 0x2c]
sub edx, edi
inc edx
mov ecx, dword [ebp - 0x28]
mov eax, esi
call fcn.00405034
lea eax, [ebx + 0x5c]
push eax
mov edx, dword [ebp - 0x10]
sub edx, edi
inc edx
mov ecx, dword [ebp - 0xc]
mov eax, esi
call fcn.00405034
jmp 0x52bac2
xor eax, eax
mov dword [ebx + 0x60], eax
lea eax, [ebx + 0x58]
call fcn.00404b14
lea eax, [ebx + 0x5c]
call fcn.00404b14
xor eax, eax
mov dword [ebx + 0x64], eax
lea eax, [ebx + 0x3c]
mov edx, esi
call fcn.00404b68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52bae9
lea eax, [ebp - 0x48]
call fcn.00404b14
ret
Function at 0x52bce0
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
test dl, dl
je 0x52be0b
mov eax, dword [ebp - 4]
cmp byte [eax + 0x39], 0
jne 0x52be42
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
call fcn.00404dd4
test eax, eax
jle 0x52bd15
mov ebx, 3
jmp 0x52bd17
xor ebx, ebx
push 0
call sub.wininet.dll_InternetAttemptConnect
test eax, eax
je 0x52bd27
call fcn.0040de64
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x6c]
call fcn.00404fd4
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
call fcn.00404fd4
push eax
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
call fcn.00404fd4
push eax
call sub.wininet.dll_InternetOpenA
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x70], esi
test esi, esi
setne dl
xor dl, 1
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.0052b7d4
xor eax, eax
push ebp
push 0x52bde6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
push eax
push 0
push 3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
call fcn.00404fd4
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
call fcn.00404fd4
push eax
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x60]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
call fcn.00404fd4
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x70]
push eax
call sub.wininet.dll_InternetConnectA
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x74], ebx
test ebx, ebx
setne dl
xor dl, 1
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.0052b7d4
mov eax, dword [ebp - 4]
mov byte [eax + 0x39], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52be42
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
test eax, eax
je 0x52be1b
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x74], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x70]
test eax, eax
je 0x52be33
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x70], edx
mov eax, dword [ebp - 4]
mov byte [eax + 0x39], 0
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x559fd8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x55a159
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x5b3210], 0
jne 0x55a136
push 0x5b8d44
call sub.KERNEL32.DLL_EnterCriticalSection
xor eax, eax
push ebp
push 0x55a12f
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x5b3210], 0
jne 0x55a117
mov dword [ebp - 4], pe_nt_image_headers32
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00405160
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
call fcn.00404fd4
push eax
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.00409738
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea edx, [ebp - 0x14]
xor ecx, ecx
mov eax, 0x55a170
call fcn.0040ae94
mov eax, dword [ebp - 0xc]
call fcn.00404fd4
push eax
push 0x80000000
call sub.advapi32.dll_RegQueryValueA
test eax, eax
jne 0x55a098
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00405160
jmp 0x55a0cf
lea eax, [ebp - 8]
mov edx, 0x55a190
call fcn.00404bac
xor eax, eax
push ebp
push 0x55a0c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.0048e794
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x55a0cf
mov eax, dword [ebp - 8]
call fcn.00404fd4
push eax
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x5b3210], eax
cmp dword [0x5b3210], 0
jne 0x55a102
mov ecx, dword [0x5b7114]
mov dl, 1
mov eax, dword [0x408aa4]
call fcn.0040df40
call fcn.00404534
push 0x55a19c
mov eax, dword [0x5b3210]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5b8d5c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55a136
push 0x5b8d44
call sub.KERNEL32.DLL_LeaveCriticalSection
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55a160
lea eax, [ebp - 0x18]
call fcn.00404b14
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404b38
ret
Function at 0x56566c
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, eax
cmp byte [ebx + 0x87], 0
je 0x5656a7
cmp dword [ebx + 0x5c], 0
je 0x5656a7
mov eax, dword [ebx + 0x5c]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xb8]
mov edx, eax
mov eax, esi
call fcn.0055dd50
xor eax, eax
mov dword [ebx + 0x5c], eax
mov byte [ebx + 0x87], 0
cmp dword [ebx + 0x5c], 0
jne 0x5657f2
cmp dword [ebx + 0x7c], 0
jne 0x5656cd
mov dl, 1
mov eax, dword [0x41c768]
call fcn.00403cac
mov dword [ebx + 0x7c], eax
cmp dword [ebx + 0xc], 0
je 0x5657cb
mov eax, dword [ebx + 0xc]
push eax
mov al, byte [0x5657f8]
push eax
mov al, byte [0x5657fc]
push eax
push 0
mov eax, dword [ebx + 0x7c]
push eax
mov eax, dword [0x5b7148]
push eax
mov ecx, dword [ebx + 0x68]
mov dl, 1
mov eax, dword [0x55606c]
call fcn.00557ed8
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x5657c4
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebx + 0x5c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
push eax
mov eax, dword [ebx + 0x64]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xb4]
mov edx, eax
mov eax, esi
call fcn.0055dd50
lea eax, [ebx + 0x10]
push eax
mov eax, dword [ebx + 0x5c]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xc0]
mov edx, eax
mov eax, esi
call fcn.0055dd50
mov eax, dword [ebx + 0x40]
push eax
lea eax, [ebx + 0x70]
mov ecx, 1
mov edx, dword [0x55b60c]
call fcn.00406414
add esp, 4
mov eax, dword [ebx + 0x30]
cmp eax, 0x1a
jge 0x565797
mov edx, dword [0x5b7434]
mov al, byte [edx + eax]
mov byte [ebx + 0x74], al
jmp 0x5657a8
cmp eax, 0x1007
jne 0x5657a4
mov byte [ebx + 0x74], 0x18
jmp 0x5657a8
mov byte [ebx + 0x74], 0
mov eax, dword [ebx + 0x40]
mov dword [ebx + 0x78], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5657f2
mov eax, dword [ebp - 4]
call fcn.00403cdc
ret
lea eax, [ebx + 0x5c]
push eax
push 0
push 0
mov eax, dword [ebx + 0x64]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xb4]
mov edx, eax
mov eax, esi
call fcn.0055dd50
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x567c00
Capabilities:
Write file on windows

Disassembly:
add esp, 0xffffffb8
mov dword [esp], eax
mov eax, dword [0x5b7370]
cmp byte [eax], 0
je 0x567c5f
mov eax, dword [0x5b6f3c]
call fcn.004031c0
call fcn.00402bb4
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 8]
call fcn.0040a778
push eax
lea eax, [esp + 0xc]
push eax
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 8]
push eax
push 2
push 0x567ca4
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x567c95
push 0x40
lea eax, [esp + 0xc]
push eax
mov eax, dword [0x5b6eac]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5b8668]
call fcn.0040661c
push eax
call sub.user32.dll_LoadStringA
push 0x2010
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 8]
push eax
push 0
call sub.user32.dll_MessageBoxA
add esp, 0x48
ret
Function at 0x56a1c8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push 0x200
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x5b39f3
lea ecx, [ebp - 0x200]
push ecx
call fcn.00567db0
add esp, 8
lea eax, [ebp - 0x200]
push eax
call fcn.00567d70
pop ecx
mov edx, 0x200
sub edx, eax
push edx
lea ecx, [ebp - 0x200]
push ecx
call fcn.00567d70
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x5b39f5
lea ecx, [ebp - 0x200]
push ecx
call fcn.00567db0
add esp, 8
push 0xa
lea eax, [ebp - 0x200]
push eax
call fcn.00567d70
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov ecx, dword [ebx]
push ecx
call fcn.0056bce0
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x56a2d9
push esi
call fcn.00567d70
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.00567d70
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.00567ca8
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x56a2b0
xor eax, eax
jmp 0x56a360
push esi
call fcn.00567d70
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.00567d70
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.00567d3c
add esp, 0xc
jmp 0x56a319
mov edi, dword [ebx + 0x24]
push edi
call fcn.00567d70
pop ecx
push eax
push esi
call fcn.00567d70
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.00567d70
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.00567ce4
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x56a319
xor eax, eax
jmp 0x56a360
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.00567db0
add esp, 8
push 0x5b39f7
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.00567db0
add esp, 8
lea eax, [ebp - 0x200]
push eax
mov edx, dword [ebx + 0x24]
push edx
call fcn.00567db0
add esp, 8
push 0x5b39f9
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.00567db0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x56cdbe
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 4]
push ecx
push 0
push 0x4001f
push 0
push 0
push 0
push eax
push 0x80000000
call sub.advapi32.dll_RegCreateKeyExA
mov ebx, eax
test ebx, ebx
jne 0x56ce12
push esi
call fcn.00567d70
pop ecx
inc eax
push eax
push esi
push 1
push 0
push edi
push dword [ebp - 4]
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x598c9c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404fc4
xor eax, eax
push ebp
push 0x598e08
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404b14
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404fd4
mov ebx, eax
push ebx
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x598ddd
mov eax, dword [ebp - 0x18]
call fcn.00402a4c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x598dd6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 0
push ebx
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x598e18
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 2]
mov edx, 4
call fcn.00409de8
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
mov edx, 4
call fcn.00409de8
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x14]
pop ecx
call fcn.00404e20
push 0x598e3c
push dword [ebp - 0x14]
push 0x598e58
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404e94
lea eax, [ebp - 0x20]
mov ecx, 0x598e64
mov edx, dword [ebp - 0x14]
call fcn.00404e20
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
call fcn.00404fd4
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x598dbd
mov eax, esi
mov edx, dword [ebp - 0x1c]
call fcn.00404d0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x598ddd
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.00402a6c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x598e0f
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00404b38
lea eax, [ebp - 0x14]
call fcn.00404b14
lea eax, [ebp - 4]
call fcn.00404b14
ret
Function at 0x41c286
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
pushal
call 0x41c292
pop ebx
sub ebx, 0x403292
mov eax, 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0x424642
push 0
push 0x20
push 3
push 0
push 3
push 0xc0000000
push dword [ebp + 8]
call dword [ebx + fcn.00401291]
cmp eax, 0xffffffff
je 0x41c418
mov dword [ebp - 4], eax
push 2
push 0
push 0xfffffffffffffffc
push dword [ebp - 4]
call dword [ebx + fcn.004012a5]
lea eax, [ebp - 8]
lea ecx, [ebp - 0xc]
push 0
push ecx
push 4
push eax
push dword [ebp - 4]
call dword [ebx + fcn.0040130d]
mov eax, dword [ebp - 8]
cmp eax, 0x424642
jne 0x41c303
jmp 0x41c40f
push 0
push dword [ebp - 4]
call dword [ebx + 0x4012b9]
mov dword [ebp - 8], eax
cmp eax, 0x1000
jae 0x41c31d
jmp 0x41c40f
cmp eax, 0xe00000
jbe 0x41c329
jmp 0x41c40f
or eax, eax
je 0x41c418
mov ecx, dword [ebp - 8]
add ecx, 0x6000
mov dword [ebp - 0x14], ecx
push 0
push ecx
push 0
push 4
push 0
push dword [ebp - 4]
call dword [ebx + 0x401295]
or eax, eax
je 0x41c3c7
mov dword [ebp - 0xc], eax
push dword [ebp - 0x14]
push 0
push 0
push 2
push dword [ebp - 0xc]
call dword [ebx + 0x401299]
or eax, eax
je 0x41c3be
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0
mov esi, dword [ebp - 0x10]
cmp word [esi], 0x5a4d
je 0x41c382
jmp 0x41c3b5
mov eax, dword [esi + 0x3c]
cmp eax, 0x200
jbe 0x41c38e
jmp 0x41c3b5
add esi, dword [esi + 0x3c]
cmp dword [esi], 0x4550
je 0x41c39b
jmp 0x41c3b5
push dword [ebp - 8]
push esi
push dword [ebp - 0x10]
call fcn.0041c15e
mov dword [ebp - 0x14], eax
push 0
push dword [ebp - 0x10]
call dword [ebx + 0x4012c1]
push dword [ebp - 0x10]
call dword [ebx + 0x40129d]
push dword [ebp - 0xc]
call dword [ebx + fcn.004012ad]
cmp dword [ebp - 0x14], 0
je 0x41c40f
mov eax, dword [ebp - 0x14]
sub eax, 4
push 0
push 0
push eax
push dword [ebp - 4]
call dword [ebx + fcn.004012a5]
lea eax, [ebp - 0x18]
lea ecx, [ebp - 8]
push 0
push ecx
push 4
push eax
push dword [ebp - 4]
call dword [ebx + fcn.004012a1]
push 0
push 0
push dword [ebp - 0x14]
push dword [ebp - 4]
call dword [ebx + fcn.004012a5]
push dword [ebp - 4]
call dword [ebx + 0x4012a9]
push dword [ebp - 4]
call dword [ebx + fcn.004012ad]
popal
leave
ret 4

Function at 0x41c959
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
mov dword [ebp - 4], 0
call fcn.0041c96c

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
pushal
mov dword [ebp - 4], 0
call fcn.0041c9e6
Function at 0x4034b0
Capabilities:
Get graphical window text

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d4dd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x429040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x34], edi
mov esi, ecx
mov dword [ebp - 0x30], esi
push 0
mov dword [ebp - 0x30], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x40353a
test eax, eax
je 0x40353a
xorps xmm0, xmm0
xor eax, eax
movups xmmword [esi], xmm0
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x403650
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], 7
movups xmmword [ebp - 0x2c], xmm0
mov word [ebp - 0x2c], ax
lea edx, [edi + 1]
mov dword [ebp - 4], eax
test edx, edx
jne 0x403569
mov dword [ebp - 0x1c], edx
mov word [ebp + edx*2 - 0x2c], ax
jmp 0x40359c
cmp edx, 7
ja 0x40358a
xor eax, eax
mov dword [ebp - 0x1c], edx
mov ecx, edx
lea edi, [ebp - 0x2c]
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
xor eax, eax
mov word [ebp + edx*2 - 0x2c], ax
jmp 0x40359c
push ecx
push edx
mov byte [ebp - 0x30], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x30]
push edx
call fcn.00402760
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmova eax, dword [ebp - 0x2c]
push eax
push dword [ebp - 0x34]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp - 0x1c]
mov edi, eax
mov dword [ebp - 0x34], ecx
cmp edi, ecx
ja 0x4035d6
cmp dword [ebp - 0x18], 7
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], edi
cmova ecx, dword [ebp - 0x2c]
xor eax, eax
mov word [ecx + edi*2], ax
jmp 0x40362b
mov eax, dword [ebp - 0x18]
mov edx, edi
sub edx, ecx
sub eax, ecx
cmp edx, eax
ja 0x403619
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], edi
cmova eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
lea edi, [eax + ecx*2]
test edx, edx
je 0x40360b
xor eax, eax
mov ecx, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov ecx, dword [ebp - 0x34]
lea eax, [ecx + edx]
mov ecx, dword [ebp - 0x30]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x40362b
push ecx
push edx
mov byte [ebp - 0x34], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x34]
push edx
call fcn.00402760
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
movups xmm0, xmmword [ebp - 0x2c]
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [esi + 0x10], xmm0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040b474
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x409ed0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
mov eax, dword [0x429040]
xor eax, esp
mov dword [esp + 0x2c], eax
push esi
push edi
lea eax, [esp + 0x1c]
mov dword [esp + 8], edx
mov esi, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x409f28
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40a01c
movzx eax, ax
or eax, 0x80070000
pop edi
pop esi
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0040b474
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x14]
push 2
push eax
push 0xfffffffffffffff0
push esi
mov dword [esp + 0x20], 0xfffffff0
mov dword [esp + 0x24], 0xffffffff
call edi
cmp eax, 0xffffffff
je 0x409f01
push 0
lea eax, [esp + 0x10]
push eax
push 0x10
lea eax, [esp + 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x409f01
cmp dword [esp + 0xc], 0x10
jne 0x40a017
cmp dword [esp + 0x20], 0x84692426
jne 0x40a017
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x28]
jne 0x40a017
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x2c]
jne 0x40a017
mov ecx, 0xfffffff0
mov eax, 0xffffffff
sub ecx, dword [esp + 0x24]
push 2
sbb eax, 0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push ecx
push esi
call edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
jne 0x409fd2
call edi
test eax, eax
jne 0x409f09
push 0
lea eax, [esp + 0x10]
push eax
push 0x80
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x409ff4
call edi
jmp 0x409f07
xor eax, eax
mov ecx, 0x80004005
cmp dword [esp + 0xc], 0x80
cmovne eax, ecx
pop edi
pop esi
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0040b474
mov esp, ebp
pop ebp
ret
mov eax, 0x80004005
mov ecx, dword [esp + 0x34]
pop edi
pop esi
xor ecx, esp
call fcn.0040b474
mov esp, ebp
pop ebp
ret
Function at 0x40a030
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
mov eax, dword [0x429040]
xor eax, esp
mov dword [esp + 0x2c], eax
push esi
push edi
lea eax, [esp + 0x14]
mov edi, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x40a06d
call esi
test eax, eax
jne 0x40a0f6
push 2
lea eax, [esp + 0x30]
xorps xmm0, xmm0
push eax
push 0
push edi
movlpd qword [esp + 0x38], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40a091
call esi
test eax, eax
jne 0x40a0f6
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add ecx, 0x10
push 0
adc eax, 0
mov dword [esp + 0x1c], 0x84692426
mov dword [esp + 0x28], eax
lea eax, [esp + 0x10]
push eax
push 0x10
lea eax, [esp + 0x24]
mov dword [esp + 0x28], 0x80
push eax
push edi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40a0f2
cmp dword [esp + 0xc], 0x10
jne 0x40a0f2
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0040b474
mov esp, ebp
pop ebp
ret
call esi
test eax, eax
jle 0x40a100
movzx eax, ax
or eax, 0x80070000
mov ecx, dword [esp + 0x34]
pop edi
pop esi
xor ecx, esp
call fcn.0040b474
mov esp, ebp
pop ebp
ret