joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ee838
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
xor r10d, r10d
mov r11, rdx
mov r9d, ecx
test rdx, rdx
je 0x1400ee8bd
lea rdi, [0x140170e70]
not r9d
cmp r8d, 8
jb 0x1400ee894
mov edx, r8d
shr rdx, 3
add r8d, 0xfffffff8
mov ebx, 8
movzx ecx, byte [r11]
mov eax, r9d
xor rcx, rax
shr r9d, 8
movzx eax, cl
inc r11
xor r9d, dword [rdi + rax*4]
sub rbx, 1
jne 0x1400ee870
sub rdx, 1
jne 0x1400ee867
test r8d, r8d
je 0x1400ee8b7
movzx ecx, byte [r11]
mov eax, r9d
xor rcx, rax
shr r9d, 8
movzx eax, cl
inc r11
xor r9d, dword [rdi + rax*4]
add r8d, 0xffffffff
jne 0x1400ee899
not r9d
mov r10d, r9d
mov rbx, qword [rsp + 8]
mov eax, r10d
mov rdi, qword [rsp + 0x10]
ret

Function at 0x1400efa3c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400efa76
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400efa7b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400efac4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1401287a0]
cmp byte [rcx + rax], 0
je 0x1400efac4
dec r8
sub rdx, 1
jne 0x1400efaaa
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400f28d0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400f291a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400f291a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400f291a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400f291a
cmp dword [rcx + 0x84], 0xe
jbe 0x1400f291a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400f291c
xor al, al
add rsp, 0x28
ret
Function at 0x140102ec8
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.1400f26e0
sub rsp, rax
mov rax, qword [0x1401940c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14010abec
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140102f17
mov rax, rbp
jmp 0x14010301f
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 + 0x22e3a0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14010fc3c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x22e3a0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14010301b
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 0x14010301b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14010fc3c
test rax, rax
js 0x14010301b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14010301b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14010300d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14010300d
cmp byte [rcx], 0xd
jne 0x140102ff3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140103002
cmp byte [rcx + 1], 0xa
jne 0x140103002
inc rcx
jmp 0x140103002
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1944e0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140102fd5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14010301f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400f1a50
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 0x1401081f4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140107fe4
Function at 0x14010d984
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x14010d9b6
call fcn.1400fe46c
mov dword [rax], 0x16
call fcn.1401024b8
jmp 0x14010dad5
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14010dad5
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14010dad5
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14010d9e5
lock or dword [rcx + 0x14], 0x10
jmp 0x14010dad5
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14010d9f9
call fcn.14010ef4c
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14010abec
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14010f464
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14010dac3
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14010da8e
mov rcx, rsi
call fcn.14010abec
cmp eax, edi
je 0x14010da79
mov rcx, rsi
call fcn.14010abec
cmp eax, 0xfffffffe
je 0x14010da79
mov rcx, rsi
call fcn.14010abec
movsxd rbx, eax
lea r14, [0x14022e3a0]
mov rcx, rsi
sar rbx, 6
call fcn.14010abec
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14010da80
lea rdx, [0x140194490]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14010da8e
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14010dab2
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14010dab2
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14010dab2
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x14010dad8
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x14010efb8
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14022e3a0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14010f016
cmp word [rdx], r12w
jne 0x14010f016
or byte [rax + r8*8 + 0x38], cl
jmp 0x14010f01c
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14010f177
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14010f152
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14010f055
mov rcx, r9
jmp 0x14010f078
cmp r9, rdx
jae 0x14010f08f
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14010f039
jmp 0x14010f177
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14010f14c
cmp dword [rsp + 0x80], edi
je 0x14010f14c
mov rdx, r14
lea r11, [0x14022e3a0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14010f125
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14010f0f8
mov word [rbx], r12w
jmp 0x14010f173
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14010f101
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14010f173
cmp word [rsp + 0x70], r12w
jne 0x14010f132
cmp rbx, rsi
je 0x14010f0f2
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14010fc44
cmp word [rsp + 0x70], r12w
je 0x14010f177
mov word [rbx], r13w
jmp 0x14010f173
lea r11, [0x14022e3a0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14010f16f
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14010f177
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140114384
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 0x1401143b4
xor eax, eax
jmp 0x140114477
mov rbp, rbx
cmp word [rax], si
je 0x1401143d9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1401143c0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1401143bc
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.140112b08
movsxd r14, eax
test eax, eax
jne 0x140114417
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1401143ad
mov rcx, r14
call fcn.14010dcf0
mov rdi, rax
test rax, rax
jne 0x140114430
xor ecx, ecx
call fcn.14010c8bc
jmp 0x14011440c
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.140112b08
test eax, eax
jne 0x140114461
mov rcx, rdi
call fcn.14010c8bc
jmp 0x14011446b
xor ecx, ecx
call fcn.14010c8bc
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 0x14011b18c
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.1400f9d5c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14011b216
cmp byte [rbp - 0x21], r15b
je 0x14011b211
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14011b24c
call fcn.14010d0d4
test eax, eax
jne 0x14011b238
cmp byte [rbp - 0x21], r15b
je 0x14011b230
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14011b24c
cmp byte [rbp - 0x21], r15b
je 0x14011b249
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.140107724
test eax, eax
jne 0x14011b2ec
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400f9d5c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14011b28b
cmp byte [rbp - 0x21], r15b
je 0x14011b2c0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14011b2c0
call fcn.14010d0d4
test eax, eax
jne 0x14011b2ac
cmp byte [rbp - 0x21], r15b
je 0x14011b2a5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14011b2c0
cmp byte [rbp - 0x21], r15b
je 0x14011b2bd
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.140107724
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14011b2ec
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14011b2ef
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14011b2fd
mov rcx, rdi
call fcn.14010c8bc
cmp byte [rbp + 0x3f], r15b
je 0x14011b30c
mov rcx, qword [rbp + 0x27]
call fcn.14010c8bc
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 0x14011c050
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14010fc44
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14010fc44
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14011c1a0
cmp rax, 0xffffffffffffffff
je 0x14011c1a0
xor edi, edi
test rbp, rbp
jle 0x14011c14b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14010cd3c
mov rbx, rax
test rax, rax
jne 0x14011c0d8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14011c141
mov edx, 0x8000
mov ecx, r14d
call fcn.140109098
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14010c34c
cmp eax, 0xffffffff
je 0x14011c121
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14011c0e8
mov edx, r15d
mov ecx, r14d
call fcn.140109098
jmp 0x14011c141
cmp byte [rsi + 0x38], dil
je 0x14011c138
cmp dword [rsi + 0x34], 5
jne 0x14011c138
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14011c141
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14010c8bc
jmp 0x14011c1b4
jns 0x14011c1b4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14010fc44
cmp rax, 0xffffffffffffffff
jne 0x14011c16c
cmp byte [rsi + 0x30], dil
je 0x14011c1b4
mov edi, dword [rsi + 0x2c]
jmp 0x14011c1b4
mov ecx, r14d
call fcn.1401150a4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14011c1b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14011c1b4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14011c1ad
mov eax, dword [rsi + 0x2c]
jmp 0x14011c1b2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14010fc44
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14011c900
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14011c928
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14011c928
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400014e7
Capabilities:
Terminate process

Disassembly:
jmp 0x1400c9710
mov dword [rsp + 8], ecx
sub rsp, 0x28
xor r8d, r8d
xor edx, edx
mov ecx, dword [rsp + 0x30]
call fcn.1400c9270
add rsp, 0x28
ret
Function at 0x140002004
Capabilities:
Delete file

Disassembly:
jmp 0x140067bb0
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140067bdc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400022e3
mov eax, 0xffffffff
jmp 0x140067bde
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400023ce
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
jmp 0x1400315b0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x238
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x4e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x258]
mov rax, qword [0x14017ce00]
xor rax, rbp
mov qword [rbp + 0x1e8], rax
lea rcx, [0x140195306]
call fcn.140004e5d
nop
mov r8d, 2
mov edx, 0x68
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rbp + 8], rax
mov rdx, qword [rbp + 8]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rbp + 0x48], rax
mov rdx, qword [rbp + 8]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rbp + 0x64], eax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rbp + 0x218]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 0x88], rax
mov eax, 0x4d42
mov word [rbp + 0xc8], ax
mov eax, dword [rbp + 0x64]
add rax, 0xe
mov dword [rbp + 0xca], eax
mov dword [rbp + 0xd2], 0x36
xor eax, eax
mov word [rbp + 0xd0], ax
movzx eax, word [rbp + 0xd0]
mov word [rbp + 0xce], ax
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0xa4]
mov r8d, 0xe
lea rdx, [rbp + 0xc8]
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0xa4]
mov r8d, dword [rbp + 0x64]
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop
jmp 0x140031729
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x14013c070]
call fcn.1400042ff
mov rax, rdi
mov rcx, qword [rbp + 0x1e8]
xor rcx, rbp
call fcn.140002e69
lea rsp, [rbp + 0x1f8]
pop rdi
pop rbp
ret
Function at 0x140002c7f
Capabilities:
Query environment variable

