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

Disassembly:
push rsi
push rdi
sub rsp, 0x98
mov rax, qword [0x1401bc010]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x2c], 0
mov rsi, qword [0x1401d5448]
test rsi, rsi
jne 0x140079b1c
lea rsi, [0x1401d5450]
xor ecx, ecx
mov edx, 0x5c
mov r8, rsi
mov r9d, 0x55
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jle 0x140079b10
xorps xmm0, xmm0
lea rax, [rsp + 0x30]
movaps xmmword [rax + 0x40], xmm0
movaps xmmword [rax + 0x30], xmm0
movaps xmmword [rax + 0x20], xmm0
movaps xmmword [rax + 0x10], xmm0
movaps xmmword [rax], xmm0
mov qword [rax + 0x4d], 0
xor ecx, ecx
movzx edx, word [rcx + rsi]
cmp dx, 0x5f
je 0x140079b39
mov byte [rax], dl
test dl, dl
je 0x140079ab9
inc rax
add rcx, 2
cmp rcx, 0xaa
jne 0x140079a8d
mov byte [rsp + 0x84], 0
mov ecx, 0x41
call fcn.1400b7a50
test rax, rax
je 0x140079b10
mov rsi, rax
lea rcx, [rsp + 0x30]
lea rdi, [rsp + 0x2c]
mov rdx, rax
mov r8d, 0x40
mov r9, rdi
call fcn.140081ae0
cmp dword [rdi], 0
jg 0x140079b41
cdqe
mov byte [rsi + rax], 0
mov qword [0x1401d5448], rsi
mov byte [0x1401d54fa], 1
lea rdx, [0x140079760]
mov ecx, 0x18
call fcn.14006acd0
mov rsi, qword [0x1401d5448]
test rsi, rsi
je 0x140079b4b
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400c0d00
mov rax, rsi
add rsp, 0x98
pop rdi
pop rsi
ret
mov byte [rax], 0x2d
jmp 0x140079aa1
mov rcx, rsi
call fcn.1400b7a90
jmp 0x140079b10
lea rsi, str.en_US
mov qword [0x1401d5448], rsi
jmp 0x140079b1c

Function at 0x14007c950
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 [0x1401cbb98]
cmp ecx, 0xffffffff
je 0x14007c972
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14007c977
call fcn.14007ca90
mov eax, dword [0x1401d6d50]
mov ecx, dword [0x1401cbd4c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14007ca27
mov rbx, qword [0x1401d6d48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14007ca6d
mov rax, qword [0x1401d5538]
inc rax
xor ecx, ecx
lea rdx, [0x1401d5540]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x14007ca7a
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov ecx, dword [0x1401d6d40]
inc ecx
mov dword [0x1401d6d40], ecx
mov dword [rax + 0x14], ecx
mov qword [0x1401d5538], 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 0x14007ca8c
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1401d6d50]
call fcn.1400bfb10
cmp dword [0x1401d6d50], 0xffffffff
jne 0x14007c99c
mov ecx, 8
call fcn.1400bf928
mov rbx, rax
mov rcx, rax
call fcn.140097fe0
mov qword [0x1401d6d48], rbx
lea rcx, [0x1401d6d50]
call fcn.1400bfba8
jmp 0x14007c99c
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x14007c9b4
inc rcx
cmp rcx, 0x100
jne 0x14007c9c7
jmp 0x14007ca0d
int3
Function at 0x14007ca90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.1400c0c90
sub rsp, rax
mov rax, qword [0x1401bc010]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x1401cbb98]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
jne 0x14007cb2c
lea rcx, [rsp + 0x2c]
call fcn.14008d210
test al, al
je 0x14007cba7
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
jne 0x14007cb0e
lea rcx, [rsp + 0x2c]
call fcn.14008d210
test al, al
je 0x14007cbaa
cmp dword [rsp + 0x2c], 0xffffffff
je 0x14007cbaa
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
mov eax, 0xffffffff
lock cmpxchg dword [0x1401cbb98], ecx
je 0x14007cb2c
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x1401cbb98]
mov dword [rsp + 0x2c], ecx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14007cba4
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.1400c2be0
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.1400bf99c
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.1400c2780
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.1400c0d00
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
int3
int3
int3

Function at 0x14007cbb0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x1401cbb98]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14007cbee
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
test rdi, rdi
je 0x14007cbe7
call fcn.14007ca90
jmp 0x14007cbce
Function at 0x14007d8c0
Capabilities:
Reference processor manufacturer constants

Disassembly:
push rsi
push rdi
mov r8, rcx
xor edi, edi
xor ecx, ecx
xor eax, eax
xchg rbx, r9
cpuid
xchg rbx, r9
test eax, eax
jle 0x14007d9e2
mov r10d, eax
xor ecx, ecx
mov eax, 1
xchg rbx, r9
cpuid
xchg rbx, r9
mov r9d, ecx
mov r11d, edx
mov esi, eax
cmp r10d, 7
jb 0x14007da18
mov eax, 7
xor ecx, ecx
xchg rbx, rdi
cpuid
xchg rbx, rdi
mov r10d, ecx
and edi, 0x20
shr r10b, 4
and r10b, 1
mov dword [r8], esi
mov eax, esi
and eax, 0xf
mov dword [r8 + 8], eax
shr esi, 0xc
and esi, 3
mov dword [r8 + 4], esi
mov eax, r11d
shr eax, 0x17
and al, 1
mov byte [r8 + 0xc], al
mov eax, r11d
shr eax, 0x19
and al, 1
mov byte [r8 + 0xd], al
shr r11d, 0x1a
and r11b, 1
mov byte [r8 + 0xe], r11b
mov eax, r9d
and al, 1
mov byte [r8 + 0xf], al
mov eax, r9d
shr eax, 9
and al, 1
mov byte [r8 + 0x10], al
mov eax, r9d
shr eax, 0x13
and al, 1
mov byte [r8 + 0x11], al
mov eax, r9d
shr eax, 0x14
and al, 1
mov byte [r8 + 0x12], al
mov eax, r9d
shr eax, 0x17
and al, 1
mov byte [r8 + 0x13], al
mov eax, r9d
shr eax, 0x1f
mov byte [r8 + 0x1a], al
mov eax, r9d
not eax
test eax, 0x1c000000
jne 0x14007da20
xor ecx, ecx
xgetbv
not eax
test al, 6
sete al
mov byte [r8 + 0x14], al
mov ecx, r9d
shr ecx, 0x19
and cl, 1
mov byte [r8 + 0x17], cl
shr r9d, 0xc
and r9b, 1
mov byte [r8 + 0x15], r9b
test al, al
setne al
test edi, edi
setne cl
and cl, al
mov byte [r8 + 0x16], cl
mov byte [r8 + 0x18], r10b
xor ecx, ecx
mov eax, 0x80000000
xchg rbx, r9
cpuid
xchg rbx, r9
cmp eax, 0x80000006
jle 0x14007da24
mov eax, 0x80000007
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
shr edx, 8
and dl, 1
mov byte [r8 + 0x19], dl
test dl, dl
je 0x14007da2a
pop rdi
pop rsi
ret
xor r10d, r10d
jmp 0x14007d91c
xor eax, eax
jmp 0x14007d9b1
mov dl, byte [r8 + 0x19]
jmp 0x14007da11
cmp byte [r8 + 0x1a], 0
je 0x14007da15
mov eax, 0x40000000
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
cmp r9d, 0x7263694d
jne 0x14007da15
cmp ecx, 0x666f736f
jne 0x14007da15
cmp edx, 0x76482074
jne 0x14007da15
mov byte [r8 + 0x19], 1
jmp 0x14007da15

Function at 0x14007db90
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1401bc010]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
add rsi, rdi
xor r15d, r15d
lea r14, [rsp + 0x2c]
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
cmp rdi, rsi
jae 0x14007dc18
mov dword [rsp + 0x2c], 0
mov r8d, esi
sub r8d, edi
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov rdx, rdi
mov r9, r14
call r12
test eax, eax
sete dl
mov ecx, dword [rsp + 0x2c]
test rcx, rcx
sete al
or al, dl
mov edx, 0
jne 0x14007dc11
mov rdx, rcx
add rdi, rdx
cmp al, 1
jne 0x14007dbd2
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400c0d00
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x14008d210
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14008d225
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret

Function at 0x14008d270
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x14008d2ac
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14008d2b6
add rdi, rbx
sub rsi, rbx
jne 0x14008d28a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
int3

Function at 0x14008d460
Capabilities:
Inspect section memory permissions

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov rax, qword [rsp + 0x50]
mov qword [rcx + 8], r8
mov ecx, dword [r8]
mov dword [rsi + 0x20], ecx
lea r10, [0x1401ae0c0]
mov qword [rsi + 0x10], r10
test r9d, r9d
js 0x14008d4b4
mov r10d, r9d
shr r10d, 2
mov r11d, 6
cmp byte [rdx], 1
jne 0x14008d4ab
xor r11d, r11d
cmp byte [rdx + 1], 0
setne r11b
lea r11d, [r11 + r11*4]
inc r11d
cmp r10d, r11d
jb 0x14008d5c1
mov r10d, ecx
and r10d, 0xf0000000
cmp r10d, 0x20000000
je 0x14008d4d9
and ecx, 0xe0000000
cmp ecx, 0x40000000
jne 0x14008d5c1
mov r10b, byte [rdx]
cmp r10b, 1
jne 0x14008d4ec
cmp byte [rdx + 1], 0
je 0x14008d5a1
movzx ecx, byte [r8 + 4]
cmp ecx, 4
jbe 0x14008d5c1
test r9d, r9d
js 0x14008d521
lea r11d, [rcx*4 + 4]
cmp r11d, r9d
ja 0x14008d5c1
mov r11d, dword [r8 + 0x10]
shl r11d, 2
cmp r11d, r9d
jg 0x14008d5c1
mov r9d, dword [r8 + 8]
lea r11d, [rcx + 1]
cmp r9d, r11d
jle 0x14008d539
shl r9d, 2
mov dword [rsi + 0x24], r9d
mov r10b, byte [rdx]
cmp r10b, 3
jb 0x14008d549
mov edx, dword [r8 + 4]
shr edx, 8
mov dword [rsi + 0x30], edx
cmp ecx, 6
jb 0x14008d5ae
mov r9d, dword [r8 + 0x18]
mov edx, r9d
and dl, 1
mov byte [rsi + 0x38], dl
mov r10d, r9d
shr r10b, 1
mov edx, r9d
shr dl, 2
and dl, 1
mov r11d, r9d
shl r11d, 0xc
and r11d, 0xf000000
or dword [rsi + 0x30], r11d
shr r9d, 0x10
and r10b, 1
mov byte [rsi + 0x39], r10b
mov byte [rsi + 0x3a], dl
mov dword [rsi + 0x34], r9d
jne 0x14008d5bc
test dl, dl
je 0x14008d59a
cmp ecx, 8
jb 0x14008d5c1
cmp ecx, 7
jb 0x14008d5a8
jmp 0x14008d5e1
mov dword [rsi + 0x24], 0x10000
mov byte [rsi + 0x3b], 1
jmp 0x14008d5db
cmp byte [rsi + 0x39], 0
jne 0x14008d5c1
cmp byte [rsi + 0x3a], 0
jne 0x14008d5c1
jmp 0x14008d5a8
cmp ecx, 7
ja 0x14008d5e1
mov dword [rax], 3
mov rcx, qword [rsi]
test rcx, rcx
je 0x14008d5db
call fcn.14006ac40
mov qword [rsi], 0
add rsp, 0x20
pop rsi
ret
movsxd rax, dword [r8 + 8]
cmp dword [r8 + 0x1c], eax
jle 0x14008d5a8
lea rax, [r8 + rax*4]
mov qword [rsi + 0x10], rax
jmp 0x14008d5a8
Function at 0x140092ee0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x140092f28
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x140092f31
lea rax, [rsi + 1]
cmp rax, 2
jb case.default.0x140092f21
mov qword [rdi], rsi
call fcn.1400a0a00
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400a0a00
mov rcx, qword [rdi]
call fcn.140097c30
mov qword [rdi], 0
jmp 0x140092f06
push rbx
invalid
push rbx
cmpsb byte [rsi], byte [rdi]
invalid
invalid

Function at 0x140097ac0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x1401bc010]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1401cf0f8]
mov ecx, dword [0x1401cbd4c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140097b20
mov rsi, qword [0x1401cf0f0]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400c0d00
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1401cf0f8]
call fcn.1400bfb10
cmp dword [0x1401cf0f8], 0xffffffff
jne 0x140097afc
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1400c2be0
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.1400bf928
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1401cf140]
mov ecx, dword [0x1401cbd4c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140097be0
lea r8, [0x1401cf110]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.14004b570
mov qword [0x1401cf0f0], rsi
lea rcx, [0x1401cf0f8]
call fcn.1400bfba8
jmp 0x140097afc
lea rcx, [0x1401cf140]
call fcn.1400bfb10
cmp dword [0x1401cf140], 0xffffffff
jne 0x140097bb1
xorps xmm0, xmm0
movups xmmword [0x1401cf130], xmm0
movups xmmword [0x1401cf120], xmm0
movups xmmword [0x1401cf110], xmm0
lea rcx, [0x1401cf110]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1401cf140]
call fcn.1400bfba8
jmp 0x140097bb1
Function at 0x140097c80
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x50
movapd xmmword [rsp + 0x40], xmm6
mov rsi, rcx
mov rax, qword [0x1401bc010]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
call fcn.140097fc0
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x1401cf150]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x140097cde
jnp 0x140097d44
ucomisd xmm0, xmm6
jne 0x140097cea
jnp 0x140097e59
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x140161780]
subpd xmm1, xmmword [0x140161790]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x140165b60]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400c0d00
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov edi, eax
call rbx
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x1401cf160]
mov ecx, dword [0x1401cbd4c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140097e60
mov eax, dword [0x1401cf170]
mov ecx, dword [0x1401cbd4c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140097e9a
rdtsc
mov rbx, rax
mov r14, rdx
xor r12d, r12d
lea r15, [rsp + 0x30]
mov qword [r15], r12
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r13, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [r15], r12
lea rdi, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub r13, qword [0x1401cf168]
cvtsi2sd xmm1, r13
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x140165b58]
ucomisd xmm2, xmm1
ja 0x140097cde
shl r14, 0x20
or rbx, r14
sub rbx, qword [0x1401cf158]
movq xmm0, rbx
punpckldq xmm0, xmmword [0x140161780]
subpd xmm0, xmmword [0x140161790]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x1401cf150], xmm0
jmp 0x140097cde
xor eax, eax
jmp 0x140097d1c
lea rcx, [0x1401cf160]
call fcn.1400bfb10
cmp dword [0x1401cf160], 0xffffffff
jne 0x140097d8d
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x1401cf158], rdx
lea rcx, [0x1401cf160]
call fcn.1400bfba8
jmp 0x140097d8d
lea rcx, [0x1401cf170]
call fcn.1400bfb10
cmp dword [0x1401cf170], 0xffffffff
jne 0x140097db2
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x1401cf168], rax
lea rcx, [0x1401cf170]
call fcn.1400bfba8
jmp 0x140097db2
Function at 0x1400acbe0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
test r8, r8
je 0x1400acc0b
xor ecx, ecx
lea r9, [0x14019c990]
movzx r10d, al
movzx r11d, byte [rdx + rcx]
xor r11d, r10d
shr eax, 8
xor eax, dword [r9 + r11*4]
inc rcx
cmp r8, rcx
jne 0x1400acbf0
ret
Function at 0x1400b1660
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
xor eax, eax
test r8d, r8d
sete al
xor r8d, r8d
test edx, edx
sete r8b
xor ecx, ecx
mov edx, r8d
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], 0
test rax, rax
je 0x1400b16fa
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400b16e4
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400b16c1
mov qword [rsi], rdi
call fcn.1400a0a00
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov byte [rsi + 8], 0
inc rax
cmp rax, 1
jbe 0x1400b16fe
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400a0a00
mov rcx, qword [rsi]
call fcn.140097c30
mov qword [rsi], 0
jmp 0x1400b16af
mov byte [rsi + 8], 0
int3

Function at 0x1400b1d90
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, ecx
mov rax, qword [0x1401bc010]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x14006da00]
mov qword [rsp + 0x20], rax
lea rcx, [0x1401d5338]
lea rdx, [0x14006d860]
lea r8, [rsp + 0x20]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1400b1e24
cmp dword [0x1401d5340], 0
jne 0x1400b1e20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x1401d5344]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x1400b1e20
movsxd rax, esi
mov rsi, qword [rdi + rax*8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400c0d00
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x1400b1e08
call fcn.1400d44a0
int3

Function at 0x1400b9eb0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x1401cbb98]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400b9ee4
mov rcx, qword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 8]
jne 0x1400b9ee4
mov rax, qword [rax + rcx]
add rsp, 0x20
pop rsi
ret
xor eax, eax
jmp 0x1400b9ede
Function at 0x1400cedc8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400cedff
call fcn.1400d2000
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1400d2c2c
xor eax, eax
jmp 0x1400cee8d
mov rdx, r9
mov rcx, r8
call fcn.1400ceeb0
mov rbx, rax
test rax, rax
je 0x1400cee8a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400cef20]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400cee77
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400d2040
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400cee5e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400cee6d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140098200
jmp 0x1400cee8a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400cee87
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1400ceff4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400cf13c
Function at 0x1400d415c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1401cced0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400d41b3
cmp word [rdx], r13w
jne 0x1400d41b3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400d41b8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400d42dd
mov r11d, recvfrom
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400d42fe
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400d41f1
mov rdx, r9
mov word [rbx], cx
jmp 0x1400d4218
cmp r9, r8
jae 0x1400d4228
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400d41d2
jmp 0x1400d42dd
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400d42d2
cmp dword [rsp + 0x80], esi
je 0x1400d42d2
lea r8, [0x1401cced0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400d42aa
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400d427a
mov word [rbx], r13w
jmp 0x1400d42da
mov ecx, recvfrom
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400d4287
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400d42da
cmp word [rsp + 0x70], r13w
jne 0x1400d42b7
cmp rbx, r14
je 0x1400d4274
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400d3498
cmp word [rsp + 0x70], r13w
je 0x1400d42dd
mov ecx, recvfrom
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1401cced0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400d42d7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400d42dd
Function at 0x1400eb018
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400e4ec4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400eb0b9
cmp ebx, dword [rsp + 0x30]
je 0x1400eb0b2
test esi, esi
je 0x1400eb0b2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400eb08d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400eb09a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400eb077
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400eb09e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400eb0bb
mov eax, 1
jmp 0x1400eb0bb
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret