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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140014c60], rbx
je 0x14000c4a3
cmp rax, rbx
jne 0x14000c496
mov ebx, 1
mov esi, ebx
jmp 0x14000c4a8
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14000c47b
mov ebx, 1
mov eax, dword [0x140014c68]
cmp eax, ebx
jne 0x14000c4c0
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14000c52c
mov eax, dword [0x140014c68]
test eax, eax
jne 0x14000c521
mov dword [0x140014c68], ebx
lea r15, [0x14000eba0]
lea rdi, [0x14000eb88]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14000c513
test eax, eax
jne 0x14000c517
cmp qword [rdi], r14
je 0x14000c508
mov rax, qword [rdi]
mov rcx, qword [0x14000eb40]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000c4ea
test eax, eax
je 0x14000c527
mov eax, 0xff
jmp 0x14000c682
mov dword [0x1400143e4], ebx
mov edi, 0x1f
mov eax, dword [0x140014c68]
cmp eax, ebx
jne 0x14000c553
lea rdx, [0x14000eb80]
lea rcx, [0x14000eb48]
call sub.msvcrt.dll__initterm
mov dword [0x140014c68], 2
test esi, esi
jne 0x14000c561
mov rax, r14
xchg qword [0x140014c60], rax
cmp qword [0x140014c80], r14
je 0x14000c594
lea rcx, [0x140014c80]
call fcn.14000ca70
test eax, eax
je 0x14000c594
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140014c80]
mov r9, qword [0x14000eb40]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000c5ad
mov eax, 0xff
jmp 0x14000c682
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14000c633
test ax, ax
je 0x14000c5c8
test edx, edx
jne 0x14000c633
sub ax, bx
cmp ax, di
ja 0x14000c5de
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14000c5c8
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140001878
mov dword [0x1400143e0], eax
cmp dword [0x140014400], r14d
jne 0x14000c61c
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400143e4], r14d
jne 0x14000c631
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400143e0]
jmp 0x14000c682
cmp ax, 0x22
jne 0x14000c647
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000c5b6
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.140197000
add rsp, 0x28
jmp 0x14000c43c
Function at 0x1400041fc
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 8], 0
cmp qword [rbp + 0x18], 0
je 0x14000422c
mov rax, qword [rbp + 0x18]
mov rcx, rax
call fcn.1400041c6
mov rcx, rax
jmp 0x140004231
mov ecx, 0
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov r9, rdx
mov r8, rcx
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sub.msvcrt.dll_fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140008eb8
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp - 8], 0
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sub.msvcrt.dll_fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140009fe5
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
call fcn.140004381
mov qword [rbp - 0x10], rax
lea rax, [0x140034120]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov qword [rbp - 0x18], 0
mov qword [rbp - 8], 0
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x18]
jge 0x14000a08c
mov rax, qword [rbp - 8]
shl rax, 4
mov rdx, rax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov ecx, 1
mov rax, qword [fcn.140026740]
call rax
mov rcx, rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rax + 8]
mov rax, qword [rax]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rdx
lea rax, [rbp - 0x40]
mov r8d, 0
mov rdx, rax
call fcn.140009e60
mov rax, qword [rbp - 0x10]
movzx eax, byte [rax]
movzx eax, al
test eax, eax
jne 0x14000a0f9
add qword [rbp - 8], 1
jmp 0x14000a021
nop
mov qword [rbp - 0x20], 0
mov ecx, 1
mov rax, qword [fcn.140026740]
call rax
mov r9, rax
mov r8d, 1
mov edx, 1
lea rax, [0x1400285a9]
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x24], 0
mov ecx, 1
mov rax, qword [fcn.140026740]
call rax
mov rcx, rax
call sub.msvcrt.dll_fflush
mov dword [rbp - 0x24], eax
lea rax, [0x140034120]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000a0fa
nop
nop
add rsp, 0x60
pop rbp
ret
Function at 0x140011c32
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov qword [rbp + 0x20], rcx
mov rbx, rdx
mov rax, qword [rbx]
mov rdx, qword [rbx + 8]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
call fcn.1400114bc
mov qword [rbp - 0x18], rax
mov qword [rbp - 8], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x28], 0
mov rax, qword [rbp + 0x20]
mov rax, qword [rax]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x30]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x10], 0
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x28]
jge 0x140011d90
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x20], rax
mov byte [rbp - 0x31], 0
mov rax, qword [rbp - 0x48]
test rax, rax
je 0x140011ce2
mov r8, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x48]
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 8]
mov rax, qword [rbp - 0x20]
add rax, rcx
add rax, 8
movzx eax, byte [rax]
movzx eax, al
mov ecx, eax
call r8
movzx eax, al
test eax, eax
setne al
jmp 0x140011d0b
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 8]
mov rax, qword [rbp - 0x20]
add rax, rcx
add rax, 8
movzx eax, byte [rax]
movzx eax, al
mov ecx, eax
call rdx
movzx eax, al
test eax, eax
setne al
mov byte [rbp - 0x31], al
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax]
movzx eax, al
test eax, eax
jne 0x140011da3
movzx eax, byte [rbp - 0x31]
xor eax, 1
test al, al
jne 0x140011d85
mov rax, qword [rbp - 8]
cmp rax, qword [rbp - 0x20]
je 0x140011d7d
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax + 8]
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 8]
mov rax, qword [rbp - 0x20]
add rax, rdx
add rax, 8
movzx eax, byte [rax]
mov rdx, qword [rbp - 8]
add rdx, rcx
add rdx, 8
mov byte [rdx], al
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x20]
add rax, rdx
add rax, 8
mov rcx, rax
call fcn.14000b1d6
jmp 0x140011d7e
nop
add qword [rbp - 8], 1
jmp 0x140011d86
nop
add qword [rbp - 0x10], 1
jmp 0x140011c8f
nop
mov rdx, qword [rbp - 8]
mov rax, qword [rbp + 0x20]
mov rcx, rax
call fcn.14000af25
jmp 0x140011da4
nop
nop
add rsp, 0x78
pop rbx
pop rbp
ret
Function at 0x14001b3b7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
call fcn.14001ac93
mov qword [rbp - 0x20], rax
mov qword [rbp - 8], 0
cmp qword [rbp + 0x18], 0
je 0x14001b4b9
nop
mov rax, qword [rbp + 0x18]
mov qword [rbp - 0x28], rax
cmp qword [rbp - 0x28], 0xffffffffffffffff
jne 0x14001b42a
mov qword [rbp - 0x30], 0
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.14001afdc
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x20]
movzx eax, byte [rax]
movzx eax, al
test eax, eax
jne 0x14001b4bc
mov rax, qword [rbp - 0x30]
mov qword [rbp - 8], rax
jmp 0x14001b4c0
nop
mov qword [rbp - 0x10], 0
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.14001afdc
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x20]
movzx eax, byte [rax]
movzx eax, al
test eax, eax
jne 0x14001b4bf
mov byte [rbp - 0x11], 0
mov rax, 0xffffffffffffffff
mov edx, 0
div qword [rbp - 0x28]
mov rax, rdx
not rax
cmp rax, qword [rbp - 0x38]
setae al
mov byte [rbp - 0x11], al
cmp byte [rbp - 0x11], 0
jne 0x14001b488
cmp qword [rbp - 0x10], 0x14
setg al
mov byte [rbp - 0x11], al
jmp 0x14001b489
nop
movzx eax, byte [rbp - 0x11]
xor eax, 1
test al, al
jne 0x14001b4ae
mov rax, qword [rbp - 0x28]
lea rcx, [rax + 1]
mov rax, qword [rbp - 0x38]
mov edx, 0
div rcx
mov qword [rbp - 8], rdx
jmp 0x14001b4c0
nop
add qword [rbp - 0x10], 1
jmp 0x14001b433
nop
jmp 0x14001b4c0
nop
jmp 0x14001b4c0
nop
mov rax, qword [rbp - 8]
add rsp, 0x60
pop rbp
ret

Function at 0x140020660
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140026740
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140026740
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x1400206d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140035b34]
mov rbx, rcx
test esi, esi
jle 0x140020800
mov rax, qword [0x140035b38]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14002071b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400207a5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140020700
mov rcx, rbx
call fcn.140021120
mov rdi, rax
test rax, rax
je 0x140020822
mov rax, qword [0x140035b38]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140021260
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140035b38]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140020807
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14002079e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400207b0
add dword [0x140035b34], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140035b38]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14002079e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140020660
nop dword [rax]
xor esi, esi
jmp 0x140020728
mov rax, qword [0x140035b38]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140020660
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140020660
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140020d90
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140035ba0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140035b80]
test rbx, rbx
je 0x140020dec
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140020de3
test rsi, rsi
je 0x140020de3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140020dc8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140021120
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14002e5c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140021140
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140021148
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140021140
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14002119d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140021194
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140021140
add rax, 0x28
cmp rax, r9
jne 0x140021180
xor eax, eax
ret

Function at 0x1400211a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14002e5c0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400211bf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400211c8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400211bf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140021260
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14002e5c0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14002127f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140021288
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140021530
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x14002e540]
mov r11d, dword [rsi]
mov rbx, rcx
test r11d, r11d
jne 0x140021568
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x1400215d0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [rcx + 0x10]
test r12, r12
je 0x1400215e0
mov esi, dword [0x140035c28]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
call r13
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x140021638
mov rbp, qword [rsi]
cmp rbp, r12
jb 0x140021680
sub r12, 1
mov rax, qword [rsi + r12*8 + 8]
test rax, rax
jne 0x140021557
mov rcx, rbx
call fcn.140021490
mov qword [rsi + r12*8 + 8], rax
jmp 0x140021557
call fcn.140021490
mov qword [rbx + 0x10], rax
jmp 0x140021557
mov r10d, dword [rsi]
test r10d, r10d
je 0x140021711
mov r9d, dword [0x140027420]
test r9d, r9d
je 0x140021739
lea rcx, [0x140035c40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r12, qword [rbx + 0x10]
test r12, r12
je 0x14002171e
mov eax, dword [rsi]
test eax, eax
je 0x140021571
lea rcx, [0x140035c40]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140021571
lea rcx, [r12 + 0x21]
mov edx, 8
lea rdi, [r12 + 0x20]
call sub.msvcrt.dll_calloc
mov rsi, rax
test rax, rax
je 0x140021774
mov qword [rax], rdi
mov ecx, dword [0x140035c28]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x1400215ab
call r13
jmp 0x1400215ab
lea rdi, [rbp + rbp]
lea rax, [r12 + 0x20]
mov rcx, rsi
cmp rdi, r12
cmovb rdi, rax
lea rdx, [rdi*8 + 8]
call sub.msvcrt.dll_realloc
mov rsi, rax
test rax, rax
je 0x140021774
mov qword [rax], rdi
sub rdi, rbp
lea rcx, [rax + rbp*8 + 8]
xor edx, edx
lea r8, [rdi*8]
call sub.msvcrt.dll_memset
jmp 0x14002165b
lea rcx, [0x140035c40]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14002176c
lea rdx, [0x140021440]
mov ecx, eax
mov dword [0x140035c28], eax
call fcn.140026e60
test eax, eax
jne 0x140021774
mov dword [0x140027420], 1
mov edx, dword [rsi]
test edx, edx
jne 0x1400215fc
mov r12, qword [rbx + 0x10]
test r12, r12
jne 0x140021571
mov rax, qword [0x140035c20]
lea r12, [rax + 1]
mov qword [0x140035c20], r12
mov qword [rbx + 0x10], r12
jmp 0x140021616
lock add dword [0x140027424], 1
je 0x1400216c9
mov r8d, dword [0x140027420]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
lea rdi, [0x140027420]
test r8d, r8d
jne 0x140021707
nop dword [rax]
xor ecx, ecx
call rbp
mov ecx, dword [rdi]
test ecx, ecx
je 0x140021760
jmp 0x140021707
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400216f9
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
cmp qword [rcx], rdx
jae 0x140021790
mov qword [rcx], rdx
mov qword [rcx + 0x18], 0
cmp qword [rcx + 8], r8
jae 0x14002179a
mov qword [rcx + 8], r8
test r9, r9
je 0x1400217a4
cmp qword [rcx], rdx
je 0x1400217a8
ret
mov qword [rcx + 0x18], r9
ret
Function at 0x14000f240
Capabilities:
Execute command

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140083080]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rsi, rcx
mov qword [rsp + 0x78], rcx
mov r8, rcx
lea rdx, str.start_cmd__C__color_b__title_Error__echo
lea rcx, [rsp + 0x58]
call fcn.140003710
mov rdi, rax
mov rcx, qword [rax + 0x10]
mov rdx, qword [rax + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 0x11
jb 0x14000f2ca
lea rax, [rcx + 0x11]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x14000f2ab
mov rax, qword [rdi]
lea rbx, [rax + rcx]
mov r8d, reloc.WS2_32.dll_recvfrom
lea rdx, str.__timeout__t_5_
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x11], 0
jmp 0x14000f2ec
mov qword [rsp + 0x20], reloc.WS2_32.dll_recvfrom
lea r9, str.__timeout__t_5_
xor r8d, r8d
lea edx, [r8 + 0x11]
mov rcx, rdi
call fcn.140004080
mov rdi, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
movups xmm0, xmmword [rdi]
movups xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rsp + 0x40], xmm1
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x14000f378
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f373
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000f373
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400663f4
movdqa xmm0, xmmword [0x1400785f0]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x14000f3cb
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f3c6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000f3c6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400663f4
xor ecx, ecx
int 0x29
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x14000f405
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x14000f400
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000f43d
mov rcx, r8
call fcn.1400663f4
mov qword [rsi + 0x10], 0
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rsi], 0
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140066150
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14004b590
Capabilities:
Check http status code

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
lea eax, [rdx - 0xc8]
mov rdi, rcx
mov rcx, qword [rcx]
mov esi, r8d
cmp eax, 0x64
jb 0x14004b5c5
lea rdx, str.Couldnt_set_desired_mode
call fcn.14002d8b0
lea eax, [rbx + 0x11]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
cmp edx, 0xc8
je 0x14004b5dc
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.14002da30
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r14
cmp esi, 0x13
jne 0x14004b5f8
mov rcx, rdi
call fcn.14004b4d0
jmp 0x14004b72f
cmp esi, 0x14
jne 0x14004b711
mov rsi, qword [rdi]
mov rbp, rbx
cmp dword [rsi + 0xba0], 2
jne 0x14004b679
mov rax, qword [rsi + 0x1e0]
mov rdx, qword [rax]
test rdx, rdx
je 0x14004b679
mov byte [rsp + 0x28], 1
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rcx, rsi
mov qword [rsp + 0x50], rbx
call fcn.1400170f0
test eax, eax
jne 0x14004b72f
mov rcx, qword [rsp + 0x50]
lea edx, [rax + 0x2f]
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x14004b66e
mov rbp, qword [rsp + 0x50]
mov ecx, 1
sub rax, rbp
cmovne rcx, rax
mov byte [rcx + rbp], bl
jmp 0x14004b679
mov rcx, qword [rsp + 0x50]
call qword [fcn.140067306]
mov rdx, qword [rsi + 0xc08]
test rdx, rdx
jne 0x14004b69d
cmp byte [rsi + 0xf0d], bl
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x140069c8b]
test rbp, rbp
mov r9, r8
lea rax, [0x140078558]
cmovne r9, rbp
lea rcx, [0x14006e208]
cmovne r8, rax
call fcn.14001c160
mov rcx, rbp
mov r14, rax
call qword [fcn.140067306]
test r14, r14
jne 0x14004b6dc
lea ebx, [r14 + 0x1b]
jmp 0x14004b731
lea rcx, [rdi + 0xa00]
mov r8, r14
lea rdx, [0x140072a10]
call fcn.1400616f0
mov rcx, r14
mov esi, eax
call qword [fcn.140067306]
test esi, esi
je 0x14004b705
mov ebx, esi
jmp 0x14004b731
mov dword [rdi + 0xab8], 0x1f
jmp 0x14004b731
cmp esi, 0x15
jne 0x14004b71c
lea r8d, [rsi - 8]
jmp 0x14004b725
cmp esi, 0x16
jne 0x14004b731
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rdi
call fcn.14004b000
mov ebx, eax
mov r14, qword [rsp + 0x60]
mov eax, ebx
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400113a7
Capabilities:
Terminate process

Disassembly:
jmp 0x140018d10
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14001148d
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001a060
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001a080
xor al, al
jmp 0x14001a101
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001a093
xor al, al
jmp 0x14001a101
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001a0bd
xor al, al
jmp 0x14001a101
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001a0d1
xor al, al
jmp 0x14001a101
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001a0e3
xor al, al
jmp 0x14001a101
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001a0ff
xor al, al
jmp 0x14001a101
mov al, 1
add rsp, 0x38
ret