joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10020fd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x14
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
dec eax
push ebp
mov ebp, edx
mov dword [esp + 0x10], ebp
lea eax, [edx + eax*2]
mov dword [esp + 0x14], eax
cmp edx, eax
mov eax, dword [esp + 0x24]
jae 0x100211a4
push esi
mov esi, dword [esp + 0x2c]
push ebx
push edi
nop dword [eax]
test esi, esi
je 0x1002100c
cmp eax, esi
jae 0x1002119d
mov cl, byte [eax]
mov byte [esp + 0x2c], cl
test cl, cl
je 0x1002119d
movzx ecx, cl
xor ebx, ebx
shr ecx, 3
mov edx, esi
movsx ecx, byte [ecx + 0x10079b68]
test ecx, ecx
mov dword [esp + 0x18], ecx
sete bl
add ebx, ecx
test esi, esi
jne 0x1002103d
lea edx, [ebx + eax]
cmp eax, edx
lea esi, [eax + 1]
sbb cl, cl
and cl, byte [esp + 0x2c]
mov byte [esp + 0x13], cl
cmp esi, edx
jae 0x10021058
mov ch, byte [esi]
mov byte [esp + 0x11], ch
jmp 0x1002105d
mov byte [esp + 0x11], 0
lea esi, [eax + 2]
cmp esi, edx
jae 0x1002106c
mov ch, byte [esi]
mov byte [esp + 0x2c], ch
jmp 0x10021071
mov byte [esp + 0x2c], 0
lea esi, [eax + 3]
cmp esi, edx
jae 0x1002107c
mov ch, byte [esi]
jmp 0x1002107e
xor ch, ch
mov ebp, dword [esp + 0x18]
movzx esi, byte [esp + 0x11]
movzx edx, byte [esp + 0x2c]
movzx edi, ch
mov ebp, dword [ebp*4 + 0x10079b88]
mov byte [esp + 0x12], ch
movzx ecx, cl
and ebp, ecx
mov ecx, esi
and ecx, 0x3f
mov dword [esp + 0x14], ebp
shl dword [esp + 0x14], 6
and esi, 0xc0
or dword [esp + 0x14], ecx
mov ecx, edx
shl dword [esp + 0x14], 6
and ecx, 0x3f
or dword [esp + 0x14], ecx
and edx, 0xc0
shl dword [esp + 0x14], 6
mov ecx, edi
mov ebp, dword [esp + 0x14]
and ecx, 0x3f
or ebp, ecx
shr edi, 2
mov ecx, dword [esp + 0x18]
or edi, edx
shr edi, 2
or edi, esi
shr edi, 2
mov ecx, dword [ecx*4 + 0x10079bb0]
shr ebp, cl
mov esi, ebp
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x18]
cmp esi, dword [ebp*4 + 0x10079b9c]
sbb ecx, ecx
xor edx, edx
and ecx, 0x40
or edi, ecx
mov ecx, esi
and ecx, 0xfffff800
cmp ecx, 0xd800
mov ecx, 0x80
cmove edx, ecx
mov ecx, 0xffff
or edi, edx
cmp ecx, esi
sbb ecx, ecx
and ecx, 0x100
or edi, ecx
mov ecx, dword [ebp*4 + 0x10079bc4]
mov ebp, dword [esp + 0x1c]
xor edi, 0x2a
sar edi, cl
test edi, edi
je 0x10021182
xor edx, edx
mov esi, 0xfffd
cmp byte [esp + 0x12], dl
setne dl
xor ecx, ecx
cmp byte [esp + 0x2c], cl
setne cl
add edx, ecx
xor ecx, ecx
cmp byte [esp + 0x11], cl
setne cl
add edx, ecx
xor ecx, ecx
cmp byte [esp + 0x13], cl
setne cl
add edx, ecx
cmp ebx, edx
cmovl edx, ebx
mov ebx, edx
mov word [ebp], si
add eax, ebx
mov esi, dword [esp + 0x34]
add ebp, 2
mov dword [esp + 0x1c], ebp
cmp ebp, dword [esp + 0x20]
jb 0x10021000
mov edx, dword [esp + 0x28]
pop edi
pop ebx
pop esi
xor ecx, ecx
mov word [ebp], cx
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x100211b4
mov dword [ecx], eax
sub ebp, edx
sar ebp, 1
mov eax, ebp
pop ebp
add esp, 0x14
ret
Function at 0x10022f90
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
cmp dword [edi + 0x5e44], 0
lea esi, [edi + 0x5e48]
je 0x1002300a
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x10022fc4
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.10030fd0
push dword [esp + 0x14]
mov ecx, esi
mov dword [esi], 0
push dword [esp + 0x14]
call fcn.100309e0
mov edx, dword [esi]
mov ecx, 0x1008355c
push dword [edi + 0x5e44]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x5e50]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
ret
push dword [esp + 0x14]
mov ecx, esi
push dword [esp + 0x14]
call fcn.100309e0
pop edi
pop esi
ret
Function at 0x10045640
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push esi
call fcn.1001f040
test eax, eax
je 0x10045654
call fcn.1001f2c0
mov esi, dword [eax + 0x6c]
jmp 0x10045656
xor esi, esi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 4
add esi, 0x24
shr eax, 0x10
push esi
push 0x20001004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x10045679
mov dword [esi], eax
pop esi
ret
Function at 0x10049590
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, ecx
cmp esi, 8
ja 0x1004969f
test byte [edi], 2
jne 0x1004969f
mov eax, dword [edi + 0x468]
lea esi, [esi + esi*2]
mov ecx, dword [edi + 0x50]
movss xmm2, dword [esi*8 + 0x1007eaa8]
movss xmm4, dword [esi*8 + 0x1007eaac]
lea edx, [eax*8]
sub edx, eax
movzx eax, word [ecx + edx*4 + 4]
movd xmm5, eax
movzx eax, word [ecx + edx*4 + 6]
cvtdq2ps xmm5, xmm5
movd xmm3, eax
addss xmm5, dword [esi*8 + 0x1007eaa0]
mov eax, dword [esp + 0x14]
cvtdq2ps xmm3, xmm3
movaps xmm1, xmm5
addss xmm3, dword [esi*8 + 0x1007eaa4]
movss dword [eax + 4], xmm4
movss dword [eax], xmm2
mov ecx, dword [esi*8 + 0x1007eab0]
mov edx, dword [esi*8 + 0x1007eab4]
mov eax, dword [esp + 0x10]
addss xmm4, xmm3
movaps xmm0, xmm3
mov dword [eax], ecx
mov dword [eax + 4], edx
mulss xmm1, dword [edi + 0x2c]
mov eax, dword [esp + 0x18]
mulss xmm0, dword [edi + 0x30]
movss dword [eax], xmm1
movaps xmm1, xmm5
addss xmm5, dword [0x1007ec0c]
movss dword [eax + 4], xmm0
addss xmm1, xmm2
movaps xmm0, xmm4
mulss xmm0, dword [edi + 0x30]
mulss xmm1, dword [edi + 0x2c]
movss dword [eax + 0xc], xmm0
movaps xmm0, xmm5
addss xmm5, xmm2
movss dword [eax + 8], xmm1
mulss xmm0, dword [edi + 0x2c]
mov eax, dword [esp + 0x1c]
mulss xmm3, dword [edi + 0x30]
movss dword [eax], xmm0
movss dword [eax + 4], xmm3
mulss xmm5, dword [edi + 0x2c]
mulss xmm4, dword [edi + 0x30]
pop edi
movss dword [eax + 8], xmm5
pop esi
movss dword [eax + 0xc], xmm4
mov al, 1
ret 0x14
pop edi
xor al, al
pop esi
ret 0x14
Function at 0x10049af0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
push edi
mov edi, dword [esp + 0x24]
test byte [edi], 4
jne 0x10049cb3
mov eax, dword [edi + 0x46c]
mov ecx, dword [edi + 0x50]
push ebx
push ebp
lea edx, [eax*8]
mov dword [esp + 0xc], ecx
sub edx, eax
xor ebx, ebx
lea eax, [edi + 0x60]
mov dword [esp + 0x14], edx
push esi
mov dword [esp + 0x14], eax
nop word [eax + eax]
movzx ebp, word [ecx + edx*4]
movzx ecx, word [ecx + edx*4 + 6]
mov esi, ebp
mov eax, dword [esp + 0x10]
add ecx, ebx
imul ecx, dword [edi + 0x24]
sub esi, ebx
shr esi, 1
sub ebp, esi
movzx eax, word [eax + edx*4 + 4]
sub ebp, ebx
add ecx, eax
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x10049b98
lea edi, [eax + ecx]
test esi, esi
je 0x10049b6e
push esi
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
add edi, esi
test ebx, ebx
je 0x10049b83
push ebx
push 0xff
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test ebp, ebp
je 0x10049bce
push ebp
lea eax, [edi + ebx]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x10049bce
mov eax, dword [edi + 0x20]
lea edx, [eax + ecx*4]
test esi, esi
je 0x10049bad
mov ecx, esi
mov eax, 0xffffff
mov edi, edx
rep stosd dword es:[edi], eax
test ebx, ebx
je 0x10049bbb
lea edi, [edx + esi*4]
mov ecx, ebx
or eax, 0xffffffff
rep stosd dword es:[edi], eax
test ebp, ebp
je 0x10049bce
lea eax, [esi + ebx]
mov ecx, ebp
lea edi, [edx + eax*4]
mov eax, 0xffffff
rep stosd dword es:[edi], eax
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x30]
movzx edx, word [ebp + ecx*4 + 4]
movzx ecx, word [ebp + ecx*4 + 6]
add ecx, ebx
lea eax, [ecx + 1]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1007a760]
lea eax, [edx - 1]
add eax, esi
cvtpd2ps xmm2, xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
mulss xmm2, dword [edi + 0x30]
addsd xmm0, qword [ecx*8 + 0x1007a760]
mov ecx, ebp
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [edi + 0x30]
addss xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mulss xmm2, dword [0x10078200]
addsd xmm0, qword [eax*8 + 0x1007a760]
lea eax, [edx + 1]
mov edx, dword [esp + 0x18]
add eax, esi
movss dword [esp + 0x20], xmm2
add eax, ebx
movss dword [esp + 0x28], xmm2
inc ebx
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [edi + 0x2c]
movss dword [esp + 0x1c], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1007a760]
mov eax, dword [esp + 0x14]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [edi + 0x2c]
movss dword [esp + 0x24], xmm0
movups xmm0, xmmword [esp + 0x1c]
movups xmmword [eax], xmm0
add eax, 0x10
mov dword [esp + 0x14], eax
cmp ebx, 0x40
jb 0x10049b30
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x1c
ret

Function at 0x1004c190
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edx, dword [ecx + 0x70]
sub edx, 1
mov dword [ecx + 0x70], edx
jne 0x1004c1ad
mov eax, dword [ecx + 0x2c]
add eax, 0x18
movups xmm0, xmmword [eax]
movups xmmword [ecx + 0x44], xmm0
jmp fcn.1004d9d0
mov eax, dword [ecx + 0x78]
add edx, edx
lea eax, [eax - 0x10]
movups xmm0, xmmword [eax + edx*8]
lea eax, [eax + edx*8]
movups xmmword [ecx + 0x44], xmm0
jmp fcn.1004d9d0
Function at 0x1004d8c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x1004d8e7
push eax
mov dword [esi + 4], 0
mov dword [esi], 0
call fcn.10023120
add esp, 4
mov dword [esi + 8], 0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1004d90c
push eax
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
call fcn.10023120
add esp, 4
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x20]
test eax, eax
je 0x1004d931
push eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
call fcn.10023120
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov eax, dword [esi + 0x78]
test eax, eax
je 0x1004d972
push eax
mov dword [esi + 0x74], 0
mov dword [esi + 0x70], 0
call fcn.10023120
add esp, 4
mov dword [esi + 0x78], 0
mov eax, dword [esi + 0x84]
test eax, eax
je 0x1004d9a0
push eax
mov dword [esi + 0x80], 0
mov dword [esi + 0x7c], 0
call fcn.10023120
add esp, 4
mov dword [esi + 0x84], 0
mov eax, dword [esi + 0x40]
test eax, eax
je 0x1004d9c5
push eax
mov dword [esi + 0x3c], 0
mov dword [esi + 0x38], 0
call fcn.10023120
add esp, 4
mov dword [esi + 0x40], 0
lea ecx, [esi + 0x5c]
pop esi
jmp fcn.10049380
Function at 0xc8e370
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 0xc8e38e
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 0xcb7074
push ecx
mov edi, eax
call fcn.00ca2198
mov esi, eax
add esp, 8
test esi, esi
jne 0xc8e3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00ca202e
push esi
call fcn.00ca1fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xc91850
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 0xc918ae
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 0xcbc720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xc918ba
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.00ca21e1
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 0xc918ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xcbc720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xc9192a
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.00ca3082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xc91957
mov word [eax], si
add eax, 2
push eax
call fcn.00ca3030
add esp, 4
jmp 0xc91959
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 0xc918ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xc918b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xc920c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xcb7458
push ecx
call fcn.00ca21e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00ca21e1
add esp, 0x10
jmp 0xc920d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00ca220b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00ca1dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00c92050
mov eax, dword [0xcbc728]
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 0xc9213b
push esi
call fcn.00c91fb0
add esp, 4
mov dword [0xcbc728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xc9214c
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.00c91ff0
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 0xc95440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xc954b7
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 0xc9548e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xc95471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xc9547e
add edx, ecx
cmp ebx, edx
jb 0xc9548a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xc95467
xor ecx, ecx
jmp 0xc954a2
test eax, eax
jne 0xc95492
xor ecx, ecx
jmp 0xc954a2
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.00c953c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xc958f0
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 0xc95921
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 0xc95946
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 0xc9596e
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 0xc95993
push ecx
push esi
call fcn.00c954c0
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 0xc96c00
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 0xc96c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xc96c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xc96c38
add edx, eax
cmp ebx, edx
jb 0xc96c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xc96c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xc96c50
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 0xc96c70
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 0xc96cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xc96c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xc96ca8
add edx, ecx
cmp ebx, edx
jb 0xc96cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xc96c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xc96f60
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.00ca3145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xc96ffb
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 0xc96fdd
lea eax, [esp + 0x18]
push eax
jmp 0xc96fe2
push 0xcbc720
call fcn.00ca2fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xc96fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xc96f40
push 4
push ecx
push eax
call fcn.00ca343f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xc97310
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.00ca3145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xc973ab
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 0xc9738d
lea eax, [esp + 0x18]
push eax
jmp 0xc97392
push 0xcbc720
call fcn.00ca2fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xc97360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xc96f40
push 4
push ecx
push eax
call fcn.00ca343f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xc98f20
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 0xc98fd7
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 0xc98fcf
push ebx
push edi
push 0xcbc770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0xc98fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0xcbc770
push esi
call ebx
test eax, eax
je 0xc98fae
mov ebp, 3
cmp dword [0xcbc774], ebp
jne 0xc98faa
push 0x3e8
call edi
push 0xcbc770
push esi
call ebx
test eax, eax
jne 0xc98f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0xc98fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0xc98fbb
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 0xc9ce00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0xcb28f0
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 0xc9ced2
lea edx, [esp + 0x24]
push eax
push edx
call fcn.00c997a0
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
cmp eax, edi
je 0xc9ce61
mov edx, dword [eax]
jmp 0xc9ce63
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.00c9b050
mov eax, dword [esp + 0x44]
add esp, 0x20
cmp eax, edi
mov dword [esp + 0x1c], 0xffffffff
je 0xc9cebf
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0xc9cebf
cmp esi, edi
je 0xc9cebf
mov ecx, esi
call fcn.00c94a00
push esi
call fcn.00ca21c8
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.00c99990
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
cmp eax, edi
je 0xc9cef5
mov eax, dword [eax]
jmp 0xc9cef7
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.00c98640
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 0xc9cf25
mov eax, dword [eax]
jmp 0xc9cf27
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 0xc9cf76
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0xc9cf76
cmp esi, edi
je 0xc9cf76
mov eax, dword [esi]
cmp eax, edi
je 0xc9cf5d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0xc9cf6d
push eax
call fcn.00ca21c8
add esp, 4
push esi
call fcn.00ca21c8
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