joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408320
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x1c]
lea ecx, [ebp + 0x1c]
push ecx
xor eax, eax
push 0x20119
push eax
mov word [ebx], ax
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 0xc]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40839d
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x40839d
mov edx, dword [ebp + 0x18]
push esi
lea ecx, [ebp + 0x10]
push ecx
push edx
mov edx, dword [ebp + 0x14]
lea ecx, [ebp + 0xc]
push ecx
push 0
push edx
push eax
mov dword [ebp + 0xc], 4
mov dword [ebp + 0x10], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x40839d
cmp dword [ebp + 0x1c], 0
je 0x40839d
cmp dword [ebp + 0x10], 4
jne 0x40839d
or ecx, 0xffffffff
mov word [ebx], cx
xor eax, eax
pop ebx
pop ebp
ret 0x18

Function at 0x4083b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413ea0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x41d84c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
xor eax, eax
mov word [ecx], ax
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov edx, dword [edx + 0x24]
lea ecx, [ebp - 0x14]
push ecx
push esi
push edi
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
call edx
cmp word [ebp - 0x14], 0xffff
jne 0x40845b
lea eax, [ebp + 8]
push eax
push 0x20106
push ebx
push esi
push edi
mov dword [ebp + 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40845b
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x40845b
mov edx, dword [ebp + 0x14]
push 4
lea ecx, [ebp + 0x18]
push ecx
push 4
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x40845b
cmp dword [ebp + 8], ebx
je 0x40845b
mov edx, dword [ebp + 0x1c]
or ecx, 0xffffffff
mov word [edx], cx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4084e0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x41d84c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x408526
lea eax, [ebp - 0x230]
push eax
push edi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x408537
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a7a3
mov esp, ebp
pop ebp
ret
push esi
jmp 0x408540
lea ecx, [ebp - 0x20c]
push 0x417ed4
push ecx
call fcn.0040b966
add esp, 8
test eax, eax
je 0x40856b
lea edx, [ebp - 0x230]
push edx
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x408540
jmp 0x4085a2
mov eax, dword [ebp - 0x228]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x408592
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a7a3
mov esp, ebp
pop ebp
ret
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 1
pop edi
call fcn.0040a7a3
mov esp, ebp
pop ebp
ret
Function at 0x408650
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
mov eax, dword [0x41d84c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x418]
push eax
mov dword [ebp - 0x418], 0
call fcn.004085c0
add esp, 4
cmp dword [ebp - 0x418], 0
je 0x408858
lea ecx, [ebp - 0x420]
push ecx
push 0x20119
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x424], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408858
mov ecx, dword [ebp - 0x420]
lea edx, [ebp - 0x424]
push edx
lea eax, [ebp - 0x310]
push eax
push 0
push 0
push str.ProgramFilesDir
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x408858
jmp 0x4086f0
mov cl, byte [ebp + eax - 0x310]
mov byte [ebp + eax - 0x108], cl
inc eax
test cl, cl
jne 0x4086f0
push esi
push edi
lea edi, [ebp - 0x108]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408710
mov ecx, 0xa
mov esi, str.CONEXANTSA3HP_NB_AIOSmartAudio3.exe
rep movsd dword es:[edi], dword [esi]
xor eax, eax
jmp 0x408730
mov cl, byte [ebp + eax - 0x310]
mov byte [ebp + eax - 0x20c], cl
inc eax
test cl, cl
jne 0x408730
lea eax, [ebp - 0x20c]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x408750
mov edx, dword [str.CONEXANTSA3HP_NB_AIO]
mov ecx, dword [0x417f40]
mov dword [eax], edx
mov edx, dword [0x417f44]
mov dword [eax + 4], ecx
mov ecx, dword [0x417f48]
mov dword [eax + 8], edx
mov edx, dword [0x417f4c]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x417f50]
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], ecx
mov ecx, 0x10
mov esi, str._sa3__nv:3.0__uid:HP_NB_AIO__s__dne__hidetaskbaricon__cxutilsvc
lea edi, [ebp - 0x414]
rep movsd dword es:[edi], dword [esi]
push 0x44
lea edx, [ebp - 0x478]
push 0
push edx
movsb byte es:[edi], byte [esi]
call fcn.0040afe0
xor eax, eax
add esp, 0xc
push eax
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp - 0x418]
push eax
lea ecx, [ebp - 0x41c]
push ecx
mov dword [ebp - 0x478], 0x44
call sub.USERENV.dll_CreateEnvironmentBlock
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4087fd
call esi
lea edx, [ebp - 0x434]
push edx
lea eax, [ebp - 0x478]
push eax
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, dword [ebp - 0x418]
push 0
push 0x20
push 0
push 0
push 0
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x108]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x40883d
call esi
mov edx, dword [ebp - 0x41c]
push edx
call sub.USERENV.dll_DestroyEnvironmentBlock
mov eax, dword [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a7a3
mov esp, ebp
pop ebp
ret
Function at 0x409020
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413ee0
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x41d84c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x22c], edx
xor edx, edx
mov word [edi], dx
lea edx, [ebp - 0x220]
push edx
push 0x20119
xor ebx, ebx
push ebx
push ecx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x220], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40913c
mov eax, dword [ebp - 0x220]
cmp eax, ebx
je 0x40913c
lea ecx, [ebp - 0x230]
push ecx
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x224]
push ecx
push ebx
push esi
push eax
mov dword [ebp - 0x224], 1
mov dword [ebp - 0x230], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 0x220]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x40913c
cmp dword [ebp - 0x220], ebx
je 0x40913c
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x228], esi
cmp esi, ebx
jne 0x409119
push 0x8007000e
call fcn.00401240
mov eax, 0x409117
ret
mov ecx, dword [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x228]
call fcn.00408ec0
test eax, eax
jne 0x409135
or edx, 0xffffffff
mov word [edi], dx
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040a7a3
mov esp, ebp
pop ebp
ret 0x18
Function at 0x409160
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413f10
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x41d84c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
xor eax, eax
mov word [ecx], ax
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov edx, dword [edx + 0x24]
lea ecx, [ebp - 0x14]
push ecx
push esi
push edi
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
call edx
cmp word [ebp - 0x14], 0xffff
jne 0x40921f
lea eax, [ebp + 8]
push eax
push 0x20106
push ebx
push esi
push edi
mov dword [ebp + 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40921f
cmp dword [ebp + 8], ebx
je 0x40921f
mov eax, dword [ebp + 0x18]
cmp eax, ebx
jne 0x409235
xor esi, esi
push esi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
push eax
push esi
push 1
push ebx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
jne 0x409218
cmp dword [ebp + 8], ebx
je 0x409218
mov edx, dword [ebp + 0x1c]
or ecx, 0xffffffff
mov word [edx], cx
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
cmp esi, ebx
jne 0x4091e0
push 0x8007000e
call fcn.00401240
mov eax, 0x40921f
ret

Function at 0x40a7a3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41d84c]
jne 0x40a7ad
repz ret
jmp fcn.0040d2c9
Function at 0x412799
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41d84c]
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.0040ea60
and dword [ebp - 0x14], 0
cmp dword [0x41fb34], 0
mov dword [ebp - 0x18], eax
jne 0x41284c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4128f4
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x419324
push ebx
call edi
test eax, eax
je 0x4128f4
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41fb34], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41fb38], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x41fb3c], eax
call edi
push eax
call esi
mov dword [0x41fb44], eax
test eax, eax
je 0x41284c
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41fb40], eax
mov eax, dword [0x41fb40]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4128a5
cmp dword [0x41fb44], ecx
je 0x4128a5
push eax
call esi
push dword [0x41fb44]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4128a5
test ebx, ebx
je 0x4128a5
call edi
test eax, eax
je 0x41289c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41289c
test byte [ebp - 8], 1
jne 0x4128a5
or dword [ebp + 0x10], 0x200000
jmp 0x4128d8
mov eax, dword [0x41fb38]
cmp eax, dword [ebp - 0x18]
je 0x4128d8
push eax
call esi
test eax, eax
je 0x4128d8
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4128d8
mov eax, dword [0x41fb3c]
cmp eax, dword [ebp - 0x18]
je 0x4128d8
push eax
call esi
test eax, eax
je 0x4128d8
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41fb34]
call esi
test eax, eax
je 0x4128f4
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4128f6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a7a3
leave
ret
Function at 0x725bab
Capabilities:
Encode data using xor

Disassembly:
or al, byte [ebx + 0x5c87f3ef]
xchg ebp, eax
pop esi
fisttp dword [esi + ebx*2]
dec ebp
rcl byte [ecx]
les esi, [esi + edx + 0x55]
add dword [ebx - 0xc], esi
mov cl, 0x56
or dword [esi], edx
push ss
aaa
dec esi
sub word [esp + edi*8 - 0x6b], bx
mov dh, al
xchg ecx, eax
cmpsd dword [esi], dword es:[edi]
push ebp
cmp esi, dword [0x4ca60c82]
sbb al, 0x79
push es
test eax, 0xc5fe4d43
std
clc
cli
out dx, eax
scasb al, byte es:[edi]
xchg edi, eax
pop ebx
invalid
Function at 0x55e370
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 0x55e38e
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 0x587074
push ecx
mov edi, eax
call fcn.00572198
mov esi, eax
add esp, 8
test esi, esi
jne 0x55e3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0057202e
push esi
call fcn.00571fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x561850
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 0x5618ae
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 0x58c720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x5618ba
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.005721e1
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 0x5618ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x58c720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x56192a
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.00573082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x561957
mov word [eax], si
add eax, 2
push eax
call fcn.00573030
add esp, 4
jmp 0x561959
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 0x5618ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x5618b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x561ff0
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 0x562080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x5620c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x587458
push ecx
call fcn.005721e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.005721e1
add esp, 0x10
jmp 0x5620d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0057220b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00571dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00562050
mov eax, dword [0x58c728]
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 0x56213b
push esi
call fcn.00561fb0
add esp, 4
mov dword [0x58c728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x56214c
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.00561ff0
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 0x565440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x5654b7
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 0x56548e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x565471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x56547e
add edx, ecx
cmp ebx, edx
jb 0x56548a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x565467
xor ecx, ecx
jmp 0x5654a2
test eax, eax
jne 0x565492
xor ecx, ecx
jmp 0x5654a2
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.005653c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x5658f0
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 0x565921
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 0x565946
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 0x56596e
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 0x565993
push ecx
push esi
call fcn.005654c0
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 0x566c00
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 0x566c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x566c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x566c38
add edx, eax
cmp ebx, edx
jb 0x566c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x566c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x566c50
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 0x566c70
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 0x566cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x566c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x566ca8
add edx, ecx
cmp ebx, edx
jb 0x566cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x566c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x566f60
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.00573145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x566ffb
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 0x566fdd
lea eax, [esp + 0x18]
push eax
jmp 0x566fe2
push 0x58c720
call fcn.00572fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x566fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x566f40
push 4
push ecx
push eax
call fcn.0057343f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x567310
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.00573145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x5673ab
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 0x56738d
lea eax, [esp + 0x18]
push eax
jmp 0x567392
push 0x58c720
call fcn.00572fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x567360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x566f40
push 4
push ecx
push eax
call fcn.0057343f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x568f20
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 0x568fd7
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 0x568fcf
push ebx
push edi
push 0x58c770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x568fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x58c770
push esi
call ebx
test eax, eax
je 0x568fae
mov ebp, 3
cmp dword [0x58c774], ebp
jne 0x568faa
push 0x3e8
call edi
push 0x58c770
push esi
call ebx
test eax, eax
jne 0x568f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x568fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x568fbb
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