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

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x38
mov rsi, qword [rcx + 0xa8]
mov rbx, rcx
mov rdi, qword [rcx + 0x10]
mov r12, qword [rcx]
test rsi, rsi
je 0x1800f4834
mov qword [rsp + 0x68], r13
xor r13d, r13d
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x60], rbp
nop dword [rax + rax]
movsxd r14, dword [rsi + 0x10]
movzx eax, byte [rbx + 0x1f]
mov r15d, dword [rsi + 0x14]
shl r14, 5
add r14, qword [r12 + 0x20]
test al, al
jne 0x1800f46a1
inc dword [rbx + 0x38]
mov ebp, dword [rbx + 0x38]
jmp 0x1800f46b0
dec al
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 0x1800f46dd
mov r9d, edx
mov dword [rsp + 0x20], r15d
mov edx, gethostname
mov rcx, rdi
call fcn.1800ab9f0
jmp 0x1800f470b
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
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], r13
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.1800f38f0
mov eax, dword [rdi + 0x90]
add eax, 5
cmp eax, dword [rdi + 0x94]
jle 0x1800f474a
mov rcx, rdi
call fcn.1800ab8b0
test eax, eax
jne 0x1800f4820
movsxd rax, dword [rdi + 0x90]
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8 + 8], 2
mov byte [rax + rcx*8], 0x33
mov dword [rax + rcx*8 + 4], r13d
lea rax, [rax + rcx*8]
mov ecx, dword [rdi + 0x90]
mov dword [rax + 0xc], r13d
add ecx, 2
mov dword [rax + 8], ecx
mov byte [rax + 1], r13b
mov qword [rax + 0x10], r13
mov word [rax + 2], r13w
mov qword [rax + 0x18], 0x7f
mov qword [rax + 0x20], r13
mov qword [rax + 0x28], r13
mov qword [rax + 0x30], 0x61
mov qword [rax + 0x38], 2
mov qword [rax + 0x40], r13
mov qword [rax + 0x48], 0x80
mov qword [rax + 0x50], r13
mov qword [rax + 0x58], r13
mov qword [rax + 0x60], 0x7a
mov qword [rax + 0x68], r13
mov qword [rax + 0x70], r13
add dword [rdi + 0x90], 5
test rax, rax
je 0x1800f4820
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 0x1800f4814
movzx eax, byte [rbx + 0x1f]
cmp al, 8
jae 0x1800f4814
mov dword [rbx + rax*4 + 0xe8], ebp
inc byte [rbx + 0x1f]
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1800f4680
mov rbp, qword [rsp + 0x60]
mov r13, qword [rsp + 0x68]
mov r14, qword [rsp + 0x70]
mov r15, qword [rsp + 0x30]
add rsp, 0x38
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x180156460
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
sub rsp, 0x30
cmp byte [rcx + 0x18], 0xb
mov rbp, rcx
jne 0x18015649b
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.18014c8b0
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.18014f1b0
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 0x18015650f
movzx eax, byte [rdx]
lea r8, [0x1801f6ef0]
test byte [rax + r8], 2
je 0x18015650f
test r9d, r9d
je 0x180156502
movzx ecx, byte [rsi + rdx]
test byte [rcx + r8], 6
je 0x18015650f
inc esi
cmp esi, r9d
jb 0x1801564f0
lea ecx, [r9 + 2]
lea r8, str.._.s
jmp 0x18015651a
lea ecx, [r9 + 4]
lea r8, str..__.s_
add rbp, 0x38
mov qword [rsp + 0x20], rdx
mov rdx, rbp
call fcn.18014c8b0
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rbp
ret

Function at 0x180159afc
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 0x180159b36
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x180159b3b
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 0x180159b84
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 0x180159b84
dec r8
sub rdx, 1
jne 0x180159b6a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x180171518
Capabilities:
Encode data using xor
Hash data using fnv

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

Function at 0x18017aeec
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x28
call fcn.1801bf34c
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x18017af3e
and dword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov r9d, 2
lea edx, [r9 + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx ecx, word [rsp + 0x30]
sub ecx, 0x30
je 0x18017af3e
sub ecx, 1
je 0x18017af37
cmp ecx, 1
je 0x18017af30
xor eax, eax
jmp 0x18017af43
mov eax, 3
jmp 0x18017af43
mov eax, 1
jmp 0x18017af43
mov eax, 2
add rsp, 0x28
ret

Function at 0x18017d2b0
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 0x18017d2da
mov eax, dword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
lea rdx, str.error_while_reading
mov rcx, rbx
call fcn.18017d2f0
int3
Function at 0x180185380
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 0x180185545
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 0x180185545
movzx edx, word [r13]
xor bpl, bpl
movzx ecx, word [rax]
cmp r8w, dx
jae 0x18018541a
lea eax, [r11 + rcx]
cmp ax, r9w
ja 0x180185565
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x180185430
mov eax, ecx
add cx, bx
cmp cx, r9w
ja 0x180185430
shl eax, 0xa
mov bpl, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x180185443
movzx r9d, al
mov r11d, r15d
mov ebx, r15d
jmp 0x18018548e
mov r9d, eax
cmp eax, 0x800
jae 0x18018545d
shr r9d, 6
mov r11d, r8d
or r9b, 0xc0
mov ebx, r8d
jmp 0x18018548e
cmp eax, 0x10000
jae 0x180185477
shr r9d, 0xc
mov r11d, 2
or r9b, 0xe0
mov ebx, r11d
jmp 0x18018548e
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 0x180185545
test dx, dx
jne 0x1801854d9
mov rcx, qword [rsp + 0x40]
test byte [rcx + 0x14], 2
je 0x1801854d9
lea edx, [r8 + 3]
cmp rdi, rdx
jl 0x180185545
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 0x1801854e8
cmp r11d, 3
jae 0x1801854f4
mov rcx, qword [r10]
mov r8d, ebx
mov byte [rcx], r9b
inc qword [r10]
mov r9, qword [r10]
test r8d, r8d
jle 0x180185520
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 0x180185502
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 0x1801853cf
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 0x180194130
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 0x18019414f
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.1801831b0
int3
Function at 0x18019d4b0
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.18017c168
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 0x18019d53d
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x18019d53d
lea r8, str.boost::filesystem::current_path
mov rdx, r14
mov ecx, eax
call fcn.18019c130
jmp 0x18019d55a
test r14, r14
je 0x18019d55a
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 0x18019d570
mov r8, rbx
mov rdx, rsi
mov rcx, rbp
call fcn.18003cfa0
nop
mov rcx, rsi
call fcn.18017bcc0
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 0x18019d890
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 0x18019d8b2
mov rdx, qword [rdx]
cmp qword [rcx + 0x18], 7
jbe 0x18019d8bc
mov rcx, qword [rcx]
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x18019d902
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x18019d902
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.18019bf30
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
test rbx, rbx
je 0x18019d921
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 0x18019df80
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 [0x180240300]
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 0x18019dfbb
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 0x18019dfd3
lea rcx, [rsp + 0x48]
call fcn.18003cfa0
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 0x18019e06b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18019e065
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18019e15b
call fcn.18017bcc0
nop
movdqa xmm0, xmmword [0x18020dfc0]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], di
cmp rbx, 0xffffffffffffffff
je 0x18019e0aa
test rbx, rbx
je 0x18019e0aa
mov r9, r15
mov r8, rsi
mov rdx, rbx
mov rcx, r14
call fcn.18019dab0
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x18019e134
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp eax, 5
jne 0x18019e10f
mov rcx, rsi
cmp qword [rsi + 0x18], 7
jbe 0x18019e0c4
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
je 0x18019e107
bt eax, 0xa
jb 0x18019e10f
mov edx, eax
mov rcx, rsi
call fcn.18019b6e0
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 0x18019e134
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x18019e134
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov r9, r15
mov r8, rsi
mov edx, ebp
mov rcx, r14
call fcn.18019d680
nop
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x18019e134
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, r14
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.18017b860
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.1801b27d8
nop
int3

Function at 0x1801a0740
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x20
mov ecx, dword [0x180240450]
cmp ecx, 0xffffffff
je 0x1801a0760
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x1801a077a
call fcn.1801a0c60
mov ecx, dword [0x180240450]
cmp ecx, 0xffffffff
jne 0x1801a0774
xor eax, eax
jmp 0x1801a077a
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea rbx, [rax + 0x18]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.18019f6a0
mov qword [rbx], rax
add rsp, 0x20
pop rbx
ret
Function at 0x1801a0bd0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x180240450]
cmp ecx, 0xffffffff
je 0x1801a0c37
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1801a0c37
mov r8, qword [rax + 0x28]
mov rdx, r8
mov rax, qword [r8 + 8]
cmp byte [rax + 0x19], 0
jne 0x1801a0c18
cmp qword [rax + 0x20], rbx
jae 0x1801a0c0c
mov rax, qword [rax + 0x10]
jmp 0x1801a0c12
mov rdx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1801a0c00
cmp byte [rdx + 0x19], 0
jne 0x1801a0c37
cmp rbx, qword [rdx + 0x20]
jb 0x1801a0c37
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 0x1801a0c60
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.18019f640
mov rbx, rax
mov qword [rsp + 0x30], rax
lea rdx, [0x1801a0bb0]
lea rcx, [0x1802502d8]
call fcn.1801a07a0
mov ecx, dword [0x180240450]
cmp ecx, 0xffffffff
je 0x1801a0c9b
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
add rsp, 0x20
pop rbx
ret
Function at 0x1801a1100
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x1801a1220
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ecx, dword [0x180240450]
cmp ecx, 0xffffffff
jne 0x1801a123e
xor esi, esi
jmp 0x1801a1247
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov qword [rsp + 0x30], rsi
test rsi, rsi
je 0x1801a133b
cmp qword [rsi + 0x30], 0
jne 0x1801a126d
cmp qword [rsi + 0x18], 0
je 0x1801a1314
mov rbx, qword [rsi + 0x18]
jmp 0x1801a1280
mov rbx, qword [rsi + 0x18]
test rbx, rbx
je 0x1801a12d4
nop word [rax + rax]
mov rax, qword [rbx + 8]
mov qword [rsi + 0x18], rax
mov rcx, qword [rbx]
test rcx, rcx
je 0x1801a12b7
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 0x1801a1280
cmp qword [rsi + 0x30], 0
je 0x1801a125c
nop dword [rax + rax]
mov rbx, qword [rsi + 0x28]
mov rbx, qword [rbx]
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1801a12fc
mov rdx, qword [rbx + 0x38]
test rdx, rdx
je 0x1801a12fc
call qword [rbx + 0x28]
mov rdx, rbx
lea rcx, [rsi + 0x28]
call fcn.1801a0270
cmp qword [rsi + 0x30], 0
jne 0x1801a12e0
jmp 0x1801a1255
lea rdx, [0x1801a0bb0]
lea rcx, [0x1802502d8]
call fcn.1801a07a0
mov ecx, dword [0x180240450]
cmp ecx, 0xffffffff
je 0x1801a133b
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
test rsi, rsi
je 0x1801a136e
mov eax, 0xffffffff
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x1801a136e
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 0x1801a1220
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x1801a1220
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ecx, dword [0x180240450]
cmp ecx, 0xffffffff
jne 0x1801a123e
xor esi, esi
jmp 0x1801a1247
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov qword [rsp + 0x30], rsi
test rsi, rsi
je 0x1801a133b
cmp qword [rsi + 0x30], 0
jne 0x1801a126d
cmp qword [rsi + 0x18], 0
je 0x1801a1314
mov rbx, qword [rsi + 0x18]
jmp 0x1801a1280
mov rbx, qword [rsi + 0x18]
test rbx, rbx
je 0x1801a12d4
nop word [rax + rax]
mov rax, qword [rbx + 8]
mov qword [rsi + 0x18], rax
mov rcx, qword [rbx]
test rcx, rcx
je 0x1801a12b7
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 0x1801a1280
cmp qword [rsi + 0x30], 0
je 0x1801a125c
nop dword [rax + rax]
mov rbx, qword [rsi + 0x28]
mov rbx, qword [rbx]
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1801a12fc
mov rdx, qword [rbx + 0x38]
test rdx, rdx
je 0x1801a12fc
call qword [rbx + 0x28]
mov rdx, rbx
lea rcx, [rsi + 0x28]
call fcn.1801a0270
cmp qword [rsi + 0x30], 0
jne 0x1801a12e0
jmp 0x1801a1255
lea rdx, [0x1801a0bb0]
lea rcx, [0x1802502d8]
call fcn.1801a07a0
mov ecx, dword [0x180240450]
cmp ecx, 0xffffffff
je 0x1801a133b
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
test rsi, rsi
je 0x1801a136e
mov eax, 0xffffffff
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x1801a136e
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 0x1801c242c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1801c249b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1801c249b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1801c249b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1801c249b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1801c249b
cmp dword [rcx + 0x84], 0xe
jbe 0x1801c249b
cmp dword [rcx + 0xf8], 0
je 0x1801c249b
mov ecx, ebx
call fcn.1801c254c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1801c2328
nop
cmp dword [rbp + 0x20], 0
je 0x1801c24e9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1801c24f4
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1801c242c

Function at 0x1801c8914
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1801c892a
mov al, 1
jmp 0x1801c898a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1801c893b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1801c8988
mov ecx, dword [rcx + 0x18]
nop
call fcn.1801d48b8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1801c8988
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1801c8988
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1801c8988
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1801c898a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1801cb658
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.18017c650
sub rsp, rax
mov rax, qword [0x180240300]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1801c6c50
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1801cb6a7
mov rax, rbp
jmp 0x1801cb7af
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 + 0x250b90]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1801cc7a4
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x250b90]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1801cb7ab
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1801cb7ab
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1801cc7a4
test rax, rax
js 0x1801cb7ab
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1801cb7ab
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1801cb79d
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1801cb79d
cmp byte [rcx], 0xd
jne 0x1801cb783
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1801cb792
cmp byte [rcx + 1], 0xa
jne 0x1801cb792
inc rcx
jmp 0x1801cb792
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x2409e0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1801cb765
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1801cb7af
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18017b860
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret