joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18008f020
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
lea rcx, str.G_IO_WIN32_DEBUG
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xor edi, edi
lea rcx, [rbx + 0x90]
mov edx, edi
test rax, rax
setne dl
mov dword [rbx + 0x80], edx
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov qword [rbx + 0xbc], rdi
mov dword [rbx + 0xc4], edi
mov qword [rbx + 0xc8], rdi
mov word [rbx + 0xd0], di
mov qword [rbx + 0xd8], rdi
mov qword [rbx + 0xe8], rdi
mov qword [rbx + 0xf0], rdi
mov qword [rbx + 0xf8], rdi
mov qword [rbx + 0x100], rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x18008f8b0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
lea rax, [rcx + 0xc4]
mov rdi, rcx
mov r9, rcx
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
test rbx, rbx
jne 0x18008f90e
mov ecx, dword [rax]
call sym.glib_2.0.dll_g_strerror
mov r9, rax
lea r8, str.Error_creating_thread:__s.
lea edx, [rbx + 0x10]
lea rcx, [0x18009cbc8]
call sym.glib_2.0.dll_g_log
jmp 0x18008f954
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x18008f954
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call sym.glib_2.0.dll_g_win32_error_message
mov r9, rax
lea r8, str.Error_closing_thread_handle:__s.
mov edx, reloc.WS2_32.dll_recv
lea rcx, [0x18009cbc8]
mov rbx, rax
call sym.glib_2.0.dll_g_log
test rbx, rbx
je 0x18008f954
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rdi + 0xe8]
mov edx, 0xffffffff
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
Function at 0x180091df0
Capabilities:
Read file on windows
Read pipe
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov eax, 0x1000
mov rbx, rcx
mov ecx, dword [rcx + 0x78]
test word [rdx + 6], ax
je 0x180091e9a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
xor edi, edi
lea r9, [rsp + 0x48]
mov rcx, rax
mov qword [rsp + 0x28], rdi
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x180091e48
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
mov eax, edi
jne 0x180091e4d
mov eax, 8
and dword [rbx + 0x60], 0xfffffff7
mov ecx, dword [rbx + 0x78]
or dword [rbx + 0x60], eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rdi
mov rcx, rax
lea rdx, [rsp + 0x40]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
mov eax, dword [rbx + 0x60]
sbb ecx, ecx
and eax, 0xffffffef
and ecx, 0x10
or eax, ecx
and eax, 0xffffffdf
mov dword [rbx + 0x60], eax
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
xor edi, edi
lea r9, [rsp + 0x48]
mov rcx, rax
mov qword [rsp + 0x20], rdi
xor r8d, r8d
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
and dword [rbx + 0x60], 0xfffffff7
mov ecx, dword [rbx + 0x78]
neg eax
sbb eax, eax
and eax, 8
or dword [rbx + 0x60], eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rdi
mov rcx, rax
lea rdx, [rsp + 0x40]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
mov eax, dword [rbx + 0x60]
sbb ecx, ecx
and eax, 0xffffffef
and ecx, 0x10
or eax, ecx
or eax, 0x20
mov dword [rbx + 0x60], eax
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x180091fc0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x18011c010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, rcx
mov ecx, dword [rcx + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
lea r9, [rsp + 0x34]
mov r8d, 1
mov rcx, rax
lea rdx, [rsp + 0x38]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
and dword [rdi + 0x60], 0xfffffff7
lea r9, [rsp + 0x34]
and eax, 1
mov qword [rsp + 0x20], 0
shl eax, 3
lea rdx, [rsp + 0x30]
or dword [rdi + 0x60], eax
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [rdi + 0x60]
and eax, 1
shl eax, 4
and ecx, 0xffffffcf
or eax, ecx
mov dword [rdi + 0x60], eax
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800989b0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x1800921c0
Capabilities:
Reference absolute stream path on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov ecx, 0x108
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
jne 0x180092208
lea r9, str.d:_buildob_bora_15653658cayman_glibglib_srcglibgmem.c:105
mov qword [rsp + 0x20], 0x108
lea r8, str._s:_failed_to_allocate__I64u_bytes
lea edx, [rax + 4]
lea rcx, [0x18009cbc8]
call sym.glib_2.0.dll_g_log
jmp 0x180092206
mov rcx, rbx
call sym.glib_2.0.dll_g_io_channel_init
mov rcx, rbx
call fcn.18008f020
cmp dword [rbx + 0x80], 0
je 0x180092233
mov r8, rdi
lea rcx, str.g_io_channel_win32_new_messages:_channel_p_hwnd_p_n
mov rdx, rbx
call sym.glib_2.0.dll_g_print
lea rax, [0x18011e080]
mov dword [rbx + 0x7c], 0
mov rcx, rdi
mov qword [rbx + 8], rax
mov qword [rbx + 0x88], rdi
call qword [sym.imp.USER32.dll_IsWindow]
and dword [rbx + 0x60], 0xfffffff7
and eax, 1
mov rcx, qword [rbx + 0x88]
shl eax, 3
or dword [rbx + 0x60], eax
call qword [sym.imp.USER32.dll_IsWindow]
mov ecx, dword [rbx + 0x60]
and eax, 1
shl eax, 4
and ecx, 0xffffffcf
or eax, ecx
mov dword [rbx + 0x60], eax
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x180092290
Capabilities:
Reference absolute stream path on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov edi, ecx
mov rsi, rdx
mov ecx, 0x108
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
jne 0x1800922e2
lea r9, str.d:_buildob_bora_15653658cayman_glibglib_srcglibgmem.c:105
mov qword [rsp + 0x20], 0x108
lea r8, str._s:_failed_to_allocate__I64u_bytes
lea edx, [rax + 4]
lea rcx, [0x18009cbc8]
call sym.glib_2.0.dll_g_log
nop dword [rax]
jmp 0x1800922e0
mov rcx, rbx
call sym.glib_2.0.dll_g_io_channel_init
mov rcx, rbx
call fcn.18008f020
cmp dword [rbx + 0x80], 0
mov dword [rbx + 0x78], edi
je 0x180092310
mov r8d, edi
lea rcx, str.g_io_channel_win32_new_fd:_channel_p_fd_u_n
mov rdx, rbx
call sym.glib_2.0.dll_g_print
mov eax, 0x2000
mov rcx, rbx
test word [rsi + 6], ax
je 0x180092348
lea rax, [0x18011e100]
mov dword [rbx + 0x7c], 2
mov qword [rbx + 8], rax
call fcn.180091fc0
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rax, [0x18011e0c0]
mov dword [rbx + 0x7c], 1
mov rdx, rsi
mov qword [rbx + 8], rax
call fcn.180091df0
mov rsi, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x180092410
Capabilities:
Reference absolute stream path on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov edi, ecx
mov ecx, 0x108
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
jne 0x180092457
lea r9, str.d:_buildob_bora_15653658cayman_glibglib_srcglibgmem.c:105
mov qword [rsp + 0x20], 0x108
lea r8, str._s:_failed_to_allocate__I64u_bytes
lea edx, [rax + 4]
lea rcx, [0x18009cbc8]
call sym.glib_2.0.dll_g_log
jmp 0x180092455
mov rcx, rbx
call sym.glib_2.0.dll_g_io_channel_init
mov rcx, rbx
call fcn.18008f020
cmp dword [rbx + 0x80], 0
je 0x180092482
mov r8d, edi
lea rcx, str.g_io_channel_win32_new_socket:_channel_p_sock_d_n
mov rdx, rbx
call sym.glib_2.0.dll_g_print
lea rax, [0x18011e040]
mov dword [rbx + 0x7c], 3
mov qword [rbx + 8], rax
mov eax, dword [rbx + 0x60]
and eax, 0xffffffdf
mov dword [rbx + 0x78], edi
or eax, 0x18
mov dword [rbx + 0x60], eax
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1800927b0
Capabilities:
Reference absolute stream path on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
movzx eax, byte [rcx]
xor r10d, r10d
mov rbx, rcx
mov r9, rcx
mov r8d, r10d
mov esi, r10d
test al, al
je 0x180092824
cmp al, 0x20
je 0x180092810
cmp al, 9
je 0x180092810
cmp al, 0x22
jne 0x1800927e6
inc r8d
jmp 0x180092815
cmp al, 0x5c
jne 0x180092815
movzx eax, byte [r9]
mov rcx, r9
movzx edx, al
cmp al, 0x5c
jne 0x180092806
movzx eax, byte [rcx + 1]
inc rcx
movzx edx, al
test al, al
jne 0x1800927f1
cmp dl, 0x22
jne 0x180092815
inc r8d
jmp 0x180092815
mov esi, 1
movzx eax, byte [r9 + 1]
inc r9
inc r8d
test al, al
jne 0x1800927d5
lea eax, [rsi*2 + 1]
add eax, r8d
movsxd rdi, eax
je 0x180092868
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r10, rax
test rax, rax
jne 0x180092868
lea r9, str.d:_buildob_bora_15653658cayman_glibglib_srcglibgmem.c:105
mov qword [rsp + 0x20], rdi
lea r8, str._s:_failed_to_allocate__I64u_bytes
lea edx, [rax + 4]
lea rcx, [0x18009cbc8]
call sym.glib_2.0.dll_g_log
jmp 0x180092866
mov rcx, r10
test esi, esi
je 0x180092877
mov byte [r10], 0x22
lea rcx, [r10 + 1]
movzx eax, byte [rbx]
test al, al
je 0x1800928c5
nop
cmp al, 0x22
je 0x1800928ad
cmp al, 0x5c
jne 0x1800928b3
movzx eax, byte [rbx]
mov rdx, rbx
nop
movzx r8d, al
cmp al, 0x5c
jne 0x1800928a7
movzx eax, byte [rdx + 1]
inc rdx
movzx r8d, al
test al, al
jne 0x180092890
cmp r8b, 0x22
jne 0x1800928b3
mov byte [rcx], 0x5c
inc rcx
movzx eax, byte [rbx]
inc rbx
mov byte [rcx], al
inc rcx
movzx eax, byte [rbx]
test al, al
jne 0x180092880
mov rax, r10
test esi, esi
je 0x1800928e1
mov word [rcx], 0x22
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov byte [rcx], 0
add rsp, 0x30
pop rdi
ret
Function at 0x180092bc0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor ebp, ebp
mov r15, r8
mov edi, ebp
mov rsi, rdx
mov r14d, ecx
cmp dword [0x18011e034], ebp
je 0x180092c0c
movsxd rax, edi
lea rdx, str.d:_buildob_bora_15653658cayman_glibglib_srcglibgspawn_win32.c
mov r8d, reloc.WS2_32.dll_recv
lea rcx, str._s:read_helper_report:_read__I64u..._n
sub r8, rax
call sym.glib_2.0.dll_g_print
mov r8d, reloc.WS2_32.dll_recv
movsxd rdx, edi
sub r8d, edi
add rdx, rsi
mov ecx, r14d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
cmp dword [0x18011e034], ebp
mov ebx, eax
je 0x180092c3c
mov edx, eax
lea rcx, str....got__d_bytes_n
call sym.glib_2.0.dll_g_print
test ebx, ebx
js 0x180092cb4
je 0x180092c57
add edi, ebx
cmp edi, 0x10
jb 0x180092be5
cmp edi, 0x10
setae bpl
mov eax, ebp
jmp 0x180092d13
call fcn.18002a6c0
call fcn.18002aa30
test eax, eax
jne 0x180092c6e
lea rsi, str.Failed_to_read_from_child_pipe___s_
jmp 0x180092c85
lea rdx, str.Failed_to_read_from_child_pipe___s_
lea rcx, str.glib20
call qword [sym.imp.intl.dll_libintl_dgettext]
mov rsi, rax
call sym.glib_2.0.dll_g_spawn_error_quark
mov edx, eax
mov r9, rsi
lea rax, [0x1800ff77c]
mov r8d, reloc.WS2_32.dll_send
mov rcx, r15
mov qword [rsp + 0x20], rax
call sym.glib_2.0.dll_g_set_error
cmp edi, 0x10
setae bpl
mov eax, ebp
jmp 0x180092d13
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, dword [rax]
call fcn.18002a6c0
call fcn.18002aa30
test eax, eax
jne 0x180092cd3
lea rsi, str.Failed_to_read_from_child_pipe___s_
jmp 0x180092cea
lea rdx, str.Failed_to_read_from_child_pipe___s_
lea rcx, str.glib20
call qword [sym.imp.intl.dll_libintl_dgettext]
mov rsi, rax
mov ecx, ebx
call sym.glib_2.0.dll_g_strerror
mov rbx, rax
call sym.glib_2.0.dll_g_spawn_error_quark
mov edx, eax
mov qword [rsp + 0x20], rbx
mov r9, rsi
mov r8d, reloc.WS2_32.dll_send
mov rcx, r15
call sym.glib_2.0.dll_g_set_error
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x180092e60
Capabilities:
Reference absolute stream path on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], r9
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor edi, edi
mov r12, r8
mov qword [rdx], rdi
mov r13, rdx
mov r14, rcx
test rcx, rcx
je 0x180092f6b
xor ebx, ebx
cmp qword [rcx], rbx
je 0x180092ead
mov rax, rcx
inc ebx
lea rax, [rax + 8]
cmp qword [rax], rdi
jne 0x180092ea2
lea eax, [rbx + 1]
movsxd rcx, eax
movabs rax, 0x1fffffffffffffff
cmp rcx, rax
jbe 0x180092ef2
mov qword [rsp + 0x28], 8
lea r9, str.d:_buildob_bora_15653658cayman_glibglib_srcglibgmem.c:333
mov qword [rsp + 0x20], rcx
lea r8, str._s:_overflow_allocating__I64u_I64u_bytes
lea rcx, [0x18009cbc8]
mov edx, 4
call sym.glib_2.0.dll_g_log
nop
jmp 0x180092ef0
lea rsi, [rcx*8]
test rsi, rsi
je 0x180092f19
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x180092f91
mov r9, qword [rsp + 0x78]
xor ebp, ebp
movsxd r15, ebx
test ebx, ebx
jle 0x180092f63
xor ebx, ebx
mov rsi, rdi
sub r14, rdi
nop word [rax + rax]
mov rcx, qword [r14 + rsi]
xor r8d, r8d
mov qword [rsp + 0x20], r9
xor r9d, r9d
lea edx, [r9 - 1]
call sym.glib_2.0.dll_g_utf8_to_utf16
mov qword [rsi], rax
test rax, rax
je 0x180092fb7
mov r9, qword [rsp + 0x78]
inc ebp
inc rbx
add rsi, 8
cmp rbx, r15
jl 0x180092f30
mov qword [rdi + r15*8], 0
mov qword [r13], rdi
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea r9, str.d:_buildob_bora_15653658cayman_glibglib_srcglibgmem.c:105
mov qword [rsp + 0x20], rsi
lea r8, str._s:_failed_to_allocate__I64u_bytes
mov edx, 4
lea rcx, [0x18009cbc8]
call sym.glib_2.0.dll_g_log
jmp 0x180092fb5
test r12, r12
je 0x180092fc0
mov dword [r12], ebp
test rbx, rbx
je 0x180092fe8
nop word [rax + rax]
mov rcx, qword [rdi + rbx*8 - 8]
dec rbx
test rcx, rcx
je 0x180092fe3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
jne 0x180092fd0
test rdi, rdi
je 0x180092ff6
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
jmp 0x180092f74
Function at 0x180094fc0
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, dword [rcx]
mov rdi, rcx
test ebx, ebx
jne 0x18009504a
lea rcx, [0x18011ef18]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [rdi]
test ebx, ebx
jne 0x18009503d
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ebx, eax
cmp eax, 0xffffffff
je 0x180095057
cmp qword [rdi + 8], 0
je 0x180095031
mov ecx, 0x18
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, rax
test rax, rax
je 0x180095066
mov dword [rax], ebx
mov rax, qword [rdi + 8]
mov qword [rcx + 8], rax
mov rax, qword [0x18011efb0]
mov qword [rcx + 0x10], rax
lock cmpxchg qword [0x18011efb0], rcx
cmp rax, qword [rcx + 0x10]
jne 0x18009507b
mov rcx, rbx
xor eax, eax
lock cmpxchg qword [rdi], rcx
jne 0x18009508a
lea rcx, [0x18011ef18]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea rdx, [0x1800ffd48]
xor ecx, ecx
call fcn.180094c90
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
lea rdx, [0x1800ffd54]
mov ecx, dword [rax]
call fcn.180094c90
int3
lea rdx, str.g_private_get_impl_1_
xor ecx, ecx
call fcn.180094c90
int3
lea rdx, str.g_private_get_impl_2_
xor ecx, ecx
call fcn.180094c90
int3

Function at 0x1800950a0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.180094fc0
mov ecx, eax
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1800950c0
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
call fcn.180094fc0
mov ecx, eax
mov rdx, rbx
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x1800950e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
call fcn.180094fc0
mov ecx, eax
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, rax
test rax, rax
je 0x18009511b
mov rax, qword [rbx + 8]
test rax, rax
je 0x18009511b
call qword [case.0x180005f92.0]
mov rdx, rsi
mov ecx, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1800951e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x18011eeec]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x18009523a
lea ecx, [rax + 0x18]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x180095243
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx], rax
test rax, rax
je 0x180095258
mov ecx, dword [0x18011eeec]
mov rdx, rbx
mov qword [rbx + 0x10], 0
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rax, rbx
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, [0x1800ffd54]
call fcn.180094c90
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, str.CreateEvent
call fcn.180094c90
int3

Function at 0x180095980
Capabilities:
Get geographical location
Query environment variable
Reference absolute stream path on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x18011c010]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rcx, str.LC_ALL
xor ebx, ebx
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1800959ad
cmp byte [rax], bl
jne 0x1800959d9
lea rcx, str.LC_MESSAGES
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1800959c3
cmp byte [rax], bl
jne 0x1800959d9
lea rcx, str.LANG
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1800959f4
cmp byte [rax], bl
je 0x1800959f4
mov rcx, rax
call sym.glib_2.0.dll_g_strdup
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800989b0
add rsp, 0x60
pop rbx
ret
mov qword [rsp + 0x70], rdi
call qword [sym.imp.KERNEL32.dll_GetThreadLocale]
mov r9d, 0xa
lea r8, [rsp + 0x40]
mov ecx, eax
mov edi, eax
lea edx, [r9 + 0x4f]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x180095aad
mov r9d, 0xa
lea r8, [rsp + 0x30]
mov ecx, edi
lea edx, [r9 + 0x50]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x180095aad
movzx eax, di
mov ecx, eax
and eax, 0x3ff
shr ecx, 0xa
cmp eax, 0x1a
je 0x180095a73
cmp eax, 0x2c
je 0x180095a57
cmp eax, 0x43
jne 0x180095a89
sub ecx, 1
je 0x180095a6a
cmp ecx, 1
jne 0x180095a89
lea rbx, str._Cyrl
jmp 0x180095a89
lea rbx, str._Latn
jmp 0x180095a89
lea eax, [rcx - 2]
test eax, 0xfffffffb
lea rax, str._Latn
cmovne rax, rbx
mov rbx, rax
mov r9, rbx
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x30]
lea rdx, [0x1801000b0]
lea rcx, [rsp + 0x40]
call sym.glib_2.0.dll_g_strconcat
jmp 0x180095af5
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, rax
test rax, rax
jne 0x180095ae8
lea r9, str.d:_buildob_bora_15653658cayman_glibglib_srcglibgmem.c:105
mov qword [rsp + 0x20], 2
lea r8, str._s:_failed_to_allocate__I64u_bytes
lea edx, [rax + 4]
lea rcx, [0x18009cbc8]
call sym.glib_2.0.dll_g_log
jmp 0x180095ae6
movzx eax, word [0x1800eb594]
mov word [rcx], ax
mov rax, rcx
mov rdi, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800989b0
add rsp, 0x60
pop rbx
ret
Function at 0x180095b10
Capabilities:
Reference absolute stream path on windows

Disassembly:
push rbx
sub rsp, 0x40
xor ebx, ebx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rbx
mov r8d, ecx
mov dword [rsp + 0x28], ebx
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0x1300
mov qword [rsp + 0x58], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x180095bac
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x180095b54
cmp rax, 2
jb 0x180095b81
cmp word [rcx + rax*2 - 2], 0xa
jne 0x180095b81
cmp word [rcx + rax*2 - 4], 0xd
lea r8, [rcx + rax*2]
jne 0x180095b81
mov word [r8 - 4], bx
mov rcx, qword [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
lea edx, [r9 - 1]
call sym.glib_2.0.dll_g_utf16_to_utf8
mov rcx, qword [rsp + 0x58]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, rbx
add rsp, 0x40
pop rbx
ret
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
jne 0x180095be4
lea r9, str.d:_buildob_bora_15653658cayman_glibglib_srcglibgmem.c:105
mov qword [rsp + 0x20], 1
lea r8, str._s:_failed_to_allocate__I64u_bytes
lea edx, [rax + 4]
lea rcx, [0x18009cbc8]
call sym.glib_2.0.dll_g_log
jmp 0x180095be2
movzx ecx, byte [0x1800eaba1]
mov byte [rax], cl
add rsp, 0x40
pop rbx
ret

Function at 0x180096480
Capabilities:
Accept command line arguments
Reference absolute stream path on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r15
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x50]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edx, dword [rsp + 0x50]
mov rbp, rax
movabs rax, 0x1fffffffffffffff
lea ecx, [rdx + 1]
movsxd rbx, ecx
cmp rbx, rax
jbe 0x1800964f2
mov qword [rsp + 0x28], 8
lea r9, str.d:_buildob_bora_15653658cayman_glibglib_srcglibgmem.c:333
lea r8, str._s:_overflow_allocating__I64u_I64u_bytes
mov qword [rsp + 0x20], rbx
mov edx, 4
lea rcx, [0x18009cbc8]
call sym.glib_2.0.dll_g_log
nop
jmp 0x1800964f0
lea rbx, [rbx*8]
xor r15d, r15d
test rbx, rbx
je 0x180096542
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x180096519
mov edx, dword [rsp + 0x50]
jmp 0x180096545
lea r9, str.d:_buildob_bora_15653658cayman_glibglib_srcglibgmem.c:105
mov qword [rsp + 0x20], rbx
lea r8, str._s:_failed_to_allocate__I64u_bytes
mov edx, 4
lea rcx, [0x18009cbc8]
call sym.glib_2.0.dll_g_log
nop dword [rax]
jmp 0x180096540
mov rsi, r15
mov edi, r15d
test edx, edx
jle 0x18009658c
mov qword [rsp + 0x58], r14
mov rbx, rsi
mov r14, rbp
sub r14, rsi
nop word [rax + rax]
mov rcx, qword [r14 + rbx]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r15
lea edx, [r9 - 1]
call sym.glib_2.0.dll_g_utf16_to_utf8
mov qword [rbx], rax
lea rbx, [rbx + 8]
inc edi
cmp edi, dword [rsp + 0x50]
jl 0x180096560
mov r14, qword [rsp + 0x58]
movsxd rcx, edi
mov qword [rsi + rcx*8], r15
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, qword [rsp + 0x60]
mov rax, rsi
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop rdi
pop rsi
ret