joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14010f100
Capabilities:
Parse pe header

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x14010f269
push rbp
mov rbp, rsp
sub rsp, 0x30
test rax, rax
je 0x14010f261
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rax
mov rcx, rax
mov qword [rsp + 0x28], rax
test rbx, rbx
je 0x14010f14d
lea rdx, [rcx + rbx]
lea rsi, [rcx + 0x40]
nop
nop dword [rax + rax]
cmp rsi, rdx
jbe 0x14010f14d
xor eax, eax
add rsp, 0x30
pop rbp
ret
lea rax, [0x14015a100]
call fcn.14000d880
mov rcx, qword [rsp + 0x40]
mov qword [rax], rcx
mov qword [rax + 8], 0x40
mov rdx, qword [0x140136550]
mov rbx, rax
mov edi, 2
mov rax, rdx
mov rcx, rdi
nop
call fcn.1400c2760
test rax, rax
jne 0x14010f259
mov rcx, qword [rsp + 0x28]
cmp word [rcx], 0x5a4d
jne 0x14010f251
mov ecx, dword [rcx + 0x3c]
cmp ecx, 0x400
jg 0x14010f249
movsxd rcx, ecx
mov rdx, qword [rsp + 0x40]
add rcx, rdx
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rcx
mov rsi, qword [rsp + 0x48]
test rsi, rsi
je 0x14010f1e7
nop
add rsi, rdx
cmp rdx, 8
ja 0x14010f1df
cmp rsi, 0x100
jae 0x14010f1e7
xor eax, eax
add rsp, 0x30
pop rbp
ret
lea rax, [0x14015a100]
call fcn.14000d880
mov rcx, qword [rsp + 0x20]
mov qword [rax], rcx
mov qword [rax + 8], 0x40
mov rcx, qword [0x140136550]
mov rbx, rax
mov edi, 2
mov rax, rcx
mov rcx, rdi
call fcn.1400c2760
nop dword [rax]
test rax, rax
jne 0x14010f241
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14010f23a
xor eax, eax
add rsp, 0x30
pop rbp
ret
add rsp, 0x30
pop rbp
nop
ret
xor eax, eax
add rsp, 0x30
pop rbp
ret
xor eax, eax
add rsp, 0x30
pop rbp
ret
xor eax, eax
add rsp, 0x30
pop rbp
ret
xor eax, eax
add rsp, 0x30
pop rbp
ret
xor eax, eax
add rsp, 0x30
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.140061f80
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.14010f100

Function at 0x140116910
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140121ae0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140121ae0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x140116980
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x14031f574]
mov r12, rcx
test ebx, ebx
jle 0x140116ab0
mov rax, qword [0x14031f578]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x1401169cc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140116a53
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x1401169b0
mov rcx, r12
call fcn.140117320
mov rsi, rax
test rax, rax
je 0x140116ad2
mov rax, qword [0x14031f578]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.140117450
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14031f578]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140116ab7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140116a4c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140116a60
add dword [0x14031f574], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x14031f578]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140116a4c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140116910
nop dword [rax]
xor ebx, ebx
jmp 0x1401169d7
mov rax, qword [0x14031f578]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140116910
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140116910
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140116f90
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14031f5e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14031f5c0]
test rbx, rbx
je 0x140116fe4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140116fdb
test r12, r12
je 0x140116fdb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140116fc0
lea rcx, [0x14031f5e0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140117320
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1402bd040]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140117340
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140117348
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140117340
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140117395
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14011738c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140117340
add rax, 0x28
cmp rax, r9
jne 0x140117378
xor eax, eax
ret

Function at 0x1401173a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1402bd040]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1401173c0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1401173c8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x1401173c0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140117450
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1402bd040]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140117470
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140117478
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x140118e00
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x1402bd0c0]
mov rax, qword [rsi]
test rax, rax
je 0x140118e90
cmp qword [rax + 0x30], 0
jne 0x140118eb0
lea rbx, [0x1401498c8]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140118e60
cmp qword [rax + 0x30], 0
jne 0x140118e80
lea rdx, [0x1401498c8]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x140121c70
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14011dd00
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140118e42
test rax, rax
jne 0x140118e80
call fcn.14011dd00
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140118e50
call fcn.14011dd00
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140118e20
test rax, rax
jne 0x140118eb0
call fcn.14011dd00
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x140118e2b
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2
Function at 0x1401199e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rsi, qword [0x1402bd0c0]
mov rax, qword [rsi]
test rax, rax
je 0x140119bd0
cmp qword [rax + 0x28], 0
jne 0x140119bb8
lea rcx, [0x14031f698]
cmp dword [rcx], 1
mov qword [rax + 0x28], rcx
je 0x140119bc5
call fcn.140118ff0
mov rax, qword [rsi]
test rax, rax
je 0x140119a60
cmp qword [rax + 0x30], 0
jne 0x140119a80
lea rdx, [0x1401498c8]
mov qword [rax + 0x30], rdx
mov rax, rdx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x140119a94
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.14011dd00
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140119a30
test rax, rax
jne 0x140119a80
call fcn.14011dd00
nop dword [rax]
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
jne 0x140119a4e
call fcn.140118b30
cmp qword [0x140323050], 0
mov rbx, rax
je 0x140119a4e
test rax, rax
je 0x140119a4e
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.14011fba0
cmp eax, 1
je 0x140119c3d
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r12, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, r12
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x140121c76
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
mov rax, qword [rsi]
test rax, rax
je 0x140119c18
cmp qword [rax + 0x30], 0
je 0x140119c00
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140121c76
mov r12, rbx
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x140119a1c
mov rax, qword [rsi]
jmp 0x140119a29
call fcn.14011dd00
cmp qword [rax + 0x28], 0
mov rax, qword [rsi]
je 0x140119a08
test rax, rax
jne 0x140119bb8
call fcn.14011dd00
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x140119a1c
jmp 0x140119a21
lea rdx, [0x1401498c8]
mov qword [rax + 0x30], rdx
mov rax, rdx
jmp 0x140119b8e
call fcn.14011dd00
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140119c00
test rax, rax
jne 0x140119b8a
call fcn.14011dd00
jmp 0x140119b8a
call fcn.140118ec0
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [0x1402bd0c0]
mov rdx, qword [rax]
lea rax, [0x14031f6a8]
mov qword [rdx + 0x10], rax
ret
Function at 0x14011dd00
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x14031f780]
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x2c]
lea r9, [rsp + 0x30]
movzx eax, byte [rcx]
add rcx, 1
add rdx, 2
mov r8d, eax
and eax, 0xf
shr r8b, 4
add eax, 0x61
add r8d, 0x41
mov byte [rdx - 1], al
mov byte [rdx - 2], r8b
cmp rcx, r9
jne 0x14011dd23
lea rax, [0x14031f788]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x14011dd6b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x14011dd68
lea rax, [0x14031f7c0]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x14011dd9b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x14011dd98
xor ecx, ecx
mov byte [0x14031f7d9], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x14031f7e2], rdx
lea r8, [0x14031f780]
lea rbx, [0x14031f7da]
mov qword [0x14031f7f2], rdx
mov qword [0x14031f802], rdx
mov qword [0x14031f812], rdx
xor edx, edx
mov qword [0x14031f7da], rax
mov qword [0x14031f7ea], rax
mov qword [0x14031f7fa], rax
mov qword [0x14031f80a], rax
mov byte [0x14031f81a], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14011df76
lea rcx, [0x14031f7c0]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x14011dec1
lea rsi, [0x14031f6c0]
lea r8, [0x14031f81a]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x14011de6d
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x14011de60
lea rcx, [0x14031f7c0]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x14011df63
lea rcx, [0x14011dc10]
mov qword [0x14031f6c0], rsi
call sub.msvcrt.dll__onexit
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x14031f6c0]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x14031f7c0]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x14031f81a]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x14011df96
nop dword [rax]
cmp byte [rax], 0x41
jne 0x14011df13
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x14011df00
mov rax, rdx
mov qword [0x14031f6c0], rax
lea rsi, [0x14031f6c0]
jmp 0x14011df39
cmp rdx, rsi
je 0x14011de9f
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x14011df30
cmp rdx, rsi
je 0x14011de9f
mov qword [rdx + 8], rsi
lea rcx, [0x14011dc10]
call sub.msvcrt.dll__onexit
jmp 0x14011de9f
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.14011db80
xor eax, eax
jmp 0x14011deb8
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.14011db80
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
lea rcx, str.failed_to_get_string_from_atom_n
call fcn.14011db80
xor eax, eax
jmp 0x14011df1f
Function at 0x140001270
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rdi, qword [rsp + 0x68]
movzx ebp, r9w
mov r12, qword [rsp + 0x60]
mov r14d, r8d
mov r15d, edx
mov qword [rdi], 0
mov byte [r12], 0
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rsi, rax
test rax, rax
je 0x140001348
cmp word [rax + 0x10], 2
mov qword [rsp + 0x40], rbx
jne 0x14000130b
cmp word [rax + 0x12], 4
jne 0x14000130b
mov rbx, qword [rax + 0x18]
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000130b
nop word [rax + rax]
mov r9d, dword [rcx]
movzx r8d, bp
mov ecx, r15d
mov edx, r14d
call fcn.1400011d0
mov qword [rdi], rax
test rax, rax
je 0x140001341
mov rcx, qword [rbx + 8]
lea rdi, [rax + 0x28]
add rbx, 8
test rcx, rcx
jne 0x1400012e0
mov r8, qword [rsi]
mov r9d, 0x400
mov rcx, r12
lea edx, [r9 + 1]
call fcn.14001e2d0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
mov eax, 8
jmp 0x140001322
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2af9
je 0x140001362
sub eax, 1
je 0x140001370
sub eax, 1
je 0x140001369
cmp eax, 1
mov eax, 0x2af9
jmp 0x140001327
mov eax, 0x2afb
jmp 0x140001327
mov eax, 0x2afa
jmp 0x140001327
Function at 0x140001c50
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
sub rsp, 0x280
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x270], rax
cmp dword [0x140051410], 0
lea rax, [0x140001680]
mov qword [rsp + 0x28], rax
lea rbx, str.getaddrinfo
lea rax, str.getnameinfo
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x30], rax
movzx ebp, cx
lea rax, [0x1400019f0]
mov qword [rsp + 0x38], rax
lea rax, str.freeaddrinfo
mov qword [rsp + 0x40], rax
lea rax, [fcn.140001630]
mov qword [rsp + 0x48], rax
jne 0x140001e1c
mov edx, 0x104
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x140001e12
lea r8, [rsp + 0x160]
mov qword [rsp + 0x290], rsi
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.140023f08
lea r8, str.ws2_32
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.140024a30
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x140001d44
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140001da4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r8, [rsp + 0x160]
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.140023f08
lea r8, str.wship6
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.140024a30
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x140001e0a
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140001da4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140001e0a
mov qword [rsp + 0x298], rdi
lea rbx, [rsp + 0x28]
xor edi, edi
mov rdx, qword [rbx - 8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx], rax
test rax, rax
je 0x140001df9
inc edi
add rbx, 0x10
cmp edi, 3
jl 0x140001db3
mov rax, qword [rsp + 0x28]
mov qword [0x14004f088], rax
mov rax, qword [rsp + 0x38]
mov qword [0x14004f098], rax
mov rax, qword [rsp + 0x48]
mov qword [fcn.140001630], rax
jmp 0x140001e02
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdi, qword [rsp + 0x298]
mov rsi, qword [rsp + 0x290]
mov dword [0x140051410], 1
movzx eax, bp
lea rcx, str.getaddrinfo
add rax, rax
mov rax, qword [rcx + rax*8 + 8]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14001b620
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x280
pop rbp
ret
Function at 0x140011a60
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, r9d
mov rbp, r8
mov rsi, rdx
mov rdi, rcx
test r9b, 2
je 0x140011a9a
mov r9, qword [rdx + 0x40]
mov r8, qword [rdx + 0x50]
lea rdx, str._n__s_____s_n
call fcn.140001040
test byte [rsi + 0x10], 0xf
jne 0x140011ab4
test bl, 1
je 0x140011ab4
mov rdx, rdi
lea rcx, str._DEFAULT:
call fcn.140024468
mov rcx, qword [rsi + 0x58]
test rcx, rcx
je 0x140011ace
test byte [rsi + 0x10], 0x20
jne 0x140011ad2
mov eax, 0x8000
cmp word [rsi + 8], ax
jne 0x140011ad2
mov rcx, qword [rsi + 0x50]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140011ad6
mov ebx, setsockopt
mov rdx, rdi
sub ebx, eax
call fcn.140024468
test rbp, rbp
jne 0x140011b06
mov eax, dword [rsi + 0x10]
and eax, 0xf000
cmp eax, 0x5000
jne 0x140011bba
mov rdx, rdi
lea rcx, [0x140045964]
call fcn.140024468
test ebx, ebx
jle 0x140011b33
nop dword [rax]
mov rdx, rdi
mov ecx, 0x20
dec ebx
call fcn.140024e08
test ebx, ebx
jg 0x140011b20
mov eax, dword [rsi + 0x10]
and eax, 0xf000
cmp eax, 0x5000
jne 0x140011b56
mov r8d, ebp
lea rdx, [0x140045944]
mov rcx, rdi
call fcn.140001040
jmp 0x140011bba
mov edx, 0xa
mov rcx, rbp
call fcn.14001c370
mov rbx, rax
test rax, rax
je 0x140011baf
nop dword [rax + rax]
mov rdx, rbx
mov r9, rdi
sub rdx, rbp
mov r8d, 1
mov rcx, rbp
call fcn.140024260
mov rdx, rdi
lea rcx, [0x140045968]
lea rbp, [rbx + 1]
call fcn.140024468
mov edx, 0xa
mov rcx, rbp
call fcn.14001c370
mov rbx, rax
test rax, rax
jne 0x140011b70
mov rdx, rdi
mov rcx, rbp
call fcn.140024468
mov rdx, rdi
mov ecx, 0xa
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.140024e08
Function at 0x1400123f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov ebp, edx
mov dword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rdi, rcx
call fcn.140011720
mov rsi, rax
test rax, rax
je 0x14001258c
mov qword [rsp + 0x88], rbx
test ebp, ebp
jne 0x140012447
mov rcx, rsi
call fcn.140025684
jmp 0x140012452
mov rdx, rsi
mov rcx, rdi
call fcn.140012120
lea rdx, [0x140045974]
mov rcx, rsi
call fcn.14001de18
mov rbx, rax
test rax, rax
jne 0x1400124da
lea ecx, [rax + 2]
call fcn.14001df44
mov r8, qword [rdi + 0x28]
mov rcx, rax
mov rdx, qword [str._s_warning:__cannot_save_options____s_not_regular_file_n]
mov r9, rsi
call fcn.140001040
call fcn.14002439c
mov ebx, dword [rax]
call fcn.14002439c
mov ecx, ebx
mov rdi, rax
call fcn.14002680c
mov ecx, 2
mov rbx, rax
call fcn.14001df44
mov r8d, dword [rdi]
mov rcx, rax
mov rdx, qword [str.error__d___s__creating__s_n]
mov r9, rbx
mov qword [rsp + 0x20], rsi
call fcn.140001040
cmp dword [rsp + 0x30], 0
je 0x1400124d3
mov rcx, rsi
call fcn.1400249fc
xor eax, eax
jmp 0x140012584
cmp dword [rsp + 0x30], 0
je 0x1400124e9
mov rcx, rsi
call fcn.1400249fc
mov rcx, rbx
call fcn.140023f68
mov ecx, eax
lea rdx, [rsp + 0x38]
call fcn.1400260bc
test eax, eax
js 0x140012508
cmp dword [rsp + 0x4c], 0x25
jg 0x14001256e
mov rdx, rbx
lea rcx, [0x140045978]
call fcn.140024468
mov rcx, qword [rdi + 0x60]
mov edx, 0xa
call fcn.14001c370
test rax, rax
je 0x140012542
mov rcx, qword [rdi + 0x60]
mov r9, rbx
sub rax, rcx
mov edx, 1
lea r8, [rax + 1]
call fcn.140024260
xor ecx, ecx
call fcn.1400249bc
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
call fcn.140026798
mov r8, rax
lea rdx, str.__preset_initialization_file_n___s_n
mov rcx, rbx
call fcn.140001040
test ebp, ebp
je 0x140012581
mov r8, qword [rdi + 0x28]
lea rdx, str.__program__s__n
mov rcx, rbx
call fcn.140001040
mov rax, rbx
mov rbx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14001b620
lea r11, [rsp + 0x70]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140012650
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x30
mov rdi, rcx
mov r14d, r8d
mov ecx, dword [rdx + 0x10]
mov rsi, rdx
test cl, 0xf
setne r9b
bt ecx, 0xa
setb al
test al, r9b
je 0x14001284a
mov rax, qword [rdx + 0x20]
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x20], r15
mov r15d, dword [rax]
lea r12, [rax + 8]
cmp r15d, 1
jle 0x14001269d
and ecx, 0xffffffdf
mov dword [rdx + 0x10], ecx
test r15d, r15d
jle 0x140012837
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x28], r13
mov r13d, 0x8000
nop dword [rax + rax]
mov rbp, qword [r12]
dec r15d
test r14b, 2
je 0x1400126e4
mov r9, qword [rsi + 0x40]
lea rdx, str._n__s_____s_n
mov r8, qword [rsi + 0x50]
mov rcx, rdi
call fcn.140001040
test byte [rsi + 0x10], 0xf
jne 0x1400126ff
test r14b, 1
je 0x1400126ff
mov rdx, rdi
lea rcx, str._DEFAULT:
call fcn.140024468
mov rcx, qword [rsi + 0x58]
test rcx, rcx
je 0x140012715
test byte [rsi + 0x10], 0x20
jne 0x140012719
cmp word [rsi + 8], r13w
jne 0x140012719
mov rcx, qword [rsi + 0x50]
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140012720
mov ebx, setsockopt
mov rdx, rdi
sub ebx, eax
call fcn.140024468
test rbp, rbp
jne 0x140012750
mov eax, dword [rsi + 0x10]
and eax, 0xf000
cmp eax, 0x5000
jne 0x14001280a
mov rdx, rdi
lea rcx, [0x140045964]
call fcn.140024468
test ebx, ebx
jle 0x140012783
nop dword [rax]
nop word [rax + rax]
mov rdx, rdi
mov ecx, 0x20
dec ebx
call fcn.140024e08
test ebx, ebx
jg 0x140012770
mov eax, dword [rsi + 0x10]
and eax, 0xf000
cmp eax, 0x5000
jne 0x1400127a6
mov r8d, ebp
lea rdx, [0x140045944]
mov rcx, rdi
call fcn.140001040
jmp 0x14001280a
mov edx, 0xa
mov rcx, rbp
call fcn.14001c370
mov rbx, rax
test rax, rax
je 0x1400127ff
nop dword [rax + rax]
mov rdx, rbx
mov r9, rdi
sub rdx, rbp
mov r8d, 1
mov rcx, rbp
call fcn.140024260
mov rdx, rdi
lea rcx, [0x140045968]
lea rbp, [rbx + 1]
call fcn.140024468
mov edx, 0xa
mov rcx, rbp
call fcn.14001c370
mov rbx, rax
test rax, rax
jne 0x1400127c0
mov rdx, rdi
mov rcx, rbp
call fcn.140024468
mov rdx, rdi
mov ecx, 0xa
call fcn.140024e08
add r12, 8
and r14d, 0xfffffffd
test r15d, r15d
jg 0x1400126c0
mov r13, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r12, qword [rsp + 0x60]
mov r15, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
mov rax, qword [rdx + 0x18]
lea r8, [0x14004597c]
test rax, rax
mov r9d, r14d
mov rcx, rdi
cmovne r8, rax
add rsp, 0x30
pop r14
pop rdi
pop rsi
jmp fcn.140011a60