joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14012d2a0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400929b0
sub rsp, rax
mov rax, qword [0x1401c30e8]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1401c7910]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14012d4ad
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x14012d3f9
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14012d3f9
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x14012d3d9
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x14012d368
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14012d46d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14012d4cc
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x14012d4a8
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14012d4cc
jmp 0x14012d33e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140092cc0
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140141ee0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140141d70
lea rcx, [rsp + 0x40]
call fcn.140141ea0
movzx eax, al
test eax, eax
jne 0x140141f28
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.140141d90
mov rax, qword [rsp + 0x70]
jmp 0x1401420f9
lea rcx, [rsp + 0x40]
call fcn.140141e80
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140141e30
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.140141e80
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.14013b100
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140141fce
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.140141d90
mov rax, qword [rsp + 0x80]
jmp 0x1401420f9
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1400b8880
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14009a4b0
lea rcx, [rsp + 0x48]
call fcn.14009a530
movzx eax, al
test eax, eax
jne 0x140142035
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.14009a4f0
lea rcx, [rsp + 0x40]
call fcn.140141d90
mov rax, qword [rsp + 0x88]
jmp 0x1401420f9
lea rcx, [rsp + 0x48]
call fcn.14009a600
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.140141e80
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.14013b100
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1401420cb
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.14009a4f0
lea rcx, [rsp + 0x40]
call fcn.140141d90
mov rax, qword [rsp + 0xa0]
jmp 0x1401420f9
lea rcx, [rsp + 0x48]
call fcn.140100830
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.14009a4f0
lea rcx, [rsp + 0x40]
call fcn.140141d90
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x140142110
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140141d70
lea rcx, [rsp + 0x20]
call fcn.140141db0
movzx eax, al
test eax, eax
jne 0x140142155
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.140141d90
mov rax, qword [rsp + 0x40]
jmp 0x14014224f
lea rcx, [rsp + 0x20]
call fcn.140141e80
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.140141e30
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, rax
call fcn.1400b8880
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140100f30
lea rcx, [rsp + 0x28]
call fcn.140114b30
movzx eax, al
test eax, eax
jne 0x1401421ef
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.140100f50
lea rcx, [rsp + 0x20]
call fcn.140141d90
mov rax, qword [rsp + 0x50]
jmp 0x14014224f
lea rcx, [rsp + 0x20]
call fcn.140141e80
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1401013d0
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.140098bc0
lea rcx, [rsp + 0x28]
call fcn.14010bf10
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.140100f50
lea rcx, [rsp + 0x20]
call fcn.140141d90
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret

Function at 0x140143980
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret
Function at 0x140158180
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.14010aa50
lea rcx, [rsp + 0x48]
call fcn.14010aa50
call fcn.140125c80
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.14010a940
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1401581ef
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.14010aae0
lea rcx, [rsp + 0x78]
call fcn.14010aae0
mov eax, dword [rsp + 0x24]
jmp 0x140158280
call fcn.140125c80
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.14010a940
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x140158236
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.14010aae0
lea rcx, [rsp + 0x78]
call fcn.14010aae0
mov eax, dword [rsp + 0x2c]
jmp 0x140158280
lea rcx, [rsp + 0x48]
call fcn.14010ae30
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.14010ae30
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.14010aae0
lea rcx, [rsp + 0x78]
call fcn.14010aae0
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x14000102c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd rdi, dword [rcx + 0x3c]
mov r15, rcx
add rdi, rcx
mov ebp, edx
mov r8d, edx
xor ebx, ebx
mov eax, dword [rdi + 0x88]
mov edx, eax
mov ecx, dword [rdi + 0x8c]
mov dword [rsp + 0x88], ecx
mov rcx, rdi
mov dword [rsp + 0x70], eax
call fcn.140001ac4
test eax, eax
je 0x140001169
mov esi, eax
mov r8d, ebp
add rsi, r15
mov rcx, rdi
mov edx, dword [rsi + 0x1c]
call fcn.140001ac4
mov r12d, eax
test eax, eax
je 0x140001169
mov edx, dword [rsi + 0x24]
mov r8d, ebp
mov rcx, rdi
call fcn.140001ac4
mov r14d, eax
test eax, eax
je 0x140001169
mov edx, dword [rsi + 0x20]
mov r8d, ebp
mov rcx, rdi
call fcn.140001ac4
test eax, eax
je 0x140001169
add r12, r15
mov r13d, eax
mov eax, dword [rsi + 0x18]
add r13, r15
add r14, r15
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], eax
mov r12d, ebx
test eax, eax
je 0x140001169
mov esi, dword [rsp + 0x70]
mov edx, dword [r13]
mov r8d, ebp
mov rcx, rdi
call fcn.140001ac4
test eax, eax
je 0x140001148
mov rdx, qword [rsp + 0x28]
mov ecx, eax
movzx eax, word [r14]
add rcx, r15
mov edx, dword [rdx + rax*4]
cmp edx, esi
jb 0x140001124
mov eax, dword [rsp + 0x88]
add eax, esi
cmp edx, eax
jb 0x140001148
mov r9, qword [rsp + 0x80]
sub r9, rcx
movzx eax, byte [rcx]
movzx r8d, byte [rcx + r9]
sub eax, r8d
jne 0x140001144
inc rcx
test r8d, r8d
jne 0x14000112f
test eax, eax
je 0x14000115c
inc r12d
add r13, 4
add r14, 2
cmp r12d, dword [rsp + 0x20]
jae 0x140001169
jmp 0x1400010ef
mov r8d, ebp
mov rcx, rdi
call fcn.140001ac4
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140001ac4
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
movzx eax, word [rcx + 0x14]
lea r10, [rcx + 0x18]
movzx ebx, word [rcx + 6]
xor r9d, r9d
add r10, rax
mov edi, r8d
cmp r9w, bx
movzx r11d, r9w
jae 0x140001b20
mov r8d, dword [r10 + 0xc]
cmp r8d, edx
ja 0x140001b01
mov ecx, dword [r10 + 8]
add ecx, r8d
cmp ecx, edx
ja 0x140001b0f
add r10, 0x28
inc r11w
cmp r11w, bx
jmp 0x140001aeb
mov eax, dword [r10 + 0x14]
sub eax, r8d
add edx, eax
cmp edx, edi
sbb r9d, r9d
and r9d, edx
mov rbx, qword [rsp + 8]
mov eax, r9d
mov rdi, qword [rsp + 0x10]
ret
Function at 0x140001b30
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, rcx
mov r14, r8
xor ecx, ecx
mov r15, rdx
test rdi, rdi
je 0x140001bb4
movsxd r9, dword [rdi + 0x3c]
lea rbx, [rdi + 0x18]
add rbx, r9
xor esi, esi
movzx eax, word [r9 + rdi + 0x14]
movzx ebp, word [r9 + rdi + 6]
add rbx, rax
test ebp, ebp
je 0x140001bb4
mov eax, dword [rbx]
cmp eax, 0x7865742e
jne 0x140001b87
cmp byte [rbx + 4], 0x74
je 0x140001b8e
cmp eax, 0x45474150
jne 0x140001baa
mov ecx, dword [rbx + 0xc]
mov r9, r14
mov edx, dword [rbx + 8]
add rcx, rdi
mov r8, r15
call fcn.140001bd0
mov rcx, rax
test rax, rax
jne 0x140001bb4
inc esi
add rbx, 0x28
cmp esi, ebp
jb 0x140001b78
mov rbx, qword [rsp + 0x40]
mov rax, rcx
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140001d4c
Capabilities:
Parse pe header

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

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

Function at 0x140016290
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001608c

