joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400bb5d0
Capabilities:
Hash data using sha1

Disassembly:
xor eax, eax
mov dword [rcx + 8], 0x67452301
mov dword [rcx + 0x1c], eax
mov qword [rcx], rax
mov dword [rcx + 0xc], 0xefcdab89
mov dword [rcx + 0x10], 0x98badcfe
mov dword [rcx + 0x14], 0x10325476
mov dword [rcx + 0x18], 0xc3d2e1f0
ret

Function at 0x1400bceb0
Capabilities:
Get session user name

Disassembly:
push rbp
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x10], rbx
lea rax, [rdx + rdx]
mov qword [rbp + 0x20], rsi
lea r8, [rax + 0xf]
mov qword [rbp + 0x28], rdi
mov rbx, rdx
mov rsi, rcx
cmp r8, rax
ja 0x1400bcee4
movabs r8, 0xffffffffffffff0
and r8, 0xfffffffffffffff0
mov rax, r8
call fcn.1400bd490
sub rsp, r8
mov dword [rbp + 0x18], ebx
lea rdx, [rbp + 0x18]
lea rdi, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x1400bcf23
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rbp + 0x10]
mov rsi, qword [rbp + 0x20]
mov rdi, qword [rbp + 0x28]
mov rsp, rbp
pop rbp
ret
test rbx, rbx
je 0x1400bcf6c
xor eax, eax
mov r8, rdi
mov qword [rsp + 0x38], rax
xor edx, edx
mov qword [rsp + 0x30], rax
mov ecx, 0xfde9
mov dword [rsp + 0x28], ebx
lea r9d, [rax - 1]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x1400bcf6c
mov eax, dword [0x1400ed134]
mov rbx, qword [rbp + 0x10]
mov rsi, qword [rbp + 0x20]
mov rdi, qword [rbp + 0x28]
mov rsp, rbp
pop rbp
ret
mov ecx, 1
call fcn.1400bb690
mov rbx, qword [rbp + 0x10]
mov rsi, qword [rbp + 0x20]
mov rdi, qword [rbp + 0x28]
mov rsp, rbp
pop rbp
ret

Function at 0x1400bdb1c
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400d5e70
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400c2800
or eax, 0xffffffff
jmp 0x1400d5e72
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400d93e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub rsp, 0x38
lea rcx, [0x1401d40e8]
call fcn.14002c580
mov rax, qword [0x1401d40e0]
test rax, rax
jne 0x1400d9488
mov qword [rsp + 0x30], rbx
lea rcx, [0x1400f8f71]
mov r9d, 0x811c9dc5
mov eax, 0x44
nop word [rax + rax]
xor eax, r9d
lea rcx, [rcx + 1]
imul r9d, eax, 0x1000193
movzx eax, byte [rcx - 1]
test eax, eax
jne 0x1400d9420
xor ebx, ebx
lea r8, str.D:BuildServerDwork_gitwowEngineSourceObjectAllocObjectAlloc.cpp
mov dword [rsp + 0x28], ebx
lea edx, [rax + 0x1a]
lea ecx, [rax + 0x28]
mov dword [rsp + 0x20], 0x23f
call fcn.140025e30
lea rcx, [0x1400d9490]
mov qword [0x1401d40e0], rax
mov dword [rax], ebx
mov qword [rax + 8], rbx
mov dword [rax + 0x10], ebx
mov dword [rax + 0x18], ebx
mov byte [rax + 0x20], 1
mov dword [rax + 0x24], ebx
call fcn.1400bd1c8
mov rax, qword [0x1401d40e0]
mov rbx, qword [rsp + 0x30]
add rsp, 0x38
ret

Function at 0x1400d9b70
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
lea rcx, [0x1401d4118]
call fcn.14002c580
mov rbx, qword [0x1401d4148]
mov edi, 0x811c9dc5
test rbx, rbx
jne 0x1400d9bfd
mov r9d, edi
lea rdx, [0x1400f9071]
mov eax, 0x44
nop
xor eax, r9d
lea rdx, [rdx + 1]
imul r9d, eax, 0x1000193
movzx eax, byte [rdx - 1]
test eax, eax
jne 0x1400d9bb0
mov dword [rsp + 0x28], eax
lea r8, str.D:BuildServerDwork_gitwowEngineSourceObjectAllocObjectAllocBase.cpp
lea edx, [rax + 0x1a]
mov dword [rsp + 0x20], reloc.WS2_32.dll_setsockopt
lea ecx, [rax + 0x18]
call fcn.140025e30
mov rbx, rax
mov qword [0x1401d4148], rax
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], 0
movzx edx, byte [str.._AU__list_node_PEAVTObjectAllocBase___blz__]
lea r8, [0x1401288e1]
test edx, edx
je 0x1400d9c25
nop
xor edx, edi
lea r8, [r8 + 1]
imul edi, edx, 0x1000193
movzx edx, byte [r8 - 1]
test edx, edx
jne 0x1400d9c10
mov edx, ntohs
mov dword [rsp + 0x28], 0
mov r9d, edi
mov dword [rsp + 0x20], 0xfffffffa
lea r8, str.._AU__list_node_PEAVTObjectAllocBase___blz__
lea ecx, [rdx + 0xd]
call fcn.140025e30
test rax, rax
je 0x1400d9c55
mov qword [rax + 0x10], rsi
mov r8, qword [rbx + 8]
lea rcx, [0x1401d4118]
mov rdx, qword [r8]
mov qword [rax], rdx
mov qword [rax + 8], r8
mov qword [r8], rax
mov rdx, qword [rax]
mov qword [rdx + 8], rax
inc qword [rbx + 0x10]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp fcn.14002c620
Function at 0x1400d9fe0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub rsp, 0x28
cmp dword [0x1401d4180], 0
jne 0x1400d9f88
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1400d9f7e
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x1400d9f7e
lea rcx, [rsp + 0x38]
mov qword [0x1401d4188], rax
mov dword [0x1401d4184], 1
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
movabs rax, 0x346dc5d63886594b
imul qword [rsp + 0x38]
movabs rax, 0xfffff568cf499800
sar rdx, 0xb
add rax, rdx
mov rcx, rdx
shr rcx, 0x3f
add rcx, rax
mov rax, qword [rsp + 0x40]
mov qword [0x1401d4198], rax
mov qword [0x1401d4190], rcx
mov dword [0x1401d4180], 1
cmp dword [0x1401d4184], 0
jne 0x1400d9fa1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x186a0
add rsp, 0x28
ret
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x48]
sub rax, qword [0x1401d4198]
imul rax, rax, 0x3e8
cqo
idiv qword [0x1401d4188]
add eax, dword [0x1401d4190]
add rsp, 0x28
ret
jmp 0x1400da2a0
movzx eax, byte [0x1401d43fc]
test al, al
je 0x1400da2b7
mov rax, qword [0x1401d4400]
nop
mov eax, dword [rax]
nop
ret
jmp 0x1400d9ef0

Function at 0x1400da140
Capabilities:
Enumerate processes

