joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416770
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00406848
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar
mov edi, eax
cmp edi, 0x104
jbe 0x41671a
mov eax, edi
add eax, eax
call fcn.00404244
mov esi, eax
jmp 0x41671c
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x416755
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x41673f
mov eax, esp
cmp esi, eax
je 0x416762
mov eax, esi
call fcn.00404260
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x41679c
cmp bl, 0
je 0x416798
cmp bl, 0x41
jl 0x416793
cmp bl, 0x5a
jg 0x416793
or bl, 0x20
xor al, bl
inc esi
jmp 0x416777
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4166dc

Function at 0x438558
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4385f6
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x4385ba
cmp byte [ebx + 0x10], 0
jne 0x4385ba
cmp byte [ebx + 0x3c], 0
jne 0x4385ba
mov byte [ebx + 0xe], 0
mov byte [ebx + 0xc], 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x4385db
lea edx, [ebp - 4]
mov eax, dword [0x47e584]
call fcn.0040a1c4
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4299f4]
call fcn.004147e8
call fcn.00405c90
jmp 0x4385db
lea edx, [ebp - 8]
mov eax, dword [0x47e584]
call fcn.0040a1c4
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4299f4]
call fcn.004147e8
call fcn.00405c90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4385fd
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407184
ret

Function at 0x438e74
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x438ec2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004384dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x438edb
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x438ee4
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004384dc
dec esi
jne 0x438f06
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x43c90c
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
push ecx
mov ebx, eax
cmp byte [ebx + 0x34], 0
jne 0x43c98c
movzx eax, word [ebx + 0x42]
push eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [eax*4 + 0x47a0b4]
push eax
movzx eax, byte [ebx + 0x40]
mov eax, dword [eax*4 + 0x47a054]
push eax
call sub.wsock32.dll_socket
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov esi, eax
mov dword [ebx + 0x44], esi
inc esi
setne al
mov byte [ebx + 0x34], al
test al, al
je 0x43c98c
cmp byte [ebx + 0x35], 1
jne 0x43c977
mov dword [esp], 1
push esp
push 0x8004667e
mov eax, dword [ebx + 0x44]
push eax
call sub.wsock32.dll_ioctlsocket
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x3c]
xor eax, eax
mov dword [ebx + 0x38], eax
xor eax, eax
mov dword [ebx + 0x3c], eax
mov eax, ebx
mov si, 0xfff0
call fcn.0040545c
pop edx
pop esi
pop ebx
ret

Function at 0x43c9e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
push edi
push esi
mov eax, dword [ebx + 0x44]
push eax
call sub.wsock32.dll_recv
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x3c]
pop edi
pop esi
pop ebx
ret
Function at 0x43d1ac
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x43d28f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00406478
test ebx, ebx
je 0x43d26d
movzx eax, byte [ebx]
add al, 0xd0
sub al, 0xa
jae 0x43d203
mov eax, ebx
call fcn.00406be8
push eax
call sub.wsock32.dll_inet_addr
inc eax
je 0x43d279
mov eax, esi
mov edx, ebx
call fcn.004064cc
jmp 0x43d279
mov eax, ebx
call fcn.00406be8
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x43d279
mov ebx, eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 0xc]
mov edi, dword [eax]
movzx eax, byte [edi]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
movzx eax, byte [edi + 1]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
movzx eax, byte [edi + 2]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0
movzx eax, byte [edi + 3]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0x24]
mov ecx, 3
mov eax, 0x43d2ac
call fcn.00410eb4
mov edx, dword [ebp - 4]
mov eax, esi
mov ecx, 0
call fcn.004073b8
jmp 0x43d279
mov eax, esi
mov edx, 0x43d2d0
call fcn.004064cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43d296
lea eax, [ebp - 4]
call fcn.0040717c
ret

Function at 0x43d400
Capabilities:
Get hostname

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.00406478
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
call sub.wsock32.dll_gethostname
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x3c]
test eax, eax
jne 0x43d43f
mov eax, esi
mov edx, esp
mov ecx, pe_nt_image_headers32
push 0
call fcn.004067e0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x43f7cc
Capabilities:
Initialize winsock library

Disassembly:
push 0x484124
push 2
call sub.wsock32.dll_WSAStartup
test eax, eax
je 0x43f7f2
mov ecx, 0x43f800
mov dl, 1
mov eax, dword [0x43a9ec]
call fcn.004147e8
call fcn.00405c90
ret
Function at 0x442070
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x442128
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.00442004
test al, al
je 0x44210a
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.004072c8
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x44210a
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00407218
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov eax, dword [ebp - 4]
call fcn.00407218
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00407338
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x4420c3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44212f
lea eax, [ebp - 0x2c]
call fcn.0040717c
lea eax, [ebp - 4]
call fcn.0040717c
ret

Function at 0x4429dc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.00441760
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00407218
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.004419b4
test al, al
jne 0x442a44
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x47e50c]
mov dl, 1
mov eax, dword [0x440510]
call fcn.004149ec
call fcn.00405c90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x442a50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00407218
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov edx, eax
mov eax, ebx
call fcn.004419b4
test al, al
jne 0x442ab1
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x47e670]
mov dl, 1
mov eax, dword [0x440510]
call fcn.004149ec
call fcn.00405c90
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00441790
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x443688
Capabilities:
Create process on windows
Schedule task via schtasks

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x44374d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0x44376c
push ebx
push 0x44379c
lea eax, [ebp - 4]
mov edx, 3
call fcn.0040772c
mov eax, dword [ebp - 4]
call fcn.00407218
push eax
push 0x4437a0
push 0
push 0
call sub.shell32.dll_ShellExecuteW
push 0
push 0
push 0x4437c0
push ebx
push 0x4437e8
push 0x4437fc
push esi
push 0x443814
lea edx, [ebp - 0xc]
mov eax, dword [ebp + 8]
call fcn.0040ffac
push dword [ebp - 0xc]
push 0x443844
push edi
push 0x44379c
lea eax, [ebp - 8]
mov edx, 0xa
call fcn.0040772c
mov eax, dword [ebp - 8]
call fcn.00407218
push eax
push 0x4437a0
push 0
push 0
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x443754
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00407184
ret

Function at 0x4489b4
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 0x4489e3
mov eax, dword [ebx + 0x2c]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x6c]
ja 0x448a62
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.00446ab8
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 0x448a30
mov cx, word [esp]
sub cx, si
jmp 0x448a32
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x448a19
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 0x448a58
mov cx, word [esp]
sub cx, si
jmp 0x448a5a
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x448a41
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x448abf
mov edx, dword [ebx + 0x38]
mov ecx, edi
add edx, dword [ebx + 0x6c]
mov eax, ebp
add edx, dword [ebx + 0x74]
call fcn.00448688
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x448aaa
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 0x448abf
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x4489be
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x452028
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 0x45202e
ret
Function at 0xd30370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xd3038e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xd59074
push ecx
mov edi, eax
call fcn.00d44198
mov esi, eax
add esp, 8
test esi, esi
jne 0xd303cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00d4402e
push esi
call fcn.00d43fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xd33850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0xd338ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xd5e720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xd338ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.00d441e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0xd338ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xd5e720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xd3392a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00d45082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xd33957
mov word [eax], si
add eax, 2
push eax
call fcn.00d45030
add esp, 4
jmp 0xd33959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0xd338ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xd338b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xd33ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0xd34080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xd340c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xd59458
push ecx
call fcn.00d441e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00d441e1
add esp, 0x10
jmp 0xd340d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00d4420b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00d43dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00d34050
mov eax, dword [0xd5e728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0xd3413b
push esi
call fcn.00d33fb0
add esp, 4
mov dword [0xd5e728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xd3414c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00d33ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0xd37440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xd374b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xd3748e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xd37471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xd3747e
add edx, ecx
cmp ebx, edx
jb 0xd3748a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xd37467
xor ecx, ecx
jmp 0xd374a2
test eax, eax
jne 0xd37492
xor ecx, ecx
jmp 0xd374a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.00d373c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xd378f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0xd37921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0xd37946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0xd3796e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0xd37993
push ecx
push esi
call fcn.00d374c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0xd38c00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0xd38c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xd38c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xd38c38
add edx, eax
cmp ebx, edx
jb 0xd38c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xd38c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xd38c50
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0xd38c70
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xd38cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xd38c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xd38ca8
add edx, ecx
cmp ebx, edx
jb 0xd38cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xd38c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xd38f60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00d45145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xd38ffb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0xd38fdd
lea eax, [esp + 0x18]
push eax
jmp 0xd38fe2
push 0xd5e720
call fcn.00d44fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xd38fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xd38f40
push 4
push ecx
push eax
call fcn.00d4543f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xd39310
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push 0
push 0
push 0
push edi
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00d45145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xd393ab
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0xd3938d
lea eax, [esp + 0x18]
push eax
jmp 0xd39392
push 0xd5e720
call fcn.00d44fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xd39360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xd38f40
push 4
push ecx
push eax
call fcn.00d4543f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xd3af20
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ecx
push ebp
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
mov dword [esp + 4], ebp
je 0xd3afd7
mov eax, dword [esp + 0xc]
push esi
push 0xf01ff
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0xd3afcf
push ebx
push edi
push 0xd5e770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0xd3afae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0xd5e770
push esi
call ebx
test eax, eax
je 0xd3afae
mov ebp, 3
cmp dword [0xd5e774], ebp
jne 0xd3afaa
push 0x3e8
call edi
push 0xd5e770
push esi
call ebx
test eax, eax
jne 0xd3af8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0xd3afc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0xd3afbb
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
pop ecx
ret