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

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x446260]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x446241
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x446250
or bl, 4
test esi, 0x20000000
je 0x44625b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44c924
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44c936
add esp, 0xfffffff0
call fcn.00403978
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041cba0
mov eax, dword [0x452e58]
mov dword [eax + 4], ebx
mov dword [eax], 0x44ccc8
mov eax, dword [0x452e64]
mov dword [eax + 4], ebx
mov dword [eax], 0x44ccd4
mov eax, ebx
call fcn.0044cce0
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x414e98]
call fcn.00403628
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x414e98]
call fcn.00403628
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x414e98]
call fcn.00403628
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x414e98]
call fcn.00403628
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x414e98]
call fcn.00403628
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, 0x4490f8
push eax
push 0
push 0
mov eax, dword [0x452fb0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41e5c4]
call fcn.0041fa2c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41e5c4]
call fcn.0041fa2c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41e5c4]
call fcn.0041fa2c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044d130
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44cff8
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44cff8
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44cff8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44ca73
call fcn.004039d0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44cddc
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 0x44cf87
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44cf68
mov dl, 1
mov eax, dword [0x4152b4]
call fcn.00403628
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004043cc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44cf57
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.0043ad44
test al, al
je 0x44cf4a
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, 0x44cf98
lea eax, [ebp - 0x254]
call fcn.0040914c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44cf4a
xor eax, eax
push ebp
push 0x44cf43
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 0x44cfd0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44cf2c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040463c
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 0x44cf2c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040463c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44cf4a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44ce4d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00418d90
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 0x44cf8e
lea eax, [ebp - 0x260]
call fcn.004043cc
ret

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

Disassembly:
push ecx
mov eax, dword [0x454bb4]
cmp byte [eax + 0xa5], 0
jne 0x44d941
cmp dword [0x454bcc], 0
jne 0x44d902
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44d88c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x454bcc], eax
cmp dword [0x454bc8], 0
jne 0x44d91d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x454bc8], eax
cmp dword [0x454bd0], 0
jne 0x44d941
push esp
push 0
push 0
push 0x44d830
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x454bd0], eax
pop edx
ret
Function at 0x44dfd4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x454bb4]
cmp dword [eax + 0x30], 0
je 0x44e07e
cmp dword [ebx + 0x94], 0
jne 0x44e078
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44df64
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44e078
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 0x44e03e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44e078
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.00417200
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44e04d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44ebdc
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 0x44ec11
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.004044bc
jmp 0x44ec1e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404420
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44fdd0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44fe11
mov eax, esi
call fcn.0043654c
test al, al
je 0x44fe11
mov eax, dword [ebx + 0x84]
call fcn.004362ec
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44fe11
push 0
mov eax, dword [ebx + 0x84]
call fcn.004362ec
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x405e7c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x4229f4], esi
push edi
jne 0x405eb6
mov ecx, 0x4229f0
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x405e92
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x422df0
jl 0x405e8d
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x405eeb
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4229f0]
xor eax, esi
inc ecx
dec edx
jne 0x405ece
pop edi
pop esi
not eax
ret 0xc

Function at 0x4060b6
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.004021ba
and dword [ebp - 4], 0
cmp dword [0x40b654], 0
mov ebx, eax
jne 0x406167
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406218
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406218
push eax
call fcn.00402148
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b654], eax
call esi
push eax
call fcn.00402148
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b658], eax
call esi
push eax
call fcn.00402148
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40b65c], eax
call esi
push eax
call fcn.00402148
pop ecx
mov dword [0x40b664], eax
test eax, eax
je 0x406167
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402148
pop ecx
mov dword [0x40b660], eax
mov eax, dword [0x40b660]
cmp eax, ebx
je 0x4061bf
cmp dword [0x40b664], ebx
je 0x4061bf
push eax
call fcn.004021c3
push dword [0x40b664]
mov esi, eax
call fcn.004021c3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4061bf
test edi, edi
je 0x4061bf
call esi
test eax, eax
je 0x4061b6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4061b6
test byte [ebp - 0xc], 1
jne 0x4061bf
or dword [ebp + 0x10], 0x200000
jmp 0x4061f8
mov eax, dword [0x40b658]
cmp eax, ebx
je 0x4061f8
push eax
call fcn.004021c3
pop ecx
test eax, eax
je 0x4061f8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4061f8
mov eax, dword [0x40b65c]
cmp eax, ebx
je 0x4061f8
push eax
call fcn.004021c3
pop ecx
test eax, eax
je 0x4061f8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b654]
call fcn.004021c3
pop ecx
test eax, eax
je 0x406218
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40621a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433004
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x5ab1599f
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x6ed9221f
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x4052f0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405356
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403bf0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004028d8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405340
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40535d
lea eax, [ebp - 0x10]
call fcn.00403980
ret

Function at 0x40582c
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, 0x415680
push 0x405968
call sub.kernelbase.dll_GetModuleHandleA_1
mov dword [0x415674], eax
push 0x405974
call sub.kernelbase.dll_GetModuleHandleA_1
mov dword [0x415678], eax
push 0x405980
call sub.kernelbase.dll_GetModuleHandleA_1
mov dword [0x41567c], eax
push 0x4059a0
call sub.kernelbase.dll_GetModuleHandleA_1
mov dword [ebx], eax
push 0x4059a8
mov eax, dword [ebx]
push eax
call sub.kernelbase.dll_GetProcAddress_1
add eax, 5
mov dword [0x41568c], eax
push 0x4059b8
mov eax, dword [ebx]
push eax
call sub.kernelbase.dll_GetProcAddress_1
add eax, 5
mov dword [0x415690], eax
push 0x4059c8
mov eax, dword [ebx]
push eax
call sub.kernelbase.dll_GetProcAddress_1
add eax, 5
mov dword [0x415684], eax
push 0x4059d8
mov eax, dword [ebx]
push eax
call sub.kernelbase.dll_GetProcAddress_1
add eax, 5
mov dword [0x415688], eax
push 0x4059e8
mov eax, dword [0x415674]
push eax
call sub.kernelbase.dll_GetProcAddress_1
add eax, 5
mov dword [0x415694], eax
push 0x4059f8
mov eax, dword [0x415678]
push eax
call sub.kernelbase.dll_GetProcAddress_1
add eax, 5
mov dword [0x415698], eax
push 0x405a14
mov eax, dword [0x415678]
push eax
call sub.kernelbase.dll_GetProcAddress_1
add eax, 7
mov dword [0x41569c], eax
push 0x405a30
mov eax, dword [0x415678]
push eax
call sub.kernelbase.dll_GetProcAddress_1
add eax, 7
mov dword [0x4156a0], eax
push 0x405a40
mov eax, dword [ebx]
push eax
call sub.kernelbase.dll_GetProcAddress_1
add eax, 5
mov dword [0x4156a4], eax
push 0x405a4c
mov eax, dword [0x41567c]
push eax
call sub.kernelbase.dll_GetProcAddress_1
add eax, 5
mov dword [0x4156a8], eax
push 0x405a68
mov eax, dword [0x41567c]
push eax
call sub.kernelbase.dll_GetProcAddress_1
add eax, 5
mov dword [0x4156ac], eax
pop ebx
ret

Function at 0x4097e0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x409819
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403a70
jmp 0x409822
mov eax, ebx
mov edx, esi
call fcn.004039d4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40982c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40984d
mov al, byte [esp]
jmp 0x40984f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x409ed4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x409d4c
mov eax, dword [0x414518]
cmp byte [eax], 0
je 0x409f50
mov eax, dword [0x414434]
call fcn.00402854
call fcn.0040271c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00407194
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x409f98
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x409f86
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x414410]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x415660]
call fcn.00404840
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40ac34
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40ac98
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00403bf0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00406d54
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ac9f
lea eax, [ebp - 0xc]
call fcn.00403980
ret
Function at 0x412938
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
jmp 0x4129cc
mov eax, dword [edi + 0xc]
add eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 4], eax
mov ebx, dword [edi + 0x10]
add ebx, dword [ebp + 8]
mov esi, ebx
cmp dword [edi + 4], 0xffffffff
jne 0x4129c4
mov ebx, dword [edi]
add ebx, dword [ebp + 8]
jmp 0x4129c4
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push esi
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4129be
test byte [ebx + 3], 0x80
je 0x41299a
mov eax, dword [ebx]
and eax, 0xffff
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernelbase.dll_GetProcAddress_1
mov dword [esi], eax
jmp 0x4129ae
mov eax, dword [ebp + 8]
add eax, dword [ebx]
add eax, 2
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernelbase.dll_GetProcAddress_1
mov dword [esi], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
push 4
push esi
call sub.kernel32.dll_VirtualProtect
add ebx, 4
add esi, 4
cmp dword [ebx], 0
jne 0x41296d
add edi, 0x14
cmp dword [edi + 0x10], 0
je 0x4129dc
cmp dword [edi + 0xc], 0
jne 0x412949
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x4129e8
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
mov edi, dword [ebp - 4]
push 0x40
push edi
call fcn.00405aa4
test eax, eax
jne 0x412b41
cmp word [edi], 0x5a4d
jne 0x412b41
mov esi, dword [edi + 0x3c]
add esi, dword [ebp - 4]
push 0xf8
push esi
call fcn.00405aa4
test eax, eax
jne 0x412b41
cmp dword [esi], 0x4550
jne 0x412b41
xor eax, eax
mov dword [ebp - 0x10], eax
mov ebx, esi
add ebx, 0xf8
mov eax, dword [esi + 0x50]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x412b41
push 0x40
push 0x3000
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x10]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x412b41
movzx eax, word [esi + 6]
mov dword [ebp - 0xc], eax
mov ecx, ebx
sub ecx, edi
mov eax, dword [ebp - 0xc]
shl eax, 3
lea eax, [eax + eax*4]
add ecx, eax
mov edx, edi
mov eax, dword [ebp - 0x18]
call fcn.00405818
mov ecx, dword [ebp - 0x10]
dec ecx
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x14]
xor edx, edx
call fcn.00405818
mov edi, dword [ebp - 0xc]
dec edi
test edi, edi
jl 0x412acf
inc edi
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
add edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
add eax, dword [ebp - 0x18]
call fcn.00405818
add ebx, 0x28
dec edi
jne 0x412ab5
mov eax, dword [esi + 0xa0]
test eax, eax
je 0x412af0
mov edx, dword [esi + 0xa4]
push edx
mov ecx, eax
add ecx, dword [ebp - 0x18]
mov eax, dword [esi + 0x34]
mov edx, dword [ebp - 0x18]
call fcn.004128c8
mov eax, dword [esi + 0x80]
mov ebx, dword [ebp - 0x18]
add eax, ebx
push eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.00412938
mov eax, dword [esi + 0x28]
mov edi, eax
add edi, ebx
mov edx, edi
test eax, eax
je 0x412b3b
xor eax, eax
push ebp
push 0x412b31
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 1
push ebx
call edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x412b3b
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401734
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401773
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401773
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401773
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401773
cmp dword [ecx + 0x74], 0xe
jbe 0x401773
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x403b4a
Capabilities:
Get file size
Read file on windows
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [ebp + 8]
call fcn.00403999
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 8], eax
je 0x403bd9
push ebx
push esi
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x403bc2
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push 0
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push esi
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x403bc2
push ebx
mov byte [edi + esi], 0
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x403bcb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
jmp 0x403be2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 4]
leave
ret

Function at 0x403d41
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x403ee1
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push dword [ebp + 8]
call fcn.00403d41
test eax, eax
pop ecx
je 0x403efb
xor eax, eax
leave
ret
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call sub.msvcrt.dll_strcpy
lea eax, [ebp - 0x108]
push 0x5c
push eax
call sub.msvcrt.dll__mbsrchr
add esp, 0x10
test eax, eax
je 0x403f2f
mov byte [eax], 0
lea eax, [ebp - 0x108]
push eax
call fcn.00403ee1
pop ecx
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
leave
ret

Function at 0x403fb4
Capabilities:
Get common file path

Disassembly:
cmp byte [0x419670], 0
push esi
mov esi, 0x419670
jne 0x403fd4
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
mov dword [0x419778], eax
push esi
push dword [esp + 0xc]
call sub.msvcrt.dll_strcpy
mov eax, dword [0x419778]
pop ecx
pop ecx
pop esi
ret

Function at 0x40437f
Capabilities:
Create process on windows

Disassembly:
push 5
mov eax, 0x412415
push eax
push eax
push dword [esp + 0x14]
push str.open
push dword [esp + 0x18]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x20
pop ecx
cmp ecx, eax
sbb eax, eax
neg eax
ret