joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007b240
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14007b309
cmp byte [rcx + 0x71], 0
je 0x14007b309
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x68], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x14007b2fc
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x60]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14007b2b8
sub eax, 1
je 0x14007b2bc
cmp eax, 2
jne 0x14007b2fc
mov rdi, qword [rsp + 0x68]
mov al, 1
mov byte [rbx + 0x71], 0
add rsp, 0x50
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x14007b2ea
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14007b2fc
cmp byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x68]
sete al
add rsp, 0x50
pop rbx
ret
mov rdi, qword [rsp + 0x68]
xor al, al
add rsp, 0x50
pop rbx
ret
mov al, 1
add rsp, 0x50
pop rbx
ret

Function at 0x1400826d0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov ecx, 8
call fcn.14008b424
lea rcx, [0x14004cb80]
mov qword [rax], rcx
mov qword [rsp + 0x48], rax
lea rdi, [rbx + 8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140086c80]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x140082733
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov dword [rdi], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x140086ad0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x140086b31
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140086af0
mov ecx, dword [r9]
jmp 0x140086c1b
cmp ecx, 0x4e0
jb 0x140086c1b
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140086b50
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140086ba0
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x14008ba3c
Capabilities:
Parse pe header

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

Function at 0x14008c1b0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1400f3040]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14008c211
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x14008c20b
shr ax, 8
cmp al, 2
jne 0x14008c20b
call fcn.140091aa0
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400c5ce0
add rsp, 0x1d8
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400c5ce0
add rsp, 0x1d8
ret
Function at 0x14009ade0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xe0
mov rax, qword [0x1400f3040]
xor rax, rsp
mov qword [rsp + 0xd0], rax
cmp byte [rcx + 0x430], 0
mov r14, r9
mov rax, qword [rsp + 0x130]
mov rbp, r8
mov esi, edx
mov rdi, rcx
je 0x14009af0f
test rax, rax
je 0x14009af0f
mov rdx, qword [rax + 0xc0]
test rdx, rdx
je 0x14009af0f
mov ecx, esi
lea r9, str.Data
sub ecx, 1
je 0x14009ae6b
sub ecx, 1
je 0x14009ae5b
sub ecx, 1
je 0x14009ae72
cmp ecx, 1
je 0x14009ae62
jmp 0x14009af0f
lea r9, str.Header
lea rax, [0x1400cdda8]
jmp 0x14009ae79
lea r9, str.Header
lea rax, str.from
mov qword [rsp + 0x28], rdx
lea r8, str.__s__s__s_
mov edx, 0xa0
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x30]
call fcn.14009d1b0
lea rax, [rsp + 0x30]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14009aea2
mov r10, qword [rdi + 0x258]
test r10, r10
je 0x14009aed9
mov rax, qword [rdi + 0x1a8]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call r10
test eax, eax
je 0x14009af0f
jmp 0x14009af1f
mov r9, qword [rdi + 0x1a0]
lea rcx, [0x1400cdcc8]
mov edx, 2
lea r8d, [rdx - 1]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov r9, qword [rdi + 0x1a0]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov r9, r14
mov r8, rbp
mov edx, esi
mov rcx, rdi
call fcn.14009b620
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1400c5ce0
add rsp, 0xe0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14009b200
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 0x14009b23b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, Ordinal_60
mov edx, 0x51
cmp eax, 0x2733
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 0x14009b300
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
movsxd rax, edx
mov r10, r9
mov r11, r8
mov rdi, rcx
xor r9d, r9d
mov r8d, r10d
mov rdx, r11
mov rcx, qword [rcx + rax*8 + 0x1a8]
call qword [sym.imp.WS2_32.dll_send]
mov r14, qword [rsp + 0x50]
movsxd rsi, eax
mov dword [r14], 0
cmp rsi, 0xffffffffffffffff
jne 0x14009b3ac
mov qword [rsp + 0x30], rbx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x14009b37b
mov dword [r14], 0x51
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov edx, eax
mov rcx, rdi
call fcn.14008ca10
mov rcx, qword [rdi]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.14009af40
mov rcx, qword [rdi]
mov rax, rsi
mov dword [rcx + 0x881c], ebx
mov dword [r14], Ordinal_60
jmp 0x14009b365
mov rdi, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x14009b620
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r10, qword [rcx + 0x258]
mov rdi, r9
mov rsi, r8
mov rbx, rcx
test r10, r10
je 0x14009b663
mov rax, qword [rcx + 0x1a8]
mov qword [rsp + 0x20], rax
call r10
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp edx, 2
ja 0x14009b6a6
mov r9, qword [rbx + 0x1a0]
movsxd rax, edx
mov edx, 2
lea rcx, [rax + rax*2]
lea rax, [0x1400cdcc8]
add rcx, rax
lea r8d, [rdx - 1]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov r9, qword [rbx + 0x1a0]
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rsp + 0x40]
xor eax, eax
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, qword [rcx + 0x7b0]
mov rsi, rdx
mov rdi, rcx
test rbx, rbx
je 0x14009b910
mov rcx, qword [rcx + 0x80]
test rcx, rcx
jne 0x14009b8d3
cmp qword [rdi + 0x78], rcx
je 0x14009b910
mov qword [rsp + 0x20], rbx
mov byte [rsp + 0x28], 0
test rcx, rcx
jne 0x14009b8e6
mov rcx, qword [rdi + 0x78]
add rcx, 0xc0
lea r8, [0x14009c930]
lea rdx, [rsp + 0x20]
call fcn.1400a3990
cmp byte [rsp + 0x28], 0
jne 0x14009b924
mov qword [rdi + 0x7b0], 0
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test rsi, rsi
je 0x14009b92c
mov qword [rsi], rbx
cmp byte [rbx + 0x1f0], 0
mov rdi, qword [rbx + 0x1a8]
je 0x14009b94a
mov rcx, rbx
call fcn.140093320
test eax, eax
jne 0x14009b966
jmp 0x14009b910
mov r9d, 2
lea rdx, [rsp + 0x40]
mov rcx, rdi
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x14009b910
mov rbx, qword [rsp + 0x48]
mov rax, rdi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14009beb0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0xf0
mov rax, qword [0x1400f3040]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov eax, dword [0x140126a08]
mov rbx, rcx
mov dword [rsp + 0x34], 0x4020
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x38], 4
test eax, eax
jne 0x14009bf88
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x9c
call sub.VCRUNTIME140.dll_memset
mov r8b, 3
mov dword [rsp + 0x40], 0x9c
mov edx, 2
mov dword [rsp + 0x44], 6
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, reloc.WLDAP32.dll_Ordinal_32
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, reloc.WS2_32.dll_recv
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov edx, 0x33
lea rcx, [rsp + 0x40]
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x14009bf7c
mov dword [0x140126a08], 2
jmp 0x14009bfdf
mov dword [0x140126a08], 1
jmp 0x14009bf8d
cmp eax, 2
je 0x14009bfdf
lea rax, [rsp + 0x38]
mov edx, 0xffff
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14009bfbe
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x30], eax
jg 0x14009bfdf
lea r9, [rsp + 0x34]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1400c5ce0
add rsp, 0xf0
pop rbx
ret

Function at 0x14009c0e0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [rcx]
lea r9, [rsp + 0x40]
mov rax, rdx
mov dword [rsp + 0x40], 1
mov edx, 6
mov dword [rsp + 0x20], 4
mov rdi, rcx
mov rcx, rax
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x14009c14b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rdi
call fcn.14008ca10
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, rbx
call fcn.14009b000
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rdx, str.TCP_NODELAY_set_n
mov rcx, rbx
call fcn.14009b000
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14009c250
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x1400f3040]
xor rax, rsp
mov qword [rsp + 0x130], rax
cmp dword [rcx + 0xa4], 2
mov rbx, rdx
mov rsi, qword [rcx]
mov rdi, rcx
je 0x14009c410
cmp byte [rcx + 0x339], 0
jne 0x14009c408
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x80
lea rdx, [rsp + 0xb0]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x14009c2e5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.14008ca10
mov r9, rax
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.14009af40
jmp 0x14009c410
xor edx, edx
mov dword [rsp + 0x20], 0x80
mov r8d, 0x80
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
lea r8, [rsp + 0x20]
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14009c342
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.14008ca10
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.14009af40
jmp 0x14009c410
lea rbx, [rdi + 0xf0]
mov rdx, rbx
lea r8, [rdi + 0x120]
lea rcx, [rsp + 0xb0]
call fcn.14009c950
test al, al
jne 0x14009c390
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.14008ca10
mov r9, rax
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.14009af40
jmp 0x14009c410
movups xmm0, xmmword [rbx]
mov eax, dword [rbx + 0x28]
lea r8, [rdi + 0x154]
movups xmm1, xmmword [rbx + 0x10]
lea rdx, [rdi + 0x124]
movups xmmword [rdi + 0x70], xmm0
lea rcx, [rsp + 0x30]
movsd xmm0, qword [rbx + 0x20]
movups xmmword [rdi + 0x80], xmm1
movsd qword [rdi + 0x90], xmm0
mov dword [rdi + 0x98], eax
movzx eax, word [rbx + 0x2c]
mov word [rdi + 0x9c], ax
call fcn.14009c950
test al, al
jne 0x14009c408
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.14008ca10
mov r9, rax
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.14009af40
jmp 0x14009c410
mov rcx, rdi
call fcn.14009bdf0
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400c5ce0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14009cd50
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1400f3040]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor esi, esi
mov dword [rsp + 0x20], 4
mov eax, esi
lea r9, [rsp + 0x50]
cmp byte [rcx + 0x634], al
mov rdi, rdx
mov rbx, rcx
mov edx, 0xffff
setne al
lea r8d, [rsi + 8]
mov rcx, rdi
mov dword [rsp + 0x50], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x14009cdbf
mov r8, rdi
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov rcx, rbx
call fcn.14009b000
jmp 0x14009ce4e
mov ecx, dword [rbx + 0x638]
mov dword [rsp + 0x58], 1
call fcn.1400a62d0
imul ecx, eax, 0x3e8
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x5c], ecx
mov ecx, dword [rbx + 0x63c]
call fcn.1400a62d0
imul ecx, eax, 0x3e8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x54]
mov qword [rsp + 0x38], rsi
mov r9d, recvfrom
mov qword [rsp + 0x30], rax
mov edx, 0x98000004
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x60], ecx
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x14009ce4e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, edi
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
mov r9d, eax
mov rcx, rbx
call fcn.14009b000
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400c5ce0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400a62c0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
cdqe
add rsp, 0x28
ret

