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

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x4f894fc1
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x4f894fd2
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.4f895013
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx

Function at 0x4f89737f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x4f8972c8
add ebx, 0
push ecx
call 0x4f8972dd
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x720b1203
sub ebx, dword [0x720d0a42]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x720d0a32
call fcn.4f892da7
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.4f8922b5
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x4f89743b
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x4f89743b
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x4f8973f2
mov eax, 1
lock xchg dword [0x720d0a3e], eax
push 0x3dd1fc71
call 0x4f89737f
push esi
add esp, 8
cmp eax, 0
jne 0x4f897368
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x4f89738e
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x4f8973a3
cmp ecx, edx
cmp eax, 0
je 0x4f8973c8
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x4f8973b2
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.4f8973e1
dec eax
loope 0x4f8973e4
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x720d0a3e], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x4f897418
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x4f89742d
jmp 0x4f897438
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x4f897326
Function at 0x4f89e4a0
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x4f89e776
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x720bd6b6
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x720b467c
push 0xffffffffffffffff
call fcn.4f8956a0
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x4f89e50a
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.4f89e522
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x4f89e76a
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x4f89e73e
Function at 0x4f8adf70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x4f8adf92
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x4f8adf92
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x4f8adf92
ret
cmp word [ebx + 4], 0x14c
jne 0x4f8adf92
test word [ebx + 0x16], 2
je 0x4f8adf92
test word [ebx + 0x16], 0x100
je 0x4f8adf92
cmp word [ebx + 0x18], 0x10b
jne 0x4f8adf92
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x4f8adf92
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x4f8ae01e
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x4f8adfb2
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.4f894efd
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x4f8adf92
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x4f8ae01e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x4f8adf92
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x4f8adf92
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x4f8adf92
ret
cmp word [ebx + 4], 0x14c
jne 0x4f8adf92
test word [ebx + 0x16], 2
je 0x4f8adf92
test word [ebx + 0x16], 0x100
je 0x4f8adf92
cmp word [ebx + 0x18], 0x10b
jne 0x4f8adf92
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x4f8adf92
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x4f8ae01e
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x4f8adfb2
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.4f894efd
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x4f8adf92
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x4f8ae0d5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x4f8ae12e
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x4f8ae0d5
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x4f8ae0e4
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x4fcb3d87
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x4f8ae135
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.4f894fab
cmp eax, dword [ebp + 0xc]
pop eax
je 0x4f8ae1d4
add edi, 4
add eax, 2
dec ecx
jne 0x4f8ae11a
call 0x4f8ae181
loope 0x4f8ae177
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x4f8ae1d1
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x4f8ae1e2
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x4f8ae195
cmp eax, ecx
ja 0x4f8ae195
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x4f8ae21f
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x4f8ae215
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.4f89548a
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x4f8ae0e4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x4f8ae12e
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x4f8ae0d5
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x4f8ae0e4
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x4fcb3d87
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x4f8ae135
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.4f894fab
cmp eax, dword [ebp + 0xc]
pop eax
je 0x4f8ae1d4
add edi, 4
add eax, 2
dec ecx
jne 0x4f8ae11a
call 0x4f8ae181
loope 0x4f8ae177
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x4f8ae1d1
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x4f8ae1e2
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x4f8ae195
cmp eax, ecx
ja 0x4f8ae195
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x4f8ae21f
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x4f8ae215
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.4f89548a
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0xcd8f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0xced9fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0xcd9002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00cdcdff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xcd9002
lea edx, [esp + 0x14]
push edx
push 0xcf3140
call fcn.00cd46e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00cdd20b
push 0x10
call fcn.00cdd1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xcd8fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.00cc91c0
jmp 0xcd8fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00cd8b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xcd8ff0
mov ecx, edi
call fcn.00cc92c0
push edi
call fcn.00cdd1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xcd9021
inc ebx
cmp ebx, 0x20
jb 0xcd8f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xcdc1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00cdc140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00cdc140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00cdc140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00cdc140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xcdc230
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x20c
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0x218]
push ebp
mov ebp, dword [esp + 0x218]
push esi
push eax
push 0xf003f
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xcdc2d6
mov edx, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea ecx, [esp + 0x14]
push 0x104
push ecx
push eax
push edx
call edi
mov esi, eax
test esi, esi
jne 0xcdc2ae
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.00cdc230
mov esi, eax
add esp, 8
test esi, esi
jne 0xcdc2ae
lea edx, [esp + 0x14]
push 0x104
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call edi
mov esi, eax
test esi, esi
je 0xcdc27e
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0x103
pop edi
je 0xcdc2ce
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret

Function at 0xcdcbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xcdcc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xcee87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xcdcc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xcdcc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x40114a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x822004]
jne 0x401154
repz ret
jmp fcn.00401ea9

Function at 0x412f1e
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.00408036
and dword [ebp - 4], 0
cmp dword [0x824d9c], 0
mov ebx, eax
jne 0x412fcf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x413080
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x413080
push eax
call fcn.00407fc4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x824d9c], eax
call esi
push eax
call fcn.00407fc4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x824da0], eax
call esi
push eax
call fcn.00407fc4
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x824da4], eax
call esi
push eax
call fcn.00407fc4
pop ecx
mov dword [0x824dac], eax
test eax, eax
je 0x412fcf
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00407fc4
pop ecx
mov dword [0x824da8], eax
mov eax, dword [0x824da8]
cmp eax, ebx
je 0x413027
cmp dword [0x824dac], ebx
je 0x413027
push eax
call fcn.0040803f
push dword [0x824dac]
mov esi, eax
call fcn.0040803f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x413027
test edi, edi
je 0x413027
call esi
test eax, eax
je 0x41301e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41301e
test byte [ebp - 0xc], 1
jne 0x413027
or dword [ebp + 0x10], 0x200000
jmp 0x413060
mov eax, dword [0x824da0]
cmp eax, ebx
je 0x413060
push eax
call fcn.0040803f
pop ecx
test eax, eax
je 0x413060
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x413060
mov eax, dword [0x824da4]
cmp eax, ebx
je 0x413060
push eax
call fcn.0040803f
pop ecx
test eax, eax
je 0x413060
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x824d9c]
call fcn.0040803f
pop ecx
test eax, eax
je 0x413080
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x413082
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x8148b0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 8
mov dword [esp], 0x20
add dword [esp], 0x20
mov al, 0x65
mov byte [0x824e89], al
mov byte [0x824e8c], al
mov al, 0x6c
push 0x824e88
mov byte [0x824e88], 0x6b
mov byte [0x824e8a], 0x72
mov byte [0x824e8b], 0x6e
mov byte [0x824e8d], al
mov byte [0x824e8e], 0x33
mov byte [0x824e8f], 0x32
mov byte [0x824e90], 0x2e
mov byte [0x824e91], 0x64
mov byte [0x824e92], al
mov byte [0x824e93], al
mov byte [0x824e94], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [0x826670]
mov edx, dword [0x825388]
lea eax, [esp + 4]
push eax
push 0x40
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 8
ret
Function at 0x814b50
Capabilities:
Clear file content
Create pipe

Disassembly:
mov eax, dword [0x826670]
sub esp, 0xc
push ebx
mov ebx, dword [0x825388]
push edi
mov edi, eax
cmp eax, 0x5dd
jne 0x814b71
push 0
call dword [sym.imp.KERNEL32.dll_LocalHandle]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push ecx
call fcn.00814a40
add esp, 4
cmp dword [0x826670], 0x2f
jne 0x814be8
xor eax, eax
xor edx, edx
mov word [esp + 0x12], ax
xor ecx, ecx
mov word [esp + 0xa], dx
lea eax, [esp + 8]
push eax
mov word [esp + 0xc], cx
mov ecx, dword [esp + 0xc]
push ecx
mov word [esp + 0x18], dx
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputW]
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.xamasu
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push 0
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
call fcn.00814ab0
cmp dword [0x826670], 0x568
pop edi
pop ebx
jne 0x814c03
push 0
call dword [sym.imp.KERNEL32.dll_GlobalDeleteAtom]
add esp, 0xc
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x5b265f
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x6ee903c2
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401f09
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0x20
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
ret

Function at 0x401f20
Capabilities:
Accept command line arguments

Disassembly:
push esi
push edi
push 0x1f4
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push edi
call sub.MSVCRT.dll_strcpy
cmp byte [edi], 0x22
pop ecx
pop ecx
jne 0x401f44
inc edi
xor eax, eax
cmp byte [eax + edi], 0x22
jne 0x401f50
and byte [eax + edi], 0
inc eax
cmp eax, 0x1f3
jl 0x401f46
push edi
xor esi, esi
call sub.MSVCRT.dll_strlen
sub eax, 4
pop ecx
test eax, eax
jle 0x401fe4
mov cl, byte [esi + edi]
cmp cl, 0x2e
jne 0x401fd5
mov al, byte [esi + edi + 1]
cmp al, 0x65
je 0x401f7c
cmp al, 0x45
jne 0x401fa0
mov al, byte [esi + edi + 2]
cmp al, 0x78
je 0x401f88
cmp al, 0x58
jne 0x401fa0
mov al, byte [esi + edi + 3]
cmp al, 0x65
je 0x401f94
cmp al, 0x45
jne 0x401fa0
mov al, byte [esi + edi + 4]
cmp al, 0x20
je 0x401fe4
test al, al
je 0x401fe4
cmp cl, 0x2e
jne 0x401fd5
mov al, byte [esi + edi + 1]
cmp al, 0x73
je 0x401fb1
cmp al, 0x53
jne 0x401fd5
mov al, byte [esi + edi + 2]
cmp al, 0x63
je 0x401fbd
cmp al, 0x43
jne 0x401fd5
mov al, byte [esi + edi + 3]
cmp al, 0x72
je 0x401fc9
cmp al, 0x52
jne 0x401fd5
mov al, byte [esi + edi + 4]
cmp al, 0x20
je 0x401fe4
test al, al
je 0x401fe4
push edi
inc esi
call sub.MSVCRT.dll_strlen
sub eax, 4
pop ecx
cmp esi, eax
jl 0x401f68
push edi
call sub.MSVCRT.dll_strlen
sub eax, 4
pop ecx
cmp esi, eax
jl 0x40200b
push edi
push dword [esp + 0x10]
call sub.MSVCRT.dll_strcpy
push edi
push dword [esp + 0x1c]
call sub.MSVCRT.dll_strcpy
add esp, 0x10
jmp 0x402042
push ebx
mov ebx, dword [esp + 0x10]
push edi
push ebx
call sub.MSVCRT.dll_strcpy
add esi, 3
pop ecx
pop ecx
lea eax, [esi + ebx]
mov byte [eax + 1], 0
js 0x402035
mov edx, edi
lea ecx, [esi + 1]
sub edx, ebx
mov bl, byte [edx + eax]
mov byte [eax], bl
dec eax
dec ecx
jne 0x40202c
push edi
push dword [esp + 0x18]
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
pop ebx
dec edi
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
pop esi
ret

Function at 0x41e51b
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
mov esi, ecx
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
test eax, eax
jne 0x41e54b
mov ecx, esi
call fcn.0041e504
mov ecx, dword [ebp - 4]
mov dword [esi], ecx
pop esi
leave
ret 0xc
Function at 0x41e69b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
push ebx
push esi
push edi
mov edi, 0x20019
push edi
xor esi, esi
push 0x403204
push 0x80000002
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], esi
call fcn.0041e51b
mov ebx, eax
cmp ebx, esi
jne 0x41e6ed
push edi
push 0x403210
push dword [ebp - 0x10]
lea ecx, [ebp - 0xc]
call fcn.0041e51b
mov ebx, eax
cmp ebx, esi
je 0x41e714
lea ecx, [ebp - 8]
call fcn.0041e504
lea ecx, [ebp - 4]
call fcn.0041e504
lea ecx, [ebp - 0xc]
call fcn.0041e504
lea ecx, [ebp - 0x10]
call fcn.0041e504
mov eax, ebx
jmp 0x41e82b
push edi
push 0x40321c
push dword [ebp - 0xc]
lea ecx, [ebp - 4]
call fcn.0041e51b
mov edi, eax
cmp edi, esi
jne 0x41e809
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
mov ecx, 0x200
lea edi, [ebp - 0x814]
push 0x800
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x814]
push eax
push esi
push dword [ebp - 4]
call ebx
mov edi, eax
cmp edi, esi
jne 0x41e809
inc dword [ebp - 0x14]
push 9
mov edi, 0x40322c
lea esi, [ebp - 0x814]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x41e7a0
mov ecx, 0x200
lea edi, [ebp - 0x814]
push 0x800
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x814]
push eax
push dword [ebp - 0x14]
push dword [ebp - 4]
call ebx
mov edi, eax
test edi, edi
je 0x41e760
jmp 0x41e809
push 0x2001f
lea eax, [ebp - 0x814]
push eax
push dword [ebp - 4]
lea ecx, [ebp - 8]
call fcn.0041e51b
mov esi, eax
test esi, esi
je 0x41e7e1
lea ecx, [ebp - 8]
call fcn.0041e504
lea ecx, [ebp - 4]
call fcn.0041e504
lea ecx, [ebp - 0xc]
call fcn.0041e504
lea ecx, [ebp - 0x10]
call fcn.0041e504
mov eax, esi
jmp 0x41e82b
mov eax, dword [ebp + 8]
push 4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 4
push 0
push 0x403238
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [ebp - 8]
mov edi, eax
call fcn.0041e504
lea ecx, [ebp - 8]
call fcn.0041e504
lea ecx, [ebp - 4]
call fcn.0041e504
lea ecx, [ebp - 0xc]
call fcn.0041e504
lea ecx, [ebp - 0x10]
call fcn.0041e504
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret