joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400023c0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister
Generate random numbers via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x12f8]
mov eax, 0x13f0
call fcn.140017020
sub rsp, rax
mov rax, qword [0x140054080]
xor rax, rsp
mov qword [rbp + 0x12e0], rax
mov edi, 1
mov dword [rsp + 0x20], 0xf0000000
mov r9d, edi
lea rcx, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140002420
xor eax, eax
jmp 0x14000256a
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x38]
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x40]
xor edx, edx
test eax, eax
jne 0x140002445
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x140002419
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ebx, dword [rsp + 0x38]
call fcn.140015974
or dword [rbp + 0x12d4], 0xffffffff
mov rdx, rdi
mov dword [rsp + 0x54], eax
mov esi, 0x270
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x54], eax
add rdx, rdi
cmp rdx, rsi
jb 0x140002467
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], esi
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x78
mov dword [rsp + 0x34], 0xb1
call fcn.14000dcf4
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
cmp eax, 0xa0
jbe 0x1400024c3
call fcn.14000dcf4
lea edx, [rbx + rax]
jmp 0x140002568
call fcn.14000dcf4
cmp eax, 0x8c
jae 0x14000250f
call fcn.140015974
or dword [rbp + 0x12d4], 0xffffffff
mov rdx, rdi
mov dword [rsp + 0x54], eax
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x54], eax
add rdx, rdi
cmp rdx, rsi
jb 0x1400024e2
mov dword [rsp + 0x30], 0x3e8
mov dword [rsp + 0x34], 0x578
jmp 0x14000254d
call fcn.140015974
or dword [rbp + 0x12d4], 0xffffffff
mov rdx, rdi
mov dword [rsp + 0x54], eax
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x54], eax
add rdx, rdi
cmp rdx, rsi
jb 0x140002522
mov dword [rsp + 0x30], 0x2710
mov dword [rsp + 0x34], 0x36b0
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], esi
lea rcx, [rsp + 0x30]
call fcn.14000dcf4
mov ecx, eax
xor edx, edx
mov eax, ebx
div ecx
mov eax, edx
mov rcx, qword [rbp + 0x12e0]
xor rcx, rsp
call fcn.140016570
lea r11, [rsp + 0x13f0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140002594
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1328]
mov eax, 0x1400
call fcn.140017020
sub rsp, rax
mov rax, qword [0x140054080]
xor rax, rsp
mov qword [rbp + 0x12f0], rax
mov rsi, rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x20], rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
mov r8d, 0x3e
lea rdx, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
lea rcx, [rsp + 0x40]
call fcn.14000ed44
nop
call fcn.140015974
mov edx, eax
mov ebx, 0xffffffff
mov dword [rbp + 0x12e4], ebx
mov dword [rsp + 0x64], eax
mov r11d, 1
mov ecx, r11d
mov r8d, 0x270
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rsp + rcx*4 + 0x64], edx
add rcx, r11
cmp rcx, r8
jb 0x14000262c
mov dword [rsp + 0x60], r8d
lea r8, [rsp + 0x40]
mov rcx, qword [rsp + 0x40]
mov r9, qword [rsp + 0x58]
cmp r9, 0x10
cmovae r8, rcx
mov rdx, qword [rsp + 0x50]
add r8, rdx
mov qword [rsp + 0x20], r8
lea rdi, [rsp + 0x40]
cmp r9, 0x10
cmovae rdi, rcx
mov r10d, 0x40
or r12, 0xffffffffffffffff
sub r10, r11
shr r12, 1
cmp r12, rbx
ja 0x140002687
mov qword [rsp + 0x30], r10
cmp rdi, r8
je 0x14000276d
mov rbx, r11
lea rax, [rdi + 1]
cmp rax, r8
je 0x14000276d
mov r15, r11
sub r15, rdi
lea r13, [rbx + rdi]
lea r8, [r15 + r13]
xor esi, esi
xor r14d, r14d
test rbx, rbx
je 0x140002707
lea rax, [r10 - 1]
mov rcx, rax
shl rsi, cl
add rsi, rsi
lea rcx, [rsp + 0x60]
call fcn.14001062c
mov eax, eax
cmp rax, r12
ja 0x1400026d5
or rsi, rax
mov r10, qword [rsp + 0x30]
lea rax, [r10 - 1]
mov rcx, rax
shl r14, cl
add r14, r14
or r14, r12
cmp r14, rbx
jb 0x1400026cc
lea r8, [r15 + r13]
xor edx, edx
mov rax, r14
div r8
mov rcx, rax
xor edx, edx
mov rax, rsi
div r8
cmp rax, rcx
jb 0x14000272c
xor edx, edx
mov rax, r14
div r8
cmp rdx, rbx
jne 0x1400026be
xor edx, edx
mov rax, rsi
div r8
cmp rdx, rbx
je 0x140002747
mov cl, byte [r13]
mov al, byte [rdx + rdi]
mov byte [r13], al
mov byte [rdx + rdi], cl
inc rbx
lea rax, [rbx + rdi]
cmp rax, qword [rsp + 0x20]
jne 0x1400026b6
mov r9, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
and qword [rsi + 0x10], 0
and qword [rsi + 0x18], 0
mov r8d, 0x20
cmp rdx, r8
cmovb r8, rdx
lea rdx, [rsp + 0x40]
cmp r9, 0x10
cmovae rdx, rcx
mov rcx, rsi
call fcn.14000ed44
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x1400027d9
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400027d4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000280c
call fcn.140016590
mov rax, rsi
mov rcx, qword [rbp + 0x12f0]
xor rcx, rsp
call fcn.140016570
lea r11, [rsp + 0x1400]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1400213a0
int3
Function at 0x140008a8c
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140054080]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword gs:[0x60]
mov esi, ecx
xor ebp, ebp
mov rdx, qword [rax + 0x18]
mov rdi, qword [rdx + 0x10]
mov rbx, rdi
mov rbx, qword [rbx]
cmp qword [rbx + 0x30], rbp
je 0x140008b42
mov rdx, qword [rbx + 0x60]
mov rcx, rbp
cmp word [rdx], bp
je 0x140008afa
cmp rcx, 0x3f
jae 0x140008af4
mov al, byte [rdx]
add rdx, 2
mov byte [rsp + rcx + 0x20], al
inc rcx
cmp word [rdx], bp
jne 0x140008adc
cmp rcx, 0x40
jae 0x140008b6e
mov byte [rsp + rcx + 0x20], bpl
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_CharLowerA]
mov edx, 0x2b
or rcx, 0xffffffffffffffff
mov r8, rax
inc rcx
cmp byte [rax + rcx], bpl
jne 0x140008b16
mov r9d, ebp
test rcx, rcx
je 0x140008b3e
movsx eax, byte [r8]
lea edx, [rdx + rdx*2]
inc r9d
add edx, eax
movsxd rax, r9d
inc r8
cmp rax, rcx
jb 0x140008b27
cmp edx, esi
je 0x140008b47
cmp rdi, rbx
jne 0x140008ac7
mov rax, qword [rbx + 0x30]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140016570
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.1400166a0
int3

