joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140062d90
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x200
movaps xmmword [rsp + 0x1f0], xmm6
mov rax, qword [0x1400d5038]
xor rax, rsp
mov qword [rsp + 0x1e8], rax
test rdx, rdx
je 0x140063072
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
movaps xmm6, xmmword [0x1400bea10]
movaps xmmword [rsp + 0x1d0], xmm6
movaps xmmword [rsp + 0x1c0], xmm6
test byte [0x1400e92f7], 0x40
je 0x140062e11
mov eax, 0x40000000
and eax, dword [0x1400e92f0]
je 0x140062e11
lea rcx, [rsp + 0x1c0]
mov edx, 0x20
call fcn.140019a50
test eax, eax
jne 0x140062e41
call fcn.1400721d0
test eax, eax
je 0x140062e2f
xorps xmm0, xmm0
movaps xmmword [rsp + 0x1d0], xmm0
movaps xmmword [rsp + 0x1c0], xmm0
jmp 0x140062e41
lea rcx, [rsp + 0x1c0]
mov edx, 0x20
call fcn.140072200
xor eax, eax
nop word cs:[rax + rax]
movzx ecx, byte [rbx + rax]
xor byte [rsp + rax + 0x1c0], cl
inc rax
cmp rax, 0x20
jne 0x140062e50
lea rbx, [rsp + 0x90]
mov r8d, 0x130
mov rcx, rbx
mov dl, 0xaa
call fcn.140084230
mov ecx, 1
call fcn.140071a70
test rax, rax
je 0x140062ebb
mov r14, rax
mov r13, rax
add r13, 0x128
cmp dword [rax + 0x128], 0xfff
ja 0x140062f6b
cmp qword [r14 + 0x120], 0
jne 0x140062f6b
jmp 0x140062fc6
mov ecx, 0x130
call fcn.140069b30
test rax, rax
je 0x140062ee5
mov r14, rax
lea r8, [0x1400638e0]
mov ecx, 1
mov rdx, rax
call fcn.140071b40
test eax, eax
jne 0x140062ee8
mov r14, rbx
mov dword [r14 + 0x12c], 0
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
lea r15, [rsp + 0x60]
mov edx, 0x30
mov rcx, r15
call fcn.140072200
lea r8, [rsp + 0x30]
mov rcx, r14
mov rdx, r15
xor r9d, r9d
call fcn.1400630b0
test eax, eax
je 0x14006309d
lea r13, [r14 + 0x128]
mov dword [r14 + 0x128], 0
mov qword [r14 + 0x120], 0
cmp qword [r14 + 0x120], 0
je 0x140062fc6
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
lea r15, [rsp + 0x60]
mov edx, 0x30
mov rcx, r15
call fcn.140072200
mov r8d, 0x30
mov rcx, r14
mov rdx, r15
call fcn.140063390
test eax, eax
je 0x14006309d
mov qword [r14 + 0x118], 1
mov dword [r13], 0
mov qword [r14 + 0x120], 0
cmp rsi, 0x10000
mov r15d, 0x10000
cmovb r15, rsi
mov qword [rsp + 0x20], 0x20
lea r9, [rsp + 0x1c0]
mov rcx, r14
mov rdx, rdi
mov r8, r15
call fcn.1400636d0
test eax, eax
je 0x14006309d
inc dword [r13]
sub rsi, r15
je 0x14006305b
add rdi, r15
lea r15, [rsp + 0x1c0]
nop word cs:[rax + rax]
cmp rsi, 0x10000
mov r12d, 0x10000
cmovb r12, rsi
mov qword [rsp + 0x20], 0
mov rcx, r14
mov rdx, rdi
mov r8, r12
mov r9, r15
call fcn.1400636d0
test eax, eax
je 0x14006309d
add rdi, r12
inc dword [r13]
sub rsi, r12
jne 0x140063020
cmp r14, rbx
jne 0x140063072
lea rcx, [rsp + 0x90]
mov edx, 0x120
call fcn.140069bd0
mov rcx, qword [rsp + 0x1e8]
xor rcx, rsp
call fcn.1400820f0
movaps xmm6, xmmword [rsp + 0x1f0]
add rsp, 0x200
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400952f0
int3
Function at 0x140069be0
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 0x140069bf5
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret

Function at 0x140069c50
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400ec7d8]
mov ecx, dword [0x1400e47b4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140069c85
lea rcx, [0x1400ec7c8]
add rsp, 0x28
jmp fcn.14004e640
lea rcx, [0x1400ec7d8]
call fcn.140080cc0
cmp dword [0x1400ec7d8], 0xffffffff
jne 0x140069c75
xorps xmm0, xmm0
movups xmmword [0x1400ec7c8], xmm0
lea rcx, [0x1400ec7c8]
xor edx, edx
call fcn.14004e6d0
lea rcx, [0x1400ec7d8]
call fcn.140080d58
jmp 0x140069c75
Function at 0x14006bf12
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
test r8, r8
je 0x14006c00f
mov rbx, rcx
mov rax, qword [rcx + 8]
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx + 0x84], 0
je 0x14006c00f
cmp word [rax + rcx + 0x14], 0x78
jb 0x14006c00f
mov rsi, r8
mov rdi, rdx
mov edx, dword [rax + rcx + 0x88]
mov rcx, rbx
call fcn.14006be60
test rax, rax
je 0x14006c00f
cmp rdi, 0xffff
jbe 0x14006c040
mov r14, rax
mov edx, dword [rax + 0x20]
mov rcx, rbx
call fcn.14006be60
mov ecx, dword [r14 + 0x18]
test rcx, rcx
je 0x14006c00f
lea r15, [rax + rcx*4]
lea r13, [rdi + 1]
mov qword [rsp + 0x20], rax
mov rbp, rax
mov r12, r15
sub r12, rbp
mov rax, r12
sar rax, 2
shr r12, 0x3f
add r12, rax
and r12, 0xfffffffffffffffe
mov edx, dword [rbp + r12*2]
mov rcx, rbx
call fcn.14006be60
mov cl, byte [rdi]
test cl, cl
je 0x14006bfe0
mov rdx, r13
cmp cl, byte [rax]
jne 0x14006bfe2
inc rax
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x14006bfd0
xor ecx, ecx
lea r12, [r12*2]
add r12, rbp
movzx eax, byte [rax]
cmp cl, al
je 0x14006c022
movzx ecx, cl
lea rdx, [r12 + 4]
cmp ecx, eax
cmovg rbp, rdx
cmovs r15, r12
xor eax, eax
cmp rbp, r15
jne 0x14006bfa2
jmp 0x14006c011
xor eax, eax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov edx, dword [r14 + 0x24]
mov rcx, rbx
call fcn.14006be60
sub r12, qword [rsp + 0x20]
sar r12, 1
movzx edi, word [rax + r12]
add di, word [r14 + 0x10]
mov word [rsi], di
mov al, 1
jmp 0x14006c011

Function at 0x14006db50
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x1400ee2f0], 0
jne 0x14006db8d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14006db80
mov dword [rdi], eax
mov dword [0x1400ee2f8], eax
mov qword [0x1400ee2f0], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3
Function at 0x140071a70
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, ecx
mov rax, qword [0x1400d5038]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x140071b10]
mov qword [rsp + 0x20], rax
lea rcx, [0x1400eefa0]
lea rdx, [0x1400718f0]
lea r8, [rsp + 0x20]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140071b04
cmp dword [0x1400eefa8], 0
je 0x140071ac1
xor esi, esi
jmp 0x140071aec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x1400eefac]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x140071abd
movsxd rax, esi
mov rsi, qword [rdi + rax*8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400820f0
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
call fcn.1400952f0
int3

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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r8
mov rsi, rdx
mov ebx, ecx
mov rax, qword [0x1400d5038]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x140071b10]
mov qword [rsp + 0x28], rax
lea rcx, [0x1400eefa0]
lea rdx, [0x1400718f0]
lea r8, [rsp + 0x28]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140071c57
cmp dword [0x1400eefa8], 0
je 0x140071bac
mov rcx, rsi
mov rax, rdi
call qword [0x1400f7008]
xor esi, esi
jmp 0x140071c00
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x1400eefac]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
je 0x140071c1c
lea r15, [0x1400eefb0]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x1400eefc0]
mov qword [rax + rbx*8], rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [r14 + rbx*8], rsi
mov esi, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400820f0
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, 1
mov edx, 0x28
call fcn.14004dc70
test rax, rax
je 0x140071b9c
mov r14, rax
mov ecx, dword [0x1400eefac]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x140071bd0
mov rcx, r14
call fcn.14004dbe0
jmp 0x140071b9c
call fcn.1400952f0
int3

Function at 0x140072200
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x140072242
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
nop word [rax + rax]
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14007224c
add rdi, rbx
sub rsi, rbx
jne 0x140072220
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400952f0
int3
Function at 0x140075520
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rbx, rdx
mov rsi, rcx
mov rax, qword [rcx + 8]
cmp rax, qword [rcx + 0x10]
je 0x14007555e
test rax, rax
je 0x14007562a
mov rcx, qword [rbx]
mov qword [rax], rcx
add rax, 8
mov qword [rsi + 8], rax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
sub rax, qword [rsi]
mov r15, rax
sar r15, 3
lea rcx, [r15 + 1]
mov rdx, rcx
shr rdx, 0x3d
jne 0x140075656
movabs rdx, 0x1fffffffffffffff
lea rdi, [rsi + 0x18]
mov r14, rax
shr r14, 2
cmp r14, rcx
cmovbe r14, rcx
movabs rcx, 0x7ffffffffffffff8
cmp rax, rcx
cmovae r14, rdx
test r14, r14
je 0x1400755b8
mov rcx, rdi
mov rdx, r14
call fcn.140076270
jmp 0x1400755ba
xor eax, eax
shl r15, 3
add r15, rax
je 0x14007562a
lea rax, [rax + r14*8]
mov rcx, qword [rbx]
mov qword [r15], rcx
lea rcx, [r15 + 8]
mov rdx, qword [rsi]
mov r8, qword [rsi + 8]
cmp r8, rdx
je 0x1400755f8
nop dword [rax]
mov r9, qword [r8 - 8]
add r8, 0xfffffffffffffff8
mov qword [r15 - 8], r9
add r15, 0xfffffffffffffff8
cmp r8, rdx
jne 0x1400755e0
mov rdx, qword [rsi]
mov qword [rsi], r15
mov qword [rsi + 8], rcx
mov r8, qword [rsi + 0x10]
mov qword [rsi + 0x10], rax
test rdx, rdx
je 0x140075552
sub r8, rdx
sar r8, 3
mov rcx, rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.140075cd0
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x25
call fcn.140020b04
call fcn.1400952f0
int3
Function at 0x14007f400
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 0x14007f527
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 0x14007f45a
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
jmp 0x14007f45d
xor r10d, r10d
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 0x14007f4f4
xor ecx, ecx
xgetbv
not eax
test al, 6
sete al
jmp 0x14007f4f6
xor eax, eax
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 0x14007f55c
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
jne 0x14007f599
jmp 0x14007f565
movzx edx, byte [r8 + 0x19]
test dl, dl
jne 0x14007f599
cmp byte [r8 + 0x1a], 0
je 0x14007f599
mov eax, 0x40000000
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
cmp r9d, 0x7263694d
jne 0x14007f599
cmp ecx, 0x666f736f
jne 0x14007f599
cmp edx, 0x76482074
jne 0x14007f599
mov byte [r8 + 0x19], 1
pop rdi
pop rsi
ret
Function at 0x14007fc70
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov esi, ecx
mov rax, qword [0x1400d5038]
xor rax, rsp
mov qword [rsp + 0x40], rax
test rdx, rdx
je 0x14007fd27
cmp dword [0x1400ef100], esi
jg 0x14007fd27
mov rdi, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
movsxd r15, eax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov r14, rax
mov qword [rsp + 0x30], r15
lea rbp, [rdi + r15]
lea r15, [rsp + 0x3c]
mov r13, qword [sym.imp.KERNEL32.dll_WriteFile]
mov r12, rdi
nop dword [rax]
cmp r12, rbp
jae 0x14007fd17
mov dword [rsp + 0x3c], 0
mov r8d, ebp
sub r8d, r12d
mov qword [rsp + 0x20], 0
mov rcx, r14
mov rdx, r12
mov r9, r15
call r13
test eax, eax
je 0x14007fd17
mov eax, dword [rsp + 0x3c]
add r12, rax
test eax, eax
jne 0x14007fce0
test ebx, ebx
je 0x14007fd27
mov rax, qword [rsp + 0x30]
cmp byte [rax + rdi - 1], 0xa
jne 0x14007fd4f
cmp esi, 3
je 0x14007fdc3
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400820f0
nop
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rdi, rax
lea r15, [0x1400c09cd]
lea r12, [0x1400c09ce]
lea rbx, [rsp + 0x3c]
mov r14, r15
nop word cs:[rax + rax]
cmp r14, r12
jae 0x14007fd27
mov dword [rsp + 0x3c], 0
mov r8d, r15d
sub r8d, r14d
inc r8d
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, r14
mov r9, rbx
call r13
test eax, eax
je 0x14007fd27
mov eax, dword [rsp + 0x3c]
add r14, rax
test eax, eax
jne 0x14007fd80
jmp 0x14007fd27
int3

Function at 0x140080af0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x140080b32
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
nop word [rax + rax]
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140080b3c
add rdi, rbx
sub rsi, rbx
jne 0x140080b10
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
int3

Function at 0x140081474
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400814be
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400814be
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400814be
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400814be
cmp dword [rcx + 0x84], 0xe
jbe 0x1400814be
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400814c0
xor al, al
add rsp, 0x28
ret
Function at 0x1400818fc
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x140081974
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140081974
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x140081974
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140081968
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x140081986
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140081956
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x140081976

Function at 0x1400903d8
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 0x14009040f
call fcn.1400932b4
mov dword [rax], 0x16
call fcn.140093edc
xor eax, eax
jmp 0x14009049d
mov rdx, r9
mov rcx, r8
call fcn.1400904c0
mov rbx, rax
test rax, rax
je 0x14009049a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140090530]
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 0x140090487
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400932f4
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14009046e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14009047d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14004dbe0
jmp 0x14009049a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140090497
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 0x140090604
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14009074c
Function at 0x140094fac
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, [0x1400e56c0]
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 0x140095003
cmp word [rdx], r13w
jne 0x140095003
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140095008
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14009512d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14009514e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140095041
mov rdx, r9
mov word [rbx], cx
jmp 0x140095068
cmp r9, r8
jae 0x140095078
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 0x140095022
jmp 0x14009512d
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 0x140095122
cmp dword [rsp + 0x80], esi
je 0x140095122
lea r8, [0x1400e56c0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400950fa
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400950ca
mov word [rbx], r13w
jmp 0x14009512a
mov ecx, 0xd
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 0x1400950d7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14009512a
cmp word [rsp + 0x70], r13w
jne 0x140095107
cmp rbx, r14
je 0x1400950c4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400a5688
cmp word [rsp + 0x70], r13w
je 0x14009512d
mov ecx, 0xd
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, [0x1400e56c0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140095127
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14009512d
Function at 0x14009e280
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14009e2a8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14009e2a8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1400a8278
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.1400a1e24
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 0x1400a8319
cmp ebx, dword [rsp + 0x30]
je 0x1400a8312
test esi, esi
je 0x1400a8312
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400a82ed
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400a82fa
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400a82d7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400a82fe
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400a831b
mov eax, 1
jmp 0x1400a831b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400a8f5c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400a8f8c
xor eax, eax
jmp 0x1400a904f
mov rbp, rbx
cmp word [rax], si
je 0x1400a8fb1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400a8f98
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400a8f94
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400a8e7c
movsxd r14, eax
test eax, eax
jne 0x1400a8fef
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400a8f85
mov rcx, r14
call fcn.14004db80
mov rdi, rax
test rax, rax
jne 0x1400a9008
xor ecx, ecx
call fcn.14004dbe0
jmp 0x1400a8fe4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400a8e7c
test eax, eax
jne 0x1400a9039
mov rcx, rdi
call fcn.14004dbe0
jmp 0x1400a9043
xor ecx, ecx
call fcn.14004dbe0
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400a906c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400a90f3
mov rsi, rbx
cmp word [rax], bp
je 0x1400a90b2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400a909c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400a9098
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14004db80
mov rdi, rax
test rax, rax
je 0x1400a90e0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140083b80
mov rbp, rdi
xor ecx, ecx
call fcn.14004dbe0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret