joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140254fe7
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov ecx, 1
call fcn.140255394
test al, al
je 0x140254fc7
xor sil, sil
mov byte [rsp + 0x20], sil
call fcn.140255358
mov bl, al
mov ecx, dword [0x140339c70]
cmp ecx, 1
je 0x140254fd2
test ecx, ecx
jne 0x140254efd
mov dword [0x140339c70], 1
lea rdx, [0x14025d9a0]
lea rcx, [0x14025d988]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
test eax, eax
je 0x140254ede
mov eax, 0xff
jmp 0x140254fb7
lea rdx, [0x14025d980]
lea rcx, [0x14025d970]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [0x140339c70], 2
jmp 0x140254f05
mov sil, 1
mov byte [rsp + 0x20], sil
mov cl, bl
call fcn.1402554f4
call fcn.1402556a8
mov rbx, rax
cmp qword [rax], 0
je 0x140254f38
mov rcx, rax
call fcn.14025545c
test al, al
je 0x140254f38
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [rbx]
call qword [0x14025d948]
call fcn.1402556b0
mov rbx, rax
cmp qword [rax], 0
je 0x140254f5a
mov rcx, rax
call fcn.14025545c
test al, al
je 0x140254f5a
mov rcx, qword [rbx]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_initial_narrow_environment
mov rdi, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argv
mov rbx, qword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argc
mov r8, rdi
mov rdx, rbx
mov ecx, dword [rax]
call main
mov ebx, eax
call fcn.140255810
test al, al
je 0x140254fdc
test sil, sil
jne 0x140254f91
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
xor edx, edx
mov cl, 1
call fcn.140255518
mov eax, ebx
jmp 0x140254fb7
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, 7
call fcn.1402556c0
nop
mov ecx, 7
call fcn.1402556c0
mov ecx, ebx
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
mov ecx, ebx
call sub.api_ms_win_crt_runtime_l1_1_0.dll__exit
nop
sub rsp, 0x28
call fcn.140255598
add rsp, 0x28
jmp 0x140254e70

Function at 0x140255810
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x14025585a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14025585a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14025585a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14025585a
cmp dword [rcx + 0x84], 0xe
jbe 0x14025585a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14025585c
xor al, al
add rsp, 0x28
ret
Function at 0x14025ae90
Capabilities:
Resolve dns

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov rbx, r9
mov rsi, rcx
lea rcx, [rbp - 0x28]
call fcn.140052a40
mov rax, qword [rbp - 0x28]
movabs rcx, 0x8000000000000000
cmp rax, rcx
jne 0x14025af19
mov rdi, qword [rbp - 0x20]
mov r14, qword [rbp - 0x18]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x60], xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x58], 1
mov qword [rbp - 8], 0
lea r8, [rbp - 0x60]
lea r9, [rbp - 8]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x14025af4b
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x14025af5f
lea rcx, str._0_
mov qword [rsi + 8], rcx
mov qword [rsi], 1
test rax, rax
je 0x14025af7b
mov rcx, qword [rbp - 0x20]
mov edx, 1
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp fcn.140050eb0
mov rcx, qword [rbx]
mov rax, qword [rbp - 8]
movzx ecx, word [rcx]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov byte [rdi], 0
test r14, r14
je 0x14025af7b
mov edx, 1
mov rcx, rdi
call fcn.140050eb0
nop
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x180007f10
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x180007f32
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x180007fac
mov rdi, r14
mov rcx, rbx
call fcn.180009440
test rax, rax
jle 0x180007f84
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.180050950
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x180007f9c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180007fa4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x180007f46
sub r14, rdi
jmp 0x18000808f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x180007fc3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180007fc5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180007ff7
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.180050950
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x18000808c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180008032
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x18000806d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.180033b34
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x18000808c
cmp rbp, rax
ja 0x180008040
test rbp, rbp
je 0x18000808c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.180033b34
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x18001cda0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
mov r10, rdx
test r9, r9
je 0x18001cf44
cmp r9, 4
jb 0x18001cdea
mov rdx, r9
shr rdx, 2
imul rax, rdx, 0xfffffffffffffffc
add r9, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [r10]
add r10, 4
xor eax, dword [r8]
add r8, 4
mov dword [rcx], eax
add rcx, 4
sub rdx, 1
jne 0x18001cdd0
xor r11d, r11d
test r9, r9
je 0x18001cf44
cmp r9, 8
jb 0x18001cf1d
lea rdx, [rcx - 1]
lea rax, [r8 - 1]
add rdx, r9
add rax, r9
cmp rcx, rax
ja 0x18001ce1c
cmp rdx, r8
jae 0x18001cf1d
lea rax, [r10 - 1]
add rax, r9
cmp rcx, rax
ja 0x18001ce31
cmp rdx, r10
jae 0x18001cf1d
mov qword [rsp + 0x10], rbx
mov qword [rsp], rdi
cmp r9, 0x40
jb 0x18001ced7
mov rdi, r9
mov qword [rsp + 0x18], rsi
and edi, 0x3f
mov rsi, r9
sub rsi, rdi
mov rdx, r10
lea rax, [r8 + 0x10]
sub rdx, r8
mov rbx, rcx
sub rbx, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rdx + rax - 0x10]
movdqu xmm2, xmmword [rdx + rax]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rbx + rax - 0x50], xmm1
xorps xmm2, xmm0
movdqu xmm0, xmmword [rax - 0x30]
movdqu xmm1, xmmword [rdx + rax - 0x30]
movdqu xmmword [rbx + rax - 0x40], xmm2
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm2, xmmword [rdx + rax - 0x20]
movdqu xmmword [rbx + rax - 0x30], xmm1
xorps xmm2, xmm0
movdqu xmmword [rbx + rax - 0x20], xmm2
cmp r11, rsi
jb 0x18001ce70
mov rsi, qword [rsp + 0x18]
cmp rdi, 8
jb 0x18001cf0f
mov rdx, r9
and rdx, 0xfffffffffffffff8
mov rbx, r10
lea rax, [r11 + r8]
sub rbx, r8
mov rdi, rcx
sub rdi, r8
nop
movq xmm1, qword [rax + rbx]
add r11, 8
movq xmm0, qword [rax]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rax + rdi - 8], xmm1
cmp r11, rdx
jb 0x18001cef0
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
cmp r11, r9
jae 0x18001cf44
sub r10, r8
lea rdx, [r11 + r8]
sub rcx, r8
sub r9, r11
nop word [rax + rax]
movzx eax, byte [rdx + r10]
xor al, byte [rdx]
mov byte [rdx + rcx], al
lea rdx, [rdx + 1]
sub r9, 1
jne 0x18001cf30
add rsp, 8
ret

Function at 0x18002177c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1800217b6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1800217bb
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x180021804
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x180059200]
cmp byte [rcx + rax], 0
je 0x180021804
dec r8
sub rdx, 1
jne 0x1800217ea
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x180032a3c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1800328ef
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800328ef
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1800328ef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1800328ef
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1800328ef
cmp dword [rcx + 0x84], 0xe
jbe 0x1800328ef
cmp dword [rcx + 0xf8], 0
je 0x1800328ef
mov ecx, ebx
call fcn.1800329a0
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.18003277c
nop
cmp dword [rbp + 0x20], 0
je 0x18003293d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180032948
int3
xor r8d, r8d
xor edx, edx
jmp 0x180032880

Function at 0x18003e6d4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18003e6ea
mov al, 1
jmp 0x18003e74a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18003e6fb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18003e748
mov ecx, dword [rcx + 0x18]
nop
call fcn.180049654
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18003e748
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18003e748
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18003e748
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18003e74a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x18003fdbc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.180023410
sub rsp, rax
mov rax, qword [0x180075240]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18003e1d8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18003fe0b
mov rax, rbp
jmp 0x18003ff13
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x7aa40]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18003f9f8
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x7aa40]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18003ff0f
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18003ff0f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18003f9f8
test rax, rax
js 0x18003ff0f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18003ff0f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18003ff01
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18003ff01
cmp byte [rcx], 0xd
jne 0x18003fee7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18003fef6
cmp byte [rcx + 1], 0xa
jne 0x18003fef6
inc rcx
jmp 0x18003fef6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x75680]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18003fec9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18003ff13
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1800228c0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180040190
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x18007aa40]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1800401e7
cmp word [rdx], r13w
jne 0x1800401e7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1800401ec
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180040311
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180040332
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180040225
mov rdx, r9
mov word [rbx], cx
jmp 0x18004024c
cmp r9, r8
jae 0x18004025c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x180040206
jmp 0x180040311
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180040306
cmp dword [rsp + 0x80], esi
je 0x180040306
lea r8, [0x18007aa40]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1800402de
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1800402ae
mov word [rbx], r13w
jmp 0x18004030e
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1800402bb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18004030e
cmp word [rsp + 0x70], r13w
jne 0x1800402eb
cmp rbx, r14
je 0x1800402a8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18003fa00
cmp word [rsp + 0x70], r13w
je 0x180040311
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x18007aa40]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18004030b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180040311
Function at 0x1800464b0
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1800464e0
xor eax, eax
jmp 0x1800465a3
mov rbp, rbx
cmp word [rax], si
je 0x180046505
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800464ec
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800464e8
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.180042260
movsxd r14, eax
test eax, eax
jne 0x180046543
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800464d9
mov rcx, r14
call fcn.180041f4c
mov rdi, rax
test rax, rax
jne 0x18004655c
xor ecx, ecx
call fcn.18003e19c
jmp 0x180046538
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180042260
test eax, eax
jne 0x18004658d
mov rcx, rdi
call fcn.18003e19c
jmp 0x180046597
xor ecx, ecx
call fcn.18003e19c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x18004dd38
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.18003fa00
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18003fa00
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18004de88
cmp rax, 0xffffffffffffffff
je 0x18004de88
xor edi, edi
test rbp, rbp
jle 0x18004de33
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18003f6d4
mov rbx, rax
test rax, rax
jne 0x18004ddc0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18004de29
mov edx, 0x8000
mov ecx, r14d
call fcn.18004dbbc
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.18003f3cc
cmp eax, 0xffffffff
je 0x18004de09
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18004ddd0
mov edx, r15d
mov ecx, r14d
call fcn.18004dbbc
jmp 0x18004de29
cmp byte [rsi + 0x38], dil
je 0x18004de20
cmp dword [rsi + 0x34], 5
jne 0x18004de20
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18004de29
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18003e19c
jmp 0x18004de9c
jns 0x18004de9c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18003fa00
cmp rax, 0xffffffffffffffff
jne 0x18004de54
cmp byte [rsi + 0x30], dil
je 0x18004de9c
mov edi, dword [rsi + 0x2c]
jmp 0x18004de9c
mov ecx, r14d
call fcn.180049654
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18004de9c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x18004de9c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18004de95
mov eax, dword [rsi + 0x2c]
jmp 0x18004de9a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18003fa00
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1800500e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x1800501e0
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ecx, dword [0x180075e90]
cmp ecx, 0xffffffff
jne 0x1800501fe
xor esi, esi
jmp 0x180050207
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov qword [rsp + 0x30], rsi
test rsi, rsi
je 0x1800502fb
cmp qword [rsi + 0x30], 0
jne 0x18005022d
cmp qword [rsi + 0x18], 0
je 0x1800502d4
mov rbx, qword [rsi + 0x18]
jmp 0x180050240
mov rbx, qword [rsi + 0x18]
test rbx, rbx
je 0x180050294
nop word [rax + rax]
mov rax, qword [rbx + 8]
mov qword [rsi + 0x18], rax
mov rcx, qword [rbx]
test rcx, rcx
je 0x180050277
mov rax, qword [rcx]
call qword [rax + 8]
mov rdi, qword [rbx]
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsi + 0x18]
test rbx, rbx
jne 0x180050240
cmp qword [rsi + 0x30], 0
je 0x18005021c
nop dword [rax + rax]
mov rbx, qword [rsi + 0x28]
mov rbx, qword [rbx]
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1800502bc
mov rdx, qword [rbx + 0x38]
test rdx, rdx
je 0x1800502bc
call qword [rbx + 0x28]
mov rdx, rbx
lea rcx, [rsi + 0x28]
call fcn.18004f580
cmp qword [rsi + 0x30], 0
jne 0x1800502a0
jmp 0x180050215
lea rdx, [0x18004fee0]
lea rcx, [0x18007b200]
call fcn.18004fa50
mov ecx, dword [0x180075e90]
cmp ecx, 0xffffffff
je 0x1800502fb
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
test rsi, rsi
je 0x18005032d
mov eax, 0xffffffff
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x18005032d
mov rax, qword [rsi]
xor edx, edx
mov rcx, rsi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180050400
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180050428
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180050428
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14001102d
Capabilities:
Create thread

Disassembly:
jmp 0x140012360
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x208
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x42
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x228]
mov rax, qword [0x14001f180]
xor rax, rbp
mov qword [rbp + 0x1b8], rax
lea rcx, [0x1400250a3]
call fcn.1400113ed
nop
mov qword [rbp + 8], 0
mov dword [rbp + 0x24], 0
lea rax, section..data
mov qword [rbp + 0x48], rax
mov dword [rbp + 0x64], 0x114
mov qword [rbp + 0x88], 0
mov qword [rbp + 0xa8], 0
mov dword [rbp + 0xc4], 0
mov qword [rbp + 0xe8], 0
mov edx, 0x10
lea rcx, str.___Sizeof_Rc4key__d
call fcn.1400111d1
nop
lea rcx, str.___DONE___n
call fcn.1400111d1
nop
mov r8d, dword [rbp + 0x64]
mov rdx, qword [rbp + 0x48]
lea rcx, str._i__Deobfuscated_Payload_At_:_0x_p_Of_Size_:__d__n
call fcn.1400111d1
nop
cmp dword [rbp + 0x1e0], 2
jge 0x140012461
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 0x1e8]
mov rdx, qword [rcx + rax]
lea rcx, str.____Usage_:___s___Process_Name___n
call fcn.140011032
nop
mov eax, 0xffffffff
jmp 0x1400125e7
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rbp + 0x1e8]
mov rdx, qword [rcx + rax]
lea rcx, str._i__Searching_For_Process_Id_Of___s__...
call fcn.140011032
nop
mov eax, 8
imul rax, rax, 1
lea r8, [rbp + 0x88]
lea rdx, [rbp + 0xc4]
mov rcx, qword [rbp + 0x1e8]
mov rcx, qword [rcx + rax]
call fcn.14001114f
test eax, eax
jne 0x1400124c4
lea rcx, str.____Process_is_Not_Found__n
call fcn.1400111d1
nop
mov eax, 0xffffffff
jmp 0x1400125e7
lea rcx, str.___DONE__n
call fcn.1400111d1
nop
mov edx, dword [rbp + 0xc4]
lea rcx, str.___Found_Target_Process_Pid:__d__n
call fcn.1400111d1
nop
lea rcx, str._i__Injecting_Target_Process_...__n
call fcn.1400111d1
nop
mov eax, dword [rbp + 0x64]
lea rcx, [rbp + 0xe8]
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0xa8]
mov r8d, eax
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x88]
call fcn.1400111a9
test eax, eax
jne 0x140012535
lea rcx, str.____FAILED__n
call fcn.1400111d1
nop
mov eax, 0xffffffff
jmp 0x1400125e7
lea rcx, str.___DONE__n
call fcn.1400111d1
nop
lea rcx, str.___Press__Enter__To_Run_The_Payload_...
call fcn.1400111d1
nop
call qword [sym.imp.ucrtbased.dll_getchar]
nop
mov r9d, dword [rbp + 0x64]
mov r8d, 0x10
mov rdx, qword [rbp + 0xe8]
lea rcx, [0x14001f118]
call fcn.140011190
test eax, eax
jne 0x14001257e
mov eax, 0xffffffff
jmp 0x1400125e7
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, qword [rbp + 0xa8]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x1400125d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____CreateRemoteThread_Failed_With_Error_:__d__n
call fcn.1400111d1
nop
lea rcx, str.___Press__Enter__To_Quit_...
call fcn.1400111d1
nop
call qword [sym.imp.ucrtbased.dll_getchar]
nop
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x14001bf60]
call fcn.140011370
mov rax, rdi
mov rcx, qword [rbp + 0x1b8]
xor rcx, rbp
call fcn.1400111f4
lea rsp, [rbp + 0x1c8]
pop rdi
pop rbp
ret