joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54da60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf7000]
push edi
jmp 0x54da7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x54da81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x54da70
mov eax, 1
add ebx, ebx
jne 0x54da93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x54daa4
jne 0x54dac3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x54dac3
dec eax
add ebx, ebx
jne 0x54dab0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x54da88
add ebx, ebx
jne 0x54dabf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x54db15
xor ecx, ecx
sub eax, 3
jb 0x54dadb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x54db4a
sar eax, 1
mov ebp, eax
jmp 0x54dae6
add ebx, ebx
jne 0x54dae6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x54dab4
inc ecx
add ebx, ebx
jne 0x54daf4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x54dab4
add ebx, ebx
jne 0x54db01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x54daf6
jne 0x54db12
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x54daf6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x54db34
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x54db26
jmp 0x54da76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x54db34
add edi, ecx
jmp 0x54da76
pop esi
mov edi, esi
mov ecx, 0x3ee5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x54db52
cmp byte [edi], 0x11
jne 0x54db52
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 0x54db57
lea edi, [esi + 0x146000]
mov eax, dword [edi]
or eax, eax
je 0x54dbcf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1c2c50]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1c2dcc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x54db84
mov ecx, edi
jns 0x54dbb3
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 + 0x1c2dd0]
or eax, eax
je 0x54dbc9
mov dword [ebx], eax
add ebx, 4
jmp 0x54dba1
call dword [esi + 0x1c2de0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x54dc00
cmp al, 0xef
ja 0x54dbf3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x54dbd5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x54dbe2
mov ebp, dword [esi + 0x1c2dd4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x54dc34
sub esp, 0xffffff80
jmp 0x427f4a
Function at 0x401000
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x60
push 0x1665c84
call fcn.00401224
mov edi, 0x94
mov eax, edi
call fcn.004011dc
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x1665c84], ecx
mov eax, dword [esi + 4]
mov dword [0x1665c88], eax
mov edx, dword [esi + 8]
mov dword [0x1665c8c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x1665c90], esi
cmp ecx, 2
je 0x401060
or esi, 0x8000
mov dword [0x1665c94], esi
shl eax, 8
add eax, edx
mov dword [0x1665c84], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40109b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40109b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4010b3
cmp eax, 0x20b
je 0x4010a0
mov dword [ebp - 0x1c], esi
jmp 0x4010c7
cmp dword [ecx + 0x84], 0xe
jbe 0x40109b
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4010c1
cmp dword [ecx + 0x74], 0xe
jbe 0x40109b
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0040121c
pop ecx
test eax, eax
jne 0x4010f3
cmp dword [0x1665c84], 1
jne 0x4010e0
call fcn.0040121c
push 0x1c
call fcn.0040121c
push 0xff
call fcn.0040121c
pop ecx
pop ecx
call fcn.0040121c
mov dword [ebp - 4], esi
call fcn.0040121c
test eax, eax
jge 0x40110c
push 0x1b
call fcn.0040121c
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1665c84], eax
call fcn.0040121c
mov dword [0x1665c88], eax
call fcn.0040121c
test eax, eax
jge 0x401132
push 8
call fcn.0040121c
pop ecx
call fcn.0040121c
test eax, eax
jge 0x401143
push 9
call fcn.0040121c
pop ecx
push 1
call fcn.0040121c
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x401159
push eax
call fcn.0040121c
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040121c
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40117a
movzx eax, word [ebp - 0x40]
jmp 0x40117d
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401228
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40119b
push edi
call fcn.00401220
call fcn.0040121c
jmp 0x4011cd
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040121c
ret

Function at 0x401228
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
lea eax, [ebp - 4]
push eax
push 0x40
push 0x624000
push section..rdata
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40124f
mov eax, 0x104257c
jmp eax
pop ebx
leave
ret 0x14
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x431030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp int.00401219
Function at 0x43aa30
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0x18]
sub esp, 0x78
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x3c], 0x40d370
mov dword [ebp - 0x38], 0x43fa0c
mov dword [ebp - 0x30], 0x43abca
mov dword [ebp - 0x2c], esp
mov dword [esp], eax
call fcn.00418b80
mov edx, dword [0x440804]
test edx, edx
je 0x43aba2
cmp dword [ebp + 8], 0x80
ja 0x43aa88
mov eax, dword [0x440804]
test eax, eax
jle 0x43aab8
mov dword [ebp - 0x50], 0xffffffff
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
call fcn.00411060
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x54]
mov dword [esp], eax
call fcn.00418c30
mov eax, dword [ebp - 0x58]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
add eax, 7
mov dword [ebp - 0x5c], eax
shr eax, 3
lea eax, [eax*4 - 4]
mov dword [ebp - 0x60], eax
mov eax, dword [0x440810]
test eax, eax
je 0x43ab8a
mov eax, dword [0x449350]
test eax, eax
jne 0x43ab72
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 0x449530]
test edx, edx
je 0x43ab57
mov eax, dword [edx]
mov dword [ebp - 0x58], edx
mov ecx, dword [ebp - 0x60]
mov dword [ecx + 0x449530], eax
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x43ab49
mov eax, dword [0x440810]
test eax, eax
je 0x43ab34
mov eax, dword [0x449350]
test eax, eax
je 0x43aa9d
mov dword [esp], 0x44081c
mov dword [ebp - 0x50], 0xffffffff
call fcn.00419a10
jmp 0x43aa9d
mov dword [esp], 0x440810
mov dword [ebp - 0x50], 0xffffffff
call fcn.004387c0
jmp 0x43ab13
mov dword [ebp - 0x50], 1
call fcn.004137b0
jmp 0x43ab0a
and dword [ebp - 0x5c], 0xfffffff8
mov dword [ebp - 0x50], 1
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call fcn.0043ac30
mov dword [ebp - 0x58], eax
jmp 0x43ab03
mov dword [esp], 0x44081c
mov dword [ebp - 0x50], 0xffffffff
call fcn.004199b0
jmp 0x43aae8
mov dword [esp], 0x440810
mov dword [ebp - 0x50], 0xffffffff
call fcn.004387c0
jmp 0x43aadb
mov dword [esp], 0x418460
call sub.msvcrt.dll_getenv
test eax, eax
je 0x43abc3
mov eax, 1
lock add dword [0x440804], eax
jmp 0x43aa76
mov eax, 0xffffffff
jmp 0x43abb7

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d7a
sub eax, 0x403d20
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0xc28370
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 0xc2838e
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 0xc51074
push ecx
mov edi, eax
call fcn.00c3c198
mov esi, eax
add esp, 8
test esi, esi
jne 0xc283cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00c3c02e
push esi
call fcn.00c3bfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xc2b850
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 0xc2b8ae
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 0xc56720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xc2b8ba
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.00c3c1e1
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 0xc2b8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xc56720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xc2b92a
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.00c3d082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xc2b957
mov word [eax], si
add eax, 2
push eax
call fcn.00c3d030
add esp, 4
jmp 0xc2b959
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 0xc2b8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xc2b8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xc2c0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xc51458
push ecx
call fcn.00c3c1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00c3c1e1
add esp, 0x10
jmp 0xc2c0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00c3c20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00c3bdff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00c2c050
mov eax, dword [0xc56728]
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 0xc2c13b
push esi
call fcn.00c2bfb0
add esp, 4
mov dword [0xc56728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xc2c14c
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.00c2bff0
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 0xc2f440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xc2f4b7
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 0xc2f48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xc2f471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xc2f47e
add edx, ecx
cmp ebx, edx
jb 0xc2f48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xc2f467
xor ecx, ecx
jmp 0xc2f4a2
test eax, eax
jne 0xc2f492
xor ecx, ecx
jmp 0xc2f4a2
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.00c2f3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xc2f8f0
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 0xc2f921
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 0xc2f946
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 0xc2f96e
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 0xc2f993
push ecx
push esi
call fcn.00c2f4c0
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 0xc30c00
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 0xc30c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xc30c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xc30c38
add edx, eax
cmp ebx, edx
jb 0xc30c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xc30c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xc30c50
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 0xc30c70
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 0xc30cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xc30c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xc30ca8
add edx, ecx
cmp ebx, edx
jb 0xc30cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xc30c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xc30f60
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.00c3d145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xc30ffb
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 0xc30fdd
lea eax, [esp + 0x18]
push eax
jmp 0xc30fe2
push 0xc56720
call fcn.00c3cfd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xc30fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xc30f40
push 4
push ecx
push eax
call fcn.00c3d43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xc31310
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.00c3d145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xc313ab
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 0xc3138d
lea eax, [esp + 0x18]
push eax
jmp 0xc31392
push 0xc56720
call fcn.00c3cfd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xc31360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xc30f40
push 4
push ecx
push eax
call fcn.00c3d43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xc32f20
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 0xc32fd7
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 0xc32fcf
push ebx
push edi
push 0xc56770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0xc32fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0xc56770
push esi
call ebx
test eax, eax
je 0xc32fae
mov ebp, 3
cmp dword [0xc56774], ebp
jne 0xc32faa
push 0x3e8
call edi
push 0xc56770
push esi
call ebx
test eax, eax
jne 0xc32f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0xc32fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0xc32fbb
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
Function at 0xc36e00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0xc4c8f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov ecx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 4]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push esi
push ecx
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0xc36ed2
lea edx, [esp + 0x24]
push eax
push edx
call fcn.00c337a0
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
cmp eax, edi
je 0xc36e61
mov edx, dword [eax]
jmp 0xc36e63
xor edx, edx
xor ecx, ecx
push edi
xor eax, eax
push edx
push ecx
mov ecx, dword [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
mov edx, dword [ecx + 4]
push eax
push esi
push 2
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.00c35050
mov eax, dword [esp + 0x44]
add esp, 0x20
cmp eax, edi
mov dword [esp + 0x1c], 0xffffffff
je 0xc36ebf
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0xc36ebf
cmp esi, edi
je 0xc36ebf
mov ecx, esi
call fcn.00c2ea00
push esi
call fcn.00c3c1c8
add esp, 4
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push edi
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.00c33990
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
cmp eax, edi
je 0xc36ef5
mov eax, dword [eax]
jmp 0xc36ef7
xor eax, eax
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x2c]
push ebx
push esi
push eax
push ecx
push edx
call fcn.00c32640
add esp, 0x10
mov bl, al
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0xc36f25
mov eax, dword [eax]
jmp 0xc36f27
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
cmp esi, edi
je 0xc36f76
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0xc36f76
cmp esi, edi
je 0xc36f76
mov eax, dword [esi]
cmp eax, edi
je 0xc36f5d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0xc36f6d
push eax
call fcn.00c3c1c8
add esp, 4
push esi
call fcn.00c3c1c8
add esp, 4
mov ecx, dword [esp + 0x18]
mov al, bl
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret