joyce8/EMBER2024-capa huggingface dataset:
Function at 0x447060
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
mov esi, dword [eax*4 + 0x497f60]
mov edi, esi
mov dword [esp + 0xc], esi
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x447088
sub edi, ecx
mov eax, edi
shr eax, 5
inc eax
mov ebx, edi
mov dword [esp + 0x14], edi
mov ecx, edi
cmp edi, eax
jb 0x4470c6
movzx edx, byte [esi + ecx - 1]
mov esi, ebx
shl esi, 5
add edx, esi
mov esi, ebx
shr esi, 2
add edx, esi
mov esi, dword [esp + 0xc]
sub ecx, eax
xor ebx, edx
cmp ecx, eax
jae 0x4470a3
mov dword [esp + 0x14], ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 8]
mov edx, dword [eax]
dec ecx
and ecx, ebx
mov edx, dword [edx + ecx*4]
test edx, edx
je 0x447152
jmp 0x4470e0
cmp dword [edx + 0xc], edi
jne 0x44714c
test edi, edi
je 0x4470ef
test byte [edx + 7], 0x10
jne 0x44714c
mov eax, edi
lea ecx, [edx + 0x10]
cmp edi, 4
jb 0x447114
lea esp, [esp]
mov ebx, dword [esi]
cmp ebx, dword [ecx]
jne 0x447144
sub eax, 4
add ecx, 4
add esi, 4
cmp eax, 4
jae 0x447100
test eax, eax
je 0x4471c3
mov bl, byte [ecx]
cmp bl, byte [esi]
jne 0x447144
cmp eax, 1
jbe 0x4471c3
mov bl, byte [ecx + 1]
cmp bl, byte [esi + 1]
jne 0x447144
cmp eax, 2
jbe 0x4471c3
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
je 0x4471c3
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
mov edx, dword [edx]
test edx, edx
jne 0x4470e0
mov edx, dword [ebp + 8]
push ebx
push edi
push esi
push edx
call fcn.00446660
add esp, 0x10
mov ecx, dword [esp + 0x10]
or byte [eax + 5], 0x20
lea edx, [ecx + 1]
inc ecx
mov byte [eax + 6], dl
mov dword [esp + 0x10], ecx
cmp ecx, 0x20
jl 0x447074
mov ecx, dword [0x498060]
test ecx, ecx
je 0x4471bc
mov esi, 0x498060
mov bl, 0x2e
mov edi, edi
mov eax, ecx
add esi, 4
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x447198
sub eax, edi
push eax
mov eax, dword [ebp + 8]
push ecx
push eax
call fcn.00446730
or byte [eax + 5], 0x20
mov byte [eax + 6], bl
mov ecx, dword [esi]
add esp, 0xc
test ecx, ecx
jne 0x447190
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov al, byte [edx + 5]
mov esi, dword [esi + 0x10]
movzx ebx, byte [esi + 0x14]
movzx ecx, al
and ecx, 3
not ebx
test bl, cl
je 0x4471e1
xor al, 3
mov byte [edx + 5], al
mov eax, edx
jmp 0x447161
Function at 0x45c570
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x4af9fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x41c], ecx
lea ecx, [ebp - 0x40c]
push edi
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x418], ecx
mov dword [ebp - 0x414], 0
mov edi, 0x400
jmp 0x45c5c6
mov eax, dword [ebp - 0x410]
lea edx, [ebp - 0x40c]
sub ecx, edx
mov dword [ebp - 0x424], ecx
je 0x45c630
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0x48]
mov esi, eax
cmp edx, dword [ecx + 0x44]
jb 0x45c5e8
call fcn.00436b60
mov eax, dword [ebp - 0x424]
mov ebx, dword [esi + 8]
push eax
lea ecx, [ebp - 0x40c]
push ecx
push esi
call fcn.00446730
mov dword [ebx], eax
mov dword [ebx + 8], 4
add dword [esi + 8], 0x10
inc dword [ebp - 0x414]
lea eax, [ebp - 0x418]
add esp, 0xc
lea edx, [ebp - 0x40c]
push eax
mov dword [ebp - 0x418], edx
call fcn.00423d80
add esp, 4
mov ebx, dword [ebp + 0xc]
cmp edi, ebx
jbe 0x45c639
mov edi, ebx
mov ecx, dword [ebp - 0x41c]
push ecx
push edi
lea edx, [ebp - 0x40c]
push 1
push edx
call fcn.00472ceb
mov ecx, dword [ebp - 0x418]
add ecx, eax
add esp, 0x10
sub ebx, eax
mov dword [ebp - 0x418], ecx
mov dword [ebp + 0xc], ebx
je 0x45c66f
cmp eax, edi
je 0x45c5c0
lea eax, [ebp - 0x40c]
sub ecx, eax
mov edi, ecx
je 0x45c6c9
mov eax, dword [ebp - 0x410]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0x48]
mov esi, eax
cmp edx, dword [ecx + 0x44]
jb 0x45c693
call fcn.00436b60
mov ebx, dword [esi + 8]
push edi
lea eax, [ebp - 0x40c]
push eax
push esi
call fcn.00446730
mov dword [ebx], eax
mov dword [ebx + 8], 4
add dword [esi + 8], 0x10
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 0x40c]
add esp, 0xc
inc dword [ebp - 0x414]
mov dword [ebp - 0x418], ecx
mov eax, dword [ebp - 0x414]
mov esi, dword [ebp - 0x410]
call fcn.004209c0
mov dword [ebp - 0x414], 1
test ebx, ebx
je 0x45c746
mov edi, dword [ebp - 0x420]
mov esi, dword [edi + 8]
mov eax, dword [esi - 8]
sub esi, 0x10
add eax, 0xfffffffd
cmp eax, 4
ja case.0x45c6ff.6
jmp dword [eax*4 + 0x45c75c]
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
jmp 0x45c72f
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
jmp 0x45c72f
mov eax, dword [esi]
call fcn.00435040
jmp 0x45c72f
call fcn.00436d90
test eax, eax
je 0x45c72d
mov ecx, dword [esi]
mov eax, dword [ecx + 0xc]
jmp 0x45c72f
xor eax, eax
test eax, eax
jne 0x45c746
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d6a1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0046d6a1
mov esp, ebp
pop ebp
ret
Function at 0x4603a0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
movzx ecx, word [eax + 0x14]
mov edx, dword [edi + 0x40]
mov esi, dword [ecx + eax + 0x20]
dec edx
lea ecx, [ecx + eax + 0x18]
not edx
and edx, esi
mov dword [ebp - 0x1c], esi
mov esi, dword [ecx + 0x10]
mov dword [ebp - 0x18], edx
test esi, esi
jne 0x4603e3
mov ebx, dword [ecx + 0x24]
test bl, 0x40
je 0x4603dc
mov esi, dword [eax + 0x20]
jmp 0x4603e3
test bl, bl
jns 0x4603e3
mov esi, dword [eax + 0x24]
mov dword [ebp - 0x14], esi
mov esi, dword [ecx + 0x24]
mov dword [ebp - 0x10], esi
mov esi, 1
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 1
cmp si, word [eax + 6]
jae 0x4604b0
lea ebx, [ecx + 0x4c]
lea esp, [esp]
mov esi, dword [edi + 0x40]
mov ecx, dword [ebx - 0x1c]
mov edi, dword [ebx - 0x14]
dec esi
not esi
and esi, ecx
mov dword [ebp - 4], ecx
test edi, edi
jne 0x460438
mov ecx, dword [ebx]
test cl, 0x40
je 0x460431
mov edi, dword [eax + 0x20]
jmp 0x460438
test cl, cl
jns 0x460438
mov edi, dword [eax + 0x24]
cmp edx, esi
je 0x460467
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x1c]
cmp eax, esi
ja 0x460467
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.004602f0
test eax, eax
je 0x4604ce
mov edx, dword [ebp - 4]
mov eax, dword [ebx]
mov dword [ebp - 0x1c], edx
mov edx, esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], eax
jmp 0x46048f
mov eax, dword [ebx]
test eax, 0x2000000
je 0x46047e
test dword [ebp - 0x10], 0x2000000
je 0x46047e
or dword [ebp - 0x10], eax
jmp 0x460489
or eax, dword [ebp - 0x10]
and eax, 0xfdffffff
mov dword [ebp - 0x10], eax
sub edi, dword [ebp - 0x1c]
add edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
movzx esi, word [eax + 6]
inc ecx
add ebx, 0x28
mov dword [ebp - 0x14], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 8], ecx
cmp ecx, esi
jl 0x460410
lea ecx, [ebp - 0x1c]
mov eax, edi
mov dword [ebp - 0xc], 1
call fcn.004602f0
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46d6a1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4af9fc]
jne 0x46d6ab
repz ret
jmp fcn.00476fcc

Function at 0x470c36
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x470c5d
call fcn.004714fb
mov dword [eax], esi
call fcn.004714e8
push 0x16
pop esi
mov dword [eax], esi
call fcn.00470ed0
mov eax, esi
jmp 0x470cb2
test dword [ebp + 0xc], 0xfffffff9
jne 0x470c43
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x470c8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0047150e
pop ecx
call fcn.004714e8
mov eax, dword [eax]
jmp 0x470cb2
test al, 0x10
jne 0x470cb0
test al, 1
je 0x470cb0
test byte [ebp + 0xc], 2
je 0x470cb0
call fcn.004714fb
mov dword [eax], 5
call fcn.004714e8
mov dword [eax], 0xd
jmp 0x470c81
xor eax, eax
pop esi
pop ebp
ret

Function at 0x480bf8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x480c1f
call fcn.004714fb
mov dword [eax], esi
call fcn.004714e8
push 0x16
pop esi
mov dword [eax], esi
call fcn.00470ed0
mov eax, esi
jmp 0x480c74
test dword [ebp + 0xc], 0xfffffff9
jne 0x480c05
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x480c4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0047150e
pop ecx
call fcn.004714e8
mov eax, dword [eax]
jmp 0x480c74
test al, 0x10
jne 0x480c72
test al, 1
je 0x480c72
test byte [ebp + 0xc], 2
je 0x480c72
call fcn.004714fb
mov dword [eax], 5
call fcn.004714e8
mov dword [eax], 0xd
jmp 0x480c43
xor eax, eax
pop esi
pop ebp
ret
Function at 0x486cb7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4af9fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00479886
and dword [ebp - 0x14], 0
cmp dword [0x4b230c], 0
mov dword [ebp - 0x18], eax
jne 0x486d6a
push 0x496bc4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x486e12
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x496bb8
push ebx
call edi
test eax, eax
je 0x486e12
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x496ba8
push ebx
mov dword [0x4b230c], eax
call edi
push eax
call esi
push 0x496b94
push ebx
mov dword [0x4b2310], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4b2314], eax
call edi
push eax
call esi
mov dword [0x4b231c], eax
test eax, eax
je 0x486d6a
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4b2318], eax
mov eax, dword [0x4b2318]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x486dc3
cmp dword [0x4b231c], ecx
je 0x486dc3
push eax
call esi
push dword [0x4b231c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x486dc3
test ebx, ebx
je 0x486dc3
call edi
test eax, eax
je 0x486dba
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x486dba
test byte [ebp - 8], 1
jne 0x486dc3
or dword [ebp + 0x10], 0x200000
jmp 0x486df6
mov eax, dword [0x4b2310]
cmp eax, dword [ebp - 0x18]
je 0x486df6
push eax
call esi
test eax, eax
je 0x486df6
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x486df6
mov eax, dword [0x4b2314]
cmp eax, dword [ebp - 0x18]
je 0x486df6
push eax
call esi
test eax, eax
je 0x486df6
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4b230c]
call esi
test eax, eax
je 0x486e12
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x486e14
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046d6a1
leave
ret
Function at 0xf9d370
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 0xf9d38e
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 0xfc6074
push ecx
mov edi, eax
call fcn.00fb1198
mov esi, eax
add esp, 8
test esi, esi
jne 0xf9d3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00fb102e
push esi
call fcn.00fb0fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xfa0850
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 0xfa08ae
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 0xfcb720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xfa08ba
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.00fb11e1
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 0xfa08ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xfcb720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xfa092a
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.00fb2082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xfa0957
mov word [eax], si
add eax, 2
push eax
call fcn.00fb2030
add esp, 4
jmp 0xfa0959
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 0xfa08ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xfa08b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xfa10c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xfc6458
push ecx
call fcn.00fb11e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00fb11e1
add esp, 0x10
jmp 0xfa10d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00fb120b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00fb0dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00fa1050
mov eax, dword [0xfcb728]
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 0xfa113b
push esi
call fcn.00fa0fb0
add esp, 4
mov dword [0xfcb728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xfa114c
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.00fa0ff0
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 0xfa4440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xfa44b7
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 0xfa448e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xfa4471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xfa447e
add edx, ecx
cmp ebx, edx
jb 0xfa448a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xfa4467
xor ecx, ecx
jmp 0xfa44a2
test eax, eax
jne 0xfa4492
xor ecx, ecx
jmp 0xfa44a2
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.00fa43c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xfa48f0
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 0xfa4921
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 0xfa4946
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 0xfa496e
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 0xfa4993
push ecx
push esi
call fcn.00fa44c0
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 0xfa5c00
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 0xfa5c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xfa5c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xfa5c38
add edx, eax
cmp ebx, edx
jb 0xfa5c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xfa5c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xfa5c50
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 0xfa5c70
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 0xfa5cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xfa5c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xfa5ca8
add edx, ecx
cmp ebx, edx
jb 0xfa5cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xfa5c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xfa5f60
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.00fb2145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xfa5ffb
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 0xfa5fdd
lea eax, [esp + 0x18]
push eax
jmp 0xfa5fe2
push 0xfcb720
call fcn.00fb1fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xfa5fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xfa5f40
push 4
push ecx
push eax
call fcn.00fb243f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xfa6310
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.00fb2145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xfa63ab
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 0xfa638d
lea eax, [esp + 0x18]
push eax
jmp 0xfa6392
push 0xfcb720
call fcn.00fb1fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xfa6360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xfa5f40
push 4
push ecx
push eax
call fcn.00fb243f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xfa7f20
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 0xfa7fd7
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 0xfa7fcf
push ebx
push edi
push 0xfcb770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0xfa7fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0xfcb770
push esi
call ebx
test eax, eax
je 0xfa7fae
mov ebp, 3
cmp dword [0xfcb774], ebp
jne 0xfa7faa
push 0x3e8
call edi
push 0xfcb770
push esi
call ebx
test eax, eax
jne 0xfa7f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0xfa7fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0xfa7fbb
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