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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x46fb54]
cmp byte [eax + 0xc], 0
je 0x4434cd
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4434c6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x470b6c], 0
jne 0x4433b4
push 0x4434d4
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x4434dc
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470b6c], eax
cmp dword [0x46ebdc], 0
jne 0x4434af
push 0x4434ec
call sub.kernel32.dll_LoadLibraryA
mov dword [0x46ebdc], eax
cmp dword [0x46ebdc], 0
je 0x4434af
push 0x4434f8
mov eax, dword [0x46ebdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470b70], eax
push 0x443508
mov eax, dword [0x46ebdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470b74], eax
push 0x44351c
mov eax, dword [0x46ebdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470b78], eax
push 0x443534
mov eax, dword [0x46ebdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470b7c], eax
push 0x44354c
mov eax, dword [0x46ebdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470b80], eax
push 0x443560
mov eax, dword [0x46ebdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470b84], eax
push 0x443578
mov eax, dword [0x46ebdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470b88], eax
push 0x443590
mov eax, dword [0x46ebdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470b8c], eax
push 0x4435ac
mov eax, dword [0x46ebdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470b90], eax
push 0x4435b8
mov eax, dword [0x46ebdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470b94], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4434cd
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x447810
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.00403e4c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44785f
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.004040bc
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44ef9c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44efec]
test si, 4
je 0x44efb0
or bl, 1
test si, 8
je 0x44efba
or bl, 4
test si, 1
je 0x44efc4
or bl, 8
test si, 2
je 0x44efce
or bl, 0x10
test si, 0x10
je 0x44efd8
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44efe7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44eff0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44f028]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44f009
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44f018
or bl, 4
test esi, 0x20000000
je 0x44f023
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4556d0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4556e2
add esp, 0xfffffff0
call fcn.00403420
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004193cc
mov eax, dword [0x46f804]
mov dword [eax + 4], ebx
mov dword [eax], 0x455a74
mov eax, dword [0x46f810]
mov dword [eax + 4], ebx
mov dword [eax], 0x455a80
mov eax, ebx
call fcn.00455a8c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4116ac]
call fcn.004030cc
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4116ac]
call fcn.004030cc
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4116ac]
call fcn.004030cc
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4116ac]
call fcn.004030cc
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4116ac]
call fcn.004030cc
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, 0x451ea8
push eax
push 0
push 0
mov eax, dword [0x46f960]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41ae78]
call fcn.0041c5ec
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41ae78]
call fcn.0041c5ec
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41ae78]
call fcn.0041c5ec
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00455eac
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x455d88
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x455d88
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x455d88
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45581f
call fcn.00403478
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x455b6c
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 0x455d17
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x455cf8
mov dl, 1
mov eax, dword [0x411ac8]
call fcn.004030cc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403e4c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x455ce7
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.004436c0
test al, al
je 0x455cda
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, 0x455d28
lea eax, [ebp - 0x254]
call fcn.00408b10
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x455cda
xor eax, eax
push ebp
push 0x455cd3
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 0x455d60
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x455cbc
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004040bc
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 0x455cbc
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004040bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455cda
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x455bdd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004155bc
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 0x455d1e
lea eax, [ebp - 0x260]
call fcn.00403e4c
ret

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

Disassembly:
push ecx
mov eax, dword [0x470bb8]
cmp byte [eax + 0xa5], 0
jne 0x4566bd
cmp dword [0x470bd0], 0
jne 0x45667e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x456608
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x470bd0], eax
cmp dword [0x470bcc], 0
jne 0x456699
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x470bcc], eax
cmp dword [0x470bd4], 0
jne 0x4566bd
push esp
push 0
push 0
push 0x4565ac
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x470bd4], eax
pop edx
ret
Function at 0x4567b4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4567cb
add esp, 0xfffffff0
call fcn.00403420
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004193cc
mov eax, dword [0x46f94c]
cmp word [eax + 2], 0
jne 0x4567f3
mov eax, dword [0x46f94c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00457e8c
mov eax, dword [0x46f9fc]
cmp word [eax + 2], 0
jne 0x45680d
mov eax, dword [0x46f9fc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00458084
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4116ac]
call fcn.004030cc
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4116ac]
call fcn.004030cc
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 [0x41b958]
call fcn.00423494
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x456994
mov eax, dword [0x46f868]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00423864
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x458624
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x46f868]
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.0040c250
test eax, eax
je 0x456902
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004084f0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c278
test eax, eax
je 0x456916
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.004040bc
mov eax, dword [0x46f73c]
cmp byte [eax], 0
jne 0x45694a
mov eax, ebx
call fcn.00456abc
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.00458800
mov eax, ebx
call fcn.004591c4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45698a
call fcn.00403478
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x456d3c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x470bb8]
cmp dword [eax + 0x30], 0
je 0x456de6
cmp dword [ebx + 0x94], 0
jne 0x456de0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x456ccc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x456de0
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 0x456da6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x456de0
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.00413a14
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x456db5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x457948
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 0x45797d
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.00403f3c
jmp 0x45798a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403ea0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4589dc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x458a1d
mov eax, esi
call fcn.0043ed3c
test al, al
je 0x458a1d
mov eax, dword [ebx + 0x84]
call fcn.0043ea38
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x458a1d
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043ea38
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45c0e4
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x45c112
mov eax, ebx
call fcn.0045cb98
cmp dword [ebx + 0x40], 0
je 0x45c10b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x45c183
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x45c175
cmp dword [ebx + 8], 0
je 0x45c134
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x45c146
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x45c175
cmp dword [ebx + 8], 0
je 0x45c127
cmp eax, 3
je 0x45c159
dec eax
jne 0x45c127
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x45c127
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x45c127
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x45c1a1
cmp dword [ebx + 0x14], 0xcc
je 0x45c1a1
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0045c1ac
pop ebx
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x431072
nop
nop
mov ebx, 0x40915c
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x41b51c70
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x431060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4310d2
mov ebx, 0x42f3f8
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x6206027f
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4310c0
popal
nop
nop
nop
nop
nop
jmp 0x401219

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
Function at 0x4027e9
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
push 0xf01ff
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
xor edi, edi
mov dword [ebp - 8], esi
cmp esi, edi
jne 0x40281d
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x4028c8
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x40283a
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp + 0xc]
call esi
jmp 0x402816
lea eax, [ebp - 0xc]
push eax
push 0x24
lea eax, [ebp - 0x30]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
push esi
call edi
test eax, eax
je 0x402816
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebx
call esi
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
jmp 0x4028ac
mov eax, dword [ebp - 0x18]
push 0xa
xor edx, edx
pop ecx
div ecx
mov ecx, 0x3e8
cmp eax, ecx
jb 0x40287f
mov ecx, 0x2710
cmp eax, ecx
jbe 0x402881
mov eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0xc]
push eax
push 0x24
lea eax, [ebp - 0x30]
push eax
push 0
push dword [ebp - 8]
call edi
test eax, eax
je 0x4028b2
cmp dword [ebp - 0x1c], ebx
ja 0x402859
call esi
sub eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x18]
ja 0x4028b2
cmp dword [ebp - 0x2c], 2
je 0x402863
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp + 0xc]
call esi
mov eax, 0x3e8
pop ebx
pop edi
xor edx, edx
pop esi
leave
ret

Function at 0x403a40
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x18]
sub eax, dword [ebp + 0x10]
mov ecx, dword [esi + 0x84]
xor edx, edx
div ecx
mov dword [ebp - 8], eax
test edx, edx
je 0x403a5f
inc dword [ebp - 8]
mov eax, dword [ebp + 0x1c]
sub eax, dword [ebp + 0x14]
mov ecx, dword [esi + 0x88]
xor edx, edx
div ecx
push ebx
mov ebx, eax
test edx, edx
je 0x403a77
inc ebx
and dword [ebp - 4], 0
cmp dword [ebp - 8], 0
jle 0x403ac5
push edi
xor edi, edi
test ebx, ebx
jle 0x403ab9
mov eax, dword [esi + 0x88]
mov ecx, dword [esi + 0x84]
push 0xcc0020
push 0
push 0
push dword [ebp + 0xc]
push eax
imul eax, edi
push ecx
imul ecx, dword [ebp - 4]
push eax
push ecx
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_BitBlt]
inc edi
cmp edi, ebx
jl 0x403a88
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jl 0x403a82
pop edi
pop ebx
leave
ret 0x18
Function at 0x404a4e
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebx
xor ebx, ebx
push esi
mov byte [0x452374], 1
push 1
cmp byte [0x452376], bl
je 0x404a6b
push ebx
push 0x4415c8
jmp 0x404a72
push dword [0x4524b0]
push ebx
push dword [0x4523b0]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call esi
cmp byte [0x452376], bl
je 0x404aa0
push 0xbb8
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
pop ebx
ret

Function at 0x404c70
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebx
xor ebx, ebx
push ebp
push edi
cmp dword [esi + 0x34], ebx
ja 0x404c84
cmp dword [esi + 0x30], 0x40
jbe 0x404d88
mov edi, dword [esi + 0x28]
mov ebp, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 0x40
push edi
call ebp
test eax, eax
jne 0x404d8d
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x404d8d
mov byte [esi + 0x38], 1
mov eax, dword [edi + 0x3c]
mov edi, dword [esi + 0x34]
xor ecx, ecx
lea edx, [eax + 0xf8]
cmp edi, ecx
jb 0x404d88
ja 0x404ccf
mov ecx, dword [esi + 0x30]
cmp ecx, edx
jbe 0x404d88
mov edx, dword [esi + 0x28]
add eax, edx
push 0xf8
push eax
mov dword [esi + 0x24], eax
call ebp
test eax, eax
jne 0x404d8d
mov eax, dword [esi + 0x24]
cmp dword [eax], 0x4550
jne 0x404d8d
mov ecx, 0x2000
test word [eax + 0x16], cx
jne 0x404d05
mov byte [esi + 0x44], 1
mov edx, eax
movzx eax, word [edx + 0x18]
mov ecx, 0x10b
cmp ax, cx
jne 0x404d21
mov dword [esi + 0x40], 1
add edx, 0x78
jmp 0x404d38
mov ecx, 0x20b
cmp ax, cx
jne 0x404d3b
mov dword [esi + 0x40], 2
add edx, 0x88
mov dword [esi + 0x20], edx
cmp dword [esi + 0x20], ebx
je 0x404d8d
mov eax, dword [esi + 0x24]
movzx ecx, word [eax + 6]
mov dword [esi + 0x3c], ecx
test ecx, ecx
je 0x404d8d
movzx edx, word [eax + 0x14]
mov ebx, dword [esi + 0x34]
lea ecx, [ecx + ecx*4]
add ecx, ecx
add ecx, ecx
add ecx, ecx
sub ecx, dword [esi + 0x28]
add ecx, edx
lea edi, [ecx + eax + 0x18]
xor ecx, ecx
cmp ebx, ecx
jb 0x404d88
ja 0x404d76
mov ecx, dword [esi + 0x30]
cmp ecx, edi
jbe 0x404d88
pop edi
mov ebx, 1
lea edx, [edx + eax + 0x18]
pop ebp
mov eax, ebx
mov dword [esi + 0x1c], edx
pop ebx
ret
mov ebx, 2
pop edi
pop ebp
mov eax, ebx
pop ebx
ret
Function at 0x405be1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44dd60]
jne 0x405beb
repz ret
jmp fcn.004287af
Function at 0x407150
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x436b2b
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x44dd60]
xor eax, esp
mov dword [esp + 0x264], eax
push esi
push edi
mov eax, dword [0x44dd60]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
and dword [esp + 0x1c], 0
push 0x24c
lea eax, [esp + 0x24]
push 0
push eax
call fcn.00423ad0
lea eax, [esp + 0x20]
push str..
push eax
mov esi, edi
call fcn.004039e0
add esp, 0x14
and dword [esp + 0x280], 0
mov eax, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
or dword [esp + 0x280], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00411213
cmp dword [esp + 0x10], 0xffffffff
je 0x4072d0
lea eax, [esp + 0x48]
push 0x441b40
push eax
call fcn.00424596
pop ecx
pop ecx
test eax, eax
je 0x4072af
lea eax, [esp + 0x48]
push 0x441b44
push eax
call fcn.00424596
pop ecx
pop ecx
test eax, eax
je 0x4072af
lea eax, [esp + 0x18]
push 0x441b4c
push eax
mov esi, edi
call fcn.004039e0
mov dword [esp + 0x288], 1
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x18]
push ecx
mov esi, eax
call fcn.004039e0
add esp, 0x10
mov byte [esp + 0x280], 3
lea ecx, [esp + 0x18]
call fcn.00411213
test byte [esp + 0x1c], 0x10
je 0x407285
push dword [ebp + 0xc]
lea eax, [esp + 0x10]
push eax
call fcn.00407150
pop ecx
pop ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0x80
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
or dword [esp + 0x280], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00411213
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4071f2
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp + 0xc], 0
je 0x4072de
push dword [edi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x264]
xor ecx, esp
call fcn.00405be1
mov esp, ebp
pop ebp
ret

Function at 0x408c07
Capabilities:
Set registry value

Disassembly:
push 4
mov eax, 0x436074
call fcn.00425661
mov dword [ebp - 4], 1
xor ebx, ebx
xor eax, eax
cmp byte [ebp + 0x14], bl
push ebx
sete al
lea ecx, [ebp - 0x10]
push ecx
push ebx
mov dword [ebp - 0x10], ebx
dec eax
and eax, 0x100
inc eax
inc eax
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x408c69
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push dword [ebp + 0xc]
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.00411213
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00411213
call fcn.00425739
ret