joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002af1
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x18
lea rbp, [rsp + 0x10]
mov eax, dword [0x140003af8]
shl rax, 4
call fcn.140002c64
sub rsp, rax
mov rdx, rsp
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov r8, qword [rax + 0x10]
mov r11d, dword [0x140003b10]
xor r11d, dword [0x140003b0c]
mov r12d, dword [0x140003d54]
mov esi, dword [0x140003b18]
xor esi, dword [0x140003b14]
mov r13d, dword [0x140003b20]
xor r13d, dword [0x140003b1c]
mov ebx, dword [0x140003b28]
xor ebx, dword [0x140003b24]
mov r14d, dword [0x140003b34]
mov qword [rbp - 8], r11
mov dword [rbp], r12d
mov dword [rbp + 4], r13d
mov r10, qword [r8 + 0x30]
test r10, r10
je 0x140002c60
movups xmm0, xmmword [r8 + 0x58]
movups xmmword [rdx], xmm0
movsxd rax, dword [r10 + 0x3c]
mov r15d, dword [rax + r10 + 0x88]
mov r8, qword [r8]
test r15, r15
je 0x140002b7a
mov qword [rbp - 0x10], r8
movzx r9d, word [rdx + 2]
cmp r11, r9
jae 0x140002bd4
mov rax, qword [rdx + 8]
rol r12d, 0xd
movsx eax, byte [rax + r11]
cmp eax, 0x61
mov edi, 0
cmovge edi, esi
add r12d, eax
sub r12d, edi
inc r11
jmp 0x140002bac
mov r11d, dword [r15 + r10 + 0x18]
mov r9d, dword [r15 + r10 + 0x20]
add r9, r10
cmp r13d, r11d
jae 0x140002c10
mov eax, dword [r9]
add rax, r10
xor edi, edi
rol edi, 0xd
movsx r8d, byte [rax]
add edi, r8d
inc rax
cmp ebx, r8d
jne 0x140002bee
add edi, r12d
cmp edi, ecx
je 0x140002c25
add r9, 4
add r13d, r14d
jmp 0x140002be1
mov r8, qword [rbp - 0x10]
mov r11, qword [rbp - 8]
mov r12d, dword [rbp]
mov r13d, dword [rbp + 4]
jmp 0x140002b7a
mov eax, dword [r10 + r15 + 0x1c]
mov ecx, dword [r10 + r15 + 0x24]
add rcx, r10
mov edx, dword [0x140003b30]
xor edx, dword [0x140003b2c]
imul edx, r13d
movzx ecx, word [rdx + rcx]
add rax, r10
mov eax, dword [rax + rcx*4]
add rax, r10
lea rsp, [rbp + 8]
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
xor eax, eax
jmp 0x140002c4f
Function at 0x140002cce
Capabilities:
Accept command line arguments

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x10
lea rbp, [rsp + 0x10]
mov eax, dword [0x140003b44]
xor eax, dword [0x140003b40]
shl rax, 5
call fcn.140002c64
sub rsp, rax
mov rsi, rsp
sub rsp, 0x20
call sub.KERNEL32.dll_GetCommandLineA
add rsp, 0x20
mov rdi, rax
mov eax, dword [0x140003b58]
xor eax, dword [0x140003b54]
mov dword [rsi], eax
sub rsp, 0x20
mov rcx, rdi
mov rdx, rsi
call 0x140002da1
add rsp, 0x20
mov eax, dword [0x140003b60]
xor eax, dword [0x140003b5c]
add eax, dword [rsi]
lea rax, [rax*8 + 0xf]
and rax, 0xfffffffffffffff0
call fcn.140002c64
sub rsp, rax
mov rcx, rsp
mov rax, qword [rsi + 0x10]
add rax, 0xf
and rax, 0xfffffffffffffff0
call fcn.140002c64
sub rsp, rax
mov rax, rsp
mov qword [rsi + 8], rcx
mov qword [rsi + 0x18], rax
sub rsp, 0x20
mov rcx, rdi
mov rdx, rsi
call 0x140002da1
add rsp, 0x20
mov rdx, qword [rsi + 8]
movsxd rcx, dword [rsi]
and qword [rdx + rcx*8], 0
lea r8, [rbp - 8]
and qword [r8], 0
sub rsp, 0x20
call fcn.1400028d7
mov ecx, eax
call sub.KERNEL32.dll_ExitProcess
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, dword [0x140003b7c]
xor eax, dword [0x140003b78]
mov r8, qword [0x140003d58]
mov r9, qword [rdx + 0x18]
mov bl, byte [0x140003b80]
mov sil, byte [0x140003b81]
lea r10, [0x140003d74]
lea r11, [0x140003bb8]
mov bpl, byte [rcx]
mov edi, esi
xor dil, bl
cmp bpl, dil
je 0x140002f0c
inc rcx
mov rdi, rcx
cmp bpl, 0x20
jne 0x140002e04
mov bpl, byte [rdi]
inc rdi
jmp 0x140002df6
movzx ecx, bpl
test ecx, ecx
je 0x140002f0c
mov r14, qword [0x140003b90]
xor r14, qword [0x140003b88]
movsx ecx, bpl
cmp dword [0x140003b98], ecx
je 0x140002e60
cmp dword [0x140003b9c], ecx
je 0x140002e60
dec rdi
mov r15d, dword [0x140003ba0]
mov r12, qword [0x140003ba8]
mov rcx, rdi
test bpl, bpl
je 0x140002e90
movsx ebp, bpl
cmp r15d, ebp
je 0x140002e90
mov bpl, byte [rcx + 1]
inc rcx
add r14, r12
jmp 0x140002e46
mov r15d, dword [0x140003d60]
mov rcx, rdi
mov r12b, byte [rcx]
cmp r12b, bpl
je 0x140002e83
movsx r13d, r12b
cmp r15d, r13d
je 0x140002e83
inc rcx
inc r14
jmp 0x140002e6a
xor r15d, r15d
cmp r12b, bpl
sete r15b
add rcx, r15
add r8, r14
add r8, qword [0x140003bb0]
mov ebp, dword [rdx]
test ebp, ebp
jle 0x140002ef9
cmp eax, ebp
jge 0x140002eaa
cmp r8, qword [rdx + 0x10]
jbe 0x140002eb5
not r14
add r8, r14
mov rdi, r11
jmp 0x140002efc
mov rsi, qword [rdx + 8]
movsxd rbx, eax
mov qword [rsi + rbx*8], r9
test r14, r14
je 0x140002ee0
mov bl, byte [rdi]
inc rdi
mov byte [r9], bl
inc r9
add r14, qword [0x140003bc0]
cmp r14, qword [0x140003d68]
jne 0x140002ec5
mov bl, byte [0x140003d70]
mov byte [r9], bl
inc r9
mov bl, byte [0x140003b80]
mov sil, byte [0x140003b81]
mov rdi, r10
cmp dword [rdi], 0
jne 0x140002f0c
add eax, dword [0x140003bc8]
jmp 0x140002ddf
mov dword [rdx], eax
mov qword [rdx + 0x10], r8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400292ec
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.14001c9b4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c9b4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002943c
cmp rax, 0xffffffffffffffff
je 0x14002943c
xor edi, edi
test rbp, rbp
jle 0x1400293e7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f2e0
mov rbx, rax
test rax, rax
jne 0x140029374
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400293dd
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a2e8
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.14001d690
cmp eax, 0xffffffff
je 0x1400293bd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029384
mov edx, r15d
mov ecx, r14d
call fcn.14001a2e8
jmp 0x1400293dd
cmp byte [rsi + 0x38], dil
je 0x1400293d4
cmp dword [rsi + 0x34], 5
jne 0x1400293d4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400293dd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b07c
jmp 0x140029450
jns 0x140029450
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c9b4
cmp rax, 0xffffffffffffffff
jne 0x140029408
cmp byte [rsi + 0x30], dil
je 0x140029450
mov edi, dword [rsi + 0x2c]
jmp 0x140029450
mov ecx, r14d
call fcn.1400187a4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029450
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 0x140029450
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029449
mov eax, dword [rsi + 0x2c]
jmp 0x14002944e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c9b4
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 0x140002110
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000215a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000215a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], reloc.VCRUNTIME140.dll___C_specific_handler
jne 0x14000215a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000215a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000215a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000215c
xor al, al
add rsp, 0x28
ret
Function at 0x14000a810
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14002f008]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000a855
xor al, al
jmp 0x14000a8a2
cmp word [rbx], 0
je 0x14000a86d
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a860
cmp word [rsp + 0x30], 0
je 0x14000a89b
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a8c3
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a880
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000bb90
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000fca0
int3
Function at 0x14000b130
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.14001f470
sub rsp, rax
mov rax, qword [0x14002f008]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x140030d70]
lea rsi, [0x140033db0]
mov rdi, rcx
test r11d, r11d
jne 0x14000b1a9
mov r8d, 0x1000
lea rdx, str._HOME_
lea rcx, [rsp + 0x20]
call fcn.14000a8d0
test al, al
je 0x14000b28f
lea rcx, [rsp + 0x20]
call fcn.1400141f8
movsxd r11, dword [0x140030d70]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x140030d70], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000b1e4
mov r10, rsi
mov r8, qword [r10]
mov rax, rdi
sub r8, rdi
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000b1d4
add rax, 2
test ecx, ecx
jne 0x14000b1c0
test edx, edx
je 0x14000b207
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000b1b4
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000b1f0
cmp rax, 2
jne 0x14000b20b
cmp word [rdi + 2], 0x3a
jne 0x14000b20b
mov al, 1
jmp 0x14000b26e
xor edx, edx
mov qword [rsp + 0x2048], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x14000b238
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000b238
mov bl, 1
jmp 0x14000b23c
test bl, bl
je 0x14000b263
cmp dword [0x140030d70], 0x400
jge 0x14000b263
mov rcx, rdi
call fcn.1400141f8
movsxd rdx, dword [0x140030d70]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x140030d70], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000bb90
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str._HOME_
call fcn.14000afd0
int3

Function at 0x14000b3b0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x140030d78]
test rcx, rcx
je 0x14000b3f0
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000b3de
mov rcx, qword [0x140030d78]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x140030d78]
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x28
ret
Function at 0x14000c498
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000c4e2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000c4e2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000c4e2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000c4e2
cmp dword [rcx + 0x84], 0xe
jbe 0x14000c4e2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000c4e4
xor al, al
add rsp, 0x28
ret

Function at 0x14000fc94
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 0x14000faf3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000faf3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000faf3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000faf3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000faf3
cmp dword [rcx + 0x84], 0xe
jbe 0x14000faf3
cmp dword [rcx + 0xf8], 0
je 0x14000faf3
mov ecx, ebx
call fcn.14000fbb0
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.14000f980
nop
cmp dword [rbp + 0x20], 0
je 0x14000fb41
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000fb4c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000fa84
Function at 0x140018f64
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140018feb
mov rsi, rbx
cmp word [rax], bp
je 0x140018faa
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140018f94
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140018f90
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400167a4
mov rdi, rax
test rax, rax
je 0x140018fd8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000da60
mov rbp, rdi
xor ecx, ecx
call fcn.1400158d4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001f380
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001f3a8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001f3a8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140010570
Capabilities:
Encode data using xor
Execute command

