joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004a3e0
Capabilities:
Get geographical location

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x40
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x40], rbx
mov qword [rbp + 0x48], rsi
mov qword [rbp + 0x50], rdi
mov rax, qword [0x14007e3c0]
xor rax, rbp
mov qword [rbp], rax
mov eax, dword [0x14008161c]
mov r15, r9
mov r13d, r8d
test eax, eax
mov r14d, edx
mov rbx, rcx
jne 0x14004a461
lea edx, [rax + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x14004a444
mov dword [0x14008161c], 1
jmp 0x14004a466
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x14004a45b
mov dword [0x14008161c], 2
jmp 0x14004a48b
mov eax, dword [0x14008161c]
cmp eax, 1
jne 0x14004a47e
mov r9d, dword [rbp + 0x60]
mov r8, r15
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x14004a592
cmp eax, 2
je 0x14004a48b
test eax, eax
jne 0x14004a590
mov esi, dword [rbp + 0x68]
xor edi, edi
test esi, esi
jne 0x14004a49a
mov rax, qword [rbx]
mov esi, dword [rax + 4]
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
movsxd r12, eax
je 0x14004a590
jle 0x14004a590
xor edx, edx
mov rax, 0xffffffffffffffe0
mov rcx, r12
div r12
cmp rax, 1
jb 0x14004a590
add rcx, 0x10
cmp rcx, 0x400
ja 0x14004a518
lea rax, [rcx + 0xf]
cmp rax, rcx
ja 0x14004a4f6
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14005e500
sub rsp, rax
lea rbx, [rsp + 0x30]
test rbx, rbx
je 0x14004a590
mov dword [rbx], 0xcccc
jmp 0x14004a52b
call fcn.14003b160
test rax, rax
mov rbx, rax
je 0x14004a52f
mov dword [rax], 0xdddd
add rbx, 0x10
test rbx, rbx
je 0x14004a590
mov r9d, r12d
mov r8, rbx
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x14004a57a
mov eax, dword [rbp + 0x60]
or r9d, 0xffffffff
mov r8, rbx
test eax, eax
lea edx, [r9 + 2]
mov ecx, esi
jne 0x14004a569
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
jmp 0x14004a572
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
cmp dword [rbx - 0x10], 0xdddd
lea rcx, [rbx - 0x10]
jne 0x14004a58c
call fcn.14003ad30
mov eax, edi
jmp 0x14004a592
xor eax, eax
mov rcx, qword [rbp]
xor rcx, rbp
call fcn.1400353d0
mov rbx, qword [rbp + 0x40]
mov rsi, qword [rbp + 0x48]
mov rdi, qword [rbp + 0x50]
lea rsp, [rbp + 0x10]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14004a6f0
Capabilities:
Get geographical location

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x50
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x40], rbx
mov qword [rbp + 0x48], rsi
mov qword [rbp + 0x50], rdi
mov rax, qword [0x14007e3c0]
xor rax, rbp
mov qword [rbp], rax
mov eax, dword [0x140081620]
mov r15, r9
mov r13d, r8d
test eax, eax
mov r14d, edx
mov rbx, rcx
jne 0x14004a7a8
lea edx, [rax + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x14004a754
mov dword [0x140081620], 1
jmp 0x14004a7b6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x14004a7a2
mov dword [0x140081620], 2
mov r9d, dword [rbp + 0x60]
mov r8, r15
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov rcx, qword [rbp]
xor rcx, rbp
call fcn.1400353d0
mov rbx, qword [rbp + 0x40]
mov rsi, qword [rbp + 0x48]
mov rdi, qword [rbp + 0x50]
lea rsp, [rbp + 0x10]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov eax, dword [0x140081620]
cmp eax, 2
je 0x14004a769
test eax, eax
je 0x14004a769
cmp eax, 1
jne 0x14004a7de
mov esi, dword [rbp + 0x68]
xor edi, edi
test esi, esi
jne 0x14004a7c5
mov rax, qword [rbx]
mov esi, dword [rax + 4]
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
movsxd r12, eax
jne 0x14004a7e2
xor eax, eax
jmp 0x14004a77c
jle 0x14004a7de
xor edx, edx
mov rax, 0xffffffffffffffe0
div r12
cmp rax, 2
jb 0x14004a7de
lea rcx, [r12 + r12 + 0x10]
cmp rcx, 0x400
ja 0x14004a835
lea rax, [rcx + 0xf]
cmp rax, rcx
ja 0x14004a817
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14005e500
sub rsp, rax
lea rbx, [rsp + 0x40]
test rbx, rbx
je 0x14004a7de
mov dword [rbx], 0xcccc
jmp 0x14004a848
call fcn.14003b160
test rax, rax
mov rbx, rax
je 0x14004a84c
mov dword [rax], 0xdddd
add rbx, 0x10
test rbx, rbx
je 0x14004a7de
mov r9d, r12d
mov r8, rbx
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x14004a89f
mov eax, dword [rbp + 0x60]
or r9d, 0xffffffff
xor edx, edx
test eax, eax
mov qword [rsp + 0x38], rdi
mov r8, rbx
mov ecx, esi
mov qword [rsp + 0x30], rdi
jne 0x14004a88e
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
jmp 0x14004a897
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
cmp dword [rbx - 0x10], 0xdddd
lea rcx, [rbx - 0x10]
jne 0x14004a8b1
call fcn.14003ad30
mov eax, edi
jmp 0x14004a77c
Function at 0x14004d8b0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0xb0
mov rax, qword [0x14007e3c0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov esi, ecx
mov r9d, 0x78
and ecx, 0x3ff
mov rbp, r8
mov ebx, edx
lea edx, [r9 - 0x77]
lea r8, [rsp + 0x20]
bts ecx, 0xa
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x14004d999
movzx ecx, byte [rsp + 0x20]
xor edx, edx
mov qword [rsp + 0xc8], rdi
test cl, cl
lea r8, [rsp + 0x20]
mov edi, edx
je 0x14004d94a
nop
lea eax, [rcx - 0x61]
add r8, 1
cmp al, 5
ja 0x14004d930
add cl, 0xd9
jmp 0x14004d93a
lea eax, [rcx - 0x41]
cmp al, 5
ja 0x14004d93a
add cl, 0xf9
movsx eax, cl
mov cl, byte [r8]
add edi, edi
test cl, cl
lea edi, [rax + rdi*8 - 0x30]
jne 0x14004d920
cmp esi, edi
je 0x14004d98c
test ebx, ebx
je 0x14004d98c
mov rdi, qword [rbp]
movzx eax, byte [rdi]
lea rcx, [rdi + 1]
nop
cmp al, 0x41
jl 0x14004d968
cmp al, 0x5a
jle 0x14004d96e
sub al, 0x61
cmp al, 0x19
ja 0x14004d979
mov al, byte [rcx]
add edx, 1
add rcx, 1
jmp 0x14004d960
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
cmp edx, ecx
je 0x14004d991
mov eax, 1
mov rdi, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400353d0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rsi
ret
Function at 0x14004e4d0
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14007e3c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x14004e517
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400353d0
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.140037ae0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400353d0
add rsp, 0x38
ret
Function at 0x1400535d0
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r13
sub rsp, 0x20
mov rbp, rdx
xor edi, edi
xor edx, edx
lea r8d, [rdi + 1]
mov esi, ecx
call fcn.14004f460
cmp rax, 0xffffffffffffffff
mov r13, rax
je 0x140053774
lea r8d, [rdi + 2]
xor edx, edx
mov ecx, esi
call fcn.14004f460
cmp rax, 0xffffffffffffffff
je 0x140053774
mov qword [rsp + 0x40], rbx
mov rbx, rbp
mov qword [rsp + 0x50], r14
sub rbx, rax
test rbx, rbx
jle 0x1400536f3
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r14d, 0x1000
lea edx, [rdi + 8]
mov rcx, rax
mov r8, r14
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbp, rax
jne 0x140053679
call fcn.14003c020
mov dword [rax], reloc.WS2_32.dll_inet_ntoa
call fcn.14003c020
mov eax, dword [rax]
mov rbx, qword [rsp + 0x40]
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop rdi
pop rsi
ret
mov edx, 0x8000
mov ecx, esi
mov qword [rsp + 0x48], r12
call fcn.140053790
mov r12d, eax
nop
mov r8d, ebx
cmp rbx, r14
mov rdx, rbp
cmovge r8d, r14d
mov ecx, esi
call fcn.140048cb0
cmp eax, 0xffffffff
je 0x1400536b5
cdqe
sub rbx, rax
test rbx, rbx
jg 0x140053690
jmp 0x1400536ce
call fcn.14003c050
cmp dword [rax], 5
jne 0x1400536ca
call fcn.14003c020
mov dword [rax], recv
or rdi, 0xffffffffffffffff
mov edx, r12d
mov ecx, esi
call fcn.140053790
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r12, qword [rsp + 0x48]
jmp 0x14005374c
test rbx, rbx
jns 0x140053756
xor r8d, r8d
mov rdx, rbp
mov ecx, esi
call fcn.14004f460
cmp rax, 0xffffffffffffffff
je 0x14005365a
mov ecx, esi
call fcn.140052ab0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb rdi, rdi
neg rdi
sub rdi, 1
cmp rdi, 0xffffffffffffffff
jne 0x140053756
call fcn.14003c020
mov dword [rax], recv
call fcn.14003c050
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
cmp rdi, 0xffffffffffffffff
je 0x14005365a
xor r8d, r8d
mov rdx, r13
mov ecx, esi
call fcn.14004f460
cmp rax, 0xffffffffffffffff
je 0x14005365a
xor eax, eax
jmp 0x140053661
call fcn.14003c020
mov rbp, qword [rsp + 0x58]
mov eax, dword [rax]
add rsp, 0x20
pop r13
pop rdi
pop rsi
ret
Function at 0x1400587b0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
mov rax, rdx
mov rdi, rcx
lea rcx, [0x14006aa00]
mov qword [rdi], rcx
xor ebp, ebp
mov qword [rdi + 8], rbp
or edx, 0xffffffff
mov rcx, rax
call fcn.1400129e0
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x28], rbp
lea rsi, [rdi + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
mov qword [rdi + 0x58], rbp
mov byte [rdi + 0x68], bpl
lea ecx, [rbp + 0x38]
call fcn.1400357a0
mov rbx, rax
test rax, rax
je 0x140058834
mov qword [rax], rsi
lea rcx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov qword [rbx + 0x30], rbp
jmp 0x140058837
mov rbx, rbp
mov qword [rdi + 0x28], rbx
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x58], rax
lea rax, [rdi + 0x10]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
mov r9, rdi
lea r8, [0x140058640]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi + 8], rax
mov dword [rdi + 0x20], ebp
lea rax, [0x140060f0a]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
mov r9, qword [rdi + 0x18]
lea r8, str.created
lea rdx, str.__16.16s__s__lx_:__s
lea rcx, [0x140081668]
call fcn.140013bd0
nop
mov rax, rdi
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

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

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov ecx, dword [0x140081688]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x140058c66
lea ecx, [rax + 0x70]
call fcn.1400357a0
mov rdi, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140058c52
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea rcx, [0x14006aa00]
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov dword [rdi + 0x10], ebx
or edx, 0xffffffff
lea rcx, str.Native
call fcn.1400129e0
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x28], 0
lea rcx, [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
mov qword [rdi + 0x58], 0
mov byte [rdi + 0x68], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x58], rax
mov dword [rdi + 0x20], 4
lea rax, [0x140060f0a]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
mov r9, qword [rdi + 0x18]
lea r8, str.created
lea rdx, str.__16.16s__s__lx_:__s
lea rcx, [0x140081668]
call fcn.140013bd0
nop
jmp 0x140058c54
xor edi, edi
mov rdx, rdi
mov ecx, dword [0x140081688]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rax, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140058e60
Capabilities:
Terminate thread

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x150
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rbx, rcx
lea rsi, [rcx + 0x30]
mov qword [rax + 8], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
cmp byte [rbx + 0x68], 0
je 0x140058ebd
mov r9d, 0x74
lea r8, str..winThreading.cxx
lea rdx, str._deleteAfterRun
lea rcx, [rsp + 0x38]
call fcn.14001ae10
mov rcx, rax
call fcn.14001ade0
mov eax, dword [rbx + 0x20]
cmp eax, 3
jne 0x140058ef9
lea rdi, [0x140060f0a]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbx
mov r9, qword [rbx + 0x18]
lea r8, str.already_joined
lea rdx, str.__16.16s__s__lx_:__s
lea rcx, [0x140081668]
call fcn.140013bd0
jmp 0x140058fdc
test eax, eax
jne 0x140058f3d
xor edx, edx
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rdi, [0x140060f0a]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbx
mov r9, qword [rbx + 0x18]
lea r8, str.joined__not_started_
lea rdx, str.__16.16s__s__lx_:__s
lea rcx, [0x140081668]
call fcn.140013bd0
jmp 0x140058fdc
lea rdi, [0x140060f0a]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbx
mov r9, qword [rbx + 0x18]
lea r8, str.joining
lea rdx, str.__16.16s__s__lx_:__s
lea rcx, [0x140081668]
call fcn.140013bd0
cmp dword [rbx + 0x20], 1
jne 0x140058fac
or edx, 0xffffffff
mov rcx, qword [rbx + 0x28]
call fcn.140058d20
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbx
mov r9, qword [rbx + 0x18]
lea r8, str.checking
lea rdx, str.__16.16s__s__lx_:__s
lea rcx, [0x140081668]
call fcn.140013bd0
cmp dword [rbx + 0x20], 1
je 0x140058f72
mov dword [rbx + 0x20], 3
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbx
mov r9, qword [rbx + 0x18]
lea r8, str.joined
lea rdx, str.__16.16s__s__lx_:__s
lea rcx, [0x140081668]
call fcn.140013bd0
nop
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, rbx
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
lea rax, [0x14006abf8]
xor r9d, r9d
mov rbx, rcx
mov dword [rcx + 0x5f8], 0
mov qword [rcx], rax
lea edx, [r9 + 1]
xor ecx, ecx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x600], rax
mov ecx, dword [0x1400816b0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rbx
mov qword [rbx + 0x608], rax
mov ecx, dword [0x1400816b0]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140059370
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, qword [rcx + 0x608]
lea rax, [0x14006abf8]
mov rbx, rcx
mov qword [rcx], rax
mov ecx, dword [0x1400816b0]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [rbx + 0x600]
test rcx, rcx
je 0x1400593a8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x600], 0
add rsp, 0x20
pop rbx
ret
Function at 0x1400593c0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x140
mov rbx, rcx
mov ecx, dword [0x1400816b0]
mov rdi, r9
mov rsi, r8
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp rax, rbx
je 0x14005941a
lea r8, str..winEventManager.cxx
lea rdx, str.threadInstanceOrNull____this
lea rcx, [rsp + 0x20]
mov r9d, 0x25
call fcn.14001ae10
mov rcx, rax
call fcn.14001ade0
movsxd rax, dword [rbx + 0x5f8]
cmp eax, 0x3f
jl 0x14005942a
xor al, al
jmp 0x140059456
mov qword [rbx + rax*8 + 8], rbp
movsxd rax, dword [rbx + 0x5f8]
mov qword [rbx + rax*8 + 0x208], rsi
movsxd rax, dword [rbx + 0x5f8]
mov qword [rbx + rax*8 + 0x400], rdi
add dword [rbx + 0x5f8], 1
mov al, 1
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140059470
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x140
mov rbx, rcx
mov ecx, dword [0x1400816b0]
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp rax, rbx
je 0x1400594ba
lea r8, str..winEventManager.cxx
lea rdx, str.threadInstanceOrNull____this
lea rcx, [rsp + 0x20]
mov r9d, gethostbyname
call fcn.14001ae10
mov rcx, rax
call fcn.14001ade0
mov r8d, dword [rbx + 0x5f8]
xor edx, edx
test r8d, r8d
jle 0x14005954f
lea rax, [rbx + 8]
cmp qword [rax], rdi
je 0x1400594f2
add edx, 1
add rax, 8
cmp edx, r8d
jl 0x1400594d0
mov rbx, qword [rsp + 0x150]
add rsp, 0x140
pop rdi
ret
lea eax, [r8 - 1]
movsxd rcx, edx
cmp edx, eax
jge 0x140059548
lea r8, [rbx + rcx*8 + 8]
nop
nop
nop
nop
mov rax, qword [r8 + 8]
add edx, 1
add r8, 8
mov qword [r8 - 8], rax
mov rax, qword [r8 + 0x200]
mov qword [r8 + 0x1f8], rax
mov rax, qword [r8 + 0x3f8]
mov qword [r8 + 0x3f0], rax
mov eax, dword [rbx + 0x5f8]
sub eax, 1
cmp edx, eax
jl 0x140059510
add dword [rbx + 0x5f8], 0xffffffff
mov rbx, qword [rsp + 0x150]
add rsp, 0x140
pop rdi
ret

Function at 0x140059930
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x30
mov rdx, rcx
lea rcx, [rsp + 0x48]
or r9d, 0xffffffff
mov r8d, 0xfde9
mov dword [rsp + 0x20], 0
call fcn.140012a60
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rcx, qword [rsp + 0x48]
cmp eax, 0xffffffff
setne bl
call fcn.140034ee0
test bl, bl
setne al
add rsp, 0x30
pop rbx
ret
Function at 0x140059a00
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, rcx
lea rcx, [rsp + 0x50]
or r9d, 0xffffffff
mov r8d, 0xfde9
mov dword [rsp + 0x20], 0
call fcn.140012a60
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140059a51
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140059a51
mov rcx, qword [rsp + 0x50]
call fcn.140034ee0
xor al, al
add rsp, 0x30
pop rdi
ret
lea rcx, [rsp + 0x58]
or r9d, 0xffffffff
mov r8d, 0xfde9
mov rdx, rdi
mov qword [rsp + 0x40], rbx
mov rbx, qword [rsp + 0x50]
mov dword [rsp + 0x20], 0
call fcn.140012a60
mov rcx, qword [rsp + 0x58]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov rcx, qword [rsp + 0x58]
test eax, eax
setne bl
call fcn.140034ee0
mov rcx, qword [rsp + 0x50]
call fcn.140034ee0
mov al, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140059e30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x240
mov rdi, rcx
mov rdx, rcx
lea rcx, [rsp + 0x258]
or r9d, 0xffffffff
mov r8d, 0xfde9
mov dword [rsp + 0x20], 0
call fcn.140012a60
mov rcx, qword [rsp + 0x258]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rcx, qword [rsp + 0x258]
cmp eax, 0xffffffff
setne bl
call fcn.140034ee0
test bl, bl
je 0x140059e9a
mov al, 1
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140059ef5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x140059ef5
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.fileExists__s_
lea rcx, [rsp + 0x134]
mov r8d, eax
mov r9, rdi
call fcn.140059ab0
lea rcx, [rsp + 0x30]
mov r8d, 0x104
mov rdx, rax
call fcn.1400374a0
lea rdx, [0x14007ace8]
lea rcx, [rsp + 0x30]
call fcn.140035840
int3
xor al, al
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop rdi
ret
Function at 0x14005a050
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x240
movzx ebp, dl
mov rdi, rcx
mov rdx, rcx
movzx esi, r8b
lea rcx, [rax + 0x20]
or r9d, 0xffffffff
mov r8d, 0xfde9
mov dword [rsp + 0x20], 0
call fcn.140012a60
mov rcx, qword [rsp + 0x268]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, qword [rsp + 0x268]
mov ebx, eax
call fcn.140034ee0
test ebx, ebx
je 0x14005a0cd
mov al, 1
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
lea rcx, [rsp + 0x268]
or r9d, 0xffffffff
mov r8d, 0xfde9
mov rdx, rdi
mov dword [rsp + 0x20], 0
call fcn.140012a60
mov rcx, qword [rsp + 0x268]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rcx, qword [rsp + 0x268]
mov ebx, eax
call fcn.140034ee0
cmp ebx, 0xffffffff
je 0x14005a12d
test bl, 0x10
je 0x14005a12d
test bpl, bpl
je 0x14005a129
test sil, sil
je 0x14005a129
mov rcx, rdi
call fcn.14005a000
int3
xor al, al
jmp 0x14005a0b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.mkDir__s_
lea rcx, [rsp + 0x134]
mov r8d, eax
mov r9, rdi
call fcn.140059ab0
lea rcx, [rsp + 0x30]
mov r8d, 0x104
mov rdx, rax
call fcn.1400374a0
lea rdx, [0x14007ace8]
lea rcx, [rsp + 0x30]
call fcn.140035840
int3

Function at 0x14005a3e0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x148
mov rax, qword [0x1400816b8]
test rax, rax
je 0x14005a400
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x14005a426
lea r8, str..TimerManager.cxx
lea rdx, str.thrInst__thrInst__ptr__
lea rcx, [rsp + 0x20]
mov r9d, 0x46
call fcn.14001ae10
mov rcx, rax
call fcn.14001ade0
mov rax, qword [0x1400816b8]
mov ecx, dword [rax]
add rsp, 0x148
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x140aee058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140aee1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140aee089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140aee06f
add dl, dl
jne 0x140aee096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140aee0f6
xor eax, eax
add dl, dl
jne 0x140aee0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140aee1ad
add dl, dl
jne 0x140aee0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140aee0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140aee0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140aee0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140aee0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140aee07e
mov eax, 1
add dl, dl
jne 0x140aee106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140aee113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140aee0fb
sub eax, ebx
mov ebx, 1
jne 0x140aee14c
mov ecx, 1
add dl, dl
jne 0x140aee12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140aee13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140aee123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140aee07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140aee168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140aee175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140aee15d
cmp eax, 0x7d00
jae 0x140aee19b
cmp eax, 0x500
jb 0x140aee196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140aee07e
cmp eax, 0x7f
ja 0x140aee19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140aee07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140aee1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140aee07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20