joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a3180
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, [0x140109418]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x1400a31aa
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x140109438]
mov rcx, rbx
mov r14, rax
call fcn.1400e26a0
test rax, rax
je 0x1400a320d
mov rcx, rbx
test r14, r14
je 0x1400a31f7
xor edx, edx
lea r8d, [rdx + 8]
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
test r14, r14
je 0x1400a3245
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400a3245
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x1400a3308
mov qword [rsp + 0x40], rsi
mov rsi, 0xffffffffffffffff
mov rdx, rsi
nop
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x1400a3270
lea ecx, [rax + 1]
add rcx, rdx
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x1400a32fa
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1400a32fa
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x1400a32a0
mov ecx, 0x5c
mov word [rax + rdi], cx
inc rsi
cmp byte [rdi + rsi], bpl
jne 0x1400a32b4
mov rcx, rdi
sub rcx, rbx
add rcx, rsi
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x1400a32d0
mov rcx, rdi
test r14, r14
je 0x1400a32f1
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x1400a32f7
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [fcn.1400d7f68]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x1400aeff0
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14014b540]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov edx, 1
mov dword [rsp + 0x34], reloc.WS2_32.dll_recv
mov ebp, 2
mov dword [rsp + 0x30], 1
mov ecx, ebp
mov rsi, r9
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400af045
jmp 0x1400af1f4
mov qword [rsp + 0x80], rbx
mov ecx, 0x7f000001
xor ebx, ebx
mov word [rsp + 0x38], bp
mov qword [rsp + 0x40], rbx
call qword [sym.imp.WS2_32.dll_htonl]
lea r9, [rsp + 0x30]
mov word [rsp + 0x3a], bx
mov edx, 0xffff
mov dword [rsp + 0x3c], eax
lea r8d, [rbx + 4]
mov qword [rsi + 8], 0xffffffffffffffff
mov rcx, rdi
mov qword [rsi], 0xffffffffffffffff
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1400af1cb
lea r8d, [rbx + 0x10]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1400af1cb
lea r8, [rsp + 0x34]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1400af1cb
lea edx, [rbx + 1]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x1400af1cb
xor r8d, r8d
lea edx, [rbx + 1]
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
je 0x1400af1cb
lea r8d, [rbx + 0x10]
mov rcx, rax
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1400af1cb
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x1400af1cb
mov r9, rsi
lea r8, [0x14013628c]
lea edx, [rbx + 0xc]
lea rcx, [rsp + 0x48]
call fcn.1400b0470
lea rax, [rsp + 0x48]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400af165
mov rcx, qword [rsi]
lea rdx, [rsp + 0x48]
xor r9d, r9d
mov r8d, ebx
call qword [sym.imp.WS2_32.dll_send]
movsxd rcx, eax
cmp rcx, rbx
jne 0x1400af1cb
mov rcx, qword [rsi + 8]
lea rdx, [rsp + 0x54]
xor r9d, r9d
lea r8d, [r9 + 0xc]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, rbx
jne 0x1400af1cb
mov r8, rbx
lea rdx, [rsp + 0x54]
lea rcx, [rsp + 0x48]
call fcn.1401025d0
test eax, eax
jne 0x1400af1cb
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x1400af1ec
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsi + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400c76a0
lea r11, [rsp + 0x70]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400b20e0
Capabilities:
Resolve dns

Disassembly:
push rbx
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r13d, r13d
mov r12, r9
mov qword [r9], r13
mov ebx, r13d
lea r9, [rsp + 0x68]
mov r15d, r13d
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r14d, eax
test eax, eax
jne 0x1400b22a4
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
test rsi, rsi
je 0x1400b2284
mov qword [rsp + 0x50], rbp
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x1400b213d
lea ebp, [rax + 0xe]
jmp 0x1400b2149
cmp eax, 0x17
jne 0x1400b21f1
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], r13
je 0x1400b21f1
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x1400b21f1
cmp rax, rbp
jb 0x1400b21f1
mov ecx, 0x30
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x1400b222c
mov ecx, dword [rsi]
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0xc], ecx
mov rcx, rbp
mov dword [rax + 0x10], ebp
mov qword [rax + 0x20], r13
mov qword [rax + 0x18], r13
mov qword [rax + 0x28], r13
call qword [section..data]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x1400b221b
mov rdx, qword [rsi + 0x20]
mov r8, rbp
mov rcx, rax
call fcn.140101b90
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x1400b21de
call qword [case.0x14000806e.1]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x1400b2200
test rbx, rbx
cmove rbx, rdi
test r15, r15
je 0x1400b21ee
mov qword [r15 + 0x28], rdi
mov r15, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x1400b2130
jmp 0x1400b2232
mov rcx, qword [rdi + 0x20]
mov r14d, 8
call qword [fcn.1400d7f68]
mov rcx, rdi
call qword [fcn.1400d7f68]
jmp 0x1400b2232
mov rcx, rdi
mov r14d, 8
call qword [fcn.1400d7f68]
jmp 0x1400b2232
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x50]
test rcx, rcx
je 0x1400b2247
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r14d, r14d
je 0x1400b227f
test rbx, rbx
je 0x1400b227a
mov rcx, qword [rbx + 0x20]
call qword [fcn.1400d7f68]
mov rcx, qword [rbx + 0x18]
call qword [fcn.1400d7f68]
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call qword [fcn.1400d7f68]
mov rbx, rdi
test rdi, rdi
jne 0x1400b2251
mov rbx, r13
jmp 0x1400b2293
test rbx, rbx
jne 0x1400b2293
mov r14d, 0x2af9
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov eax, r14d
mov rsi, qword [rsp + 0x58]
mov qword [r12], rbx
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbx
ret
Function at 0x1400b2660
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x88
mov rax, qword [0x14014b540]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r13, qword [rcx]
mov ebp, r8d
mov rsi, rcx
lea r8, [rsp + 0x20]
mov ebx, 2
xor r14d, r14d
mov ecx, ebx
mov r15, r9
mov r12, qword [r13 + 0x11a0]
mov rdi, rdx
mov dword [r9], r14d
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x1400962ec
mov r9d, ebp
lea rdx, [rsp + 0x20]
mov r8, rdi
mov ecx, ebx
call fcn.1400b22c0
jmp 0x1400963ca
mov ebx, reloc.WS2_32.dll_socket
lea r8, [rsp + 0x58]
mov ecx, ebx
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x14009631c
mov r9d, ebp
lea rdx, [rsp + 0x58]
mov r8, rdi
mov ecx, ebx
call fcn.1400b22c0
jmp 0x1400963ca
mov ecx, dword [rsi + 0x440]
sub ecx, 1
je 0x140096340
cmp ecx, 1
je 0x14009632f
mov ebx, r14d
call fcn.140096ca0
test al, al
mov eax, 2
cmove ebx, eax
jmp 0x140096345
mov ebx, 2
cmp dword [rsi + 0xbc], 3
lea r8, [0x140126788]
xorps xmm0, xmm0
lea rcx, [rsp + 0x68]
movups xmmword [rsp + 0x28], xmm0
setne r14b
mov dword [rsp + 0x2c], ebx
inc r14d
mov r9d, ebp
mov edx, ntohs
mov dword [rsp + 0x30], r14d
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
call fcn.1400b0470
lea rcx, [rsp + 0x58]
call fcn.1400a7e10
lea r9, [rsp + 0x28]
mov r8d, ebp
mov rdx, rdi
mov rcx, rsi
movups xmm0, xmmword [rax]
movups xmmword [r12], xmm0
call fcn.140096990
test al, al
je 0x1400963b9
mov dword [r15], 1
jmp 0x1400963c8
lea rdx, str.getaddrinfo___thread_failed_to_start_n
mov rcx, r13
call fcn.1400a09d0
xor eax, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400c76a0
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
jmp 0x140096280
Function at 0x1400b58a0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1038
call fcn.1400c7970
sub rsp, rax
mov rax, qword [0x14014b540]
xor rax, rsp
mov qword [rsp + 0x1020], rax
call fcn.1400e34f0
mov byte [rsp + 0x20], 0
test rax, rax
je 0x1400b590c
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x1400b590c
lea rcx, [rsp + 0x20]
call qword [case.0x14000806e.1]
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.1400c76a0
add rsp, 0x1038
ret
xor eax, eax
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.1400c76a0
add rsp, 0x1038
ret

