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

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
test rax, rax
mov qword [0x6ad43dd0], rax
je 0x6ac00765
lea rcx, [0x6ad43de0]
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov r8d, 0x3d
mov edx, 1
lea rcx, str.runtime:_failed_to_create_runtime_initialization_wait_event._n
mov r9, rax
call sym.fwrite
call sym.abort
nop

Function at 0x6ac008e0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov r8d, 0x20
mov edx, 1
lea rcx, str.unexpected_cgo_bindm_on_Windows_n
mov r9, rax
call sym.fwrite
call sym.abort
nop
nop

Function at 0x6ac00910
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
call sym._cgo_maybe_run_preinit
lea rcx, [0x6ad43de0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x6ad43de0]
mov dword [0x6ad43dc8], 1
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [0x6ad43dd0]
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x6ac00953
add rsp, 0x28
ret
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov r8d, 0x3b
mov edx, 1
lea rcx, str.runtime:_failed_to_signal_runtime_initialization_complete._n
mov r9, rax
call sym.fwrite
call sym.abort
nop
nop

Function at 0x6ac00a90
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, 0x18
call sym.malloc
test rax, rax
je 0x6ac00aca
mov rdx, qword [rbx]
mov rcx, rax
mov qword [rax], rdx
mov rdx, qword [rbx + 8]
mov qword [rax + 8], rdx
mov rdx, qword [rbx + 0x10]
mov qword [rax + 0x10], rdx
add rsp, 0x20
pop rbx
jmp dbg._cgo_sys_thread_start
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov r8d, 0x2b
mov edx, 1
lea rcx, str.runtime_cgo:_out_of_memory_in_thread_start_n
mov r9, rax
call sym.fwrite
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x6ac00b50
Capabilities:
Create thread

Disassembly:
mov rdx, rcx
lea rcx, [dbg.threadentry]
jmp sym._cgo_beginthread
Function at 0x6ac00f30
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6ad443e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6ac010b8
mov rax, qword [0x6ad443e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6ac00f7c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6ac01005
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6ac00f60
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6ac010ed
mov rax, qword [0x6ad443e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6ad443e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6ac010d0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6ac00ffe
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6ac01060
add dword [0x6ad443e4], 1
cmp edi, 8
jae 0x6ac01033
test dil, 4
jne 0x6ac010a4
test edi, edi
je 0x6ac01028
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6ac010bf
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6ac01028
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6ac0104c
jmp 0x6ac01028
add rsi, qword [0x6ad443e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6ac00ffe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6ac01028
xor esi, esi
jmp 0x6ac00f87
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6ac01028
mov rax, qword [0x6ad443e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6ac01840
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6ad446c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6ad446a0]
test rbx, rbx
je 0x6ac01894
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6ac0188b
test rsi, rsi
je 0x6ac0188b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6ac01870
lea rcx, [0x6ad446c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6ac01ad0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6ac01ae0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6ac01af0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6ac01b31
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6ac01b28
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6ac01b33
add rax, 0x28
cmp rax, r9
jne 0x6ac01b14
xor eax, eax
ret

Function at 0x6ac01bd0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6acb5a50]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6ac01c3d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6ac01c3d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6ac01c3d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6ac01c34
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6ac01c3f
add rax, 0x28
cmp rax, r9
jne 0x6ac01c20
xor eax, eax
add rsp, 0x28
ret

Function at 0x6ac01d40
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6acb5a50]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6ac01d60
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6ac01d58
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6ac01dbd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6ac01db4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6ac01dc4
add rax, 0x28
cmp rax, r9
jne 0x6ac01da0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6ac01de0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6acb5a50]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6ac01e4e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6ac01e4e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6ac01e4e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6ac01e4e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6ac01e45
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6ac01e55
add rcx, 0x28
cmp rcx, rax
jne 0x6ac01e30
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6ac01e68
jmp 0x6ac01e4e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6ac01e76
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6ac01e4e
test r9d, r9d
jg 0x6ac01e60
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6ac02310
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140001640
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x4e70
call fcn.1400158e0
sub rsp, rax
mov rax, qword [0x140024008]
xor rax, rsp
mov qword [rsp + 0x4e60], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x4e20
call fcn.140008960
mov rbx, 0xffffffffffffffff
mov dword [rsp + 0x30], 0
mov rdx, rbx
nop dword [rax]
inc rdx
cmp byte [rdi + rdx], 0
jne 0x140001690
xor r9d, r9d
lea rax, [rsp + 0x30]
mov rcx, rdi
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 1]
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
inc rbx
cmp byte [rdi + rbx], 0
jne 0x1400016b3
lea rax, [rsp + 0x30]
mov rdx, rbx
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8d, 1
mov rcx, rdi
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
lea rdx, [0x14001fa94]
lea rcx, [rsp + 0x40]
cmove rcx, rdx
mov rax, rcx
mov rcx, qword [rsp + 0x4e60]
xor rcx, rsp
call fcn.140006600
mov rbx, qword [rsp + 0x4e88]
add rsp, 0x4e70
pop rdi
ret

Function at 0x140001720
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x4e80
call fcn.1400158e0
sub rsp, rax
mov rax, qword [0x140024008]
xor rax, rsp
mov qword [rsp + 0x4e70], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x4e20
call fcn.140008960
xor esi, esi
mov rbx, 0xffffffffffffffff
mov dword [rsp + 0x40], esi
mov rdx, rbx
nop
inc rdx
cmp byte [rdi + rdx], sil
jne 0x140001770
xor r9d, r9d
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rsi
mov rcx, rdi
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 1]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
nop dword [rax]
inc rbx
cmp byte [rdi + rbx], sil
jne 0x1400017a0
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rsi
lea r9, [rsp + 0x50]
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov r8d, 1
mov rcx, rdi
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
lea rdx, [0x14001fa94]
lea rcx, [rsp + 0x50]
cmove rcx, rdx
mov rax, rcx
mov rcx, qword [rsp + 0x4e70]
xor rcx, rsp
call fcn.140006600
lea r11, [rsp + 0x4e80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14000726c
Capabilities:
Parse pe header

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

Function at 0x14000e048
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000de44
Function at 0x140010ba4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140010c2b
mov rsi, rbx
cmp word [rax], bp
je 0x140010bea
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140010bd4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140010bd0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14000f578
mov rdi, rax
test rax, rax
je 0x140010c18
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000c470
mov rbp, rdi
xor ecx, ecx
call fcn.14000f690
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140015810
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140015838
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140015838
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180001980
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp edx, 1
jne 0x1800019ba
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
lea r8, [0x1800015d0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x18008b0f8], rbx
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x18000f3e0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x18000f4c2
call fcn.18002c980
test al, al
jne 0x18000f4c2
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x18000f412
mov r8, rdi
mov edx, 0x2e
mov rcx, rbx
call fcn.180036910
test rax, rax
je 0x18000f457
sub rax, rbx
mov edx, 0x2e
mov r8, rax
mov rcx, rbx
call fcn.180036910
mov rsi, rax
test rax, rax
je 0x18000f457
inc rsi
mov rcx, rbx
sub rcx, rsi
add rdi, rcx
test rsi, rsi
cmovne rbx, rsi
lea rsi, [rbx + rdi]
mov edi, 0x1505
cmp rbx, rsi
jae 0x18000f48b
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.180026810
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x18000f470
mov rsi, qword [rsp + 0x30]
mov rcx, rdi
movabs rax, 0x410410410410411
mul rdi
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
imul rcx, rcx, 0x3f
sub rdi, rcx
mov rax, rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1800179a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x48
mov rax, qword [rcx]
lea rbp, [rcx + 0x18]
mov r12, qword [rbp]
mov rdi, rdx
mov r15, r8
mov edx, dword [rax + 8]
and edx, 0xa
cmp edx, 0xa
jne 0x1800179db
add r12, 0x348
jmp 0x1800179e2
add r12, 0x2d8
cmp edx, 0xa
mov ecx, 0x540
mov eax, 0x5f8
mov bl, 1
cmovne eax, ecx
xor esi, esi
mov qword [r9], rsi
lea rcx, [rax + rdi]
test rcx, rcx
je 0x180017b90
cmp byte [rcx + 0x6c], sil
je 0x180017b90
cmp qword [rdi + 0xca0], rsi
je 0x180017b90
mov rax, qword [rdi + 0xf8]
mov qword [rsp + 0x88], r13
test rax, rax
je 0x180017a3e
test byte [rax + 4], 0x10
lea r13, [rax + 0x118]
jne 0x180017a45
lea r13, [rdi + 0xca8]
cmp qword [rdi + 0x6c0], rsi
jbe 0x180017b37
mov qword [rsp + 0x40], r14
mov r14, rsi
nop word [rax + rax]
mov rbx, qword [rdi + 0xca0]
add rbx, r14
cmp qword [rbx + 0x18], 0
je 0x180017b19
mov rdx, qword [rbx]
mov rcx, qword [r15]
call fcn.180026940
test eax, eax
je 0x180017b19
mov rcx, qword [rbp]
mov rdx, qword [rbx + 8]
cmp byte [rcx + 0x3c0], 0
jne 0x180017aa0
test rdx, rdx
je 0x180017ab5
jmp 0x180017b19
test rdx, rdx
je 0x180017b19
mov rcx, qword [rcx + 0x98]
call fcn.180026940
test eax, eax
je 0x180017b19
mov rcx, qword [rbp]
mov eax, dword [rbx + 0x38]
cmp byte [rcx + 0x3c1], 0
jne 0x180017acc
cmp eax, 0xffffffff
je 0x180017ad9
jmp 0x180017b19
cmp eax, 0xffffffff
je 0x180017b19
cmp dword [rcx + 0x7d0], eax
jne 0x180017b19
mov eax, dword [rbx + 0x34]
cmp dword [r15 + 0x1c], eax
jne 0x180017b19
mov eax, dword [rbx + 0x3c]
cmp dword [r15 + 0x20], eax
jne 0x180017b19
mov rcx, qword [rcx + 0x3e0]
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rcx]
call fcn.180026940
test eax, eax
je 0x180017b19
lea r8, [rbx + 0x40]
mov rdx, r12
mov rcx, rdi
call fcn.180018830
test al, al
jne 0x180017ba0
inc rsi
add r14, 0xb0
cmp rsi, qword [rdi + 0x6c0]
jb 0x180017a60
mov bl, 1
mov r14, qword [rsp + 0x40]
mov r10, qword [rsp + 0x80]
lea r9, str.Found
mov ecx, dword [r15 + 0x1c]
lea r8, str._s_cached_session_ID_for__s:___s:_d
mov dword [rsp + 0x30], ecx
test bl, bl
mov rcx, qword [r15]
mov rax, qword [r10 + 0x18]
mov qword [rsp + 0x28], rcx
mov rdx, qword [rax + 0x3e0]
lea rax, [0x18006faf8]
cmovne r9, rax
mov rcx, qword [rdx]
mov rdx, r10
mov qword [rsp + 0x20], rcx
mov rcx, rdi
call fcn.18001e920
mov r13, qword [rsp + 0x88]
movzx eax, bl
add rsp, 0x48
pop r15
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
inc dword [r13]
mov eax, dword [r13]
mov rcx, qword [rsp + 0x98]
mov dword [rbx + 0x30], eax
mov rax, qword [rbx + 0x18]
mov qword [rcx], rax
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x180017bce
mov rax, qword [rbx + 0x20]
mov qword [rcx], rax
xor bl, bl
jmp 0x180017b32
Function at 0x180017d50
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x18008a8c0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov dword [rcx + 0x20], r8d
mov rdi, rcx
mov rax, qword [rdx]
mov ebp, 0x1b
mov ecx, dword [rax + 8]
mov rax, qword [rdx + 0x18]
and ecx, 0xa
cmp cl, 0xa
jne 0x180017da5
mov rbx, qword [rax + 0xf0]
mov rsi, qword [rax + 0xf8]
mov ecx, dword [rax + 0x100]
jmp 0x180017db3
mov rbx, qword [rax + 0x68]
mov rsi, qword [rax + 0x70]
mov ecx, dword [rax + 0x7cc]
xor r14d, r14d
mov dword [rdi + 0x1c], ecx
test rbx, rbx
je 0x180017ee4
cmp byte [rbx], r14b
je 0x180017ee4
mov rcx, rbx
call qword [case.0x180018ffc.1]
mov qword [rdi], rax
mov rcx, rax
test rax, rax
je 0x180017ee9
test rsi, rsi
je 0x180017e1e
mov r8, rsi
sub r8, rbx
nop
movzx edx, byte [rbx]
movzx eax, byte [rbx + r8]
sub edx, eax
jne 0x180017e03
inc rbx
test eax, eax
jne 0x180017df0
test edx, edx
je 0x180017e1e
mov rcx, rsi
call qword [case.0x180018ffc.1]
mov qword [rdi + 8], rax
test rax, rax
jne 0x180017e22
jmp 0x180017ee9
mov qword [rdi + 8], rcx
mov rbx, qword [rdi]
test rbx, rbx
je 0x180017e7b
cmp byte [rbx], r14b
je 0x180017e7b
lea r8, [rsp + 0x20]
mov rdx, rbx
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x180017e55
mov dword [rdi + 0x18], 1
mov eax, r14d
jmp 0x180017f1c
lea r8, [rsp + 0x20]
mov rdx, rbx
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x180017e7b
mov dword [rdi + 0x18], 2
mov eax, r14d
jmp 0x180017f1c
mov rax, qword [rdi]
mov rbx, 0xffffffffffffffff
mov dword [rdi + 0x18], r14d
nop dword [rax]
inc rbx
cmp byte [rax + rbx], r14b
jne 0x180017e90
test rbx, rbx
je 0x180017ea8
cmp byte [rax + rbx - 1], 0x2e
jne 0x180017ea8
dec rbx
cmp rbx, 0xffff
jae 0x180017edf
lea rdx, [rbx + 1]
mov ecx, 1
call qword [0x18008a020]
mov qword [rdi + 0x10], rax
test rax, rax
je 0x180017ee9
mov rdx, qword [rdi]
mov r8, rbx
mov rcx, rax
call fcn.180026860
mov rax, qword [rdi + 0x10]
mov byte [rbx + rax], r14b
mov eax, r14d
jmp 0x180017f1c
mov ebp, 2
mov rcx, qword [rdi + 8]
cmp rcx, qword [rdi]
je 0x180017ef8
call qword [fcn.18006b280]
mov rcx, qword [rdi + 0x10]
call qword [fcn.18006b280]
mov rcx, qword [rdi]
call qword [fcn.18006b280]
mov eax, ebp
mov qword [rdi + 8], r14
mov qword [rdi + 0x10], r14
mov qword [rdi], r14
mov dword [rdi + 0x18], r14d
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.18006a1c0
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x18001e700
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
cmp byte [rcx + 0xa6e], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x18001e7c9
cmp qword [rcx + 0x280], 0
je 0x18001e77e
mov qword [rsp + 0x40], rbx
call fcn.180009860
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.18000a300
mov rcx, qword [rdi + 0x1f8]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x280]
movzx edx, bl
mov rcx, rdi
call fcn.18000a300
mov rbx, qword [rsp + 0x40]
jmp 0x18001e7c9
mov ecx, esi
test edx, edx
je 0x18001e78e
sub ecx, 1
je 0x18001e78e
cmp ecx, 1
jne 0x18001e7c9
mov r9, qword [rdi + 0x1f0]
lea rax, [0x180070908]
mov edx, 2
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov r9, qword [rdi + 0x1f0]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x180022a40
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
cdqe
add rsp, 0x28
ret
Function at 0x180022d30
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x180022d5a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExW
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x180071438]
mov rcx, rbx
mov r14, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_wcspbrk
test rax, rax
je 0x180022db9
mov rcx, rbx
test r14, r14
je 0x180022da6
xor edx, edx
lea r8d, [rdx + 8]
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test r14, r14
je 0x180022df0
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180022df0
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r15d, eax
test eax, eax
je 0x180022eba
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x40], rsi
mov rdx, rdi
nop dword [rax]
inc rdx
cmp word [rbx + rdx*2], bp
jne 0x180022e20
lea ecx, [rax + 1]
add rcx, rdx
add rcx, rcx
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x180022eac
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x180022eac
mov rax, rdi
cmp word [rsi + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x180022e53
mov dword [rsi + rax*2], 0x5c
inc rdi
cmp word [rsi + rdi*2], bp
jne 0x180022e65
add rdi, rdi
sub rdi, rbx
add rdi, rsi
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rbx + rdi], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x180022e80
mov rcx, rsi
test r14, r14
je 0x180022ea3
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x180022ea9
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbp, rax
mov rcx, rsi
call qword [fcn.18006b280]
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