joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b9e60
Capabilities:
Accept command line arguments

Disassembly:
push ecx
mov al, byte [0x7d104a]
mov cl, byte [0x7d104d]
mov edx, dword [0x7d1030]
and cl, al
mov eax, dword [0x7d1034]
mov byte [0x7d104d], cl
mov ecx, eax
push esi
shr ecx, 2
sub edx, ecx
xor ecx, ecx
mov cl, byte [0x7d1043]
mov dword [0x7d1030], edx
mov edx, dword [0x7d1038]
push edi
or edx, 7
imul edx, ecx
and eax, edx
mov dword [0x7d1034], eax
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
mov edi, dword [esp + 0x10]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push 0
mov esi, eax
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test esi, esi
je 0x5b9ee6
mov eax, dword [0x7d4acc]
push 0x7d47e8
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x6436b1
Capabilities:
Encode data using xor

Disassembly:
push ss
jge 0x6436f6
ljmp 0x924a:0xf21d9b7f
sbb eax, 0x3f924af2
mov dh, byte [edx]
or al, 0x19
push cs
adc dword [eax], ebx
mov cl, 0x17
scasd eax, dword es:[edi]
adc al, 0x3b
movsb byte es:[edi], byte [esi]
lahf
mov esp, fs
push 0x42417dfb
pop ds
and byte [edi + 0x6f], bl
sub ebp, dword [esi - 0x3452817b]
push es
pop ebp
sbb eax, dword [ebp + 0x548b06c8]
cmpsd dword [esi], dword es:[edi]
movsb byte es:[edi], byte [esi]
inc esp
stc
mov dword [0xd7fec2d4], eax
and dh, dl
jb 0x643743
in eax, 0x8b
adc dword [ecx], esp
movsb byte es:[edi], byte [esi]
dec esp
inc esp
stosd dword es:[edi], eax
inc ecx
shr byte [eax + esi*2 + 0x15e74aea], 1
or dword [edx - 0x4bdc3553], 0xc
aas
adc ecx, ebp
shr byte [edi - 0x18660a3c], cl
pop eax
lcall 0xceae, 0xc77eb2fa
xor edx, dword [edx + 0x5d]
in eax, 0x30
cmpsb byte [esi], byte es:[edi]
test eax, 0xe6648087
xor cl, byte [eax]
mov ch, 0xd9
inc ebx
cdq
jge 0x6436b7
push edx
xor dl, bh
xor dl, bh
pop esp
or ecx, dword [eax]
or dword [ebp - 0x29d407c7], ebp
pop esp
pushfd
stc
jecxz 0x64372e
mov edx, 0x4b2d3f7
mov edx, 0x71207a6a
xchg ebp, eax
mov ebx, 0x7a1352db
bound eax, qword [eax + ecx + 0x2ad1cc8a]
jmp 0x643785
mov bl, 0x64
and byte [ebx + 0x24], al
movsw word es:[edi], word [esi]
stosb byte es:[edi], al
pop ecx
and byte [esi - 0x7cde62e], cl
lodsd eax, dword [esi]
sti
mov bl, 0x63
inc ebx
mov bl, 0xd7
fidiv dword [edx - 0x7b9b655e]
out 0xb0, eax
wait
cmp dword [ebx + 0x7f42dd9b], edx
xchg ebx, eax
cwde
dec esi
cmp al, 0x7f
lahf
mov byte [0xd41f82b2], al
invalid

Function at 0x725ab1
Capabilities:
Encode data using xor

Disassembly:
sbb byte [edi], 0x99
scasb al, byte es:[edi]
xor ebx, esp
sbb al, 0x94
or ecx, dword [ebp - 0x40da45ce]
ror byte [eax - 0x29], 0x51
xlatb
push ecx
out dx, al
stc
pop ebx
movsb byte es:[edi], byte [esi]
sub al, 0xb3
xor eax, 0x79d028a
js 0x725ac2
outsd dx, dword [esi]
jmp 0x72b4392e
Function at 0x7c7efd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x7d13b8
cmp edx, dword [eax]
je 0x7c7f1f
add eax, 8
inc ecx
cmp eax, 0x7d1448
jl 0x7c7f10
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x7d13b8]
jne 0x7c804d
mov eax, dword [0xbd0d14]
cmp eax, 1
je 0x7c8027
test eax, eax
jne 0x7c7f50
cmp dword [0x7d12e4], 1
je 0x7c8027
cmp edx, 0xfc
je 0x7c804d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x7c7f87
lea eax, [ebp - 0x1a4]
push 0x7cda68
push eax
call fcn.007c88e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.007c8d70
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x7c7fca
lea eax, [ebp - 0x1a4]
push eax
call fcn.007c8d70
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x7cda64
push edi
call fcn.007cac40
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x7cda48
push eax
call fcn.007c88e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.007c88f0
lea eax, [ebp - 0xa0]
push 0x7cda44
push eax
call fcn.007c88f0
push dword [esi + 0x7d13bc]
lea eax, [ebp - 0xa0]
push eax
call fcn.007c88f0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x7cda1c
push eax
call fcn.007cabb4
add esp, 0x2c
pop edi
jmp 0x7c804d
lea eax, [ebp + 8]
lea esi, [esi + 0x7d13bc]
push 0
push eax
push dword [esi]
call fcn.007c8d70
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x51f251ac
nop
nop
nop
test eax, eax
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
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
nop
jne 0x432024
nop
nop
mov eax, section..data
mov ebx, 0x42f314
nop
mov ecx, 0x2d3e1461
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219

Function at 0x1049a3a0
Capabilities:
Encode data using xor

Disassembly:
add ecx, 0xc
jne 0x1049a352
call dword [0x55c02c]
adc eax, 0x55c02c
xor eax, eax
pop esi
pop ebp
cmp byte [ebx + edx], al
xor edi, eax
add dword [ebp + 0xc], esi
mov eax, dword [ecx + 8]
push eax
inc dword [edi + 0x40c030]
and eax, 0x2f8830f
jne 0x1049a358
mov ecx, dword [ecx - 0x69]
push ecx
call ecx
xor al, 0xc0
inc eax
add byte [ebx - 0x74368af9], bl
xor eax, 0x5940c098
call esi
and ah, ch
je 0x1049a358
invalid
push ebp
mov ecx, 0x8458bec
mov byte [eax + 0x500040a2], al
mov eax, dword [eax]
push eax
call 0xca4956c0
pop ebp
imul eax, dword [eax + eax], 0xffffff90
nop
nop
nop
jge 0x1049a34e
nop
nop
and al, al
ret 0x17
Function at 0x1000213f
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
push 0x40
push 0x1000
push dword [ebp + 8]
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
cmp dword [ebp - 4], esp
je 0x10002183
push 0x12
push 0x404ea02
push 6
call fcn.10004c90
add esp, 0xc
jmp 0x10002188
mov esp, ebp
pop ebp
ret 4
Function at 0x100040f6
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x2000
push 0x80000301
push 0
push 0x1000
push 2
mov ebx, 0xc8
call fcn.10005b40
add esp, 0x1c
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0x40
push dword [ebp - 8]
push dword [ebp + 0xc]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x1000416a
push 0x39
push 0x40493b4
push 6
call fcn.10004c90
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100041e7
push 0x80000301
push 0
push 0x2000
push 0x80000301
push 0
push 0x1000
push 2
mov ebx, 0xc8
call fcn.10005b40
add esp, 0x1c
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0x40
push dword [ebp - 8]
push dword [ebp + 0xc]
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x100041dd
push 0xc7
push 0x40493b4
push 6
call fcn.10004c90
add esp, 0xc
jmp 0x100041ef
mov eax, dword [ebp - 4]
jmp 0x100041ef
mov esp, ebp
pop ebp
ret 8

Function at 0x100056b0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x10005719
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.10004f80
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x100063a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x100063c1
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x1000641b
inc edi
cmp edi, esi
jl 0x100063b5
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x10006450
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x1000640a
cmp byte [eax], bl
je 0x10006425
cmp byte [eax + 1], bl
je 0x1000642e
cmp byte [eax + 2], bl
je 0x10006438
cmp byte [eax + 3], bl
je 0x10006444
add eax, 4
cmp eax, edi
jb 0x100063e1
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
Function at 0xbf9370
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 0xbf938e
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 0xc22074
push ecx
mov edi, eax
call fcn.00c0d198
mov esi, eax
add esp, 8
test esi, esi
jne 0xbf93cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00c0d02e
push esi
call fcn.00c0cfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xbfc850
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 0xbfc8ae
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 0xc27720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xbfc8ba
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.00c0d1e1
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 0xbfc8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xc27720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xbfc92a
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.00c0e082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xbfc957
mov word [eax], si
add eax, 2
push eax
call fcn.00c0e030
add esp, 4
jmp 0xbfc959
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 0xbfc8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xbfc8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xbfd0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xc22458
push ecx
call fcn.00c0d1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00c0d1e1
add esp, 0x10
jmp 0xbfd0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00c0d20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00c0cdff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00bfd050
mov eax, dword [0xc27728]
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 0xbfd13b
push esi
call fcn.00bfcfb0
add esp, 4
mov dword [0xc27728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xbfd14c
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.00bfcff0
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 0xc00440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xc004b7
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 0xc0048e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xc00471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xc0047e
add edx, ecx
cmp ebx, edx
jb 0xc0048a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xc00467
xor ecx, ecx
jmp 0xc004a2
test eax, eax
jne 0xc00492
xor ecx, ecx
jmp 0xc004a2
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.00c003c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xc008f0
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 0xc00921
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 0xc00946
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 0xc0096e
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 0xc00993
push ecx
push esi
call fcn.00c004c0
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 0xc01c00
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 0xc01c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xc01c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xc01c38
add edx, eax
cmp ebx, edx
jb 0xc01c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xc01c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xc01c50
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 0xc01c70
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 0xc01cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xc01c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xc01ca8
add edx, ecx
cmp ebx, edx
jb 0xc01cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xc01c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xc01f60
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.00c0e145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xc01ffb
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 0xc01fdd
lea eax, [esp + 0x18]
push eax
jmp 0xc01fe2
push 0xc27720
call fcn.00c0dfd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xc01fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xc01f40
push 4
push ecx
push eax
call fcn.00c0e43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xc02310
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.00c0e145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xc023ab
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 0xc0238d
lea eax, [esp + 0x18]
push eax
jmp 0xc02392
push 0xc27720
call fcn.00c0dfd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xc02360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xc01f40
push 4
push ecx
push eax
call fcn.00c0e43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xc03f20
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 0xc03fd7
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 0xc03fcf
push ebx
push edi
push 0xc27770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0xc03fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0xc27770
push esi
call ebx
test eax, eax
je 0xc03fae
mov ebp, 3
cmp dword [0xc27774], ebp
jne 0xc03faa
push 0x3e8
call edi
push 0xc27770
push esi
call ebx
test eax, eax
jne 0xc03f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0xc03fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0xc03fbb
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 0xc07e00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0xc1d8f0
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 0xc07ed2
lea edx, [esp + 0x24]
push eax
push edx
call fcn.00c047a0
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
cmp eax, edi
je 0xc07e61
mov edx, dword [eax]
jmp 0xc07e63
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.00c06050
mov eax, dword [esp + 0x44]
add esp, 0x20
cmp eax, edi
mov dword [esp + 0x1c], 0xffffffff
je 0xc07ebf
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0xc07ebf
cmp esi, edi
je 0xc07ebf
mov ecx, esi
call fcn.00bffa00
push esi
call fcn.00c0d1c8
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.00c04990
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
cmp eax, edi
je 0xc07ef5
mov eax, dword [eax]
jmp 0xc07ef7
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.00c03640
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 0xc07f25
mov eax, dword [eax]
jmp 0xc07f27
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 0xc07f76
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0xc07f76
cmp esi, edi
je 0xc07f76
mov eax, dword [esi]
cmp eax, edi
je 0xc07f5d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0xc07f6d
push eax
call fcn.00c0d1c8
add esp, 4
push esi
call fcn.00c0d1c8
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