joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414260
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68cd33
mov eax, dword fs:[0]
push eax
sub esp, 0x498
mov eax, dword [0x737100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4a0], ecx
mov dword [ebp - 4], 0
push 0x250
push 0
lea eax, [ebp - 0x498]
push eax
call fcn.004ded70
add esp, 0xc
lea ecx, [ebp + 8]
call fcn.00403020
push eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x71d4fc
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x498]
push eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x49c], eax
cmp dword [ebp - 0x49c], 0xffffffff
jne 0x414312
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00403030
jmp 0x41447b
push 0x71d508
lea edx, [ebp - 0x46c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x41433e
push 0x71d50c
lea eax, [ebp - 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x414343
jmp 0x41443f
mov ecx, dword [ebp - 0x498]
and ecx, 0x4000
je 0x414356
jmp 0x41443f
mov edx, dword [ebp - 0x498]
and edx, 2
je 0x414366
jmp 0x41443f
mov eax, dword [ebp - 0x498]
and eax, 0x10
je 0x4143ec
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x230]
call fcn.004030e0
mov byte [ebp - 4], 1
push 0x71d514
lea ecx, [ebp - 0x230]
call fcn.0040cf50
lea edx, [ebp - 0x46c]
push edx
lea ecx, [ebp - 0x230]
call fcn.0040cf50
mov eax, dword [ebp + 0x20]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x4a4], esp
lea edx, [ebp - 0x230]
push edx
call fcn.004030e0
mov ecx, dword [ebp - 0x4a0]
call fcn.00414260
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00403030
jmp 0x41443f
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x248]
call fcn.004030e0
mov byte [ebp - 4], 2
push 0x71d518
lea ecx, [ebp - 0x248]
call fcn.0040cf50
lea ecx, [ebp - 0x46c]
push ecx
lea ecx, [ebp - 0x248]
call fcn.0040cf50
lea edx, [ebp - 0x248]
push edx
mov ecx, dword [ebp + 0x20]
call fcn.00421ad0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.00403030
lea eax, [ebp - 0x498]
push eax
mov ecx, dword [ebp - 0x49c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x414312
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00403030
jmp 0x41447b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004815ec
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x416be0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68d095
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x737100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x9c], ecx
mov byte [ebp - 0x71], 0
mov eax, dword [ebp + 0x10]
xor edx, edx
mov ecx, 0x1f4
div ecx
add eax, 1
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x78], 0
jmp 0x416c3c
mov edx, dword [ebp - 0x78]
add edx, 1
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0x78]
cmp eax, dword [ebp - 0x88]
jae 0x416dfa
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x58]
push edx
call fcn.004093d0
add esp, 8
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x90], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x90]
push ecx
call fcn.004094e0
add esp, 4
test eax, eax
jne 0x416c90
mov dword [ebp - 0x7c], 1
jmp 0x416c97
mov dword [ebp - 0x7c], 0
mov dl, byte [ebp - 0x7c]
mov byte [ebp - 0x72], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00403030
movzx eax, byte [ebp - 0x72]
test eax, eax
je 0x416cfb
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x70]
push edx
call fcn.004093d0
add esp, 8
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x98], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x98]
push ecx
call fcn.00409210
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00403030
mov ecx, dword [ebp + 0xc]
call fcn.00403020
push eax
mov ecx, dword [ebp + 8]
call fcn.00403020
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x416d20
mov byte [ebp - 0x71], 1
jmp 0x416dfa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0x20
jne 0x416d3f
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x416c33
cmp dword [ebp - 0x80], 0xb7
jne 0x416df3
mov ecx, dword [ebp + 0xc]
call fcn.00403020
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x416dee
lea ecx, [ebp - 0x28]
call fcn.00406070
mov dword [ebp - 4], 2
push 0x71d91c
lea ecx, [ebp - 0x40]
call fcn.00403090
mov byte [ebp - 4], 3
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0040c6a0
add esp, 0xc
test eax, eax
je 0x416da7
mov dword [ebp - 0x84], 1
jmp 0x416db1
mov dword [ebp - 0x84], 0
mov dl, byte [ebp - 0x84]
mov byte [ebp - 0x73], dl
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.00403030
movzx eax, byte [ebp - 0x73]
test eax, eax
je 0x416ddf
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403030
jmp 0x416dfa
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403030
jmp 0x416c33
jmp 0x416dfa
movzx eax, byte [ebp - 0x71]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004815ec
mov esp, ebp
pop ebp
ret 0xc
Function at 0x417850
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68d225
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x737100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x74], 0
jmp 0x41789a
mov eax, dword [ebp - 0x74]
add eax, 1
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp + 0xc]
call fcn.004216b0
cmp dword [ebp - 0x74], eax
jae 0x417995
mov ecx, dword [ebp - 0x74]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00421690
mov dword [ebp - 0x7c], eax
push 0x71dc24
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x70]
call fcn.00403b60
add esp, 4
mov dword [ebp - 0x78], eax
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0x80], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0x80]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.0040dcc0
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.00403030
lea ecx, [ebp - 0x28]
call fcn.00403020
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x417924
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403030
jmp 0x417891
lea ecx, [ebp - 0x28]
call fcn.00403020
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x71dc28
lea ecx, [ebp - 0x58]
call fcn.00403090
mov byte [ebp - 4], 3
push 0x71dc2c
lea ecx, [ebp - 0x40]
call fcn.00403090
mov byte [ebp - 4], 4
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.0040c6a0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.00403030
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.00403030
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403030
jmp 0x417891
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004815ec
mov esp, ebp
pop ebp
ret 8
Function at 0x41c1c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68d96d
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x737100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c], ecx
mov eax, dword [ebp + 8]
add eax, 0x18
push eax
lea ecx, [ebp - 0x40]
push ecx
call fcn.00409530
add esp, 8
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x48], edx
mov dword [ebp - 4], 0
push 0x71e514
mov eax, dword [ebp - 0x48]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.0040db20
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00403030
lea ecx, [ebp - 0x28]
call fcn.00403020
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41c283
mov edx, dword [ebp + 8]
add edx, 0x18
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00425420
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x41c283
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x81]
test eax, eax
je 0x41c283
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x48], 1
jne 0x41c283
mov edx, dword [ebp + 8]
mov dword [edx + 0x84], 0
lea ecx, [ebp - 0x28]
call fcn.00403030
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004815ec
mov esp, ebp
pop ebp
ret 4
Function at 0x41efa0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68e030
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x737100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0x8c], 0
jmp 0x41eff6
mov eax, dword [ebp - 0x8c]
add eax, 1
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp + 0xc]
call fcn.00421870
cmp dword [ebp - 0x8c], eax
jae 0x41f1a0
mov ecx, dword [ebp - 0x8c]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00421850
mov dword [ebp - 0x90], eax
push 0x71ec98
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x58]
call fcn.00403b60
add esp, 4
mov dword [ebp - 0x94], eax
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0x98], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x90]
push eax
mov ecx, dword [ebp - 0x98]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.0040dcc0
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.00403030
lea ecx, [ebp - 0x28]
call fcn.00403020
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41f0ab
push 0x71ec9c
mov ecx, dword [ebp - 0x90]
add ecx, 0x30
call fcn.00405fd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403030
jmp 0x41efe7
lea ecx, [ebp - 0x28]
call fcn.00403020
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.0042bcc0
add esp, 8
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0xa0], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0xa0]
push edx
lea eax, [ebp - 0x70]
push eax
call fcn.0040ee70
add esp, 8
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0xa8], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0xa8]
push edx
lea eax, [ebp - 0x40]
push eax
call fcn.0040ec90
add esp, 8
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x70]
call fcn.00403030
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x88]
call fcn.0040d010
lea ecx, [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x90]
add edx, 0x30
push edx
call fcn.004253e0
add esp, 8
movzx eax, al
test eax, eax
je 0x41f180
push 0x71eca0
mov ecx, dword [ebp - 0x90]
add ecx, 0x30
call fcn.00405fd0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.00403030
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403030
jmp 0x41efe7
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.00403030
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403030
jmp 0x41efe7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004815ec
mov esp, ebp
pop ebp
ret 8
Function at 0x8b6370
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 0x8b638e
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 0x8df074
push ecx
mov edi, eax
call fcn.008ca198
mov esi, eax
add esp, 8
test esi, esi
jne 0x8b63cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.008ca02e
push esi
call fcn.008c9fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x8b9850
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 0x8b98ae
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 0x8e4720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x8b98ba
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.008ca1e1
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 0x8b98ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x8e4720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x8b992a
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.008cb082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x8b9957
mov word [eax], si
add eax, 2
push eax
call fcn.008cb030
add esp, 4
jmp 0x8b9959
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 0x8b98ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x8b98b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x8ba0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x8df458
push ecx
call fcn.008ca1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.008ca1e1
add esp, 0x10
jmp 0x8ba0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.008ca20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.008c9dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.008ba050
mov eax, dword [0x8e4728]
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 0x8ba13b
push esi
call fcn.008b9fb0
add esp, 4
mov dword [0x8e4728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x8ba14c
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.008b9ff0
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 0x8bd440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x8bd4b7
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 0x8bd48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x8bd471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x8bd47e
add edx, ecx
cmp ebx, edx
jb 0x8bd48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x8bd467
xor ecx, ecx
jmp 0x8bd4a2
test eax, eax
jne 0x8bd492
xor ecx, ecx
jmp 0x8bd4a2
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.008bd3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x8bd8f0
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 0x8bd921
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 0x8bd946
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 0x8bd96e
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 0x8bd993
push ecx
push esi
call fcn.008bd4c0
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 0x8bec00
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 0x8bec4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x8bec2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x8bec38
add edx, eax
cmp ebx, edx
jb 0x8bec46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x8bec21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x8bec50
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 0x8bec70
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 0x8becb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x8bec9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x8beca8
add edx, ecx
cmp ebx, edx
jb 0x8becb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x8bec91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x8bef60
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.008cb145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x8beffb
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 0x8befdd
lea eax, [esp + 0x18]
push eax
jmp 0x8befe2
push 0x8e4720
call fcn.008cafd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x8befb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x8bef40
push 4
push ecx
push eax
call fcn.008cb43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x8bf310
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.008cb145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x8bf3ab
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 0x8bf38d
lea eax, [esp + 0x18]
push eax
jmp 0x8bf392
push 0x8e4720
call fcn.008cafd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x8bf360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x8bef40
push 4
push ecx
push eax
call fcn.008cb43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x8c0f20
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 0x8c0fd7
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 0x8c0fcf
push ebx
push edi
push 0x8e4770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x8c0fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x8e4770
push esi
call ebx
test eax, eax
je 0x8c0fae
mov ebp, 3
cmp dword [0x8e4774], ebp
jne 0x8c0faa
push 0x3e8
call edi
push 0x8e4770
push esi
call ebx
test eax, eax
jne 0x8c0f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x8c0fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x8c0fbb
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