joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400f0040
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rsi, r8
mov ebx, edx
mov edi, ecx
mov rax, qword [0x14031d040]
xor rax, rsp
mov qword [rsp + 0x70], rax
movsx rax, byte [r8 + 0x17]
test rax, rax
jns 0x1400f0074
mov rax, qword [rsi + 8]
test rax, rax
je 0x1400f0088
bt ebx, 8
jae 0x1400f00a7
mov eax, ebx
and eax, 0x200
je 0x1400f00a7
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401f08b0
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp edi, 2
lea rax, [0x140331ed0]
lea rcx, [0x1403320d0]
cmove rcx, rax
cmp word [rcx], 0
jne 0x1400f0088
xorps xmm0, xmm0
lea r14, [rsp + 0x40]
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [r14], 0
je 0x1400f0088
bt ebx, 8
jb 0x1400f0088
shr ebx, 9
and ebx, 1
or bl, byte [0x1403324d0]
je 0x1400f0088
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea r12, str.SOFTWARE
cmove r12, rax
movsx rbp, byte [rsi + 0x17]
test rbp, rbp
js 0x1400f0145
mov rdi, rsi
mov ebx, 1
xor r14d, r14d
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x2c], 0
jmp 0x1400f01ca
mov rdi, qword [rsi]
mov rbp, qword [rsi + 8]
jmp 0x1400f011e
cmp dword [rsp + 0x2c], 0
je 0x1400f0088
cmp byte [rsi + 0x17], 0
mov rax, rsi
jns 0x1400f0165
mov rax, qword [rsi]
mov rdi, qword [rsp + 0x38]
test rdi, rdi
je 0x1400f024f
mov rbx, qword [rsp + 0x30]
sub rbx, rax
sar rbx, 1
mov rcx, rdi
call fcn.14021cf84
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
mov r9, rax
call fcn.14004d510
jmp 0x1400f0088
mov rdx, rcx
mov rbx, qword [r12 + 0x20]
mov r12, qword [r12 + 0x18]
mov rbp, r13
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rax
xor r14d, r14d
mov rdi, rdx
jmp 0x1400f01c5
add r12, 0x28
inc r14
cmp r14, rbx
jae 0x1400f014e
mov r15, qword [r12 + 8]
mov r13, rbp
sub r13, r15
jb 0x1400f01be
mov rdx, qword [r12]
mov rcx, rdi
mov r8, r15
call fcn.1402176f0
test eax, eax
jne 0x1400f01be
movzx edx, word [rdi + r15*2]
cmp edx, 0x5c
je 0x1400f01f8
test edx, edx
jne 0x1400f01be
lea rcx, [rdi + r15*2]
mov r8d, dword [r12 + 0x10]
lea rax, str.WOW6432Node_
cmp r8d, 1
je 0x1400f022a
cmp r8d, 2
je 0x1400f0220
mov rdi, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
jmp 0x1400f022a
mov rdi, rcx
lea rax, str.WOW6432Node
cmp dx, 0x5c
mov dword [rsp + 0x2c], r8d
jne 0x1400f019c
lea rdx, [rcx + 2]
dec r13
cmp word [rcx + 2], 0x5c
mov rcx, rdx
je 0x1400f0239
jmp 0x1400f019f
ud2
Function at 0x1400f2140
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test rcx, rcx
je 0x1400f21b7
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x14031fa80], rax
jne 0x1400f21ba
mov rsi, rcx
call fcn.14015bff0
mov edx, 0x570
mov rcx, rax
xor r8d, r8d
call fcn.1400dee50
mov rdi, rax
mov rcx, rax
mov rdx, rsi
call fcn.1400f21d0
mov ecx, dword [0x1403324dc]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x14032bc90]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x178], rdi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
int3
int3
Function at 0x140139530
Capabilities:
Encode data using xor

Disassembly:
movzx edx, word [rcx]
test dx, dx
je 0x140139574
add rcx, 2
xor eax, eax
movzx edx, dx
add edx, eax
mov r8d, edx
shl r8d, 0xa
add r8d, edx
mov eax, r8d
shr eax, 6
xor eax, r8d
movzx edx, word [rcx]
add rcx, 2
test dx, dx
jne 0x14013953e
lea eax, [rax + rax*8]
mov ecx, eax
shr ecx, 0xb
xor ecx, eax
mov eax, ecx
shl eax, 0xf
add eax, ecx
ret
xor eax, eax
jmp 0x140139565
Function at 0x140141e50
Capabilities:
Get file attributes

Disassembly:
mov edx, 2
jmp fcn.1400c1b50
jmp 0x1400c2400

Function at 0x1401420d0
Capabilities:
Set current directory

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov rax, qword [0x14031d040]
xor rax, rsp
mov qword [rsp + 0xb0], rax
cmp byte [rcx + 0x17], 0
jns 0x1401420f7
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov esi, eax
test eax, eax
je 0x140142127
test esi, esi
setne bl
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1401f08b0
mov eax, ebx
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r14
ret
xorps xmm0, xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
xor eax, eax
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0x70], rax
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
lea rdx, str.Could_not_set_current_working_directory
lea rcx, [rsp + 0x28]
call fcn.1400343a0
call fcn.140113640
test rax, rax
je 0x14014218d
lea rdx, [rsp + 0x28]
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x80]
mov rcx, rax
call fcn.1401137c0
test rax, rax
jne 0x140142197
lea rcx, [rsp + 0x28]
call fcn.140113740
call fcn.1400ab720
mov rdi, rax
call fcn.1400ab720
mov rbx, rax
call fcn.1400ab720
mov r14, rax
call fcn.1400ab720
cmp r14, rax
je 0x1401421e7
dec word [r14 + 0x10]
setne al
test r14, r14
sete cl
or cl, al
jne 0x1401421e2
cmp byte [r14 + 0x12], 1
jne 0x1401421da
mov rcx, qword [r14]
call fcn.140071eb0
mov rcx, r14
call fcn.1401ef41c
call fcn.1400ab720
call fcn.1400ab720
cmp rbx, rax
je 0x14014221d
dec word [rbx + 0x10]
setne al
test rbx, rbx
sete cl
or cl, al
jne 0x140142218
cmp byte [rbx + 0x12], 1
jne 0x140142210
mov rcx, qword [rbx]
call fcn.140071eb0
mov rcx, rbx
call fcn.1401ef41c
call fcn.1400ab720
call fcn.1400ab720
cmp rdi, rax
je 0x140142253
dec word [rdi + 0x10]
setne al
test rdi, rdi
sete cl
or cl, al
jne 0x14014224e
cmp byte [rdi + 0x12], 1
jne 0x140142246
mov rcx, qword [rdi]
call fcn.140071eb0
mov rcx, rdi
call fcn.1401ef41c
call fcn.1400ab720
mov rcx, qword [rsp + 0x40]
call fcn.140071eb0
cmp byte [rsp + 0x3f], 0
jns 0x14014226e
mov rcx, qword [rsp + 0x28]
call fcn.1401ef41c
mov rcx, qword [rsp + 0x68]
call fcn.140071eb0
cmp byte [rsp + 0x67], 0
jns 0x140142289
mov rcx, qword [rsp + 0x50]
call fcn.1401ef41c
mov rcx, qword [rsp + 0x98]
call fcn.140071eb0
cmp byte [rsp + 0x97], 0
jns 0x140142103
mov rcx, qword [rsp + 0x80]
call fcn.1401ef41c
jmp 0x140142103
Function at 0x140142360
Capabilities:
Create process on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x98
mov rsi, rcx
mov rax, qword [0x14031d040]
xor rax, rsp
mov qword [rsp + 0x90], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x88], 0
mov dword [rsp + 0x20], VarBstrFromDate
add rcx, 0x50
lea rdx, str.file
call fcn.1400acd30
lea rdx, [rsi + 0x28]
test eax, eax
cmovne rdx, rsi
cmp byte [rdx + 0x17], 0
jns 0x1401423d6
mov rdx, qword [rdx]
lea rcx, [rsp + 0x20]
mov qword [rcx + 0x18], rdx
lea rax, str.open
mov qword [rcx + 0x10], rax
mov dword [rcx + 0x30], 1
mov dword [rcx + 4], 0x400
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
setne bl
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1401f08b0
mov eax, ebx
add rsp, 0x98
pop rbx
pop rsi
ret

Function at 0x140142ed0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp byte [rcx + 0x19], 1
jne 0x140142f2c
cmp qword [0x14031f9c0], 0
je 0x140142f2c
lea rax, str.You_cannot_convert_to_unicode_if_output_is_const_char_
mov qword [rsp + 0x20], rax
lea rcx, str.....update_notifier_thirdpartywxWidgets_srccommonencconv.cpp
lea r8, str.wxEncodingConverter::Convert
lea r9, str._m_UnicodeOutput
mov edx, 0xff
call fcn.1400d8690
cmp byte [0x140331ad8], 1
jne 0x140142f2c
mov byte [0x140331ad8], 0
int3
cmp byte [rbx + 0x18], 0
jne 0x140142f78
cmp qword [0x14031f9c0], 0
je 0x140142f78
lea rax, str.You_cannot_convert_from_8_bit_if_input_is_const_wchar_t_
mov qword [rsp + 0x20], rax
lea rcx, str.....update_notifier_thirdpartywxWidgets_srccommonencconv.cpp
lea r8, str.wxEncodingConverter::Convert
lea r9, str.m_UnicodeInput
mov edx, 0x100
call fcn.1400d8690
cmp byte [0x140331ad8], 1
jne 0x140142f78
mov byte [0x140331ad8], 0
int3
cmp byte [rbx + 0x1a], 1
je 0x140142fcd
cmp qword [rbx + 0x10], 0
je 0x140142ff9
movzx edx, word [rdi]
test dx, dx
je 0x140142fc9
add rdi, 2
xor eax, eax
mov ecx, 0x3f
mov r8, qword [rbx + 0x10]
movzx edx, dx
movzx edx, word [r8 + rdx*2]
test dx, dx
sete r8b
cmove edx, ecx
or al, r8b
mov byte [rsi], dl
inc rsi
movzx edx, word [rdi]
add rdi, 2
test dx, dx
jne 0x140142f98
xor al, 1
mov byte [rsi], 0
jmp 0x140142fef
mov al, 1
jmp 0x140142fc4
movzx eax, word [rdi]
test ax, ax
je 0x140142fea
add rdi, 2
mov byte [rsi], al
inc rsi
movzx eax, word [rdi]
add rdi, 2
test ax, ax
jne 0x140142fd9
mov byte [rsi], 0
mov al, 1
and al, 1
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
cmp qword [0x14031f9c0], 0
je 0x14014303f
lea rax, str.You_must_call_wxEncodingConverter::Init___before_actually_converting_
mov qword [rsp + 0x20], rax
lea rcx, str.....update_notifier_thirdpartywxWidgets_srccommonencconv.cpp
lea r8, str.wxEncodingConverter::Convert
lea r9, str._m_Table___0_
mov edx, 0x10e
call fcn.1400d8690
cmp byte [0x140331ad8], 1
jne 0x14014303f
mov byte [0x140331ad8], 0
int3
xor eax, eax
jmp 0x140142fef
Function at 0x14014c370
Capabilities:
Print debug messages

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov rax, qword [0x14031d040]
xor rax, rsp
mov qword [rsp + 0xa8], rax
lea rsi, [rsp + 0x98]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsi + 8], rax
movaps xmm0, xmmword [0x1402825c0]
movaps xmmword [rsi - 8], xmm0
movaps xmmword [rsi - 0x18], xmm0
cmp byte [rdx + 0x17], 0
js 0x14014c400
mov rax, qword [rdx + 0x10]
mov qword [rsp + 0x90], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x80], xmm0
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
movsx rcx, byte [rsp + 0x97]
mov rax, rcx
test rcx, rcx
jns 0x14014c3ed
mov rax, qword [rsp + 0x88]
test rax, rax
je 0x14014c429
test cl, cl
js 0x14014c419
lea rcx, [rsp + 0x80]
jmp 0x14014c421
mov rax, qword [rdx]
mov r8, qword [rdx + 8]
lea rcx, [rsp + 0x80]
mov rdx, rax
call fcn.1401ad2f0
jmp 0x14014c3ce
mov rcx, qword [rsp + 0x80]
cmp word [rcx + rax*2 - 2], 0xa
je 0x14014c43a
lea rcx, [rsp + 0x80]
mov dx, 0xa
call fcn.1401ad610
lea rax, [rsp + 0x60]
mov byte [rax + 7], 8
lea rcx, [0x1402fe288]
lea rdx, [rsp + 0x50]
cmp rdx, rcx
seta dl
cmp rax, rcx
setbe al
or al, dl
je 0x14014c619
movups xmm0, xmmword [0x1402fe288]
movaps xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x60], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
lea rbx, [rsp + 0x2a]
mov byte [rbx + 0x15], 1
lea rax, [0x1402fe29a]
lea rcx, [rsp + 0x28]
cmp rcx, rax
seta cl
cmp rbx, rax
setbe al
or al, cl
je 0x14014c619
lea rsi, [rsp + 0x28]
mov dword [rsi], 9
movups xmmword [rsi + 0x18], xmm0
lea rcx, [rsp + 0x80]
lea rdi, [rsp + 0x50]
mov rdx, rsi
mov r8, rdi
mov r9b, 1
call fcn.1400ad9a0
mov rcx, qword [rsi + 0x18]
call fcn.140071eb0
cmp byte [rsi + 0x17], 0
jns 0x14014c4ea
mov rcx, qword [rsp + 0x28]
call fcn.1401ef41c
mov rcx, qword [rsp + 0x68]
call fcn.140071eb0
cmp byte [rsp + 0x67], 0
jns 0x14014c505
mov rcx, qword [rsp + 0x50]
call fcn.1401ef41c
lea rax, [rsp + 0x54]
mov byte [rax + 0x13], 2
lea rcx, [0x1402faa46]
cmp rdi, rcx
seta dl
cmp rax, rcx
setbe al
or al, dl
je 0x14014c619
mov dword [rsp + 0x50], 0xa000d
mov word [rsp + 0x54], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x3f], 1
lea rax, [0x1402e5dfc]
cmp rsi, rax
seta cl
cmp rbx, rax
setbe al
or al, cl
je 0x14014c619
lea rdi, [rsp + 0x28]
mov dword [rdi], 0xa
movups xmmword [rdi + 0x18], xmm0
lea rsi, [rsp + 0x80]
lea r8, [rsp + 0x50]
mov rcx, rsi
mov rdx, rdi
mov r9b, 1
call fcn.1400ad9a0
mov rcx, qword [rdi + 0x18]
call fcn.140071eb0
cmp byte [rdi + 0x17], 0
jns 0x14014c5a3
mov rcx, qword [rsp + 0x28]
call fcn.1401ef41c
mov rcx, qword [rsp + 0x68]
call fcn.140071eb0
cmp byte [rsp + 0x67], 0
jns 0x14014c5be
mov rcx, qword [rsp + 0x50]
call fcn.1401ef41c
cmp byte [rsp + 0x97], 0
jns 0x14014c5d0
mov rsi, qword [rsp + 0x80]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x98]
call fcn.140071eb0
cmp byte [rsp + 0x97], 0
jns 0x14014c5fd
mov rcx, qword [rsp + 0x80]
call fcn.1401ef41c
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1401f08b0
nop
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
ret
ud2
Function at 0x14015d800
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r8
mov rsi, rdx
mov ebx, ecx
mov rax, qword [0x14031d040]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x14015d7d0]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x14033f6c8]
lea rdx, [0x14015d670]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14015d8f8
cmp dword [0x14033f6d0], 0
jne 0x14015d905
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x14033f6d4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x14015d8ac
mov ecx, 1
mov edx, 0x28
call fcn.140072030
test rax, rax
je 0x14015d905
mov r14, rax
mov ecx, dword [0x14033f6d4]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14015d8fd
lea r15, [0x14033f6d8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x14033f6e0]
mov qword [rax + rbx*8], rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [r14 + rbx*8], rsi
mov esi, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401f08b0
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140211d14
mov rcx, r14
call fcn.140071eb0
mov rcx, rsi
mov rax, rdi
call qword [0x14030c820]
xor esi, esi
jmp 0x14015d8dc

Function at 0x14015da40
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x14032bbac]
cmp ecx, 0xffffffff
je 0x14015db1a
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x14015db1a
mov eax, dword [0x140340f50]
mov ecx, dword [0x14032bc90]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14015db24
mov rbx, qword [0x140340f48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14015db74
mov rax, qword [0x14033f738]
inc rax
xor ecx, ecx
lea rdx, [0x14033f740]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x14015db81
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov ecx, dword [0x140340f40]
inc ecx
mov dword [0x140340f40], ecx
mov dword [rax + 0x14], ecx
mov qword [0x14033f738], r8
mov qword [rsi], r8
mov eax, dword [rax + 0x10]
mov dword [rsi + 8], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsi], 0x100
jae 0x14015db71
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14015dba0
jmp 0x14015da6a
lea rcx, [0x140340f50]
call fcn.1401ef46c
cmp dword [0x140340f50], 0xffffffff
jne 0x14015da8f
mov ecx, 8
call fcn.1401ef3e0
mov rbx, rax
mov qword [rax], 0
mov rcx, rax
call fcn.1401aef80
mov qword [0x140340f48], rbx
lea rcx, [0x140340f50]
call fcn.1401ef520
jmp 0x14015da8f
int3
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x14015daa7
inc rcx
cmp rcx, 0x100
jne 0x14015daba
jmp 0x14015db00
Function at 0x14015dba0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.1401f0850
sub rsp, rax
mov rax, qword [0x14031d040]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x14032bbac]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x14015dc54
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14015dcb5
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.140235e90
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.1401ef45c
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.1402357f0
mov ecx, dword [rsp + 0x2c]
mov rdx, rdi
or rdx, 3
call sub.KERNEL32.dll_TlsSetValue
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.1401f08b0
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.14018bc00
test al, al
je 0x14015dcb8
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
jne 0x14015dc8e
lea rcx, [rsp + 0x2c]
call fcn.14018bc00
test al, al
je 0x14015dcbb
cmp dword [rsp + 0x2c], 0xffffffff
je 0x14015dcbb
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
mov eax, 0xffffffff
lock cmpxchg dword [0x14032bbac], ecx
je 0x14015dbd8
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x14032bbac]
mov dword [rsp + 0x2c], ecx
jmp 0x14015dbd8
int3
int3
int3

Function at 0x14015dcc0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x14032bbac]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
jne 0x14015dce8
test rdi, rdi
je 0x14015dd01
call fcn.14015dba0
mov rcx, qword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 8]
mov rdx, qword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x140160c10
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x10050
call fcn.1401f0850
sub rsp, rax
mov rsi, rdx
mov rax, qword [0x14031d040]
xor rax, rsp
mov qword [rsp + 0x10048], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1402825c0]
movaps xmmword [rdi], xmm0
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
mov rcx, rdi
call fcn.1401b4b90
test rsi, rsi
je 0x140160ce8
lea rbx, [rsp + 0x4a]
mov r8d, 0xfffe
mov rcx, rbx
mov dl, 0xaa
call fcn.140235e90
cmp byte [rsp + 0x47], 0
jns 0x140160c8b
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
mov rdx, rbx
mov r8d, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne bl
je 0x140160cba
cmp eax, 0x7fff
jae 0x140160d0d
mov edx, eax
lea rcx, [rsp + 0x4a]
mov r8, rsi
call fcn.14005d310
cmp byte [rsp + 0x47], 0
jns 0x140160ccb
mov rcx, qword [rsp + 0x30]
call fcn.1401ef41c
mov rcx, qword [rsp + 0x10048]
xor rcx, rsp
call fcn.1401f08b0
mov eax, ebx
add rsp, 0x10050
pop rbx
pop rdi
pop rsi
ret
cmp byte [rsp + 0x47], 0
js 0x140160cf6
lea rcx, [rsp + 0x30]
jmp 0x140160cfb
mov rcx, qword [rsp + 0x30]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne bl
jmp 0x140160cba
int3

Function at 0x140170f40
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x140341028], 0
jne 0x140170f7d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140170f70
mov dword [rdi], eax
mov dword [0x140341030], eax
mov qword [0x140341028], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3
Function at 0x140173e50
Capabilities:
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x118
movaps xmmword [rsp + 0x100], xmm6
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14031d040]
xor rax, rsp
mov qword [rsp + 0xf8], rax
movaps xmm6, xmmword [0x1402825c0]
lea rcx, [rsp + 0x40]
movaps xmmword [rcx], xmm6
mov dword [rcx + 0x10], 0xaaaaaaaa
call fcn.1401c2010
lea rbx, [rsp + 0x60]
mov r8d, SysStringByteLen
mov rcx, rbx
mov dl, 0xaa
call fcn.140235e90
mov rcx, rbx
call fcn.140172a40
lea r8, [rsp + 0xe0]
mov rdx, qword [r8 + 8]
mov rcx, qword [rdi + 8]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140173ff8
mov r8d, dword [rsp + 0xe0]
mov rdx, qword [rsp + 0xe8]
lea rcx, [rsp + 0x40]
call fcn.1400734c0
xor ecx, ecx
test al, al
mov ebx, 0xffffff94
cmovne ebx, ecx
lea rcx, [rsp + 0x60]
movaps xmmword [rcx], xmm6
mov dword [rcx + 0x10], 0xaaaaaaaa
call fcn.1401c2010
test ebx, ebx
je 0x140173f69
lea rax, str.get_address_net_error
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
mov qword [rdx + 8], reloc.OLEAUT32.dll_SafeArrayUnlock
mov rcx, rsi
mov r8d, ebx
call fcn.1402574f0
lea rcx, [rsp + 0x60]
call fcn.1401c2000
lea rcx, [rsp + 0x40]
call fcn.1401c2000
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.1401f08b0
movaps xmm6, xmmword [rsp + 0x100]
add rsp, 0x118
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdi + 8]
mov ebx, 0xfffffff1
cmp rcx, 0xffffffffffffffff
je 0x140173f0f
cmp byte [rdi + 0x90], 0
jne 0x140173f0f
cmp byte [rdi + 0x91], 0
je 0x140173fb6
mov rax, qword [rdi + 0xb8]
mov ecx, dword [rax + 0x10]
lea r8, [rsp + 0x60]
mov dword [r8 + 0x10], ecx
movups xmm0, xmmword [rax]
movaps xmmword [r8], xmm0
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1402732b0
jmp 0x140173f31
lea rdx, [rsp + 0x3f]
mov byte [rdx], 0xaa
mov r8d, 1
mov r9d, 2
call qword [sym.imp.WS2_32.dll_recv]
mov ebp, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebp, ebp
je 0x140173f0f
cmp ebp, 0xffffffff
setne cl
cmp eax, 0x2733
sete al
or al, cl
je 0x140173f0f
jmp 0x140173f8a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.140172b60
mov ebx, eax
jmp 0x140173ef7
Function at 0x140179100
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x30
mov r14, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, dword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r15, rax
test edi, edi
je 0x140179135
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [rsi + 8]
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, eax
test eax, eax
je 0x1401792d4
test r15, r15
je 0x1401791f0
mov rax, qword [rsi]
mov rcx, r15
call qword [0x14030c820]
lea rbx, [rsi + 0x28]
mov rcx, rbx
call sub.KERNEL32.dll_EnterCriticalSection
mov r12, qword [rsi + 0x10]
mov rax, qword [rsi + 0x18]
cmp r12, rax
je 0x140179196
mov r13, rax
sub r13, r12
add r13, 0xfffffffffffffff8
cmp qword [r12], r15
je 0x1401791de
add r12, 8
add r13, 0xfffffffffffffff8
cmp r12, rax
jne 0x140179183
cmp qword [0x14031f9c0], 0
je 0x1401791fc
lea rax, str.previous_wxTlsKey_value_not_recorded_in_m_allValues
mov qword [rsp + 0x20], rax
lea rcx, str.....update_notifier_thirdpartywxWidgetsincludewxmsw_tls.h
lea r8, str.wxTlsKey::Set
lea r9, str._Assert_failure_
mov edx, VarR8FromUI1
call fcn.1400d9180
cmp byte [0x140331ad8], 1
jne 0x1401791fc
mov byte [0x140331ad8], 0
int3
test r14, r14
je 0x1401792fa
mov qword [r12], r14
jmp 0x1401792cc
lea rbx, [rsi + 0x28]
mov rcx, rbx
call sub.KERNEL32.dll_EnterCriticalSection
test r14, r14
je 0x1401792cc
mov r15, qword [rsi + 0x18]
mov rax, qword [rsi + 0x20]
cmp r15, rax
jb 0x1401792e9
lea rcx, [rsi + 0x10]
mov rdx, qword [rcx]
sub r15, rdx
sar r15, 3
lea r8, [r15 + 1]
mov r9, r8
shr r9, 0x3d
jne 0x14017932b
movabs rcx, 0x1fffffffffffffff
sub rax, rdx
mov r12, rax
sar r12, 2
cmp r12, r8
cmovbe r12, r8
movabs rdx, 0x7ffffffffffffff8
cmp rax, rdx
cmovae r12, rcx
test r12, r12
je 0x140179335
cmp r12, rcx
ja 0x140179330
lea rcx, [r12*8]
call fcn.1401ef3e0
shl r15, 3
add r15, rax
je 0x140179329
lea r12, [rax + r12*8]
mov qword [r15], r14
lea r14, [r15 + 8]
mov rdx, qword [rsi + 0x10]
mov r8, qword [rsi + 0x18]
sub r8, rdx
sub r15, r8
mov rcx, r15
call fcn.1402357f0
mov rcx, qword [rsi + 0x10]
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r14
mov qword [rsi + 0x20], r12
test rcx, rcx
je 0x1401792c8
call fcn.1401ef41c
mov qword [rsi + 0x18], r14
mov rcx, rbx
call sub.KERNEL32.dll_LeaveCriticalSection
test edi, edi
setne al
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
test r15, r15
je 0x140179329
mov qword [r15], r14
add r15, 8
mov r14, r15
jmp 0x1401792c8
lea rdx, [r12 + 8]
cmp rdx, rax
je 0x140179313
mov rcx, r12
mov r8, r13
call fcn.1402357f0
mov rax, qword [rsi + 0x18]
add r12, r13
cmp rax, r12
je 0x140179323
add rax, 0xfffffffffffffff8
jne 0x140179316
jmp 0x140179329
mov qword [rsi + 0x18], r12
jmp 0x1401792cc
ud2
call fcn.140236a30
call fcn.140236a70
xor eax, eax
jmp 0x140179280