joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140089760
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbp, qword [rcx + 0x18]
lea eax, [rdx - 0xc8]
xor edi, edi
movzx esi, r8b
mov rbx, rcx
cmp eax, 0x64
jb 0x1400897a0
lea rdx, str.Couldnt_set_desired_mode
call fcn.1400665a0
lea eax, [rdi + 0x11]
jmp 0x140089905
cmp edx, 0xc8
je 0x1400897b7
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
call fcn.140066690
cmp sil, 0x13
jne 0x1400897cd
mov rdx, rbp
mov rcx, rbx
call fcn.140089660
jmp 0x140089901
cmp sil, 0x14
jne 0x1400898e3
cmp byte [rbx + 0x6e0], 2
mov rbp, qword [rbx + 0x18]
jne 0x14008984b
mov rax, qword [rbx + 0x1a0]
mov rcx, qword [rax]
test rcx, rcx
je 0x14008984b
xor r9d, r9d
mov qword [rsp + 0x40], rdi
lea r8, [rsp + 0x40]
mov dword [rsp + 0x20], 3
xor edx, edx
call fcn.140092190
test eax, eax
jne 0x140089901
mov rcx, qword [rsp + 0x40]
lea edx, [rax + 0x2f]
call fcn.1400ac5a8
test rax, rax
je 0x140089840
mov rdi, qword [rsp + 0x40]
mov ecx, 1
sub rax, rdi
cmovne rcx, rax
mov byte [rcx + rdi], 0
jmp 0x14008984b
mov rcx, qword [rsp + 0x40]
call qword [str.H._v_]
mov rdx, qword [rbx + 0x740]
test rdx, rdx
jne 0x140089870
cmp byte [rbx + 0x12ff], 0
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x140134d5d]
test rdi, rdi
mov r9, r8
lea rax, [0x1400fdd10]
cmovne r9, rdi
lea rcx, [0x1401015f4]
cmovne r8, rax
call fcn.14006a810
mov rcx, rdi
mov rsi, rax
call qword [str.H._v_]
test rsi, rsi
jne 0x1400898ae
lea edi, [rsi + 0x1b]
jmp 0x140089903
lea rdx, [rbp + 0x5d0]
mov r9, rsi
lea r8, [0x1400fff60]
mov rcx, rbx
call fcn.1400a30d0
mov rcx, rsi
mov edi, eax
call qword [str.H._v_]
test edi, edi
jne 0x140089903
mov rcx, qword [rbx + 0x18]
mov byte [rcx + 0x6b6], 0x1f
jmp 0x140089903
cmp sil, 0x15
jne 0x1400898ee
mov r8b, reloc.WS2_32.dll_listen
jmp 0x1400898f7
cmp sil, 0x16
jne 0x140089903
mov r8b, recv
mov dl, 1
mov rcx, rbx
call fcn.1400891c0
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140094770
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x14014ff08]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x1400947d4
lea r9d, [rax + 2]
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea ecx, [rax + 6]
xor edx, edx
call fcn.140099f30
test al, al
je 0x1400947c8
mov dword [0x14014ff08], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x14014ff08], 1
jmp 0x1400947d9
cmp eax, 2
je 0x14009482b
lea rax, [rsp + 0x58]
mov edx, 0xffff
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14009480a
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x14009482b
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret
Function at 0x1400953e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x1c0
mov rax, qword [0x14014e640]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rbx, qword [rcx + 0x10]
lea r8, [rsp + 0x20]
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x80
mov rsi, rdx
lea rdx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
mov rcx, qword [rbx + 0x98]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x140095496
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.14004fe00
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.1400665a0
mov eax, 2
jmp 0x140095508
mov edx, dword [rsp + 0x20]
lea r9, [rbx + 0x104]
lea r8, [rbx + 0xd4]
lea rcx, [rsp + 0x30]
call fcn.140067370
test al, al
jne 0x140095506
mov qword [rsp + 0x1e0], rdi
call fcn.1400b76c4
mov ebx, dword [rax]
call fcn.1400b76c4
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.14004fe00
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.1400665a0
mov rdi, qword [rsp + 0x1e0]
mov eax, 2
jmp 0x140095508
xor eax, eax
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1400aa4c0
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1c0
pop rsi
ret
Function at 0x140097190
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov r14, r8
mov dword [rsp + 0x58], 0
mov rsi, rdx
lea rbx, [rdx + 0x148]
mov r8d, reloc.WS2_32.dll_recvfrom
lea rdx, str.WWW_Authenticate:
mov rcx, r9
mov rdi, r9
call fcn.14006bf90
test eax, eax
je 0x1400971dd
mov ebp, dword [rbx]
cmp ebp, 0x191
je 0x140097200
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.Proxy_authenticate:
mov rcx, rdi
call fcn.14006bf90
test eax, eax
je 0x140097246
mov ebp, dword [rbx]
cmp ebp, 0x197
jne 0x140097246
mov rcx, rdi
call fcn.140071ce0
mov rbx, rax
test rax, rax
jne 0x140097218
lea eax, [rbx + 0x1b]
jmp 0x1400973a9
cmp ebp, 0x197
mov r8, rbx
mov rcx, rsi
sete dl
call fcn.140073940
mov rcx, rbx
mov edi, eax
call qword [str.H._v_]
test edi, edi
je 0x1400973a7
mov eax, edi
jmp 0x1400973a9
mov r8d, reloc.WS2_32.dll_ntohs
lea rdx, str.Content_Length:
mov rcx, rdi
call fcn.14006bf90
test eax, eax
je 0x14009729d
mov r8d, dword [rbx]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x140097282
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response
mov rcx, rsi
call fcn.140066690
jmp 0x1400973a7
xor edx, edx
lea r9, [r14 + 0x298]
lea rcx, [rdi + 0xf]
lea r8d, [rdx + 0xa]
call fcn.140077360
jmp 0x1400973a7
lea r9, str.close
mov qword [rsp + 0x20], 5
mov r8d, recv
lea rdx, str.Connection:
mov rcx, rdi
call fcn.140071c10
test al, al
jne 0x14009739f
mov r8d, reloc.WS2_32.dll_select
lea rdx, str.Transfer_Encoding:
mov rcx, rdi
call fcn.14006bf90
test eax, eax
je 0x140097350
mov r8d, dword [rbx]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x140097306
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
mov rcx, rsi
call fcn.140066690
jmp 0x1400973a7
lea r9, str.chunked
mov qword [rsp + 0x20], 7
mov r8d, reloc.WS2_32.dll_select
lea rdx, str.Transfer_Encoding:
mov rcx, rdi
call fcn.140071c10
test al, al
je 0x1400973a7
lea rdx, str.CONNECT_responded_chunked
mov rcx, rsi
call fcn.140066690
mov rcx, rsi
mov byte [r14 + 0x2a4], 1
call fcn.14009a490
jmp 0x1400973a7
lea r9, str.close
mov qword [rsp + 0x20], 5
mov r8d, reloc.WS2_32.dll_recvfrom
lea rdx, str.Proxy_Connection:
mov rcx, rdi
call fcn.140071c10
test al, al
jne 0x14009739f
mov r9, rbx
lea r8, [rsp + 0x58]
lea rdx, str.HTTP_1._d__d
mov rcx, rdi
call fcn.1400598b0
cmp eax, 2
jne 0x1400973a7
mov eax, dword [rbx]
mov dword [rsi + 0x135c], eax
jmp 0x1400973a7
mov byte [r14 + 0x2a5], 1
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x14009ec30
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rbp
push r12
push r13
push r15
sub rsp, 0x180
mov rax, qword [0x14014e640]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x50], rcx
mov r15, r8
mov rcx, rdx
mov r12, rdx
xor ebp, ebp
xor ebx, ebx
call case.0x140059888.0
mov r13, rax
test rax, rax
jne 0x14009ecae
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.14004ff30
mov r9, rax
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.1400665a0
xor ecx, ecx
lea ebx, [rbp + 0x4d]
call qword [str.H._v_]
jmp 0x14009ee68
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, r13
mov qword [rsp + 0x170], r14
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x14009ed21
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.14004ff30
mov r9, rax
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.1400665a0
xor ecx, ecx
lea ebx, [r14 + 0x4e]
jmp 0x14009ee52
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x14009ed6a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.14004ff30
mov r9, rax
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.1400665a0
mov ebx, Ordinal_79
jmp 0x14009ee46
mov qword [rsp + 0x178], rdi
mov rdi, qword [rsp + 0x48]
cmp rdi, 0x100000
jle 0x14009ed9f
mov r8d, 0x100000
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, r15
call fcn.1400665a0
mov ebx, Ordinal_79
jmp 0x14009ee3e
lea rcx, [rdi + 1]
call qword [section..data]
mov rbp, rax
test rax, rax
jne 0x14009edb9
lea ebx, [rax + 0x1b]
jmp 0x14009ee3e
mov qword [rsp + 0x1c8], rsi
test rdi, rdi
je 0x14009ee18
nop word [rax + rax]
mov r8d, edi
mov dword [rsp + 0x40], 0
sub r8d, ebx
mov esi, ebx
lea rdx, [rbx + rbp]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14009ee8a
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x14009ee0f
mov edi, esi
jmp 0x14009ee11
add ebx, eax
mov eax, ebx
cmp rax, rdi
jb 0x14009edd0
mov rcx, qword [rsp + 0x50]
mov r9, r12
mov r8, rdi
mov byte [rdi + rbp], 0
mov rdx, rbp
mov qword [rsp + 0x20], r15
call fcn.14009e9b0
mov ebx, eax
mov rsi, qword [rsp + 0x1c8]
mov rdi, qword [rsp + 0x178]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [str.H._v_]
mov rcx, r13
call fcn.1400b2e48
mov r14, qword [rsp + 0x170]
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400aa4c0
add rsp, 0x180
pop r15
pop r13
pop r12
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.14004ff30
mov r9, rax
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.1400665a0
mov ebx, Ordinal_79
jmp 0x14009ee36
Function at 0x1400a6b20
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push r14
push r15
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbp, rcx
mov ecx, dword [rcx + 0x20]
mov r14, rdx
add rcx, 0x18
mov r15d, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [section..data]
mov rbx, rax
test rax, rax
jne 0x1400a6b65
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x50], rdi
cmp r15d, dword [rbp + 0x1c]
jbe 0x1400a6bb0
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, r14
call qword [rbp + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbp + 0x18]
add r14, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, r14
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor esi, esi
test r15, r15
je 0x1400a6c12
mov rsi, r15
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rbx + 8]
call qword [rbp + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rbp + reloc.WS2_32.dll_htonl]
sub r15, 1
jne 0x1400a6bd0
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x1400a6c53
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x14010c371]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x14010c372]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400a6c20
mov rdi, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
Function at 0x1400a6c70
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rbp
push r12
push r14
push r15
sub rsp, 0x20
mov rbp, rcx
mov r12, r9
mov rcx, r8
mov r14, rdx
call fcn.1400682a0
mov r8d, dword [rbp + 0x18]
mov ecx, dword [rbp + 0x20]
add rcx, 0x18
mov r15d, eax
lea r9d, [r8 + r8]
add rcx, r9
call qword [section..data]
mov rbx, rax
test rax, rax
je 0x1400a6e16
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x58], rsi
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x60], rdi
cmp r15d, dword [rbp + 0x1c]
jbe 0x1400a6d00
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, r14
call qword [rbp + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbp + 0x18]
add r14, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, r14
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor esi, esi
test r15, r15
je 0x1400a6d62
mov rsi, r15
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x50]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x50], al
mov rcx, qword [rbx + 8]
call qword [rbp + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x50]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x50], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rbp + reloc.WS2_32.dll_htonl]
sub r15, 1
jne 0x1400a6d20
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x1400a6da3
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x14010c371]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x14010c372]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400a6d70
mov rcx, qword [rsp + 0x70]
call fcn.1400682a0
mov r9, qword [rbx]
mov r8d, eax
mov rcx, qword [rbx + 8]
mov rdx, r12
call qword [r9 + reloc.WS2_32.dll_htonl]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rbx]
test rdi, rdi
jne 0x1400a6dd2
mov edi, dword [rsi + 0x18]
add rdi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, rdi
call qword [rsi + reloc.WS2_32.dll_recv]
mov r8d, dword [rsi + 0x20]
mov rdx, rdi
mov rcx, qword [rbx + 0x10]
call qword [rsi + reloc.WS2_32.dll_htonl]
mov rdx, qword [rbx + 0x10]
mov rcx, rdi
call qword [rsi + reloc.WS2_32.dll_recv]
mov rcx, rbx
call qword [str.H._v_]
mov rdi, qword [rsp + 0x60]
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret
mov eax, reloc.WLDAP32.dll_Ordinal_27
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret

Function at 0x1400a8620
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x1400a8685
nop dword [rax + rax]
movzx r8d, byte [r10]
lea r10, [r10 + 1]
movzx eax, r8b
movzx r9d, r8b
shr r9b, 1
and al, 0xfe
not r9b
movzx eax, al
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
or r8b, 1
test r9b, 2
movzx ecx, r8b
cmove ecx, eax
mov byte [r10 - 1], cl
sub rdx, 1
jne 0x1400a8630
ret
Function at 0x1400a87a4
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 0x1400a87de
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400a87e3
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 0x1400a882c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1400a882c
dec r8
sub rdx, 1
jne 0x1400a8812
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400ab334
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400ab37e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400ab37e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400ab37e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400ab37e
cmp dword [rcx + 0x84], 0xe
jbe 0x1400ab37e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400ab380
xor al, al
add rsp, 0x28
ret
Function at 0x1400be614
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.1400ab160
sub rsp, rax
mov rax, qword [0x14014e640]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400c94d0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400be663
mov rax, rbp
jmp 0x1400be76b
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, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x151300]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400c0cfc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x151300]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400be767
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 0x1400be767
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400c0cfc
test rax, rax
js 0x1400be767
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400be767
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400be759
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400be759
cmp byte [rcx], 0xd
jne 0x1400be73f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400be74e
cmp byte [rcx + 1], 0xa
jne 0x1400be74e
inc rcx
jmp 0x1400be74e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x14e8a0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400be721
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400be76b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400aa4c0
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 0x1400c0498
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x14014e640]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x14012cfc0]
mov rbp, rcx
call fcn.1400cf4a0
xor edi, edi
test rax, rax
je 0x1400c057e
mov ebx, edi
call fcn.1400b76c4
mov r14d, dword [rax]
call fcn.1400b76c4
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.1400cf3ec
mov rsi, rax
test rax, rax
je 0x1400c050f
call fcn.1400b76c4
mov dword [rax], r14d
jmp 0x1400c0539
call fcn.1400b76c4
cmp dword [rax], 0x22
jne 0x1400c0576
call fcn.1400b76c4
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1400cf3ec
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1400c0576
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1400c053d
cmp rax, 3
je 0x1400c0558
mov rcx, rsi
call fcn.1400c03f4
test al, al
je 0x1400c0569
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1400c0569
mov dil, 1
mov rcx, rbx
call fcn.1400b2e48
mov al, dil
jmp 0x1400c0580
mov rcx, rbx
call fcn.1400b2e48
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400aa4c0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x1400c09ac
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400c09e3
call fcn.1400b76c4
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
call fcn.1400b4a50
xor eax, eax
jmp 0x1400c0a71
mov rdx, r9
mov rcx, r8
call fcn.1400c0948
mov rbx, rax
test rax, rax
je 0x1400c0a6e
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400c0874]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400c0a5b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400b7638
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400c0a42
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400c0a51
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400ca3f0
jmp 0x1400c0a6e
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400c0a6b
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1400c46c8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400c44c4
Function at 0x1400c7384
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, [0x140151300]
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 0x1400c73db
cmp word [rdx], r13w
jne 0x1400c73db
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400c73e0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400c7505
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400c7526
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400c7419
mov rdx, r9
mov word [rbx], cx
jmp 0x1400c7440
cmp r9, r8
jae 0x1400c7450
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 0x1400c73fa
jmp 0x1400c7505
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 0x1400c74fa
cmp dword [rsp + 0x80], esi
je 0x1400c74fa
lea r8, [0x140151300]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400c74d2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400c74a2
mov word [rbx], r13w
jmp 0x1400c7502
mov ecx, reloc.WS2_32.dll_listen
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 0x1400c74af
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400c7502
cmp word [rsp + 0x70], r13w
jne 0x1400c74df
cmp rbx, r14
je 0x1400c749c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400c0d04
cmp word [rsp + 0x70], r13w
je 0x1400c7505
mov ecx, reloc.WS2_32.dll_listen
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, [0x140151300]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400c74ff
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400c7505