Function at 0x140008b74
Capabilities:
Resolve function by parsing pe exports

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
movsxd rax, dword [rcx + 0x3c]
mov r9, rcx
mov r14d, edx
mov r8d, dword [rax + rcx + 0x88]
mov ebp, dword [r8 + rcx + 0x1c]
mov r10d, dword [r8 + rcx + 0x20]
mov esi, dword [r8 + rcx + 0x24]
add r10, rcx
add rsi, rcx
lea rdi, [rcx + rbp]
xor ecx, ecx
test ebp, ebp
je 0x140008c02
mov r8d, dword [r10]
mov r11d, 0x2b
add r8, r9
or rdx, 0xffffffffffffffff
inc rdx
cmp byte [r8 + rdx], 0
jne 0x140008bca
xor ebx, ebx
test rdx, rdx
je 0x140008bf3
movsx eax, byte [r8]
lea r11d, [r11 + r11*2]
inc ebx
add r11d, eax
movsxd rax, ebx
inc r8
cmp rax, rdx
jb 0x140008bdb
cmp r11d, r14d
je 0x140008c1b
inc ecx
add r10, 4
cmp ecx, ebp
jb 0x140008bba
xor eax, eax
mov rbx, qword [rsp + 0x10]
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
pop r14
ret
movzx ecx, word [rsi + rcx*2]
mov eax, dword [rdi + rcx*4]
add rax, r9
jmp 0x140008c04
Function at 0x14000a540
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14000a560
xor eax, eax
jmp 0x14000a646
cmp qword [rcx + 0x68], 0
je 0x14000a571
call fcn.14000b454
jmp 0x14000a646
mov rax, qword [rcx + 0x38]
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000a588
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000a58a
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000a5bc
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.1400183d0
mov rax, qword [rsi + 0x50]
add r14, rbx
sub rdi, rbx
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000a640
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000a5f3
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x14000a61c
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140020b90
add r14, rax
sub rdi, rax
cmp rax, rbx
jne 0x14000a640
cmp rdi, rbx
ja 0x14000a5fa
test rdi, rdi
je 0x14000a640
mov r9, qword [rsi + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call fcn.140020b90
sub rdi, rax
sub rbp, rdi
mov rax, rbp
add rsp, 0x20
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14000b330
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
or dword [rcx + 0x1384], 0xffffffff
lea r9, [rcx + 8]
mov dword [rcx + 4], edx
mov r8d, 1
mov r10d, 0x270
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, r8d
inc r8
mov dword [r9], edx
lea r9, [r9 + 4]
cmp r8, r10
jb 0x14000b34a
mov dword [rcx], r10d
mov rax, rcx
ret
Function at 0x14001062c
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rdi
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x14001068b
lea r8, [r9 + 8]
mov r11d, 0x7fffffff
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
and edx, r11d
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x14001064b
mov ecx, dword [r9]
jmp 0x140010769
cmp ecx, 0x4e0
jb 0x140010769
lea r10, [r9 + 0x9c4]
mov edi, 0xe3
mov eax, dword [r10]
mov r11d, 0x7fffffff
lea r8, [r10 + 4]
mov edx, dword [r8]
xor edx, eax
and edx, r11d
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 - 0x9c0], ecx
lea r10, [r8]
sub rdi, 1
jne 0x1400106ac
lea r10, [r9 + 0xd50]
mov edi, 0x18c
mov eax, dword [r10]
mov edx, eax
lea r8, [r10 + 4]
xor edx, dword [r8]
and edx, r11d
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd4c]
xor ecx, edx
mov dword [r10 - 0x9c0], ecx
lea r10, [r8]
sub rdi, 1
jne 0x1400106f5
mov edx, dword [r9 + 0x1380]
xor edx, dword [r9 + 4]
and edx, r11d
xor edx, dword [r9 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov rdi, qword [rsp + 8]
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
ret
Function at 0x1400172d8
Capabilities:
Parse pe header

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

Function at 0x14001cd5c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14001cbc7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001cbc7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001cbc7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001cbc7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001cbc7
cmp dword [rcx + 0x84], 0xe
jbe 0x14001cbc7
cmp dword [rcx + 0xf8], 0
je 0x14001cbc7
mov ecx, ebx
call fcn.14001cc78
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14001ca54
nop
cmp dword [rbp + 0x20], 0
je 0x14001cc15
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001cc20
int3
xor r8d, r8d
xor edx, edx
jmp 0x14001cb58

Function at 0x1400289d0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400289e6
mov al, 1
jmp 0x140028a46
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400289f7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140028a44
mov ecx, dword [rcx + 0x18]
nop
call fcn.140032804
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140028a44
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140028a44
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140028a44
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140028a46
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14002cb68
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.140017020
sub rsp, rax
mov rax, qword [0x140054080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400288b0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002cbb7
mov rax, rbp
jmp 0x14002ccbf
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 + 0x565f0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002e5cc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x565f0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002ccbb
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 0x14002ccbb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002e5cc
test rax, rax
js 0x14002ccbb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002ccbb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002ccad
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002ccad
cmp byte [rcx], 0xd
jne 0x14002cc93
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002cca2
cmp byte [rcx + 1], 0xa
jne 0x14002cca2
inc rcx
jmp 0x14002cca2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x54470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002cc75
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002ccbf
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140016570
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 0x14002d96c
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, [0x1400565f0]
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 0x14002d9c3
cmp word [rdx], r13w
jne 0x14002d9c3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14002d9c8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14002daed
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14002db0e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14002da01
mov rdx, r9
mov word [rbx], cx
jmp 0x14002da28
cmp r9, r8
jae 0x14002da38
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 0x14002d9e2
jmp 0x14002daed
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 0x14002dae2
cmp dword [rsp + 0x80], esi
je 0x14002dae2
lea r8, [0x1400565f0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14002daba
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14002da8a
mov word [rbx], r13w
jmp 0x14002daea
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 0x14002da97
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14002daea
cmp word [rsp + 0x70], r13w
jne 0x14002dac7
cmp rbx, r14
je 0x14002da84
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14002e5d4
cmp word [rsp + 0x70], r13w
je 0x14002daed
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, [0x1400565f0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14002dae7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14002daed
Function at 0x140031e00
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 0x140031e30
xor eax, eax
jmp 0x140031ef3
mov rbp, rbx
cmp word [rax], si
je 0x140031e55
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140031e3c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140031e38
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.140030400
movsxd r14, eax
test eax, eax
jne 0x140031e93
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140031e29
mov rcx, r14
call fcn.14002a7c4
mov rdi, rax
test rax, rax
jne 0x140031eac
xor ecx, ecx
call fcn.14002a2c4
jmp 0x140031e88
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.140030400
test eax, eax
jne 0x140031edd
mov rcx, rdi
call fcn.14002a2c4
jmp 0x140031ee7
xor ecx, ecx
call fcn.14002a2c4
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 0x140034d58
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.140028e90
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 0x140034df9
cmp ebx, dword [rsp + 0x30]
je 0x140034df2
test esi, esi
je 0x140034df2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140034dcd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140034dda
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140034db7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140034dde
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140034dfb
mov eax, 1
jmp 0x140034dfb
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140038ee4
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.140020458
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140038f6e
cmp byte [rbp - 0x21], r15b
je 0x140038f69
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140038fa4
call fcn.14002bfbc
test eax, eax
jne 0x140038f90
cmp byte [rbp - 0x21], r15b
je 0x140038f88
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140038fa4
cmp byte [rbp - 0x21], r15b
je 0x140038fa1
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.140024e28
test eax, eax
jne 0x140039044
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140020458
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140038fe3
cmp byte [rbp - 0x21], r15b
je 0x140039018
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140039018
call fcn.14002bfbc
test eax, eax
jne 0x140039004
cmp byte [rbp - 0x21], r15b
je 0x140038ffd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140039018
cmp byte [rbp - 0x21], r15b
je 0x140039015
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.140024e28
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140039044
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140039047
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140039055
mov rcx, rdi
call fcn.14002a2c4
cmp byte [rbp + 0x3f], r15b
je 0x140039064
mov rcx, qword [rbp + 0x27]
call fcn.14002a2c4
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