Disassembly:
sub rsp, 0x28
cmp byte [0x140065cf7], 0
mov eax, dword [str.TTJ:D_]
mov dword [rsp + 0x30], eax
je 0x14001066f
xor ecx, ecx
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x14001063a
movdqa xmm3, xmmword [0x140066a00]
mov ecx, 5
movdqa xmm2, xmm3
movdqa xmm0, xmm3
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x140066a60]
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x140066a60]
shufps xmm2, xmm0, 0xdd
paddd xmm2, xmm3
movd xmm0, ecx
psrad xmm2, xmm0
mov ecx, Ordinal_35
movdqa xmm1, xmm2
movd xmm0, ecx
lea rcx, [rsp + 0x30]
psrld xmm1, xmm0
paddd xmm1, xmm2
pmulld xmm1, xmmword [0x140066a20]
psubd xmm3, xmm1
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140066a40]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.7777777777777777]
movd xmm0, eax
xorps xmm2, xmm0
movd dword [rsp + 0x30], xmm2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add rsp, 0x28
ret
lea r8, [rsp + 0x30]
nop
mov eax, 0x8fb823ef
lea r8, [r8 + 1]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x39
movzx eax, cl
inc ecx
sub al, dl
add al, 0x37
xor byte [r8 - 1], al
cmp ecx, 4
jl 0x140010640
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add rsp, 0x28
ret
Function at 0x140022ab0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x718], 0
mov rsi, r9
mov rbp, r8
movsxd rbx, edx
mov rdi, rcx
je 0x140022b0e
mov dl, 1
call fcn.1400195f0
mov rax, qword [rdi + 0x670]
mov r9, rsi
mov r8, rbp
mov qword [rsp + 0x20], rax
mov edx, ebx
mov rcx, rdi
call qword [rdi + 0x718]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.1400195f0
mov eax, ebx
jmp 0x140022b52
cmp ebx, 2
ja 0x140022b50
mov r9, qword [rdi + 0x668]
lea rdx, [0x14005c2f0]
lea rcx, [rbx + rbx*2]
add rcx, rdx
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x668]
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140022b70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rdi
sub rsp, 0x160
mov rax, qword [0x14006e080]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp byte [rcx + 0xf1e], 0
mov rdi, rcx
jne 0x140022bb3
cmp qword [rcx + 0x678], 0
je 0x140022c90
mov r8, rdx
mov qword [rsp + 0x158], rbx
mov edx, 0x100
lea r9, [rsp + 0x180]
lea rcx, [rsp + 0x30]
call fcn.140017d60
lea rax, [rsp + 0x30]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140022be1
mov rcx, qword [rdi + 0x678]
test rcx, rcx
je 0x140022c28
cmp byte [rdi + 0x1597], 0
jne 0x140022c28
lea rdx, [rsp + 0x30]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
mov byte [rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x140022c10
mov byte [rdi + 0x1597], 1
cmp byte [rdi + 0xf1e], 0
je 0x140022c88
mov byte [rsp + rbx + 0x30], 0xa
inc rbx
cmp rbx, 0x102
jae 0x140022ce3
cmp qword [rdi + 0x718], 0
mov byte [rsp + rbx + 0x30], 0
je 0x140022ca9
mov dl, 1
mov rcx, rdi
call fcn.1400195f0
mov rax, qword [rdi + 0x670]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x718]
xor edx, edx
mov rcx, rdi
call fcn.1400195f0
mov rbx, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140056620
add rsp, 0x160
pop rdi
ret
mov r9, qword [rdi + 0x668]
lea rcx, [0x14005c2f0]
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x668]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x140022c88
call fcn.140056eb8
int3
Function at 0x140022cf0
Capabilities:
Write file on windows

Disassembly:
test rcx, rcx
je 0x140022e56
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rdi
sub rsp, 0x860
mov rax, qword [0x14006e080]
xor rax, rsp
mov qword [rsp + 0x840], rax
cmp byte [rcx + 0xf1e], 0
mov rdi, rcx
je 0x140022e3e
mov r8, rdx
mov qword [r11 - 0x10], rbx
mov edx, 0x801
lea r9, [r11 + 0x18]
lea rcx, [rsp + 0x30]
call fcn.140017d60
movsxd rcx, eax
mov rbx, 0xffffffffffffffff
cmp rcx, 0x801
jb 0x140022db1
mov rcx, qword [rsp + 0x878]
mov rax, rbx
nop word [rax + rax]
cmp byte [rcx + rax + 1], 0
lea rax, [rax + 1]
jne 0x140022d70
cmp byte [rax + rcx - 1], 0xa
jne 0x140022d98
lea r8, str...._n
mov edx, 5
lea rcx, [rsp + 0x82c]
jmp 0x140022dac
lea r8, [0x14005c310]
mov edx, 4
lea rcx, [rsp + 0x82d]
call fcn.140017c60
lea rax, [rsp + 0x30]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140022db6
cmp qword [rdi + 0x718], 0
je 0x140022dfe
mov dl, 1
mov rcx, rdi
call fcn.1400195f0
mov rax, qword [rdi + 0x670]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x718]
xor edx, edx
mov rcx, rdi
call fcn.1400195f0
jmp 0x140022e36
mov r9, qword [rdi + 0x668]
lea rcx, [0x14005c2f0]
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x668]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbx, qword [rsp + 0x858]
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.140056620
add rsp, 0x860
pop rdi
ret

Function at 0x140022ef0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x140022f32
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov qword [rbx], 0
cmp eax, 0x2733
mov edx, 0x51
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1400230d0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x138
mov rax, qword [0x14006e080]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov r14, qword [rsp + 0x1a0]
mov rsi, rcx
movsxd rcx, edx
xor r13d, r13d
mov rax, rcx
mov r12, r9
shl rax, 5
mov r15, r8
lea rbx, [rsi + 0x508]
mov rbp, qword [rsi + rcx*8 + 0x4c0]
add rbx, rax
mov rax, qword [rsi + 0x698]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x7c], 3
je 0x1400231d7
lea rax, [0x140022f80]
cmp qword [rsi + rcx*8 + 0x4e8], rax
jne 0x1400231d7
cmp qword [rbx], r13
je 0x14002315e
test rdi, rdi
je 0x1400231d7
mov rdx, 0xffffffffffffffff
xor r9d, r9d
mov r8, rdx
mov rcx, rbp
call fcn.14002e140
cmp eax, 0xffffffff
je 0x1400231d7
test al, 1
je 0x1400231d7
mov rax, qword [rbx]
test rax, rax
jne 0x1400231b0
mov rax, qword [rsi]
mov ecx, dword [rax + 0xb70]
add ecx, ecx
movsxd rcx, ecx
mov qword [rbx + 8], rcx
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, qword [rbx + 8]
mov qword [rbx], rax
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], r13
test rax, rax
je 0x1400231d3
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
add rdx, rax
mov r8d, edi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x1400231d7
add qword [rbx + 0x10], rcx
jmp 0x1400231d7
mov qword [rbx + 8], r13
xor r9d, r9d
mov r8d, r12d
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_send]
movsxd rdi, eax
mov dword [r14], r13d
cmp rdi, 0xffffffffffffffff
jne 0x140023244
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x140023210
mov dword [r14], 0x51
mov rax, r13
jmp 0x140023247
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, ebx
call fcn.140014990
mov rcx, qword [rsi]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.140022b70
mov rcx, qword [rsi]
mov dword [rcx + 0x11b0], ebx
mov dword [r14], gethostname
mov rax, rdi
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140056620
add rsp, 0x138
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400238e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x558], 0
je 0x1400238fd
call fcn.140020c50
test eax, eax
jne 0x140023923
xor al, al
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x4c0]
cmp rcx, 0xffffffffffffffff
je 0x1400238f6
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x1400238f6
mov al, 1
add rsp, 0x28
ret