Disassembly:
jmp 0x14010e7e0
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14010e360
lea rcx, [rsp + 0x20]
call fcn.14010e3b0
movzx eax, al
test eax, eax
jne 0x14010e825
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.14010e390
mov rax, qword [rsp + 0x40]
jmp 0x14010e91f
lea rcx, [rsp + 0x20]
call fcn.14010e4b0
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.14010e450
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.140002f04
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400027c5
lea rcx, [rsp + 0x28]
call fcn.14000328d
movzx eax, al
test eax, eax
jne 0x14010e8bf
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.14000414c
lea rcx, [rsp + 0x20]
call fcn.14010e390
mov rax, qword [rsp + 0x50]
jmp 0x14010e91f
lea rcx, [rsp + 0x20]
call fcn.14010e4b0
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.140004d8b
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.140002e78
lea rcx, [rsp + 0x28]
call fcn.140005489
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.14000414c
lea rcx, [rsp + 0x20]
call fcn.14010e390
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret

Function at 0x140003017
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140066820
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1400661a0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14006685f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140196020]
jmp 0x140066869
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x1400031f2
Capabilities:
Query environment variable

Disassembly:
jmp 0x14010e530
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14010e360
lea rcx, [rsp + 0x40]
call fcn.14010e4e0
movzx eax, al
test eax, eax
jne 0x14010e578
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.14010e390
mov rax, qword [rsp + 0x70]
jmp 0x14010e749
lea rcx, [rsp + 0x40]
call fcn.14010e4b0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.14010e450
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.14010e4b0
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.140003e86
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14010e61e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.14010e390
mov rax, qword [rsp + 0x80]
jmp 0x14010e749
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.140002f04
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140002d8d
lea rcx, [rsp + 0x48]
call fcn.140002950
movzx eax, al
test eax, eax
jne 0x14010e685
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400019dd
lea rcx, [rsp + 0x40]
call fcn.14010e390
mov rax, qword [rsp + 0x88]
jmp 0x14010e749
lea rcx, [rsp + 0x48]
call fcn.140003571
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.14010e4b0
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.140003e86
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14010e71b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400019dd
lea rcx, [rsp + 0x40]
call fcn.14010e390
mov rax, qword [rsp + 0xa0]
jmp 0x14010e749
lea rcx, [rsp + 0x48]
call fcn.140002d60
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400019dd
lea rcx, [rsp + 0x40]
call fcn.14010e390
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret

Function at 0x140003201
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140066750
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.140066120
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140066791
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140196020]
jmp 0x140066797
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x140003292
Capabilities:
Get geographical location

Disassembly:
jmp 0x1400ed1a0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.1400ec0d0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400ed207
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x140196030]
jmp 0x1400ed229
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400028e7
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x1400032ab
Capabilities:
Terminate process

Disassembly:
jmp 0x1400423a0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret