joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101990c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101deae0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
push edi
mov dword [ebp - 0x14], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1019911a
push 0x10254300
call fcn.101a27f0
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp esi, 0x6400000
jbe 0x10199129
push 0x102542e0
jmp 0x101990fd
lea eax, [esi + 1]
mov dword [ebp + 8], edi
push eax
mov dword [ebp - 4], edi
call fcn.10063988
add esp, 4
lea ecx, [ebp + 8]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
push 0
push ecx
push esi
push edi
push ebx
mov byte [edi + esi], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, dword [ebp + 8]
je 0x1019916c
push edi
call fcn.100639b7
add esp, 4
push 0x102542cc
jmp 0x101990fd
mov ecx, dword [ebp - 0x14]
push 1
push edi
call fcn.101991a0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1019cd60
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x101df108
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call fcn.100d9f00
mov eax, dword [esi + 0x9c]
lea ecx, [esp + 0x10]
push eax
push ecx
push 3
mov ecx, esi
mov dword [esp + 0x34], 0
call fcn.1019e6c0
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
cmp edi, eax
jge 0x1019ce25
mov edx, dword [esp + 0x34]
push 0
push edx
call fcn.101a3e20
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
jne 0x1019cdcb
push 0x102546fc
jmp 0x1019ce1d
mov eax, dword [esp + 0x10]
lea edx, [esp + 8]
push edx
mov ecx, dword [eax + edi*4]
mov dword [esp + 0xc], 0
call fcn.101a24f0
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
push edx
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1019ce4b
mov eax, dword [esp + 8]
push eax
call fcn.100639b7
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x102546e8
call fcn.101a27f0
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.100d9f10
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 8
mov ecx, dword [esp + 8]
push ecx
call fcn.100639b7
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.100d9f10
mov ecx, dword [esp + 0x20]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x101a09a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101df8bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x1020db10]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], eax
mov ecx, dword [0x1020db10]
lea edi, [esi + 4]
mov dword [esp + 0x1c], 0
mov dword [edi], ecx
mov edx, dword [0x1020db10]
lea ebx, [esi + 8]
mov dword [ebx], edx
lea ebp, [esi + 0xc]
mov byte [esp + 0x1c], 2
mov ecx, ebp
call fcn.1019fa90
mov eax, dword [0x1020db10]
mov dword [esi + 0x20], eax
mov ecx, dword [0x1020db10]
mov dword [esi + 0x24], ecx
mov edx, dword [0x1020db10]
mov dword [esi + 0x28], edx
mov eax, dword [0x1020db10]
mov dword [esi + 0x2c], eax
mov ecx, dword [0x1020db10]
mov dword [esi + 0x30], ecx
mov edx, dword [0x1020db10]
mov dword [esi + 0x34], edx
push 0x1026c4c8
mov ecx, esi
mov byte [esp + 0x20], 9
call fcn.100cc900
push 0x1026c4c8
mov ecx, edi
call fcn.100cc900
push 0x1026c4c8
mov ecx, ebx
call fcn.100cc900
mov ecx, ebp
call fcn.1019fc80
push 0x1026c4c8
lea ecx, [esi + 0x20]
call fcn.100cc900
push 0x1026c4c8
lea ecx, [esi + 0x24]
call fcn.100cc900
push 0x1026c4c8
lea ecx, [esi + 0x28]
call fcn.100cc900
push 0x1026c4c8
lea ecx, [esi + 0x2c]
call fcn.100cc900
push 0x1026c4c8
lea ecx, [esi + 0x30]
call fcn.100cc900
push 0x1026c4c8
lea ecx, [esi + 0x34]
call fcn.100cc900
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x101a0ec0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101dfae1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x102196dc
mov ebx, dword [esi + 0x50]
xor edi, edi
test ebx, ebx
mov dword [esp + 0x18], 2
jle 0x101a0f0b
mov eax, dword [esi + 0x4c]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x101a0f06
mov edx, dword [ecx]
push 1
call dword [edx]
inc edi
cmp edi, ebx
jl 0x101a0ef6
lea edi, [esi + 0x4c]
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.1019eb80
mov edi, dword [edi]
mov byte [esp + 0x18], 1
test edi, edi
je 0x101a0f2d
push edi
call fcn.100639b7
add esp, 4
lea ecx, [esi + 0x40]
mov byte [esp + 0x18], 0
mov dword [esi + 0x3c], 0x102196d8
call fcn.100cc680
add esi, 4
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x34]
mov dword [esp + 0x18], 0xb
call fcn.100cc680
lea ecx, [esi + 0x30]
mov byte [esp + 0x18], 0xa
call fcn.100cc680
lea ecx, [esi + 0x2c]
mov byte [esp + 0x18], 9
call fcn.100cc680
lea ecx, [esi + 0x28]
mov byte [esp + 0x18], 8
call fcn.100cc680
lea ecx, [esi + 0x24]
mov byte [esp + 0x18], 7
call fcn.100cc680
lea ecx, [esi + 0x20]
mov byte [esp + 0x18], 6
call fcn.100cc680
lea ecx, [esi + 0xc]
mov byte [esp + 0x18], 5
call fcn.1019fb40
lea ecx, [esi + 8]
mov byte [esp + 0x18], 4
call fcn.100cc680
lea ecx, [esi + 4]
mov byte [esp + 0x18], 3
call fcn.100cc680
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.100cc680
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x101a25c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101dfd98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x101a2635
mov eax, dword [esi + 0x48]
test eax, eax
je 0x101a2635
cmp ecx, eax
ja 0x101a2635
sub eax, ecx
mov dword [ebp - 4], 0
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.10063988
mov edx, dword [ebp + 8]
mov ecx, edi
add esp, 4
mov dword [edx], eax
mov byte [eax + edi], 0
mov edi, dword [edx]
mov esi, dword [esi + 0x44]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x101a27c8
mov ecx, esi
call fcn.101a1020
cmp eax, 3
je 0x101a2790
cmp eax, 4
je 0x101a2790
mov eax, dword [esi + 0xc]
push 1
push eax
call fcn.101a3e20
mov ebx, eax
add esp, 8
cmp ebx, 0xffffffff
jne 0x101a2685
push 0x102542a8
call fcn.101a27f0
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x101a26be
push 0x10254608
call fcn.101a27f0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 3
call fcn.10063988
add esp, 4
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
push 0
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp edi, dword [ebp - 0x14]
je 0x101a2728
push 0x102542cc
call fcn.101a27f0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
push edx
call fcn.100639b7
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esi + 0x2c]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp - 0x18]
push eax
push edi
push esi
call fcn.101a2cc0
add esp, 0x10
test eax, eax
jne 0x101a2770
push 0x10254774
call fcn.101a27f0
push esi
call fcn.100639b7
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
call fcn.100639b7
add esp, 4
jmp 0x101a27c8
mov edi, dword [esi + 0x2c]
mov ebx, dword [esi + 0x28]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, esi
call fcn.101a1170
mov edx, dword [ebp + 8]
mov eax, dword [eax]
push edi
push ebx
push edx
push eax
mov dword [ebp - 4], 2
call fcn.101a2ad0
add esp, 0x10
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.100cc680
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x101b09f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x20c
push ebx
push esi
mov edx, ecx
push edi
xor ebx, ebx
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], bx
add edx, 4
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x21c]
lea ecx, [esp + 0x18]
push eax
push edx
push 0x10247ab0
push ecx
call fcn.100987f3
add esp, 0x10
lea edx, [esp + 0xc]
lea eax, [esp + 0x18]
xor esi, esi
push edx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x101b0aca
mov edi, dword [esp + 0x220]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ecx
lea edx, [esp + 0x1c]
push ebx
push edx
push ebx
push edi
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
call ebp
mov eax, dword [esp + 0x14]
cmp eax, 2
jb 0x101b0ab0
add eax, 2
mov dword [esp + 0x14], eax
shr eax, 1
lea ecx, [eax + eax]
push ecx
call fcn.10063988
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x101b0ab0
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push esi
push eax
push ebx
push edi
push ecx
call ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x20c
ret 8
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x20c
ret 8

Function at 0x101b0ae0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push esi
mov edx, ecx
push edi
xor esi, esi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x21c]
add edx, 4
push eax
push edx
lea ecx, [esp + 0x20]
push 0x10247ab0
push ecx
call fcn.100987f3
add esp, 0x10
lea edx, [esp + 8]
lea eax, [esp + 0x18]
mov dword [esp + 0xc], esi
push edx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x101b0b79
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x224]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x10]
push eax
push esi
push ecx
push edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
pop edi
pop esi
add esp, 0x210
ret 8
Function at 0x101b0da0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0xc]
lea eax, [esp]
push esi
push eax
xor esi, esi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x101b0e3a
mov ecx, dword [esp + 4]
push ebx
lea edx, [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
push eax
lea eax, [esp + 0x18]
push eax
push esi
push edi
push ecx
call ebx
mov eax, dword [esp + 0x18]
cmp eax, 2
jb 0x101b0e24
add eax, 2
mov dword [esp + 0x18], eax
shr eax, 1
lea edx, [eax + eax]
push edx
call fcn.10063988
mov esi, eax
add esp, 4
test esi, esi
je 0x101b0e24
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push esi
push ecx
push 0
push edi
push edx
call ebx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop ebx
pop esi
add esp, 8
ret 8
mov eax, esi
pop esi
add esp, 8
ret 8
Function at 0x889370
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 0x88938e
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 0x8b2074
push ecx
mov edi, eax
call fcn.0089d198
mov esi, eax
add esp, 8
test esi, esi
jne 0x8893cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0089d02e
push esi
call fcn.0089cfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x88c850
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 0x88c8ae
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 0x8b7720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x88c8ba
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.0089d1e1
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 0x88c8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x8b7720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x88c92a
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.0089e082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x88c957
mov word [eax], si
add eax, 2
push eax
call fcn.0089e030
add esp, 4
jmp 0x88c959
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 0x88c8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x88c8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x88d0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x8b2458
push ecx
call fcn.0089d1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.0089d1e1
add esp, 0x10
jmp 0x88d0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0089d20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.0089cdff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.0088d050
mov eax, dword [0x8b7728]
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 0x88d13b
push esi
call fcn.0088cfb0
add esp, 4
mov dword [0x8b7728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x88d14c
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.0088cff0
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 0x890440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x8904b7
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 0x89048e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x890471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x89047e
add edx, ecx
cmp ebx, edx
jb 0x89048a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x890467
xor ecx, ecx
jmp 0x8904a2
test eax, eax
jne 0x890492
xor ecx, ecx
jmp 0x8904a2
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.008903c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x8908f0
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 0x890921
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 0x890946
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 0x89096e
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 0x890993
push ecx
push esi
call fcn.008904c0
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 0x891c00
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 0x891c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x891c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x891c38
add edx, eax
cmp ebx, edx
jb 0x891c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x891c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x891c50
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 0x891c70
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 0x891cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x891c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x891ca8
add edx, ecx
cmp ebx, edx
jb 0x891cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x891c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x891f60
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.0089e145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x891ffb
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 0x891fdd
lea eax, [esp + 0x18]
push eax
jmp 0x891fe2
push 0x8b7720
call fcn.0089dfd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x891fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x891f40
push 4
push ecx
push eax
call fcn.0089e43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x892310
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.0089e145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x8923ab
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 0x89238d
lea eax, [esp + 0x18]
push eax
jmp 0x892392
push 0x8b7720
call fcn.0089dfd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x892360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x891f40
push 4
push ecx
push eax
call fcn.0089e43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x893f20
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 0x893fd7
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 0x893fcf
push ebx
push edi
push 0x8b7770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x893fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x8b7770
push esi
call ebx
test eax, eax
je 0x893fae
mov ebp, 3
cmp dword [0x8b7774], ebp
jne 0x893faa
push 0x3e8
call edi
push 0x8b7770
push esi
call ebx
test eax, eax
jne 0x893f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x893fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x893fbb
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