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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, 0x4fa
push ebx
push esi
mov esi, dword [ebp + 8]
shl esi, 0x10
xor esi, dword [ebp + 8]
xor esi, 0xc0b3402e
mov eax, esi
shr eax, 0x15
push edi
cmp eax, ecx
ja 0x40687f
je 0x406878
sub eax, 0x156
je 0x406871
sub eax, 1
je 0x40686a
sub eax, 0x10d
je 0x406863
sub eax, 0x1b4
je 0x40685c
sub eax, 0x92
je 0x406855
sub eax, 0x2e
jne 0x4068aa
mov eax, 0x406692
jmp 0x4068d0
mov eax, 0x406659
jmp 0x4068d0
mov eax, 0x4066cb
jmp 0x4068d0
mov eax, 0x4069ee
jmp 0x4068d0
mov eax, 0x406943
jmp 0x4068d0
mov eax, 0x40697c
jmp 0x4068d0
mov eax, fcn.0040671b
jmp 0x4068d0
sub eax, 0x57c
je 0x4068cb
sub eax, 0x18
je 0x4068c4
sub eax, 0x3d
je 0x4068bd
sub eax, 0x56
je 0x4068b6
sub eax, 0xe2
je 0x4068af
sub eax, 0x9c
jne 0x4068aa
mov eax, 0x406a27
jmp 0x4068d0
mov eax, dword [ebp + 8]
jmp 0x4068d0
mov eax, 0x4069b5
jmp 0x4068d0
mov eax, 0x406623
jmp 0x4068d0
mov eax, 0x40674c
jmp 0x4068d0
mov eax, 0x40670f
jmp 0x4068d0
mov eax, 0x4066d7
call eax
mov edi, eax
test edi, edi
je 0x406929
mov ecx, dword [edi + 0x3c]
and esi, 0x1fffff
xor ebx, ebx
mov ecx, dword [ecx + edi + 0x78]
add ecx, edi
mov eax, dword [ecx + 0x24]
mov edx, dword [ecx + 0x20]
add eax, edi
mov dword [ebp - 8], eax
add edx, edi
mov eax, dword [ecx + 0x1c]
add eax, edi
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], eax
mov eax, dword [ecx + 0x18]
mov dword [ebp + 8], eax
test eax, eax
je 0x406929
mov eax, dword [edx + ebx*4]
add eax, edi
push eax
call fcn.004064f3
and eax, 0x1fffff
pop ecx
cmp eax, esi
je 0x406932
mov edx, dword [ebp - 4]
inc ebx
cmp ebx, dword [ebp + 8]
jb 0x40690b
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
movzx eax, word [eax + ebx*2]
mov eax, dword [ecx + eax*4]
add eax, edi
jmp 0x40692b
Function at 0x4072ba
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ac
push esi
push edi
lea eax, [ebp - 0x1ac]
push eax
push 0xe2
push 0xb
push 0x8d1
push 0x4101e0
call fcn.004056cc
add esp, 0x14
xor esi, esi
xor eax, eax
mov word [ebp - 0xca], ax
lea eax, [ebp - 0x1ac]
push esi
push esi
push esi
push esi
push eax
call dword [0x410054]
mov edi, eax
xor eax, eax
mov dword [ebp - 8], edi
test edi, edi
je 0x4074d7
mov word [ebp - 0x30], ax
xor ecx, ecx
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0x3c
push eax
push esi
push esi
push dword [ebp + 8]
inc ecx
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call dword [0x41006c]
test eax, eax
jne 0x407366
push edi
call dword [0x40fff8]
xor eax, eax
jmp 0x4074d7
mov ecx, dword [ebp - 0x38]
xor edx, edx
mov eax, dword [ebp - 0x34]
push ebx
push esi
mov word [ecx + eax*2], dx
push dword [ebp - 0x30]
push dword [ebp - 0x38]
push edi
call dword [0x410064]
mov ebx, eax
mov dword [ebp - 0xc], ebx
test ebx, ebx
jne 0x40738d
push edi
jmp 0x4073ee
mov eax, dword [ebp - 0x1c]
cmp word [eax], si
jne 0x40739b
push 0x2f
pop ecx
mov word [eax], cx
lea eax, [ebp - 0x54]
push eax
push 8
push 8
push 0x8ba
push 0x4101e0
call fcn.004056cc
add esp, 0x14
xor eax, eax
cmp dword [ebp - 0x3c], 2
mov ecx, 0x800000
mov word [ebp - 0x4c], ax
cmove eax, ecx
or eax, 0x100
push eax
push esi
push esi
push esi
push dword [ebp - 0x1c]
lea eax, [ebp - 0x54]
push eax
push ebx
call dword [0x410038]
mov ebx, eax
test ebx, ebx
jne 0x4073fb
push edi
call dword [0x40fff8]
push dword [ebp - 0xc]
call dword [0x40fff8]
xor eax, eax
jmp 0x4074d6
lea eax, [ebp - 0xc8]
mov edi, esi
push eax
push 0x72
push 0xb
push 0x76
push 0x4101e0
call fcn.004056cc
add esp, 0x14
xor eax, eax
mov word [ebp - 0x56], ax
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 0xc8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0xffffffffffffffff
push eax
push ebx
call dword [0x410090]
test eax, eax
jne 0x407469
call fcn.00404db3
cmp eax, 0x2f8f
jne 0x407465
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x13300
push eax
push 0x1f
push ebx
call dword [0x40ffc8]
test eax, eax
push 1
pop eax
cmovne edi, eax
test edi, edi
jne 0x40741d
mov eax, dword [ebp + 0x18]
push esi
push ebx
mov dword [eax], esi
call dword [0x410164]
mov edi, dword [ebp - 8]
test eax, eax
je 0x4074bd
push esi
lea eax, [ebp - 8]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], 4
push eax
push esi
push 0x20000013
push ebx
call dword [0x410074]
mov ecx, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, dword [ebp - 4]
mov dword [ecx], eax
cmp eax, 0xc8
jne 0x4074bd
push dword [ebp + 0x14]
push ebx
call fcn.004071d3
pop ecx
pop ecx
mov esi, eax
push edi
call dword [0x40fff8]
push dword [ebp - 0xc]
call dword [0x40fff8]
push ebx
call dword [0x40fff8]
mov eax, esi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40783c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x4078e0
push ebx
mov ebx, dword [ebp + 0x10]
lea ecx, [ebp - 0x44]
mov eax, ebx
sub eax, ecx
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0xc]
sub eax, ecx
push edi
mov dword [ebp - 4], eax
push dword [ebp + 8]
lea eax, [ebp - 0x44]
xor edi, edi
push eax
call fcn.00407972
mov eax, dword [ebp + 8]
pop ecx
pop ecx
add dword [eax + 0x20], 1
jne 0x407881
inc dword [eax + 0x24]
cmp esi, 0x40
jbe 0x4078b8
mov ebx, dword [ebp - 4]
mov edx, edi
mov edi, dword [ebp + 0x14]
lea ecx, [ebp - 0x44]
add ecx, edx
push 0x40
mov al, byte [ebx + ecx]
xor al, byte [ecx]
inc edx
mov byte [edi + ecx], al
pop eax
cmp edx, eax
jb 0x40788e
mov ebx, dword [ebp + 0x10]
sub esi, eax
add dword [ebp + 0x14], eax
add ebx, eax
add dword [ebp + 0xc], eax
add dword [ebp - 4], eax
mov dword [ebp + 0x10], ebx
jmp 0x407865
test esi, esi
je 0x4078de
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x44]
sub eax, ecx
sub ebx, ecx
mov dword [ebp + 0xc], eax
lea ecx, [ebp - 0x44]
add ecx, edi
mov al, byte [eax + ecx]
xor al, byte [ecx]
inc edi
mov byte [ebx + ecx], al
mov eax, dword [ebp + 0xc]
cmp edi, esi
jb 0x4078c9
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x407903
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0x100
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push esi
mov eax, dword [ecx]
mov dword [edx + 4], eax
mov eax, dword [ecx + 4]
mov dword [edx + 8], eax
mov eax, dword [ecx + 8]
mov dword [edx + 0xc], eax
mov eax, dword [ecx + 0xc]
mov dword [edx + 0x10], eax
jne 0x407937
add ecx, 0x10
mov esi, str.expand_32_byte_kexpand_16_byte_k
jmp 0x40793c
mov esi, 0x40c1d8
mov eax, dword [ecx]
mov dword [edx + 0x2c], eax
mov eax, dword [ecx + 4]
mov dword [edx + 0x30], eax
mov eax, dword [ecx + 8]
mov dword [edx + 0x34], eax
mov eax, dword [ecx + 0xc]
mov dword [edx + 0x38], eax
mov eax, dword [esi]
mov dword [edx], eax
mov eax, dword [esi + 4]
mov dword [edx + 0x14], eax
mov eax, dword [esi + 8]
mov dword [edx + 0x28], eax
mov eax, dword [esi + 0xc]
mov dword [0x410e84], esi
mov dword [edx + 0x3c], eax
pop esi
pop ebp
ret
Function at 0x408b56
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push 0x20
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
call fcn.004043fb
mov al, byte [ebp - 1]
push dword [ebp + 0x10]
and byte [ebp - 0x20], 0xf8
and al, 0x3f
or al, 0x40
mov byte [ebp - 1], al
lea eax, [ebp - 0x70]
push eax
call fcn.00408eb2
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00408578
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00408787
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.004093cc
lea eax, [ebp - 0xc8]
push eax
push dword [ebp + 8]
call fcn.00408be1
add esp, 0x40
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x409f8a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
neg ebx
push edi
mov edi, dword [ebp + 8]
sub edi, esi
mov dword [ebp + 0x14], 0xa
mov eax, dword [edi + esi]
mov ecx, dword [esi]
xor ecx, eax
and ecx, ebx
xor eax, ecx
cdq
mov dword [edi + esi], eax
mov dword [edi + esi + 4], edx
mov eax, dword [esi]
xor eax, ecx
sub dword [ebp + 0x14], 1
cdq
mov dword [esi], eax
lea esi, [esi + 8]
mov dword [esi - 4], edx
jne 0x409fa4
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x409fcf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
je 0x40a101
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
test ebx, ebx
jne 0x409ff7
test edi, edi
jne 0x40a101
mov esi, dword [ebp + 0x18]
mov eax, 0xc8
cmp esi, eax
jae 0x40a101
push eax
lea eax, [ebp - 0xcc]
push 0
push eax
call fcn.00404420
add esp, 0xc
cmp edi, esi
jb 0x40a063
mov eax, ebx
lea ecx, [ebp - 0xcc]
sub eax, ecx
mov dword [ebp - 4], eax
xor edx, edx
test esi, esi
je 0x40a048
mov edi, dword [ebp - 4]
lea ecx, [ebp - 0xcc]
add ecx, edx
mov al, byte [edi + ecx]
xor byte [ecx], al
inc edx
cmp edx, esi
jb 0x40a033
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0xcc]
push eax
call fcn.0040a10b
add dword [ebp - 4], esi
sub edi, esi
add ebx, esi
mov dword [ebp + 0x14], edi
pop ecx
cmp edi, esi
jae 0x40a02a
mov al, byte [ebp + 0x1c]
xor byte [ebp + edi - 0xcc], al
xor byte [ebp + esi - 0xcd], 0x80
test edi, edi
je 0x40a095
lea eax, [ebp - 0xcc]
sub ebx, eax
xor edx, edx
lea ecx, [ebp - 0xcc]
add ecx, edx
mov al, byte [ebx + ecx]
xor byte [ecx], al
inc edx
cmp edx, edi
jb 0x40a083
lea eax, [ebp - 0xcc]
push eax
call fcn.0040a10b
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
pop ecx
cmp edi, esi
jb 0x40a0d9
test esi, esi
je 0x40a0c1
push esi
lea ecx, [ebp - 0xcc]
push ecx
push eax
call fcn.004043fb
add esp, 0xc
lea eax, [ebp - 0xcc]
push eax
call fcn.0040a10b
mov eax, dword [ebp + 8]
add eax, esi
sub edi, esi
mov dword [ebp + 8], eax
jmp 0x40a0a7
test edi, edi
je 0x40a0ee
push edi
lea edx, [ebp - 0xcc]
push edx
push eax
call fcn.004043fb
add esp, 0xc
xor al, al
lea edi, [ebp - 0xcc]
mov ecx, 0xc8
rep stosb byte es:[edi], al
xor eax, eax
jmp 0x40a104
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x407320
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x40732f
pop dword [ebp - 0x34]
mov eax, 0x7135f963
sub eax, 0x70f58634
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x3557c
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0x10972670
add ecx, 0xef6911c9
xor esi, esi
add esi, eax
mov edi, 0x29868829
sub edi, 0x29454c65
add edi, dword [ebp - 0x34]
mov edx, 0xe3b978ab
sub edx, 0xa9bccf8f
xor dword [ebp - 0x28], ecx
mov ebx, dword [edi]
xor ebx, edx
xor dword [ebp - 0x30], eax
mov dword [esi], ebx
add esi, 0xfa9e24ff
sub esi, 0xfa9e24fb
add edi, 0x75941526
sub edi, 0x75941522
loop 0x40738b
add eax, 0x4e4c0c85
sub eax, 0x4e4b38ce
xor ebx, ebx
add ebx, eax
add eax, 0xafeaf28f
add eax, 0x50150d76
mov ecx, 0x5716991c
sub ecx, 0x56d6991c
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x4032d1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x4032e0
pop dword [ebp - 0x44]
mov eax, 0x4032e0
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x4eb27
push 0
mov eax, 0xe4f58aad
add eax, 0x1b50dd2b
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0x4c07
xor ebx, ebx
add ebx, eax
mov esi, 0xe8f48642
sub esi, 0xe8aba642
add esi, dword [ebp - 0x44]
mov edi, 0x1c0ced9e
add edi, 0xd2c7c43f
add dword [ebp - 0x10], 0x8200e2f6
mov edx, dword [esi]
add edx, edi
xor dword [ebp - 0x3c], edi
mov dword [ebx], edx
xor dword [ebp - 0x10], 0x8a4ef678
add ebx, 0xa72eae56
sub ebx, 0xa72eae52
add esi, 4
loop 0x403336
add eax, 0x122ef
mov ebx, eax
add eax, 0x1d5d76cd
sub eax, 0x1d5d76c8
mov ecx, 0x400000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x888370
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 0x88838e
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 0x8b1074
push ecx
mov edi, eax
call fcn.0089c198
mov esi, eax
add esp, 8
test esi, esi
jne 0x8883cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0089c02e
push esi
call fcn.0089bfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x88b850
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 0x88b8ae
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 0x8b6720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x88b8ba
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.0089c1e1
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 0x88b8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x8b6720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x88b92a
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.0089d082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x88b957
mov word [eax], si
add eax, 2
push eax
call fcn.0089d030
add esp, 4
jmp 0x88b959
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 0x88b8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x88b8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x88c0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x8b1458
push ecx
call fcn.0089c1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.0089c1e1
add esp, 0x10
jmp 0x88c0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0089c20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.0089bdff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.0088c050
mov eax, dword [0x8b6728]
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 0x88c13b
push esi
call fcn.0088bfb0
add esp, 4
mov dword [0x8b6728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x88c14c
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.0088bff0
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 0x88f440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x88f4b7
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 0x88f48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x88f471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x88f47e
add edx, ecx
cmp ebx, edx
jb 0x88f48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x88f467
xor ecx, ecx
jmp 0x88f4a2
test eax, eax
jne 0x88f492
xor ecx, ecx
jmp 0x88f4a2
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.0088f3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x88f8f0
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 0x88f921
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 0x88f946
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 0x88f96e
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 0x88f993
push ecx
push esi
call fcn.0088f4c0
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 0x890c00
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 0x890c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x890c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x890c38
add edx, eax
cmp ebx, edx
jb 0x890c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x890c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x890c50
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 0x890c70
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 0x890cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x890c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x890ca8
add edx, ecx
cmp ebx, edx
jb 0x890cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x890c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x890f60
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.0089d145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x890ffb
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 0x890fdd
lea eax, [esp + 0x18]
push eax
jmp 0x890fe2
push 0x8b6720
call fcn.0089cfd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x890fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x890f40
push 4
push ecx
push eax
call fcn.0089d43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x891310
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.0089d145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x8913ab
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 0x89138d
lea eax, [esp + 0x18]
push eax
jmp 0x891392
push 0x8b6720
call fcn.0089cfd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x891360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x890f40
push 4
push ecx
push eax
call fcn.0089d43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x892f20
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 0x892fd7
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 0x892fcf
push ebx
push edi
push 0x8b6770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x892fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x8b6770
push esi
call ebx
test eax, eax
je 0x892fae
mov ebp, 3
cmp dword [0x8b6774], ebp
jne 0x892faa
push 0x3e8
call edi
push 0x8b6770
push esi
call ebx
test eax, eax
jne 0x892f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x892fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x892fbb
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