Function at 0x1400b7520
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rbp
push rdi
push r13
sub rsp, 0x58
mov rax, qword [0x14014b540]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rdx
mov r13, rcx
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rdx + rbx], 0
jne 0x1400b7546
mov qword [rsp + 0x90], rsi
xor ebp, ebp
cmp byte [rdx], 0x5b
mov qword [rsp + 0x98], r14
mov qword [rsp + 0x50], r15
jne 0x1400b76aa
cmp rbx, 5
jb 0x1400b76be
inc rdi
sub rbx, 2
cmp byte [rdi + rbx], 0x5d
lea r14, [rdi + rbx]
jne 0x1400b76be
lea rdx, str.0123456789abcdefABCDEF:.
mov rcx, rdi
call fcn.1400e35c0
cmp rbx, rax
je 0x1400b7652
cmp byte [rdi + rax], 0x25
lea r14, [rdi + rax]
jne 0x1400b76be
lea r8d, [rbp + 2]
mov esi, ebp
lea rdx, [0x14010ca5c]
lea rcx, [r14 + 1]
lea rbx, [r14 + 1]
call case.0x14000806e.2
test eax, eax
jne 0x1400b75e5
movzx eax, byte [r14 + 3]
lea rcx, [r14 + 3]
test al, al
je 0x1400b75e5
cmp al, 0x5d
cmovne rbx, rcx
movzx eax, byte [rbx]
test al, al
je 0x1400b76be
mov rcx, rbp
cmp al, 0x5d
je 0x1400b7610
cmp rcx, 0xf
jge 0x1400b7610
inc rbx
mov byte [rsp + rcx + 0x20], al
inc esi
inc rcx
movzx eax, byte [rbx]
test al, al
jne 0x1400b75f3
test esi, esi
je 0x1400b76be
cmp byte [rbx], 0x5d
jne 0x1400b76be
movsxd rax, esi
cmp rax, 0x10
jae 0x1400b76c5
lea rcx, [rsp + 0x20]
mov byte [rsp + rax + 0x20], bpl
call qword [case.0x14000806e.1]
mov qword [r13 + 0x28], rax
test rax, rax
jne 0x1400b764e
mov eax, 7
jmp 0x1400b767e
mov byte [r14 + 1], bpl
lea r8, [rsp + 0x30]
mov byte [r14], bpl
mov rdx, rdi
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x1400b76be
mov byte [r14], 0x5d
cmp byte [rdi], bpl
mov eax, ntohs
cmove ebp, eax
mov eax, ebp
mov r15, qword [rsp + 0x50]
mov r14, qword [rsp + 0x98]
mov rsi, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400c76a0
add rsp, 0x58
pop r13
pop rdi
pop rbp
pop rbx
ret
lea rdx, [0x14010ca60]
mov rcx, rdi
call fcn.1400df090
cmp rbx, rax
je 0x1400b7671
mov eax, 3
jmp 0x1400b767e
call fcn.1400c77c8
int3
Function at 0x1400c7df0
Capabilities:
Parse pe header

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

Function at 0x1400d0018
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.1400c7970
sub rsp, rax
mov rax, qword [0x14014b540]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400eb334
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400d0067
mov rax, rbp
jmp 0x1400d016f
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 + 0x270a00]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400eb5c4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x270a00]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400d016b
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 0x1400d016b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400eb5c4
test rax, rax
js 0x1400d016b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400d016b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400d015d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400d015d
cmp byte [rcx], 0xd
jne 0x1400d0143
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400d0152
cmp byte [rcx + 1], 0xa
jne 0x1400d0152
inc rcx
jmp 0x1400d0152
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x14b820]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400d0125
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400d016f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400c76a0
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 0x1400deaac
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 0x1400deb1b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400deb1b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400deb1b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400deb1b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400deb1b
cmp dword [rcx + 0x84], 0xe
jbe 0x1400deb1b
cmp dword [rcx + 0xf8], 0
je 0x1400deb1b
mov ecx, ebx
call fcn.1400debcc
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.1400de9a8
nop
cmp dword [rbp + 0x20], 0
je 0x1400deb69
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400deb74
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400deaac

Function at 0x1400decb0
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 0x1400deb1b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400deb1b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400deb1b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400deb1b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400deb1b
cmp dword [rcx + 0x84], 0xe
jbe 0x1400deb1b
cmp dword [rcx + 0xf8], 0
je 0x1400deb1b
mov ecx, ebx
call fcn.1400debcc
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.1400de9a8
nop
cmp dword [rbp + 0x20], 0
je 0x1400deb69
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400deb74
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400deaac
Function at 0x1400e22d8
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 [0x14014b540]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x140118fa8]
mov rbp, rcx
call fcn.1400f2694
xor edi, edi
test rax, rax
je 0x1400e23be
mov ebx, edi
call fcn.1400e18a4
mov r14d, dword [rax]
call fcn.1400e18a4
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.1400f25e0
mov rsi, rax
test rax, rax
je 0x1400e234f
call fcn.1400e18a4
mov dword [rax], r14d
jmp 0x1400e2379
call fcn.1400e18a4
cmp dword [rax], 0x22
jne 0x1400e23b6
call fcn.1400e18a4
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1400f25e0
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1400e23b6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1400e237d
cmp rax, 3
je 0x1400e2398
mov rcx, rsi
call fcn.1400e2234
test al, al
je 0x1400e23a9
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1400e23a9
mov dil, 1
mov rcx, rbx
call fcn.1400d7f68
mov al, dil
jmp 0x1400e23c0
mov rcx, rbx
call fcn.1400d7f68
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400c76a0
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 0x1400e2ff8
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 0x1400e302f
call fcn.1400e18a4
mov dword [rax], socket
call fcn.1400e16c0
xor eax, eax
jmp 0x1400e30bd
mov rdx, r9
mov rcx, r8
call fcn.1400e2f94
mov rbx, rax
test rax, rax
je 0x1400e30ba
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400e2ec0]
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 0x1400e30a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400e1818
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400e308e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400e309d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400ec4d8
jmp 0x1400e30ba
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400e30b7
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 0x1400e8318
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, [0x140270a00]
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 0x1400e836f
cmp word [rdx], r13w
jne 0x1400e836f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400e8374
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400e8499
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400e84ba
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400e83ad
mov rdx, r9
mov word [rbx], cx
jmp 0x1400e83d4
cmp r9, r8
jae 0x1400e83e4
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 0x1400e838e
jmp 0x1400e8499
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 0x1400e848e
cmp dword [rsp + 0x80], esi
je 0x1400e848e
lea r8, [0x140270a00]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400e8466
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400e8436
mov word [rbx], r13w
jmp 0x1400e8496
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 0x1400e8443
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400e8496
cmp word [rsp + 0x70], r13w
jne 0x1400e8473
cmp rbx, r14
je 0x1400e8430
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400eb5cc
cmp word [rsp + 0x70], r13w
je 0x1400e8499
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, [0x140270a00]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400e8493
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400e8499
Function at 0x1400edb5c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400edb72
mov al, 1
jmp 0x1400edbd2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400edb83
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400edbd0
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400f2dc0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400edbd0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400edbd0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400edbd0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400edbd2
xor al, al
add rsp, 0x20
pop rbx
ret