joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e84c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44e884]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44e865
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44e874
or bl, 4
test esi, 0x20000000
je 0x44e87f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x454f2c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x454f3e
add esp, 0xfffffff0
call fcn.00403540
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419f2c
mov eax, dword [0x45ff70]
mov dword [eax + 4], ebx
mov dword [eax], 0x4552d0
mov eax, dword [0x45ff7c]
mov dword [eax + 4], ebx
mov dword [eax], 0x4552dc
mov eax, ebx
call fcn.004552e8
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4118f0]
call fcn.00403204
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4118f0]
call fcn.00403204
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4118f0]
call fcn.00403204
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4118f0]
call fcn.00403204
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4118f0]
call fcn.00403204
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x451704
push eax
push 0
push 0
mov eax, dword [0x4600c0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b960]
call fcn.0041cda4
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b960]
call fcn.0041cda4
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b960]
call fcn.0041cda4
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00455708
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4555e4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4555e4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4555e4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45507b
call fcn.00403598
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4553c8
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x455573
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x455554
mov dl, 1
mov eax, dword [0x411e98]
call fcn.00403204
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403f6c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x455543
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004433d4
test al, al
je 0x455536
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x455584
lea eax, [ebp - 0x254]
call fcn.00408d5c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x455536
xor eax, eax
push ebp
push 0x45552f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4555bc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x455518
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004041dc
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x455518
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004041dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455536
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x455439
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041611c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45557a
lea eax, [ebp - 0x260]
call fcn.00403f6c
ret

Function at 0x455ea8
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x461bb8]
cmp byte [eax + 0xa5], 0
jne 0x455f19
cmp dword [0x461bd0], 0
jne 0x455eda
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x455e64
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x461bd0], eax
cmp dword [0x461bcc], 0
jne 0x455ef5
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x461bcc], eax
cmp dword [0x461bd4], 0
jne 0x455f19
push esp
push 0
push 0
push 0x455e08
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x461bd4], eax
pop edx
ret
Function at 0x456010
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x456027
add esp, 0xfffffff0
call fcn.00403540
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419f2c
mov eax, dword [0x4600ac]
cmp word [eax + 2], 0
jne 0x45604f
mov eax, dword [0x4600ac]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00457778
mov eax, dword [0x460158]
cmp word [eax + 2], 0
jne 0x456069
mov eax, dword [0x460158]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00457970
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4118f0]
call fcn.00403204
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4118f0]
call fcn.00403204
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41c110]
call fcn.00421dcc
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4561f0
mov eax, dword [0x45ffd0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042219c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x457f10
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45ffd0]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c410
test eax, eax
je 0x45615e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040873c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c438
test eax, eax
je 0x456172
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004041dc
mov eax, dword [0x45fed4]
cmp byte [eax], 0
jne 0x4561a6
mov eax, ebx
call fcn.00456318
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.004580ec
mov eax, ebx
call fcn.00458b00
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4561e6
call fcn.00403598
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x456598
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x461bb8]
cmp dword [eax + 0x30], 0
je 0x456642
cmp dword [ebx + 0x94], 0
jne 0x45663c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x456528
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45663c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x456602
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45663c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413de4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x456611
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4571a4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4571d9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040405c
jmp 0x4571e6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403fc0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4582c8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x458309
mov eax, esi
call fcn.0043e9bc
test al, al
je 0x458309
mov eax, dword [ebx + 0x84]
call fcn.0043e6b8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x458309
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043e6b8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4597c8
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov byte [esp], 0
xor eax, eax
mov dword [esp + 4], eax
call fcn.00459ff4
test al, al
je 0x459722
mov byte [esp], 1
jmp 0x45981f
mov edx, 0x459834
mov eax, 0x45984c
call fcn.004598f8
mov ebx, eax
test ebx, ebx
jne 0x459814
lea eax, [esp + 4]
push eax
push 0xffffffffffffffff
push 8
call sub.KERNEL32.DLL_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
mov ebx, eax
test ebx, ebx
jne 0x459775
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x3f0
jne 0x459775
lea eax, [esp + 4]
push eax
push 8
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
mov ebx, eax
test ebx, ebx
je 0x45981f
mov eax, 0x400
call fcn.004026bc
mov esi, eax
lea eax, [esp + 8]
push eax
push 0x400
push esi
push 2
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_GetTokenInformation
mov ebx, eax
mov eax, dword [esp + 4]
push eax
call sub.KERNEL32.DLL_CloseHandle
test ebx, ebx
je 0x45980b
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
push 0x45fe8c
call sub.advapi32.dll_AllocateAndInitializeSid
mov eax, dword [esi]
test eax, eax
jbe 0x459801
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x459801
inc ebx
xor edi, edi
mov eax, dword [esi + edi*8 + 4]
push eax
mov eax, dword [esp + 0x10]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x4597fd
mov byte [esp], 1
jmp 0x459801
inc edi
dec ebx
jne 0x4597e4
mov eax, dword [esp + 0xc]
push eax
call sub.advapi32.dll_FreeSid
mov eax, esi
call fcn.004026dc
jmp 0x45981f
call ebx
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp], al
mov al, byte [esp]
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x459858
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.004041dc
mov eax, dword [ebx]
call fcn.0040422c
test eax, eax
jle 0x4598a5
mov eax, dword [ebx]
call fcn.0040422c
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x4598a5
mov eax, ebx
mov edx, 0x4598b8
call fcn.00404234
add esp, 0x108
pop ebx
ret
Function at 0x45999c
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
mov ebx, eax
mov byte [ebp - 1], 1
call fcn.00459ff4
test al, al
jne 0x459a9b
mov byte [ebp - 1], 0
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0x20
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x459a9b
xor eax, eax
push ebp
push 0x459a94
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
push eax
push 0x459aa4
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x459a05
call fcn.00403a54
jmp 0x459a9b
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], 1
xor esi, esi
mov dword [ebp - 0x2c], esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x10
lea eax, [ebp - 0x38]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], 1
test bl, bl
je 0x459a55
or esi, 2
mov dword [ebp - 0x1c], esi
jmp 0x459a5b
and esi, 0xfffffffd
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 8]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459a9b
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_CloseHandle
ret
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x459b64
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x459ce0
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push ebx
mov eax, esi
mov ecx, 1
mov edx, dword [0x458cf8]
call fcn.004050c4
add esp, 4
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov edi, eax
test edi, edi
je 0x459cbf
cmp edi, 0xffffffff
je 0x459cbf
mov dword [ebp - 0x12c], 0x128
lea eax, [ebp - 0x12c]
push eax
push edi
call sub.KERNEL32.DLL_Process32First
test eax, eax
je 0x459cb9
cmp dword [ebp - 0x124], 0x10
jbe 0x459ca4
inc ebx
push ebx
mov eax, esi
mov ecx, 1
mov edx, dword [0x458cf8]
call fcn.004050c4
add esp, 4
lea eax, [ebx + ebx*2]
mov edx, dword [esi]
mov ecx, dword [ebp - 0x124]
mov dword [edx + eax*4 - 0xc], ecx
lea eax, [ebx + ebx*2]
mov edx, dword [esi]
mov ecx, dword [ebp - 0x114]
mov dword [edx + eax*4 - 8], ecx
lea eax, [ebp - 4]
lea edx, [ebp - 0x108]
mov ecx, 0x104
call fcn.004041dc
mov edx, dword [ebp - 4]
mov eax, 0x459cf8
call fcn.00404570
dec eax
jne 0x459c55
lea eax, [ebp - 4]
mov ecx, 4
mov edx, 1
call fcn.004044cc
mov edx, dword [ebp - 4]
mov eax, 0x459d08
call fcn.00404570
dec eax
jne 0x459c93
lea eax, [ebp - 4]
mov ecx, 0xc
mov edx, 1
call fcn.004044cc
lea eax, [ebp - 0x130]
call fcn.00459858
mov edx, dword [ebp - 0x130]
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
call fcn.00404278
lea eax, [ebx + ebx*2]
mov edx, dword [esi]
lea eax, [edx + eax*4 - 4]
mov edx, dword [ebp - 4]
call fcn.00403fc0
lea eax, [ebp - 0x12c]
push eax
push edi
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x459bde
push edi
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459ce7
lea eax, [ebp - 0x130]
call fcn.00403f6c
lea eax, [ebp - 4]
call fcn.00403f6c
ret
Function at 0x45a004
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push edx
push ebx
push esp
push ebp
push esi
push edi
mov ebx, eax
mov eax, edx
test ebx, ebx
je 0x45a08e
mov edx, dword [ebx + 0x3c]
mov edi, dword [ebx + edx + 0x7c]
test edi, edi
je 0x45a08e
mov edx, dword [ebx + edx + 0x78]
test edx, edx
je 0x45a08e
mov esi, edx
add edi, esi
add edx, ebx
cmp eax, 0x10000
jae 0x45a038
sub eax, dword [edx + 0x10]
jmp 0x45a078
push ebp
push esi
push edi
mov ebp, eax
mov ecx, dword [edx + 0x18]
mov esi, dword [edx + 0x20]
add esi, ebx
push edx
jecxz 0x45a061
mov eax, dword [esi]
sub edi, edi
add esi, 4
add eax, ebx
dec ecx
mov dl, byte [edi + eax]
cmp dl, byte [edi + ebp]
jne 0x45a046
inc edi
test dl, dl
jne 0x45a052
sub eax, eax
pop edx
pop edi
pop esi
pop ebp
test eax, eax
jne 0x45a08e
sub ecx, dword [edx + 0x18]
mov eax, dword [edx + 0x24]
inc ecx
neg ecx
add eax, ebx
movzx eax, word [eax + ecx*2]
mov ecx, ebx
add ecx, dword [edx + 0x1c]
lea edx, [ecx + eax*4]
mov eax, dword [edx]
cmp eax, esi
jb 0x45a08a
cmp eax, edi
jb 0x45a08e
add eax, ebx
jmp 0x45a090
sub eax, eax
pop edi
pop esi
pop ebp
pop esp
pop ebx
pop edx
pop ecx
ret

