joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800289d0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
lea r14d, [rdx + 0x1f4]
mov rdi, r8
mov ebx, edx
mov rbp, rcx
cmp edx, r14d
jae 0x180028a9d
mov rsi, qword [rsp + 0x78]
xor r15d, r15d
mov eax, ebx
sub eax, 0x62
je 0x180028a81
sub eax, 0x1c
je 0x180028a78
sub eax, 0x64
je 0x180028a3a
sub eax, 0x64
je 0x180028a2e
cmp eax, 0x64
jne 0x180028a91
mov al, 1
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rax, rsi
xchg qword [0x180041200], rax
jmp 0x180028a91
mov qword [rsp + 0x28], r15
lea r8, [0x180028f00]
mov r9, rdi
mov dword [rsp + 0x20], r15d
xor edx, edx
mov qword [rdi + 0x80], rbp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
jne 0x180028a91
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov qword [0x1800411f8], rdi
jmp 0x180028a91
mov r8, rdi
mov rdx, rbp
mov ecx, 0x46
call fcn.18002fae0
add ebx, 0x64
cmp ebx, r14d
jb 0x180028a00
movzx eax, byte [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180032160
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
lea esi, [rdx - 5]
mov rdi, r8
mov ebx, edx
mov rbp, rcx
cmp edx, esi
jbe 0x180032264
xor r14d, r14d
nop dword [rax + rax]
mov eax, ebx
sub eax, 0xb0
je 0x180032231
sub eax, 5
je 0x180032222
sub eax, 4
je 0x180032264
sub eax, 1
je 0x1800321f6
cmp eax, 5
jne 0x180032225
movzx ecx, word [rbp]
xor edx, edx
movzx eax, cx
neg ax
movzx eax, ax
div ecx
mov ebx, edx
nop dword [rax]
mov r8, rdi
xor edx, edx
mov ecx, 0x100
call fcn.18002efe0
cmp ax, bx
jb 0x1800321d0
movzx ecx, word [rbp]
xor edx, edx
movzx eax, ax
div ecx
mov word [rsp + 0x20], dx
jmp 0x180032264
mov rax, qword [rdi]
lea r8, [rsp + 0x68]
shr rax, 0x3a
lea rcx, [rsp + 0x58]
mov edx, 0x98
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x58], r14d
call fcn.180033610
mov qword [rsp + 0x20], rax
jmp 0x180032225
mov qword [rdi], r14
dec ebx
cmp ebx, esi
ja 0x180032190
jmp 0x180032264
mov rcx, qword [rdi]
lea r8, [rsp + 0x58]
mov rax, rcx
lea rdx, [rsp + 0x68]
shr rax, 0x3b
mov dword [rsp + 0x58], eax
mov rax, rcx
shr rax, 0x20
xor eax, ecx
mov ecx, 0x114
mov dword [rsp + 0x68], eax
call fcn.180033500
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x180035ca0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
movzx ebx, word [rsp + 0x70]
lea ebp, [r8 + 0x255]
mov edi, r8d
mov rsi, rdx
mov r14, rcx
cmp r8d, ebp
jae 0x180035d43
nop dword [rax]
mov eax, edi
sub eax, 0x6a
je 0x180035cf8
sub eax, 0x5c
je 0x180035ce5
cmp eax, 0xc7
je 0x180035d43
jmp 0x180035d39
mov eax, dword [rsi]
mov ebx, eax
shr ebx, 0xb
xor ebx, eax
shr eax, 0x1e
lea ecx, [rax + 0xb]
shr ebx, cl
jmp 0x180035d39
movzx eax, byte [rsi + 1]
lea r9, [rsp + 0x78]
mov byte [rsp + 0x78], al
lea r8, [rsp + 0x30]
movzx eax, byte [r14]
lea rcx, [rsp + 0x38]
mov byte [rsp + 0x30], al
mov edx, 0x97
movzx eax, byte [rsi]
mov byte [rsp + 0x38], al
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x70], 0x8d
call fcn.18002ff40
mov byte [rsi], al
add edi, 0xc7
cmp edi, ebp
jb 0x180035cd0
mov rbp, qword [rsp + 0x68]
movzx eax, bx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140001000
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov eax, dword [rsp + 0x40]
lea rdx, [rsp + 0x28]
mov ecx, eax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jge 0x140001055
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
movzx eax, al
test eax, eax
jne 0x140001055
cmp qword [rsp + 0x28], 0
je 0x14000104e
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 0xc0000001
jmp 0x14000107e
mov rcx, qword [rsp + 0x28]
call sub.ntoskrnl.exe_PsGetProcessSectionBaseAddress
mov rcx, qword [rsp + 0x48]
mov qword [rcx], rax
cmp qword [rsp + 0x28], 0
je 0x14000107a
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x140001090
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x60
mov eax, dword [rsp + 0x70]
lea rdx, [rsp + 0x48]
mov ecx, eax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x1400010f3
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
movzx eax, al
test eax, eax
jne 0x1400010f3
cmp qword [rsp + 0x48], 0
je 0x1400010e9
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 0xc0000001
jmp 0x140001181
mov r8d, 1
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x30], rcx
mov byte [rsp + 0x28], 0
mov rcx, qword [rsp + 0x88]
mov qword [rsp + 0x20], rcx
mov r9, qword [rsp + 0x80]
mov r8, rax
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x48]
call sub.ntoskrnl.exe_MmCopyVirtualMemory
mov dword [rsp + 0x40], eax
jmp 0x14000116a
cmp qword [rsp + 0x48], 0
je 0x14000117d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [rsp + 0x40]
add rsp, 0x60
pop rdi
ret
Function at 0x140001970
Capabilities:
Create device object
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov dword [rsp + 0x40], 0
mov eax, 0x1e
mov word [rsp + 0x60], ax
mov eax, 0x20
mov word [rsp + 0x62], ax
lea rax, str.DeviceMdlTest
mov qword [rsp + 0x68], rax
mov eax, 0x16
mov word [rsp + 0x70], ax
mov eax, 0x18
mov word [rsp + 0x72], ax
lea rax, str.__MdlTest
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x90]
lea rcx, [0x140001b30]
mov qword [rax + 0x68], rcx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov r9d, 0x22
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x140001a56
mov edx, dword [rsp + 0x40]
lea rcx, [0x140001dc0]
call sub.ntoskrnl.exe_DbgPrint
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x90]
mov rax, qword [rsp + 0x50]
call qword [0x1400020b0]
mov eax, dword [rsp + 0x40]
jmp 0x140001b22
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x140001aab
mov edx, dword [rsp + 0x40]
lea rcx, [0x140001de0]
call sub.ntoskrnl.exe_DbgPrint
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x90]
mov rax, qword [rsp + 0x58]
call qword [0x1400020b0]
mov eax, dword [rsp + 0x40]
jmp 0x140001b22
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x30]
btr eax, 7
mov rcx, qword [rsp + 0x48]
mov dword [rcx + 0x30], eax
mov dword [rsp + 0x44], 0
jmp 0x140001ad3
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0x1c
jge 0x140001af5
movsxd rax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x90]
lea rdx, [0x140001190]
mov qword [rcx + rax*8 + 0x70], rdx
jmp 0x140001ac9
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x90]
lea rdx, [0x1400011d0]
mov qword [rcx + rax + 0x70], rdx
lea rcx, [0x140001e00]
call sub.ntoskrnl.exe_DbgPrint
mov eax, dword [rsp + 0x40]
add rsp, 0x88
ret
Function at 0x140001f90
Capabilities:
Enumerate gui resources

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 [0x14003c020]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x38], esi
mov edx, 0x2b80
xor ecx, ecx
lea r9d, [rsi + 4]
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
mov rdi, rax
lea r12, str.e853:500:80:8746:191c:7e3:14c4:dd4
mov rbx, r12
lea r15, [0x1400363c8]
nop word [rax + rax]
mov r8, rdi
lea rdx, [rsp + 0x30]
mov rcx, qword [rbx]
call qword [sym.imp.ntdll.dll_RtlIpv6StringToAddressA]
mov ebp, eax
test eax, eax
js 0x1400020c4
add rdi, 0x10
inc esi
add rbx, 8
cmp rbx, r15
jl 0x140002000
lea r9, [rsp + 0x38]
mov edx, 0x2b80
mov r8d, 0x10
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.140002120
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
mov rcx, qword [rcx + rax + 0x40]
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x28], rcx
mov rdx, qword [rcx]
call qword [rdx + 8]
nop
lea rcx, [rsp + 0x20]
call fcn.1400045c0
mov r8, qword [rax]
mov dl, 0xa
mov rcx, rax
call qword [r8 + 0x40]
movzx edi, al
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x1400020a3
mov rdx, qword [rcx]
call qword [rdx + 0x10]
test rax, rax
je 0x1400020a3
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
movzx edx, dil
mov rcx, rbx
call fcn.140005210
mov rcx, rbx
call fcn.140004220
xor edx, edx
mov rcx, r14
call qword [sym.imp.USER32.dll_EnumWindows]
jmp 0x1400020e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
movsxd rdx, esi
mov r8d, ebp
mov rdx, qword [r12 + rdx*8]
lea rcx, str.____RtlIpv6StringToAddressA_failed_in__s_result__x___u_
call fcn.140001160
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140007df0
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
Function at 0x140006d2c
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 0x140006d5a
xor eax, eax
jmp 0x140006e40
cmp qword [rcx + 0x68], 0
je 0x140006d6b
call fcn.140006e5c
jmp 0x140006e40
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140006d82
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140006d84
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140006db6
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140009c80
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 0x140006e3a
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140006ded
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 0x140006e16
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.1400127e4
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140006e3a
cmp rsi, rbx
ja 0x140006df4
test rsi, rsi
je 0x140006e3a
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1400127e4
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 0x140008b50
Capabilities:
Parse pe header

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

Function at 0x140015a98
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140015894
Function at 0x14001cb74
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.140008450
sub rsp, rax
mov rax, qword [0x14003c020]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001a424
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001cbc3
mov rax, rbp
jmp 0x14001cccb
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 + 0x3e430]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001dc94
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3e430]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001ccc7
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 0x14001ccc7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001dc94
test rax, rax
js 0x14001ccc7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001ccc7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001ccb9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001ccb9
cmp byte [rcx], 0xd
jne 0x14001cc9f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001ccae
cmp byte [rcx + 1], 0xa
jne 0x14001ccae
inc rcx
jmp 0x14001ccae
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3c410]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001cc81
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001cccb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140007df0
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 0x14001ceec
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001cf02
mov al, 1
jmp 0x14001cf62
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001cf13
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001cf60
mov ecx, dword [rcx + 0x18]
nop
call fcn.140021794
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001cf60
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001cf60
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001cf60
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001cf62
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001d034
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, [0x14003e430]
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 0x14001d08b
cmp word [rdx], r13w
jne 0x14001d08b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001d090
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001d1b5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001d1d6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001d0c9
mov rdx, r9
mov word [rbx], cx
jmp 0x14001d0f0
cmp r9, r8
jae 0x14001d100
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 0x14001d0aa
jmp 0x14001d1b5
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 0x14001d1aa
cmp dword [rsp + 0x80], esi
je 0x14001d1aa
lea r8, [0x14003e430]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001d182
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001d152
mov word [rbx], r13w
jmp 0x14001d1b2
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 0x14001d15f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001d1b2
cmp word [rsp + 0x70], r13w
jne 0x14001d18f
cmp rbx, r14
je 0x14001d14c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001dc9c
cmp word [rsp + 0x70], r13w
je 0x14001d1b5
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, [0x14003e430]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001d1af
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001d1b5
Function at 0x140020f2c
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 0x140020f5c
xor eax, eax
jmp 0x14002101f
mov rbp, rbx
cmp word [rax], si
je 0x140020f81
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140020f68
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140020f64
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.14001f52c
movsxd r14, eax
test eax, eax
jne 0x140020fbf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140020f55
mov rcx, r14
call fcn.1400191c8
mov rdi, rax
test rax, rax
jne 0x140020fd8
xor ecx, ecx
call fcn.1400183d4
jmp 0x140020fb4
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.14001f52c
test eax, eax
jne 0x140021009
mov rcx, rdi
call fcn.1400183d4
jmp 0x140021013
xor ecx, ecx
call fcn.1400183d4
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 0x140023ce8
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.14001a930
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 0x140023d89
cmp ebx, dword [rsp + 0x30]
je 0x140023d82
test esi, esi
je 0x140023d82
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140023d5d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140023d6a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140023d47
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140023d6e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140023d8b
mov eax, 1
jmp 0x140023d8b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140026c34
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.140014160
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140026cbe
cmp byte [rbp - 0x21], r15b
je 0x140026cb9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140026cf4
call fcn.1400186d8
test eax, eax
jne 0x140026ce0
cmp byte [rbp - 0x21], r15b
je 0x140026cd8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140026cf4
cmp byte [rbp - 0x21], r15b
je 0x140026cf1
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.14001473c
test eax, eax
jne 0x140026d94
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140014160
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140026d33
cmp byte [rbp - 0x21], r15b
je 0x140026d68
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140026d68
call fcn.1400186d8
test eax, eax
jne 0x140026d54
cmp byte [rbp - 0x21], r15b
je 0x140026d4d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140026d68
cmp byte [rbp - 0x21], r15b
je 0x140026d65
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.14001473c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140026d94
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140026d97
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140026da5
mov rcx, rdi
call fcn.1400183d4
cmp byte [rbp + 0x3f], r15b
je 0x140026db4
mov rcx, qword [rbp + 0x27]
call fcn.1400183d4
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