joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x3d5a87
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x38b48e3
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x100011a0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1001e040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [0x1001fa94], 0
jmp fcn.100d09aa

Function at 0x10001460
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0xc], edx
call fcn.10001590
mov ebx, eax
push 4
push ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10001487
mov ecx, dword [ebx]
jmp 0x10001489
xor ecx, ecx
test ebx, ebx
je 0x1000157a
cmp ecx, 0x1a4b9
je 0x100014b5
cmp ecx, 0x1a8a1
je 0x100014b5
cmp ecx, 0x32b59
je 0x100014b5
cmp ecx, 0x32f41
je 0x100014b5
xor al, al
jmp 0x100014b7
mov al, 1
mov byte [ebp - 1], al
cmp ecx, 0x1a11d
je 0x10001501
cmp ecx, 0x327bd
je 0x10001501
test al, al
jne 0x10001505
cmp ecx, 0x77a10
jae 0x1000150f
jmp 0x100d4742
test al, al
je 0x1000150f
mov dword [ebx + 0xac], 0
mov byte [ebp - 2], 0xff
jmp 0x100d4fc6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100016d0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
test edi, edi
je 0x100019fd
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 4
push edi
call esi
test eax, eax
jne 0x100019fd
mov eax, dword [edi]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x100019fd
mov ecx, dword [edi + 0x80]
mov edx, dword [edi + 0xa0]
cmp ecx, 6
je 0x10001720
cmp ecx, 0xa
je 0x10001720
xor cl, cl
jmp 0x10001722
mov cl, 1
cmp dword [ebp + 8], 1
jne 0x1000183d
mov edi, dword [0x1001facc]
push 4
push edi
call esi
test eax, eax
jne 0x1000173f
mov ecx, dword [edi]
jmp 0x10001741
xor ecx, ecx
mov ebx, dword [0x1001fac8]
add ebx, ecx
push 4
push ebx
call esi
test eax, eax
jne 0x10001759
mov ebx, dword [ebx]
mov dword [ebp - 8], ebx
jmp 0x10001760
mov dword [ebp - 8], 0
mov edi, dword [0x1001facc]
push 4
push edi
call esi
test eax, eax
jne 0x10001773
mov ecx, dword [edi]
jmp 0x10001775
xor ecx, ecx
mov edi, dword [0x1001fac8]
add edi, ecx
push 4
push edi
call esi
test eax, eax
jne 0x1000178d
mov eax, dword [edi]
mov dword [ebp - 4], eax
jmp 0x10001794
mov dword [ebp - 4], 0
jmp 0x100d6f2d
test edx, edx
je 0x1000184c
cmp eax, 0x77a10
jbe 0x100019fd
test cl, cl
jne 0x100019fd
mov edi, dword [0x1001facc]
push 4
push edi
call esi
test eax, eax
jne 0x10001867
mov ecx, dword [edi]
jmp 0x10001869
xor ecx, ecx
mov edi, dword [0x1001fac8]
add edi, ecx
push 4
push edi
call esi
test eax, eax
jne 0x10001881
mov eax, dword [edi]
mov dword [ebp - 8], eax
jmp 0x10001888
mov dword [ebp - 8], 0
jmp 0x100d8441
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001ed0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1001e040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1001f790]
push ebx
push esi
push edi
mov dword [ebp - 8], eax
jmp fcn.100dab34

Function at 0x100021a0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x564
mov eax, dword [0x1001e040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
jmp fcn.100e1fd2

Function at 0x100022e0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x564
mov eax, dword [0x1001e040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
jmp fcn.100e48c1

Function at 0x10002560
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10012c2c
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x1001e040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
jmp fcn.100eb031
Function at 0x10002790
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call edi
push 1
mov esi, eax
call edi
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, esi
cdq
sub eax, edx
sar eax, 1
push eax
call dword [sym.imp.USER32.dll_SetCursorPos]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1f4
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov edi, eax
push 0x64
mov dword [ebp - 4], edi
call esi
call ebx
mov dword [0x1001f78c], eax
call ebx
sub eax, edi
cmp eax, 0xbb8
ja 0x1000289b
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
call fcn.10001ed0
push 0
push 0
push 0
push 0
push 2
call dword [sym.imp.USER32.dll_mouse_event]
push 0x2c
call esi
call fcn.10001ed0
push 0
push 0
push 0
push 0
push 4
call dword [sym.imp.USER32.dll_mouse_event]
mov esi, dword [0x1001fac0]
push 4
push esi
call edi
test eax, eax
jne 0x10002836
mov eax, dword [esi]
jmp 0x10002838
xor eax, eax
lea esi, [eax + 0x22c]
push 4
push esi
call edi
test eax, eax
jne 0x1000284b
mov eax, dword [esi]
jmp 0x1000284d
xor eax, eax
lea esi, [eax + 0x138]
push 4
push esi
call edi
test eax, eax
jne 0x10002860
mov esi, dword [esi]
jmp 0x10002862
xor esi, esi
push 4
push esi
call edi
test eax, eax
jne 0x1000287a
cmp dword [esi], eax
je 0x1000287a
xor ecx, ecx
call fcn.10001d30
test eax, eax
jne 0x1000289b
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call esi
call ebx
mov dword [0x1001f78c], eax
call ebx
sub eax, dword [ebp - 4]
cmp eax, 0xbb8
jbe 0x100027f5
call ebx
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
mov dword [0x1001f78c], eax
call ebx
push 1
mov esi, eax
call ebx
mov edi, dword [sym.imp.USER32.dll_SetCursorPos]
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, esi
cdq
sub eax, edx
sar eax, 1
push eax
call edi
call fcn.10001fa0
push 0
call ebx
push 1
mov esi, eax
call ebx
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, esi
cdq
sub eax, edx
sar eax, 1
push eax
call edi
call fcn.10001fa0
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x32
call esi
call fcn.10001fa0
push 0x32
call esi
push 0
call ebx
push 1
mov esi, eax
call ebx
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, esi
cdq
sub eax, edx
sar eax, 1
push eax
call edi
pop edi
pop esi
mov dword [0x1001fae4], 0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10002be0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
jmp fcn.100eb6eb
Function at 0x10003c10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x10003c2e
push 0
push 0
push 0
push 0x100039e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc

Function at 0x10008c09
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10008c48
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10008c48
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10008c48
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10008c48
cmp dword [ecx + 0x74], 0xe
jbe 0x10008c48
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x1000a2d4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10015794
push 0x1001578c
push str.FlsAlloc
push 0x1f
call fcn.1000a1b0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000a308
push dword [ebp + 8]
mov ecx, esi
call dword [0x10013150]
call esi
jmp 0x1000a30e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000a352
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100157a4
push 0x1001579c
push str.FlsGetValue
push 0x21
call fcn.1000a1b0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000a389
push dword [ebp + 8]
mov ecx, esi
call dword [0x10013150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000a391
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100157ac
push 0x100157a4
push str.FlsSetValue
push 0x22
call fcn.1000a1b0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000a3cb
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10013150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000c4a8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000c545
push ebx
push esi
call fcn.1000c471
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000c405
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000c4f2
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000c544
push edi
push eax
call fcn.1000af14
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000c512
call fcn.1000a5bc
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000c543
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000c405
add esp, 0x20
test eax, eax
jne 0x1000c531
push edi
call fcn.1000a5bc
jmp 0x1000c539
push ebx
call fcn.1000a5bc
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x10010fb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10010fdd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10010fdd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0xc4f370
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 0xc4f38e
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 0xc78074
push ecx
mov edi, eax
call fcn.00c63198
mov esi, eax
add esp, 8
test esi, esi
jne 0xc4f3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00c6302e
push esi
call fcn.00c62fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xc52850
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 0xc528ae
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 0xc7d720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xc528ba
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.00c631e1
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 0xc528ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xc7d720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xc5292a
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.00c64082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xc52957
mov word [eax], si
add eax, 2
push eax
call fcn.00c64030
add esp, 4
jmp 0xc52959
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 0xc528ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xc528b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xc530c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xc78458
push ecx
call fcn.00c631e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00c631e1
add esp, 0x10
jmp 0xc530d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00c6320b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00c62dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00c53050
mov eax, dword [0xc7d728]
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 0xc5313b
push esi
call fcn.00c52fb0
add esp, 4
mov dword [0xc7d728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xc5314c
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.00c52ff0
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 0xc56440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xc564b7
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 0xc5648e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xc56471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xc5647e
add edx, ecx
cmp ebx, edx
jb 0xc5648a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xc56467
xor ecx, ecx
jmp 0xc564a2
test eax, eax
jne 0xc56492
xor ecx, ecx
jmp 0xc564a2
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.00c563c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xc568f0
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 0xc56921
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 0xc56946
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 0xc5696e
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 0xc56993
push ecx
push esi
call fcn.00c564c0
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 0xc57c00
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 0xc57c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xc57c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xc57c38
add edx, eax
cmp ebx, edx
jb 0xc57c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xc57c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xc57c50
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 0xc57c70
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 0xc57cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xc57c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xc57ca8
add edx, ecx
cmp ebx, edx
jb 0xc57cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xc57c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xc57f60
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.00c64145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xc57ffb
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 0xc57fdd
lea eax, [esp + 0x18]
push eax
jmp 0xc57fe2
push 0xc7d720
call fcn.00c63fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xc57fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xc57f40
push 4
push ecx
push eax
call fcn.00c6443f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xc58310
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.00c64145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xc583ab
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 0xc5838d
lea eax, [esp + 0x18]
push eax
jmp 0xc58392
push 0xc7d720
call fcn.00c63fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xc58360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xc57f40
push 4
push ecx
push eax
call fcn.00c6443f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xc59f20
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 0xc59fd7
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 0xc59fcf
push ebx
push edi
push 0xc7d770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0xc59fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0xc7d770
push esi
call ebx
test eax, eax
je 0xc59fae
mov ebp, 3
cmp dword [0xc7d774], ebp
jne 0xc59faa
push 0x3e8
call edi
push 0xc7d770
push esi
call ebx
test eax, eax
jne 0xc59f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0xc59fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0xc59fbb
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