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

Disassembly:
push rbx
push rdi
sub rsp, 0x78
mov qword [rsp + 0x38], 0xfffffffffffffffe
xor edi, edi
mov dword [rsp + 0x30], edi
mov rcx, qword [0x100246638]
mov rax, qword [rcx]
mov byte [rsp + 0x20], 6
mov r9d, 0x34f
lea r8, [0x100042240]
mov edx, 0xe28
call qword [rax + 0x48]
mov qword [rsp + 0x90], rax
test rax, rax
je 0x1001571e1
mov rcx, rax
call fcn.10015f1c0
jmp 0x1001571e4
mov rax, rdi
mov qword [0x10029b488], rax
test rax, rax
jne 0x1001571fe
mov ebx, 8
mov dword [rsp + 0x30], ebx
jmp 0x10015735d
mov rcx, qword [0x100246638]
mov rax, qword [rcx]
mov byte [rsp + 0x20], 6
mov r9d, 0x355
lea r8, [0x100042240]
mov edx, 0x280
call qword [rax + 0x48]
mov qword [rsp + 0x98], rax
test rax, rax
je 0x100157240
lea rdx, [0x1000428e0]
mov rcx, rax
call fcn.100153d20
jmp 0x100157243
mov rax, rdi
mov qword [0x10029b210], rax
test rax, rax
jne 0x10015725d
mov ebx, 8
mov dword [rsp + 0x30], ebx
jmp 0x10015735d
mov rcx, qword [0x100246638]
mov rax, qword [rcx]
mov byte [rsp + 0x20], 6
mov r9d, 0x35c
lea r8, [0x100042240]
mov edx, 4
call qword [rax + 0x48]
mov qword [rsp + 0xa0], rax
test rax, rax
je 0x100157298
mov rcx, rax
call fcn.100156be0
jmp 0x10015729b
mov rax, rdi
mov qword [0x10029b218], rax
mov ebx, 8
test rax, rax
jne 0x1001572b5
mov dword [rsp + 0x30], ebx
jmp 0x10015735d
mov rcx, qword [0x100246638]
mov rax, qword [rcx]
mov byte [rsp + 0x20], 6
mov r9d, 0x365
lea r8, [0x100042240]
mov rdx, rbx
call qword [rax + 0x48]
test rax, rax
je 0x1001572f2
lea rcx, [0x1000421a8]
mov qword [rax], rcx
lea rcx, [0x1000421c0]
mov qword [rax], rcx
jmp 0x1001572f5
mov rax, rdi
mov qword [0x10029b230], rax
test rax, rax
jne 0x100157307
mov dword [rsp + 0x30], ebx
jmp 0x10015735d
mov rcx, qword [0x100246638]
mov rax, qword [rcx]
mov byte [rsp + 0x20], 6
mov r9d, 0x36b
lea r8, [0x100042240]
mov edx, 0x2b8
call qword [rax + 0x48]
mov qword [rsp + 0xa8], rax
test rax, rax
je 0x100157349
mov rdx, qword [0x10029b230]
mov rcx, rax
call fcn.100160a80
jmp 0x10015734c
mov rax, rdi
mov qword [0x10029b220], rax
test rax, rax
cmove edi, ebx
mov dword [rsp + 0x30], edi
call fcn.100068a00
mov rdi, rax
mov rbx, qword gs:[0x30]
add rbx, rax
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x100157388
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x100157399
mov rax, qword [rbx + 0xd8]
test rax, rax
jne 0x1001573d0
call fcn.100063d30
call fcn.100068a00
mov rdi, rax
mov rbx, qword gs:[0x30]
add rbx, rax
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x1001573c9
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rax, qword [rbx + 0xd8]
cmp dword [rax + 0x204], 0
je 0x1001573de
call fcn.1000618f0
mov eax, dword [rsp + 0x30]
add rsp, 0x78
pop rdi
pop rbx
ret
Function at 0x1001573f0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov rdx, rcx
mov rcx, qword [0x10029b228]
test rcx, rcx
je 0x100157419
call fcn.100160bf0
nop
call fcn.100068a00
mov rdi, rax
mov rbx, qword gs:[0x30]
add rbx, rax
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x100157444
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x100157455
mov rax, qword [rbx + 0xd8]
test rax, rax
jne 0x10015748c
call fcn.100063d30
call fcn.100068a00
mov rdi, rax
mov rbx, qword gs:[0x30]
add rbx, rax
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x100157485
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rax, qword [rbx + 0xd8]
cmp dword [rax + 0x204], 0
je 0x10015749a
call fcn.1000618f0
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret

Function at 0x1001574b0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
mov eax, 0x10a8
call fcn.10005f3c0
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x10022f440]
xor rax, rsp
mov qword [rsp + 0x1098], rax
lea rax, [rsp + 0x10c8]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x10c0]
or r8, 0xffffffffffffffff
mov edx, 0x800
lea rcx, [rsp + 0x80]
call qword [sym.imp.MSVCR100.dll__vsnwprintf_s]
xor r11d, r11d
mov qword [rsp + 0x58], r11
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov rax, qword [0x100241600]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r11d
xor r9d, r9d
xor r8d, r8d
lea edx, [r11 + 4]
mov rcx, qword [0x10029b218]
call fcn.100157150
nop
call fcn.100068a00
mov rdi, rax
mov rbx, qword gs:[0x30]
add rbx, rax
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x100157582
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x100157593
mov rax, qword [rbx + 0xd8]
test rax, rax
jne 0x1001575ca
call fcn.100063d30
call fcn.100068a00
mov rdi, rax
mov rbx, qword gs:[0x30]
add rbx, rax
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x1001575c3
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rax, qword [rbx + 0xd8]
cmp dword [rax + 0x204], 0
je 0x1001575d8
call fcn.1000618f0
mov rcx, qword [rsp + 0x1098]
xor rcx, rsp
call fcn.10005f420
add rsp, 0x10a8
pop rdi
pop rbx
ret
Function at 0x10015c100
Capabilities:
Resolve dns

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x4b8]
sub rsp, 0x5a0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x10022f440]
xor rax, rsp
mov qword [rbp + 0x490], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor esi, esi
mov dword [rsp + 0x40], esi
mov byte [rbp + 0x80], sil
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x81]
call sub.MSVCR100.dll_memset
mov edx, 0x1c
mov eax, 0x10
mov r14d, 2
cmp r14w, word [rbx]
cmove edx, eax
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
mov r9d, 0x401
lea r8, [rbp + 0x80]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
je 0x10015c1f7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, eax
lea r8, [0x1000435c0]
mov edx, r14d
mov rcx, qword [0x10029b218]
call fcn.100156ed0
mov qword [rdi + 0x100], rdi
mov qword [rdi + 0x108], 0x80
mov qword [rdi + 0x110], rsi
lea rdx, [0x100004490]
mov rcx, rdi
call fcn.100057700
nop
mov dword [rsp + 0x40], 1
jmp 0x10015c2ea
lea rax, [rsp + 0x60]
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x68], 0x80
mov qword [rbp + 0x70], rsi
mov rcx, qword [rbp + 0x70]
cmp qword [rbp + 0x68], rcx
jne 0x10015c224
lea rcx, [rsp + 0x60]
call fcn.1000577e0
mov rcx, qword [rbp + 0x70]
mov rax, qword [rbp + 0x60]
mov word [rax + rcx*2], si
inc qword [rbp + 0x70]
lea rax, [rbp + 0x80]
or rdx, 0xffffffffffffffff
nop dword [rax + rax]
inc rdx
cmp byte [rax + rdx], 0
jne 0x10015c240
lea r8, [rsp + 0x60]
lea rcx, [rbp + 0x80]
call fcn.10015be00
mov qword [rdi + 0x100], rdi
mov qword [rdi + 0x108], 0x80
mov qword [rdi + 0x110], rsi
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.1001527f0
nop
mov dword [rsp + 0x40], 1
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x10015c2ea
lea rax, [rsp + 0x60]
cmp rdx, rax
je 0x10015c2ea
mov rax, rdx
mov r8d, 0x200
and rax, 0xffffffffffffe000
je 0x10015c2b8
cmp word [rax + 4], r8w
jne 0x10015c2b8
mov rax, qword [rax + 0x28]
mov rax, qword [rax + 8]
mov rcx, qword [rax + 0x10]
dec rcx
not rcx
and rcx, rdx
je 0x10015c2d6
cmp word [rcx + 4], r8w
jne 0x10015c2d6
mov rcx, qword [rcx + 0x28]
mov rcx, qword [rcx + 8]
test byte [rcx + 0x28], 8
jne 0x10015c2e6
mov rax, qword [rcx]
call qword [rax + 0x28]
mov qword [rbp + 0x60], rsi
mov rax, rdi
mov rcx, qword [rbp + 0x490]
xor rcx, rsp
call fcn.10005f420
lea r11, [rsp + 0x5a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x10015e9b0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov r8d, edx
mov rdx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x10015e9f9
lea rcx, [0x100005330]
call qword [sym.imp.MSVCR100.dll_wprintf]
mov edx, 0x11
lea ecx, [rdx + 0x13]
lea r9d, [rdx - 0x10]
lea r8d, [rdx + 8]
call fcn.100061c20
nop
call fcn.100068a00
mov rdi, rax
mov rbx, qword gs:[0x30]
add rbx, rax
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x10015ea24
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x10015ea35
mov rax, qword [rbx + 0xd8]
test rax, rax
jne 0x10015ea6c
call fcn.100063d30
call fcn.100068a00
mov rdi, rax
mov rbx, qword gs:[0x30]
add rbx, rax
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x10015ea65
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rax, qword [rbx + 0xd8]
cmp dword [rax + 0x204], 0
je 0x10015ea7a
call fcn.1000618f0
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret

Function at 0x10015ea90
Capabilities:
Access peb ldr_data
Get ntdll base address
Get thread local storage value

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x2b0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov rax, qword [0x10022f440]
xor rax, rsp
mov qword [rsp + 0x2a8], rax
mov edi, edx
mov rbx, rcx
xor esi, esi
mov word [rsp + 0x80], si
xor eax, eax
mov dword [rsp + 0x82], eax
mov word [rsp + 0x86], ax
mov word [rsp + 0x90], si
xor edx, edx
mov r8d, 0x208
lea rcx, [r11 - 0x226]
call sub.MSVCR100.dll_memset
mov edx, 0x104
lea rcx, [rsp + 0x90]
call fcn.10015e9b0
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea r8d, [rsi + 3]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x90]
call qword [sym.imp.MSVCR100.dll__wsplitpath_s]
nop
call fcn.100068a00
mov rdi, rax
mov rbx, qword gs:[0x30]
add rbx, rax
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x10015eb6e
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x10015eb7f
mov rax, qword [rbx + 0xd8]
test rax, rax
jne 0x10015ebb6
call fcn.100063d30
call fcn.100068a00
mov rdi, rax
mov rbx, qword gs:[0x30]
add rbx, rax
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x10015ebaf
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rax, qword [rbx + 0xd8]
cmp dword [rax + 0x204], 0
je 0x10015ebc4
call fcn.1000618f0
mov rcx, qword [rsp + 0x2a8]
xor rcx, rsp
call fcn.10005f420
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x10015ebf0
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x50
movzx ebp, dx
movzx r14d, cx
lea rdx, [0x1000446f8]
xor ecx, ecx
movzx edi, r9w
mov esi, r8d
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x10015ec6e
mov r10, qword [rsp + 0x80]
xor eax, eax
mov r9d, esi
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r10
mov dword [rsp + 0x30], eax
movzx r8d, bp
movzx edx, r14w
mov rcx, rbx
mov word [rsp + 0x28], di
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret

Function at 0x10015ed40
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
xor ebx, ebx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x58], r8
test rdx, rdx
jne 0x10015ed60
movzx edi, bx
jmp 0x10015ed6c
test r8, r8
mov edi, ebx
setne dil
inc di
mov qword [rsp + 0x70], rsi
cmp ecx, 0x8013f995
jg 0x10015edf5
cmp ecx, 0x8013f993
jge 0x10015edcc
cmp ecx, 0x80040219
je 0x10015ee1c
cmp ecx, 0x8013f990
jle 0x10015edfd
cmp ecx, 0x8013f992
jg 0x10015edfd
mov edx, 5
lea rax, [rsp + 0x50]
movzx r9d, di
lea ecx, [rdx - 4]
lea r8d, [rdx + 0x7c]
mov qword [rsp + 0x20], rax
call fcn.10015ebf0
mov rsi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
lea rdx, [0x1000446f8]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rsi, rax
test rax, rax
je 0x10015ee73
mov r8d, 5
mov r9d, 0x86
jmp 0x10015ee3f
cmp ecx, 0x8013f996
je 0x10015ee1c
lea rdx, [0x1000446f8]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rsi, rax
test rax, rax
je 0x10015ee73
mov r9d, 0x7b
jmp 0x10015ee39
lea rdx, [0x1000446f8]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rsi, rax
test rax, rax
je 0x10015ee73
mov r9d, 0x85
mov r8d, 4
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x50]
mov edx, 1
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ebx
mov rcx, rsi
mov word [rsp + 0x28], di
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rsi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x1001603e0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov rbx, rcx
call fcn.1001604d0
lea rcx, [rbx + 0x9d8]
test eax, eax
je 0x10016042a
dec eax
je 0x100160421
dec eax
je 0x100160418
lea rdx, [0x100044f40]
jmp 0x100160431
lea rdx, [0x100044f38]
jmp 0x100160431
lea rdx, [0x100044f20]
jmp 0x100160431
lea rdx, [0x10003cf90]
call fcn.100057700
nop
call fcn.100068a00
mov rdi, rax
mov rbx, qword gs:[0x30]
add rbx, rax
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x100160462
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x100160473
mov rax, qword [rbx + 0xd8]
test rax, rax
jne 0x1001604aa
call fcn.100063d30
call fcn.100068a00
mov rdi, rax
mov rbx, qword gs:[0x30]
add rbx, rax
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x1001604a3
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rax, qword [rbx + 0xd8]
cmp dword [rax + 0x204], 0
je 0x1001604b8
call fcn.1000618f0
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret

Function at 0x100160670
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x10022f440]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea rdi, [rcx + 0xd20]
xor esi, esi
mov rbx, rcx
mov word [rdi], si
mov eax, dword [0x100044fe0]
lea rdx, [rsp + 0x50]
movaps xmm0, xmmword [0x100044f80]
movaps xmm1, xmmword [0x100044f90]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
movaps xmmword [rsp + 0x50], xmm0
movaps xmm0, xmmword [0x100044fa0]
movaps xmmword [rsp + 0x60], xmm1
mov qword [rsp + 0x38], rsi
movaps xmm1, xmmword [0x100044fb0]
movaps xmmword [rsp + 0x70], xmm0
movaps xmm0, xmmword [0x100044fc0]
mov dword [r11 - 0x28], eax
movzx eax, word [0x100044fe4]
mov word [r11 - 0x24], ax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
movaps xmmword [r11 - 0x58], xmm1
movaps xmm1, xmmword [0x100044fd0]
movaps xmmword [r11 - 0x48], xmm0
movaps xmmword [r11 - 0x38], xmm1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100160776
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x100044fe8]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x30], 1
je 0x10016076b
mov word [rdi], si
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rbx + 0xe20], 1
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.10005f420
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1001607b0
Capabilities:
Get geographical location

Disassembly:
push rbx
sub rsp, 0x450
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x10022f440]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rbx, rdx
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x20], 0
mov rcx, rdx
call fcn.100152360
mov dword [rsp + 0x20], 1
mov r9d, 0x200
lea r8, [rsp + 0x40]
mov edx, 2
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x10016082a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x100044ed0]
call qword [sym.imp.MSVCR100.dll_wprintf]
jmp 0x100160837
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.100057700
mov rax, rbx
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.10005f420
add rsp, 0x450
pop rbx
ret

Function at 0x100160860
Capabilities:
Get thread local storage value

Disassembly:
push rdi
sub rsp, 0x270
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x288], rbx
mov rax, qword [0x10022f440]
xor rax, rsp
mov qword [rsp + 0x268], rax
mov rbx, rcx
cmp edx, 0x104
jae 0x1001608b9
lea rcx, [0x1000052f8]
call qword [sym.imp.MSVCR100.dll_wprintf]
mov edx, 0x11
lea ecx, [rdx + 0x13]
lea r9d, [rdx - 0x10]
lea r8d, [rdx + 8]
call fcn.100061c20
xor eax, eax
mov word [rsp + 0x50], ax
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x52]
call sub.MSVCR100.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x10016090b
lea rcx, [0x100005330]
call qword [sym.imp.MSVCR100.dll_wprintf]
mov edx, 0x11
lea ecx, [rdx + 0x13]
lea r9d, [rdx - 0x10]
lea r8d, [rdx + 8]
call fcn.100061c20
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rdx, [0x100005368]
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
nop
call fcn.100068a00
mov rdi, rax
mov rbx, qword gs:[0x30]
add rbx, rax
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x100160962
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x100160973
mov rax, qword [rbx + 0xd8]
test rax, rax
jne 0x1001609aa
call fcn.100063d30
call fcn.100068a00
mov rdi, rax
mov rbx, qword gs:[0x30]
add rbx, rax
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x1001609a3
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rax, qword [rbx + 0xd8]
cmp dword [rax + 0x204], 0
je 0x1001609b8
call fcn.1000618f0
mov rcx, qword [rsp + 0x268]
xor rcx, rsp
call fcn.10005f420
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rdi
ret
Function at 0x100163050
Capabilities:
Get memory capacity

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x10022f440]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rcx
lea rcx, [rsp + 0x20]
mov rdi, rdx
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
jne 0x1001630c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x100246698], 0
jne 0x1001630b5
mov rcx, qword [0x10029b218]
lea r8, [0x1000455d0]
mov r9d, eax
mov edx, 1
call fcn.100156ed0
movabs rbx, 0x3fffffffffffff
jmp 0x1001630d6
mov rbx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x48]
cmp rax, rbx
cmovb rbx, rax
shr rbx, 0xa
test rdi, rdi
je 0x1001630e8
cmp rbx, rdi
mov rax, rdi
cmovb rax, rbx
mov rbx, rax
cmp dword [0x100246698], 0
jne 0x10016310c
mov rcx, qword [0x10029b218]
lea r8, [0x100045640]
mov r9, rbx
mov edx, 3
call fcn.100156ed0
xorps xmm0, xmm0
cvtsi2ss xmm0, rbx
test rbx, rbx
jns 0x100163121
addss xmm0, dword [0x1000456c8]
mulss xmm0, dword [0x1000456c0]
movss xmm1, dword [0x1000456c4]
xor ecx, ecx
comiss xmm0, xmm1
jbe 0x10016314e
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x10016314e
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rdx, xmm0
mov r9, rdi
mov r8, rbx
add rdx, rcx
mov rcx, rsi
call fcn.1001631b0
mov rax, rsi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.10005f420
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x100164530
Capabilities:
Read file via mapping

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x10022f440]
xor rax, rsp
mov qword [rsp + 0x240], rax
call fcn.100159000
mov rcx, rax
call fcn.1001658f0
test eax, eax
jne 0x100164564
lea ebx, [rax + 2]
jmp 0x100164660
call fcn.100163fd0
mov ebx, eax
test eax, eax
jne 0x100164660
call fcn.100159000
lea rcx, [0x10029b4c0]
xor r8d, r8d
mov rdx, rax
call fcn.100164d10
mov ebx, eax
test eax, eax
jne 0x10016464c
call fcn.1001267c0
lea r8, [0x100045750]
lea rcx, [rsp + 0x30]
mov r9, rax
lea rax, [0x1002a47c0]
mov edx, 0x105
mov qword [rsp + 0x28], rax
lea rax, [0x100045728]
mov qword [rsp + 0x20], rax
call fcn.100060cc0
mov rdx, qword [0x1002a45a0]
lea r11, [rsp + 0x30]
lea r8d, [rbx + 4]
xor r9d, r9d
mov qword [rsp + 0x28], r11
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test rax, rax
je 0x10016463b
lea edx, [rbx + 2]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov qword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
je 0x10016462a
lea edx, [rbx + 1]
lea rcx, [0x10029b4c0]
call fcn.100165370
jmp 0x100164660
lea rdx, [rsp + 0x30]
mov ecx, 0x2077
call fcn.100122690
jmp 0x100164660
lea rdx, [rsp + 0x30]
mov ecx, 0x2076
call fcn.100122690
jmp 0x100164660
mov edx, eax
mov ecx, 0xd51
call fcn.100122690
nop dword [rax + rax]
cmp dword [0x100242300], 0xffffffff
jne 0x10016467d
lea rcx, [0x10029b4c0]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call fcn.100165460
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.10005f420
add rsp, 0x250
pop rbx
ret
Function at 0x100164b00
Capabilities:
Get thread local storage value

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.100058b00
test eax, eax
jne 0x100164bb8
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rsi
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rsi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x100164b4b
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x100164b5c
mov rax, qword [rbx + 0xd8]
test rax, rax
jne 0x100164b93
call fcn.100063d30
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rsi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x100164b8c
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rax, qword [rbx + 0xd8]
mov eax, dword [rax + 0x2d8]
mov dword [rdi + 4], 1
shr eax, 0xb
and eax, 1
mov dword [rdi + 8], eax
call fcn.1000589b0
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x100164bd0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 4], 0
mov rbx, rcx
je 0x100164c95
cmp dword [rcx + 8], 0
je 0x100164c8a
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rdi
call fcn.100068a00
mov rdi, qword gs:[0x30]
mov rcx, rax
mov rsi, rax
add rdi, rax
call fcn.10006c530
test eax, eax
jne 0x100164c22
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rdi, rdi
je 0x100164c33
mov rax, qword [rdi + 0xd8]
test rax, rax
jne 0x100164c6a
call fcn.100063d30
call fcn.100068a00
mov rdi, qword gs:[0x30]
mov rcx, rax
mov rsi, rax
add rdi, rax
call fcn.10006c530
test eax, eax
jne 0x100164c63
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov rax, qword [rdi + 0xd8]
or dword [rax + 0x2d8], 0x800
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
xor eax, eax
mov qword [rbx + 4], rax
add rsp, 0x20
pop rbx
ret
call fcn.100058a50
xor eax, eax
mov qword [rbx + 4], rax
add rsp, 0x20
pop rbx
ret