joyce8/EMBER2024-capa huggingface dataset:
Function at 0x17f7fa6c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x17f7fa7e
add esp, 0xfffffff0
call fcn.17f33d60
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.17f4bad8
mov eax, dword [0x17fa7aa4]
mov dword [eax + 4], ebx
mov dword [eax], 0x17f7fe10
mov eax, dword [0x17fa7ab0]
mov dword [eax + 4], ebx
mov dword [eax], 0x17f7fe1c
mov eax, ebx
call fcn.17f7fe28
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x17f42760]
call fcn.17f33a0c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x17f42760]
call fcn.17f33a0c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x17f42760]
call fcn.17f33a0c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x17f42760]
call fcn.17f33a0c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x17f42760]
call fcn.17f33a0c
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, 0x17f7b8c0
push eax
push 0
push 0
mov eax, dword [0x17fa7bf8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x17f4e410]
call fcn.17f4fc64
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x17f4e410]
call fcn.17f4fc64
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x17f4e410]
call fcn.17f4fc64
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.17f80258
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x17f80128
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x17f80128
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x17f80128
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x17f7fbbb
call fcn.17f33db8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x17f7ff0c
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 0x17f800b7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x17f80098
mov dl, 1
mov eax, dword [0x17f42d10]
call fcn.17f33a0c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.17f3491c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x17f80087
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.17f75828
test al, al
je 0x17f8007a
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, 0x17f800c8
lea eax, [ebp - 0x254]
call fcn.17f39754
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x17f8007a
xor eax, eax
push ebp
push 0x17f80073
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 0x17f80100
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x17f8005c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.17f34b8c
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 0x17f8005c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.17f34b8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x17f8007a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x17f7ff7d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.17f47338
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 0x17f800be
lea eax, [ebp - 0x260]
call fcn.17f3491c
ret

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

Disassembly:
push ecx
mov eax, dword [0x17fab568]
cmp byte [eax + 0xad], 0
jne 0x17f80aa1
cmp dword [0x17fab580], 0
jne 0x17f80a62
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x17f809ec
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x17fab580], eax
cmp dword [0x17fab57c], 0
jne 0x17f80a7d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x17fab57c], eax
cmp dword [0x17fab584], 0
jne 0x17f80aa1
push esp
push 0
push 0
push 0x17f80990
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x17fab584], eax
pop edx
ret
Function at 0x17f80c74
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x17f80c8b
add esp, 0xfffffff0
call fcn.17f33d60
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.17f4bad8
mov eax, dword [0x17fa7be4]
cmp word [eax + 2], 0
jne 0x17f80cb3
mov eax, dword [0x17fa7be4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.17f82638
mov eax, dword [0x17fa7ca0]
cmp word [eax + 2], 0
jne 0x17f80ccd
mov eax, dword [0x17fa7ca0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.17f82844
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x17f42760]
call fcn.17f33a0c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x17f42760]
call fcn.17f33a0c
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x17f42760]
call fcn.17f33a0c
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 [0x17f4ef20]
call fcn.17f5654c
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x17f80e84
mov eax, dword [0x17fa7b08]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.17f56920
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x17f82f04
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x17fa7b08]
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.17f3cf00
test eax, eax
je 0x17f80dd4
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.17f390e0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.17f3cf34
test eax, eax
je 0x17f80de8
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.17f34b8c
mov byte [ebx + 0xd4], 0
push ebx
push 0x17f82284
call fcn.17f4d274
mov dword [ebx + 0xc8], eax
mov eax, dword [0x17fa79f4]
cmp byte [eax], 0
jne 0x17f80e39
mov eax, ebx
call fcn.17f80fc8
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.17f830e0
mov eax, ebx
call fcn.17f83c40
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x17f80e79
call fcn.17f33db8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x17f81248
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x17fab568]
cmp dword [eax + 0x30], 0
je 0x17f812f2
cmp dword [ebx + 0x94], 0
jne 0x17f812ec
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x17f811d8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x17f812ec
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 0x17f812b2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x17f812ec
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.17f44e30
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x17f812c1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x17f8200c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x17f82041
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.17f34a0c
jmp 0x17f8204e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.17f34970
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x17f832c4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x17f83332
mov eax, esi
call fcn.17f7059c
test al, al
je 0x17f83332
mov eax, dword [ebx + 0x84]
call fcn.17f70228
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x17f83332
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x17f83326
push 0
mov eax, dword [ebx + 0x84]
call fcn.17f70228
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.17f68620
jmp 0x17f83332
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.17f83100
pop esi
pop ebx
ret
Function at 0x17f88ea8
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.17f34dd0
xor eax, eax
push ebp
push 0x17f88fdd
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x17f88fb0
xor edx, edx
push ebp
push 0x17f88fa9
push dword fs:[edx]
mov dword fs:[edx], esp
mov ebx, dword [ebp - 4]
mov eax, ebx
test eax, eax
je 0x17f88ef5
sub eax, 4
mov eax, dword [eax]
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x17f88f7e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov esi, eax
xor eax, eax
push ebp
push 0x17f88f6d
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x17f88f34
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 4]
call fcn.17f34de0
lea ecx, [ebx + 1]
mov edx, esi
call fcn.17f32e90
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 0x17f88f74
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x17fa7a3c]
mov dl, 1
mov eax, dword [0x17f378b0]
call fcn.17f3c1bc
call fcn.17f342b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x17f88fe4
lea eax, [ebp - 4]
call fcn.17f3491c
ret
Function at 0x17f88fec
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 - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x17f891a7
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.17f350cc
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
mov ecx, 0x17f891c0
call fcn.17f34c2c
mov eax, ebx
call fcn.17f4c118
mov edi, eax
dec edi
test edi, edi
jl 0x17f890a4
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.17f4c0ec
mov edx, dword [0x17f87268]
call fcn.17f33bc8
test al, al
je 0x17f890a0
push dword [ebp - 8]
mov edx, esi
mov eax, ebx
call fcn.17f4c0ec
lea edx, [ebp - 0x14]
call fcn.17f68700
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.17f350cc
push dword [ebp - 0x18]
lea eax, [ebp - 8]
mov edx, 3
call fcn.17f34ca0
inc esi
dec edi
jne 0x17f89052
movzx eax, byte [0x17f891c4]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x17f891d0
mov eax, dword [ebp - 8]
call fcn.17f3d40c
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 8]
call fcn.17f349b4
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.17f68700
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x17f891c0
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x360]
call fcn.17f68700
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x17f891c0
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x17f891c0
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x17f891dc
call fcn.17f397d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x17f891ae
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.17f34940
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.17f34940
lea eax, [ebp - 0x14]
call fcn.17f3491c
lea eax, [ebp - 0x10]
call fcn.17f3491c
lea eax, [ebp - 8]
mov edx, 2
call fcn.17f34940
ret
Function at 0x17f8a578
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.17f34dd0
xor eax, eax
push ebp
push 0x17f8a5f6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.17f34de0
mov dword [ebp - 8], eax
cmp dword [ebx + 8], 0
jne 0x17f8a5c1
mov eax, dword [ebx + 4]
call fcn.17f34de0
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 0x17f8a5fd
lea eax, [ebp - 4]
call fcn.17f3491c
ret

Function at 0x17f8b698
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 0x17f8b83d
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
xor eax, eax
call fcn.17f330ec
cmp word [ebx + 0xa2], 0
je 0x17f8b6e1
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 0x17f8b6f5
lea esi, [ebp - 0xc]
jmp 0x17f8b6f7
xor esi, esi
cmp dword [ebx + 0x80], 0
jne 0x17f8b704
xor edi, edi
jmp 0x17f8b711
mov eax, dword [ebx + 0x80]
call fcn.17f34de0
mov edi, eax
mov eax, dword [ebx + 0x7c]
call fcn.17f34de0
push eax
push edi
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.17f8ad48
mov eax, dword [ebp - 0x14]
call fcn.17f34de0
push eax
push esi
mov eax, dword [ebx + 0x74]
call fcn.17f34de0
push eax
mov eax, dword [ebp - 4]
call fcn.17f34de0
push eax
mov eax, ebx
call fcn.17f8ae88
push eax
mov eax, ebx
call fcn.17f8ae5c
push eax
mov eax, ebx
call fcn.17f8ae14
push eax
push 0xf01ff
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.17f8ac14
mov eax, dword [ebp - 0x18]
call fcn.17f34de0
push eax
mov eax, dword [ebx + 8]
call fcn.17f34de0
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 0x17f8b79a
call fcn.17f3d96c
xor edx, edx
push ebp
push 0x17f8b813
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x17f8b7d8
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [ebx + 0xaa], 0
je 0x17f8b7ce
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 0x17f8b7fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x17f8b81a
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x17f8b84c
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 0x17f8b878
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.17f34de0
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x17f8b89d
call fcn.17f3d96c
xor eax, eax
push ebp
push 0x17f8b8d4
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 0x17f8b8bd
call fcn.17f3d96c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x17f8b8db
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret

Function at 0x17f8c1c4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x17f8c254
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x17f8c254
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x17f8c207
test edx, 3
jne 0x17f8c1f6
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x17f8c201
jmp 0x17f8c207
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x17f8c207
cmp dword [ecx - 8], 1
je 0x17f8c211
mov edx, ebx
or edx, 3
call fcn.17f35068
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x17f8c223
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.17f3491c
Function at 0x40339c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x408490
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40c55c
mov eax, esi
mov edx, 8
test al, 1
je 0x4084ac
shr eax, 1
xor eax, 0xedb88320
jmp 0x4084ae
shr eax, 1
dec edx
jne 0x40849f
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x408498
pop esi
ret

Function at 0x4084db
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40c558], 0
jne 0x4084e7
call fcn.00408490
push 1
push 0x40c558
call fcn.00404ffc
mov eax, edi
test esi, esi
je 0x408512
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40c55c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x4084ed
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x406fcb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46e448]
jne 0x406fd5
repz ret
jmp fcn.004090bb

Function at 0x40875f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x46e448]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00405dad
and dword [ebp - 0x14], 0
cmp dword [0x4705b8], 0
mov dword [ebp - 0x18], eax
jne 0x408812
push 0x4022d0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4088ba
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4022c4
push ebx
call edi
test eax, eax
je 0x4088ba
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4022b4
push ebx
mov dword [0x4705b8], eax
call edi
push eax
call esi
push 0x4022a0
push ebx
mov dword [0x4705bc], eax
call edi
push eax
call esi
push 0x402284
push ebx
mov dword [0x4705c0], eax
call edi
push eax
call esi
mov dword [0x4705c8], eax
test eax, eax
je 0x408812
push 0x40226c
push ebx
call edi
push eax
call esi
mov dword [0x4705c4], eax
mov eax, dword [0x4705c4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40886b
cmp dword [0x4705c8], ecx
je 0x40886b
push eax
call esi
push dword [0x4705c8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40886b
test ebx, ebx
je 0x40886b
call edi
test eax, eax
je 0x408862
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x408862
test byte [ebp - 8], 1
jne 0x40886b
or dword [ebp + 0x10], 0x200000
jmp 0x40889e
mov eax, dword [0x4705bc]
cmp eax, dword [ebp - 0x18]
je 0x40889e
push eax
call esi
test eax, eax
je 0x40889e
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40889e
mov eax, dword [0x4705c0]
cmp eax, dword [ebp - 0x18]
je 0x40889e
push eax
call esi
test eax, eax
je 0x40889e
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4705b8]
call esi
test eax, eax
je 0x4088ba
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4088bc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406fcb
leave
ret
Function at 0x469ce0
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
sub esp, 0xc0c
cmp dword [0x7f4644], 0x37
jne 0x469d99
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FatalAppExitA]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
mov eax, dword [esp]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x402c18
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea edx, [esp + 0x410]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 8]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea ecx, [esp + 4]
push ecx
push 0x402c2c
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
push 0x402c4c
push 0x402c68
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
push 0
lea edx, [esp + 0x810]
push edx
push 0
push 0x402ca4
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov eax, dword [0x7f5638]
mov dword [esp], eax
mov eax, 0x5d1
add dword [esp], eax
mov ecx, dword [esp]
mov dl, byte [ecx + esi]
mov eax, dword [0x475694]
mov byte [eax + esi], dl
add esp, 0xc0c
ret