Function at 0x14001cea4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001ceba
mov al, 1
jmp 0x14001cf1a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001cecb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001cf18
mov ecx, dword [rcx + 0x18]
nop
call fcn.140021958
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001cf18
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001cf18
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001cf18
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001cf1a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001e3b4
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.1400098d0
sub rsp, rax
mov rax, qword [0x14003d030]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140019fa4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001e403
mov rax, rbp
jmp 0x14001e50b
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 + 0x3f2b0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001e89c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3f2b0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001e507
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 0x14001e507
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001e89c
test rax, rax
js 0x14001e507
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001e507
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001e4f9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001e4f9
cmp byte [rcx], 0xd
jne 0x14001e4df
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001e4ee
cmp byte [rcx + 1], 0xa
jne 0x14001e4ee
inc rcx
jmp 0x14001e4ee
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3db00]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001e4c1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001e50b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140009260
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 0x1400210f0
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 0x140021120
xor eax, eax
jmp 0x1400211e3
mov rbp, rbx
cmp word [rax], si
je 0x140021145
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002112c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140021128
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.14001f6f0
movsxd r14, eax
test eax, eax
jne 0x140021183
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140021119
mov rcx, r14
call fcn.140018c10
mov rdi, rax
test rax, rax
jne 0x14002119c
xor ecx, ecx
call fcn.140018bd4
jmp 0x140021178
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.14001f6f0
test eax, eax
jne 0x1400211cd
mov rcx, rdi
call fcn.140018bd4
jmp 0x1400211d7
xor ecx, ecx
call fcn.140018bd4
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 0x140023eac
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.14001a4c8
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 0x140023f4d
cmp ebx, dword [rsp + 0x30]
je 0x140023f46
test esi, esi
je 0x140023f46
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140023f21
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140023f2e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140023f0b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140023f32
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140023f4f
mov eax, 1
jmp 0x140023f4f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140025ea0
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, [0x14003f2b0]
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 0x140025ef7
cmp word [rdx], r13w
jne 0x140025ef7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140025efc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140026021
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140026042
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140025f35
mov rdx, r9
mov word [rbx], cx
jmp 0x140025f5c
cmp r9, r8
jae 0x140025f6c
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 0x140025f16
jmp 0x140026021
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 0x140026016
cmp dword [rsp + 0x80], esi
je 0x140026016
lea r8, [0x14003f2b0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140025fee
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140025fbe
mov word [rbx], r13w
jmp 0x14002601e
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 0x140025fcb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14002601e
cmp word [rsp + 0x70], r13w
jne 0x140025ffb
cmp rbx, r14
je 0x140025fb8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001e8a4
cmp word [rsp + 0x70], r13w
je 0x140026021
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, [0x14003f2b0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14002601b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140026021
Function at 0x140027804
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.1400148f8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002788e
cmp byte [rbp - 0x21], r15b
je 0x140027889
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400278c4
call fcn.14001b850
test eax, eax
jne 0x1400278b0
cmp byte [rbp - 0x21], r15b
je 0x1400278a8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400278c4
cmp byte [rbp - 0x21], r15b
je 0x1400278c1
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.14001525c
test eax, eax
jne 0x140027964
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400148f8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140027903
cmp byte [rbp - 0x21], r15b
je 0x140027938
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140027938
call fcn.14001b850
test eax, eax
jne 0x140027924
cmp byte [rbp - 0x21], r15b
je 0x14002791d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140027938
cmp byte [rbp - 0x21], r15b
je 0x140027935
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.14001525c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140027964
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140027967
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140027975
mov rcx, rdi
call fcn.140018bd4
cmp byte [rbp + 0x3f], r15b
je 0x140027984
mov rcx, qword [rbp + 0x27]
call fcn.140018bd4
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 0x2c19c32b0
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov r13, qword [fcn.2c1a40f00]
mov rdi, qword [0x2c1aae1c0]
xor r12d, r12d
mov rsi, rcx
mov rbx, rdx
lea rbp, [rsp + 0x20]
jmp 0x2c19c32ea
add r12, 1
jo 0x2c19c33a8
cmp r12, rbx
jge 0x2c19c3340
test r12, r12
js 0x2c19c3388
mov r14, r12
mov ecx, 1
call r13
shl r14, 4
xor r8d, r8d
mov rdx, rbp
add r14, rsi
mov rcx, rax
movdqu xmm0, xmmword [r14]
movaps xmmword [rsp + 0x20], xmm0
call fcn.2c19c2d00
cmp byte [rdi], 0
je 0x2c19c32e0
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rbx, qword [fcn.2c1a40f00]
mov ecx, 1
call rbx
mov r8d, 1
mov edx, 1
lea rcx, [0x2c1a431c1]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbx
mov rcx, rax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp fcn.2c1a405a8
lea rdx, [rbx - 1]
mov rcx, r12
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp fcn.2c19cc850
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp fcn.2c19c7040