joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800f42d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rsi, qword [rcx + 0xa8]
mov rbx, rcx
mov rax, qword [rcx]
mov rdi, qword [rcx + 0x10]
mov qword [rsp + 0x60], rax
test rsi, rsi
je 0x1800f44e2
mov qword [rsp + 0x70], r12
xor r9d, r9d
mov qword [rsp + 0x78], r13
lea r12, [rdi + 0x88]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x68], rbp
nop word [rax + rax]
movsxd r14, dword [rsi + 0x10]
mov r15d, dword [rsi + 0x14]
shl r14, 5
add r14, qword [rax + 0x20]
movzx eax, byte [rbx + 0x1f]
test al, al
jne 0x1800f4340
inc dword [rbx + 0x38]
mov ebp, dword [rbx + 0x38]
jmp 0x1800f4356
dec al
lea r12, [rdi + 0x88]
movzx eax, al
mov byte [rbx + 0x1f], al
mov ebp, dword [rbx + rax*4 + 0xe8]
movsxd rcx, dword [rdi + 0x90]
lea r8d, [r15 + 2]
lea edx, [rcx + 7]
cmp dword [rdi + 0x94], ecx
jg 0x1800f4383
mov r9d, edx
mov dword [rsp + 0x20], r15d
mov edx, gethostname
mov rcx, rdi
call fcn.1800aba20
jmp 0x1800f43ae
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r12]
mov dword [rax + rcx*8], gethostname
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], r9
mov r9, qword [r14 + 0x18]
xor edx, edx
mov r8d, dword [rsi + 0x10]
mov rcx, rbx
mov dword [rsp + 0x20], WSACleanup
mov r9, qword [r9 + 0x68]
call fcn.1800f3580
mov eax, dword [rdi + 0x90]
add eax, 5
cmp eax, dword [rdi + 0x94]
jle 0x1800f43ed
mov rcx, rdi
call fcn.1800ab8e0
test eax, eax
jne 0x1800f44c9
movsxd rax, dword [rdi + 0x90]
xor r9d, r9d
lea rcx, [rax + rax*2]
mov rax, qword [r12]
mov dword [rax + rcx*8 + 8], 2
mov byte [rax + rcx*8], 0x33
mov dword [rax + rcx*8 + 4], r9d
lea rax, [rax + rcx*8]
mov ecx, dword [rdi + 0x90]
mov dword [rax + 0xc], r9d
add ecx, 2
mov dword [rax + 8], ecx
mov byte [rax + 1], r9b
mov qword [rax + 0x10], r9
mov word [rax + 2], r9w
mov qword [rax + 0x18], 0x7f
mov qword [rax + 0x20], r9
mov qword [rax + 0x28], r9
mov qword [rax + 0x30], 0x61
mov qword [rax + 0x38], 2
mov qword [rax + 0x40], r9
mov qword [rax + 0x48], 0x80
mov qword [rax + 0x50], r9
mov qword [rax + 0x58], r9
mov qword [rax + 0x60], 0x7a
mov qword [rax + 0x68], r9
mov qword [rax + 0x70], r9
add dword [rdi + 0x90], 5
test rax, rax
je 0x1800f44c9
mov dword [rax + 0x3c], ebp
lea edx, [r15 + 1]
mov dword [rax + 4], edx
lea ecx, [r15 - 1]
mov dword [rax + 0x20], edx
mov dword [rax + 0x34], ecx
mov dword [rax + 0x54], edx
mov dword [rax + 0x50], ebp
mov word [rax + 0x4a], 8
test ebp, ebp
je 0x1800f44b7
movzx eax, byte [rbx + 0x1f]
cmp al, 8
jae 0x1800f44b7
mov dword [rbx + rax*4 + 0xe8], ebp
inc byte [rbx + 0x1f]
mov rsi, qword [rsi]
test rsi, rsi
je 0x1800f44c9
mov rax, qword [rsp + 0x60]
jmp 0x1800f4320
mov rbp, qword [rsp + 0x68]
mov r13, qword [rsp + 0x78]
mov r12, qword [rsp + 0x70]
mov r14, qword [rsp + 0x38]
mov r15, qword [rsp + 0x30]
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x180155b40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
sub rsp, 0x30
cmp byte [rcx + 0x18], 0xb
mov rbp, rcx
jne 0x180155b7b
mov eax, dword [rcx + 0x1c]
lea rdx, [rcx + 0x38]
mov r9, qword [rcx + 0x28]
dec eax
mov ecx, 0x1e
lea r8, [rax + rax*2]
mov r9, qword [r9 + r8*8 + 0x10]
lea r8, str.__lld_
add rsp, 0x30
pop rbp
jmp fcn.18014bfe0
mov edx, dword [rcx + 0xc]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x48], rsi
add rcx, 0xc0
xor esi, esi
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x40], esi
call fcn.18014e8b0
add eax, dword [rbp + 0xc]
mov r9d, dword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
mov edx, eax
add rdx, qword [rbp + 0xc0]
test r9d, r9d
je 0x180155bef
movzx eax, byte [rdx]
lea r8, [0x1801f9f80]
test byte [rax + r8], 2
je 0x180155bef
test r9d, r9d
je 0x180155be2
movzx ecx, byte [rsi + rdx]
test byte [rcx + r8], 6
je 0x180155bef
inc esi
cmp esi, r9d
jb 0x180155bd0
lea ecx, [r9 + 2]
lea r8, str.._.s
jmp 0x180155bfa
lea ecx, [r9 + 4]
lea r8, str..__.s_
add rbp, 0x38
mov qword [rsp + 0x20], rdx
mov rdx, rbp
call fcn.18014bfe0
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rbp
ret

Function at 0x18015915c
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 0x180159196
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x18015919b
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 0x1801591e4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1801591e4
dec r8
sub rdx, 1
jne 0x1801591ca
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x180170b80
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x18015d39a
movzx eax, byte [rcx + rdx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x18015d37d
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x18015d368

Function at 0x18017c7b0
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [rcx]
lea r8, [rsp + 0x30]
mov edx, 4
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x18017c7da
mov eax, dword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
lea rdx, str.error_while_reading
mov rcx, rbx
call fcn.18017c7f0
int3
Function at 0x180184670
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov r14, qword [rsp + 0x60]
xor r15d, r15d
mov rax, qword [rsp + 0x68]
mov r13, rdx
mov r10, qword [rsp + 0x78]
mov qword [r14], r8
mov qword [r10], rax
mov rax, qword [r14]
cmp rax, r9
je 0x180184835
mov r12, qword [rsp + 0x70]
lea r8d, [r15 + 1]
mov rsi, qword [r10]
mov r9d, 0x3ff
mov r11d, 0x2400
mov ebx, 0x2800
cmp rsi, r12
je 0x180184835
movzx edx, word [r13]
xor bpl, bpl
movzx ecx, word [rax]
cmp r8w, dx
jae 0x18018470a
lea eax, [r11 + rcx]
cmp ax, r9w
ja 0x180184855
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x180184720
mov eax, ecx
add cx, bx
cmp cx, r9w
ja 0x180184720
shl eax, 0xa
mov bpl, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x180184733
movzx r9d, al
mov r11d, r15d
mov ebx, r15d
jmp 0x18018477e
mov r9d, eax
cmp eax, 0x800
jae 0x18018474d
shr r9d, 6
mov r11d, r8d
or r9b, 0xc0
mov ebx, r8d
jmp 0x18018477e
cmp eax, 0x10000
jae 0x180184767
shr r9d, 0xc
mov r11d, 2
or r9b, 0xe0
mov ebx, r11d
jmp 0x18018477e
shr r9d, 0x12
mov r11d, 3
movzx ebx, bpl
or r9b, 0xf0
xor ebx, 1
add ebx, ebx
lea r8d, [rbx + 1]
mov rdi, r12
sub rdi, rsi
mov ecx, r8d
cmp rdi, rcx
jl 0x180184835
test dx, dx
jne 0x1801847c9
mov rcx, qword [rsp + 0x40]
test byte [rcx + 0x14], 2
je 0x1801847c9
lea edx, [r8 + 3]
cmp rdi, rdx
jl 0x180184835
mov byte [rsi], 0xef
inc qword [r10]
mov rcx, qword [r10]
mov byte [rcx], 0xbb
inc qword [r10]
mov rcx, qword [r10]
mov byte [rcx], 0xbf
inc qword [r10]
add qword [r14], 2
test bpl, bpl
jne 0x1801847d8
cmp r11d, 3
jae 0x1801847e4
mov rcx, qword [r10]
mov r8d, ebx
mov byte [rcx], r9b
inc qword [r10]
mov r9, qword [r10]
test r8d, r8d
jle 0x180184810
lea ecx, [r11 + r11*2]
add ecx, ecx
sub ecx, 6
mov edx, eax
shr edx, cl
dec r8d
and dl, 0x3f
or dl, 0x80
mov byte [r9], dl
inc qword [r10]
mov r9, qword [r10]
test r8d, r8d
jg 0x1801847f2
shr eax, 0xa
mov r8d, 1
test bpl, bpl
mov ecx, r8d
cmovne ecx, eax
mov word [r13], cx
mov rax, qword [r14]
cmp rax, qword [rsp + 0x58]
jne 0x1801846bf
mov rax, qword [rsp + 0x50]
cmp rax, qword [r14]
sete r15b
mov eax, r15d
mov rbx, qword [rsp + 0x48]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rbx, qword [rsp + 0x48]
mov eax, 2
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x180193420
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
cmp eax, 0xffffffff
je 0x18019343f
mov rax, rbx
add rsp, 0x20
pop rbx
ret
mov r9d, recv
lea r8, str.TLS_capacity_depleted
lea rcx, str.libslog_src_thread_specific.cpp
lea edx, [r9 + 0x1d]
call fcn.1801824a0
int3
Function at 0x18019c7a0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
push r14
push r15
sub rsp, 0x40
mov r14, rdx
mov rbp, rcx
xor r15d, r15d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
mov eax, 1
test edi, edi
cmove edi, eax
mov edx, edi
mov eax, 2
mul rdx
mov rbx, 0xffffffffffffffff
cmovo rax, rbx
mov rcx, rax
call fcn.18017b784
mov rsi, rax
mov qword [rsp + 0x60], rax
mov rdx, rax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x18019c82d
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x18019c82d
lea r8, str.boost::filesystem::current_path
mov rdx, r14
mov ecx, eax
call fcn.18019b420
jmp 0x18019c84a
test r14, r14
je 0x18019c84a
xorps xmm0, xmm0
mov qword [rsp + 0x38], r15
movups xmmword [r14], xmm0
movsd xmm0, qword [rsp + 0x38]
movsd qword [r14 + 0x10], xmm0
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], r15
mov qword [rbp + 0x18], r15
nop dword [rax]
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x18019c860
mov r8, rbx
mov rdx, rsi
mov rcx, rbp
call fcn.18003cc60
nop
mov rcx, rsi
call fcn.18017b2e0
mov rax, rbp
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x18019cb80
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
cmp qword [rdx + 0x18], 7
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
jbe 0x18019cba2
mov rdx, qword [rdx]
cmp qword [rcx + 0x18], 7
jbe 0x18019cbac
mov rcx, qword [rcx]
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x18019cbf2
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x18019cbf2
lea rcx, str.boost::filesystem::rename
mov r9, rbx
mov qword [rsp + 0x20], rcx
mov r8, rsi
mov ecx, eax
mov rdx, rdi
call fcn.18019b220
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
test rbx, rbx
je 0x18019cc11
xorps xmm0, xmm0
mov qword [rsp + 0x40], 0
movups xmmword [rbx], xmm0
movsd xmm0, qword [rsp + 0x40]
movsd qword [rbx + 0x10], xmm0
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x18019d270
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x180243280]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r15, r8
mov rsi, rdx
mov r14, rcx
xor edi, edi
mov dword [rsp + 0x40], edi
cmp qword [rdx + 0x18], 7
jbe 0x18019d2ab
mov rdx, qword [rdx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], di
jne 0x18019d2c3
lea rcx, [rsp + 0x48]
call fcn.18003cc60
nop
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova rcx, qword [rsp + 0x48]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x2200000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x88
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x18019d35b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18019d355
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18019d44b
call fcn.18017b2e0
nop
movdqa xmm0, xmmword [0x180210d20]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], di
cmp rbx, 0xffffffffffffffff
je 0x18019d39a
test rbx, rbx
je 0x18019d39a
mov r9, r15
mov r8, rsi
mov rdx, rbx
mov rcx, r14
call fcn.18019cda0
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x18019d424
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp eax, 5
jne 0x18019d3ff
mov rcx, rsi
cmp qword [rsi + 0x18], 7
jbe 0x18019d3b4
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
je 0x18019d3f7
bt eax, 0xa
jb 0x18019d3ff
mov edx, eax
mov rcx, rsi
call fcn.18019a9d0
and edi, 0x10
or edi, 0x20
shr edi, 4
mov dword [r14], edi
mov dword [r14 + 4], eax
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x18019d424
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x18019d424
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov r9, r15
mov r8, rsi
mov edx, ebp
mov rcx, r14
call fcn.18019c970
nop
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x18019d424
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, r14
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.18017ae80
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.1801b2a94
nop
int3

Function at 0x18019fa30
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x20
mov ecx, dword [0x1802433c0]
cmp ecx, 0xffffffff
je 0x18019fa50
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x18019fa6a
call fcn.18019ff50
mov ecx, dword [0x1802433c0]
cmp ecx, 0xffffffff
jne 0x18019fa64
xor eax, eax
jmp 0x18019fa6a
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea rbx, [rax + 0x18]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.18019e990
mov qword [rbx], rax
add rsp, 0x20
pop rbx
ret
Function at 0x18019fec0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x1802433c0]
cmp ecx, 0xffffffff
je 0x18019ff27
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x18019ff27
mov r8, qword [rax + 0x28]
mov rdx, r8
mov rax, qword [r8 + 8]
cmp byte [rax + 0x19], 0
jne 0x18019ff08
cmp qword [rax + 0x20], rbx
jae 0x18019fefc
mov rax, qword [rax + 0x10]
jmp 0x18019ff02
mov rdx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x18019fef0
cmp byte [rdx + 0x19], 0
jne 0x18019ff27
cmp rbx, qword [rdx + 0x20]
jb 0x18019ff27
xor eax, eax
lea rcx, [rdx + 0x28]
cmp rdx, r8
cmovne rax, rcx
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x18019ff50
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.18019e930
mov rbx, rax
mov qword [rsp + 0x30], rax
lea rdx, [0x18019fea0]
lea rcx, [0x1802531f8]
call fcn.18019fa90
mov ecx, dword [0x1802433c0]
cmp ecx, 0xffffffff
je 0x18019ff8b
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
add rsp, 0x20
pop rbx
ret
Function at 0x1801a03f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x1801a0510
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ecx, dword [0x1802433c0]
cmp ecx, 0xffffffff
jne 0x1801a052e
xor esi, esi
jmp 0x1801a0537
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov qword [rsp + 0x30], rsi
test rsi, rsi
je 0x1801a062b
cmp qword [rsi + 0x30], 0
jne 0x1801a055d
cmp qword [rsi + 0x18], 0
je 0x1801a0604
mov rbx, qword [rsi + 0x18]
jmp 0x1801a0570
mov rbx, qword [rsi + 0x18]
test rbx, rbx
je 0x1801a05c4
nop word [rax + rax]
mov rax, qword [rbx + 8]
mov qword [rsi + 0x18], rax
mov rcx, qword [rbx]
test rcx, rcx
je 0x1801a05a7
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdi, qword [rbx]
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsi + 0x18]
test rbx, rbx
jne 0x1801a0570
cmp qword [rsi + 0x30], 0
je 0x1801a054c
nop dword [rax + rax]
mov rbx, qword [rsi + 0x28]
mov rbx, qword [rbx]
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1801a05ec
mov rdx, qword [rbx + 0x38]
test rdx, rdx
je 0x1801a05ec
call qword [rbx + 0x28]
mov rdx, rbx
lea rcx, [rsi + 0x28]
call fcn.18019f560
cmp qword [rsi + 0x30], 0
jne 0x1801a05d0
jmp 0x1801a0545
lea rdx, [0x18019fea0]
lea rcx, [0x1802531f8]
call fcn.18019fa90
mov ecx, dword [0x1802433c0]
cmp ecx, 0xffffffff
je 0x1801a062b
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
test rsi, rsi
je 0x1801a065e
mov eax, 0xffffffff
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x1801a065e
mov rax, qword [rsi]
xor edx, edx
mov rcx, rsi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1801a0510
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x1801a0510
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ecx, dword [0x1802433c0]
cmp ecx, 0xffffffff
jne 0x1801a052e
xor esi, esi
jmp 0x1801a0537
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov qword [rsp + 0x30], rsi
test rsi, rsi
je 0x1801a062b
cmp qword [rsi + 0x30], 0
jne 0x1801a055d
cmp qword [rsi + 0x18], 0
je 0x1801a0604
mov rbx, qword [rsi + 0x18]
jmp 0x1801a0570
mov rbx, qword [rsi + 0x18]
test rbx, rbx
je 0x1801a05c4
nop word [rax + rax]
mov rax, qword [rbx + 8]
mov qword [rsi + 0x18], rax
mov rcx, qword [rbx]
test rcx, rcx
je 0x1801a05a7
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdi, qword [rbx]
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsi + 0x18]
test rbx, rbx
jne 0x1801a0570
cmp qword [rsi + 0x30], 0
je 0x1801a054c
nop dword [rax + rax]
mov rbx, qword [rsi + 0x28]
mov rbx, qword [rbx]
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1801a05ec
mov rdx, qword [rbx + 0x38]
test rdx, rdx
je 0x1801a05ec
call qword [rbx + 0x28]
mov rdx, rbx
lea rcx, [rsi + 0x28]
call fcn.18019f560
cmp qword [rsi + 0x30], 0
jne 0x1801a05d0
jmp 0x1801a0545
lea rdx, [0x18019fea0]
lea rcx, [0x1802531f8]
call fcn.18019fa90
mov ecx, dword [0x1802433c0]
cmp ecx, 0xffffffff
je 0x1801a062b
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
test rsi, rsi
je 0x1801a065e
mov eax, 0xffffffff
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x1801a065e
mov rax, qword [rsi]
xor edx, edx
mov rcx, rsi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1801c9fa4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x18026b050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x1801ca009
test rax, rax
jne 0x1801c9ff7
lea r9, [0x1801f1d10]
lea r8, [0x1801f1d08]
lea rdx, [0x1801f1d10]
lea ecx, [rax + 0xa]
call fcn.1801c9a90
test rax, rax
je 0x1801ca009
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.1801da930
jmp 0x1801ca023
xor edx, edx
mov rcx, rbp
call fcn.1801ca344
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1801ca960
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1801ca976
mov al, 1
jmp 0x1801ca9e2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1801ca987
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1801ca9e0
mov ecx, dword [rcx + 0x18]
nop
call fcn.1801d6a38
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1801ca9e0
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1801ca9e0
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1801ca9e0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1801ca9e2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1801cd7e0
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.18017bc70
sub rsp, rax
mov rax, qword [0x180243280]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1801c8b14
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1801cd82f
mov rax, rbp
jmp 0x1801cd93b
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x253ae0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1801ce9ec
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x253ae0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1801cd937
mov dword [rsp + 0x30], edi
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + r12*8 + 0x28]
lea rdx, [rsp + 0x40]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1801cd937
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1801ce9ec
test rax, rax
js 0x1801cd937
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1801cd937
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1801cd929
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1801cd929
cmp byte [rcx], 0xd
jne 0x1801cd90f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1801cd91e
cmp byte [rcx + 1], 0xa
jne 0x1801cd91e
inc rcx
jmp 0x1801cd91e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x243960]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1801cd8f1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1801cd93b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18017ae80
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret