joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457990
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x526e0c]
cmp byte [eax + 0xc], 0
je 0x457afd
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x457af6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x52a574], 0
jne 0x4579e4
push 0x457b04
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x457b0c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52a574], eax
cmp dword [0x4a0808], 0
jne 0x457adf
push 0x457b1c
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4a0808], eax
cmp dword [0x4a0808], 0
je 0x457adf
push 0x457b28
mov eax, dword [0x4a0808]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52a578], eax
push 0x457b38
mov eax, dword [0x4a0808]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52a57c], eax
push 0x457b4c
mov eax, dword [0x4a0808]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52a580], eax
push 0x457b64
mov eax, dword [0x4a0808]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52a584], eax
push 0x457b7c
mov eax, dword [0x4a0808]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52a588], eax
push 0x457b90
mov eax, dword [0x4a0808]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52a58c], eax
push 0x457ba8
mov eax, dword [0x4a0808]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52a590], eax
push 0x457bc0
mov eax, dword [0x4a0808]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52a594], eax
push 0x457bdc
mov eax, dword [0x4a0808]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52a598], eax
push 0x457be8
mov eax, dword [0x4a0808]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52a59c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457afd
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x45dba4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x45dbf8]
test si, 4
je 0x45dbb9
or bl, 1
test si, 8
je 0x45dbc3
or bl, 4
test si, 1
je 0x45dbcd
or bl, 8
test si, 2
je 0x45dbd7
or bl, 0x10
test si, 0x10
je 0x45dbe1
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45dbf0
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45dbfc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x45dc38]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45dc16
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45dc25
or bl, 4
test esi, 0x20000000
je 0x45dc30
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45dc88
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
add esp, 0xffffff00
push esp
call sub.user32.dll_GetKeyboardState
mov eax, esp
call fcn.0045dc3c
mov ebx, eax
mov eax, ebx
add esp, 0x100
pop ebx
ret
Function at 0x465328
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x46533a
add esp, 0xfffffff0
call fcn.004042d8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00424d08
mov eax, dword [0x5269f4]
mov dword [eax + 4], ebx
mov dword [eax], 0x4656cc
mov eax, dword [0x526a00]
mov dword [eax + 4], ebx
mov dword [eax], 0x4656d8
mov eax, ebx
call fcn.004656e4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x418cf8]
call fcn.00403f44
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x418cf8]
call fcn.00403f44
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x418cf8]
call fcn.00403f44
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x418cf8]
call fcn.00403f44
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x418cf8]
call fcn.00403f44
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, 0x461160
push eax
push 0
push 0
mov eax, dword [0x526ba0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x428f80]
call fcn.0042a874
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x428f80]
call fcn.0042a874
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x428f80]
call fcn.0042a874
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00465b5c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x465a2c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x465a2c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x465a2c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x465477
call fcn.00404330
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x465810
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 0x4659bb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x46599c
mov dl, 1
mov eax, dword [0x419574]
call fcn.00403f44
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404ec0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46598b
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.00457cec
test al, al
je 0x46597e
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, 0x4659cc
lea eax, [ebp - 0x254]
call fcn.0040a724
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46597e
xor eax, eax
push ebp
push 0x465977
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 0x465a04
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x465960
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405130
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 0x465960
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405130
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46597e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x465881
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041e758
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 0x4659c2
lea eax, [ebp - 0x260]
call fcn.00404ec0
ret

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

Disassembly:
push ecx
mov eax, dword [0x52a5ac]
cmp byte [eax + 0xad], 0
jne 0x4663a5
cmp dword [0x52a5c4], 0
jne 0x466366
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4662f0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x52a5c4], eax
cmp dword [0x52a5c0], 0
jne 0x466381
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x52a5c0], eax
cmp dword [0x52a5c8], 0
jne 0x4663a5
push esp
push 0
push 0
push 0x466294
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x52a5c8], eax
pop edx
ret
Function at 0x4665d4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4665eb
add esp, 0xfffffff0
call fcn.004042d8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00424d08
mov eax, dword [0x526b84]
cmp word [eax + 2], 0
jne 0x466613
mov eax, dword [0x526b84]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00468084
mov eax, dword [0x526c58]
cmp word [eax + 2], 0
jne 0x46662d
mov eax, dword [0x526c58]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00468290
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x418cf8]
call fcn.00403f44
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x418cf8]
call fcn.00403f44
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x418cf8]
call fcn.00403f44
mov dword [ebx + 0xb0], 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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x429b30]
call fcn.00431a68
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4667e4
mov eax, dword [0x526a74]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00431e3c
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x468950
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x526a74]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
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.0040df5c
test eax, eax
je 0x466734
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040a0dc
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040df90
test eax, eax
je 0x466748
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00405130
mov byte [ebx + 0xd4], 0
push ebx
push 0x467be4
call fcn.004264b8
mov dword [ebx + 0xc8], eax
mov eax, dword [0x5268fc]
cmp byte [eax], 0
jne 0x466799
mov eax, ebx
call fcn.00466928
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00468b2c
mov eax, ebx
call fcn.0046968c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4667d9
call fcn.00404330
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x466ba8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x52a5ac]
cmp dword [eax + 0x30], 0
je 0x466c52
cmp dword [ebx + 0x94], 0
jne 0x466c4c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x466b38
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x466c4c
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 0x466c12
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x466c4c
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.0041b9b0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x466c21
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46796c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4679a1
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.00404fb0
jmp 0x4679ae
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404f14
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x468d10
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x468d7e
mov eax, esi
call fcn.00452968
test al, al
je 0x468d7e
mov eax, dword [ebx + 0x84]
call fcn.004525c8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x468d7e
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x468d72
push 0
mov eax, dword [ebx + 0x84]
call fcn.004525c8
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0044a96c
jmp 0x468d7e
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00468b4c
pop esi
pop ebx
ret
Function at 0x4977f8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405374
mov eax, dword [ebp - 8]
call fcn.00405374
xor eax, eax
push ebp
push 0x497899
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405384
push eax
call sub.kernel32.dll_LoadLibraryExA_1
test eax, eax
mov eax, dword [ebp - 8]
call fcn.00405384
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetModuleHandleW
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
push 0x40
push 0x4c4b400
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_VirtualProtectEx
lea edx, [ebp - 0x10]
mov eax, 0x407f04
mov ecx, 4
call fcn.004977e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4978a0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404ee4
ret

Function at 0x4978a8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405374
mov eax, dword [ebp - 8]
call fcn.00405374
xor eax, eax
push ebp
push 0x497973
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00405384
push eax
call sub.kernel32.dll_LoadLibraryA
test eax, eax
mov eax, dword [ebp - 4]
call fcn.00405384
push eax
call sub.kernel32.dll_GetModuleHandleA_2
mov dword [0x52a6bc], eax
cmp dword [0x52a6bc], 0
je 0x49794d
mov eax, dword [ebp - 8]
call fcn.00405384
push eax
mov eax, dword [0x52a6bc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x52a6c0], eax
push 0x52a6d0
push 0x40
push 0x26259fc
push 0x52a6c0
call sub.kernel32.dll_VirtualProtect
mov edx, 0x52a6c0
mov eax, sub.user32.dll_GetIconInfo
mov ecx, 4
call fcn.004977e8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushFileBuffers
mov eax, dword [0x52a6bc]
push eax
call sub.kernel32.dll_FreeLibrary_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49797a
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404ee4
ret
Function at 0x41d82a
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4af050
push eax
push dword fs:[0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
ror byte [ecx + 0x43455008], 0x6f
insd dword es:[edi], dx
jo 0x41d8aa
arpl word [edx + esi], si
pop edi
das
lcall 0x5cc7, 0x49981d72
lodsd eax, dword [esi]
invalid
push eax
pop edx
call 0xf8ef8ce5
leave
std
adc edx, edx
jae 0x41d83f
dec esp
cmpsb byte [esi], byte es:[edi]
mov dword [esi], ebp
rcr edx, cl
and byte [ecx], al
dec eax
push edx
sbb al, 0xb7
dec edx
enter 0x5096, 0xffffffffffffffc9
sbb al, 0x28
xchg esp, eax
dec edi
fadd dword [esi - 0x521f6eb3]
and eax, edi
enter 0x6cb9, 0x78
inc eax
jae 0x41d8f1
invalid
adc al, 0x95
sub eax, 0xa069f402
arpl word [eax + 0x5a], cx
lcall 0x516a, 0xac8b5ab6
sar byte [edx + 0x34], 0x1a
xor al, 0x1a
std
pop ebp
pushal
je 0x41d904
mov byte [0xa434d03e], al
mov esp, 0x1e3ab214
in eax, dx
jp 0x41d90c
cmp byte [ecx - 0x2fd61aa8], dl
push cs
xchg edx, eax
sub al, 0x77
call 0x996e1582
adc byte [eax + ecx*2 - 4], al
or byte [edx + edi + 0x6c4e49e2], dl
invalid
Function at 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x403e59
pop dword [ebp - 0x3c]
mov eax, 0xe9096d89
sub eax, 0xe8c92f30
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0xbf9c5137
add dword [ebp - 0x4c], 0x8eb5f414
mov dword [ebp - 0x48], 0x6f731c7c
add dword [ebp - 0x48], 0xc2c02fc9
mov dword [ebp - 0x44], 0xc89930b6
sub dword [ebp - 0x44], 0x7c4cec88
mov dword [ebp - 0x40], 0xe5fb6ffb
add dword [ebp - 0x40], 0x1a049005
lea eax, [ebp - 0x4c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x5d288b60
add dword [ebp - 0x4c], 0x1749ddf6
mov dword [ebp - 0x48], 0x4c3f970
add dword [ebp - 0x48], 0x3ca86805
mov dword [ebp - 0x44], 0x7155b6ea
add dword [ebp - 0x44], 0xf219b582
mov dword [ebp - 0x40], 0xbbfd8630
add dword [ebp - 0x40], 0x440279d0
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0x9cf931cd
add eax, 0x63473edb
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x3aa55
push 0
call eax
mov ecx, 0xc3c99e3f
add ecx, 0x3c36b959
mov edi, eax
mov ebx, 0xcffe109f
add ebx, 0x3042ef61
add ebx, dword [ebp - 0x3c]
mov esi, 0x73642a9f
sub esi, 0x5c2f8ccd
sub dword [ebp - 0x20], 0xaa4abec
mov edx, dword [ebx]
add dword [ebp - 0x20], 0x321f9ade
sub edx, esi
sub dword [ebp - 0x14], 0x6a02f6fd
mov dword [edi], edx
xor dword [ebp - 0x34], 0xfc157572
add edi, 0x2121f6ab
add edi, 0xdede0959
add ebx, 0xae6be8da
sub ebx, 0xae6be8d6
loop 0x403f76
add eax, 0x15133
xor ebx, ebx
add ebx, eax
add eax, 0xa7002ac6
add eax, 0x58ffd53f
mov ecx, 0xd257ee5d
sub ecx, 0xd217ee5d
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x402e50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x404148
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x407018]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x407018]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x40], 0
je 0x402fd7
cmp byte [edi + 0x45], 0
je 0x402fd7
push 0xffffffffffffffff
call fcn.004022d0
cmp eax, 0xffffffff
jne 0x402eb0
xor al, al
jmp 0x402fd9
sub esp, 8
lea ecx, [esp + 0x20]
call fcn.00402c60
mov dword [esp + 0x40], 0
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x2c]
cmp ebx, 0x10
lea edx, [esp + 0x1c]
cmovae edx, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
cmovae ecx, dword [esp + 0x1c]
add eax, edx
push eax
push ecx
mov ecx, dword [edi + 0x40]
lea eax, [edi + 0x48]
push eax
call dword [sym.imp.MSVCP110.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x402f0f
dec eax
je 0x402f13
sub eax, 2
je 0x402fbd
xor bl, bl
jmp 0x402fbf
mov byte [edi + 0x45], 0
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp ebx, 0x10
lea eax, [esp + 0x18]
cmovae eax, ecx
sub esi, eax
je 0x402f4b
push dword [edi + 0x50]
lea eax, [esp + 0x1c]
push esi
cmp ebx, 0x10
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.MSVCR110.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x402f08
cmp byte [edi + 0x45], 0
je 0x402fbd
test esi, esi
jne 0x402ec4
mov ecx, dword [esp + 0x28]
or eax, 0xffffffff
sub eax, ecx
cmp eax, 8
jbe 0x402fb2
lea esi, [ecx + 8]
push ecx
push esi
lea ecx, [esp + 0x20]
call fcn.00403170
test al, al
je 0x402ec4
cmp dword [esp + 0x2c], 0x10
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x18]
cmovae ecx, dword [esp + 0x18]
xorps xmm0, xmm0
movq qword [ecx + eax], xmm0
cmp dword [esp + 0x2c], 0x10
lea eax, [esp + 0x18]
cmovae eax, dword [esp + 0x18]
mov dword [esp + 0x28], esi
mov byte [eax + esi], 0
jmp 0x402ec4
push str.string_too_long
call dword [sym.imp.MSVCP110.dll_void___cdecl_std::_Xlength_error_char_const__]
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x402fd3
push dword [esp + 0x18]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, bl
jmp 0x402fd9
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004035b2
mov esp, ebp
pop ebp
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x432030
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x40281c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a004]
jne 0x402826
repz ret
jmp fcn.00402a2b

Function at 0x40488b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40a004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004037d3
and dword [ebp - 0x14], 0
cmp dword [0x44b84c], 0
mov dword [ebp - 0x18], eax
jne 0x40493e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4049e6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4049e6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x44b84c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x44b850], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x44b854], eax
call edi
push eax
call esi
mov dword [0x44b85c], eax
test eax, eax
je 0x40493e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x44b858], eax
mov eax, dword [0x44b858]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404997
cmp dword [0x44b85c], ecx
je 0x404997
push eax
call esi
push dword [0x44b85c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404997
test ebx, ebx
je 0x404997
call edi
test eax, eax
je 0x40498e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40498e
test byte [ebp - 8], 1
jne 0x404997
or dword [ebp + 0x10], 0x200000
jmp 0x4049ca
mov eax, dword [0x44b850]
cmp eax, dword [ebp - 0x18]
je 0x4049ca
push eax
call esi
test eax, eax
je 0x4049ca
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4049ca
mov eax, dword [0x44b854]
cmp eax, dword [ebp - 0x18]
je 0x4049ca
push eax
call esi
test eax, eax
je 0x4049ca
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44b84c]
call esi
test eax, eax
je 0x4049e6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4049e8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040281c
leave
ret

Function at 0x402006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x405028]
jne 0x402010
repz ret
jmp fcn.00402534