joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419716
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, eax
mov al, byte [esi]
and al, 0x7f
cmp al, 0x7f
jne 0x419733
mov eax, 0xc000003a
jmp 0x419852
movzx edx, byte [esi + 3]
movzx eax, byte [esi + 2]
shl edx, 8
or edx, eax
add edx, esi
mov cl, byte [edx]
mov al, cl
push ebx
and al, 0x7f
xor ebx, ebx
cmp al, 0x7f
je 0x41984c
cmp cl, 4
jne 0x419774
cmp byte [edx + 1], cl
jne 0x419774
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
cmp ecx, 4
jb 0x4197be
lea eax, [ecx - 4]
add ebx, eax
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
add edx, ecx
mov cl, byte [edx]
mov al, cl
and al, 0x7f
cmp al, 0x7f
jne 0x419753
test ebx, ebx
je 0x41984c
mov eax, dword fs:[0x30]
add ebx, 2
push ebx
push 0
push dword [eax + 0x18]
mov dword [ebp - 8], ebx
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x4197c8
mov eax, 0xc000009a
jmp 0x419851
mov eax, 0xc0000095
jmp 0x419851
push edi
movzx edi, byte [esi + 3]
mov ecx, eax
movzx eax, byte [esi + 2]
shl edi, 8
or edi, eax
add edi, esi
mov dl, byte [edi]
mov al, dl
and al, 0x7f
mov dword [ebp - 4], ecx
cmp al, 0x7f
je 0x419835
mov ebx, ecx
cmp dl, 4
jne 0x419813
cmp byte [edi + 1], dl
jne 0x419813
movzx esi, byte [edi + 3]
movzx eax, byte [edi + 2]
shl esi, 8
or esi, eax
sub esi, 4
push esi
lea eax, [edi + 4]
push eax
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
add ebx, esi
movzx ecx, byte [edi + 3]
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
add edi, ecx
mov dl, byte [edi]
mov al, dl
and al, 0x7f
cmp al, 0x7f
jne 0x4197e9
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [ecx], ax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
xor eax, eax
pop edi
jmp 0x419851
mov eax, 0xc0000225
pop ebx
pop esi
leave
ret 8
Function at 0x41a5f2
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], edi
mov ebx, edi
call fcn.0041a862
lea esi, [esp + 0x10]
test al, al
je 0x41a62d
push 0x42102e
call fcn.0041a954
mov esi, eax
cmp esi, 0xc0000452
jne 0x41a639
lea esi, [esp + 0x10]
push 0x421070
call fcn.0041a954
mov esi, eax
test esi, esi
js 0x41a6db
push edi
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x1c], edi
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
mov esi, eax
cmp esi, 0xc0000023
je 0x41a67b
test esi, esi
js 0x41a6df
mov esi, 0xc0000001
jmp 0x41a6df
mov eax, dword [esp + 0x14]
add eax, 2
push eax
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, dword [esp + 0x10]
mov ebx, eax
test ebx, ebx
jne 0x41a6a5
mov esi, 0xc000009a
jmp 0x41a6df
mov ax, word [esp + 0x14]
mov word [esp + 0x1a], ax
push 0
lea eax, [esp + 0x1c]
push eax
push edi
mov dword [esp + 0x28], ebx
call dword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
mov esi, eax
test esi, esi
js 0x41a6df
movzx eax, word [esp + 0x18]
shr eax, 1
xor ecx, ecx
mov word [ebx + eax*2], cx
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x41a6df
mov edi, dword [esp + 0x10]
test edi, edi
je 0x41a6ea
push edi
call dword [sym.imp.ntdll.dll_NtClose]
test esi, esi
jns 0x41a704
test ebx, ebx
je 0x41a704
mov eax, dword fs:[0x30]
push ebx
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41ab63
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x422728]
test esi, esi
jne 0x41ac51
push edi
mov edi, 0x11c
push edi
lea eax, [ebp - 0x120]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call edi
test eax, eax
jne 0x41abca
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call edi
mov eax, dword [ebp - 0x110]
mov dword [0x422728], esi
pop edi
dec eax
je 0x41ac2b
dec eax
jne 0x41ac51
cmp dword [ebp - 0x11c], 5
jne 0x41ac19
mov eax, dword [ebp - 0x118]
sub eax, esi
je 0x41ac15
dec eax
je 0x41ac0a
dec eax
je 0x41abfb
push 0x14
pop esi
jmp 0x41ac4b
cmp word [ebp - 0xc], 1
jb 0x41ac05
push 0x10
pop esi
or esi, 4
jmp 0x41ac4b
cmp word [ebp - 0xc], 2
jb 0x41ac05
push 8
jmp 0x41ac04
push 4
jmp 0x41abf8
cmp dword [ebp - 0x11c], 4
ja 0x41ac60
push 2
pop esi
mov dword [0x422728], esi
cmp dword [ebp - 0x11c], 4
jne 0x41ac51
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x41ac48
cmp eax, 0xa
je 0x41ac48
cmp eax, 0x5a
jne 0x41ac51
xor esi, esi
inc esi
mov dword [0x422728], esi
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041b8aa
leave
ret
push 0x20
jmp 0x41abf8
Function at 0x41ad6e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20
lea eax, [ebp - 0x44]
push eax
push 8
push 0x404
mov esi, 0xc04
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41adbc
push 3
lea eax, [ebp - 0x44]
push 0x405568
push eax
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffff800
add esi, eax
mov ecx, dword [ebp - 4]
mov ax, si
xor ecx, ebp
pop esi
call fcn.0041b8aa
leave
ret

Function at 0x41add1
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp ax, word [0x422724]
jne 0x41ae6d
push edi
lea eax, [ebp - 0x10]
push eax
push 1
xor edi, edi
push edi
push 0x405570
push 0x80000002
mov dword [ebp - 0x14], 6
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41ae6c
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x405650
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x41ae6c
push 3
push dword [edi*8 + 0x405660]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x41ae5e
inc edi
cmp edi, 0x1c
jb 0x41ae3c
jmp 0x41ae6c
mov ax, word [edi*8 + 0x405664]
mov word [0x422724], ax
pop edi
mov ecx, dword [ebp - 4]
mov ax, word [0x422724]
xor ecx, ebp
call fcn.0041b8aa
leave
ret
Function at 0x41c270
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x41c286
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x41c2a1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x41c2b0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
movzx ebx, word [ecx + 6]
add eax, 0x18
push esi
xor edx, edx
add eax, ecx
push edi
test ebx, ebx
je 0x41c2ee
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x41c2e6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x41c2f0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x41c2d6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x41e74a
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x41e751
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x41e76f
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x41e7cd
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x41e7b4
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x41e7bd
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x41e7c7
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x41e7a9
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x41e733
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x41e81a
dec eax
je 0x41e811
sub eax, 3
je 0x41e808
mov dword [ebp - 4], 0x40
jmp 0x41e837
das
mov dword [ebp - 4], 4
jmp 0x41e81d
mov dword [ebp - 4], 0x20
jmp 0x41e81d
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x41e869
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
or byte [edi + 0x3b], al
mov ebp, 0xffffff74
jbe 0x41e7e9
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0041e07a
sahf
push edx
dec edx
insd dword es:[edi], dx
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x41e875
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x420777
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x4207aa
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 0x16
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0041b8ef
add esp, 0x14
mov eax, 0xffff
jmp 0x4208c3
push ebx
lea ebx, [edi + 0xc]
mov eax, dword [ebx]
test al, 0x83
je 0x4208bd
test al, 0x40
jne 0x4208bd
test al, 2
je 0x4207ce
or eax, 0x20
mov dword [ebx], eax
jmp 0x4208bd
or eax, 1
mov dword [ebx], eax
test eax, 0x10c
jne 0x4207fa
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 0x16
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0041b8ef
add esp, 0x14
jmp 0x4208bd
push dword [edi + 0x18]
mov eax, dword [edi + 8]
mov esi, dword [sym.imp.msvcrt.dll__fileno]
push eax
push edi
mov dword [edi], eax
call esi
pop ecx
push eax
call dword [sym.imp.msvcrt.dll__read]
add esp, 0xc
lea ecx, [edi + 4]
mov dword [ecx], eax
test eax, eax
je 0x4208ae
cmp eax, 1
je 0x4208ae
cmp eax, 0xffffffff
je 0x4208ae
test byte [ebx], 0x82
jne 0x420882
push edi
call esi
pop ecx
cmp eax, 0xffffffff
je 0x42086b
push edi
call esi
pop ecx
cmp eax, 0xfffffffe
je 0x42086b
push edi
call esi
mov ecx, dword [sym.imp.msvcrt.dll___pioinfo]
sar eax, 5
push edi
lea esi, [ecx + eax*4]
call dword [sym.imp.msvcrt.dll__fileno]
and eax, 0x1f
imul eax, eax, 0x24
add eax, dword [esi]
pop ecx
pop ecx
jmp 0x420870
mov eax, dword [sym.imp.msvcrt.dll___badioinfo]
mov al, byte [eax + 4]
and al, 0x82
lea ecx, [edi + 4]
cmp al, 0x82
jne 0x420882
or dword [ebx], 0x2000
cmp dword [edi + 0x18], 0x200
jne 0x42089f
test byte [ebx], 8
je 0x42089f
test dword [ebx], 0x400
jne 0x42089f
mov dword [edi + 0x18], 0x1000
add dword [ecx], 0xfffffffe
mov ecx, dword [edi]
movzx eax, word [ecx]
add ecx, 2
mov dword [edi], ecx
jmp 0x4208c2
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [ebx], eax
and dword [ecx], 0
mov eax, 0xffff
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0xb7a370
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 0xb7a38e
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 0xba3074
push ecx
mov edi, eax
call fcn.00b8e198
mov esi, eax
add esp, 8
test esi, esi
jne 0xb7a3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00b8e02e
push esi
call fcn.00b8dfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xb7d850
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 0xb7d8ae
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 0xba8720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xb7d8ba
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.00b8e1e1
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 0xb7d8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xba8720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xb7d92a
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.00b8f082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xb7d957
mov word [eax], si
add eax, 2
push eax
call fcn.00b8f030
add esp, 4
jmp 0xb7d959
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 0xb7d8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xb7d8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xb7e0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xba3458
push ecx
call fcn.00b8e1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00b8e1e1
add esp, 0x10
jmp 0xb7e0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00b8e20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00b8ddff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00b7e050
mov eax, dword [0xba8728]
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 0xb7e13b
push esi
call fcn.00b7dfb0
add esp, 4
mov dword [0xba8728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xb7e14c
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.00b7dff0
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 0xb81440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xb814b7
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 0xb8148e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xb81471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xb8147e
add edx, ecx
cmp ebx, edx
jb 0xb8148a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xb81467
xor ecx, ecx
jmp 0xb814a2
test eax, eax
jne 0xb81492
xor ecx, ecx
jmp 0xb814a2
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.00b813c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xb818f0
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 0xb81921
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 0xb81946
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 0xb8196e
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 0xb81993
push ecx
push esi
call fcn.00b814c0
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 0xb82c00
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 0xb82c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xb82c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xb82c38
add edx, eax
cmp ebx, edx
jb 0xb82c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xb82c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xb82c50
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 0xb82c70
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 0xb82cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xb82c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xb82ca8
add edx, ecx
cmp ebx, edx
jb 0xb82cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xb82c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xb82f60
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.00b8f145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xb82ffb
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 0xb82fdd
lea eax, [esp + 0x18]
push eax
jmp 0xb82fe2
push 0xba8720
call fcn.00b8efd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xb82fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xb82f40
push 4
push ecx
push eax
call fcn.00b8f43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xb83310
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.00b8f145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xb833ab
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 0xb8338d
lea eax, [esp + 0x18]
push eax
jmp 0xb83392
push 0xba8720
call fcn.00b8efd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xb83360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xb82f40
push 4
push ecx
push eax
call fcn.00b8f43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xb84f20
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 0xb84fd7
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 0xb84fcf
push ebx
push edi
push 0xba8770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0xb84fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0xba8770
push esi
call ebx
test eax, eax
je 0xb84fae
mov ebp, 3
cmp dword [0xba8774], ebp
jne 0xb84faa
push 0x3e8
call edi
push 0xba8770
push esi
call ebx
test eax, eax
jne 0xb84f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0xb84fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0xb84fbb
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