joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43dd9c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x43de3b
cmp dword [ebx + 0x94], 0
jne 0x43de35
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x43dd24
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x43de35
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 0x43ddfb
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x43de35
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.00415344
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x43de0a
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x43e054
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x46bc2c]
cmp dword [eax + 0x30], 0
je 0x43e1b1
test bl, bl
jne 0x43e102
cmp dword [esi + 0x9c], 0
jne 0x43e0f7
mov eax, esi
call fcn.00440874
push eax
push 0x43df80
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x43e0c8
mov eax, dword [0x46bc2c]
call fcn.00440f54
test al, al
je 0x43e0c8
mov eax, dword [0x46bc50]
call fcn.00405b14
mov edi, eax
cmp edi, 0
jl 0x43e0c8
push 0
mov eax, dword [0x46bc50]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x43e0b2
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x43e0f7
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00415344
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x43e0d7
inc dword [esi + 0x9c]
jmp 0x43e1b1
cmp dword [esi + 0x9c], 0
jle 0x43e1b1
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x43e1b1
cmp dword [esi + 0x44], 0
je 0x43e15d
mov eax, dword [0x46bc2c]
call fcn.00440f54
test al, al
je 0x43e15d
mov eax, dword [0x46bc50]
call fcn.00405b14
mov edi, eax
cmp edi, 0
jl 0x43e15d
push 5
mov eax, dword [0x46bc50]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x43e147
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x43e18c
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00415344
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x43e16c
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x46bc50
mov ecx, 1
mov edx, dword [0x43df60]
call fcn.00405cc8
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x43ec98
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x43ed02
mov eax, ebx
call fcn.00440f54
test al, al
jne 0x43ed02
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.00404bd4
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x43ecef
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x43ed0f
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404b38
jmp 0x43ed0f
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404b38
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x440078
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4400e6
mov eax, esi
call fcn.0044f180
test al, al
je 0x4400e6
mov eax, dword [ebx + 0x84]
call fcn.0044ee0c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4400e6
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x4400da
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044ee0c
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00446c88
jmp 0x4400e6
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0043feb4
pop esi
pop ebx
ret
Function at 0x444528
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x46bcac], 0
je 0x444671
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x466b88]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x444671
mov eax, dword [0x46bcb0]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x46bcac]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x444640
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x46bcac]
call fcn.00415344
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x444638
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1da], 0
je 0x444638
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x444638
mov eax, dword [ebp - 0x14]
call fcn.0044ee0c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x444638
push ebp
call fcn.004444e4
pop ecx
test al, al
jne 0x444638
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00403e00
test al, al
je 0x444638
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbc
call fcn.00403e00
cmp byte [ebp - 1], 0
je 0x444638
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x444638
mov edx, dword [ebp - 0x14]
mov eax, dword [0x46bcb0]
call fcn.00443c54
inc edi
dec ebx
jne 0x44458d
mov eax, dword [0x46bcb0]
cmp dword [eax + 8], 0
jle 0x444658
mov eax, dword [0x46bcb0]
call fcn.00443d0c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x444671
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00444348
pop ecx
test al, al
jne 0x444671
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44bce0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.00406a84
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.004468b0
test ebx, ebx
jne 0x44bd33
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.0044bc1c
mov ebx, eax
test ebx, ebx
je 0x44be1e
cmp esi, ebx
je 0x44bd5c
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x44bd71
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x44bda9
add eax, 0xffffff5f
sub eax, 2
jb 0x44bdc1
dec eax
sub eax, 2
jb 0x44bdd5
dec eax
sub eax, 2
jb 0x44bdcb
jmp 0x44bddf
add eax, 0xfffffdff
sub eax, 2
jb 0x44bdc1
dec eax
sub eax, 2
jb 0x44bdd5
dec eax
sub eax, 2
jb 0x44bdcb
jmp 0x44bddf
mov byte [esp + 0x120], 0
jmp 0x44bde7
mov byte [esp + 0x120], 2
jmp 0x44bde7
mov byte [esp + 0x120], 1
jmp 0x44bde7
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.004344e0
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.0044804c
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x44be20
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x454140
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x466d18]
cmp byte [eax + 0xc], 0
je 0x4542ad
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4542a6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x46bcbc], 0
jne 0x454194
push 0x4542b4
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x4542bc
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46bcbc], eax
cmp dword [0x4666f0], 0
jne 0x45428f
push 0x4542cc
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4666f0], eax
cmp dword [0x4666f0], 0
je 0x45428f
push 0x4542d8
mov eax, dword [0x4666f0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46bcc0], eax
push 0x4542e8
mov eax, dword [0x4666f0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46bcc4], eax
push 0x4542fc
mov eax, dword [0x4666f0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46bcc8], eax
push 0x454314
mov eax, dword [0x4666f0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46bccc], eax
push 0x45432c
mov eax, dword [0x4666f0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46bcd0], eax
push 0x454340
mov eax, dword [0x4666f0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46bcd4], eax
push 0x454358
mov eax, dword [0x4666f0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46bcd8], eax
push 0x454370
mov eax, dword [0x4666f0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46bcdc], eax
push 0x45438c
mov eax, dword [0x4666f0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46bce0], eax
push 0x454398
mov eax, dword [0x4666f0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46bce4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4542ad
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x455b04
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.00404ae4
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x455b52
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.00404d54
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45ac34
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45ad67
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x16], 0
lea eax, [ebp - 0x16]
push eax
call sub.user32.dll_GetKeyboardLayoutNameA
mov dl, 1
mov eax, dword [0x41ec10]
call fcn.0041ece0
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x45ad3d
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0041ed80
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.00404d54
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x45ad7c
call fcn.00404dfc
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0041ede4
lea ecx, [ebp - 4]
mov edx, 0x45adb8
mov eax, dword [ebp - 0xc]
call fcn.0041f02c
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040e388
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x45ad20
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x45adc4
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x466814]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ad27
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x45ae14
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x45ae5b
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45ae3e
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45ae4f
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x45ae5b
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x45faa4
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404f64
xor eax, eax
push ebp
push 0x45fb22
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404f74
mov dword [ebp - 8], eax
cmp dword [ebx + 8], 0
jne 0x45faed
mov eax, dword [ebx + 4]
call fcn.00404f74
push eax
push 0
call sub.advapi32.dll_RegisterEventSourceA
mov dword [ebx + 8], eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push 1
push 0
mov eax, dword [ebp + 8]
push eax
movzx eax, word [ebp + 0xc]
push eax
push esi
mov eax, dword [ebx + 8]
push eax
call sub.advapi32.dll_ReportEventA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45fb29
lea eax, [ebp - 4]
call fcn.00404ae4
ret
Function at 0x460bc4
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x460d69
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
xor eax, eax
call fcn.004032ac
cmp word [ebx + 0xa2], 0
je 0x460c0d
mov edx, ebx
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
mov eax, dword [ebx + 0x90]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x460c21
lea esi, [ebp - 0xc]
jmp 0x460c23
xor esi, esi
cmp dword [ebx + 0x80], 0
jne 0x460c30
xor edi, edi
jmp 0x460c3d
mov eax, dword [ebx + 0x80]
call fcn.00404f74
mov edi, eax
mov eax, dword [ebx + 0x7c]
call fcn.00404f74
push eax
push edi
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.00460274
mov eax, dword [ebp - 0x14]
call fcn.00404f74
push eax
push esi
mov eax, dword [ebx + 0x74]
call fcn.00404f74
push eax
mov eax, dword [ebp - 4]
call fcn.00404f74
push eax
mov eax, ebx
call fcn.004603b4
push eax
mov eax, ebx
call fcn.00460388
push eax
mov eax, ebx
call fcn.00460340
push eax
push 0xf01ff
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.00460140
mov eax, dword [ebp - 0x18]
call fcn.00404f74
push eax
mov eax, dword [ebx + 8]
call fcn.00404f74
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CreateServiceA
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x90], eax
cmp dword [ebp - 0x10], 0
jne 0x460cc6
call fcn.0040dd2c
xor edx, edx
push ebp
push 0x460d3f
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x460d04
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [ebx + 0xaa], 0
je 0x460cfa
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x460d28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460d46
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret

Function at 0x460d78
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0xb2], 0
je 0x460da4
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xb4]
call dword [esi + 0xb0]
push 0xf01ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00404f74
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x460dc9
call fcn.0040dd2c
xor eax, eax
push ebp
push 0x460e00
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x460de9
call fcn.0040dd2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460e07
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x461a88
Capabilities:
Check os version

Disassembly:
push ebx
add esp, 0xffffff6c
xor ebx, ebx
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x461b3f
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x10]
dec ecx
je 0x461b09
dec ecx
jne 0x461b3f
cmp eax, 4
jg 0x461ac5
mov bl, 4
jmp 0x461b3f
cmp eax, 5
jne 0x461ad2
test edx, edx
jne 0x461ad2
mov bl, 6
jmp 0x461b3f
cmp eax, 5
jne 0x461ae0
cmp edx, 1
jne 0x461ae0
mov bl, 7
jmp 0x461b3f
cmp eax, 6
jne 0x461aed
test edx, edx
jne 0x461aed
mov bl, 8
jmp 0x461b3f
cmp eax, 6
jne 0x461afb
cmp edx, 1
jne 0x461afb
mov bl, 9
jmp 0x461b3f
cmp eax, 6
jne 0x461b3f
cmp edx, 2
jne 0x461b3f
mov bl, 0xa
jmp 0x461b3f
cmp eax, 4
jne 0x461b16
test edx, edx
jne 0x461b16
mov bl, 1
jmp 0x461b3f
cmp eax, 4
jne 0x461b2f
cmp edx, 0xa
jne 0x461b2f
cmp byte [esp + 0x15], 0x41
jne 0x461b2b
mov bl, 3
jmp 0x461b3f
mov bl, 2
jmp 0x461b3f
cmp eax, 4
jne 0x461b3d
cmp edx, 0x5a
jne 0x461b3d
mov bl, 5
jmp 0x461b3f
xor ebx, ebx
mov eax, ebx
add esp, 0x94
pop ebx
ret

Function at 0x461b4c
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404f64
mov eax, dword [ebp - 8]
call fcn.00404f64
xor eax, eax
push ebp
push 0x461be4
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00404f74
push eax
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jbe 0x461bc7
push 4
mov eax, dword [ebp - 8]
call fcn.00404f74
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov edi, eax
test edi, edi
jbe 0x461bc1
lea eax, [ebp - 0x24]
push eax
push edi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x461bbb
mov esi, dword [ebp - 0x20]
push edi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
mov ebx, esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461beb
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404b08
ret
Function at 0x461f70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404f64
mov eax, dword [ebp - 8]
call fcn.00404f64
xor eax, eax
push ebp
push 0x462095
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov edx, 0x4620b0
mov eax, ebx
call fcn.00461cd8
test eax, eax
jbe 0x46207a
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x46207a
lea eax, [ebp - 0x10]
push eax
push 0xf00ff
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_OpenProcessToken
xor eax, eax
push ebp
push 0x462073
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x58]
xor ecx, ecx
mov edx, 0x44
call fcn.0040352c
mov dword [ebp - 0x58], 0x44
mov eax, 0x4620c0
mov dword [ebp - 0x50], eax
cmp byte [ebp + 8], 0
je 0x46201b
mov word [ebp - 0x28], 0
jmp 0x462021
mov word [ebp - 0x28], 1
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0x4000000
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00404f74
push eax
mov eax, dword [ebp - 4]
call fcn.00404f74
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CreateProcessAsUserA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46207a
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46209c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404b08
ret

Function at 0x462544
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404f64
mov eax, dword [ebp - 8]
call fcn.00404f64
xor eax, eax
push ebp
push 0x4625c2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp + 8], 0
je 0x462579
xor ebx, ebx
jmp 0x46257e
mov ebx, 1
push ebx
push 0
mov eax, dword [ebp - 8]
call fcn.00404f74
push eax
mov eax, dword [ebp - 4]
call fcn.00404f74
push eax
push 0x4625d4
push 0
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
seta al
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4625c9
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404b08
ret
Function at 0x4078d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x49362b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esp + 0x14], 0
call fcn.00407280
lea edi, [esi + 0x14]
mov byte [esp + 0x14], 1
mov ecx, edi
call fcn.00492156
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
mov byte [esp + 0x18], 2
mov dword [esi], 0x4970c4
call fcn.004922ee
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esi + 0x18], ecx
mov ecx, dword [esp + 0x28]
lea eax, [esi + 4]
mov dword [esi + 0x1c], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x14], 0xffffffff
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 8], ecx
lea ecx, [esp + 0x1c]
mov dword [eax + 0xc], edx
call fcn.0049214a
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x1c
Function at 0x40b990
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x493ea7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], 0
lea ecx, [esp + 8]
call fcn.00492156
lea eax, [esp + 8]
mov ebx, 1
push eax
mov ecx, esi
mov dword [esp + 0x30], ebx
call fcn.00492396
lea ecx, [esp + 0x10]
call fcn.0040be60
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
push ecx
push 0x4bf0d4
push 0
lea ecx, [esp + 0x14]
call fcn.004922dc
push eax
call fcn.0040b900
add esp, 0xc
test eax, eax
jne 0x40ba18
mov esi, dword [esp + 0x34]
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.00492282
mov dword [esp + 0xc], ebx
jmp 0x40ba42
push 0x40beb0
lea ecx, [esp + 0x14]
call fcn.0040bee0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x34]
lea edx, [ecx + eax*4 - 4]
mov ecx, esi
push edx
call fcn.00492282
mov dword [esp + 0xc], ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], bl
call fcn.0040bea0
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 0
call fcn.0049214a
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 4