joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408d20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
lea ecx, [eax + 0x2c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x408940
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00416ba3
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0x55c3bc6f
jmp 0x408d80
mov dword [ebp - 0x10], 0x907b917c
nop
nop
nop
nop
nop
mov eax, dword [ebp - 0x10]
cmp eax, 0x617e5935
jg 0x408db0
cmp eax, 0x55c3bc6e
jg 0x408dc0
cmp eax, 0x907b917b
jg 0x408ddc
cmp eax, 0x886d1e34
jne 0x408d80
mov dword [ebp - 0x10], 0x92dce3c6
jmp 0x408d80
cmp eax, 0x617e5936
jne 0x408d80
jmp 0x408d74
cmp eax, 0x55c3bc6f
jne 0x408d80
mov eax, 0xf6a9e2c
cmp dword [ebp - 4], 0
je 0x408dd7
mov eax, 0x2f923279
mov dword [ebp - 0x10], eax
jmp 0x408d80
cmp eax, 0x92dce3c5
jg 0x408e05
cmp eax, 0x907b917c
jne 0x408d80
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [ebp - 0x10], 0x35d24970
jmp 0x408d80
cmp eax, 0x97ac6e28
jg 0x408e23
cmp eax, 0x92dce3c6
jne 0x408d80
mov dword [ebp - 0x10], 0x142b251b
jmp 0x408d80
cmp eax, 0xea097be3
jg 0x408e41
cmp eax, 0x97ac6e29
jne 0x408d80
mov dword [ebp - 0x10], 0xf32ecefe
jmp 0x408d80
cmp eax, 0xf32ecefd
jg 0x408e6e
cmp eax, 0xea097be4
jne 0x408d80
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [ebp - 0x10], 0x907b917c
jmp 0x408d80
cmp eax, 0xe304c4d
jg 0x408e8c
cmp eax, 0xf32ecefe
jne 0x408d80
mov dword [ebp - 0x10], 0x34896668
jmp 0x408d80
cmp eax, 0x35d2496f
jg 0x408ebf
cmp eax, 0x34896667
jg 0x408ed6
cmp eax, 0x2f923278
jg 0x408ee3
cmp eax, 0xf6a9e2b
jg 0x408f11
cmp eax, 0xe304c4e
jne 0x408d80
mov dword [ebp - 0x10], 0x886d1e34
jmp 0x408d80
cmp eax, 0x35d24970
jne 0x408d80
mov dword [ebp - 0x10], 0x97ac6e29
jmp 0x408d80
cmp eax, 0x34896668
jne 0x408d80
jmp 0x408f5a
cmp eax, 0x2f923279
jne 0x408d80
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov dword [esp + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
mov dword [ebp - 0x10], 0x142b251b
jmp 0x408d80
cmp eax, 0xf6a9e2c
je 0x408f37
cmp eax, 0x142b251b
jne 0x408f43
mov eax, 0x617e5936
cmp dword [ebp - 0xc], 0
jne 0x408f2f
mov eax, 0x97ac6e29
mov dword [ebp - 0x10], eax
jmp 0x408d80
mov dword [ebp - 0x10], 0x886d1e34
jmp 0x408d80
cmp eax, 0x154ff68e
jne 0x408d80
mov dword [ebp - 0x10], 0xf32ecefe
jmp 0x408d80
add esp, 0x28
pop ebp
ret
Function at 0x41e64a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4ca3e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0041b4a7
mov dword [ebp - 0x14], eax
cmp dword [0x4cbc7c], edi
jne 0x41e73b
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x41e6c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41e81b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x41e81b
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41e81b
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x4cbc7c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4cbc80], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4cbc84], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4cbc8c], eax
test eax, eax
je 0x41e738
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4cbc88], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41e760
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41e753
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x41e775
push 4
pop eax
jmp 0x41e81d
cmp dword [ebp - 0x14], edi
je 0x41e775
push dword [0x4cbc7c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41e75a
mov eax, dword [0x4cbc88]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x41e7d3
cmp dword [0x4cbc8c], esi
je 0x41e7d3
push eax
call ebx
push dword [0x4cbc8c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41e7d3
test eax, eax
je 0x41e7d3
call ecx
test eax, eax
je 0x41e7c8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41e7c8
test byte [ebp - 8], 1
jne 0x41e7d3
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x41e803
mov eax, dword [0x4cbc80]
cmp eax, esi
je 0x41e800
push eax
call ebx
test eax, eax
je 0x41e800
call eax
mov edi, eax
test edi, edi
je 0x41e800
mov eax, dword [0x4cbc84]
cmp eax, esi
je 0x41e800
push eax
call ebx
test eax, eax
je 0x41e800
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4cbc7c]
call ebx
test eax, eax
je 0x41e81b
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x41e81d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004185b9
leave
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x7fd60737
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
mov ecx, 0x799068b5
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x6ed30739
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x52926e47
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x4330c0
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x418876
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x42e180]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [fcn.00423124]
push edi
mov edi, ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
push 0x42385c
push edi
mov dword [ebp - 0x50], eax
call esi
push 0x42384c
push edi
mov ebx, eax
call esi
push 0x423838
push edi
mov dword [ebp - 0x48], eax
call esi
push 0x42382c
push edi
mov dword [ebp - 0x44], eax
call esi
push 0x423788
push edi
mov dword [ebp - 0x40], eax
call esi
push 0x423798
push edi
mov dword [ebp - 0x3c], eax
call esi
push 0x423774
push edi
mov dword [ebp - 0x4c], eax
call esi
push 0x423764
push edi
mov dword [ebp - 0x54], eax
call esi
xor esi, esi
cmp ebx, esi
je 0x418a5e
cmp dword [ebp - 0x48], esi
je 0x418a5e
cmp dword [ebp - 0x44], esi
je 0x418a5e
cmp dword [ebp - 0x40], esi
je 0x418a5e
cmp dword [ebp - 0x3c], esi
je 0x418a5e
cmp dword [ebp - 0x54], esi
je 0x418a5e
cmp eax, esi
je 0x418a5e
cmp dword [ebp - 0x4c], esi
je 0x418a5e
mov eax, dword [ebp - 0x38]
cmp eax, esi
je 0x418a57
cmp byte [eax], 0
je 0x418a57
push esi
push eax
call fcn.004367ea
pop ecx
pop ecx
mov dword [ebp - 0x3c], eax
cmp eax, 0xffffffff
jne 0x41897f
push dword [ebp - 0x38]
push 0x423804
call fcn.0041f7ec
add eax, 0x40
push eax
call fcn.0041f656
add esp, 0xc
push 3
pop eax
jmp 0x418a61
push 0x4237f0
push 0x3ec
push dword [0x431ab8]
call dword [0x423288]
call ebx
mov eax, edi
call fcn.00418767
push 0x400
push esi
mov esi, 0x42f288
push esi
call fcn.0041e70c
mov eax, dword [ebp + 0xc]
add esp, 0xc
test eax, eax
jle 0x4189df
mov edi, dword [ebp - 0x50]
mov ebx, esi
sub ebx, edi
mov dword [ebp - 0x38], eax
mov eax, dword [edi]
test eax, eax
je 0x4189d2
push eax
call fcn.004181f4
pop ecx
jmp 0x4189d4
xor eax, eax
mov dword [ebx + edi], eax
add edi, 4
dec dword [ebp - 0x38]
jne 0x4189c3
push esi
push dword [ebp + 0xc]
call dword [ebp - 0x48]
xor esi, esi
pop ecx
pop ecx
cmp dword [ebp + 0xc], esi
jle 0x418a07
mov eax, dword [esi*4 + 0x42f288]
test eax, eax
je 0x418a01
push eax
call fcn.0041ef45
pop ecx
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x4189ef
push 3
pop ebx
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x3c]
call fcn.0041f304
pop ecx
pop ecx
test eax, eax
jne 0x418a47
mov edi, dword [ebp - 0x20]
lea eax, [edi + 5]
call fcn.0041f9ac
mov esi, esp
push edi
push esi
push dword [ebp - 0x3c]
call fcn.0043742a
add esp, 0xc
test eax, eax
jle 0x418a47
push esi
mov word [eax + esi], 0xa
call dword [ebp - 0x44]
pop ecx
mov ebx, eax
call dword [ebp - 0x40]
push dword [ebp - 0x3c]
call fcn.0042ab2d
pop ecx
mov eax, ebx
jmp 0x418a61
push 2
jmp 0x418979
xor eax, eax
inc eax
lea esp, [ebp - 0x60]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e8c1
leave
ret
Function at 0x641370
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 0x64138e
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 0x66a074
push ecx
mov edi, eax
call fcn.00655198
mov esi, eax
add esp, 8
test esi, esi
jne 0x6413cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0065502e
push esi
call fcn.00654fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x644850
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 0x6448ae
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 0x66f720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x6448ba
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.006551e1
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 0x6448ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x66f720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x64492a
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.00656082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x644957
mov word [eax], si
add eax, 2
push eax
call fcn.00656030
add esp, 4
jmp 0x644959
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 0x6448ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x6448b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x6450c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x66a458
push ecx
call fcn.006551e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.006551e1
add esp, 0x10
jmp 0x6450d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0065520b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00654dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00645050
mov eax, dword [0x66f728]
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 0x64513b
push esi
call fcn.00644fb0
add esp, 4
mov dword [0x66f728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x64514c
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.00644ff0
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 0x648440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x6484b7
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 0x64848e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x648471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x64847e
add edx, ecx
cmp ebx, edx
jb 0x64848a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x648467
xor ecx, ecx
jmp 0x6484a2
test eax, eax
jne 0x648492
xor ecx, ecx
jmp 0x6484a2
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.006483c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x6488f0
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 0x648921
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 0x648946
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 0x64896e
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 0x648993
push ecx
push esi
call fcn.006484c0
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 0x649c00
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 0x649c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x649c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x649c38
add edx, eax
cmp ebx, edx
jb 0x649c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x649c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x649c50
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 0x649c70
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 0x649cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x649c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x649ca8
add edx, ecx
cmp ebx, edx
jb 0x649cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x649c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x649f60
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.00656145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x649ffb
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 0x649fdd
lea eax, [esp + 0x18]
push eax
jmp 0x649fe2
push 0x66f720
call fcn.00655fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x649fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x649f40
push 4
push ecx
push eax
call fcn.0065643f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x64a310
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.00656145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x64a3ab
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 0x64a38d
lea eax, [esp + 0x18]
push eax
jmp 0x64a392
push 0x66f720
call fcn.00655fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x64a360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x649f40
push 4
push ecx
push eax
call fcn.0065643f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x64bf20
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 0x64bfd7
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 0x64bfcf
push ebx
push edi
push 0x66f770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x64bfae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x66f770
push esi
call ebx
test eax, eax
je 0x64bfae
mov ebp, 3
cmp dword [0x66f774], ebp
jne 0x64bfaa
push 0x3e8
call edi
push 0x66f770
push esi
call ebx
test eax, eax
jne 0x64bf8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x64bfc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x64bfbb
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