joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140041140
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1400412e9
push rsi
push rdi
push r15
sub rsp, 0x20
mov rdi, qword [rcx + 0x1b0]
mov rsi, rcx
mov r15, qword [rcx + 0x18]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rbp
lea rbx, [rdi + 0x1eb8]
mov qword [rsp + 0x58], r14
lea r14, [rdi + 0x1cb8]
mov qword [rbx], r14
cmp r14, rbx
jae 0x1400411a7
lea rax, [r14 + 1]
mov byte [r14], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x1400411a7
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400411a7
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx ebp, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x1400411dd
mov byte [r9], bpl
inc qword [rbx]
mov r9, qword [rbx]
mov rbp, qword [rsp + 0x50]
cmp r9, rbx
jae 0x140041233
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140041233
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140041233
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140041233
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140041233
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, r14
mov qword [rbx], r14
sub r9, 2
mov edx, 0x3e
mov rcx, rsi
call fcn.140040c10
mov rcx, qword [r15 + 0x1d0]
xor r9d, r9d
mov rdx, r14
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov r14, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x140041295
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.1400250f0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, rsi
call fcn.140040fd0
mov rcx, qword [r15 + 0x1d0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400412e1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.1400250f0
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret
Function at 0x140042a20
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1400c3078]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rcx + 0x18]
mov rsi, rcx
xor r9d, r9d
mov rdi, qword [rax + 0x6d0]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x80
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8d, dword [rdi + 0x144]
mov rdx, qword [rdi + 0x150]
add r8d, 4
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rdi + 0x138], 0
mov dword [rdi + 0x13c], eax
jne 0x140042ab7
movsxd r8, dword [rsp + 0x30]
lea rcx, [rdi + 0xb8]
lea rdx, [rsp + 0x40]
call fcn.1400688f0
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x138], eax
mov r8d, dword [rdi + 0x13c]
mov qword [rsp + 0xe8], rbx
mov qword [rsp + 0xf0], rbp
cmp r8d, 4
jge 0x140042b1d
lea rdx, str.Received_too_short_packet
mov rcx, rsi
call fcn.1400250f0
mov dword [rdi + 0xc], 7
xor eax, eax
mov rbp, qword [rsp + 0xf0]
mov rbx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400670c0
mov rsi, qword [rsp + 0xf8]
add rsp, 0xd0
pop rdi
ret
mov rdx, qword [rdi + 0x150]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rdi + 0xc], ecx
dec ecx
cmp ecx, 5
ja case.0x140042b53.1
movsxd rax, ecx
lea r9, [0x140000000]
mov ecx, dword [r9 + rax*4 + 0x42c6c]
add rcx, r9
jmp rcx
cmp r8d, 4
jle case.0x140042b53.4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rdi + 0x14c]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x140042b53.4
lea eax, [r8 - 4]
mov rcx, rsi
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140025000
mov ebx, eax
test eax, eax
je 0x140042bb2
mov edx, 5
mov rcx, rdi
call fcn.140043680
mov eax, ebx
jmp 0x140042aec
mov eax, dword [rdi + 0x13c]
mov rcx, rsi
sub eax, 4
cdqe
add qword [rsi + 0xf8], rax
mov rdx, qword [rsi + 0xf8]
call fcn.140035630
jmp case.0x140042b53.4
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbx, eax
lea rbp, [rdx + 4]
movzx eax, byte [rdx + 3]
mov rdx, rbx
shl ecx, 8
or ecx, eax
mov dword [rdi + 8], ecx
mov rcx, rbp
call fcn.1400436f0
cmp rax, rbx
jae case.0x140042b53.4
mov r8, rbp
lea rdx, str.TFTP_error:__s
mov rcx, rsi
call fcn.1400251e0
jmp case.0x140042b53.4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rdi
call fcn.140042770
test eax, eax
je case.0x140042b53.4
jmp 0x140042aec
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rsi
lea rdx, [0x14009ae90]
call fcn.1400250f0
mov rcx, rsi
call fcn.140035940
test eax, eax
je 0x140042aea
mov edx, 5
mov rcx, rdi
call fcn.140043680
mov eax, Ordinal_45
jmp 0x140042aec
Function at 0x14004ad90
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x1400c3078]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rsi, qword [rcx + 0x18]
lea r8, [rsp + 0x20]
mov rdi, rcx
lea rdx, [rsp + 0x30]
mov rbx, 0xffffffffffffffff
mov rbp, qword [rsi + 0x1d8]
mov rcx, rbp
mov dword [rsp + 0x20], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14004ae0b
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x80
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
mov r8, rbp
mov rdx, rsi
mov rcx, rdi
call fcn.140025a70
mov rcx, rdi
cmp rbx, 0xffffffffffffffff
jne 0x14004ae33
lea rdx, str.Error_accept__ing_server_connect
call fcn.1400250f0
lea eax, [rbx + 0x1f]
jmp 0x14004aeaf
lea rdx, str.Connection_accepted_from_server
call fcn.1400251e0
mov edx, 1
mov byte [rsi + 0x3b1], 0
mov rcx, rbx
mov qword [rsi + 0x1d8], rbx
call fcn.140056f80
mov byte [rsi + 0x3c2], 1
cmp qword [rdi + 0x280], 0
je 0x14004aead
mov dl, 1
mov rcx, rdi
call fcn.140014a10
mov rcx, qword [rdi + 0x288]
mov r8d, 1
mov rdx, rbx
call qword [rdi + 0x280]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.140014a10
test ebx, ebx
je 0x14004aead
mov rdx, rsi
mov rcx, rdi
call fcn.14004b3b0
mov eax, Ordinal_45
jmp 0x14004aeaf
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400670c0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14004c930
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1b0]
mov rbx, rcx
mov rdx, qword [rcx + 0x18]
cmp dword [rax + 0x10], 0
je 0x14004c966
mov dword [rdx + 0x7a0], 0xd
mov r8d, reloc.WS2_32.dll_listen
mov dl, 1
add rsp, 0x20
pop rbx
jmp fcn.14004ca50
cmp byte [rcx + 0xac5], 0
je 0x14004c97b
xor edx, edx
add rsp, 0x20
pop rbx
jmp fcn.14004d4c0
cmp byte [rcx + 0xac8], 0
je 0x14004c9fc
mov r9, qword [rdx + 0x760]
test r9, r9
jne 0x14004c9be
mov r9, qword [rcx + 0x780]
test r9, r9
jne 0x14004c9b5
cmp byte [rbx + 0x1318], 0
lea rcx, str.NLST
lea r9, str.LIST
cmovne r9, rcx
lea r8, str.PRET__s
jmp 0x14004c9d5
cmp byte [rcx + 0xad5], 0
lea r8, str.PRET_STOR__s
jne 0x14004c9d5
lea r8, str.PRET_RETR__s
add rdx, 0x6d0
mov rcx, rbx
call fcn.140061e70
test eax, eax
jne 0x14004ca06
mov rcx, qword [rbx + 0x18]
mov dword [rcx + 0x7a0], 0x1d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.14004d410
add rsp, 0x20
pop rbx
ret

Function at 0x14004cd20
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1b0]
add rdx, 0x6d0
mov rbx, rcx
cmp dword [rax + 0x10], 0
je 0x14004cd6e
cmp qword [rdx + 0x90], 0
je 0x14004cd6e
xor r9d, r9d
lea r8, str.REST__d
call fcn.140061e70
test eax, eax
jne 0x14004cd78
mov rcx, qword [rbx + 0x18]
mov dword [rcx + 0x7a0], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.14004c930
add rsp, 0x20
pop rbx
ret
Function at 0x14004d040
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
mov esi, r8d
mov rbx, rcx
cmp eax, 0x64
jb 0x14004d07f
lea rdx, str.Couldnt_set_desired_mode
call fcn.1400250f0
lea eax, [rdi + 0x11]
jmp 0x14004d1e5
cmp edx, 0xc8
je 0x14004d096
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
call fcn.1400251e0
cmp esi, 0x13
jne 0x14004d0ab
mov rdx, rbp
mov rcx, rbx
call fcn.14004cf40
jmp 0x14004d1e1
cmp esi, 0x14
jne 0x14004d1c3
cmp byte [rbx + 0x718], 2
mov rbp, qword [rbx + 0x18]
jne 0x14004d128
mov rax, qword [rbx + 0x1b0]
mov rcx, qword [rax]
test rcx, rcx
je 0x14004d128
xor r9d, r9d
mov qword [rsp + 0x40], rdi
lea r8, [rsp + 0x40]
mov dword [rsp + 0x20], 3
xor edx, edx
call fcn.140055ab0
test eax, eax
jne 0x14004d1e1
mov rcx, qword [rsp + 0x40]
lea edx, [rsi + 0x1b]
call fcn.140069328
test rax, rax
je 0x14004d11d
mov rdi, qword [rsp + 0x40]
mov ecx, 1
sub rax, rdi
cmovne rcx, rax
mov byte [rcx + rdi], 0
jmp 0x14004d128
mov rcx, qword [rsp + 0x40]
call qword [fcn.140071bf4]
mov rdx, qword [rbx + 0x780]
test rdx, rdx
jne 0x14004d14d
cmp byte [rbx + 0x1318], 0
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x1400b66ab]
test rdi, rdi
mov r9, r8
lea rax, [0x14009aca0]
cmovne r9, rdi
lea rcx, [0x14009c394]
cmovne r8, rax
call fcn.140037f10
mov rcx, rdi
mov rsi, rax
call qword [fcn.140071bf4]
test rsi, rsi
jne 0x14004d18b
lea edi, [rsi + 0x1b]
jmp 0x14004d1e3
lea rdx, [rbp + 0x6d0]
mov r9, rsi
lea r8, [0x14009ae90]
mov rcx, rbx
call fcn.140061e70
mov rcx, rsi
mov edi, eax
call qword [fcn.140071bf4]
test edi, edi
jne 0x14004d1e3
mov rcx, qword [rbx + 0x18]
mov dword [rcx + 0x7a0], 0x1f
jmp 0x14004d1e3
cmp esi, 0x15
jne 0x14004d1ce
lea r8d, [rsi - 8]
jmp 0x14004d1d7
cmp esi, 0x16
jne 0x14004d1e3
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rbx
call fcn.14004ca50
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 0x14005da70
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 [0x1400c3078]
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.0x14001a019.0
mov r13, rax
test rax, rax
jne 0x14005daee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140039e90
mov r9, rax
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.1400250f0
xor ecx, ecx
lea ebx, [rbp + 0x4d]
call qword [fcn.140071bf4]
jmp 0x14005dca8
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 0x14005db61
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140039e90
mov r9, rax
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.1400250f0
xor ecx, ecx
lea ebx, [r14 + 0x4e]
jmp 0x14005dc92
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x14005dbaa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140039e90
mov r9, rax
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.1400250f0
mov ebx, Ordinal_79
jmp 0x14005dc86
mov qword [rsp + 0x178], rdi
mov rdi, qword [rsp + 0x48]
cmp rdi, 0x100000
jle 0x14005dbdf
mov r8d, 0x100000
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, r15
call fcn.1400250f0
mov ebx, Ordinal_79
jmp 0x14005dc7e
lea rcx, [rdi + 1]
call qword [str._bD_a_]
mov rbp, rax
test rax, rax
jne 0x14005dbf9
lea ebx, [rax + 0x1b]
jmp 0x14005dc7e
mov qword [rsp + 0x1c8], rsi
test rdi, rdi
je 0x14005dc58
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 0x14005dcca
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x14005dc4f
mov edi, esi
jmp 0x14005dc51
add ebx, eax
mov eax, ebx
cmp rax, rdi
jb 0x14005dc10
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.14005d7d0
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 [fcn.140071bf4]
mov rcx, r13
call fcn.140071bf4
mov r14, qword [rsp + 0x170]
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400670c0
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.140039e90
mov r9, rax
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.1400250f0
mov ebx, Ordinal_79
jmp 0x14005dc76
Function at 0x140064bb0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [str._bD_a_]
mov rdi, rax
test rax, rax
jne 0x140064bf2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x140064c39
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x140064c92
mov rsi, rbp
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 [rdi + 8]
call qword [rbx + 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 [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x140064c50
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140064cd3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400a8f20]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400a8f21]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140064ca0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x14006d2b0
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 0x14006d11b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14006d11b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14006d11b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14006d11b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14006d11b
cmp dword [rcx + 0x84], 0xe
jbe 0x14006d11b
cmp dword [rcx + 0xf8], 0
je 0x14006d11b
mov ecx, ebx
call fcn.14006d1cc
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.14006cfa8
nop
cmp dword [rbp + 0x20], 0
je 0x14006d169
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14006d174
int3
xor r8d, r8d
xor edx, edx
jmp 0x14006d0ac
Function at 0x14007f3bc
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.1400670f0
sub rsp, rax
mov rax, qword [0x1400c3078]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14008a2ec
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14007f40b
mov rax, rbp
jmp 0x14007f513
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 + 0x606600]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14008248c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x606600]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14007f50f
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 0x14007f50f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14008248c
test rax, rax
js 0x14007f50f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14007f50f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14007f501
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14007f501
cmp byte [rcx], 0xd
jne 0x14007f4e7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14007f4f6
cmp byte [rcx + 1], 0xa
jne 0x14007f4f6
inc rcx
jmp 0x14007f4f6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xc32b0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14007f4c9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14007f513
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400670c0
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 0x140081354
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 [0x1400c3078]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x1400ad7c0]
mov rbp, rcx
call fcn.14008e6a0
xor edi, edi
test rax, rax
je 0x14008143a
mov ebx, edi
call fcn.140074cdc
mov r14d, dword [rax]
call fcn.140074cdc
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.14008e5ec
mov rsi, rax
test rax, rax
je 0x1400813cb
call fcn.140074cdc
mov dword [rax], r14d
jmp 0x1400813f5
call fcn.140074cdc
cmp dword [rax], 0x22
jne 0x140081432
call fcn.140074cdc
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.14008e5ec
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x140081432
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1400813f9
cmp rax, 3
je 0x140081414
mov rcx, rsi
call fcn.1400812b0
test al, al
je 0x140081425
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140081425
mov dil, 1
mov rcx, rbx
call fcn.140071bf4
mov al, dil
jmp 0x14008143c
mov rcx, rbx
call fcn.140071bf4
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400670c0
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 0x14008213c
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 0x140082173
call fcn.140074cdc
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
call fcn.140072ffc
xor eax, eax
jmp 0x140082201
mov rdx, r9
mov rcx, r8
call fcn.1400820d8
mov rbx, rax
test rax, rax
je 0x1400821fe
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140082004]
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 0x1400821eb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140074c50
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400821d2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400821e1
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140087814
jmp 0x1400821fe
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400821fb
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 0x1400858b0
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, [0x140606600]
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 0x140085907
cmp word [rdx], r13w
jne 0x140085907
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14008590c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140085a31
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140085a52
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140085945
mov rdx, r9
mov word [rbx], cx
jmp 0x14008596c
cmp r9, r8
jae 0x14008597c
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 0x140085926
jmp 0x140085a31
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 0x140085a26
cmp dword [rsp + 0x80], esi
je 0x140085a26
lea r8, [0x140606600]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400859fe
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400859ce
mov word [rbx], r13w
jmp 0x140085a2e
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 0x1400859db
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140085a2e
cmp word [rsp + 0x70], r13w
jne 0x140085a0b
cmp rbx, r14
je 0x1400859c8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140082494
cmp word [rsp + 0x70], r13w
je 0x140085a31
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, [0x140606600]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140085a2b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140085a31