joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5cd018
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xc4], 0
je 0x5cd075
cmp byte [ebx + 0xeb], 0
jne 0x5cd075
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x188]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004099c0
mov eax, dword [esi]
test eax, eax
je 0x5cd062
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x5cd082
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.00409c18
jmp 0x5cd082
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.00409c18
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x5ce934
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x98]
test esi, esi
je 0x5ce9a5
mov eax, esi
call fcn.005294a4
test al, al
je 0x5ce9a5
mov eax, dword [ebx + 0x98]
call fcn.005290d4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x5ce9a5
mov eax, dword [ebx + 0x98]
mov edx, dword [eax]
call dword [edx + 0x118]
test al, al
je 0x5ce996
push 0
mov eax, dword [ebx + 0x98]
call fcn.005290d4
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x98]
call fcn.0051fcb8
jmp 0x5ce9a5
mov cl, 1
mov edx, dword [ebx + 0x88]
mov eax, ebx
call fcn.005ce76c
pop esi
pop ebx
ret
Function at 0x5d3274
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
cmp dword [ebx + 0x8c], 0
jne 0x5d32ee
mov eax, dword [ebx + 8]
call fcn.005290d4
mov ecx, eax
mov dl, 1
mov eax, dword [0x5356a0]
call fcn.005233c4
mov esi, eax
mov dword [ebx + 0x8c], esi
xor edx, edx
mov eax, esi
call fcn.00539e50
mov dword [esi + 0x2bc], ebx
mov dword [esi + 0x2b8], 0x5d2b6c
push 8
push 3
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 0x8c]
call fcn.005290d4
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x8c]
call fcn.005290d4
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x9c], 0
jne 0x5d3364
mov eax, dword [ebx + 8]
call fcn.005290d4
mov ecx, eax
mov dl, 1
mov eax, dword [0x5356a0]
call fcn.005233c4
mov esi, eax
mov dword [ebx + 0x9c], esi
mov dl, 1
mov eax, esi
call fcn.00539e50
mov dword [esi + 0x2bc], ebx
mov dword [esi + 0x2b8], 0x5d2bb8
push 8
push 0
push 2
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x9c]
call fcn.005290d4
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x9c]
call fcn.005290d4
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x94], 0
jne 0x5d33d0
mov eax, dword [ebx + 8]
call fcn.005290d4
mov ecx, eax
mov dl, 1
mov eax, dword [0x536120]
call fcn.005233c4
mov esi, eax
mov dword [ebx + 0x94], esi
mov eax, esi
mov byte [eax + 0x290], 1
push 8
push 3
call sub.user32.dll_GetSystemMetrics
push eax
push 2
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x94]
call fcn.005290d4
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x94]
call fcn.005290d4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x5d9ca8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
test dl, dl
je 0x5d9cc0
add esp, 0xfffffff0
call fcn.004080e8
mov byte [ebp - 9], dl
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x5d9dda
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 8], ebx
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
call fcn.00406a34
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
dec ebx
test ebx, ebx
jl 0x5d9dc4
inc ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
call fcn.00510064
xor eax, eax
push ebp
push 0x5d9db1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
call fcn.00510064
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x10]
lea ebx, [eax + edx*8]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
mov dword [ebx], eax
lea eax, [ebx + 4]
mov edx, dword [ebp - 4]
call fcn.0040a5d4
jmp 0x5d9d82
lea eax, [ebx + 4]
mov ecx, 1
mov edx, 1
call fcn.0040a900
mov eax, dword [ebx + 4]
call fcn.00409cfc
dec eax
jle 0x5d9d96
mov eax, dword [ebx + 4]
cmp word [eax], 0x5f
je 0x5d9d70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d9db8
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x54]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d9de1
lea eax, [ebp - 4]
call fcn.00409880
ret
Function at 0x5e81ac
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
test al, al
jne 0x5e829f
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x30]
dec eax
test eax, eax
jl 0x5e829f
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
dec eax
test eax, eax
jl 0x5e8293
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 4]
call fcn.004fc3f0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
and eax, 0xff
imul dword [ebp - 8]
mov edx, dword [ebp - 0x18]
shr edx, 8
and edx, 0xff
imul edx, dword [ebp - 0xc]
add eax, edx
mov edx, dword [ebp - 0x18]
shr edx, 0x10
and edx, 0xff
imul edx, dword [ebp + 8]
add eax, edx
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
add edx, dword [ebp + 8]
mov ecx, edx
cdq
idiv ecx
mov dword [ebp - 0x18], eax
xor eax, eax
mov al, byte [ebp - 0x18]
xor edx, edx
mov dl, byte [ebp - 0x18]
shl edx, 8
or eax, edx
xor edx, edx
mov dl, byte [ebp - 0x18]
shl edx, 0x10
or eax, edx
push eax
mov eax, dword [ebp - 4]
call fcn.004fc3f0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0x20]
inc dword [ebp - 0x14]
dec dword [ebp - 0x20]
jne 0x5e8204
inc dword [ebp - 0x10]
dec dword [ebp - 0x1c]
jne 0x5e81e8
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x5f00ac
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
and eax, 1
test al, al
je 0x5f00db
mov eax, dword [ebp - 4]
shr eax, 1
xor eax, 0xedb88320
mov dword [ebp - 4], eax
jmp 0x5f00de
shr dword [ebp - 4], 1
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 8
jne 0x5f00c2
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [eax*4 + 0x63c818], edx
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x100
jne 0x5f00b7
mov byte [0x63cc18], 1
mov esp, ebp
pop ebp
ret

Function at 0x5f010c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
cmp byte [0x63cc18], 0
jne 0x5f012f
call fcn.005f00ac
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jl 0x5f016e
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
movzx eax, byte [eax + edx]
xor eax, dword [ebp - 0x14]
and eax, 0xff
mov eax, dword [eax*4 + 0x63c818]
mov edx, dword [ebp - 0x14]
shr edx, 8
xor eax, edx
mov dword [ebp - 0x14], eax
inc dword [ebp - 0x18]
dec dword [ebp - 0x1c]
jne 0x5f0142
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x5fd928
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x5fd956
mov eax, ebx
call fcn.005fe3e4
cmp dword [ebx + 0x40], 0
je 0x5fd94f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x5fd9c7
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x5fd9b9
cmp dword [ebx + 8], 0
je 0x5fd978
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x5fd98a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x5fd9b9
cmp dword [ebx + 8], 0
je 0x5fd96b
cmp eax, 3
je 0x5fd99d
dec eax
jne 0x5fd96b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x5fd96b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x5fd96b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x5fd9e5
cmp dword [ebx + 0x14], 0xcc
je 0x5fd9e5
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.005fd9f0
pop ebx
ret

Function at 0x60e050
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x17
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x60e06c
push 2
call sub.user32.dll_GetAsyncKeyState
mov word [ebp - 4], ax
jmp 0x60e077
push 1
call sub.user32.dll_GetAsyncKeyState
mov word [ebp - 4], ax
movsx eax, word [ebp - 4]
test ah, 0x80
setne byte [ebp - 1]
mov al, byte [ebp - 1]
pop ecx
pop ebp
ret
Function at 0x403caa
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push 0x22c
mov eax, 0x413e52
call fcn.004129b4
mov ebx, ecx
mov dword [ebp - 0x22c], ebx
xor eax, eax
push eax
push eax
mov dword [ebp - 0x224], eax
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x403ebe
lea edi, [ebx + 8]
xor esi, esi
push edi
push 0x40267c
push 1
push esi
push 0x4026a0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x403eb8
mov eax, dword [edi]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
mov eax, dword [ebx + 0xc]
lea ecx, [ebp - 0x230]
push dword [eax]
call fcn.00404040
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, dword [ebp - 0x230]
test esi, esi
je 0x403d3b
mov eax, dword [edi]
lea edx, [ebp - 0x238]
push edx
xor edx, edx
push edx
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x10]
mov edi, eax
xor ecx, ecx
jmp 0x403d40
mov edi, 0x8007000e
test edi, edi
js 0x403eb1
mov edx, dword [ebx + 0x14]
mov byte [ebp - 0x219], 1
mov dword [ebp - 0x220], ecx
test edx, edx
je 0x403db4
mov ecx, edx
mov dword [ebp - 0x220], edx
lea eax, [ecx + 2]
mov dword [ebp - 0x228], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x224]
jne 0x403d6d
sub ecx, dword [ebp - 0x228]
sar ecx, 1
cmp ecx, 5
jb 0x403eb1
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403deb
test al, 0x10
jne 0x403deb
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x403deb
mov edi, 0x80004005
jmp 0x403deb
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0x104
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00403ec9
mov edi, eax
test edi, edi
js 0x403de3
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], eax
xor eax, eax
mov byte [ebp - 0x219], al
test edi, edi
js 0x403eb1
push dword [ebp - 0x220]
lea ecx, [ebp - 0x224]
call fcn.00404040
mov byte [ebp - 4], 1
mov eax, dword [ebx + 8]
push dword [ebp - 0x224]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
test eax, eax
js 0x403ea5
push 0x10
call fcn.004085ee
mov edi, eax
pop ecx
test edi, edi
je 0x403e63
mov bl, byte [ebx + 0x12]
mov ecx, dword [ebp - 0x22c]
mov al, byte [ebp - 0x219]
mov dl, byte [ecx + 0x10]
mov ecx, dword [ecx + 4]
mov byte [edi + 0xe], bl
mov ebx, dword [ebp - 0x22c]
mov dword [edi], 0x403538
mov dword [edi + 4], 1
mov dword [edi + 8], ecx
mov byte [edi + 0xc], dl
mov byte [edi + 0xd], al
jmp 0x403e67
xor eax, eax
mov edi, eax
test edi, edi
je 0x403ea5
mov eax, dword [ebx + 8]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
test eax, eax
js 0x403e9f
mov eax, dword [ebx + 8]
mov byte [ebx + 0x11], 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
xor eax, eax
mov byte [ebx + 0x11], al
cmp byte [ebp - 0x219], al
jne 0x403e9f
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [edi]
push edi
call dword [eax + 8]
push dword [ebp - 0x224]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
call dword [sym.imp.ole32.dll_CoUninitialize]
call fcn.00412968
ret
Function at 0x403ec9
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x416040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x8000ffff
test esi, esi
je 0x403ef5
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x25c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x403fa7
cmp eax, 0x104
ja 0x403fa7
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
mov edi, eax
test edi, edi
js 0x403fa7
push 0x27
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
push 0x402640
lea ecx, [ebp - 0x25c]
call fcn.00403fc1
mov edi, eax
test edi, edi
js 0x403fa7
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x25c]
call fcn.00403fc1
mov edi, eax
test edi, edi
js 0x403fa7
push 0x402670
lea ecx, [ebp - 0x25c]
call fcn.00403fc1
mov edi, eax
test edi, edi
js 0x403fa7
mov edx, dword [ebx]
lea eax, [ebp - 0x25c]
push eax
mov ecx, esi
call fcn.004040c5
mov edi, eax
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x403f96
sub esi, ecx
sar esi, 1
mov dword [ebx], esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408929
mov esp, ebp
pop ebp
ret 8
Function at 0x404f79
Capabilities:
Create service
Modify service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x416040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.0040516d
push 2
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x214], ebx
test ebx, ebx
je 0x405138
push 0x105
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40510c
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x210]
push eax
push edi
push 3
push 0x10
push 0xf01ff
push dword [esi + 0x24]
push dword [esi + 0x20]
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
test edi, edi
je 0x40512f
and dword [ebp - 0x218], 0
lea eax, [ebp - 0x21c]
and dword [ebp - 0x21c], 0
push eax
push 4
lea eax, [ebp - 0x218]
push eax
push 5
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfig2W]
test eax, eax
je 0x4050e4
mov ebx, dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
lea eax, [ebp - 0x218]
push eax
push 5
push edi
mov dword [ebp - 0x218], 1
call ebx
test eax, eax
je 0x4050ca
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0x4027a0
push eax
push 6
push edi
call ebx
test eax, eax
je 0x4050b0
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x220]
push eax
push 1
push edi
call ebx
test eax, eax
je 0x40508b
call fcn.00405271
mov ebx, dword [ebp - 0x214]
jmp 0x405103
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40509d
movzx eax, ax
or eax, 0x80070000
push eax
push 0x402828
call fcn.00408d6a
mov ebx, dword [ebp - 0x214]
jmp 0x405101
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4050c2
movzx eax, ax
or eax, 0x80070000
push eax
push 0x4028a8
jmp 0x4050a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4050dc
movzx eax, ax
or eax, 0x80070000
push eax
push 0x402920
jmp 0x4050a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4050f6
movzx eax, ax
or eax, 0x80070000
push eax
push 0x402998
call fcn.00408d6a
pop ecx
pop ecx
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40512f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40511e
movzx eax, ax
or eax, 0x80070000
push eax
push dword [esi + 0x20]
push 0x402a10
call fcn.00408d6a
add esp, 0xc
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x405157
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40514a
movzx eax, ax
or eax, 0x80070000
push eax
push 0x402a80
call fcn.00408d6a
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408929
mov esp, ebp
pop ebp
ret
Function at 0x4051f2
Capabilities:
Query service status
Stop service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x416040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 1
push 0
push 0
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x40525c
push 0x24
push dword [esi + 0x20]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x405255
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x40524e
cmp dword [ebp - 0x1c], 1
je 0x40524e
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00408929
mov esp, ebp
pop ebp
ret
Function at 0x405624
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x416040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x200
push 0
push 0x402b04
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x40567e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0x80070000
test eax, eax
jle 0x405668
movzx eax, ax
or eax, ebx
push eax
push 0x402b30
mov edi, 0x402b90
push edi
call fcn.00408d6a
add esp, 0xc
jmp 0x4056d2
push 0x4031cc
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, 0x80070000
mov edi, 0x402b90
test eax, eax
jne 0x4056af
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4056a7
movzx eax, ax
or eax, ebx
push eax
push 0x402b30
jmp 0x4056c2
call eax
test eax, eax
jns 0x4056cb
cmp eax, 0x80070490
je 0x4056cb
push eax
push 0x4031e0
push edi
call fcn.00408d6a
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x27
lea eax, [ebp - 0x54]
push eax
push 0x4025f8
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
jne 0x4056fd
push 0x402c38
push 0x402c88
call fcn.00408d6a
pop ecx
pop ecx
jmp 0x4057f6
push 0x403324
mov edx, 0x104
lea ecx, [ebp - 0x25c]
call fcn.004040c5
mov esi, eax
test esi, esi
js 0x4057e7
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x25c]
call fcn.00403fc1
mov esi, eax
test esi, esi
js 0x4057e7
lea eax, [ebp - 0x25c]
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
je 0x405772
cmp eax, 2
je 0x405772
test eax, eax
jg 0x405758
mov esi, eax
jmp 0x40575d
movzx esi, ax
or esi, ebx
push esi
lea eax, [ebp - 0x25c]
push eax
push 0x403250
call fcn.00408d6a
add esp, 0xc
test esi, esi
js 0x4057e7
push 0x402e10
mov edx, 0x104
lea ecx, [ebp - 0x25c]
call fcn.004040c5
mov esi, eax
test esi, esi
js 0x4057e7
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x25c]
call fcn.00403fc1
mov esi, eax
test esi, esi
js 0x4057e7
lea eax, [ebp - 0x25c]
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
je 0x4057e3
cmp eax, 2
je 0x4057e3
test eax, eax
jg 0x4057c9
mov esi, eax
jmp 0x4057ce
movzx esi, ax
or esi, ebx
push esi
lea eax, [ebp - 0x25c]
push eax
push 0x403250
call fcn.00408d6a
add esp, 0xc
test esi, esi
jns 0x4057f6
push esi
push 0x4032c0
push edi
call fcn.00408d6a
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408929
mov esp, ebp
pop ebp
ret
Function at 0x405d2e
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
lea eax, [ebp - 4]
push esi
push edi
push eax
xor edi, edi
push edi
push 5
mov dword [ebp - 4], edi
call ebx
cmp dword [ebp - 4], edi
jne 0x405da1
mov esi, edi
lea eax, [ebp - 4]
push eax
push esi
push 5
call ebx
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
test eax, eax
je 0x405d6c
cmp dword [ebp - 4], edi
jne 0x405d80
push esi
call ebx
push 7
push ecx
lea ecx, [ebp - 8]
mov dword [ebp - 8], edi
call fcn.00407d78
mov esi, dword [ebp - 8]
test byte [0x417d40], 1
je 0x405d95
sub esp, 0x10
mov edx, esi
call fcn.00405c81
mov edi, eax
push esi
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 4]
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov esi, eax
test esi, esi
jne 0x405d54
mov ecx, 0x8007000e
call fcn.00404023
int3
Function at 0x406bde
Capabilities:
Check if file exists
Create directory
Get file attributes
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x416040]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x260], 0
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x264], eax
push esi
mov esi, 0x80070057
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x406c1a
xor eax, eax
mov word [ebx], ax
test edi, edi
je 0x406d1d
lea eax, [ebp - 0x260]
mov edx, SysReAllocString
push eax
mov ecx, edi
call fcn.00407cae
mov esi, eax
test esi, esi
jns 0x406c3f
xor eax, eax
jmp 0x406c45
mov eax, dword [ebp - 0x260]
test esi, esi
jne 0x406d1d
test eax, eax
je 0x406d1d
push 0x104
lea eax, [ebp - 0x25c]
mov esi, 0x8000ffff
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x406d1d
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp - 0x25c]
push eax
call edi
cmp eax, 0xffffffff
je 0x406d08
test al, 0x10
je 0x406d08
push 0x27
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x264]
call dword [sym.imp.ole32.dll_StringFromGUID2]
push 0x4033ec
lea ecx, [ebp - 0x25c]
call fcn.00403fc1
mov esi, eax
test esi, esi
js 0x406d1d
xor eax, eax
lea ecx, [ebp - 0x25c]
mov word [ebp - 0xa], ax
lea eax, [ebp - 0x52]
push eax
call fcn.00403fc1
mov esi, eax
test esi, esi
js 0x406d1d
lea eax, [ebp - 0x25c]
push eax
call edi
cmp eax, 0xffffffff
jne 0x406d08
push 0
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x406d08
mov edx, dword [ebp + 0x14]
lea eax, [ebp - 0x25c]
push eax
mov ecx, ebx
mov edx, dword [edx]
call fcn.004040c5
mov esi, eax
jmp 0x406d1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x406d1d
movzx esi, si
or esi, 0x80070000
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408929
mov esp, ebp
pop ebp
ret 0x10