joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4affe4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4b001c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4afffd
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4b000c
or bl, 4
test esi, 0x20000000
je 0x4b0017
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4b66e0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4b66f2
add esp, 0xfffffff0
call fcn.004040c0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00425788
mov eax, dword [0x4ded98]
mov dword [eax + 4], ebx
mov dword [eax], 0x4b6a84
mov eax, dword [0x4dedac]
mov dword [eax + 4], ebx
mov dword [eax], 0x4b6a90
mov eax, ebx
call fcn.004b6a9c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41c80c]
call fcn.00403d58
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41c80c]
call fcn.00403d58
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41c80c]
call fcn.00403d58
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41c80c]
call fcn.00403d58
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41c80c]
call fcn.00403d58
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, 0x4b2eb4
push eax
push 0
push 0
mov eax, dword [0x4deff4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x47f7d8]
call fcn.00481010
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x47f7d8]
call fcn.00481010
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x47f7d8]
call fcn.00481010
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004b6eec
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4b6db4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4b6db4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4b6db4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4b682f
call fcn.00404118
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4b6b98
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 0x4b6d43
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4b6d24
mov dl, 1
mov eax, dword [0x41cdb4]
call fcn.00403d58
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404d20
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4b6d13
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.004a47f4
test al, al
je 0x4b6d06
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, 0x4b6d54
lea eax, [ebp - 0x254]
call fcn.0040d02c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4b6d06
xor eax, eax
push ebp
push 0x4b6cff
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 0x4b6d8c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4b6ce8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404f90
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 0x4b6ce8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404f90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b6d06
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4b6c09
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00421324
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 0x4b6d4a
lea eax, [ebp - 0x260]
call fcn.00404d20
ret

Function at 0x4b768c
Capabilities:
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4e47e8]
cmp byte [eax + 0xa5], 0
jne 0x4b76fd
cmp dword [0x4e4800], 0
jne 0x4b76be
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4b7648
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4e4800], eax
cmp dword [0x4e47fc], 0
jne 0x4b76d9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4e47fc], eax
cmp dword [0x4e4804], 0
jne 0x4b76fd
push esp
push 0
push 0
push 0x4b75ec
push 0x3e8
push 0
call fcn.00407540
mov dword [0x4e4804], eax
pop edx
ret
Function at 0x4b7d90
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4e47e8]
cmp dword [eax + 0x30], 0
je 0x4b7e3a
cmp dword [ebx + 0x94], 0
jne 0x4b7e34
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4b7d20
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4b7e34
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 0x4b7dfa
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4b7e34
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.0041ed80
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4b7e09
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4b8998
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 0x4b89cd
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.00404e10
jmp 0x4b89da
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404d74
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4b9a20
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4b9a61
mov eax, esi
call fcn.0049fd98
test al, al
je 0x4b9a61
mov eax, dword [ebx + 0x84]
call fcn.0049fa94
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4b9a61
push 0
mov eax, dword [ebx + 0x84]
call fcn.0049fa94
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4ba9e4
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004051ec
xor eax, eax
push ebp
push 0x4bab12
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x4baae5
xor eax, eax
push ebp
push 0x4baade
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404ffc
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4baab3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x4baaa2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404ffc
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.004051fc
mov edx, ebx
pop ecx
call fcn.00402e98
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4baaa9
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x4decc4]
mov dl, 1
mov eax, dword [0x40a87c]
call fcn.0040ffb4
call fcn.004045ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bab19
lea eax, [ebp - 4]
call fcn.00404d20
ret
Function at 0x4bab20
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4bacd1
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.004053ec
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, 0x4bace8
call fcn.00405048
mov eax, ebx
call fcn.00425dac
mov edi, eax
dec edi
test edi, edi
jl 0x4babd8
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.00425d80
mov edx, dword [0x490c04]
call fcn.00403f20
test al, al
je 0x4babd4
push dword [ebp - 0xc]
mov edx, esi
mov eax, ebx
call fcn.00425d80
lea edx, [ebp - 0x14]
call fcn.00499280
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.004053ec
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004050bc
inc esi
dec edi
jne 0x4bab86
mov al, byte [0x4bacec]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x4bacf8
mov eax, dword [ebp - 0xc]
call fcn.004114f0
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
call fcn.00404db8
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.00499280
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x4bace8
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x2f8]
call fcn.00499280
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x4bace8
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x4bace8
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x4bad04
call fcn.0040d0c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bacd8
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.00404d44
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404d44
lea eax, [ebp - 0x14]
call fcn.00404d20
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404d44
ret
Function at 0x4bb8e8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
call sub.kernel32.dll_GetThreadLocale_1
mov ebx, eax
push 2
lea eax, [ebp - 0xa]
push eax
push 0xe
push ebx
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4bb914
mov al, byte [ebp - 0xa]
mov byte [0x4de00c], al
jmp 0x4bb91b
mov byte [0x4de00c], 0x2e
push 2
lea eax, [ebp - 0xa]
push eax
push 0x1e
push ebx
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4bb937
mov al, byte [ebp - 0xa]
mov byte [0x4de010], al
jmp 0x4bb93e
mov byte [0x4de010], 0x3a
push 2
lea eax, [ebp - 0xa]
push eax
push 0x1d
push ebx
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4bb95a
mov al, byte [ebp - 0xa]
mov byte [0x4de014], al
jmp 0x4bb961
mov byte [0x4de014], 0x2f
push 2
lea eax, [ebp - 0xa]
push eax
push 0xf
push ebx
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4bb97d
mov al, byte [ebp - 0xa]
mov byte [0x4de018], al
jmp 0x4bb984
mov byte [0x4de018], 0x2c
mov ebx, 0x20
mov eax, 0x4e4bb4
mov edx, 0x4e4b74
mov ecx, 0x4e4b94
mov byte [eax], 0
mov byte [edx], 0
mov byte [ecx], 0
inc ecx
inc edx
inc eax
dec ebx
jne 0x4bb998
xor ebx, ebx
mov edi, 0x4e4874
mov esi, 0x4e4974
mov dword [ebp - 0x10], 0x4e4a74
mov eax, ebx
mov byte [edi], al
mov byte [esi], al
mov edx, dword [ebp - 0x10]
mov byte [edx], al
mov eax, ebx
and eax, 7
mov dword [ebp - 8], eax
mov eax, ebx
shr eax, 3
mov dword [ebp - 4], eax
cmp ebx, 0x41
jl 0x4bba09
cmp ebx, 0x5a
jg 0x4bba09
mov eax, ebx
xor al, 0x20
mov byte [esi], al
mov byte [edi], al
mov dl, byte [ebp - 8]
mov eax, dword [ebp - 4]
add eax, 0x4e4bb4
call fcn.004bba80
mov dl, byte [ebp - 8]
mov eax, dword [ebp - 4]
add eax, 0x4e4b94
call fcn.004bba80
jmp 0x4bba3e
cmp ebx, 0x61
jl 0x4bba3e
cmp ebx, 0x7a
jg 0x4bba3e
mov eax, ebx
xor al, 0x20
mov edx, dword [ebp - 0x10]
mov byte [edx], al
mov byte [edi], al
mov dl, byte [ebp - 8]
mov eax, dword [ebp - 4]
add eax, 0x4e4bb4
call fcn.004bba80
mov dl, byte [ebp - 8]
mov eax, dword [ebp - 4]
add eax, 0x4e4b74
call fcn.004bba80
inc ebx
inc dword [ebp - 0x10]
inc esi
inc edi
cmp ebx, 0x100
jne 0x4bb9ba
mov byte [0x4e4bb8], 1
mov ebx, 0x20
mov eax, 0x4e4bb4
mov edx, 0x4ddfe4
mov esi, 0x4e4bd4
mov cl, byte [eax]
or cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
inc eax
dec ebx
jne 0x4bba6b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4bbbc4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4bbc2e
push dword fs:[eax]
mov dword fs:[eax], esp
push 6
lea eax, [ebp - 0xf]
push eax
push 0x1004
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xf]
mov ecx, 7
call fcn.00404f90
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040ba24
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bbc35
lea eax, [ebp - 0x14]
call fcn.00404d20
ret
Function at 0x4c39a4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor edx, edx
mov dword [ebp - 0x14], edx
mov word [ebp - 2], ax
xor eax, eax
push ebp
push 0x4c3a10
push dword fs:[eax]
mov dword fs:[eax], esp
push 6
lea eax, [ebp - 0xf]
push eax
push 0x1004
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xf]
mov ecx, 7
call fcn.00404f90
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040ba24
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c3a17
lea eax, [ebp - 0x14]
call fcn.00404d20
ret

Function at 0x4c9420
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.004051ec
mov eax, dword [ebp + 0xc]
call fcn.004051ec
mov eax, dword [ebp + 8]
call fcn.004051ec
xor eax, eax
push ebp
push 0x4c956b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x3c
call fcn.00403614
mov dword [ebp - 0x50], 0x3c
mov dword [ebp - 0x4c], 0x40
mov eax, dword [ebp - 4]
call fcn.004c957c
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x14]
mov dl, byte [ebp - 5]
mov eax, dword [ebp - 4]
call fcn.004c93a0
mov eax, dword [ebp - 0x14]
call fcn.004051fc
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0xc]
call fcn.004051fc
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
call fcn.004051fc
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 8]
call fcn.004051fc
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 4]
call fcn.004c92e0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x50]
push eax
call sub.shell32.dll_ShellExecuteExA
test eax, eax
je 0x4c9505
push 0xffffffffffffffff
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x44], edx
mov eax, dword [ebp - 4]
add eax, 0x40
call fcn.00404d20
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 4]
mov dword [edx + 0x4c], eax
jmp 0x4c9538
call sub.kernel32.dll_GetLastError_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.0040f6b0
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 4]
add eax, 0x40
call fcn.00404d74
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x4c], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c9572
lea eax, [ebp - 0x54]
call fcn.00404d20
lea eax, [ebp - 0x14]
call fcn.00404d20
lea eax, [ebp - 0xc]
call fcn.00404d20
lea eax, [ebp + 8]
mov edx, 2
call fcn.00404d44
ret
Function at 0x4c95c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.004051ec
mov eax, dword [ebp + 0xc]
call fcn.004051ec
mov eax, dword [ebp + 8]
call fcn.004051ec
xor eax, eax
push ebp
push 0x4c971e
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x18]
mov dl, byte [ebp - 5]
mov eax, dword [ebp - 4]
call fcn.004c93a0
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x4c9655
mov eax, dword [ebp - 4]
call fcn.004c92e0
push eax
mov eax, dword [ebp + 8]
call fcn.004051fc
push eax
mov eax, dword [ebp + 0xc]
call fcn.004051fc
push eax
mov eax, dword [ebp - 0xc]
call fcn.004051fc
push eax
mov eax, dword [ebp - 0x18]
call fcn.004051fc
push eax
mov eax, dword [ebp - 4]
call fcn.004c957c
push eax
call sub.shell32.dll_ShellExecuteA
mov dword [ebp - 0x14], eax
jmp 0x4c9693
mov eax, dword [ebp - 4]
call fcn.004c92e0
push eax
mov eax, dword [ebp + 8]
call fcn.004051fc
push eax
mov eax, dword [ebp + 0xc]
call fcn.004051fc
push eax
mov eax, dword [ebp - 0xc]
call fcn.004051fc
push eax
mov eax, dword [ebp - 0x18]
call fcn.004051fc
push eax
mov eax, dword [ebp - 4]
call fcn.004c957c
push eax
call sub.shell32.dll_ShellExecuteA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x20
jg 0x4c96ce
call sub.kernel32.dll_GetLastError_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.0040f6b0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
add eax, 0x40
call fcn.00404d74
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x4c], edx
jmp 0x4c96ee
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x44], edx
mov eax, dword [ebp - 4]
add eax, 0x40
call fcn.00404d20
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov dword [edx + 0x4c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c9725
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404d44
lea eax, [ebp - 0xc]
call fcn.00404d20
lea eax, [ebp + 8]
mov edx, 2
call fcn.00404d44
ret
Function at 0x4d33a4
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d34d0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x104
lea eax, [ebp - 0xc]
mov edx, 0x104
call fcn.00405388
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004051fc
push eax
call sub.advapi32.dll_GetUserNameA
test eax, eax
je 0x4d34b5
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00405388
xor eax, eax
mov dword [ebp - 0x18], eax
push 0
mov eax, dword [ebp - 4]
mov ecx, 1
mov edx, dword [0x4d3370]
call fcn.00406198
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
xor edx, edx
call fcn.00405388
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
call fcn.004051fc
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004051fc
push eax
push 0
call sub.advapi32.dll_LookupAccountNameA
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
mov ecx, 1
mov edx, dword [0x4d3370]
call fcn.00406198
add esp, 4
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x14]
call fcn.00405388
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
call fcn.004051fc
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004051fc
push eax
push 0
call sub.advapi32.dll_LookupAccountNameA
test eax, eax
jne 0x4d34b5
mov eax, dword [ebp - 4]
mov edx, dword [0x4d3370]
call fcn.004062c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d34d7
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404d44
ret
Function at 0x4d34dc
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff48
push ebx
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x20]
call fcn.004051ec
mov eax, dword [ebp + 0x1c]
call fcn.004051ec
mov eax, dword [ebp + 8]
call fcn.004051ec
xor eax, eax
push ebp
push 0x4d3643
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xb8], 0x94
lea eax, [ebp - 0xb8]
push eax
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x4d360a
cmp dword [ebp - 0xa8], 2
jb 0x4d360a
mov eax, dword [ebp + 0x1c]
call fcn.004051fc
push eax
mov eax, dword [ebp + 8]
push eax
call sub.advapi32.dll_RegisterEventSourceA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4d360a
mov word [ebp - 0x12], 0
mov al, byte [ebp + 0x14]
sub al, 1
jb 0x4d3580
je 0x4d3598
dec al
je 0x4d3590
dec al
je 0x4d3588
jmp 0x4d359e
mov word [ebp - 0x12], 0
jmp 0x4d359e
mov word [ebp - 0x12], 1
jmp 0x4d359e
mov word [ebp - 0x12], 2
jmp 0x4d359e
mov word [ebp - 0x12], 4
mov eax, dword [ebp - 4]
call fcn.004051fc
mov dword [ebp - 0x18], eax
cmp byte [ebp + 0x18], 0
je 0x4d35b9
lea eax, [ebp - 0x1c]
call fcn.004d33a4
jmp 0x4d35c7
lea eax, [ebp - 0x1c]
mov edx, dword [0x4d3370]
call fcn.004062c4
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 1
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
mov ax, word [ebp - 0x12]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_ReportEventA
test eax, eax
jne 0x4d3601
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x20]
call fcn.0040f6b0
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_DeregisterEventSource
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d364a
lea eax, [ebp - 0x20]
call fcn.00404d20
lea eax, [ebp - 0x1c]
mov edx, dword [0x4d3370]
call fcn.004062c4
lea eax, [ebp + 8]
call fcn.00404d20
lea eax, [ebp + 0x1c]
mov edx, 2
call fcn.00404d44
ret