joyce8/EMBER2024-capa huggingface dataset:
Function at 0x543f14
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x543fd7
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
push 0x543fe4
mov edx, dword [0x5652b8]
mov edx, dword [edx]
lea eax, [ebp - 0x24]
mov ecx, 0x543ff0
call fcn.004046a8
mov eax, dword [ebp - 0x24]
call fcn.0040485c
push eax
push 0x544004
push 0
call sub.shell32.dll_ShellExecuteA
call fcn.0040bc8c
fstp qword [ebp - 0x18]
wait
xor eax, eax
mov dword [ebp - 0xc], eax
call fcn.0040bc8c
fstp qword [ebp - 0x20]
wait
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.004e0f98
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
je 0x543faf
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3e0]
mov edx, 0x19
call fcn.0047d2e4
mov eax, dword [0x5650b0]
mov eax, dword [eax]
call fcn.0047aba8
cmp dword [ebp - 8], 4
jl 0x543f71
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x543fde
lea eax, [ebp - 0x24]
call fcn.0040438c
ret
Function at 0x54bbb0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
xor ebx, ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.0040484c
mov eax, dword [ebp - 0xc]
call fcn.0040484c
xor eax, eax
push ebp
push 0x54bd58
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, 1
call fcn.0052a84c
cmp byte [ebp + 8], 0
je 0x54bcf3
mov byte [ebp - 0xe], 0
lea eax, [ebp - 0x58]
xor ecx, ecx
mov edx, 0x44
call fcn.00402db4
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x2c], 1
mov word [ebp - 0x28], 5
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0x88
push 0
push 0
push 0
lea eax, [ebp - 0x70]
mov ecx, dword [ebp - 0xc]
mov edx, 0x54bd74
call fcn.004046a8
mov eax, dword [ebp - 0x70]
call fcn.0040485c
push eax
mov eax, dword [ebp - 8]
call fcn.0040485c
push eax
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x54bc86
push 0x2710
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebp - 0x60]
mov dword [0x567df0], eax
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_CloseHandle
mov byte [ebp - 0xe], 1
cmp byte [ebp - 0xe], 0
je 0x54bce1
mov byte [0x567c8d], 1
mov dl, 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x62c]
call fcn.00436c40
xor eax, eax
mov dword [0x567ca4], eax
push 0xc8
call sub.kernel32.dll_Sleep_1
inc dword [0x567ca4]
mov eax, dword [0x5650b0]
mov eax, dword [eax]
call fcn.0047aba8
cmp byte [0x567c8d], 0
je 0x54bce1
cmp byte [0x567c8c], 0
je 0x54bce1
cmp dword [0x567ca4], 0x32
jne 0x54bcaa
xor edx, edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x62c]
call fcn.00436c40
jmp 0x54bd23
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 8]
call fcn.0040a1a0
mov eax, dword [ebp - 0x74]
push eax
push 0
push 1
lea eax, [ebp - 0xf]
push eax
lea eax, [ebp - 0x14]
push eax
mov cl, 1
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00533ea0
test al, al
je 0x54bd23
mov byte [ebp - 0xe], 1
xor eax, eax
call fcn.0052a84c
mov al, byte [ebp - 0xe]
mov byte [ebp - 0xd], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54bd5f
lea eax, [ebp - 0x74]
mov edx, 3
call fcn.004043b0
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004043b0
ret
Function at 0x54bd78
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec8
xor edx, edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040484c
xor eax, eax
push ebp
push 0x54be5f
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, 2
call fcn.004f3310
mov dword [ebp - 8], eax
mov dword [ebp - 0x134], 0x128
lea edx, [ebp - 0x134]
mov eax, dword [ebp - 8]
call fcn.004f3330
test eax, eax
je 0x54be35
lea eax, [ebp - 0x138]
lea edx, [ebp - 0x110]
mov ecx, 0x104
call fcn.0040460c
mov edx, dword [ebp - 0x138]
mov eax, dword [ebp - 4]
call fcn.004047a8
jne 0x54be23
mov eax, dword [ebp - 0x12c]
push eax
push 0xffffffffffffffff
push 1
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x54be1a
push 0x103
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
lea edx, [ebp - 0x134]
mov eax, dword [ebp - 8]
call fcn.004f3350
test eax, eax
jne 0x54bdcd
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54be66
lea eax, [ebp - 0x138]
call fcn.0040438c
lea eax, [ebp - 4]
call fcn.0040438c
ret
Function at 0x559294
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
xor edx, edx
mov dword [ebp - 0x124], edx
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x11c], edx
mov dword [ebp - 0x118], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040484c
xor eax, eax
push ebp
push 0x5594a0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5650b0]
mov eax, dword [eax]
call fcn.0047aba8
cmp byte [0x567c8c], 0
je 0x55946a
push 0
call sub.ole32.dll_CoInitialize
xor eax, eax
push ebp
push 0x559463
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0x118]
mov edx, dword [ebp - 4]
call fcn.00404c50
mov eax, dword [ebp - 0x118]
call fcn.00404ccc
push eax
mov eax, dword [0x567b5c]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
test eax, eax
jne 0x559450
push 4
push 0x567cb0
push 0x104
lea eax, [ebp - 0x114]
push eax
mov eax, dword [0x567b64]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
lea eax, [ebp - 0x11c]
lea edx, [ebp - 0x114]
mov ecx, 0x104
call fcn.0040460c
mov eax, dword [ebp - 0x11c]
lea edx, [ebp - 8]
call fcn.005294e4
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.0040a10c
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.0040a1d8
mov eax, dword [ebp - 8]
call fcn.0040465c
test eax, eax
je 0x559450
mov edx, dword [ebp - 8]
mov eax, 0x5594b4
call fcn.004049a0
test eax, eax
jg 0x559450
lea eax, [ebp - 0x120]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.004048bc
mov eax, dword [ebp - 0x120]
mov edx, 0x5594c0
call fcn.004047a8
je 0x559450
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
cmp al, 0x50
ja 0x559450
mov eax, dword [ebp - 0xc]
call fcn.0040485c
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
je 0x559409
mov eax, dword [ebp - 0xc]
mov edx, 0x5594cc
call fcn.004047a8
jne 0x559443
lea edx, [ebp - 0x124]
mov eax, dword [ebp - 8]
call fcn.00408f24
mov edx, dword [ebp - 0x124]
mov eax, 0x5594d8
call fcn.004049a0
test eax, eax
jg 0x559450
mov eax, dword [ebp - 8]
call fcn.004f35ac
test al, al
jne 0x559450
mov eax, dword [ebp - 8]
call fcn.00409db4
test al, al
jne 0x559450
mov edx, dword [ebp - 4]
mov eax, dword [0x567c48]
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55946a
call sub.ole32.dll_CoUninitialize
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5594a7
lea eax, [ebp - 0x124]
mov edx, 3
call fcn.004043b0
lea eax, [ebp - 0x118]
call fcn.00404a7c
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.004043b0
ret
Function at 0x55d27c
Capabilities:
Create process on windows
Persist via run registry key
Schedule task via schtasks

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x55d3c0
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x5650dc]
mov edx, dword [edx]
lea eax, [ebp - 8]
mov ecx, 0x55d3d4
call fcn.004046a8
cmp byte [ebp - 1], 1
jne 0x55d33a
push 0x55d3e8
push dword [ebp - 8]
push 0x55d420
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040471c
mov eax, dword [0x5651d8]
cmp dword [eax], 6
jge 0x55d314
push 0
mov ecx, 0x55d448
mov edx, 0x55d460
mov eax, 0x80000001
call fcn.005271ac
test al, al
jne 0x55d3a5
mov eax, dword [ebp - 8]
push eax
mov edx, 0x55d460
mov ecx, 0x55d448
mov eax, 0x80000001
call fcn.00526e0c
jmp 0x55d3a5
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.0040485c
push eax
push 0x55d490
push 0
mov eax, dword [0x5650b0]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_ShellExecuteA
jmp 0x55d3a5
lea eax, [ebp - 0xc]
mov edx, 0x55d4a4
call fcn.00404424
mov eax, dword [0x5651d8]
cmp dword [eax], 6
jge 0x55d381
push 0
mov edx, 0x55d460
mov ecx, 0x55d448
mov eax, 0x80000001
call fcn.005271ac
test al, al
je 0x55d3a5
mov edx, 0x55d460
mov ecx, 0x55d448
mov eax, 0x80000001
call fcn.00527444
jmp 0x55d3a5
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.0040485c
push eax
push 0x55d490
push 0
mov eax, dword [0x5650b0]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55d3c7
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004043b0
ret
Function at 0x16a59f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.FKP1
lea edi, [esi - 0x1272000]
push edi
or ebp, 0xffffffff
jmp 0x16a5a12
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x16a5a19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a5a08
mov eax, 1
add ebx, ebx
jne 0x16a5a2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x16a5a3c
jne 0x16a5a5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a5a5b
dec eax
add ebx, ebx
jne 0x16a5a48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x16a5a20
add ebx, ebx
jne 0x16a5a57
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x16a5aad
xor ecx, ecx
sub eax, 3
jb 0x16a5a73
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x16a5ae2
sar eax, 1
mov ebp, eax
jmp 0x16a5a7e
add ebx, ebx
jne 0x16a5a7e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a5a4c
inc ecx
add ebx, ebx
jne 0x16a5a8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a5a4c
add ebx, ebx
jne 0x16a5a99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x16a5a8e
jne 0x16a5aaa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x16a5a8e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x16a5acc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x16a5abe
jmp 0x16a5a0e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x16a5acc
add edi, ecx
jmp 0x16a5a0e
pop esi
mov edi, esi
mov ecx, 0x34f3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x16a5aea
cmp byte [edi], 0x16
jne 0x16a5aea
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 0x16a5aef
lea edi, [esi + 0x12a2000]
mov eax, dword [edi]
or eax, eax
je 0x16a5b5e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12a67a0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12a6890]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x16a5b1c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12a6894]
or eax, eax
je 0x16a5b58
mov dword [ebx], eax
add ebx, 4
jmp 0x16a5b39
call dword [esi + 0x12a68a4]
mov ebp, dword [esi + 0x12a6898]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x16a5b92
sub esp, 0xffffff80
jmp 0x46c1ac

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret
Function at 0xcaa370
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 0xcaa38e
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 0xcd3074
push ecx
mov edi, eax
call fcn.00cbe198
mov esi, eax
add esp, 8
test esi, esi
jne 0xcaa3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00cbe02e
push esi
call fcn.00cbdfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xcad850
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 0xcad8ae
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 0xcd8720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xcad8ba
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.00cbe1e1
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 0xcad8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xcd8720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xcad92a
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.00cbf082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xcad957
mov word [eax], si
add eax, 2
push eax
call fcn.00cbf030
add esp, 4
jmp 0xcad959
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 0xcad8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xcad8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xcae0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xcd3458
push ecx
call fcn.00cbe1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00cbe1e1
add esp, 0x10
jmp 0xcae0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00cbe20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00cbddff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00cae050
mov eax, dword [0xcd8728]
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 0xcae13b
push esi
call fcn.00cadfb0
add esp, 4
mov dword [0xcd8728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xcae14c
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.00cadff0
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 0xcb1440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xcb14b7
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 0xcb148e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xcb1471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xcb147e
add edx, ecx
cmp ebx, edx
jb 0xcb148a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xcb1467
xor ecx, ecx
jmp 0xcb14a2
test eax, eax
jne 0xcb1492
xor ecx, ecx
jmp 0xcb14a2
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.00cb13c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xcb18f0
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 0xcb1921
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 0xcb1946
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 0xcb196e
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 0xcb1993
push ecx
push esi
call fcn.00cb14c0
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 0xcb2c00
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 0xcb2c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xcb2c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xcb2c38
add edx, eax
cmp ebx, edx
jb 0xcb2c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xcb2c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xcb2c50
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 0xcb2c70
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 0xcb2cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xcb2c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xcb2ca8
add edx, ecx
cmp ebx, edx
jb 0xcb2cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xcb2c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xcb2f60
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.00cbf145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xcb2ffb
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 0xcb2fdd
lea eax, [esp + 0x18]
push eax
jmp 0xcb2fe2
push 0xcd8720
call fcn.00cbefd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xcb2fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xcb2f40
push 4
push ecx
push eax
call fcn.00cbf43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xcb3310
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.00cbf145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xcb33ab
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 0xcb338d
lea eax, [esp + 0x18]
push eax
jmp 0xcb3392
push 0xcd8720
call fcn.00cbefd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xcb3360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xcb2f40
push 4
push ecx
push eax
call fcn.00cbf43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xcb4f20
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 0xcb4fd7
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 0xcb4fcf
push ebx
push edi
push 0xcd8770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0xcb4fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0xcd8770
push esi
call ebx
test eax, eax
je 0xcb4fae
mov ebp, 3
cmp dword [0xcd8774], ebp
jne 0xcb4faa
push 0x3e8
call edi
push 0xcd8770
push esi
call ebx
test eax, eax
jne 0xcb4f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0xcb4fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0xcb4fbb
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