Function at 0x1400a7290
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movzx ebx, byte [rcx]
mov rsi, rdx
mov rdi, rcx
test bl, bl
je 0x1400a736d
mov qword [rsp + 0x30], rbp
lea rbp, [0x140000000]
nop dword [rax]
movzx edx, byte [rsi]
test dl, dl
je 0x1400a7368
movsx eax, bl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x1400a72e2
cdqe
mov ecx, dword [rbp + rax*4 + 0xa739c]
add rcx, rbp
jmp rcx
mov bl, 0x41
jmp case.default.0x1400a72e2
mov bl, 0x42
jmp case.default.0x1400a72e2
mov bl, 0x43
jmp case.default.0x1400a72e2
mov bl, 0x44
jmp case.default.0x1400a72e2
mov bl, 0x45
jmp case.default.0x1400a72e2
mov bl, 0x46
jmp case.default.0x1400a72e2
mov bl, 0x47
jmp case.default.0x1400a72e2
mov bl, 0x48
jmp case.default.0x1400a72e2
mov bl, 0x49
jmp case.default.0x1400a72e2
mov bl, 0x4a
jmp case.default.0x1400a72e2
mov bl, 0x4b
jmp case.default.0x1400a72e2
mov bl, 0x4c
jmp case.default.0x1400a72e2
mov bl, 0x4d
jmp case.default.0x1400a72e2
mov bl, Ordinal_79
jmp case.default.0x1400a72e2
mov bl, reloc.WLDAP32.dll_Ordinal_79
jmp case.default.0x1400a72e2
mov bl, 0x50
jmp case.default.0x1400a72e2
mov bl, 0x51
jmp case.default.0x1400a72e2
mov bl, 0x52
jmp case.default.0x1400a72e2
mov bl, 0x53
jmp case.default.0x1400a72e2
mov bl, 0x54
jmp case.default.0x1400a72e2
mov bl, 0x55
jmp case.default.0x1400a72e2
mov bl, 0x56
jmp case.default.0x1400a72e2
mov bl, 0x57
jmp case.default.0x1400a72e2
mov bl, 0x58
jmp case.default.0x1400a72e2
mov bl, 0x59
jmp case.default.0x1400a72e2
mov bl, 0x5a
movzx ecx, dl
call fcn.1400a75c0
cmp bl, al
jne 0x1400a7368
movzx ebx, byte [rdi + 1]
inc rdi
inc rsi
test bl, bl
jne 0x1400a72c0
mov rbp, qword [rsp + 0x30]
movzx ecx, byte [rdi]
call fcn.1400a75c0
movzx ecx, byte [rsi]
movzx ebx, al
call fcn.1400a75c0
mov rsi, qword [rsp + 0x40]
xor ecx, ecx
cmp bl, al
mov rbx, qword [rsp + 0x38]
sete cl
mov eax, ecx
add rsp, 0x20
pop rdi
ret
Function at 0x1400a7410
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
movzx ebx, byte [rcx]
mov rsi, r8
mov r14, rdx
mov rdi, rcx
test bl, bl
je 0x1400a7505
lea rbp, [0x140000000]
nop word [rax + rax]
movzx edx, byte [r14]
test dl, dl
je 0x1400a7505
test rsi, rsi
je 0x1400a750a
movsx eax, bl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x1400a747c
cdqe
mov ecx, dword [rbp + rax*4 + 0xa754c]
add rcx, rbp
jmp rcx
mov bl, 0x41
jmp case.default.0x1400a747c
mov bl, 0x42
jmp case.default.0x1400a747c
mov bl, 0x43
jmp case.default.0x1400a747c
mov bl, 0x44
jmp case.default.0x1400a747c
mov bl, 0x45
jmp case.default.0x1400a747c
mov bl, 0x46
jmp case.default.0x1400a747c
mov bl, 0x47
jmp case.default.0x1400a747c
mov bl, 0x48
jmp case.default.0x1400a747c
mov bl, 0x49
jmp case.default.0x1400a747c
mov bl, 0x4a
jmp case.default.0x1400a747c
mov bl, 0x4b
jmp case.default.0x1400a747c
mov bl, 0x4c
jmp case.default.0x1400a747c
mov bl, 0x4d
jmp case.default.0x1400a747c
mov bl, Ordinal_79
jmp case.default.0x1400a747c
mov bl, reloc.WLDAP32.dll_Ordinal_79
jmp case.default.0x1400a747c
mov bl, 0x50
jmp case.default.0x1400a747c
mov bl, 0x51
jmp case.default.0x1400a747c
mov bl, 0x52
jmp case.default.0x1400a747c
mov bl, 0x53
jmp case.default.0x1400a747c
mov bl, 0x54
jmp case.default.0x1400a747c
mov bl, 0x55
jmp case.default.0x1400a747c
mov bl, 0x56
jmp case.default.0x1400a747c
mov bl, 0x57
jmp case.default.0x1400a747c
mov bl, 0x58
jmp case.default.0x1400a747c
mov bl, 0x59
jmp case.default.0x1400a747c
mov bl, 0x5a
movzx ecx, dl
call fcn.1400a75c0
cmp bl, al
jne 0x1400a7505
movzx ebx, byte [rdi + 1]
inc rdi
dec rsi
inc r14
test bl, bl
jne 0x1400a7450
test rsi, rsi
jne 0x1400a7511
mov eax, 1
jmp 0x1400a752e
movzx ecx, byte [rdi]
call fcn.1400a75c0
movzx ecx, byte [r14]
movzx ebx, al
call fcn.1400a75c0
xor ecx, ecx
cmp bl, al
sete cl
mov eax, ecx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1400a75c0
Capabilities:
Parse pe header

Disassembly:
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x1400a75df
lea r8, [0x140000000]
cdqe
mov edx, dword [r8 + rax*4 + 0xa7634]
add rdx, r8
jmp rdx
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, Ordinal_79
ret
mov al, reloc.WLDAP32.dll_Ordinal_79
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret
movzx eax, cl
ret
Function at 0x1400a76a0
Capabilities:
Parse pe header

Disassembly:
mov r10, rcx
cmp r8, 1
jb 0x1400a7778
sub r10, rdx
lea r11, [0x140000000]
nop word [rax + rax]
movsx r9d, byte [rdx]
lea eax, [r9 - 0x61]
cmp eax, 0x19
ja case.default.0x1400a76de
cdqe
mov ecx, dword [r11 + rax*4 + 0xa777c]
add rcx, r11
jmp rcx
mov r9b, 0x41
jmp case.default.0x1400a76de
mov r9b, 0x42
jmp case.default.0x1400a76de
mov r9b, 0x43
jmp case.default.0x1400a76de
mov r9b, 0x44
jmp case.default.0x1400a76de
mov r9b, 0x45
jmp case.default.0x1400a76de
mov r9b, 0x46
jmp case.default.0x1400a76de
mov r9b, 0x47
jmp case.default.0x1400a76de
mov r9b, 0x48
jmp case.default.0x1400a76de
mov r9b, 0x49
jmp case.default.0x1400a76de
mov r9b, 0x4a
jmp case.default.0x1400a76de
mov r9b, 0x4b
jmp case.default.0x1400a76de
mov r9b, 0x4c
jmp case.default.0x1400a76de
mov r9b, Ordinal_79
jmp case.default.0x1400a76de
mov r9b, Ordinal_79
jmp case.default.0x1400a76de
mov r9b, reloc.WLDAP32.dll_Ordinal_79
jmp case.default.0x1400a76de
mov r9b, 0x50
jmp case.default.0x1400a76de
mov r9b, 0x51
jmp case.default.0x1400a76de
mov r9b, 0x52
jmp case.default.0x1400a76de
mov r9b, 0x53
jmp case.default.0x1400a76de
mov r9b, 0x54
jmp case.default.0x1400a76de
mov r9b, 0x55
jmp case.default.0x1400a76de
mov r9b, 0x56
jmp case.default.0x1400a76de
mov r9b, 0x57
jmp case.default.0x1400a76de
mov r9b, 0x58
jmp case.default.0x1400a76de
mov r9b, 0x59
jmp case.default.0x1400a76de
mov r9b, 0x5a
mov byte [r10 + rdx], r9b
movzx eax, byte [rdx]
inc rdx
test al, al
je 0x1400a7778
sub r8, 1
jne 0x1400a76c0
ret