Function at 0x45a598
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040441c
xor eax, eax
push ebp
push 0x45a66e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x3c
call fcn.004026bc
mov ebx, eax
mov edx, 0x3c
mov eax, ebx
call fcn.00406a54
mov dword [ebx], 0x3c
xor eax, eax
mov dword [ebx + 4], eax
mov eax, dword [0x461be0]
call fcn.0043e6b8
mov dword [ebx + 8], eax
mov eax, 0x45a67c
mov dword [ebx + 0xc], eax
lea edx, [ebp - 8]
xor eax, eax
call fcn.004029e4
mov eax, dword [ebp - 8]
call fcn.0040442c
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 4]
call fcn.0040442c
mov dword [ebx + 0x14], eax
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.004029e4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.0045950c
mov eax, dword [ebp - 0xc]
call fcn.0040442c
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], 1
push ebx
call sub.shell32.dll_ShellExecuteExA
mov esi, eax
mov eax, ebx
call fcn.004026dc
test esi, esi
je 0x45a653
call fcn.00403e7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a675
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00403f90
ret
Function at 0x45a69c
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040441c
xor eax, eax
push ebp
push 0x45a85a
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x15], 1
xor ecx, ecx
push ebp
push 0x45a83d
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.0040442c
push eax
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x45a746
mov byte [ebp - 0x15], 0
mov eax, 0x2000
call fcn.004026bc
mov dword [ebp - 0x14], eax
mov edx, 0x2000
mov eax, dword [ebp - 0x14]
call fcn.00406a54
push 0x461bf0
push 0x2000
mov eax, dword [ebp - 0x14]
push eax
push esi
push ebx
call sub.KERNEL32.DLL_ReadProcessMemory
jmp 0x45a780
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_CreateFileMappingA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x45a76c
call fcn.00403a54
jmp 0x45a844
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_MapViewOfFile
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x45a790
call fcn.00403a54
jmp 0x45a844
xor ecx, ecx
push ebp
push 0x45a7c5
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x3c]
add edx, eax
cmp word [eax], 0x5a4d
jne 0x45a7bb
cmp dword [edx], 0x4550
jne 0x45a7bb
mov eax, dword [edx + 0x50]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45a7e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a844
cmp byte [ebp - 0x15], 0
je 0x45a812
cmp dword [ebp - 0x14], 0
je 0x45a804
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_UnmapViewOfFile
jmp 0x45a812
cmp dword [ebp - 0x14], 0
je 0x45a812
mov eax, dword [ebp - 0x14]
call fcn.004026dc
cmp dword [ebp - 0x10], 0
je 0x45a821
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_CloseHandle
cmp dword [ebp - 0xc], 0xffffffff
je 0x45a83c
cmp dword [ebp - 0xc], 0
je 0x45a83c
cmp byte [ebp - 0x15], 0
je 0x45a83c
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a861
lea eax, [ebp - 4]
call fcn.00403f6c
ret
Function at 0x406bc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x406beb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00407e70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x406c0d
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x406c0f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x406c93
jg 0x406c24
test esi, esi
je 0x406c93
test ecx, ecx
jl 0x406c6d
jg 0x406c2e
test eax, eax
je 0x406c6d
cmp edi, ecx
jg 0x406c42
jl 0x406c38
cmp esi, eax
jae 0x406c42
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.0044a490
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x406c70
mov edx, dword [ebp + 8]
test edi, edi
jl 0x406c93
jg 0x406c7a
test esi, esi
je 0x406c93
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x406c93
push eax
push esi
push 1
push edx
call fcn.0045b670
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406cb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x406cdb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00407f50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x406cfd
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x406cff
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x406d9e
jg 0x406d1c
test esi, esi
je 0x406d9e
test ecx, ecx
jl 0x406d69
jg 0x406d26
test eax, eax
je 0x406d69
cmp ebx, ecx
jg 0x406d3a
jl 0x406d30
cmp esi, eax
jae 0x406d3a
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.0044a490
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x406d70
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x406d9e
jg 0x406d7a
test esi, esi
je 0x406d9e
cmp dword [edi + 0x4c], 0
je 0x406d9e
mov ecx, edi
call fcn.004085e0
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.0045bc45
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc