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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x50f958]
cmp byte [eax + 0xc], 0
je 0x45e4a1
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45e49a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x514cc4], 0
jne 0x45e388
push 0x45e4a8
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x45e4b0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x514cc4], eax
cmp dword [0x50390c], 0
jne 0x45e483
push 0x45e4c0
call sub.kernel32.dll_LoadLibraryA
mov dword [0x50390c], eax
cmp dword [0x50390c], 0
je 0x45e483
push 0x45e4cc
mov eax, dword [0x50390c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x514cc8], eax
push 0x45e4dc
mov eax, dword [0x50390c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x514ccc], eax
push 0x45e4f0
mov eax, dword [0x50390c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x514cd0], eax
push 0x45e508
mov eax, dword [0x50390c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x514cd4], eax
push 0x45e520
mov eax, dword [0x50390c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x514cd8], eax
push 0x45e534
mov eax, dword [0x50390c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x514cdc], eax
push 0x45e54c
mov eax, dword [0x50390c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x514ce0], eax
push 0x45e564
mov eax, dword [0x50390c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x514ce4], eax
push 0x45e580
mov eax, dword [0x50390c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x514ce8], eax
push 0x45e58c
mov eax, dword [0x50390c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x514cec], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45e4a1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x464bc0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
mov edi, eax
test bl, bl
je 0x464be1
test edi, 0x40000
je 0x464bfb
test bl, bl
jne 0x464c7c
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x464c7c
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.user32.dll_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x464c2e
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x464c43
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
jmp 0x464c52
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x464c63
cmp byte [esp + 2], 0
je 0x464c7c
cmp byte [esp + 2], 0
je 0x464c74
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x464c7c
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x464f20
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x464f46
mov eax, esp
push eax
push 0x464ee8
call sub.user32.dll_EnumWindows
jmp 0x464f59
mov eax, esp
push eax
push 0x464ec8
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x465000
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x465054]
test si, 4
je 0x465015
or bl, 1
test si, 8
je 0x46501f
or bl, 4
test si, 1
je 0x465029
or bl, 8
test si, 2
je 0x465033
or bl, 0x10
test si, 0x10
je 0x46503d
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46504c
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x465058
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x465094]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x465072
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x465081
or bl, 4
test esi, 0x20000000
je 0x46508c
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x46d100
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x46d112
add esp, 0xfffffff0
call fcn.004058d4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00424ea4
mov eax, dword [0x50f338]
mov dword [eax + 4], ebx
mov dword [eax], 0x46d4a4
mov eax, dword [0x50f344]
mov dword [eax + 4], ebx
mov dword [eax], 0x46d4b0
mov eax, ebx
call fcn.0046d4bc
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41ab4c]
call fcn.00405580
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41ab4c]
call fcn.00405580
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41ab4c]
call fcn.00405580
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41ab4c]
call fcn.00405580
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41ab4c]
call fcn.00405580
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, 0x468964
push eax
push 0
push 0
mov eax, dword [0x50f5b4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x42b1b0]
call fcn.0042ca04
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x42b1b0]
call fcn.0042ca04
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x42b1b0]
call fcn.0042ca04
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0046d934
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46d804
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46d804
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46d804
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46d24f
call fcn.0040592c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x46d5e8
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 0x46d793
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x46d774
mov dl, 1
mov eax, dword [0x41b290]
call fcn.00405580
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004064cc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46d763
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.0045e690
test al, al
je 0x46d756
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, 0x46d7a4
lea eax, [ebp - 0x254]
call fcn.0040c078
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46d756
xor eax, eax
push ebp
push 0x46d74f
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 0x46d7dc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x46d738
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040674c
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 0x46d738
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040674c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d756
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x46d659
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0042041c
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 0x46d79a
lea eax, [ebp - 0x260]
call fcn.004064cc
ret

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

Disassembly:
push ecx
mov eax, dword [0x514d08]
cmp byte [eax + 0xad], 0
jne 0x46e17d
cmp dword [0x514d24], 0
jne 0x46e13e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x46e0c8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x514d24], eax
cmp dword [0x514d20], 0
jne 0x46e159
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x514d20], eax
cmp dword [0x514d28], 0
jne 0x46e17d
push esp
push 0
push 0
push 0x46e06c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x514d28], eax
pop edx
ret
Function at 0x46e380
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x46e397
add esp, 0xfffffff0
call fcn.004058d4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00424ea4
mov eax, dword [0x50f598]
cmp word [eax + 2], 0
jne 0x46e3bf
mov eax, dword [0x50f598]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00470088
mov eax, dword [0x50f6bc]
cmp word [eax + 2], 0
jne 0x46e3d9
mov eax, dword [0x50f6bc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00470294
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41ab4c]
call fcn.00405580
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41ab4c]
call fcn.00405580
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x41ab4c]
call fcn.00405580
mov dword [ebx + 0xb0], 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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x42bcc0]
call fcn.00433a48
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x46e590
mov eax, dword [0x50f3e4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00433e1c
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x470958
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x50f3e4]
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.0040fe70
test eax, eax
je 0x46e4e0
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040b9ac
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040fea4
test eax, eax
je 0x46e4f4
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.0040674c
mov byte [ebx + 0xd4], 0
push ebx
push 0x46fafc
call fcn.00426640
mov dword [ebx + 0xc8], eax
mov eax, dword [0x50f1bc]
cmp byte [eax], 0
jne 0x46e545
mov eax, ebx
call fcn.0046e6d4
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00470b6c
mov eax, ebx
call fcn.004716d0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46e585
call fcn.0040592c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46e954
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x46e9f3
cmp dword [ebx + 0x94], 0
jne 0x46e9ed
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46e8dc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46e9ed
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 0x46e9b3
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46e9ed
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.0041d480
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46e9c2
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x514d08]
cmp dword [eax + 0x30], 0
je 0x46ed69
test bl, bl
jne 0x46ecba
cmp dword [esi + 0x9c], 0
jne 0x46ecaf
mov eax, esi
call fcn.0047154c
push eax
push 0x46eb38
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x46ec80
mov eax, dword [0x514d08]
call fcn.00471c2c
test al, al
je 0x46ec80
mov eax, dword [0x514d2c]
call fcn.004077a4
mov edi, eax
cmp edi, 0
jl 0x46ec80
push 0
mov eax, dword [0x514d2c]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x46ec6a
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x46ecaf
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041d480
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x46ec8f
inc dword [esi + 0x9c]
jmp 0x46ed69
cmp dword [esi + 0x9c], 0
jle 0x46ed69
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x46ed69
cmp dword [esi + 0x44], 0
je 0x46ed15
mov eax, dword [0x514d08]
call fcn.00471c2c
test al, al
je 0x46ed15
mov eax, dword [0x514d2c]
call fcn.004077a4
mov edi, eax
cmp edi, 0
jl 0x46ed15
push 5
mov eax, dword [0x514d2c]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x46ecff
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x46ed44
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041d480
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x46ed24
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x514d2c
mov ecx, 1
mov edx, dword [0x46eb18]
call fcn.00407958
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x46f850
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 0x46f8ba
mov eax, ebx
call fcn.00471c2c
test al, al
jne 0x46f8ba
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.004065bc
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x46f8a7
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x46f8c7
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406520
jmp 0x46f8c7
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406520
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x470d50
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x470dbe
mov eax, esi
call fcn.0045927c
test al, al
je 0x470dbe
mov eax, dword [ebx + 0x84]
call fcn.00458edc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x470dbe
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x470db2
push 0
mov eax, dword [ebx + 0x84]
call fcn.00458edc
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00450d34
jmp 0x470dbe
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00470b8c
pop esi
pop ebx
ret

Function at 0x4728d0
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.0040695c
xor eax, eax
push ebp
push 0x47294e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040696c
mov dword [ebp - 8], eax
cmp dword [ebx + 8], 0
jne 0x472919
mov eax, dword [ebx + 4]
call fcn.0040696c
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 0x472955
lea eax, [ebp - 4]
call fcn.004064cc
ret
Function at 0x473ba8
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 0x473d4d
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
xor eax, eax
call fcn.00404afc
cmp word [ebx + 0xa2], 0
je 0x473bf1
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 0x473c05
lea esi, [ebp - 0xc]
jmp 0x473c07
xor esi, esi
cmp dword [ebx + 0x80], 0
jne 0x473c14
xor edi, edi
jmp 0x473c21
mov eax, dword [ebx + 0x80]
call fcn.0040696c
mov edi, eax
mov eax, dword [ebx + 0x7c]
call fcn.0040696c
push eax
push edi
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.00473258
mov eax, dword [ebp - 0x14]
call fcn.0040696c
push eax
push esi
mov eax, dword [ebx + 0x74]
call fcn.0040696c
push eax
mov eax, dword [ebp - 4]
call fcn.0040696c
push eax
mov eax, ebx
call fcn.00473398
push eax
mov eax, ebx
call fcn.0047336c
push eax
mov eax, ebx
call fcn.00473324
push eax
push 0xf01ff
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.00473110
mov eax, dword [ebp - 0x18]
call fcn.0040696c
push eax
mov eax, dword [ebx + 8]
call fcn.0040696c
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 0x473caa
call fcn.00410874
xor edx, edx
push ebp
push 0x473d23
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x473ce8
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [ebx + 0xaa], 0
je 0x473cde
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 0x473d0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473d2a
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret

Function at 0x473d5c
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 0x473d88
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.0040696c
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x473dad
call fcn.00410874
xor eax, eax
push ebp
push 0x473de4
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 0x473dcd
call fcn.00410874
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473deb
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x47652c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x3c]
sub edi, dword [ebx + 0x74]
sub edi, dword [ebx + 0x6c]
jmp 0x476559
mov eax, dword [ebx + 0x2c]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x6c]
ja 0x4765d8
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.00474d30
add esp, 0xc
sub dword [ebx + 0x70], esi
sub dword [ebx + 0x6c], esi
sub dword [ebx + 0x5c], ebp
mov eax, dword [ebx + 0x4c]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x44]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x4765a6
mov cx, word [esp]
sub cx, si
jmp 0x4765a8
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x47658f
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x40]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x4765ce
mov cx, word [esp]
sub cx, si
jmp 0x4765d0
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x4765b7
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x476635
mov edx, dword [ebx + 0x38]
mov ecx, edi
add edx, dword [ebx + 0x6c]
mov eax, ebp
add edx, dword [ebx + 0x74]
call fcn.00476200
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x476620
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x6c]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x48], eax
mov ecx, dword [ebx + 0x58]
shl eax, cl
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x6c]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x54]
mov dword [ebx + 0x48], eax
cmp dword [ebx + 0x74], 0x106
jae 0x476635
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x476536
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x47d31c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040695c
mov eax, dword [ebp - 8]
call fcn.0040695c
xor eax, eax
push ebp
push 0x47d381
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 8]
call fcn.0040696c
push eax
mov eax, dword [ebp - 4]
call fcn.0040696c
push eax
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d388
lea eax, [ebp - 8]
mov edx, 2
call fcn.004064f0
ret

Function at 0x47d5f4
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x47d6e4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
mov edx, 0x47d6fc
call fcn.00406520
cmp ebx, 0xffffffff
jne 0x47d644
push 0xf01ff
push 0
push 0
call sub.user32.dll_OpenInputDesktop
mov esi, eax
test esi, esi
je 0x47d6b8
jmp 0x47d657
test ebx, ebx
jne 0x47d64f
call sub.kernel32.dll_GetCurrentThreadId_1
mov ebx, eax
push ebx
call sub.user32.dll_GetThreadDesktop
mov esi, eax
lea eax, [ebp - 8]
push eax
push pe_nt_image_headers32
lea eax, [ebp - 0x108]
push eax
push 2
push esi
call sub.user32.dll_GetUserObjectInformationA
test eax, eax
jne 0x47d6a6
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x10c]
call fcn.0040e730
mov ecx, dword [ebp - 0x10c]
lea eax, [ebp - 4]
mov edx, 0x47d70c
call fcn.004067f4
mov eax, dword [ebp - 4]
call fcn.0040696c
push eax
call sub.kernel32.dll_OutputDebugStringA
jmp 0x47d6b8
mov eax, edi
lea edx, [ebp - 0x108]
mov ecx, pe_nt_image_headers32
call fcn.0040674c
cmp ebx, 0xffffffff
jne 0x47d6c3
push esi
call sub.user32.dll_CloseDesktop
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d6eb
lea eax, [ebp - 0x10c]
call fcn.004064cc
lea eax, [ebp - 4]
call fcn.004064cc
ret