joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fa63c
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4fa7e4
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
xor eax, eax
call fcn.004045bc
cmp word [ebx + 0xaa], 0
je 0x4fa685
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
mov eax, dword [ebx + 0x98]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x4fa699
lea esi, [ebp - 0xc]
jmp 0x4fa69b
xor esi, esi
cmp dword [ebx + 0x88], 0
jne 0x4fa6a8
xor edi, edi
jmp 0x4fa6b5
mov eax, dword [ebx + 0x88]
call fcn.00406c2c
mov edi, eax
mov eax, dword [ebx + 0x84]
call fcn.00406c2c
push eax
push edi
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.004f9d68
mov eax, dword [ebp - 0x14]
call fcn.00406c2c
push eax
push esi
mov eax, dword [ebx + 0x7c]
call fcn.00406c2c
push eax
mov eax, dword [ebp - 4]
call fcn.00406c2c
push eax
mov eax, ebx
call fcn.004f9eb0
push eax
mov eax, ebx
call fcn.004f9e84
push eax
mov eax, ebx
call fcn.004f9e3c
push eax
push 0xf01ff
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.004f9c10
mov eax, dword [ebp - 0x18]
call fcn.00406c2c
push eax
mov eax, dword [ebx + 8]
call fcn.00406c2c
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CreateServiceW
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x98], eax
cmp dword [ebp - 0x10], 0
jne 0x4fa741
call fcn.0041c304
xor edx, edx
push ebp
push 0x4fa7ba
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x4fa77f
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [ebx + 0xb2], 0
je 0x4fa775
mov edx, ebx
mov eax, dword [ebx + 0xb4]
call dword [ebx + 0xb0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fa7a3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fa7c1
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret

Function at 0x4fa7f4
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0xba], 0
je 0x4fa820
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xbc]
call dword [esi + 0xb8]
push 0xf01ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00406c2c
push eax
push ebx
call sub.advapi32.dll_OpenServiceW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4fa845
call fcn.0041c304
xor eax, eax
push ebp
push 0x4fa87c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x4fa865
call fcn.0041c304
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fa883
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x4fb870
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x4fb95e
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
mov ebx, eax
test ebx, ebx
jne 0x4fb8c3
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3f0
jne 0x4fb8c3
lea eax, [ebp - 8]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
mov ebx, eax
test ebx, ebx
je 0x4fb954
mov eax, 0x400
call fcn.004041e8
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push 0x400
push esi
push 2
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_GetTokenInformation
mov ebx, eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
test ebx, ebx
je 0x4fb94d
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
push 0x5805e4
call sub.advapi32.dll_AllocateAndInitializeSid
mov ebx, dword [esi]
dec ebx
test ebx, ebx
jl 0x4fb944
inc ebx
xor edi, edi
mov eax, dword [esi + edi*8 + 4]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x4fb940
mov byte [ebp - 1], 1
jmp 0x4fb944
inc edi
dec ebx
jne 0x4fb928
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_FreeSid
mov eax, esi
call fcn.00404204
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fb96c
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4fb978
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd0
push ebx
push esi
push edi
xor edx, edx
push ebp
push 0x4fbb01
push dword fs:[edx]
mov dword fs:[edx], esp
mov bl, 1
lea eax, [ebp - 0x11c]
xor ecx, ecx
mov edx, 0x11c
call fcn.00404834
mov dword [ebp - 0x11c], 0x11c
lea esi, [ebp - 0x11c]
push esi
call sub.kernel32.dll_GetVersionExW
cmp eax, 1
sbb eax, eax
inc eax
cmp bl, al
je 0x4fb9ee
lea eax, [ebp - 0x11c]
xor ecx, ecx
mov edx, 0x114
call fcn.00404834
mov dword [ebp - 0x11c], 0x114
lea eax, [ebp - 0x230]
push eax
call sub.kernel32.dll_GetVersionExW
mov eax, dword [ebp - 0x118]
cmp eax, 5
jne 0x4fba4e
mov eax, dword [ebp - 0x114]
test eax, eax
jne 0x4fba0a
xor ebx, ebx
jmp 0x4fbaf7
cmp eax, 1
jne 0x4fba19
mov ebx, 1
jmp 0x4fbaf7
cmp eax, 2
jne 0x4fba46
movzx eax, byte [ebp - 2]
cmp al, 1
jne 0x4fba30
mov ebx, 1
jmp 0x4fbaf7
cmp al, 2
jb 0x4fba3e
mov ebx, 2
jmp 0x4fbaf7
or ebx, 0xffffffff
jmp 0x4fbaf7
or ebx, 0xffffffff
jmp 0x4fbaf7
cmp eax, 6
jne 0x4fbaf4
mov eax, dword [ebp - 0x114]
test eax, eax
jne 0x4fba83
movzx eax, byte [ebp - 2]
cmp al, 1
jne 0x4fba73
mov ebx, 3
jmp 0x4fbaf7
cmp al, 2
jb 0x4fba7e
mov ebx, 4
jmp 0x4fbaf7
or ebx, 0xffffffff
jmp 0x4fbaf7
cmp eax, 1
jne 0x4fbaa7
movzx eax, byte [ebp - 2]
cmp al, 1
jne 0x4fba97
mov ebx, 5
jmp 0x4fbaf7
cmp al, 2
jb 0x4fbaa2
mov ebx, 4
jmp 0x4fbaf7
or ebx, 0xffffffff
jmp 0x4fbaf7
cmp eax, 2
jne 0x4fbacb
movzx eax, byte [ebp - 2]
cmp al, 1
jne 0x4fbabb
mov ebx, 6
jmp 0x4fbaf7
cmp al, 2
jb 0x4fbac6
mov ebx, 7
jmp 0x4fbaf7
or ebx, 0xffffffff
jmp 0x4fbaf7
cmp eax, 3
jne 0x4fbaef
movzx eax, byte [ebp - 2]
cmp al, 1
jne 0x4fbadf
mov ebx, 6
jmp 0x4fbaf7
cmp al, 2
jb 0x4fbaea
mov ebx, 7
jmp 0x4fbaf7
or ebx, 0xffffffff
jmp 0x4fbaf7
or ebx, 0xffffffff
jmp 0x4fbaf7
or ebx, 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fbb0e
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4fd3b8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor edx, edx
push ebp
push 0x4fd41e
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 4]
push eax
push 0x40
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x4fd414
mov eax, ebx
mov byte [eax], 0xe9
sub esi, ebx
sub esi, 5
mov dword [eax + 1], esi
push 5
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
push eax
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fd428
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4fd84c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406b88
mov eax, dword [ebp - 8]
call fcn.00406b88
xor eax, eax
push ebp
push 0x4fd8e4
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4fd8bf
push dword fs:[eax]
mov dword fs:[eax], esp
push 5
push 0
mov eax, dword [ebp - 8]
call fcn.00406c2c
push eax
mov eax, dword [ebp - 4]
call fcn.00406c2c
push eax
push 0x4fd8f4
mov eax, dword [0x582dc8]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fd8c9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fd8eb
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406b98
ret

Function at 0x4fd900
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406b88
mov eax, dword [ebp - 8]
call fcn.00406b88
xor eax, eax
push ebp
push 0x4fd98c
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4fd967
push dword fs:[eax]
mov dword fs:[eax], esp
push 5
push 0
mov eax, dword [ebp - 8]
call fcn.00406c2c
push eax
mov eax, dword [ebp - 4]
call fcn.00406c2c
push eax
push 0x4fd99c
push 0
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fd971
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fd993
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406b98
ret

Function at 0x4fdaac
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406b88
xor eax, eax
push ebp
push 0x4fdb2b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4fdb0b
push dword fs:[eax]
mov dword fs:[eax], esp
push 5
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00406c2c
push eax
push 0x4fdb38
mov eax, dword [0x582dc8]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fdb15
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fdb32
lea eax, [ebp - 4]
call fcn.00406b90
ret
Function at 0x4a80a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x68000]
push edi
or ebp, 0xffffffff
jmp 0x4a80c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4a80c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a80b8
mov eax, 1
add ebx, ebx
jne 0x4a80db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4a80ec
jne 0x4a810b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a810b
dec eax
add ebx, ebx
jne 0x4a80f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4a80d0
add ebx, ebx
jne 0x4a8107
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4a815d
xor ecx, ecx
sub eax, 3
jb 0x4a8123
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4a8192
sar eax, 1
mov ebp, eax
jmp 0x4a812e
add ebx, ebx
jne 0x4a812e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a80fc
inc ecx
add ebx, ebx
jne 0x4a813c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a80fc
add ebx, ebx
jne 0x4a8149
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4a813e
jne 0x4a815a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4a813e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4a817c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4a816e
jmp 0x4a80be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4a817c
add edi, ecx
jmp 0x4a80be
pop esi
mov edi, esi
mov ecx, 0x3056
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4a819a
cmp byte [edi], 0x16
jne 0x4a819a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4a819f
lea edi, [esi + 0xa5000]
mov eax, dword [edi]
or eax, eax
je 0x4a8217
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa9644]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa9734]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4a81cc
mov ecx, edi
jns 0x4a81fb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa9738]
or eax, eax
je 0x4a8211
mov dword [ebx], eax
add ebx, 4
jmp 0x4a81e9
call dword [esi + 0xa9740]
mov ebp, dword [esi + 0xa973c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4a824b
sub esp, 0xffffff80
jmp 0x452379
Function at 0x468370
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 0x46838e
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 0x491074
push ecx
mov edi, eax
call fcn.0047c198
mov esi, eax
add esp, 8
test esi, esi
jne 0x4683cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0047c02e
push esi
call fcn.0047bfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x46b850
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 0x46b8ae
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 0x496720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x46b8ba
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.0047c1e1
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 0x46b8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x496720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x46b92a
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.0047d082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x46b957
mov word [eax], si
add eax, 2
push eax
call fcn.0047d030
add esp, 4
jmp 0x46b959
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 0x46b8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x46b8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x46c0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x491458
push ecx
call fcn.0047c1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.0047c1e1
add esp, 0x10
jmp 0x46c0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0047c20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.0047bdff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.0046c050
mov eax, dword [0x496728]
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 0x46c13b
push esi
call fcn.0046bfb0
add esp, 4
mov dword [0x496728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x46c14c
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.0046bff0
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 0x46f440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x46f4b7
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 0x46f48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x46f471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x46f47e
add edx, ecx
cmp ebx, edx
jb 0x46f48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x46f467
xor ecx, ecx
jmp 0x46f4a2
test eax, eax
jne 0x46f492
xor ecx, ecx
jmp 0x46f4a2
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.0046f3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x46f8f0
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 0x46f921
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 0x46f946
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 0x46f96e
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 0x46f993
push ecx
push esi
call fcn.0046f4c0
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 0x470c00
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 0x470c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x470c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x470c38
add edx, eax
cmp ebx, edx
jb 0x470c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x470c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x470c50
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 0x470c70
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 0x470cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x470c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x470ca8
add edx, ecx
cmp ebx, edx
jb 0x470cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x470c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x470f60
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.0047d145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x470ffb
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 0x470fdd
lea eax, [esp + 0x18]
push eax
jmp 0x470fe2
push 0x496720
call fcn.0047cfd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x470fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x470f40
push 4
push ecx
push eax
call fcn.0047d43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x471310
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.0047d145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x4713ab
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 0x47138d
lea eax, [esp + 0x18]
push eax
jmp 0x471392
push 0x496720
call fcn.0047cfd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x471360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x470f40
push 4
push ecx
push eax
call fcn.0047d43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x472f20
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 0x472fd7
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 0x472fcf
push ebx
push edi
push 0x496770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x472fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x496770
push esi
call ebx
test eax, eax
je 0x472fae
mov ebp, 3
cmp dword [0x496774], ebp
jne 0x472faa
push 0x3e8
call edi
push 0x496770
push esi
call ebx
test eax, eax
jne 0x472f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x472fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x472fbb
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