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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x45d324]
cmp byte [eax + 0xc], 0
je 0x43ddd1
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43ddca
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x45eb68], 0
jne 0x43dcb8
push 0x43ddd8
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43dde0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45eb68], eax
cmp dword [0x45cb90], 0
jne 0x43ddb3
push 0x43ddf0
call sub.kernel32.dll_LoadLibraryA
mov dword [0x45cb90], eax
cmp dword [0x45cb90], 0
je 0x43ddb3
push 0x43ddfc
mov eax, dword [0x45cb90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45eb6c], eax
push 0x43de0c
mov eax, dword [0x45cb90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45eb70], eax
push 0x43de20
mov eax, dword [0x45cb90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45eb74], eax
push 0x43de38
mov eax, dword [0x45cb90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45eb78], eax
push 0x43de50
mov eax, dword [0x45cb90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45eb7c], eax
push 0x43de64
mov eax, dword [0x45cb90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45eb80], eax
push 0x43de7c
mov eax, dword [0x45cb90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45eb84], eax
push 0x43de94
mov eax, dword [0x45cb90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45eb88], eax
push 0x43deb0
mov eax, dword [0x45cb90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45eb8c], eax
push 0x43debc
mov eax, dword [0x45cb90]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45eb90], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43ddd1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x441c5c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404010
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x441cab
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404280
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x449468
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4494b8]
test si, 4
je 0x44947c
or bl, 1
test si, 8
je 0x449486
or bl, 4
test si, 1
je 0x449490
or bl, 8
test si, 2
je 0x44949a
or bl, 0x10
test si, 0x10
je 0x4494a4
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4494b3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4494bc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4494f4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4494d5
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4494e4
or bl, 4
test esi, 0x20000000
je 0x4494ef
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44fb9c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44fbae
add esp, 0xfffffff0
call fcn.004035e4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041cdf8
mov eax, dword [0x45cfb4]
mov dword [eax + 4], ebx
mov dword [eax], 0x44ff40
mov eax, dword [0x45cfc0]
mov dword [eax + 4], ebx
mov dword [eax], 0x44ff4c
mov eax, ebx
call fcn.0044ff58
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41505c]
call fcn.00403290
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41505c]
call fcn.00403290
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41505c]
call fcn.00403290
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41505c]
call fcn.00403290
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41505c]
call fcn.00403290
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, 0x44c374
push eax
push 0
push 0
mov eax, dword [0x45d118]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41e84c]
call fcn.0041ff88
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41e84c]
call fcn.0041ff88
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41e84c]
call fcn.0041ff88
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00450378
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450254
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450254
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450254
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44fceb
call fcn.0040363c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x450038
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 0x4501e3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4501c4
mov dl, 1
mov eax, dword [0x415478]
call fcn.00403290
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404010
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4501b3
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.0043dfc4
test al, al
je 0x4501a6
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, 0x4501f4
lea eax, [ebp - 0x254]
call fcn.00408e10
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4501a6
xor eax, eax
push ebp
push 0x45019f
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 0x45022c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x450188
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404280
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 0x450188
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404280
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4501a6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4500a9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00418f54
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 0x4501ea
lea eax, [ebp - 0x260]
call fcn.00404010
ret

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

Disassembly:
push ecx
mov eax, dword [0x45ebb4]
cmp byte [eax + 0xa5], 0
jne 0x450b89
cmp dword [0x45ebcc], 0
jne 0x450b4a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x450ad4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45ebcc], eax
cmp dword [0x45ebc8], 0
jne 0x450b65
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45ebc8], eax
cmp dword [0x45ebd0], 0
jne 0x450b89
push esp
push 0
push 0
push 0x450a78
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x45ebd0], eax
pop edx
ret
Function at 0x450c80
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x450c97
add esp, 0xfffffff0
call fcn.004035e4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041cdf8
mov eax, dword [0x45d104]
cmp word [eax + 2], 0
jne 0x450cbf
mov eax, dword [0x45d104]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00452358
mov eax, dword [0x45d1b8]
cmp word [eax + 2], 0
jne 0x450cd9
mov eax, dword [0x45d1b8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00452550
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41505c]
call fcn.00403290
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41505c]
call fcn.00403290
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 [0x41f2f4]
call fcn.00426bc0
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x450e60
mov eax, dword [0x45d01c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00426f90
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x452b00
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45d01c]
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.0040c668
test eax, eax
je 0x450dce
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408804
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c690
test eax, eax
je 0x450de2
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.00404280
mov eax, dword [0x45cee0]
cmp byte [eax], 0
jne 0x450e16
mov eax, ebx
call fcn.00450f88
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.00452cdc
mov eax, ebx
call fcn.004536a0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x450e56
call fcn.0040363c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x451208
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45ebb4]
cmp dword [eax + 0x30], 0
je 0x4512b2
cmp dword [ebx + 0x94], 0
jne 0x4512ac
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x451198
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4512ac
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 0x451272
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4512ac
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.004173c4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x451281
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x451e14
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 0x451e49
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.00404100
jmp 0x451e56
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404064
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x452eb8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x452ef9
mov eax, esi
call fcn.004397cc
test al, al
je 0x452ef9
mov eax, dword [ebx + 0x84]
call fcn.004394f4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x452ef9
push 0
mov eax, dword [ebx + 0x84]
call fcn.004394f4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x453bb8
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x414658]
call fcn.0040497c
xor eax, eax
push ebp
push 0x453cfc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x45cdc4], 0
jne 0x453c0b
mov ecx, dword [0x45cef0]
mov dl, 1
mov eax, dword [0x4071c8]
call fcn.0040b914
call fcn.00403a4c
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402cd4
mov eax, ebx
call fcn.0040484c
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x453d0c
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405900
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.0040485c
test eax, eax
jle 0x453ca3
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x453c9c
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404298
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404280
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00407fd4
test eax, eax
jne 0x453c9c
mov ebx, 0x15
jmp 0x453ca8
mov ebx, 0x10
jmp 0x453ca8
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x45cdc4]
call fcn.00453b10
mov eax, dword [ebp - 8]
call fcn.00453b10
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405918
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453d03
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404034
lea eax, [ebp - 0x10]
mov edx, dword [0x414658]
call fcn.00404a4c
ret
Function at 0x402b20
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
movzx ecx, word [ecx + 0x14]
lea eax, [eax + ecx + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [0x405014]
imul eax, eax, 0x63
mov dword [0x405014], eax
mov eax, dword [0x405014]
mov ecx, dword [0x405018]
lea eax, [ecx + eax - 9]
mov dword [0x405014], eax
and dword [ebp - 0x14], 0
jmp 0x402b7b
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
add eax, 0x28
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
movzx eax, word [eax + 6]
cmp dword [ebp - 0x14], eax
jge 0x402cf3
mov eax, dword [0x405018]
shl eax, 3
mov dword [0x405018], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x10], 0
jne 0x402c71
mov eax, dword [0x405018]
add eax, 7
mov dword [0x405014], eax
mov eax, dword [0x405018]
xor edx, edx
push 0xc
pop ecx
div ecx
mov dword [0x405018], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x38]
mov dword [ebp - 4], eax
mov eax, dword [0x405014]
imul eax, dword [0x405018]
mov ecx, dword [0x405018]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x405014], eax
cmp dword [ebp - 4], 0
jle 0x402c5f
mov eax, dword [0x405014]
sub eax, 4
mov dword [0x405018], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 4
push 0x1000
push dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
mov eax, dword [0x405014]
imul eax, dword [0x405018]
mov ecx, dword [0x405018]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x405014], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 8], ecx
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 4]
push 0
push dword [ebp - 0xc]
call fcn.004019c4
add esp, 0xc
mov eax, dword [0x405018]
shl eax, 3
mov dword [0x405018], eax
jmp 0x402b6b
mov eax, dword [0x405014]
sub eax, 4
mov dword [0x405018], eax
push 4
push 0x1000
mov eax, dword [ebp - 8]
push dword [eax + 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
mov eax, dword [0x405014]
mov ecx, dword [0x405018]
lea eax, [ecx + eax - 9]
mov dword [0x405014], eax
mov eax, dword [0x405014]
imul eax, eax, 0x63
mov dword [0x405014], eax
mov eax, dword [ebp - 8]
push dword [eax + 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x14]
push ecx
push dword [ebp - 0xc]
call fcn.00401986
add esp, 0xc
push 0x40ba78
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 8], ecx
jmp 0x402b6b
mov eax, dword [0x405018]
add eax, 8
mov dword [0x405018], eax
mov eax, dword [0x405018]
xor edx, edx
push 0xc
pop ecx
div ecx
mov dword [0x405018], eax
leave
ret
Function at 0x402f26
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
add eax, 0xa0
mov dword [ebp - 0xc], eax
mov eax, dword [0x405018]
xor edx, edx
push 0xc
pop ecx
div ecx
mov dword [0x405018], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 0
jbe 0x4030ca
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
add ecx, dword [eax]
mov dword [ebp - 0x10], ecx
mov eax, dword [0x405014]
imul eax, eax, 0x63
mov dword [0x405014], eax
mov eax, dword [0x405018]
imul eax, dword [0x405018]
sub eax, 3
mov dword [0x405014], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
jbe 0x4030ca
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
add ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x10]
add eax, 8
mov dword [ebp - 0x18], eax
mov eax, dword [0x405018]
xor edx, edx
push 0xc
pop ecx
div ecx
mov dword [0x405018], eax
and dword [ebp - 8], 0
jmp 0x402fd2
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
inc eax
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
sub eax, 8
shr eax, 1
cmp dword [ebp - 8], eax
jae 0x4030a1
push 0x40ba78
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [0x405018]
imul eax, dword [0x405018]
sub eax, 3
mov dword [0x405014], eax
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
sar eax, 0xc
mov dword [ebp - 0x20], eax
mov eax, dword [0x405018]
shl eax, 1
mov dword [0x405014], eax
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
and eax, 0xfff
mov dword [ebp - 0x24], eax
mov eax, dword [0x405014]
imul eax, eax, 0x63
mov dword [0x405014], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x40304c
cmp dword [ebp - 0x28], 3
je 0x40304e
jmp 0x40308f
jmp 0x40309c
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
add eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
mov eax, dword [0x405018]
imul eax, dword [0x405018]
sub eax, 3
mov dword [0x405014], eax
mov eax, dword [0x405018]
add eax, 8
mov dword [0x405018], eax
jmp 0x40309c
mov eax, dword [0x405014]
imul eax, eax, 0x63
mov dword [0x405014], eax
jmp 0x402fc3
push 0x40ba78
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov eax, dword [0x405018]
add eax, 8
mov dword [0x405018], eax
jmp 0x402f8c
mov eax, dword [0x405018]
shl eax, 3
mov dword [0x405018], eax
leave
ret
Function at 0x4037fe
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x403827
cmp al, 0x22
je 0x40381f
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x403813
cmp byte [esi], 0x22
jne 0x403831
inc esi
jmp 0x403831
cmp al, 0x20
jle 0x403831
inc esi
cmp byte [esi], 0x20
jg 0x40382b
mov al, byte [esi]
test al, al
je 0x40383b
cmp al, 0x20
jle 0x403824
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004038a9
push 0x405004
push section..data
call fcn.0040388f
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x40386b
movzx eax, word [ebp - 0x14]
jmp 0x40386e
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.004038c1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx