joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001e510
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rsi, rcx
mov rbp, rdx
test rcx, rcx
je 0x14001e630
lea rdi, [0x1400be168]
mov rcx, rdi
call sym.pthread_mutex_lock
mov rcx, rsi
call sym.__pthread_get_pointer
mov rcx, rdi
mov rbx, rax
call sym.pthread_mutex_unlock
test rbx, rbx
je 0x14001e630
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x14001e630
lea rdx, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x14001e630
test byte [rbx + 0x44], 4
jne 0x14001e640
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400be178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001e660
cmp rsi, qword [rax + 0x1d8]
je 0x14001e690
mov eax, dword [rbx + 0xbc]
mov rcx, qword [rbx + 0x28]
test eax, eax
je 0x14001e5bb
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14001e5ca
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x28]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001e5de
call rsi
mov qword [rbx + 0x30], 0
test rbp, rbp
je 0x14001e678
mov rax, qword [rbx + 8]
lea rcx, [rbx + 0x38]
mov qword [rbp], rax
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
call sym.pthread_spin_destroy
cmp eax, 1
je 0x14001e697
cmp qword [rbx + 0x1d0], 0
mov qword [rbx + 0x68], 0xffffffffffffffff
je 0x14001e650
xor eax, eax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, 3
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, 0x16
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rbx
call sym.push_pthread_mem.part.0
xor eax, eax
jmp 0x14001e626
call sym.__pthread_self_lite.part.0
test rax, rax
jne 0x14001e596
jmp 0x14001e5a3
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
jmp 0x14001e604
mov eax, 0x24
jmp 0x14001e635
call sym.replace_spin_keys.part.0
nop
nop dword [rax]
Function at 0x14001e6a0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rbp, [0x1400be168]
mov rsi, rcx
mov rcx, rbp
mov rdi, rdx
call sym.pthread_mutex_lock
mov rcx, rsi
call sym.__pthread_get_pointer
mov rbx, rax
test rax, rax
je 0x14001e7c0
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x14001e7c0
lea rdx, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x14001e7c0
test byte [rbx + 0x44], 4
jne 0x14001e7e0
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400be178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001e820
mov rdx, qword [rax + 0x1d8]
cmp rsi, rdx
je 0x14001e860
mov edx, dword [rbx + 0xbc]
mov rcx, qword [rbx + 0x28]
test edx, edx
jne 0x14001e747
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14001e800
mov rcx, qword [rbx + 0x28]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001e75b
call rsi
mov qword [rbx + 0x30], 0
test rdi, rdi
je 0x14001e838
mov rax, qword [rbx + 8]
lea rcx, [rbx + 0x38]
mov qword [rdi], rax
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
call sym.pthread_spin_destroy
cmp eax, 1
je 0x14001e872
cmp qword [rbx + 0x1d0], 0
mov qword [rbx + 0x68], 0xffffffffffffffff
je 0x14001e850
mov rcx, rbp
call sym.pthread_mutex_unlock
xor eax, eax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rbp
call sym.pthread_mutex_unlock
mov eax, 3
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rbp
call sym.pthread_mutex_unlock
mov eax, 0x16
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, dword [rbx + 0xbc]
test eax, eax
jne 0x14001e743
mov rcx, rbp
call sym.pthread_mutex_unlock
mov eax, 0x10
jmp 0x14001e7ae
call sym.__pthread_self_lite.part.0
xor edx, edx
test rax, rax
jne 0x14001e715
jmp 0x14001e71c
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
jmp 0x14001e780
mov rcx, rbx
call sym.push_pthread_mem.part.0
jmp 0x14001e7a4
mov rcx, rbp
call sym.pthread_mutex_unlock
mov eax, 0x24
jmp 0x14001e7ae
call sym.replace_spin_keys.part.0
nop
nop dword [rax + rax]

Function at 0x140021ab0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sym.fread
mov edx, 0xffffffff
test rax, rax
jle 0x140021adc
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x140022700
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x1400c0ef0], 0
jne 0x140022803
mov byte [0x1400c0ef0], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x1400227d8
mov rbx, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [rbx], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add rbx, rax
mov rcx, rbx
call sym.__cxa_demangle
mov ecx, 2
mov rsi, qword [sym.__acrt_iob_func]
mov rdi, rax
call rsi
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x1400227c9
call rsi
mov rcx, rbx
mov rdx, rax
call sym.fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x1400c13a1]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x1400bb707
jmp 0x1400bb6ff
call rsi
mov rcx, rdi
mov rdx, rax
call sym.fputs
jmp 0x140022797
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
nop
jmp 0x1400bb6fa
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
nop
nop
nop

Function at 0x140081500
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sym.fileno
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sym.read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x140081548
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14008151a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140093e70
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x140093e98
mov rcx, qword [rcx]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov ebx, 4
lea rsi, [rsp + 0x2c]
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sym.read
test eax, eax
jle 0x140093ee0
cdqe
add rsi, rax
sub rbx, rax
jne 0x140093eb0
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x140093eec
call rbp
cmp dword [rax], 4
je 0x140093eb0
lea rcx, str.random_device_could_not_be_read
call method.std.__throw_runtime_error_char_const_
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1400bb690
Capabilities:
Write file on windows

Disassembly:
nop
mov rcx, rax
mov rax, rdx
sub rax, 1
jne 0x1400bb70c
call sym.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sym.fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
call sym.abort
mov rcx, rdi
call sym.free
call sym.__cxa_rethrow
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x1400bb6fa

Function at 0x1400bcdf0
Capabilities:
Query environment variable

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
xor edx, edx
lea rcx, [0x1400be7a0]
movabs rdi, 0x2e78786362696c67
movabs r12, 0x6c6f6f705f68652e
call sym.pthread_mutex_init
pxor xmm0, xmm0
lea rcx, str.GLIBCXX_TUNABLES
mov qword [0x1400be7b8], 0
movups xmmword [0x1400be7a8], xmm0
call sym.getenv
mov dword [rsp + 0x40], 0
mov rbx, rax
lea rax, str.obj_size
mov qword [rsp + 0x30], 8
mov qword [rsp + 0x38], rax
lea rax, str.obj_count
mov qword [rsp + 0x48], 9
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x100
test rbx, rbx
jne 0x1400bcea5
jmp 0x1400bcf4f
mov rcx, rbx
mov edx, 0x3a
call sym.strchr
mov rbx, rax
test rax, rax
je 0x1400bcf00
xor eax, eax
cmp byte [rbx], 0x3a
sete al
add rbx, rax
cmp qword [rbx], rdi
jne 0x1400bce90
cmp qword [rbx + 7], r12
jne 0x1400bce90
cmp byte [rbx + 0xf], 0x2e
jne 0x1400bce90
add rbx, 0x10
lea rbp, [rsp + 0x30]
lea r13, [rsp + 0x60]
mov rsi, qword [rbp]
mov rcx, qword [rbp + 8]
test rsi, rsi
je 0x1400bceeb
mov r8, rsi
mov rdx, rbx
call sym.memcmp
test eax, eax
jne 0x1400bcef5
cmp byte [rbx + rsi], 0x3d
je 0x1400bcf85
add rbp, 0x18
cmp rbp, r13
jne 0x1400bcecf
jmp 0x1400bce90
mov eax, dword [rsp + 0x58]
mov edx, 0x1000
mov ecx, 6
cmp eax, edx
cmovle edx, eax
mov eax, dword [rsp + 0x40]
test eax, eax
cmove eax, ecx
movsxd rbx, eax
movsxd rax, edx
add rbx, 0x26
imul rbx, rax
shl rbx, 3
mov qword [0x1400be7b8], rbx
jne 0x1400bcf5f
lea rcx, [sym.__tcf_0_3]
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.atexit
mov qword [0x1400be7b8], 0x16000
mov ebx, 0x16000
mov rcx, rbx
call sym.malloc
mov qword [0x1400be7b0], rax
test rax, rax
je 0x1400bcfbc
xor edx, edx
mov qword [0x1400be7a8], rax
mov qword [rax], rbx
mov qword [rax + 8], rdx
jmp 0x1400bcf37
lea rdx, [rsp + 0x28]
lea rcx, [rbx + rsi + 1]
xor r8d, r8d
call sym.strtoul
mov rbx, qword [rsp + 0x28]
movzx edx, byte [rbx]
cmp dl, 0x3a
je 0x1400bcfac
test dl, dl
jne 0x1400bce90
test eax, eax
js 0x1400bce90
mov dword [rbp + 0x10], eax
jmp 0x1400bce90
xor ecx, ecx
mov qword [0x1400be7b8], rcx
jmp 0x1400bcf37
Function at 0x402b4f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
jl 0x402b86
and byte [rcx + 0x56], al
push r15
mov r10d, ecx
mov ebx, r9d
movsxd rcx, dword [rdx + 0x3c]
cmp al, 0x41
mov ebp, eax
add rcx, rdx
mov rdi, rdx
mov eax, dword [rcx + r10*8 + 0x88]
add byte [rax], al
xor r10d, r10d
add rax, rdx
mov r11d, dword [rax + 0x20]
mov r14d, dword [rax + 0x1c]

Function at 0x402b50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
jl 0x402b86
and byte [rcx + 0x56], al
push r15
mov r10d, ecx
mov ebx, r9d
movsxd rcx, dword [rdx + 0x3c]
cmp al, 0x41
mov ebp, eax
add rcx, rdx
mov rdi, rdx
mov eax, dword [rcx + r10*8 + 0x88]
add byte [rax], al
xor r10d, r10d
add rax, rdx
mov r11d, dword [rax + 0x20]
mov r14d, dword [rax + 0x1c]

Function at 0x402ca0
Capabilities:
Access peb ldr_data

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x68
mov edi, dword [0x00443f07]
xor r15d, r15d
mov rax, qword gs:[0x60]
mov rbx, qword [rax + 0x18]
add rbx, 0x10
mov r11, qword [rbx]
cmp r11, rbx
je 0x402d22
nop
mov r10, qword [r11 + 0x60]
mov r9d, r15d
mov r8, r15
movzx eax, word [r10]
test ax, ax
je 0x402d11
nop dword [rax]
nop word [rax + rax]
lea ecx, [rax - 0x41]
lea edx, [rax + 0x20]
cmp cx, 0x19
lea r8, [r8 + 1]
cmova dx, ax
movzx eax, dx
add r9d, eax
movzx eax, word [r10 + r8*2]
test ax, ax
jne 0x402cef
cmp edi, r9d
je 0x402e7f
mov r11, qword [r11]
cmp r11, rbx
jne 0x402ccf
mov rdi, r15
mov r9d, dword [0x00443edf]
mov rdx, rdi
mov r8d, dword [0x00443f27]
mov ecx, dword [0x00443f03]
call fcn.00402b4f
mov edx, dword [0x00443f1b]
xor ecx, ecx
mov rsi, rax
call qword [sym.imp.kernel32.dll_LocalAlloc]
mov r9d, dword [0x00443edf]
mov rdx, rdi
mov r8d, dword [0x00443f23]
mov rbx, rax
mov ecx, dword [0x00443f03]
call fcn.00402b4f
mov r8d, 0x104
mov rdx, rbx
xor ecx, ecx
call rax
mov r10, qword [0x00443ef3]
adc eax, 0x4116e
mov r8d, eax
mov ecx, dword [0x00443eef]
lea r9d, [rax - 1]
movzx edx, word [rbx + r9*2]
cmp dx, cx
je 0x402dbd
nop dword [rax]
mov eax, r8d
mov r8d, r9d
dec r9d
mov word [rbx + rax*2], r15w
movzx ecx, word [rbx + r9*2]
mov eax, dword [0x00443eef]
cmp cx, ax
jne 0x402d9f
movzx eax, byte [r10]
mov edx, r15d
test al, al
je 0x402de8
nop dword [rax]
movsx ecx, al
lea edx, [rdx + 1]
mov eax, r8d
inc r8d
mov word [rbx + rax*2], cx
movzx eax, byte [rdx + r10]
test al, al
jne 0x402dcf
mov r9d, dword [0x00443edf]
mov rdx, rdi
mov r8d, dword [0x00443f1f]
mov ecx, dword [0x00443f03]
call fcn.00402b4f
mov ecx, dword [0x00443efb]
xor r9d, r9d
mov qword [rsp + 0x30], r15
and al, 0x30
mov rdi, qword [r11 + 0x30]
jmp 0x402d25
Function at 0x408840
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x00447098], 0
je 0x4088de
cmp word [0x004473a8], 0xd7b2
jne 0x408873
cmp dword [0x004473b0], 0
jbe 0x408873
lea rcx, [0x004473a0]
call qword [0x004473c8]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x00440564]
mov r8d, 0x25
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rbx, rax
lea rcx, [0x00408914]
call fcn.00409730
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x408900
cmp byte [0x0043f03a], 0
jne 0x408900
xor rcx, rcx
lea rdx, [0x00440564]
lea r8, str.Error
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40b710
Capabilities:
Get geographical location

Disassembly:
push rbp
sub rsp, 0x1d0
mov rbp, rsp
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x40], rdx
mov word [rbp + 0x4e], r8w
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
call fcn.00408cb0
movzx rax, word [rbp + 0x4e]
cmp word [0x00440a60], ax
ja 0x40b7f8
movzx rax, word [rbp + 0x4e]
cmp ax, word [0x00440e60]
mov word [rbp + 0x4e], ax
ja 0x40b7f8
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x40b7f7
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
lea rdx, [0x00440a60]
mov r9d, eax
add r9, r9
movzx r10, word [rbp + 0x4e]
cmp word [rdx + r9*8], r10w
jbe 0x40b7b1
mov ecx, eax
sub ecx, 1
jmp 0x40b7f2
lea rdx, [0x00440a60]
mov r8d, eax
add r8, r8
movzx r9, word [rbp + 0x4e]
cmp word [rdx + r8*8], r9w
jae 0x40b7d3
mov r8d, eax
add r8d, 1
jmp 0x40b7f2
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x40]
lea r8, [0x00440a68]
mov eax, eax
add rax, rax
mov r8, qword [r8 + rax*8]
call fcn.0040b5a0
jmp 0x40b7f7
cmp ecx, r8d
jae 0x40b780
nop
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
jne 0x40b8da
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40b8da
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 0x59
lea r8, [rbp + 0x126]
mov r9d, 0x55
call sub.kernel32.dll_GetLocaleInfoW
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 0x5a
lea r8, [rbp + 0x7c]
mov r9d, 0x55
call sub.kernel32.dll_GetLocaleInfoW
lea rcx, [rbp + 0x68]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.00409cc0
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.00409cc0
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.00409cc0
mov rcx, qword [rbp + 0x40]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x0040b934]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x0040b944]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.0040a0b0
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.00408d90
mov rax, qword [rbp + 0x40]
lea rsp, [rbp + 0x1d0]
pop rbp
ret
Function at 0x40c830
Capabilities:
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x88], rdx
mov qword [rbp + 0x90], r8
mov rcx, qword [rbp + 0x88]
call fcn.00408e40
mov rcx, qword [rbp + 0x90]
call fcn.00408e40
nop
mov rcx, qword [rbp + 0x28]
call fcn.00408cb0
cmp qword [rbp + 0x90], 0
je 0x40c9f6
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
call fcn.004092f0
xor rax, rax
cmp qword [rbp + 0x90], 0
je 0x40c8e1
mov rax, qword [rbp + 0x90]
mov eax, dword [rax - 4]
cmp eax, 1
jl 0x40c91b
mov rcx, qword [rbp + 0x90]
movsxd rdx, eax
cmp word [rcx + rdx*2 - 2], 0x2e
jne 0x40c914
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
mov r8d, 1
mov r9d, eax
call fcn.0040a1a0
jmp 0x40c91b
sub eax, 1
test eax, eax
jne 0x40c8e6
nop
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
call fcn.0040c400
cmp qword [rbp + 0x68], 0
je 0x40c959
mov rcx, rbp
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x68]
call fcn.0040c5b0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
call fcn.00409270
jmp 0x40c9f5
call sub.kernel32.dll_GetUserDefaultUILanguage
lea rcx, [rbp + 0x48]
mov edx, eax
call fcn.0040bb50
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x48]
call fcn.0040c5b0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x50]
call fcn.00409270
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x40c9ce
cmp byte [0x0044be58], 0
jne 0x40c9ce
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.0040bb50
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x38]
call fcn.0040c5b0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.00409270
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x40c9f5
mov rcx, rbp
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x60]
call fcn.0040c6f0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
call fcn.00409270
nop
lea rcx, [rbp + 0x30]
mov edx, 8
call fcn.00408d90
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.00408d90
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x40d610
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.0040d600
mov ebx, eax
test ebx, ebx
je 0x40d65b
cmp dword [0x00441264], 0xffffffff
jne 0x40d634
mov ecx, 0xe2
call fcn.00408af0
mov ecx, ebx
call fcn.0040d5e0
test rax, rax
jne 0x40d64d
mov ecx, 0xe2
call fcn.00408af0
jmp 0x40d65b
mov ecx, dword [0x00441264]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret
Function at 0x40d6b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
lea rax, [0x1a0]
test rax, rax
je 0x40d6f0
cmp dword [0x00441264], 0xffffffff
je 0x40d6f0
mov ecx, dword [0x00441264]
call sub.kernel32.dll_TlsGetValue
test rax, rax
je 0x40d6f0
mov rcx, rax
call sub.kernel32.dll_LocalFree
mov ecx, dword [0x00441264]
xor rdx, rdx
call sub.kernel32.dll_TlsSetValue
add rsp, 0x28
ret

Function at 0x40d730
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x0044bf34], 0
je 0x40d76b
mov ecx, dword [0x00441264]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40d77f
call fcn.0040d610
mov ecx, dword [0x00441264]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40d77f
mov rax, qword [0x0044bf70]
jmp 0x40d77f
mov rax, qword gs:[0x58]
movsxd rcx, dword [0x00441264]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

Function at 0x41ea60
Capabilities:
Get geographical location

Disassembly:
push rbp
push rbx
sub rsp, 0x38
mov rbp, rsp
mov ebx, r8d
lea r8, [rbp + 0x2c]
mov r9d, 2
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x41ea87
movzx rax, word [rbp + 0x2c]
jmp 0x41ea89
mov eax, ebx
lea rsp, [rbp + 0x38]
pop rbx
pop rbp
ret

Function at 0x420360
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x8e0
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
lea r8, [rbp + 0x60]
mov r9d, 0x400
call fcn.00420100
mov ebx, eax
mov rax, qword [0x00446240]
cmp byte [rax], 0
je 0x420498
mov rcx, qword [0x00446068]
call fcn.00405720
call fcn.00405250
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov esi, eax
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00420320]
mov r8d, 1
movsxd r9, esi
call fcn.0040ae30
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
mov rdx, qword [rbp + 0x58]
mov r8d, esi
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
lea rdx, [0x00420538]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
jmp 0x4204de
mov rcx, qword [0x0044bf38]
call fcn.0040b160
mov rcx, rax
mov rax, qword [0x00446018]
mov edx, dword [rax + 8]
lea r8, [rbp + 0x860]
mov r9d, 0x40
call sub.user32.dll_LoadStringW_1
xor rcx, rcx
lea rdx, [rbp + 0x60]
lea r8, [rbp + 0x860]
mov r9d, 0x2010
call sub.user32.dll_MessageBoxW
nop
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00420320]
call fcn.0040b010
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret