joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001590
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push r14
push r15
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
add rcx, 0x70
lea rdx, [0x14002c854]
xor r14d, r14d
call fcn.140003fc0
mov r15, rax
test rax, rax
jne 0x1400015e0
lea rdx, [rsi + 0x12]
lea rcx, [0x14002c858]
call fcn.140002b10
xor eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rsi
ret
mov edx, dword [rsi + 4]
xor r8d, r8d
add rdx, qword [rbx]
mov rcx, r15
call fcn.140010df4
test eax, eax
jns 0x140001611
lea r8, [rsi + 0x12]
lea rdx, [0x14002c890]
lea rcx, [0x14002c8cc]
call fcn.140002870
jmp 0x1400016df
mov ecx, dword [rsi + 0xc]
call fcn.140015570
mov r14, rax
test rax, rax
jne 0x140001641
mov r9d, dword [rsi + 0xc]
lea r8, [rsi + 0x12]
lea rdx, [0x14002c8e0]
lea rcx, [0x14002c6f4]
call fcn.140002870
jmp 0x1400016df
cmp byte [rsi + 0x10], 1
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r12
jne 0x14000166d
mov r9, r14
xor r8d, r8d
mov rdx, rsi
mov rcx, r15
call fcn.140001050
test eax, eax
je 0x1400016d0
jmp 0x1400016c5
mov ebx, dword [rsi + 0xc]
mov rbp, r14
test rbx, rbx
je 0x1400016d0
mov r12d, 0x2000
nop
cmp rbx, r12
mov rdi, rbx
mov r9, r15
mov r8d, 1
cmova rdi, r12
mov rcx, rbp
mov rdx, rdi
call fcn.140010abc
cmp rax, 1
jb 0x1400016ae
add rbp, rdi
sub rbx, rdi
jne 0x140001680
jmp 0x1400016d0
lea r8, [rsi + 0x12]
lea rdx, [0x14002c7d8]
lea rcx, [0x14002c80c]
call fcn.140002870
mov rcx, r14
call fcn.14001555c
xor r14d, r14d
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r12, qword [rsp + 0x50]
mov rcx, r15
call fcn.14001076c
mov rbx, qword [rsp + 0x58]
mov rax, r14
add rsp, 0x20
pop r15
pop r14
pop rsi
ret
Function at 0x140001700
Capabilities:
Read file on windows

Disassembly:
push rbx
push rdi
sub rsp, 0x38
cmp dword [rcx + 0x5074], 1
mov rdi, rdx
mov rbx, rcx
je 0x14000172e
lea rcx, [0x14002c930]
call fcn.140002b10
mov eax, 0xffffffff
add rsp, 0x38
pop rdi
pop rbx
ret
cmp byte [rdx + 0x11], 0x6e
jne 0x140001758
call fcn.1400012a0
mov ebx, eax
test eax, eax
jns 0x14000174f
lea rdx, [rdi + 0x12]
lea rcx, [0x14002c980]
call fcn.140002b10
mov eax, ebx
add rsp, 0x38
pop rdi
pop rbx
ret
mov qword [rsp + 0x50], rbp
add rcx, 0x3070
lea rbp, [rdx + 0x12]
mov qword [rsp + 0x60], r12
mov rdx, rbp
call fcn.140007c10
mov r12, rax
test rax, rax
jne 0x1400017a9
mov r8, rbp
lea rdx, [0x14002c9a8]
lea rcx, [0x14002c9dc]
call fcn.140002870
mov rbp, qword [rsp + 0x50]
lea eax, [r12 - 1]
mov r12, qword [rsp + 0x60]
add rsp, 0x38
pop rdi
pop rbx
ret
lea rcx, [rbx + 0x70]
mov qword [rsp + 0x20], r15
lea rdx, [0x14002c854]
call fcn.140003fc0
mov r15, rax
test rax, rax
jne 0x1400017de
mov rdx, rbp
lea rcx, [0x14002c858]
call fcn.140002b10
lea ebx, [r15 - 1]
jmp 0x14000191f
mov edx, dword [rdi + 4]
xor r8d, r8d
add rdx, qword [rbx]
mov rcx, r15
call fcn.140010df4
test eax, eax
jns 0x140001813
mov r8, rbp
lea rdx, [0x14002c890]
lea rcx, [0x14002c8cc]
call fcn.140002870
mov ebx, 0xffffffff
jmp 0x140001917
cmp byte [rdi + 0x10], 1
jne 0x140001831
xor r9d, r9d
mov r8, r12
mov rdx, rdi
mov rcx, r15
call fcn.140001050
mov ebx, eax
jmp 0x140001917
mov qword [rsp + 0x30], r13
xor ebx, ebx
mov r13d, 0x2000
mov qword [rsp + 0x28], r14
mov ecx, r13d
call fcn.140015570
mov r14, rax
test rax, rax
jne 0x140001872
mov r8, rbp
lea rdx, [0x14002c798]
lea rcx, [0x14002c6f4]
call fcn.140002870
lea ebx, [r14 - 1]
jmp 0x14000190d
mov edi, dword [rdi + 0xc]
test rdi, rdi
je 0x140001905
mov qword [rsp + 0x58], rsi
nop dword [rax]
nop word [rax + rax]
cmp rdi, r13
mov rsi, rdi
mov r9, r15
mov r8d, 1
cmova rsi, r13
mov rcx, r14
mov rdx, rsi
call fcn.140010abc
cmp rax, 1
jb 0x1400018e5
mov r9, r12
mov r8d, 1
mov rdx, rsi
mov rcx, r14
call fcn.1400111fc
cmp rax, 1
jb 0x1400018d5
sub rdi, rsi
jne 0x140001890
jmp 0x140001900
lea rdx, [0x14002c818]
lea rcx, [0x14002c84c]
jmp 0x1400018f3
lea rdx, [0x14002c7d8]
lea rcx, [0x14002c80c]
mov r8, rbp
call fcn.140002870
mov ebx, 0xffffffff
mov rsi, qword [rsp + 0x58]
mov rcx, r14
call fcn.14001555c
mov r13, qword [rsp + 0x30]
mov r14, qword [rsp + 0x28]
mov rcx, r15
call fcn.14001076c
mov rcx, r12
call fcn.14001076c
mov r15, qword [rsp + 0x20]
mov eax, ebx
mov rbp, qword [rsp + 0x50]
mov r12, qword [rsp + 0x60]
add rsp, 0x38
pop rdi
pop rbx
ret
Function at 0x140001a90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x14003f040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
lea rdx, [0x14002c854]
add rcx, 0x70
mov esi, 0xffffffff
call fcn.140003fc0
mov rdi, rax
test rax, rax
je 0x140001c79
mov rax, qword [0x14002eb08]
lea r8d, [rsi + 9]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
shr rax, 0x18
mov rcx, rdi
add al, 0xc
mov qword [rsp + 0x48], rbp
mov byte [rsp + 0x23], al
call fcn.1400082b0
mov rbp, rax
test rax, rax
je 0x140001c6c
xor r8d, r8d
mov rdx, rax
mov rcx, rdi
call fcn.140010df4
test eax, eax
jns 0x140001b34
lea rdx, [0x14002c9e8]
lea rcx, [0x14002c8cc]
call fcn.140002870
jmp 0x140001c6c
mov edx, 0x58
lea rcx, [rbx + 0x18]
mov r9, rdi
lea r8d, [rdx - 0x57]
call fcn.140010abc
cmp rax, 1
jae 0x140001b67
lea rdx, [0x14002ca10]
lea rcx, [0x14002c80c]
call fcn.140002870
jmp 0x140001c6c
mov ecx, dword [rbx + 0x20]
xor r8d, r8d
mov eax, dword [rbx + 0x24]
bswap eax
mov dword [rbx + 0x24], eax
mov eax, dword [rbx + 0x28]
bswap eax
mov dword [rbx + 0x28], eax
mov eax, dword [rbx + 0x2c]
bswap ecx
mov ecx, ecx
sub rbp, rcx
mov dword [rbx + 0x20], ecx
bswap eax
mov dword [rbx + 0x2c], eax
add rbp, 0x58
mov qword [rbx], rbp
mov rcx, rdi
mov dword [rbx + 0x5078], 0
mov dword [0x14003fd04], eax
mov edx, dword [rbx + 0x24]
add rdx, qword [rbx]
call fcn.140010df4
movsxd rcx, dword [rbx + 0x28]
call fcn.140015570
mov qword [rbx + 8], rax
test rax, rax
jne 0x140001bde
lea rdx, [0x14002ca28]
lea rcx, [0x14002c6f4]
call fcn.140002870
jmp 0x140001c6c
movsxd rdx, dword [rbx + 0x28]
mov r9, rdi
mov r8d, 1
mov rcx, rax
call fcn.140010abc
cmp rax, 1
jae 0x140001c0e
lea rdx, [0x14002ca50]
lea rcx, [0x14002c80c]
call fcn.140002870
jmp 0x140001c6c
movsxd rax, dword [rbx + 0x28]
mov rcx, rdi
add rax, qword [rbx + 8]
mov qword [rbx + 0x10], rax
call fcn.140010830
test eax, eax
je 0x140001c34
lea rcx, [0x14002ca70]
call fcn.140002b10
jmp 0x140001c6c
mov rax, qword [rbx + 8]
cmp rax, qword [rbx + 0x10]
jae 0x140001c6a
nop
mov ecx, dword [rax + 4]
mov edx, dword [rax]
bswap ecx
mov dword [rax + 4], ecx
mov ecx, dword [rax + 8]
bswap ecx
mov dword [rax + 8], ecx
mov ecx, dword [rax + 0xc]
bswap ecx
mov dword [rax + 0xc], ecx
bswap edx
mov dword [rax], edx
movsxd rcx, edx
add rax, rcx
cmp rax, qword [rbx + 0x10]
jb 0x140001c40
xor esi, esi
mov rcx, rdi
call fcn.14001076c
mov rbp, qword [rsp + 0x48]
mov eax, esi
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14000be00
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400075a0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x2040
call fcn.14000bda0
sub rsp, rax
mov rax, qword [0x14003f040]
xor rax, rsp
mov qword [rsp + 0x2030], rax
mov rbx, rdx
mov qword [rsp + 0x2078], rbp
lea rdx, [0x14002c854]
mov rbp, r8
call fcn.140003fc0
mov r9, rbx
mov qword [rsp + 0x28], rbp
lea r8, [0x14002c924]
mov dword [rsp + 0x20], 0x5c
mov edx, 0x1000
lea rcx, [rsp + 0x30]
mov rdi, rax
call fcn.140001ee0
cmp eax, 0x1000
jl 0x140007616
xor esi, esi
mov ebx, esi
jmp 0x1400076cc
lea rcx, [rsp + 0x30]
call fcn.140003f50
xor esi, esi
cmp eax, 1
jne 0x1400076a4
mov eax, dword [0x14003f004]
cmp eax, 0xffffffff
jne 0x140007673
lea rcx, [0x14002ec40]
call fcn.140007b60
mov r8, rax
test rax, rax
je 0x14000768d
movzx edx, byte [rax]
sub edx, 0x30
jne 0x140007658
movzx edx, byte [rax + 1]
movzx ecx, sil
sub edx, ecx
mov eax, esi
test edx, edx
mov rcx, r8
setne al
mov dword [0x14003f004], eax
call fcn.14001555c
mov eax, dword [0x14003f004]
test eax, eax
je 0x140007693
lea rdx, [rsp + 0x30]
lea rcx, [0x14002ec68]
call fcn.140002c30
mov rbx, rsi
jmp 0x1400076cc
mov dword [0x14003f004], esi
lea rdx, [rsp + 0x30]
lea rcx, [0x14002ec98]
call fcn.140002c30
mov rdx, rbp
mov rcx, rbx
call fcn.1400077c0
test eax, eax
jns 0x1400076b8
mov rbx, rsi
jmp 0x1400076cc
lea rdx, [0x14002eccc]
lea rcx, [rsp + 0x30]
call fcn.140003fc0
mov rbx, rax
mov rbp, qword [rsp + 0x2078]
test rdi, rdi
je 0x140007789
mov rcx, rdi
test rbx, rbx
je 0x140007791
call fcn.140010804
test eax, eax
jne 0x140007775
nop word [rax + rax]
mov r9, rdi
lea rcx, [rsp + 0x1030]
mov edx, 1
mov r8d, 0x1000
call fcn.140010abc
test rax, rax
jne 0x140007731
mov rcx, rdi
call fcn.140010830
test eax, eax
je 0x14000775a
mov rcx, rdi
jmp 0x14000776b
mov r9, rbx
lea rcx, [rsp + 0x1030]
mov r8, rax
mov edx, 1
call fcn.1400111fc
test rax, rax
je 0x140007768
mov rcx, rbx
call fcn.140010830
test eax, eax
jne 0x140007768
mov rcx, rdi
call fcn.140010804
test eax, eax
je 0x140007700
jmp 0x140007775
mov rcx, rbx
call fcn.1400190a0
mov esi, 0xffffffff
mov rcx, rdi
call fcn.14001076c
mov rcx, rbx
call fcn.14001076c
mov eax, esi
jmp 0x14000779b
test rbx, rbx
je 0x140007796
mov rcx, rbx
call fcn.14001076c
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x2030]
xor rcx, rsp
call fcn.14000be00
add rsp, 0x2040
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400082b0
Capabilities:
Read file on windows

