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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430741
mov eax, dword fs:[0]
push eax
sub esp, 0x168
push ebx
push esi
push edi
mov eax, dword [0x43dfc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push 1
push str.O:BAG:BAD:_A__CCDCSW___WD__A__CCDCSW___s_1_15_2_1_S:_ML___NX___LW_
mov dword [ebp - 0x10], ebx
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
je 0x418109
mov eax, dword [ebp - 0x10]
push eax
mov dword [ebp - 0x14], eax
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorLength]
push ebx
push ebx
push ebx
push ebx
mov ebx, dword [ebp + 8]
push str.LaunchPermission
push ebx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 2
jne 0x41808c
push edi
push esi
push 3
push 0
push str.LaunchPermission
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x41808c
push 1
lea ecx, [ebp - 0xc4]
call fcn.00405fb0
mov dword [eax + 0x60], 0xa
add eax, 0x10
push str.ERROR:_couldnt_set_sd_in_registry
push eax
mov dword [ebp - 4], 1
call fcn.004041c0
push eax
call fcn.004053f0
add esp, 0xc
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c2e0
lea edx, [ebp - 0x5c]
push edx
mov dword [ebp - 0x5c], vtable.std::ios_base.0
call fcn.0041aa30
add esp, 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x41809a
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 1
lea ecx, [ebp - 0x174]
call fcn.00405fb0
mov dword [eax + 0x60], 0xa
add eax, 0x10
push str.sd_set
push eax
mov dword [ebp - 4], 2
call fcn.004041c0
push eax
call fcn.004053f0
add esp, 0xc
lea ecx, [ebp - 0x10c]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c2e0
lea eax, [ebp - 0x10c]
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0041aa30
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
lea ecx, [ebp - 0xc4]
call fcn.00405fb0
mov dword [eax + 0x60], 0xa
add eax, 0x10
push str.ERROR:_couldnt_create_sd
push eax
mov dword [ebp - 4], ebx
call fcn.004041c0
push eax
call fcn.004053f0
add esp, 0xc
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c2e0
lea ecx, [ebp - 0x5c]
push ecx
mov dword [ebp - 0x5c], vtable.std::ios_base.0
call fcn.0041aa30
add esp, 4
jmp 0x41809a
Function at 0x41b721
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43dfc0]
jne 0x41b72b
repz ret
jmp fcn.00420a3b

Function at 0x42aa57
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43dfc0]
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.00420b5f
and dword [ebp - 0x14], 0
cmp dword [0x4405a8], 0
mov dword [ebp - 0x18], eax
jne 0x42ab0a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x42abb2
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x436b3c
push ebx
call edi
test eax, eax
je 0x42abb2
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4405a8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4405ac], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4405b0], eax
call edi
push eax
call esi
mov dword [0x4405b8], eax
test eax, eax
je 0x42ab0a
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4405b4], eax
mov eax, dword [0x4405b4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x42ab63
cmp dword [0x4405b8], ecx
je 0x42ab63
push eax
call esi
push dword [0x4405b8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x42ab63
test ebx, ebx
je 0x42ab63
call edi
test eax, eax
je 0x42ab5a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x42ab5a
test byte [ebp - 8], 1
jne 0x42ab63
or dword [ebp + 0x10], 0x200000
jmp 0x42ab96
mov eax, dword [0x4405ac]
cmp eax, dword [ebp - 0x18]
je 0x42ab96
push eax
call esi
test eax, eax
je 0x42ab96
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42ab96
mov eax, dword [0x4405b0]
cmp eax, dword [ebp - 0x18]
je 0x42ab96
push eax
call esi
test eax, eax
je 0x42ab96
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4405a8]
call esi
test eax, eax
je 0x42abb2
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x42abb4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b721
leave
ret
Function at 0x4019ae
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x409418]
jne 0x4019b8
repz ret
jmp fcn.00401f11

Function at 0x403e7b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x409418]
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.00402e3f
and dword [ebp - 0x14], 0
cmp dword [0x40b7e8], 0
mov dword [ebp - 0x18], eax
jne 0x403f2e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x403fd6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x403fd6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40b7e8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40b7ec], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40b7f0], eax
call edi
push eax
call esi
mov dword [0x40b7f8], eax
test eax, eax
je 0x403f2e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40b7f4], eax
mov eax, dword [0x40b7f4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x403f87
cmp dword [0x40b7f8], ecx
je 0x403f87
push eax
call esi
push dword [0x40b7f8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x403f87
test ebx, ebx
je 0x403f87
call edi
test eax, eax
je 0x403f7e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x403f7e
test byte [ebp - 8], 1
jne 0x403f87
or dword [ebp + 0x10], 0x200000
jmp 0x403fba
mov eax, dword [0x40b7ec]
cmp eax, dword [ebp - 0x18]
je 0x403fba
push eax
call esi
test eax, eax
je 0x403fba
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x403fba
mov eax, dword [0x40b7f0]
cmp eax, dword [ebp - 0x18]
je 0x403fba
push eax
call esi
test eax, eax
je 0x403fba
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40b7e8]
call esi
test eax, eax
je 0x403fd6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x403fd8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004019ae
leave
ret
Function at 0x401640
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4029d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov al, byte [0x404050]
push ebx
push esi
xor ebx, ebx
push edi
cmp al, bl
mov dword [ebp - 0x10], esp
je 0x40185d
mov eax, dword [0x4042f8]
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x401803
cmp dword [0x4042dc], ebx
je 0x401803
cmp dword [0x4042e4], ebx
je 0x401803
mov ecx, dword [0x404304]
mov dword [ebp - 0x14], 1
cmp ecx, ebx
je 0x4016d4
push str.Error
push 0xc8
push ebx
push ebx
call dword [eax + 0x18]
mov eax, dword [0x404304]
mov ecx, dword [0x4042f8]
add esp, 0x10
push eax
push 0xd7
push ebx
push ebx
call dword [ecx + 0x20]
add esp, 0x10
push 0x40430c
push ebx
push 0x6b
push ebx
mov dword [ebp - 0x14], 2
call dword [0x4042e4]
mov edx, dword [0x4042f8]
mov dword [ebp - 0x14], 3
mov eax, dword [edx + 0x218]
call dword [eax + 0x6c]
mov esi, eax
mov eax, dword [0x4042fc]
cmp esi, eax
jb 0x40185d
lea ecx, [esi + 0x8ae]
push ebx
mov dword [0x4042fc], ecx
call fcn.00401550
add esp, 4
mov dword [ebp - 0x14], 4
push 0x40430c
push esi
push 2
call dword [0x4042dc]
mov eax, dword [0x404300]
mov dword [ebp - 0x14], 5
cmp esi, eax
jbe 0x40178d
cmp eax, ebx
jne 0x40175b
add esi, 0x150f25
mov dword [0x404300], esi
jmp 0x40178d
mov edx, dword [0x4042f8]
push ebx
push ebx
add esi, 0x1b1fc
push ebx
push 5
mov dword [0x404300], esi
call dword [edx + 0x14]
add esp, 0x10
cmp eax, ebx
jne 0x40178d
push ebx
push ebx
push 4
mov dword [ebp - 0x14], 6
call dword [0x4042dc]
mov eax, dword [0x4042f8]
push ebx
push ebx
push ebx
push 1
mov dword [ebp - 0x14], 7
call dword [eax + 0x14]
add esp, 0x10
mov dword [0x4042f4], eax
mov dword [ebp - 0x14], 8
push 0x40430c
push ebx
push 0x138e
push ebx
call dword [0x4042e4]
push 0x40430c
push ebx
push 0x138d
push ebx
mov dword [ebp - 0x14], 9
call dword [0x4042e4]
cmp eax, 2
jne 0x4017e6
mov byte [0x404050], bl
mov dword [ebp - 0x14], 0xa
call fcn.00401550
push 1
mov dword [ebp - 0x14], 0xb
call fcn.00401550
add esp, 4
cmp byte [0x4042cc], bl
je 0x40185d
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 8
call esi
test ax, ax
jge 0x40185d
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x40185d
push 0x11
call esi
test ax, ax
jge 0x40186e
mov eax, dword [0x4042dc]
mov dword [ebp - 0x14], 0xf
cmp eax, ebx
je 0x40184b
push 0x404054
push 1
push 7
call eax
call fcn.004019d0
push 0x64
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Beep]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4042dc]
mov dword [ebp - 0x14], 0x10
cmp eax, ebx
je 0x401888
push 0x404054
push ebx
push 7
call eax
push 0x320
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004022f0
push 0x64
push 0x258
jmp 0x401857
Function at 0x4021f0
Capabilities:
Create thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x402a08
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
push str.Guava_XG
push eax
mov dword [0x4042c8], eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
push str.Guava.ini
lea eax, [esp + 0x14]
push 0x4042c4
push eax
call sub.MFC42.DLL_operator
push eax
mov ecx, 0x40428c
mov dword [esp + 0xc], 0
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
mov dword [esp + 8], 0xffffffff
call sub.MFC42.DLL_CString::CString
call fcn.004019d0
call fcn.00402010
mov eax, dword [0x4042f8]
test eax, eax
je 0x4022d5
cmp dword [eax + 0x508], 2
je 0x402280
push str.Area_Error
call fcn.00402370
mov eax, dword [0x4042f8]
add esp, 4
push 0
push 0
push 0x40430c
push 2
call dword [eax + 0x14]
mov ecx, dword [0x4042f8]
push 0
push 1
push 0
push 0x40430c
call dword [ecx + 0x44]
add esp, 0x20
cmp al, 1
jne 0x4022bb
push 0x64
push 0x3e8
mov byte [0x4042cc], al
call dword [sym.imp.KERNEL32.dll_Beep]
push 0
push 0
push 0
push 0x4018b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4042d4], eax
mov ecx, dword [esp]
mov dword fs:[0], ecx
add esp, 0xc
ret
Function at 0x537370
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 0x53738e
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 0x560074
push ecx
mov edi, eax
call fcn.0054b198
mov esi, eax
add esp, 8
test esi, esi
jne 0x5373cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0054b02e
push esi
call fcn.0054afb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x53a850
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 0x53a8ae
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 0x565720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x53a8ba
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.0054b1e1
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 0x53a8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x565720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x53a92a
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.0054c082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x53a957
mov word [eax], si
add eax, 2
push eax
call fcn.0054c030
add esp, 4
jmp 0x53a959
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 0x53a8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x53a8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x53b0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x560458
push ecx
call fcn.0054b1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.0054b1e1
add esp, 0x10
jmp 0x53b0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0054b20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.0054adff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.0053b050
mov eax, dword [0x565728]
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 0x53b13b
push esi
call fcn.0053afb0
add esp, 4
mov dword [0x565728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x53b14c
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.0053aff0
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 0x53e440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x53e4b7
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 0x53e48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x53e471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x53e47e
add edx, ecx
cmp ebx, edx
jb 0x53e48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x53e467
xor ecx, ecx
jmp 0x53e4a2
test eax, eax
jne 0x53e492
xor ecx, ecx
jmp 0x53e4a2
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.0053e3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x53e8f0
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 0x53e921
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 0x53e946
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 0x53e96e
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 0x53e993
push ecx
push esi
call fcn.0053e4c0
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 0x53fc00
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 0x53fc4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x53fc2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x53fc38
add edx, eax
cmp ebx, edx
jb 0x53fc46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x53fc21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x53fc50
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 0x53fc70
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 0x53fcb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x53fc9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x53fca8
add edx, ecx
cmp ebx, edx
jb 0x53fcb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x53fc91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x53ff60
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.0054c145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x53fffb
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 0x53ffdd
lea eax, [esp + 0x18]
push eax
jmp 0x53ffe2
push 0x565720
call fcn.0054bfd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x53ffb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x53ff40
push 4
push ecx
push eax
call fcn.0054c43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x540310
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.0054c145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x5403ab
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 0x54038d
lea eax, [esp + 0x18]
push eax
jmp 0x540392
push 0x565720
call fcn.0054bfd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x540360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x53ff40
push 4
push ecx
push eax
call fcn.0054c43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x541f20
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 0x541fd7
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 0x541fcf
push ebx
push edi
push 0x565770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x541fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x565770
push esi
call ebx
test eax, eax
je 0x541fae
mov ebp, 3
cmp dword [0x565774], ebp
jne 0x541faa
push 0x3e8
call edi
push 0x565770
push esi
call ebx
test eax, eax
jne 0x541f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x541fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x541fbb
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