joyce8/EMBER2024-capa huggingface dataset:
Function at 0x466330
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x466383
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x46636a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46cd10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49960e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0046d630
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x4a31bc
call fcn.0048af0e
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x46cda3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0048af0e
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x46cd9c
push 0
mov ecx, eax
call fcn.00463eb0
mov dword [esi + 0xc], eax
jmp 0x46cda5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x46cda5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x48d574
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48d5ac
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0048b628
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048b600
jmp 0x48d5b8
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48ec62
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x48eca4
call fcn.0049471b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48eca4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48ec9b
xor eax, eax
jmp 0x48ecac
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048ecb2
pop edi
pop esi
pop ebx
ret 4
Function at 0x494c4b
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x494c79
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x494c97
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00494bb1
jmp 0x494c97
mov eax, dword [esi + 0x14]
test eax, eax
je 0x494c97
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00494bb1
test edi, edi
mov eax, edi
jne 0x494c81
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x67801620
Capabilities:
Check if process is running under wine

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x20
lea eax, [ebp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], str.SoftwareWineCryptoDSS_s
mov dword [esp + 0xc], 0x7fffffff
mov dword [esp + 8], eax
mov dword [esp], 5
mov dword [esp + 4], 0
call dword [sym.imp.ucrtbase.dll___stdio_common_vsprintf]
mov edx, 0xffffffff
leave
test eax, eax
cmovs eax, edx
ret

Function at 0x67801670
Capabilities:
Check if process is running under wine

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x138]
mov esi, edx
push ebx
mov ebx, eax
lea eax, [eax + 0x10]
sub esp, 0x15c
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.SoftwareWineCryptoDSS_s
call fcn.67801620
xor eax, eax
test byte [ebx + 4], 0x20
mov dword [esp + 0x1c], esi
setne al
mov dword [esp + 4], edi
sub eax, 0x7fffffff
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x20006
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCreateKeyExA]
sub esp, 0x24
test eax, eax
sete al
lea esp, [ebp - 0xc]
pop ebx
movzx eax, al
pop esi
pop edi
pop ebp
ret

Function at 0x67801780
Capabilities:
Check if process is running under wine

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x138]
mov esi, edx
push ebx
mov ebx, ecx
sub esp, 0x14c
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.SoftwareWineCryptoDSS_s
call fcn.67801620
xor eax, eax
and esi, 0x20
mov dword [esp + 0x10], ebx
setne al
mov dword [esp + 4], edi
sub eax, 0x7fffffff
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
sete al
lea esp, [ebp - 0xc]
pop ebx
movzx eax, al
pop esi
pop edi
pop ebp
ret
Function at 0x678019b0
Capabilities:
Encrypt data using dpapi
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x2c]
mov esi, str.KeyExchangeKeyPair
push ebx
mov ebx, eax
mov eax, str.SignatureKeyPair
sub esp, 0x5c
cmp ecx, 2
mov dword [ebp - 0x3c], edx
cmove esi, eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.V2CAPIDSAPRIVATEBLOB
mov dword [esp + 4], 0
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call sub.bcrypt.dll_BCryptExportKey
sub esp, 0x1c
test eax, eax
je 0x67801a20
lea esp, [ebp - 0xc]
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebp - 0x2c]
mov dword [esp], ecx
mov dword [ebp - 0x40], ecx
call dword [sym.imp.ucrtbase.dll_malloc]
test eax, eax
je 0x67801a0f
mov ecx, dword [ebp - 0x40]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov dword [ebp - 0x40], eax
mov dword [esp + 8], str.V2CAPIDSAPRIVATEBLOB
mov dword [esp + 4], 0
mov eax, dword [ebx + 0xc]
mov ebx, 1
mov dword [esp], eax
call sub.bcrypt.dll_BCryptExportKey
mov edx, dword [ebp - 0x40]
sub esp, 0x1c
test eax, eax
je 0x67801a90
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], edx
mov dword [esp + 0x10], 0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x28]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.crypt32.dll_CryptProtectData]
mov edx, dword [ebp - 0x40]
sub esp, 0x1c
test eax, eax
mov ebx, eax
je 0x67801a77
mov eax, dword [ebp - 0x20]
mov dword [esp + 0xc], 3
xor ebx, ebx
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], esi
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
test eax, eax
mov eax, dword [ebp - 0x1c]
sete bl
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LocalFree]
mov edx, dword [ebp - 0x40]
sub esp, 4
jmp 0x67801a77
Function at 0x67801bc0
Capabilities:
Encrypt data using dpapi
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x2c]
lea esi, [ebp - 0x30]
push ebx
mov ebx, str.SignatureKeyPair
sub esp, 0x6c
mov dword [ebp - 0x3c], eax
cmp edx, 2
mov eax, str.KeyExchangeKeyPair
cmovne ebx, eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x44], ecx
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [ebp - 0x40], eax
call eax
sub esp, 0x18
test eax, eax
jne 0x67801c78
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
test eax, eax
je 0x67801c78
mov dword [esp + 0x10], eax
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0x14], edi
mov dword [esp], eax
mov eax, dword [ebp - 0x40]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
call eax
mov ecx, dword [ebp - 0x48]
sub esp, 0x18
test eax, eax
je 0x67801c88
mov ebx, dword [sym.imp.ucrtbase.dll_free]
xor edi, edi
mov dword [esp], ecx
call ebx
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
xor edi, edi
pop ebx
mov eax, edi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x28]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.crypt32.dll_CryptUnprotectData]
mov ecx, dword [ebp - 0x3c]
sub esp, 0x1c
test eax, eax
je 0x67801c5b
mov eax, dword [ebp - 0x4c]
xor edx, edx
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
call fcn.678018a0
mov ecx, dword [ebp - 0x3c]
test eax, eax
mov edi, eax
je 0x67801d81
lea eax, [eax + 0xc]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.V2CAPIDSAPRIVATEBLOB
mov dword [esp + 4], 0
mov dword [esp], 0x2d1
mov dword [ebp - 0x3c], ecx
call sub.bcrypt.dll_BCryptImportKeyPair
mov ebx, dword [sym.imp.ucrtbase.dll_free]
mov ecx, dword [ebp - 0x3c]
sub esp, 0x1c
test eax, eax
jne 0x67801d55
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], ecx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LocalFree]
mov ecx, dword [ebp - 0x3c]
sub esp, 4
jmp 0x67801c63
test byte [0x67805018], 4
jne 0x67801d89
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x3c], ecx
mov dword [esp], eax
call sub.bcrypt.dll_BCryptDestroyKey
mov ebx, dword [sym.imp.ucrtbase.dll_free]
sub esp, 4
mov dword [esp], edi
xor edi, edi
call ebx
mov ecx, dword [ebp - 0x3c]
jmp 0x67801d3b
mov ebx, dword [sym.imp.ucrtbase.dll_free]
jmp 0x67801d3b
mov dword [esp + 0xc], str.failed_to_import_key_n
mov dword [esp + 8], str.import_key
mov dword [esp + 4], 0x67805018
mov dword [esp], 2
call fcn.67801850
mov ecx, dword [ebp - 0x3c]
jmp 0x67801d5e
Function at 0x67803150
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x28
mov ebx, dword [ecx]
mov edi, dword [ecx + 4]
mov esi, dword [ecx + 8]
test byte [0x67805018], 8
jne 0x67803190
xor eax, eax
cmp dword [ebx], 0x434f4e54
je 0x678031ca
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str._p___lu___p_n
mov dword [esp + 8], str.CPGenRandom
mov dword [esp + 4], 0x67805018
mov dword [esp], 3
call fcn.67801850
xor eax, eax
cmp dword [ebx], 0x434f4e54
jne 0x6780317f
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.advapi32.dll_SystemFunction036]
sub esp, 8
lea esp, [ebp - 0x10]
movzx eax, al
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc

Function at 0x678035c0
Capabilities:
Hash data via bcrypt

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x38
mov eax, dword [ecx]
mov ebx, dword [ecx + 4]
mov esi, dword [ecx + 8]
mov edi, dword [ecx + 0xc]
mov edx, dword [ecx + 0x10]
test byte [0x67805018], 8
jne 0x67803658
xor eax, eax
cmp dword [ebx], 0x48415348
jne 0x6780360a
mov edx, dword [ebx + 0x4c]
test edx, edx
je 0x67803620
mov edx, dword fs:[0x18]
mov dword [edx + 0x34], 0x8009000c
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x14
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp + 0xc], 0
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sub.bcrypt.dll_BCryptHashData
sub esp, 0x10
test eax, eax
sete al
lea esp, [ebp - 0x10]
pop ecx
movzx eax, al
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x14
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._p___p___p___lu___08lx_n
mov dword [esp + 8], str.CPHashData
mov dword [esp + 4], 0x67805018
mov dword [esp], 3
call fcn.67801850
jmp 0x678035eb
Function at 0x67804840
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x22c
mov eax, dword [0x678090c0]
test eax, eax
je 0x678048f8
mov dword [esp], ebx
call eax
mov dword [ebx + 8], eax
sub esp, 4
test eax, eax
jns 0x67804880
mov eax, dword [ebx]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x220]
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 0x6780486c
mov dword [esp], str.atl100.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
test eax, eax
je 0x6780492d
mov dword [esp + 4], 0x67807634
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x678090c0], eax
sub esp, 8
test eax, eax
jne 0x6780485d
mov dword [ebx + 8], 0x80004002
xor eax, eax
jmp 0x6780486e
Function at 0x40102b
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa4
mov dword [ebp - 0x88], 1
call fcn.00401e67
test eax, eax
jne 0x4010c5
lea eax, [ebp - 0x8c]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], eax
mov eax, 0x403148
sub eax, 0x4026e6
mov dword [esp], 0x4026e6
mov dword [esp + 4], eax
mov dword [ebp - 0x8c], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x4010c5
lea ebx, [ebp - 0x88]
mov dword [esp], 0
jmp loc.004637a4
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x401e67
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x250
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [esp], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
call ebx
push edx
mov dword [ebp - 0x228], eax
call esi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x21c], 6
push ecx
push ecx
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x218], 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push esi
push esi
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [ebp - 0x220], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push edx
push edx
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x238]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_RegisterClassW]
push ecx
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
mov dword [esp], 0
call ebx
lea ebx, [ebp - 0x210]
push edx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
push ecx
push ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1a
mov dword [esp], 0
call dword [sym.imp.SHELL32.DLL_SHGetFolderPathW]
sub esp, 0x14
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx - 5]
push esi
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x423004]
jne 0x40100a
repz ret
jmp fcn.004011ef

Function at 0x4030bb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x423004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040206e
and dword [ebp - 0x14], 0
cmp dword [0x425aac], 0
mov dword [ebp - 0x18], eax
jne 0x40316e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x403216
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x403216
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x425aac], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x425ab0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x425ab4], eax
call edi
push eax
call esi
mov dword [0x425abc], eax
test eax, eax
je 0x40316e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x425ab8], eax
mov eax, dword [0x425ab8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4031c7
cmp dword [0x425abc], ecx
je 0x4031c7
push eax
call esi
push dword [0x425abc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4031c7
test ebx, ebx
je 0x4031c7
call edi
test eax, eax
je 0x4031be
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4031be
test byte [ebp - 8], 1
jne 0x4031c7
or dword [ebp + 0x10], 0x200000
jmp 0x4031fa
mov eax, dword [0x425ab0]
cmp eax, dword [ebp - 0x18]
je 0x4031fa
push eax
call esi
test eax, eax
je 0x4031fa
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4031fa
mov eax, dword [0x425ab4]
cmp eax, dword [ebp - 0x18]
je 0x4031fa
push eax
call esi
test eax, eax
je 0x4031fa
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x425aac]
call esi
test eax, eax
je 0x403216
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x403218
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x4054d0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x423b10]
sub esp, 0x10
push esi
mov esi, dword [0x46ae70]
push edi
mov edi, dword [0x46b14c]
push eax
call fcn.004053c0
add esp, 4
cmp dword [0x46b14c], 0x2f
jne 0x405530
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.Bihux_nivew_zuziduzaz_winojego_roli
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
push esi
call fcn.00405410
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4057b0
Capabilities:
Get file size

Disassembly:
mov eax, dword [0x46b14c]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
xor esi, esi
nop
cmp eax, 0x8cf
jne 0x4057d2
push 0
push 0
call edi
mov eax, dword [0x46b14c]
cmp esi, 0x845013
jne 0x4057e9
mov eax, dword [0x424930]
add eax, 0xa231
mov dword [0x46b14c], eax
cmp eax, 0x141
jne 0x405804
mov dword [0x425fe8], 0xec58acac
mov dword [0x425fec], 0xffffffff
inc esi
cmp esi, 0xbbe2a98
jl 0x4057c0
call fcn.00405540
pop edi
xor eax, eax
pop esi
ret 0x10
Function at 0x10004590
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
mov edi, edx
xor eax, eax
shr edi, 2
mov ebx, ecx
test edi, edi
je 0x10004682
cmp edi, 0x10
jb 0x10004662
movaps xmm3, xmmword [0x10097f60]
mov ecx, edi
and ecx, 0xf
mov edx, edi
sub edx, ecx
lea ecx, [ebx + 0x20]
nop
movups xmm2, xmmword [ecx - 0x20]
add eax, 0x10
lea ecx, [ecx + 0x40]
movaps xmm1, xmm2
psrld xmm1, 0x10
xorps xmm1, xmm2
andps xmm1, xmm3
movaps xmm0, xmm1
pslld xmm0, 0x10
orps xmm0, xmm1
xorps xmm0, xmm2
movups xmmword [ecx - 0x60], xmm0
movups xmm2, xmmword [ecx - 0x50]
movaps xmm1, xmm2
psrld xmm1, 0x10
xorps xmm1, xmm2
andps xmm1, xmm3
movaps xmm0, xmm1
pslld xmm0, 0x10
orps xmm0, xmm1
xorps xmm0, xmm2
movups xmmword [ecx - 0x50], xmm0
movups xmm2, xmmword [ecx - 0x40]
movaps xmm1, xmm2
psrld xmm1, 0x10
xorps xmm1, xmm2
andps xmm1, xmm3
movaps xmm0, xmm1
pslld xmm0, 0x10
orps xmm0, xmm1
xorps xmm0, xmm2
movups xmmword [ecx - 0x40], xmm0
movups xmm2, xmmword [ecx - 0x30]
movaps xmm1, xmm2
psrld xmm1, 0x10
xorps xmm1, xmm2
andps xmm1, xmm3
movaps xmm0, xmm1
pslld xmm0, 0x10
orps xmm0, xmm1
xorps xmm0, xmm2
movups xmmword [ecx - 0x30], xmm0
cmp eax, edx
jb 0x100045c0
cmp eax, edi
jae 0x10004682
push esi
mov esi, dword [ebx + eax*4]
mov ecx, esi
shr ecx, 0x10
xor ecx, esi
movzx ecx, cl
mov edx, ecx
shl edx, 0x10
or edx, ecx
xor edx, esi
mov dword [ebx + eax*4], edx
inc eax
cmp eax, edi
jb 0x10004663
pop esi
pop edi
pop ebx
ret