Disassembly:
push rsi
push r14
push r15
sub rsp, 0x7a0
mov r14, rdx
mov r15, rcx
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400da175
xor al, al
add rsp, 0x7a0
pop r15
pop r14
pop rsi
ret
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x7c8], rbp
mov rcx, rsi
mov dword [rsp + 0x30], 0x238
call sub.KERNEL32.dll_Process32FirstW
mov ebp, eax
test eax, eax
je 0x1400da27c
mov qword [rsp + 0x798], rdi
mov qword [rsp + 0x790], r12
xor r12d, r12d
mov qword [rsp + 0x7c0], rbx
nop word [rax + rax]
mov r8d, dword [rsp + 0x38]
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x1400da24f
lea r9, [rsp + 0x7d0]
mov dword [rsp + 0x7d0], 0x104
lea r8, [rsp + 0x270]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1400da24f
mov qword [rsp + 0x28], r12
lea r8, [rsp + 0x270]
mov r9d, 0x7fffffff
mov qword [rsp + 0x20], r12
mov edx, 0x30c
lea rcx, [rsp + 0x480]
call fcn.14002b790
mov edx, dword [rsp + 0x38]
lea rcx, [rsp + 0x480]
mov r8, r14
call r15
test al, al
je 0x1400da264
lea rdx, [rsp + 0x30]
mov rcx, rsi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1400da1c0
mov rbx, qword [rsp + 0x7c0]
mov rdi, qword [rsp + 0x798]
mov r12, qword [rsp + 0x790]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
mov rbp, qword [rsp + 0x7c8]
setne al
add rsp, 0x7a0
pop r15
pop r14
pop rsi
ret
Function at 0x1400033d0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x14003d038]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, rcx
mov r12, rdx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
movsxd r8, dword [rax + 0x3c]
add r8, rax
movzx eax, word [r8 + 0x14]
lea rdi, [r8 + 0x18]
movzx ebp, word [r8 + 6]
add rdi, rax
test rbp, rbp
je 0x1400034a2
xor ebx, ebx
nop word [rax + rax]
movups xmm2, xmmword [rdi]
mov r14, qword [rdi + 8]
lea rdx, [rsp + 0x20]
movups xmm0, xmmword [rdi + 0x10]
lea rcx, [0x14003e420]
mov r15d, dword [rdi + 8]
movsd xmm1, qword [rdi + 0x20]
movups xmmword [rsp + 0x20], xmm2
shr r14, 0x20
movups xmmword [rsp + 0x30], xmm0
movsd qword [rsp + 0x40], xmm1
call fcn.140001230
lea rdx, [0x14002c680]
mov rcx, rax
call fcn.140001230
mov edx, r14d
mov rcx, rax
call fcn.140002b90
mov rcx, rax
call fcn.140001b30
mov rax, qword [rsp + 0x20]
cmp rax, qword [r12]
je 0x1400034dd
inc rbx
add rdi, 0x28
cmp rbx, rbp
jl 0x140003430
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], rax
mov rax, rsi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400090b0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
lea rax, [rsp + 0x20]
mov qword [rsi + 8], r14
mov qword [rsi], rax
mov qword [rsi + 0x10], r15
jmp 0x1400034ae
Function at 0x140008710
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14000873e
xor eax, eax
jmp 0x140008824
cmp qword [rcx + 0x68], 0
je 0x14000874f
call fcn.140008840
jmp 0x140008824
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140008766
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140008768
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000879a
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14000ae00
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x14000881e
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x1400087d1
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x1400087fa
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140013a78
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14000881e
cmp rsi, rbx
ja 0x1400087d8
test rsi, rsi
je 0x14000881e
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140013a78
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140009cd0
Capabilities:
Parse pe header

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

Function at 0x140016000
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140015dfc
Function at 0x14001f1ac
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1400095d0
sub rsp, rax
mov rax, qword [0x14003d038]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001bb88
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001f1fb
mov rax, rbp
jmp 0x14001f303
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x3f410]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400202cc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3f410]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001f2ff
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001f2ff
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400202cc
test rax, rax
js 0x14001f2ff
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001f2ff
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001f2f1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001f2f1
cmp byte [rcx], 0xd
jne 0x14001f2d7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001f2e6
cmp byte [rcx + 1], 0xa
jne 0x14001f2e6
inc rcx
jmp 0x14001f2e6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3d440]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001f2b9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001f303
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400090b0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14001f524
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001f53a
mov al, 1
jmp 0x14001f59a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001f54b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001f598
mov ecx, dword [rcx + 0x18]
nop
call fcn.140022aec
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001f598
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001f598
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001f598
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001f59a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001f66c
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, [0x14003f410]
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 0x14001f6c3
cmp word [rdx], r13w
jne 0x14001f6c3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001f6c8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001f7ed
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001f80e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001f701
mov rdx, r9
mov word [rbx], cx
jmp 0x14001f728
cmp r9, r8
jae 0x14001f738
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 0x14001f6e2
jmp 0x14001f7ed
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 0x14001f7e2
cmp dword [rsp + 0x80], esi
je 0x14001f7e2
lea r8, [0x14003f410]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001f7ba
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001f78a
mov word [rbx], r13w
jmp 0x14001f7ea
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 0x14001f797
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001f7ea
cmp word [rsp + 0x70], r13w
jne 0x14001f7c7
cmp rbx, r14
je 0x14001f784
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400202d4
cmp word [rsp + 0x70], r13w
je 0x14001f7ed
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, [0x14003f410]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001f7e7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001f7ed
Function at 0x140022284
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 0x1400222b4
xor eax, eax
jmp 0x140022377
mov rbp, rbx
cmp word [rax], si
je 0x1400222d9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400222c0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400222bc
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.140020884
movsxd r14, eax
test eax, eax
jne 0x140022317
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400222ad
mov rcx, r14
call fcn.14001a92c
mov rdi, rax
test rax, rax
jne 0x140022330
xor ecx, ecx
call fcn.140019b08
jmp 0x14002230c
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.140020884
test eax, eax
jne 0x140022361
mov rcx, rdi
call fcn.140019b08
jmp 0x14002236b
xor ecx, ecx
call fcn.140019b08
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 0x140025040
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.140018c44
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 0x1400250e1
cmp ebx, dword [rsp + 0x30]
je 0x1400250da
test esi, esi
je 0x1400250da
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400250b5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400250c2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14002509f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400250c6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400250e3
mov eax, 1
jmp 0x1400250e3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400287dc
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14001466c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140028866
cmp byte [rbp - 0x21], r15b
je 0x140028861
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14002889c
call fcn.14001c258
test eax, eax
jne 0x140028888
cmp byte [rbp - 0x21], r15b
je 0x140028880
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14002889c
cmp byte [rbp - 0x21], r15b
je 0x140028899
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140014ca4
test eax, eax
jne 0x14002893c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14001466c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400288db
cmp byte [rbp - 0x21], r15b
je 0x140028910
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140028910
call fcn.14001c258
test eax, eax
jne 0x1400288fc
cmp byte [rbp - 0x21], r15b
je 0x1400288f5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140028910
cmp byte [rbp - 0x21], r15b
je 0x14002890d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140014ca4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14002893c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14002893f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14002894d
mov rcx, rdi
call fcn.140019b08
cmp byte [rbp + 0x3f], r15b
je 0x14002895c
mov rcx, qword [rbp + 0x27]
call fcn.140019b08
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140001380
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x38
cmp byte [0x140007a0b], 0
movsd xmm0, qword [str.SOoDP_n_._D]
mov eax, dword [0x140007a08]
movsd qword [rsp + 0x20], xmm0
mov dword [rsp + 0x28], eax
je 0x1400014ed
xor ecx, ecx
cmp dword [0x14000b088], 2
jl 0x1400014b3
movdqa xmm2, xmmword [0x140008150]
mov ecx, 8
movdqa xmm4, xmmword [0x1400081a0]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x140008160]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140008170]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [str.SOoDP_n_._D]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x140008180]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.9999999999999999]
xorps xmm2, xmm0
punpckldq xmm1, xmm3
movd dword [rsp + 0x20], xmm2
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140008170]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rsp + 0x24]
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140008180]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.9999999999999999]
xorps xmm2, xmm0
movd dword [rsp + 0x24], xmm2
movsxd rax, ecx
lea r8, [rsp + 0x20]
add r8, rax
nop
mov eax, 0x5397829d
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x31
movzx eax, cl
inc ecx
sub al, dl
add al, 0x39
xor byte [r8 - 1], al
cmp ecx, 0xc
jl 0x1400014c0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x14000b858], rax
add rsp, 0x38
ret