joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004a6a3
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1001e268]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1008b977], 0
jne 0x1004a6fd
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1004a6f6
cmp dword [ebp - 0x110], 2
jne 0x1004a6f6
cmp dword [ebp - 0x11c], 6
jb 0x1004a6f6
call fcn.1004a584
mov byte [0x1008b976], al
mov byte [0x1008b977], 1
mov ecx, dword [ebp - 4]
mov al, byte [0x1008b976]
xor ecx, ebp
call fcn.1004da72
leave
ret

Function at 0x1004a70e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x1001e268]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x160], 0
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x168], edi
call fcn.1004a6a3
test al, al
je 0x1004a755
push dword [ebp + 0x10]
push edi
push 0x5c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [ebp - 0x160], eax
jmp 0x1004a7f8
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0x56
lea eax, [ebp - 0xb0]
push eax
push 0x59
push dword [ebp + 8]
call esi
push 0x56
mov ebx, eax
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push dword [ebp + 8]
call esi
cmp ebx, 1
jle 0x1004a7f6
cmp eax, 1
jle 0x1004a7d7
mov esi, dword [ebp + 0x10]
add eax, ebx
cmp eax, esi
mov dword [ebp - 0x164], eax
jg 0x1004a7f6
lea eax, [ebp - 0xb0]
push eax
push esi
push edi
mov edi, dword [sym.imp.MSVCR90.dll_wcscpy_s]
call edi
mov eax, dword [ebp - 0x168]
push 0x2d
pop ecx
lea eax, [eax + ebx*2]
mov word [eax - 2], cx
lea ecx, [ebp - 0x15c]
push ecx
sub esi, ebx
push esi
push eax
call edi
mov eax, dword [ebp - 0x164]
add esp, 0x18
mov dword [ebp - 0x160], eax
jmp 0x1004a7f6
cmp ebx, dword [ebp + 0x10]
jg 0x1004a7f6
lea eax, [ebp - 0xb0]
push eax
push dword [ebp + 0x10]
push edi
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
add esp, 0xc
mov dword [ebp - 0x160], ebx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x160]
xor ecx, ebp
pop edi
call fcn.1004da72
leave
ret 0xc

Function at 0x1004ba93
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push Ordinal_4
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x1004baf3
cmp eax, edi
je 0x1004baf3
push edi
push edi
push edi
push 2
push edi
push eax
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
je 0x1004baf3
cmp eax, edi
je 0x1004baf3
push edi
push edi
push edi
push 4
push eax
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0xc], eax
xor eax, eax
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], edi
inc eax
jmp 0x1004baf5
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
Function at 0x1004d9be
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x1001e26c
push 0x1000dc64
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x1004d9f3
push 0
push 0
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 8]
xor esi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov ebx, 0x1001e268
push ebx
call edi
mov dword [0x1001e268], esi
test esi, esi
jne 0x1004da57
mov dword [0x1001e268], 0xbb40e64e
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push ebx
call edi
pop edi
pop esi
mov dword [0x100845e4], 0x44bf19b1
pop ebx
leave
ret

Function at 0x1004da72
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001e268]
jne 0x1004eb65
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x1008bb50], eax
mov dword [0x1008bb4c], ecx
mov dword [0x1008bb48], edx
mov dword [0x1008bb44], ebx
mov dword [0x1008bb40], esi
mov dword [0x1008bb3c], edi
mov word [0x1008bb68], ss
mov word [0x1008bb5c], cs
mov word [0x1008bb38], ds
mov word [0x1008bb34], es
mov word [0x1008bb30], fs
mov word [0x1008bb2c], gs
pushfd
pop dword [0x1008bb60]
mov eax, dword [ebp]
mov dword [0x1008bb54], eax
mov eax, dword [ebp + 4]
mov dword [0x1008bb58], eax
lea eax, [ebp + 8]
mov dword [0x1008bb64], eax
mov eax, dword [ebp - 0x320]
mov dword [0x1008baa0], 0x10001
mov eax, dword [0x1008bb58]
mov dword [0x1008ba54], eax
mov dword [0x1008ba48], 0xc0000409
mov dword [0x1008ba4c], 1
mov eax, dword [0x1001e268]
mov dword [ebp - 0x328], eax
mov eax, dword [0x100845e4]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1008ba98], eax
push 1
call sub.MSVCR90.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x1001e414
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1008ba98], 0
jne 0x1004ec51
push 1
call sub.MSVCR90.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x1004daa1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
call fcn.1004da8a
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
mov edi, 0x20019
push edi
push ebx
push 0x100025e4
push Ordinal_4
call esi
test eax, eax
jne 0x1004db4a
lea ecx, [ebp - 4]
mov dword [ebp - 4], ebx
call fcn.1004da8a
push eax
push edi
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call esi
test eax, eax
jne 0x1004db3c
push 4
pop esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0x1001e290
push dword [ebp - 4]
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1004db3c
cmp dword [ebp + 8], esi
jne 0x1004db3c
mov edi, dword [ebp - 0xc]
cmp edi, 3
ja 0x1004db3c
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], ebx
je 0x1004db2e
push dword [ebp - 4]
call esi
cmp dword [ebp - 8], ebx
je 0x1004db38
push dword [ebp - 8]
call esi
mov eax, edi
jmp 0x1004db5a
cmp dword [ebp - 4], ebx
je 0x1004db4a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], ebx
je 0x1004db58
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1004db61
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x1008ba08], 0
je 0x1004db76
mov eax, dword [0x1008ba04]
leave
ret
and dword [ebp - 4], 0
push ebx
push esi
push edi
lea ecx, [ebp - 4]
call fcn.1004da8a
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
mov ebx, 0x20019
push ebx
push 0
push 0x1001e2e0
mov edi, Ordinal_4
push edi
call esi
test eax, eax
jne 0x1004dbd7
lea eax, [ebp - 8]
push eax
push 0x1008ba04
push 0
push 0
push dword [0x100845ec]
mov dword [ebp - 8], 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1004dbd7
cmp dword [ebp - 8], 4
jne 0x1004dbd7
cmp dword [ebp - 4], eax
jmp 0x1004dc1c
lea ecx, [ebp - 4]
call fcn.1004da8a
push eax
push ebx
xor ebx, ebx
push ebx
push 0x1001e2a8
push edi
call esi
test eax, eax
jne 0x1004dc38
push 4
pop esi
lea eax, [ebp - 8]
push eax
push 0x1008ba04
push ebx
push ebx
push dword [0x100845ec]
mov dword [ebp - 8], esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1004dc38
cmp dword [ebp - 8], esi
jne 0x1004dc38
cmp dword [ebp - 4], ebx
mov esi, dword [0x1008ba04]
mov byte [0x1008ba08], 1
je 0x1004dc34
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1004dc55
mov dword [0x1008ba04], ebx
mov byte [0x1008ba08], 1
cmp dword [ebp - 4], ebx
je 0x1004dc53
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10005a80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10005ad8
cmp byte [esi + ebx - 1], 0xa
je 0x10005aac
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10018084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x10006080
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov edi, dword [0x10018094]
mov esi, dword [ebp + 8]
test edi, edi
je 0x10006240
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x10018094]
movzx eax, al
bt eax, esi
jae 0x100062a0
mov ecx, dword [0x10018084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x10006145
test byte [0x10007064], 8
jne 0x100061e0
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x10007074], 8
jne 0x10006190
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10006114
cmp esi, 3
jbe 0x10006150
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x10012fc0]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x10006114
mov ecx, dword [0x10018094]
test ecx, ecx
je 0x10006280
mov dword [esp], 0x10007074
call dword [0x10018094]
test al, 8
je 0x100060eb
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x100060eb
mov ebx, dword [0x10018094]
test ebx, ebx
je 0x10006260
mov dword [esp], 0x10007064
call dword [0x10018094]
test al, 8
je 0x100060d6
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mov eax, 0x10624dd3
mov dword [esp], ebx
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x100060de
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x10018094
call sym._load_func.part.0
jmp 0x1000609d
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x10018094
call sym._load_func.part.0
jmp 0x100061ea
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x10018094
call sym._load_func.part.0
jmp 0x1000619e
mov eax, 0xffffffff
jmp 0x10006145
Function at 0x10006450
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x214
mov eax, dword [0x100180a0]
test eax, eax
je 0x10006508
mov dword [esp], ebx
call eax
mov dword [ebx + 8], eax
sub esp, 4
test eax, eax
jns 0x10006490
mov eax, dword [ebx]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x214]
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.MODULE
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], str.SystemRoot
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.SystemRoot
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
jmp 0x1000647c
mov dword [esp], str.atl100.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
test eax, eax
je 0x1000653d
mov dword [esp + 4], str.AtlCreateRegistrar
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x100180a0], eax
sub esp, 8
test eax, eax
jne 0x1000646d
mov dword [ebx + 8], 0x80004002
xor eax, eax
jmp 0x1000647e
Function at 0x10006550
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
mov dword [esp + 4], eax
mov dword [ebp - 0x10], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov edx, dword [ebp - 0x10]
sub esp, 8
mov ebx, eax
mov dword [esp + 4], edx
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
sub esp, 8
test ebx, ebx
je 0x100066d1
mov eax, dword [esi]
test eax, eax
je 0x100066c0
mov edx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
mov dword [ebp - 0x1c], edx
call edx
lea ecx, [eax + 1]
sub esp, 0x18
lea eax, [ecx + ecx]
mov dword [ebp - 0x18], ecx
mov ecx, eax
mov dword [ebp - 0x14], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
test eax, eax
mov edi, eax
je 0x100066d5
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 4]
xor edx, edx
sub esp, 0x18
mov word [edi + eax - 2], dx
mov eax, dword [esi]
test ecx, ecx
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
jne 0x100066b8
call dword [edx + 0x28]
sub esp, 8
mov dword [esi + 8], eax
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 8]
sub esp, 0xc
not eax
shr eax, 0x1f
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
call dword [edx + 0x24]
sub esp, 8
jmp 0x10006679
mov edx, esi
mov eax, edi
call dbg.create_registrar
test eax, eax
jne 0x100065b6
xor eax, eax
jmp 0x100066a8
mov dword [esi + 8], 0x8007000e
xor eax, eax
jmp 0x100066a8
Function at 0x40382d
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xcf24ca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ecx
push 0xffffffffffffffff
lea ecx, [ecx + 4]
call fcn.004044e5
mov edx, dword [ebp - 0x14]
mov dword [edx], 0xf448b4
xor eax, eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [ebp - 4], 0
xor eax, eax
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], eax
mov dword [ebp - 4], 1
xor eax, eax
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], eax
mov dword [edx + 0x28], eax
mov dword [ebp - 4], 2
xor eax, eax
mov dword [edx + 0x2c], eax
mov dword [edx + 0x30], eax
mov dword [edx + 0x34], eax
mov dword [ebp - 4], 3
xor eax, eax
mov dword [edx + 0x38], eax
mov dword [edx + 0x3c], eax
mov dword [edx + 0x40], eax
mov dword [ebp - 4], 4
xor eax, eax
mov dword [edx + 0x44], eax
mov dword [edx + 0x48], eax
mov dword [edx + 0x4c], eax
mov dword [ebp - 4], 5
xor eax, eax
mov dword [edx + 0x50], eax
mov dword [edx + 0x54], eax
mov dword [edx + 0x58], eax
mov dword [ebp - 4], 6
mov ecx, edx
mov dword [ecx + 0x5c], 0
call fcn.0040398d
mov ebx, eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x403977
test ebx, ebx
jl 0x40391b
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
push 0x104
lea ecx, [eax + 0x60]
push edx
push ecx
call 0xcb9c91
add esp, 0xc
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40393c
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp + 0x10]
lea esi, [eax + 0x164]
mov dl, byte [edi]
add edi, 1
mov byte [esi], dl
add esi, 1
test dl, dl
jne 0x40392e
push ebx
push 0x92
push 0xd272dc
push 0xd26b80
push 6
call fcn.004052fd
add esp, 0x14
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov dword [edx], ebx
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
push 0xd272ec
push 1
call fcn.004052fd
add esp, 8
mov ebx, 0x80070057
jmp 0x40391b
Function at 0x41a80d
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xcf24ca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ecx
push 0xffffffffffffffff
lea ecx, [ecx + 4]
call fcn.0041b4c5
mov edx, dword [ebp - 0x14]
mov dword [edx], 0xf448b4
xor eax, eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [ebp - 4], 0
xor eax, eax
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], eax
mov dword [ebp - 4], 1
xor eax, eax
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], eax
mov dword [edx + 0x28], eax
mov dword [ebp - 4], 2
xor eax, eax
mov dword [edx + 0x2c], eax
mov dword [edx + 0x30], eax
mov dword [edx + 0x34], eax
mov dword [ebp - 4], 3
xor eax, eax
mov dword [edx + 0x38], eax
mov dword [edx + 0x3c], eax
mov dword [edx + 0x40], eax
mov dword [ebp - 4], 4
xor eax, eax
mov dword [edx + 0x44], eax
mov dword [edx + 0x48], eax
mov dword [edx + 0x4c], eax
mov dword [ebp - 4], 5
xor eax, eax
mov dword [edx + 0x50], eax
mov dword [edx + 0x54], eax
mov dword [edx + 0x58], eax
mov dword [ebp - 4], 6
mov ecx, edx
mov dword [ecx + 0x5c], 0
call fcn.0041a96d
mov ebx, eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x41a957
test ebx, ebx
jl 0x41a8fb
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
push 0x104
lea ecx, [eax + 0x60]
push edx
push ecx
call 0xcd0c71
add esp, 0xc
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x41a91c
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp + 0x10]
lea esi, [eax + 0x164]
mov dl, byte [edi]
add edi, 1
mov byte [esi], dl
add esi, 1
test dl, dl
jne 0x41a90e
push ebx
push 0x92
push 0xd272dc
push 0xd26b80
push 6
call fcn.0041c2dd
add esp, 0x14
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov dword [edx], ebx
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
push 0xd272ec
push 1
call fcn.0041c2dd
add esp, 8
mov ebx, 0x80070057
jmp 0x41a8fb

Function at 0x42ea65
Capabilities:
Encode data using xor

Disassembly:
push es
popal
cmc
xchg ebp, eax
sbb byte [ebp + 0x420b8ba8], dl
xor al, 0xf4
aas
rcr dword [ecx - 0x6c], cl
pop ecx
xchg esp, eax
out dx, eax
outsd dx, dword [esi]
mov word [eax - 0x40ce7b21], fs
mov al, byte [0xbf3184df]
cli
enter 0x1ac4, 0x36
xor ecx, eax
clc
mov cl, 0x9f
cmc
mov edx, ebp
adc eax, 0x79554a6a
pop esp
scasd eax, dword es:[edi]
push ebp
push edx
inc esi
jnp 0x42ea78
imul esi, dword [edx - 0x5e4e0b86], 0x52
out 0x92, al
push eax
xchg ebp, eax
xchg edi, eax
mov al, byte [edi - 0x6d]
scasd eax, dword es:[edi]
aam 0x84
jnp 0x42ea73
lahf
mov ebx, cs
test edi, ecx
add al, 0x64
inc ecx
cmp al, 0x5b
cmp eax, 0x8f8e1c3a
int3
Function at 0x43189d
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xcf24ca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ecx
push 0xffffffffffffffff
lea ecx, [ecx + 4]
call fcn.00432555
mov edx, dword [ebp - 0x14]
mov dword [edx], 0xf448b4
xor eax, eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [ebp - 4], 0
xor eax, eax
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], eax
mov dword [ebp - 4], 1
xor eax, eax
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], eax
mov dword [edx + 0x28], eax
mov dword [ebp - 4], 2
xor eax, eax
mov dword [edx + 0x2c], eax
mov dword [edx + 0x30], eax
mov dword [edx + 0x34], eax
mov dword [ebp - 4], 3
xor eax, eax
mov dword [edx + 0x38], eax
mov dword [edx + 0x3c], eax
mov dword [edx + 0x40], eax
mov dword [ebp - 4], 4
xor eax, eax
mov dword [edx + 0x44], eax
mov dword [edx + 0x48], eax
mov dword [edx + 0x4c], eax
mov dword [ebp - 4], 5
xor eax, eax
mov dword [edx + 0x50], eax
mov dword [edx + 0x54], eax
mov dword [edx + 0x58], eax
mov dword [ebp - 4], 6
mov ecx, edx
mov dword [ecx + 0x5c], 0
call fcn.004319fd
mov ebx, eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x4319e7
test ebx, ebx
jl 0x43198b
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
push 0x104
lea ecx, [eax + 0x60]
push edx
push ecx
call 0xce7d01
add esp, 0xc
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4319ac
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp + 0x10]
lea esi, [eax + 0x164]
mov dl, byte [edi]
add edi, 1
mov byte [esi], dl
add esi, 1
test dl, dl
jne 0x43199e
push ebx
push 0x92
push 0xd272dc
push 0xd26b80
push 6
call fcn.0043336d
add esp, 0x14
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov dword [edx], ebx
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
push 0xd272ec
push 1
call fcn.0043336d
add esp, 8
mov ebx, 0x80070057
jmp 0x43198b