joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10051501
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1005147d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10051679
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10051679
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10051628
jg 0x1005155a
test eax, eax
je 0x1005161e
push 1
push 0x1000
call fcn.10040442
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10051580
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x10051615
push 0x8000
push ebx
call fcn.100513ae
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100515ac
jg 0x100515a7
cmp ecx, 0x1000
jb 0x100515ac
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10046195
add esp, 0x10
cmp eax, 0xffffffff
je 0x100515f1
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x100515a7
jl 0x100515d8
test ecx, ecx
jne 0x10051599
push dword [ebp - 0xc]
push ebx
call fcn.100513ae
push esi
call fcn.1004049f
add esp, 0xc
xor edi, edi
jmp 0x1005168a
cmp byte [edi + 0x24], 0
je 0x10051608
cmp dword [edi + 0x20], 5
jne 0x10051608
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10051613
mov edi, dword [edi + 0x18]
jmp 0x10051615
xor edi, edi
push esi
call fcn.1004049f
pop ecx
jmp 0x1005168a
test ecx, ecx
jg 0x100515ea
jl 0x10051628
test eax, eax
jae 0x100515ea
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10047b72
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1005164b
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100515ea
jmp 0x10051682
push ebx
call fcn.1004eb5b
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100515ea
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x1005168a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x10051687
mov edi, dword [edi + 0x18]
jmp 0x1005168a
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10047b72
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10052cb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10052cdd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10052cdd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x417a10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
push 5
xor esi, esi
call sub.MPR.dll_WNetCloseEnum
lea eax, [esp + 4]
push eax
push 0x20019
push esi
push str.CLSIDBA6DB5A2_8372_4DCA_BF6B_E167687A90EBProgID
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x417a45
xor eax, eax
pop esi
add esp, 8
ret 4
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
mov dword [esp + 8], 0x104
push ecx
push edx
push 0
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x417a71
mov esi, 1
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret 4

Function at 0x445434
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x36e344fd
push esp
test byte [ebx + eax*8 - 0x36f2e922], bh
add dword [eax - 0x25], eax
sal dword [edx + 0x4ade0d77], 1
pop ebx
xchg ecx, eax
mov esp, 0x946295c0
jp 0x4453ac
dec ebp
mov esp, 0x87b72bc2
iretd
mov byte [0x5bc362c5], al
dec ebx
in eax, dx
jle 0x4453ac
push eax
retf 0x6d4b
sbb al, 0xd4
xor ebx, dword [ebp + 0x2ad3616a]
push ecx
jle 0x4453e9
or bh, ch
mov dh, 0xe4
sbb cl, byte [ebp + 0x3d]
inc eax
xor al, 0x17
and cx, bx
push esp
sub al, 0xfe
fsubr dword [edx]
or ecx, dword [edx - 0x1c63253c]
push edi
pop ds
dec esi
arpl word [eax + 0x736b3b53], sp
jecxz 0x4454d4
sub byte [esi + 0x5ea828e0], bl
arpl word [edi + 0x5c048650], sp
and dword [esi + 0x19], ebx
jo 0x4454da
xchg byte [edi + eax*2], dl
inc dword [edx + 0x63]
rol dword [eax + 0xeb9e099], cl
test eax, 0x1727be51
wait
or byte [ecx], ah
wait
mov cl, byte [edx + 0x48]
mov dword [0x13e1de67], eax
jecxz 0x445451
frstor dword [esi]
pop esp
inc ecx
invalid
cld
int1
sbb eax, 0x4b0aa14e
call 0x6a6e662
and eax, 0x4a549f76
xor dword [esi + edi*2 + 0x60], ecx
rep stosd dword es:[edi], eax
xchg byte [ecx - 0x5c], cl
dec ecx
movsb byte es:[edi], byte [esi]
popal
cmp bl, dh
ret
movsd dword es:[edi], dword [esi]
mov al, 0xbe
and cl, byte [esi]
xlatb
cmpsd dword [esi], dword es:[edi]
dec ebx
pop edx
adc al, 0x49
xchg edx, eax
mov ecx, 0xd4839a5
xchg esp, eax
inc ecx
sbb al, 0x7a
adc dword [edi + 0x4335148f], 0x75
adc byte es:[eax - 0x4264cb9f], al
xor al, 0xe
js 0x4454ce
les esi, [eax + 0x77]
stosb byte es:[edi], al
sbb ah, byte [ecx + 2]
push esi
or byte [edi + 0x592acabb], 0xe0
fdiv dword [edi + ebx*2 - 0x53]
arpl word [edx], dx
mul dword cs:[eax]
scasb al, byte es:[edi]
push cs
push ebx
dec esi
push ds
scasb al, byte es:[edi]
les ecx, [esi + 0x6e]
jne 0x4454c2
xor eax, 0xff4c58a2
jno 0x4454aa
pop eax
dec esp
push dword [ecx - 0x76]
push 0xde16c42
xchg byte [edi + edx + 0x61347202], al
xor dh, byte [edi + 0x6f21eea3]
test dword [edx], edi
shl dword [edi - 0x75], 1
pop edi
xor dword [edi], esi
mov esi, 0x35f868cc
inc ebx
arpl word [edx + esi*2 - 0x4f558e68], bp
dec ebp
lahf
test byte [eax - 0x42], ch
jae 0x445525
and edx, esi
sbb al, 0xae
push edx
xor byte [ebx - 0x5e], 0x1d
jnp 0x44551b
pop edi
mov ecx, 0x9cc0820a
sbb dword [esi + ebx*2 - 0xbda315b], ebp
push eax
ljmp 0xa86e
Function at 0x4b8f3d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c03a0
cmp edx, dword [eax]
je 0x4b8f5f
add eax, 8
inc ecx
cmp eax, 0x4c0430
jl 0x4b8f50
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c03a0]
jne 0x4b908d
mov eax, dword [0x4c4d2c]
cmp eax, 1
je 0x4b9067
test eax, eax
jne 0x4b8f90
cmp dword [0x4c02cc], 1
je 0x4b9067
cmp edx, 0xfc
je 0x4b908d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4b8fc7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004b9920
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004b9db0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4b900a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004b9db0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4be6ec
push edi
call fcn.004bbc80
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004b9920
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004b9930
lea eax, [ebp - 0xa0]
push 0x4be6cc
push eax
call fcn.004b9930
push dword [esi + 0x4c03a4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004b9930
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004bbbf4
add esp, 0x2c
pop edi
jmp 0x4b908d
lea eax, [ebp + 8]
lea esi, [esi + 0x4c03a4]
push 0
push eax
push dword [esi]
call fcn.004b9db0
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 0x40b4e5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004041e5
xor ebx, ebx
cmp dword [0x434898], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40b5ba
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x40b525
sub eax, eax
jmp 0x40b67e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40b51e
push eax
call fcn.00404182
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x434898], eax
call esi
push eax
call fcn.00404182
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43489c], eax
call esi
push eax
call fcn.00404182
mov dword [0x4348a0], eax
lea eax, [ebp - 8]
push eax
call fcn.004067af
or eax, eax
pop ecx
pop ecx
je 0x40b588
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40b5ba
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00404182
cmp eax, ebx
pop ecx
mov dword [0x4348a8], eax
je 0x40b5ba
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404182
pop ecx
mov dword [0x4348a4], eax
mov eax, dword [0x4348a4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40b633
cmp dword [0x4348a8], esi
je 0x40b633
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
je 0x40b600
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4348a8]
call fcn.004041ee
pop ecx
call eax
or eax, eax
je 0x40b600
test byte [ebp - 0x18], 1
jne 0x40b633
lea eax, [ebp - 0xc]
push eax
call fcn.004067e6
or eax, eax
pop ecx
je 0x40b61b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40b62a
or dword [ebp + 0x10], 0x200000
jmp 0x40b664
or dword [ebp + 0x10], 0x40000
jmp 0x40b664
mov eax, dword [0x43489c]
cmp eax, esi
je 0x40b664
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40b664
mov eax, dword [0x4348a0]
cmp eax, esi
je 0x40b664
push dword [ebp - 4]
push eax
call fcn.004041ee
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x434898]
call fcn.004041ee
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x192d488a
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x551d476e
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x40e145
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x40e154
pop dword [ebp - 0x3c]
mov eax, 0x40e154
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x3f30d
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0x45535556
sub ecx, 0x455307f5
xor edx, edx
add edx, eax
mov ebx, 0x435400
add ebx, dword [ebp - 0x3c]
mov esi, 0x55e29477
add esi, 0xf342449f
xor dword [ebp - 8], ebx
mov edi, dword [ebx]
sub dword [ebp - 0x1c], 0xda90a14a
add edi, esi
add dword [ebp - 0x38], 0xebbc2527
mov dword [edx], edi
xor dword [ebp - 0x1c], edi
add edx, 0x36ab848f
sub edx, 0x36ab848b
add ebx, 4
loop 0x40e1a5
add eax, 0x9420c485
sub eax, 0x941f9c2e
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x53c3ccdc
sub ecx, 0x5383ccdc
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0xca2370
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 0xca238e
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 0xccb074
push ecx
mov edi, eax
call fcn.00cb6198
mov esi, eax
add esp, 8
test esi, esi
jne 0xca23cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00cb602e
push esi
call fcn.00cb5fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xca5850
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 0xca58ae
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 0xcd0720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xca58ba
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.00cb61e1
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 0xca58ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xcd0720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xca592a
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.00cb7082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xca5957
mov word [eax], si
add eax, 2
push eax
call fcn.00cb7030
add esp, 4
jmp 0xca5959
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 0xca58ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xca58b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xca60c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xccb458
push ecx
call fcn.00cb61e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00cb61e1
add esp, 0x10
jmp 0xca60d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00cb620b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00cb5dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00ca6050
mov eax, dword [0xcd0728]
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 0xca613b
push esi
call fcn.00ca5fb0
add esp, 4
mov dword [0xcd0728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xca614c
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.00ca5ff0
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 0xca9440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xca94b7
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 0xca948e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xca9471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xca947e
add edx, ecx
cmp ebx, edx
jb 0xca948a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xca9467
xor ecx, ecx
jmp 0xca94a2
test eax, eax
jne 0xca9492
xor ecx, ecx
jmp 0xca94a2
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.00ca93c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xca98f0
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 0xca9921
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 0xca9946
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 0xca996e
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 0xca9993
push ecx
push esi
call fcn.00ca94c0
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 0xcaac00
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 0xcaac4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xcaac2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xcaac38
add edx, eax
cmp ebx, edx
jb 0xcaac46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xcaac21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xcaac50
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 0xcaac70
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 0xcaacb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xcaac9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xcaaca8
add edx, ecx
cmp ebx, edx
jb 0xcaacb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xcaac91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xcaaf60
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.00cb7145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xcaaffb
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 0xcaafdd
lea eax, [esp + 0x18]
push eax
jmp 0xcaafe2
push 0xcd0720
call fcn.00cb6fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xcaafb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xcaaf40
push 4
push ecx
push eax
call fcn.00cb743f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xcab310
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.00cb7145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xcab3ab
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 0xcab38d
lea eax, [esp + 0x18]
push eax
jmp 0xcab392
push 0xcd0720
call fcn.00cb6fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xcab360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xcaaf40
push 4
push ecx
push eax
call fcn.00cb743f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xcacf20
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 0xcacfd7
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 0xcacfcf
push ebx
push edi
push 0xcd0770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0xcacfae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0xcd0770
push esi
call ebx
test eax, eax
je 0xcacfae
mov ebp, 3
cmp dword [0xcd0774], ebp
jne 0xcacfaa
push 0x3e8
call edi
push 0xcd0770
push esi
call ebx
test eax, eax
jne 0xcacf8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0xcacfc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0xcacfbb
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