joyce8/EMBER2024-capa huggingface dataset:
Function at 0x484f40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov esi, edx
lea edi, [esp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x484f9c
push esp
push 0x40
push 6
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x484f6b
call fcn.0040ef90
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
mov ecx, 6
call fcn.00402cb4
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
push 6
mov eax, dword [esp + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x484f9c
call fcn.0040ef90
add esp, 0x14
pop edi
pop esi
pop ebx
ret

Function at 0x487cc4
Capabilities:
Set global application hook

Disassembly:
mov eax, dword [0x493e60]
cmp dword [eax], 2
je 0x487ce2
mov ecx, 0x304
mov edx, 0x487d14
mov eax, 0x487d70
call fcn.004049a4
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
push 0x487c64
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x4953e4], eax
cmp dword [0x4953e4], 0
jne 0x487d09
call fcn.0040ef90
ret

Function at 0x4880cc
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, dword [0x4938cc]
cmp byte [eax], 0
jne 0x4880fa
mov ecx, 0xad
mov edx, 0x488148
mov eax, 0x4881a4
call fcn.004049a4
mov eax, ebx
call fcn.00405164
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x488139
push 0x200
lea edx, [ebp - 0x202]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.004052f8
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4881b8
Capabilities:
Log keystrokes

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [0x4938cc]
cmp byte [eax], 0
jne 0x4881d9
mov ecx, 0xb9
mov edx, 0x4881f0
mov eax, 0x48824c
call fcn.004049a4
push 2
movzx eax, bx
push eax
call sub.user32.dll_MapVirtualKeyW
pop ebx
ret
Function at 0x48a170
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x48a179
mov eax, dword [ebp - 4]
add esp, 0xfffffebc
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404f08
xor eax, eax
push ebp
push 0x48a26f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x493d24]
mov byte [eax], 0
mov dword [ebx], 0xffffffff
mov eax, dword [ebp - 4]
call fcn.00409f0c
test al, al
je 0x48a259
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x154]
call fcn.004031a4
mov edx, 1
lea eax, [ebp - 0x154]
call fcn.004035e0
call fcn.00402c14
call fcn.00402c94
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x10145]
mov ecx, 0xfff1
lea eax, [ebp - 0x154]
call fcn.004032f4
call fcn.00402c14
mov dx, word [ebp - 8]
test dx, dx
jbe 0x48a241
lea eax, [ebp - 0x10145]
xor ecx, ecx
mov cl, byte [eax]
mov esi, dword [ebx]
and esi, 0xff
xor ecx, esi
mov ecx, dword [ecx*4 + 0x4933c8]
mov esi, dword [ebx]
shr esi, 8
xor ecx, esi
mov dword [ebx], ecx
inc eax
dec dx
jne 0x48a21d
cmp dword [ebp - 8], 0
jne 0x48a1ef
lea eax, [ebp - 0x154]
call fcn.00403314
call fcn.00402c14
not dword [ebx]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48a276
lea eax, [ebp - 4]
call fcn.00404a48
ret
Function at 0x48fbc0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x140], ecx
mov dword [ebp - 0x144], ecx
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404f08
xor eax, eax
push ebp
push 0x48fd13
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, 2
call fcn.00421bb4
mov ebx, eax
mov eax, ebx
xor edx, edx
cmp edx, 0xffffffff
jne 0x48fc16
cmp eax, 0xffffffff
je 0x48fce5
mov dword [ebp - 0x138], 0x128
lea edx, [ebp - 0x138]
mov eax, ebx
call fcn.00421bd4
mov esi, eax
jmp 0x48fcd7
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x114]
mov ecx, 0x104
call fcn.00404cc8
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 0x10]
call fcn.0040a068
mov edx, dword [ebp - 0x13c]
lea eax, [ebp - 0x10]
call fcn.00404ae0
lea edx, [ebp - 0x140]
mov eax, dword [ebp - 4]
call fcn.00409130
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x144]
mov eax, dword [ebp - 0x10]
call fcn.00409130
mov edx, dword [ebp - 0x144]
pop eax
call fcn.00404e64
jne 0x48fcbc
mov eax, dword [ebp - 0x130]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov edi, eax
mov eax, dword [ebp - 0xc]
push eax
push edi
call sub.kernel32.dll_TerminateProcess
push edi
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [0x493c48]
mov eax, dword [eax]
call fcn.0045b32c
lea edx, [ebp - 0x138]
mov eax, ebx
call fcn.00421bf4
mov esi, eax
test esi, esi
jne 0x48fc3a
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48fd1a
lea eax, [ebp - 0x144]
mov edx, 3
call fcn.00404a6c
lea eax, [ebp - 0x10]
call fcn.00404a48
lea eax, [ebp - 4]
call fcn.00404a48
ret

Function at 0x4901dc
Capabilities:
Read file via mapping

Disassembly:
push 0x49027c
push 0
push 0xf001f
call sub.kernel32.dll_OpenFileMappingA
mov dword [0x495460], eax
cmp dword [0x495460], 0
jne 0x49024c
push 0x49027c
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov dword [0x495460], eax
push 0
push 0
push 0
push 6
mov eax, dword [0x495460]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [0x495464], eax
cmp dword [0x495464], 0
jne 0x490241
mov eax, dword [0x495460]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov eax, dword [0x495464]
xor edx, edx
mov dword [eax], edx
jmp 0x490278
push 0
push 0
push 0
push 6
mov eax, dword [0x495460]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [0x495464], eax
cmp dword [0x495464], 0
jne 0x490278
mov eax, dword [0x495460]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
Function at 0x475ef9
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x475f27
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x475f45
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00475e63
jmp 0x475f45
mov eax, dword [esi + 0x14]
test eax, eax
je 0x475f45
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00475e63
test edi, edi
mov eax, edi
jne 0x475f2f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4c1a7c]
test ecx, ecx
je 0x475ff8
jmp 0x475ef8
ret 8

Function at 0x48d9f0
Capabilities:
Encode data using xor

Disassembly:
dec edi
enter 0x4e71, 0xffffffffffffffa1
mov byte cs:[0x6054bd6e], al
jp 0x48d9c9
test byte [eax + ebp + 0x15e5092c], dl
sar ebx, 1
cmpsd dword cs:[esi], dword es:[edi]
adc eax, 0xa72efbd1
and dl, byte [ebx + 0x5c0ef51f]
invalid
pop ebx
push edi
mov dword [0xc985d09a], esp
in al, 0x41
inc ecx
inc ecx
mov dh, 0x36
fidivr word [edi + esi*4 + 0x6d]
mov dword [eax], edx
mov ebp, 0x7ecd83
push cs
xor al, bh
add bh, byte [ebp - 0x72]
bound ebp, qword [esi]
add eax, 0x94caa2ef
sbb dh, dl
jp 0x48d9e6
jg 0x48da56
mov dl, 0x85
sub ah, byte [0x27b5f67e]
jno 0x48d9b6
sbb esi, dword [0x443d5a76]
mov edx, 0x4feb3482
or byte [ebx + 0x35], dl
mov eax, dword [0x51a6ee7d]
out 0x29, eax
out 0xf9, al
cmpsd dword [esi], dword es:[edi]
mov dh, 0xba
sub bl, byte [edx]
outsb dx, byte [esi]
lahf
cmc
popal
adc ebp, dword [edi + 0x44]
dec esp
stc
inc dword [esi]
les edx, [esi - 0x4dec564e]
sar ecx, 1
inc edx
invalid
pop ebx
mov cl, 0xae
jmp 0x532d0b8a
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x1ce687a
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x2516014c
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4060b6
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004021ba
and dword [ebp - 4], 0
cmp dword [0x40b654], 0
mov ebx, eax
jne 0x406167
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406218
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406218
push eax
call fcn.00402148
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b654], eax
call esi
push eax
call fcn.00402148
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b658], eax
call esi
push eax
call fcn.00402148
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40b65c], eax
call esi
push eax
call fcn.00402148
pop ecx
mov dword [0x40b664], eax
test eax, eax
je 0x406167
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402148
pop ecx
mov dword [0x40b660], eax
mov eax, dword [0x40b660]
cmp eax, ebx
je 0x4061bf
cmp dword [0x40b664], ebx
je 0x4061bf
push eax
call fcn.004021c3
push dword [0x40b664]
mov esi, eax
call fcn.004021c3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4061bf
test edi, edi
je 0x4061bf
call esi
test eax, eax
je 0x4061b6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4061b6
test byte [ebp - 0xc], 1
jne 0x4061bf
or dword [ebp + 0x10], 0x200000
jmp 0x4061f8
mov eax, dword [0x40b658]
cmp eax, ebx
je 0x4061f8
push eax
call fcn.004021c3
pop ecx
test eax, eax
je 0x4061f8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4061f8
mov eax, dword [0x40b65c]
cmp eax, ebx
je 0x4061f8
push eax
call fcn.004021c3
pop ecx
test eax, eax
je 0x4061f8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b654]
call fcn.004021c3
pop ecx
test eax, eax
je 0x406218
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40621a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40915c
nop
mov ecx, 0x11c535e0
nop
nop
nop
test eax, eax
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x431024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
mov ecx, 0x48c96c59
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x7bb370
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 0x7bb38e
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 0x7e4074
push ecx
mov edi, eax
call fcn.007cf198
mov esi, eax
add esp, 8
test esi, esi
jne 0x7bb3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.007cf02e
push esi
call fcn.007cefb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x7be850
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 0x7be8ae
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 0x7e9720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x7be8ba
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.007cf1e1
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 0x7be8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x7e9720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x7be92a
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.007d0082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x7be957
mov word [eax], si
add eax, 2
push eax
call fcn.007d0030
add esp, 4
jmp 0x7be959
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 0x7be8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x7be8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x7bf0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x7e4458
push ecx
call fcn.007cf1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.007cf1e1
add esp, 0x10
jmp 0x7bf0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.007cf20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.007cedff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.007bf050
mov eax, dword [0x7e9728]
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 0x7bf13b
push esi
call fcn.007befb0
add esp, 4
mov dword [0x7e9728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x7bf14c
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.007beff0
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 0x7c2440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x7c24b7
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 0x7c248e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x7c2471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x7c247e
add edx, ecx
cmp ebx, edx
jb 0x7c248a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x7c2467
xor ecx, ecx
jmp 0x7c24a2
test eax, eax
jne 0x7c2492
xor ecx, ecx
jmp 0x7c24a2
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.007c23c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x7c28f0
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 0x7c2921
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 0x7c2946
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 0x7c296e
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 0x7c2993
push ecx
push esi
call fcn.007c24c0
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 0x7c3c00
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 0x7c3c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x7c3c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x7c3c38
add edx, eax
cmp ebx, edx
jb 0x7c3c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x7c3c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x7c3c50
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 0x7c3c70
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 0x7c3cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x7c3c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x7c3ca8
add edx, ecx
cmp ebx, edx
jb 0x7c3cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x7c3c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x7c3f60
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.007d0145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x7c3ffb
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 0x7c3fdd
lea eax, [esp + 0x18]
push eax
jmp 0x7c3fe2
push 0x7e9720
call fcn.007cffd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x7c3fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x7c3f40
push 4
push ecx
push eax
call fcn.007d043f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x7c4310
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.007d0145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x7c43ab
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 0x7c438d
lea eax, [esp + 0x18]
push eax
jmp 0x7c4392
push 0x7e9720
call fcn.007cffd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x7c4360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x7c3f40
push 4
push ecx
push eax
call fcn.007d043f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x7c5f20
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 0x7c5fd7
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 0x7c5fcf
push ebx
push edi
push 0x7e9770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x7c5fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x7e9770
push esi
call ebx
test eax, eax
je 0x7c5fae
mov ebp, 3
cmp dword [0x7e9774], ebp
jne 0x7c5faa
push 0x3e8
call edi
push 0x7e9770
push esi
call ebx
test eax, eax
jne 0x7c5f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x7c5fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x7c5fbb
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