Disassembly:
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r12, rcx
mov rsi, r8
mov ecx, 0x2000
mov r14, rdx
xor r13d, r13d
call fcn.140015570
mov r15, rax
test rax, rax
je 0x1400083c3
xor edx, edx
lea r8d, [r13 + 2]
mov rcx, r12
call fcn.140010df4
test eax, eax
js 0x1400083c3
mov rcx, r12
mov qword [rsp + 0x50], rbx
call fcn.140019650
mov rbx, rax
cmp rax, rsi
jb 0x1400083be
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rdi
nop dword [rax]
cmp rbx, 0x2000
lea rbp, [rbx - 0x2000]
cmovb rbp, r13
sub rbx, rbp
cmp rbx, rsi
jb 0x1400083b4
xor r8d, r8d
mov rdx, rbp
mov rcx, r12
call fcn.140010df4
test eax, eax
js 0x1400083b4
mov r9, r12
mov r8, rbx
mov edx, 1
mov rcx, r15
call fcn.140010abc
cmp rax, rbx
jne 0x1400083b4
sub rbx, rsi
add rbx, 1
je 0x14000839b
lea rdi, [r15 - 1]
add rdi, rbx
nop dword [rax]
nop dword [rax + rax]
mov r8, rsi
mov rdx, r14
mov rcx, rdi
call fcn.14002b720
test eax, eax
je 0x1400083ad
dec rdi
sub rbx, 1
jne 0x140008380
lea rbx, [rsi - 1]
add rbx, rbp
test rbp, rbp
jne 0x140008320
jmp 0x1400083b4
lea r13, [rbp - 1]
add r13, rbx
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
mov rcx, r15
call fcn.14001555c
mov rax, r13
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
Function at 0x14000c838
Capabilities:
Parse pe header

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

Function at 0x14001a6dc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001a4d8
Function at 0x1400bae74
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x14010ce00
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp], 0
jmp 0x14010ce28
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp], rax
jae 0x14010ce72
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rsp + 0x20]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
movabs rax, 0x100000001b3
mov rcx, qword [rsp + 0x20]
imul rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
jmp 0x14010ce1d
mov rax, qword [rsp + 0x20]
add rsp, 0x18
ret
Function at 0x1400bc517
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140163cf0
mov rax, rcx
neg rcx
test rax, 7
je 0x140163d0d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x140163d68
test al, 7
jne 0x140163d00
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x140163d21
mov rdx, qword [rax - 8]
test dl, dl
je 0x140163d92
test dh, dh
je 0x140163d8c
shr rdx, 0x10
test dl, dl
je 0x140163d86
test dh, dh
je 0x140163d80
shr rdx, 0x10
test dl, dl
je 0x140163d7a
test dh, dh
je 0x140163d74
shr edx, 0x10
test dl, dl
je 0x140163d6e
test dh, dh
jne 0x140163d21
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1400bc54e
Capabilities:
Query environment variable

Disassembly:
jmp 0x140213b80
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140213700
lea rcx, [rsp + 0x20]
call fcn.140213750
movzx eax, al
test eax, eax
jne 0x140213bc5
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.140213730
mov rax, qword [rsp + 0x40]
jmp 0x140213cbf
lea rcx, [rsp + 0x20]
call fcn.140213850
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.1402137f0
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.1400bc8c8
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400bbeb4
lea rcx, [rsp + 0x28]
call fcn.1400bcd96
movzx eax, al
test eax, eax
jne 0x140213c5f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.1400be23b
lea rcx, [rsp + 0x20]
call fcn.140213730
mov rax, qword [rsp + 0x50]
jmp 0x140213cbf
lea rcx, [rsp + 0x20]
call fcn.140213850
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1400bf1f4
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.1400bc80a
lea rcx, [rsp + 0x28]
call fcn.1400bfb5e
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.1400be23b
lea rcx, [rsp + 0x20]
call fcn.140213730
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x1400bca67
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140161ba0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140161520
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140161bdf
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 [0x1402ac020]
jmp 0x140161be9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x1400bccbf
Capabilities:
Query environment variable

Disassembly:
jmp 0x1402138d0
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140213700
lea rcx, [rsp + 0x40]
call fcn.140213880
movzx eax, al
test eax, eax
jne 0x140213918
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.140213730
mov rax, qword [rsp + 0x70]
jmp 0x140213ae9
lea rcx, [rsp + 0x40]
call fcn.140213850
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1402137f0
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.140213850
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.1400bde67
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1402139be
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.140213730
mov rax, qword [rsp + 0x80]
jmp 0x140213ae9
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1400bc8c8
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400bc6b1
lea rcx, [rsp + 0x48]
call fcn.1400bc0df
movzx eax, al
test eax, eax
jne 0x140213a25
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400bace9
lea rcx, [rsp + 0x40]
call fcn.140213730
mov rax, qword [rsp + 0x88]
jmp 0x140213ae9
lea rcx, [rsp + 0x48]
call fcn.1400bd1b0
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.140213850
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.1400bde67
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x140213abb
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400bace9
lea rcx, [rsp + 0x40]
call fcn.140213730
mov rax, qword [rsp + 0xa0]
jmp 0x140213ae9
lea rcx, [rsp + 0x48]
call fcn.1400bc66b
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400bace9
lea rcx, [rsp + 0x40]
call fcn.140213730
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x1400bccd8
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140161ad0
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1401614a0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140161b11
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 [0x1402ac020]
jmp 0x140161b17
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x1400bcda0
Capabilities:
Get geographical location

Disassembly:
jmp 0x1401fb130
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.1401fa060
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1401fb197
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 [0x1402ac030]
jmp 0x1401fb1b9
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400bc04e
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 0x1400bcdb4
Capabilities:
Terminate process

Disassembly:
jmp 0x14013e670
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]
add rsp, 0x28
ret
Function at 0x1400bd14c
Capabilities:
Print debug messages

Disassembly:
jmp 0x140221230
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x14028f080]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x140221256
jmp 0x1402212d3
mov rcx, qword [rbp + 0x30]
call fcn.1400bc517
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14022126f
jmp 0x1402212d3
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14022128c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400baf19
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.1400bb51d
test eax, eax
jne 0x1402212d3
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400bc7e7
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x1400bd57f
Capabilities:
Set environment variable

Disassembly:
jmp 0x140215a30
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 0x1400bd8c2
Capabilities:
Parse pe header

Disassembly:
jmp 0x140140080
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1401400a0
xor al, al
jmp 0x140140121
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1401400b3
xor al, al
jmp 0x140140121
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1401400dd
xor al, al
jmp 0x140140121
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1401400f1
xor al, al
jmp 0x140140121
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140140103
xor al, al
jmp 0x140140121
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14014011f
xor al, al
jmp 0x140140121
mov al, 1
add rsp, 0x38
ret
Function at 0x1400be128
Capabilities:
Terminate process

Disassembly:
jmp 0x140162e90
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x140162ebe
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.1400becea
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400bed6c
Capabilities:
Print debug messages

Disassembly:
jmp 0x1401f0f30
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x1400beecf
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140161c10
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140161560
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140161c59
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1402ac020]
jmp 0x140161c68
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x1400befd3
Capabilities:
Set environment variable

Disassembly:
jmp 0x14022bfc0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.1400bbe64
lea rcx, [rsp + 0x48]
call fcn.1400bbe64
call fcn.1400bcc42
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.1400bbb44
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14022c02f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.1400bc3be
lea rcx, [rsp + 0x78]
call fcn.1400bc3be
mov eax, dword [rsp + 0x24]
jmp 0x14022c0c0
call fcn.1400bcc42
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.1400bbb44
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x14022c076
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.1400bc3be
lea rcx, [rsp + 0x78]
call fcn.1400bc3be
mov eax, dword [rsp + 0x2c]
jmp 0x14022c0c0
lea rcx, [rsp + 0x48]
call fcn.1400bbd88
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.1400bbd88
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.1400bc3be
lea rcx, [rsp + 0x78]
call fcn.1400bc3be
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret