joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10038ce0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
xor esi, esi
mov dword [rax - 0x28], esi
mov dword [rax + 8], esi
mov rax, qword [rcx]
mov rdi, rcx
call qword [rax + reloc.WS2_32.dll_getservbyport]
test eax, eax
jne 0x10038dde
cmp qword [rdi + 0x18], 0xffffffffffffffff
je 0x10038dde
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x78], rbx
mov dword [rdi + 0x74], esi
call fcn.1003caa0
mov rcx, qword [rdi + 8]
mov ebx, eax
call fcn.1003cf50
mov rcx, qword [rdi + 8]
add rax, rbx
mov qword [rsp + 0x50], rax
call fcn.1003c960
mov rcx, qword [rdi + 8]
mov ebx, eax
call fcn.1003caa0
mov rcx, qword [rdi + 0x18]
sub ebx, eax
lea rax, [rdi + 0x20]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x70]
lea r8d, [rsi + 1]
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x48], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
mov rbx, qword [rsp + 0x78]
cmp eax, 0xffffffff
setne sil
test esi, esi
mov dword [rdi + 0x70], esi
je 0x10038dab
mov edx, dword [rsp + 0x70]
mov rcx, qword [rdi + 8]
call fcn.1003cb40
mov rcx, qword [rdi + 0x38]
call qword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [rdi + 0x70], 0
jne 0x10038dd8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x10038dd8
mov dword [rdi + 0x10], 1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rdi + 0x38]
mov dword [rdi + 0x74], eax
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [rsp + 0x70]
jmp 0x10038de3
mov eax, 0xffffffff
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
add rsp, 0x68
ret
Function at 0x10038e90
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov dword [rax - 0x28], 0
mov rax, qword [rcx]
mov edi, r9d
mov esi, r8d
mov rbp, rdx
mov rbx, rcx
call qword [rax + reloc.WS2_32.dll_getservbyport]
test eax, eax
jne 0x10038fb3
mov rcx, qword [rbx + 0x18]
cmp rcx, 0xffffffffffffffff
je 0x10038fb3
mov dword [rsp + 0x48], esi
mov dword [rsp + 0x44], eax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], 0
lea rsi, [rbx + 0x20]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x48]
mov r8d, 1
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x50], rbp
call qword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x10038fa3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x10038f43
mov rcx, qword [rbx + 0x38]
mov dword [rsp + 0x40], 0xfffffffe
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [rsp + 0x40]
jmp 0x10038fb8
mov rcx, qword [rbx + 0x38]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10038f72
cmp eax, 0x102
jne 0x10038fa3
mov rcx, qword [rbx + 0x38]
mov dword [rsp + 0x40], 0xfffffffc
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [rsp + 0x40]
jmp 0x10038fb8
mov rcx, qword [rbx + 0x18]
lea rax, [rsp + 0x44]
lea r8, [rsp + 0x40]
xor r9d, r9d
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
mov ecx, dword [rsp + 0x40]
mov edx, 0xfffffffd
test eax, eax
cmove ecx, edx
mov dword [rsp + 0x40], ecx
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [rsp + 0x40]
jmp 0x10038fb8
mov eax, 0xffffffff
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
add rsp, 0x68
ret
Function at 0x10038fe0
Capabilities:
Send data
Send data on socket

Disassembly:
mov r11, rsp
sub rsp, 0x68
xor eax, eax
test rdx, rdx
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x20], rdi
mov rbx, rcx
mov qword [r11 - 0x18], rdx
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x44], eax
mov edi, r9d
mov dword [r11 - 0x20], r8d
je 0x1003911e
test r8d, r8d
je 0x1003911e
mov rcx, qword [rcx + 0x18]
cmp rcx, 0xffffffffffffffff
je 0x1003911e
test rcx, rcx
je 0x1003911e
cmp qword [rbx + 8], rax
jne 0x10039048
mov eax, 0xfffffffe
mov rdi, qword [r11 + 0x20]
mov rbx, qword [r11 + 0x10]
add rsp, 0x68
ret
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x80], rsi
lea rsi, [rbx + 0x40]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x48]
mov r8d, 1
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x100390ed
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x1003909b
mov dword [rbx + 0x10], 1
mov dword [rsp + 0x40], 0xfffffffe
jmp 0x100390ed
mov rcx, qword [rbx + 0x58]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100390bc
cmp eax, 0x102
jne 0x100390ed
mov dword [rsp + 0x40], 0xfffffffc
jmp 0x100390ed
mov rcx, qword [rbx + 0x18]
lea rax, [rsp + 0x44]
lea r8, [rsp + 0x40]
xor r9d, r9d
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
mov ecx, dword [rsp + 0x40]
mov edx, 0xfffffffd
test eax, eax
cmove ecx, edx
mov dword [rsp + 0x40], ecx
mov rcx, qword [rbx + 0x58]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
movsxd rax, dword [rsp + 0x40]
test eax, eax
jle 0x10039104
add qword [rbx + 0x68], rax
mov rsi, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x78]
add rsp, 0x68
ret
mov rdi, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x78]
mov eax, 0xffffffff
add rsp, 0x68
ret
Function at 0x1003a940
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
mov rax, rsp
sub rsp, 0x88
mov qword [rax + 0x20], rbx
mov qword [rax - 0x10], rsi
mov qword [rax - 0x18], rdi
mov qword [rax - 0x20], r12
mov qword [rax - 0x28], r13
mov rsi, rcx
xor r13d, r13d
mov qword [rax - 0x38], r15
mov ecx, 0x4000
mov r12, r8
mov rdi, rdx
mov r15d, r13d
mov dword [rsp + 0x40], r13d
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
test rax, rax
mov rbx, rax
jne 0x1003a995
lea eax, [rbx - 1]
jmp 0x1003ab52
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x80], rbp
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rdi
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x58], r14
mov ebp, r13d
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
mov r14, rax
jne 0x1003a9e1
mov eax, 0xfffffffe
jmp 0x1003ab45
mov rax, qword [rsi]
mov r9d, 0xea60
mov r8d, 0x4000
mov rdx, rbx
mov rcx, rsi
mov r13b, 1
call qword [rax + 0x28]
test eax, eax
mov esi, eax
jle 0x1003ab05
test esi, esi
je 0x1003aade
test r13b, r13b
je 0x1003aab1
lea ecx, [rsi - 3]
xor edi, edi
xor eax, eax
test ecx, ecx
jle 0x1003aade
cmp byte [rax + rbx], 0xd
jne 0x1003aa41
cmp byte [rax + rbx + 1], 0xa
jne 0x1003aa41
cmp byte [rax + rbx + 2], 0xd
jne 0x1003aa41
cmp byte [rax + rbx + 3], 0xa
je 0x1003aa4f
inc edi
inc rax
cmp edi, ecx
jl 0x1003aa26
jmp 0x1003aade
test r12, r12
je 0x1003aa66
mov ecx, esi
sub ecx, edi
sub ecx, 4
call r12
test eax, eax
js 0x1003ab18
sub esi, edi
mov edx, edi
mov rcx, rbx
lea ebp, [rbp + rsi - 4]
call fcn.1003a7d0
test eax, eax
mov r15d, eax
jle 0x1003ab18
movsxd rcx, edi
lea r8d, [rsi - 4]
lea r9, [rsp + 0x44]
lea rdx, [rcx + rbx + 4]
mov rcx, r14
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor r13b, r13b
jmp 0x1003aade
test r12, r12
je 0x1003aabf
mov ecx, esi
call r12
test eax, eax
js 0x1003ab18
lea r9, [rsp + 0x44]
mov r8d, esi
mov rdx, rbx
mov rcx, r14
add ebp, esi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x90]
mov r9d, 0xea60
mov r8d, 0x4000
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 0x28]
test eax, eax
mov esi, eax
jg 0x1003aa06
mov rcx, rbx
call fcn.10041bb0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1003ab21
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x40], 0
je 0x1003a9d7
test r15d, r15d
jg 0x1003ab38
mov eax, 0xfffffffd
jmp 0x1003ab45
mov eax, 0xfffffffc
cmp r15d, ebp
cmovne ebp, eax
mov eax, ebp
mov rbp, qword [rsp + 0x80]
mov r14, qword [rsp + 0x58]
mov r15, qword [rsp + 0x50]
mov r13, qword [rsp + 0x60]
mov r12, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0xa8]
add rsp, 0x88
ret
Function at 0x14000dc50
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x14003c040]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rax, rdx
mov rdi, rcx
mov qword [rbp - 0x21], rcx
xor esi, esi
mov dword [rbp - 0x29], esi
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
mov qword [rcx + 0x10], rsi
mov dword [rbp - 0x29], 1
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x11]
lea r8d, [rsi - 1]
lea rdx, str.SELECT_name__value_FROM_autofill_WHERE_value_NOT_NULL
mov rcx, rax
call qword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.sqlite3.dll_sqlite3_step]
cmp eax, 0x64
jne 0x14000de0d
nop dword [rax]
xor edx, edx
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.sqlite3.dll_sqlite3_column_text]
xorps xmm0, xmm0
movups xmmword [rbp + 0x17], xmm0
mov qword [rbp + 0x27], rsi
mov qword [rbp + 0x2f], rsi
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x14000dcf2
mov rdx, rax
lea rcx, [rbp + 0x17]
call fcn.14001ac10
nop
mov edx, 1
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.sqlite3.dll_sqlite3_column_text]
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
mov qword [rbp + 7], rsi
mov qword [rbp + 0xf], rsi
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], 0
jne 0x14000dd30
mov rdx, rax
lea rcx, [rbp - 9]
call fcn.14001ac10
nop
mov rbx, qword [rdi + 8]
cmp rbx, qword [rdi + 0x10]
je 0x14000dd77
mov qword [rbp - 0x19], rbx
lea rdx, [rbp + 0x17]
mov rcx, rbx
call fcn.140017750
nop
lea rcx, [rbx + 0x20]
lea rdx, [rbp - 9]
call fcn.140017750
nop
add qword [rdi + 8], 0x40
jmp 0x14000dd8b
lea r9, [rbp - 9]
lea r8, [rbp + 0x17]
mov rdx, rbx
mov rcx, rdi
call fcn.1400202e0
nop
mov rdx, qword [rbp + 0xf]
cmp rdx, 0xf
jbe 0x14000ddc3
inc rdx
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ddbd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000de39
call fcn.14002b7a0
nop
mov rdx, qword [rbp + 0x2f]
cmp rdx, 0xf
jbe 0x14000ddfa
inc rdx
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ddf5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000de40
call fcn.14002b7a0
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.sqlite3.dll_sqlite3_step]
cmp eax, 0x64
je 0x14000dcd0
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.sqlite3.dll_sqlite3_finalize]
mov rax, rdi
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14002b780
mov rbx, qword [rsp + 0xd0]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x1400165a0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x1400165c8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1400165ee
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400165f0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140016649
test ecx, ecx
jle 0x140016629
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140016649
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140016649
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140016670
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140016692
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400166a8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400166c4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400166c6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140016702
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14001679e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14001673d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14001677e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14001679e
cmp rbx, rax
ja 0x140016750
test rbx, rbx
je 0x14001679e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140016c00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14003c040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140016c2d
xor eax, eax
jmp 0x140016d99
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140016c67
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140016c67
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140016d99
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140016d8c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140016caa
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140016cd5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140016d91
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140016d44
sub eax, 1
je 0x140016d44
cmp eax, 2
jne 0x140016d8c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140016d91
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140016d72
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140016d8c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140016d91
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14002b780
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140017ad0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14003c040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140017ba3
cmp byte [rcx + 0x71], 0
je 0x140017ba3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140017b9f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140017b64
sub eax, 1
je 0x140017b68
cmp eax, 2
jne 0x140017b9f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002b780
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140017b96
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140017b9f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140017b4c
xor al, al
jmp 0x140017b4c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002b780
add rsp, 0x60
pop rbx
ret
Function at 0x140025600
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x14003c040]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r15, r9
mov r14, rdx
mov r12, qword [rsp + 0xc0]
mov rdi, qword [rsp + 0xc8]
xor r13d, r13d
lea ecx, [r13 + 0x60]
call fcn.14002b7a8
mov rsi, rax
mov qword [rsp + 0x30], rax
mov qword [rax], r13
mov qword [rax + 8], r13
mov qword [rax + 0x10], r13
mov rdx, qword [rdi + 8]
sub rdx, qword [rdi]
sar rdx, 5
test rdx, rdx
je 0x1400256cc
mov rcx, rax
call fcn.14001bdc0
mov qword [rsp + 0x38], rsi
mov rbx, qword [rsi]
mov rbp, qword [rdi + 8]
mov rdi, qword [rdi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
cmp rdi, rbp
je 0x1400256bd
nop dword [rax + rax]
mov rdx, rdi
mov rcx, rbx
call fcn.140017750
add rbx, 0x20
mov qword [rsp + 0x48], rbx
add rdi, 0x20
cmp rdi, rbp
jne 0x1400256a0
mov rdx, rbx
mov rcx, rbx
call fcn.14001ad80
mov qword [rsi + 8], rbx
lea rcx, [rsi + 0x18]
mov rdx, r12
call fcn.140017750
nop
lea rcx, [rsi + 0x38]
mov rdx, r15
call fcn.140006230
nop
lea rax, [0x140012780]
mov qword [rsi + 0x58], rax
mov qword [rsp + 0x38], rsi
lea rbx, [r14 + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], r13d
mov r9, rsi
lea r8, [0x14002a360]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [r14], rax
test rax, rax
je 0x140025745
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002b780
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov dword [rbx], r13d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x14002b5b4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14002b5ee
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14002b5f3
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14002b63c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140030740]
cmp byte [rcx + rax], 0
je 0x14002b63c
dec r8
sub rdx, 1
jne 0x14002b622
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14002c32c
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, [0x14026dd10]
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14008b80e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14008b813
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14008b85c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14026dc10]
cmp byte [rcx + rax], 0
je 0x14008b85c
dec r8
sub rdx, 1
jne 0x14008b842
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140096f50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x14036a040]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp byte [rcx + 0x20], 0
mov rbx, rcx
jne 0x14009703d
mov qword [rsp + 0x88], rdi
lea rdx, [rsp + 0x20]
xor edi, edi
mov word [rsp + 0x28], 0x101
mov qword [rsp + 0x20], rdi
mov byte [rsp + 0x2a], dil
call fcn.140096de0
mov rax, qword [rsp + 0x20]
test rax, rax
js 0x140097035
cmp byte [0x1403aedc1], dil
mov qword [rsp + 0x30], rax
jne 0x140096fbf
call sub.api_ms_win_crt_time_l1_1_0.dll__tzset
mov byte [0x1403aedc1], 1
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call sub.api_ms_win_crt_time_l1_1_0.dll__localtime64_s
mov eax, dword [rsp + 0x4c]
test eax, eax
jns 0x140096fe1
xor ecx, ecx
call fcn.140001920
mov eax, dword [rsp + 0x4c]
mov ecx, 0x76c
mov word [rbx + 0x1e], di
add ax, cx
mov dword [rbx + 0x24], 0xffffffff
mov word [rbx + 0x10], ax
movzx eax, word [rsp + 0x48]
inc ax
mov byte [rbx + 0x20], 1
mov word [rbx + 0x12], ax
movzx eax, word [rsp + 0x50]
mov word [rbx + 0x14], ax
movzx eax, word [rsp + 0x44]
mov word [rbx + 0x16], ax
movzx eax, word [rsp + 0x40]
mov word [rbx + 0x18], ax
movzx eax, word [rsp + 0x3c]
mov word [rbx + 0x1a], ax
movzx eax, word [rsp + 0x38]
mov word [rbx + 0x1c], ax
mov rdi, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14008b8a0
add rsp, 0x70
pop rbx
ret