joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1024e4d4
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x98
call fcn.10001075
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x24], ecx
je 0x1024e5a2
jmp 0x1024e587
lea eax, [esp + 0x28]
mov dword [esp], eax
call fcn.1024e1dc
lea ecx, [0x1024ee77]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x60], edx
mov dword [esp + 0x74], 0x124600
mov edx, dword [0x1025e288]
mov dword [esp + 0x3c], edx
mov edx, dword [0x1025e28c]
mov dword [esp + 0x68], edx
mov dword [0x1025e2a0], 0x1cfb
mov edx, dword [0x1025e290]
mov dword [esp + 0x78], edx
mov edx, dword [0x1025e294]
mov dword [esp + 0x84], edx
mov edx, dword [0x1025e298]
mov dword [esp + 0x7c], edx
mov dword [0x1025e29c], 0x3721
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
jmp 0x1024e591
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x14], ecx
je 0x1024e5e0
jmp 0x1024e5cc
mov eax, dword [esp + 0x24]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov eax, dword [esp + 0x1c]
cmp word [eax], 0x5a4d
mov dword [esp + 0x18], eax
je 0x1024e571
jmp 0x1024e5cc
lea eax, [esp + 0x38]
mov dword [0x1025e29c], 0x1c88
mov dword [esp + 0x10], eax
call fcn.1024eba2
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0xc], ecx
je 0x1024e4fc
jmp 0x1024e63d
mov eax, dword [esp + 0x18]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x1c], eax
jmp 0x1024e591
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x8c], ecx
mov edx, dword [esp + 0x14]
mov esi, dword [ecx + edx + 0x50]
mov dword [esp + 0x54], esi
mov dword [0x1025e29c], 0x287
mov esi, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.1024f1b6
mov ecx, dword [0x1025e29c]
add ecx, 0x1596
mov dword [0x1025e29c], ecx
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x24], eax
jmp 0x1024e587
Function at 0x1024e91d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov eax, dword [ebp + 8]
mov dword [0x1025e29c], 0x7d3
mov dword [ebp - 0x10], eax
call fcn.1024f355
mov ecx, eax
mov dword [0x1025e29c], 0x2094
mov edx, dword [eax + 0x3c]
mov esi, ecx
add esi, edx
cmp dword [eax + edx], 0x4550
sete bl
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x19], bl
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov dl, byte [ebp - 0x19]
test dl, 1
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
jne 0x1024e97a
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [0x1025e2a0], 0x10c6
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x18]
add ecx, dword [ecx + eax + 0x20]
mov edx, dword [ebp - 0x18]
mov esi, dword [edx + eax + 0x18]
cmp esi, 0
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], edi
je 0x1024ea3d
jmp 0x1024e9e6
mov eax, dword [ebp - 0x38]
movzx ecx, word [eax]
mov dword [0x1025e2a0], 0x552
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x28]
add edx, dword [edx + esi + 0x1c]
mov ecx, dword [edx + ecx*4]
mov dword [0x1025e29c], 0x401
mov edx, dword [ebp - 0x18]
add edx, ecx
mov dword [ebp - 0x34], edx
jmp 0x1024ea3d
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x28]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov esi, dword [ebp - 0x2c]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
mov ecx, eax
mov edx, dword [ebp - 0x48]
add ecx, edx
mov esi, dword [ebp - 0x18]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x51], bh
mov byte [ebp - 0x52], cl
je 0x1024ea70
jmp 0x1024ea48
mov eax, dword [ebp - 0x34]
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x50]
add eax, 1
mov cl, byte [ebp - 0x51]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x52]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x4c], eax
jne 0x1024ea12
mov al, byte [ebp - 0x52]
test al, 1
jne 0x1024e9b5
jmp 0x1024ea7d
xor eax, eax
mov ecx, dword [ebp - 0x38]
add ecx, 2
mov edx, dword [ebp - 0x44]
add edx, 1
mov esi, dword [ebp - 0x30]
cmp edx, esi
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x34], eax
jb 0x1024e9f8
jmp 0x1024ea3d
Function at 0x1024eba2
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x2c
mov dword [ebp - 8], 0
mov dword [0x1025e29c], 0xbee
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov ecx, 0x26f4
xor edx, edx
mov dword [0x1025e29c], 0x26f4
mov esi, dword [ebp - 8]
mov esi, dword [esi + 0x10]
mov esi, dword [esi + 0x3c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jmp 0x1024ec2e
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffc2c
mov dword [0x1025e29c], eax
mov ecx, dword [ebp - 0x20]
add ecx, 1
cmp ecx, 0x104
mov edx, ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], ecx
jl 0x1024ec2e
jmp 0x1024ec66
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x1024ecb6
jmp 0x1024ece0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
cmp word [edx + eax*2], 0
mov esi, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x24], esi
je 0x1024ec66
jmp 0x1024ebeb
mov eax, dword [ebp - 0x2c]
add esp, 0x2c
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x14], 0x64
je 0x1024ec16
jmp 0x1024ece0
mov eax, dword [ebp - 0x24]
mov dword [0x1025e29c], 0x1599
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x28], eax
jne 0x1024ece0
mov dword [0x1025e29c], 0x1581
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x1024ece0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x28]
mov dx, word [eax + ecx*2 - 0x16]
mov word [ebp - 0x2e], dx
mov ax, word [ebp - 0x2e]
cmp ax, 0x61
je 0x1024ec55
jmp 0x1024ece0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x1024ece0
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x28]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x2c], eax
je 0x1024ec4c
xor eax, eax
mov dword [ebp - 0x2c], eax
jmp 0x1024ec4c
Function at 0x1024eed4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x1025e29c], 0x545
mov dword [0x1025e2a4], 0
mov dword [0x1025e2a8], 0
mov dword [0x1025e2b4], 0
mov ebx, dword [0x1025e2a0]
add ebx, 0x1628
mov dword [0x1025e2a0], ebx
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
je 0x1024f04d
jmp 0x1024ef67
mov eax, dword [0x1025e2a4]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x1025e2a8]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add ecx, 1
mov dword [ebp - 0x34], eax
mov eax, ecx
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x1025e2a4], edx
mov ecx, dword [ebp - 0x20]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x38]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x3c], edx
cdq
idiv esi
mov dword [0x1025e2a8], edx
mov dword [0x1025e29c], 0x1d10
mov esi, dword [ebp - 0x3c]
mov cl, byte [ecx + esi]
mov byte [0x1025e2ac], cl
mov dword [0x1025e2a0], 0x609
mov edi, dword [ebp - 0x20]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov edx, dword [0x1025e2a0]
add edx, 0x19b1
mov dword [0x1025e29c], edx
mov cl, byte [0x1025e2ac]
mov edx, dword [0x1025e2a8]
mov byte [edi + edx], cl
mov edx, dword [0x1025e2a4]
movzx edx, byte [edi + edx]
mov ebx, dword [0x1025e2a8]
movzx ebx, byte [edi + ebx]
add ebx, edx
and ebx, 0xff
mov dword [0x1025e2b4], ebx
mov edx, dword [0x1025e29c]
add edx, 0x223a
mov dword [0x1025e2a0], edx
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x34]
mov cl, byte [edx + ecx]
xor cl, byte [edi + ebx]
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x34]
mov byte [ebx + edx], cl
add edx, 1
mov ecx, dword [ebp - 0x10]
cmp edx, ecx
mov dword [ebp - 0x30], edx
jne 0x1024ef4b
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1024f1b6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x54
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x1025e29c], 0x132c
mov esi, dword [0x1025e2a0]
mov edi, esi
add edi, 0xdd7c
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], edx
jmp 0x1024f28c
mov eax, dword [ebp - 0x40]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], ecx
mov dword [ebp - 0x44], eax
call fcn.1024f091
xor eax, eax
mov ecx, dword [ebp - 0x44]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xc0
mov dword [ecx + 0xc0], 0x4550
add ecx, 0xffc00000
mov dword [0x1025e29c], 0x528
mov edx, dword [ebp - 0x30]
mov dword [edx], ecx
mov ecx, dword [0x1025e29c]
add ecx, 0xfffff810
mov dword [0x1025e29c], ecx
mov ecx, dword [ebp - 0x44]
mov dword [edx + 0x34], ecx
mov dword [0x1025e2a0], 0xd26
cmp ecx, 0
mov dword [ebp - 0x48], eax
je 0x1024f31b
jmp 0x1024f306
mov eax, dword [ebp - 0x3c]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x102503d2]
mov dh, byte [eax + 0x102503a3]
sub dh, dl
mov byte [ebp + eax - 0x28], dh
cmp ecx, 0xe
mov dword [ebp - 0x3c], ecx
jne 0x1024f28c
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x38]
add ecx, 0xd1ca
mov edx, dword [ebp - 0x34]
mov dword [0x1025e2a0], edx
mov dword [0x1025e29c], ecx
mov dword [ebp - 0x4c], eax
call fcn.1024eaa7
mov dword [esp], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp + 4], eax
call fcn.1024e64a
xor ecx, ecx
mov dword [0x1025e2a0], 0x123
cmp eax, 0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x48], ecx
je 0x1024f31b
jmp 0x1024f1f2
mov eax, dword [ebp - 0x44]
add eax, 0x1395
mov dword [0x1025e29c], 0x1421
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
add esp, 0x54
pop esi
pop edi
pop ebp
ret
Function at 0x1024f4c9
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x1025e2a8], 0
mov byte [0x1025e2ac], 0
mov dword [0x1025e2a0], 0x608
mov dword [0x1025e2a4], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x1024f5c5
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov edx, 0x1877
mov esi, 0x100
mov dword [0x1025e2b0], 0
mov edi, dword [0x1025e2a8]
mov ebx, dword [ebp - 0x18]
movzx ebx, byte [ebx + eax]
add ebx, edi
mov dword [ebp - 0x28], eax
xor edi, edi
mov dword [ebp - 0x2c], edx
mov edx, edi
mov edi, dword [ebp - 0x10]
div edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add ebx, edx
mov dword [0x1025e2b0], ebx
mov dword [0x1025e29c], ecx
mov eax, ebx
cdq
idiv esi
mov dword [0x1025e2a8], edx
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x28]
mov cl, byte [ecx + esi]
mov byte [0x1025e2ac], cl
mov ebx, dword [ebp - 0x18]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x1025e2ac]
mov edx, dword [0x1025e2a8]
mov byte [ebx + edx], cl
mov dword [0x1025e29c], 0x2706
mov edx, dword [0x1025e2a4]
add edx, 1
mov dword [0x1025e2a4], edx
cmp edx, 0x100
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
jl 0x1024f513
jmp 0x1024f5ed
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x1025e2a4]
add eax, 1
mov dword [0x1025e2a4], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1024f5c5
jmp 0x1024f5ff
mov dword [0x1025e2a0], 0xe07
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov dword [0x1025e2a4], 0
mov ecx, dword [0x1025e29c]
add ecx, 0xfffff171
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
jmp 0x1024f513
Function at 0xbfb370
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 0xbfb38e
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 0xc24074
push ecx
mov edi, eax
call fcn.00c0f198
mov esi, eax
add esp, 8
test esi, esi
jne 0xbfb3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00c0f02e
push esi
call fcn.00c0efb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xbfe850
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 0xbfe8ae
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 0xc29720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xbfe8ba
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.00c0f1e1
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 0xbfe8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xc29720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xbfe92a
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.00c10082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xbfe957
mov word [eax], si
add eax, 2
push eax
call fcn.00c10030
add esp, 4
jmp 0xbfe959
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 0xbfe8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xbfe8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xbff0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xc24458
push ecx
call fcn.00c0f1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00c0f1e1
add esp, 0x10
jmp 0xbff0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00c0f20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00c0edff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00bff050
mov eax, dword [0xc29728]
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 0xbff13b
push esi
call fcn.00bfefb0
add esp, 4
mov dword [0xc29728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xbff14c
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.00bfeff0
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 0xc02440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xc024b7
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 0xc0248e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xc02471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xc0247e
add edx, ecx
cmp ebx, edx
jb 0xc0248a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xc02467
xor ecx, ecx
jmp 0xc024a2
test eax, eax
jne 0xc02492
xor ecx, ecx
jmp 0xc024a2
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.00c023c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xc028f0
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 0xc02921
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 0xc02946
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 0xc0296e
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 0xc02993
push ecx
push esi
call fcn.00c024c0
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 0xc03c00
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 0xc03c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xc03c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xc03c38
add edx, eax
cmp ebx, edx
jb 0xc03c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xc03c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xc03c50
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 0xc03c70
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 0xc03cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xc03c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xc03ca8
add edx, ecx
cmp ebx, edx
jb 0xc03cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xc03c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xc03f60
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.00c10145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xc03ffb
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 0xc03fdd
lea eax, [esp + 0x18]
push eax
jmp 0xc03fe2
push 0xc29720
call fcn.00c0ffd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xc03fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xc03f40
push 4
push ecx
push eax
call fcn.00c1043f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xc04310
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.00c10145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xc043ab
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 0xc0438d
lea eax, [esp + 0x18]
push eax
jmp 0xc04392
push 0xc29720
call fcn.00c0ffd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xc04360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xc03f40
push 4
push ecx
push eax
call fcn.00c1043f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xc05f20
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 0xc05fd7
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 0xc05fcf
push ebx
push edi
push 0xc29770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0xc05fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0xc29770
push esi
call ebx
test eax, eax
je 0xc05fae
mov ebp, 3
cmp dword [0xc29774], ebp
jne 0xc05faa
push 0x3e8
call edi
push 0xc29770
push esi
call ebx
test eax, eax
jne 0xc05f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0xc05fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0xc05fbb
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