joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004040
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000bdb0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140004060
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140004068
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140004060
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400040bd
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 0x1400040b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140004060
add rax, 0x28
cmp rax, r9
jne 0x1400040a0
xor eax, eax
ret

Function at 0x1400040c0
Capabilities:
Parse pe header

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

Function at 0x140004180
Capabilities:
Parse pe header

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

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rax, [0x1400023ab]
xor edx, edx
mov qword [0x140012f28], 0x40
mov qword [0x140012f20], rax
xor eax, eax
lea rbx, [0x1400024bd]
mov qword [0x140012f40], rax
lea rax, section..data
mov qword [0x140012f50], rdx
mov dword [0x140012f30], 0x30008
mov qword [0x140012f38], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
lea rdx, [0x14000f040]
mov ecx, eax
mov dword [0x140012f58], eax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
call fcn.14000159e
lea rcx, [0x14000259e]
call fcn.140003220
mov rdx, rbx
mov ecx, 2
call sub.msvcrt.dll_signal
mov rdx, rbx
mov ecx, 0xb
call sub.msvcrt.dll_signal
mov rdx, rbx
mov ecx, 0x16
call sub.msvcrt.dll_signal
mov rdx, rbx
mov ecx, 8
call sub.msvcrt.dll_signal
mov rdx, rbx
mov ecx, 4
call sub.msvcrt.dll_signal
lea rcx, [0x140012ee0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x14000213e]
call fcn.140001440
mov rdi, qword [fcn.1400091b0]
xor ecx, ecx
call rdi
mov rsi, qword [sym.imp.msvcrt.dll__fileno]
mov rcx, rax
call rsi
mov rbx, qword [sym.imp.msvcrt.dll__setmode]
mov edx, 0x8000
mov ecx, eax
call rbx
mov ecx, 1
call rdi
mov rcx, rax
call rsi
mov edx, 0x8000
mov ecx, eax
call rbx
mov ecx, 2
call rdi
mov rcx, rax
call rsi
mov edx, 0x8000
mov ecx, eax
call rbx
call fcn.14000159e
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0x90]
xor esi, esi
call fcn.140003310
call fcn.1400090a0
mov rbx, qword [rax]
test rbx, rbx
jne 0x140009aa3
jmp 0x140009b17
test cl, cl
je 0x140009ad0
and esi, 1
je 0x140009ab8
mov esi, 1
call sub.msvcrt.dll__ismbblead
test eax, eax
je 0x140009a9f
cmp byte [rbx + 1], 1
sbb rbx, 0xffffffffffffffff
add rbx, 1
movsx ecx, byte [rbx]
cmp cl, 0x20
jle 0x140009a80
mov eax, esi
xor eax, 1
cmp cl, 0x22
cmove esi, eax
jmp 0x140009a8e
test cl, cl
je 0x140009ad0
nop dword [rax]
movzx eax, byte [rbx + 1]
add rbx, 1
test al, al
je 0x140009ad0
cmp al, 0x20
jle 0x140009ac0
lea rdx, [rbp - 0x70]
xor eax, eax
mov ecx, 0xd
mov rdi, rdx
rep stosq qword [rdi], rax
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov r9d, 0xa
test byte [rbp - 0x34], 1
je 0x140009afb
movzx r9d, word [rbp - 0x30]
mov rcx, qword [0x14000bdb0]
mov r8, rbx
xor edx, edx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
jmp 0x1400030a5
lea rbx, [0x14000b660]
jmp 0x140009ad0
Function at 0xa32058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00a321df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0xa32089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xa3206f
add dl, dl
jne 0xa32096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xa320f6
xor eax, eax
add dl, dl
jne 0xa320a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xa321ad
add dl, dl
jne 0xa320b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa320c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa320d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa320dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0xa320ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0xa3207e
mov eax, 1
add dl, dl
jne 0xa32106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa32113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xa320fb
sub eax, ebx
mov ebx, 1
jne 0xa3214c
mov ecx, 1
add dl, dl
jne 0xa3212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa3213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xa32123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xa3207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa32168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa32175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xa3215d
cmp eax, 0x7d00
jae 0xa3219b
cmp eax, 0x500
jb 0xa32196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xa3207e
cmp eax, 0x7f
ja 0xa3219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xa3207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0xa321d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0xa3207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400273b0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x498
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x410], 0xfffffffffffffffe
mov qword [rbp + 0x3f0], rcx
mov qword [rbp + 0x3f8], 0
mov qword [rbp + 0x400], 2
mov qword [rbp + 0x408], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x140027450
jmp 0x14002743f
jae 0x14002750f
cmp r8, 0x201
jae 0x140027450
mov r14d, 0x200
lea r15, [rbp - 0x60]
mov r12, r8
jmp 0x1400274a7
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x14002747f
lea rcx, [rbp + 0x3f8]
mov rdx, rbx
call fcn.14004cfe0
mov rsi, qword [rbp + 0x3f8]
mov rax, qword [rbp + 0x400]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x408], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3e8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x1400274d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140027589
mov r8d, r13d
cmp r12, r8
jne 0x140027430
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400275bd
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14002743f
jmp 0x140027450
cmp r14, r8
jb 0x1400275d7
lea rcx, [rbp + 0x3c8]
mov rdx, r15
call fcn.14002a1f0
movups xmm0, xmmword [rbp + 0x3c8]
movups xmm1, xmmword [rbp + 0x3d8]
movaps xmmword [rbp + 0x3b0], xmm1
movaps xmmword [rbp + 0x3a0], xmm0
mov rsi, qword [rbp + 0x3f0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3f8]
test rdx, rdx
je 0x140027572
mov rcx, qword [rbp + 0x400]
add rdx, rdx
mov r8d, 2
call fcn.1400201e0
mov rax, rsi
add rsp, 0x498
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3f0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3f8]
test rdx, rdx
jne 0x14002755d
jmp 0x140027572
lea rcx, [0x140052260]
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.14004e0a0
jmp 0x1400275ec
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.14004e480
ud2
Function at 0x14002a140
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
cmp r8, 0x7fffffff
mov eax, 0x7fffffff
cmovae r8, rax
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x14002a16f
movsxd rdx, eax
xor eax, eax
add rsp, 0x28
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0x28
ret

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

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
cmp r8, 0x7fffffff
mov eax, 0x7fffffff
cmovae r8, rax
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x14002a1c2
movsxd rdx, eax
xor ecx, ecx
mov rax, rcx
add rsp, 0x28
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
xor edx, edx
mov ecx, 0
cmp eax, 0x274a
je 0x14002a1ba
shl rax, 0x20
or rax, 2
mov ecx, 1
mov rdx, rax
mov rax, rcx
add rsp, 0x28
ret
Function at 0x14002dc50
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10b8
call fcn.14004c0b0
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1020], xmm6
mov qword [rbp + 0x1018], 0xfffffffffffffffe
mov qword [rbp + 0x1008], rdx
mov r15, rcx
lea r12, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, r12
xor edx, edx
call sub.VCRUNTIME140.dll_memset
xorps xmm6, xmm6
lea r13, [rbp + 0xffc]
lea rbx, [0x140034270]
lea r14, [rbp + 0xfb0]
mov rsi, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov rdi, qword [sym.imp.KERNEL32.dll_SleepEx]
mov qword [rbp + 0x1010], r15
mov r8d, 0x1000
mov rcx, r15
mov rdx, r12
call case.0x14002a9e3.287
mov r15, rdx
mov qword [rbp + 0xfd8], rax
mov qword [rbp + 0xfe0], rdx
test rax, rax
jne 0x14002de40
test r15, r15
je 0x14002de0c
cmp r15, 0x1000
ja 0x14002de62
xor r12d, r12d
nop word cs:[rax + rax]
mov r8d, r15d
sub r8d, r12d
lea rdx, [r12 + rbp]
add rdx, 0xffffffffffffffb0
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r13
mov qword [rsp + 0x20], rbx
mov rcx, qword [rbp + 0x1008]
mov r9, r14
call rsi
test eax, eax
je 0x14002dde0
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x14002dd70
mov ecx, dword [rbp + 0x1000]
mov eax, dword [rbp + 0x1004]
mov rdx, rcx
shl rdx, 0x20
or rdx, 2
xor r8d, r8d
test ecx, ecx
setne r8b
cmove rdx, rax
mov qword [rbp + 0xfe8], r8
mov qword [rbp + 0xff0], rdx
jne 0x14002de00
add r12, rax
cmp r12, r15
je 0x14002ddd0
jbe 0x14002dd20
jmp 0x14002de4e
mov r15, qword [rbp + 0x1010]
lea r12, [rbp - 0x50]
jmp 0x14002dcce
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0xfe8], 1
mov qword [rbp + 0xff0], rax
lea rcx, [rbp + 0xff0]
call fcn.140021790
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1010]
call rsi
mov rcx, qword [rbp + 0x1008]
call rsi
movaps xmm6, xmmword [rbp + 0x1020]
add rsp, 0x10b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0xfe0]
call fcn.140021790
jmp 0x14002de0c
lea r8, str.library_std_src_syspalwindowspipe.rs
mov rcx, r12
mov rdx, r15
call fcn.14004e490
jmp 0x14002de76
lea r8, str.library_std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, r15
call fcn.14004e480
ud2
Function at 0x140031b70
Capabilities:
Check if file exists

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2e8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x260], 0xfffffffffffffffe
mov rsi, rcx
test r8, r8
je 0x140031d07
js 0x140031eaf
mov r14, r8
mov rdi, rdx
movzx eax, byte [0x140068141]
mov edx, 1
mov rcx, r8
call fcn.1400201d0
test rax, rax
je 0x140031eb4
mov qword [rbp + 0x250], rax
mov rcx, rax
mov rdx, rdi
mov r8, r14
call sub.VCRUNTIME140.dll_memcpy
movzx eax, byte [0x140068141]
mov edx, 1
mov rcx, r14
call fcn.1400201d0
test rax, rax
mov qword [rbp + 0x240], r14
je case.0x14002b263.227
mov rbx, rax
mov rcx, rax
mov rdx, rdi
mov r8, r14
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x50], r14
mov byte [rbp - 0x48], 0
lea rdx, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
lea rcx, [rbp - 0x60]
mov r8d, 1
call fcn.14002b370
mov rax, qword [rbp - 0x60]
mov qword [rbp + 0x248], rax
mov rdx, qword [rbp - 0x58]
mov r8, qword [rbp - 0x50]
mov byte [rbp + 0x25e], 1
lea rcx, [rbp + 0x208]
mov qword [rbp + 0x238], rdx
call fcn.14003ae50
mov rax, qword [rbp + 0x208]
mov rbx, qword [rbp + 0x210]
movabs rdi, 0x8000000000000000
cmp rax, rdi
je 0x140031cc1
mov rcx, qword [rbp + 0x218]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x50], rcx
mov byte [rbp + 0x25e], 1
lea rcx, [rbp + 0x1f0]
lea rdx, [rbp - 0x60]
mov r8b, 1
call fcn.14003c750
mov r14, qword [rbp + 0x1f0]
mov rbx, qword [rbp + 0x1f8]
cmp r14, rdi
jne 0x140031d2e
mov rdi, qword [rbp + 0x240]
mov qword [rsi], rbx
mov dword [rsi + 0x10], 2
movabs rax, 0x300000002
mov qword [rsi], rax
mov dword [rsi + 0x10], 2
lea rdi, [rbp - 0x60]
mov r8d, 0x250
mov rcx, rdi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
mov rdi, qword [rbp + 0x240]
je 0x140031e0b
mov r15, rax
movzx eax, byte [0x140068141]
mov ecx, 0x30
mov edx, 8
call fcn.1400201d0
test rax, rax
je 0x140031ed7
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x10], rdi
mov rcx, qword [rbp + 0x250]
mov qword [rax + 0x18], rcx
mov qword [rax + 0x20], rdi
mov byte [rax + 0x28], 0
mov qword [rsi], rax
mov qword [rsi + 8], r15
mov dword [rsi + 0x10], 1
mov rcx, rsi
add rcx, 0x14
lea rdx, [rbp - 0x60]
mov r8d, 0x250
call sub.VCRUNTIME140.dll_memcpy
test r14, r14
je 0x140031de4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140031e7b
movzx eax, byte [0x140068141]
mov ecx, 0x30
mov edx, 8
call fcn.1400201d0
test rax, rax
je case.0x14002b263.194
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x10], rdi
mov rcx, qword [rbp + 0x250]
mov qword [rax + 0x18], rcx
mov qword [rax + 0x20], rdi
mov byte [rax + 0x28], 0
mov qword [rsi], rax
mov qword [rsi + 8], 0xffffffffffffffff
mov dword [rsi + 0x10], 0
shl rax, 0x20
or rax, 2
mov qword [rsi], rax
mov dword [rsi], eax
call fcn.140045040
mov ecx, 1
mov qword [rbp + 0x220], r15
Function at 0x140032440
Capabilities:
Read file on windows

Disassembly:
push rsi
sub rsp, 0xb0
mov rsi, rcx
movups xmm0, xmmword [0x140054380]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x140032478
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0x88], rcx
test r9, r9
mov qword [rsp + 0x80], r9
lea rcx, [rsp + 0x88]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x1400324da
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x1400324e5
xor edx, edx
jmp 0x1400324f5
cmp eax, 0x103
je 0x140032520
test eax, eax
js 0x140032500
mov rdx, qword [rsp + 0x68]
xor eax, eax
add rsp, 0xb0
pop rsi
ret
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb0
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x1400543e0]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x90], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x98], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x80]
call fcn.140029900
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x78]
call fcn.140021de0
mov ecx, 7
int 0x29
ud2

Function at 0x140032590
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0xb0
mov rsi, rcx
movups xmm0, xmmword [0x140054380]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x1400325c8
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0x88], rcx
test r9, r9
mov qword [rsp + 0x80], r9
lea rcx, [rsp + 0x88]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140032631
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140032665
test eax, eax
js 0x140032645
mov rdx, qword [rsp + 0x68]
xor eax, eax
add rsp, 0xb0
pop rsi
ret
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb0
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x1400543e0]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x90], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x98], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x80]
call fcn.140029900
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x78]
call fcn.140021de0
mov ecx, 7
int 0x29
ud2
Function at 0x1400326d0
Capabilities:
Create udp socket

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov edi, edx
cmp word [rcx], 0
mov eax, 2
mov ebp, 0x17
cmove ebp, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
xor ebx, ebx
mov ecx, ebp
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400327a6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x14003272e
mov esi, eax
cmp eax, 0x2726
jne 0x140032799
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x140032791
mov rsi, rax
xor ebx, ebx
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x1400327a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, 1
mov rsi, rdi
jmp 0x1400327a6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov ebx, 1
mov rax, rbx
mov rdx, rsi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret

Function at 0x1400332e0
Capabilities:
Set current directory

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x60
lea rbp, [rsp + 0x60]
mov qword [rbp - 8], 0xfffffffffffffffe
add rdx, rcx
mov qword [rbp - 0x38], rcx
mov qword [rbp - 0x30], rdx
mov word [rbp - 0x28], 0
lea rcx, [rbp - 0x20]
lea rdx, [rbp - 0x38]
call fcn.140026980
mov rdx, qword [rbp - 0x10]
cmp rdx, qword [rbp - 0x20]
jne 0x140033329
lea rcx, [rbp - 0x20]
call fcn.140026190
mov rdx, qword [rbp - 0x10]
mov rsi, qword [rbp - 0x18]
mov word [rsi + rdx*2], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x140033367
xor edi, edi
mov rdx, qword [rbp - 0x20]
test rdx, rdx
je 0x14003335c
add rdx, rdx
mov r8d, 2
mov rcx, rsi
call fcn.1400201e0
mov rax, rdi
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rdx, qword [rbp - 0x20]
test rdx, rdx
jne 0x14003334b
jmp 0x14003335c
Function at 0x140034760
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
cmp qword [rdx], 0
jne 0x1400348d3
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx]
test rax, rax
jne 0x140034797
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x140034898
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x1400348b6
sub rax, rdx
add rdx, qword [rbx + 8]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x2c], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x2c]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400347f9
mov eax, dword [rsp + 0x2c]
mov ecx, 2
test rax, rax
je 0x14003483e
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
jmp 0x140034842
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x40], rax
movabs rcx, 0xffffffff00000000
and rcx, rax
movabs rdx, 0x6d00000000
cmp rcx, rdx
je 0x140034846
movabs rdx, 0x3e500000000
cmp rcx, rdx
jne 0x140034875
lea rax, [rsp + 0x30]
jmp 0x140034854
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x14003487b
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x38]
mov qword [rax], 0
lea rcx, [rsp + 0x40]
call fcn.140021790
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
cmp rcx, 2
jne 0x140034885
mov qword [rsi + 8], rax
mov al, 1
mov byte [rsi], al
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
test rcx, rcx
jne 0x1400347e2
mov ecx, 1
jmp 0x1400347ec
mov r8d, reloc.WS2_32.dll_recv
mov rcx, rbx
call fcn.14004cf40
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x1400347a4
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.14004cf40
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x1400347a4
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14004cef0
int3
Function at 0x140038d20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.14003ae50
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
movabs r14, 0x8000000000000000
cmp rcx, r14
jne case.0x1400322e6.129
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
jmp 0x140038d8a
mov rdx, qword [rsp + 0x50]