joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400015a7
Capabilities:
Check os version
Execute syscall

Disassembly:
mov rax, qword gs:[0x60]
cmp dword [rax + 0x118], 5
je 0x140001717
cmp dword [rax + 0x118], 6
je 0x1400015d8
cmp dword [rax + 0x118], 0xa
je 0x14000165e
jmp 0x1400017a9
cmp dword [rax + 0x11c], 0
je 0x140001609
cmp dword [rax + 0x11c], 1
je 0x14000163b
cmp dword [rax + 0x11c], 2
je 0x140001747
cmp dword [rax + 0x11c], 3
je 0x14000174e
jmp 0x1400017a9
cmp word [rax + 0x120], 0x1770
je 0x140001721
cmp word [rax + 0x120], 0x1771
je 0x14000172b
cmp word [rax + 0x120], 0x1772
je 0x140001732
jmp 0x1400017a9
cmp word [rax + 0x120], 0x1db0
je 0x140001739
cmp word [rax + 0x120], 0x1db1
je 0x140001740
jmp 0x1400017a9
cmp word [rax + 0x120], 0x2800
je 0x140001755
cmp word [rax + 0x120], 0x295a
je 0x14000175c
cmp word [rax + 0x120], 0x3839
je 0x140001763
cmp word [rax + 0x120], 0x3ad7
je 0x14000176a
cmp word [rax + 0x120], 0x3fab
je 0x140001771
cmp word [rax + 0x120], 0x42ee
je 0x140001778
cmp word [rax + 0x120], 0x4563
je 0x14000177f
cmp word [rax + 0x120], 0x47ba
je 0x140001786
cmp word [rax + 0x120], 0x47bb
je 0x14000178d
cmp word [rax + 0x120], 0x4a61
je 0x140001794
cmp word [rax + 0x120], 0x4a62
je 0x14000179b
cmp word [rax + 0x120], 0x4a63
je 0x1400017a2
jmp 0x1400017a9
mov eax, 0x15
jmp 0x1400017b1
mov eax, 0x15
jmp 0x1400017b1
mov eax, 0x15
jmp 0x1400017b1
mov eax, 0x15
jmp 0x1400017b1
mov eax, 0x15
jmp 0x1400017b1
mov eax, 0x15
jmp 0x1400017b1
mov eax, 0x16
jmp 0x1400017b1
mov eax, 0x17
jmp 0x1400017b1
mov eax, 0x18
jmp 0x1400017b1
mov eax, 0x18
jmp 0x1400017b1
mov eax, 0x18
jmp 0x1400017b1
mov eax, 0x18
jmp 0x1400017b1
mov eax, 0x18
jmp 0x1400017b1
mov eax, 0x18
jmp 0x1400017b1
mov eax, 0x18
jmp 0x1400017b1
mov eax, 0x18
jmp 0x1400017b1
mov eax, 0x18
jmp 0x1400017b1
mov eax, 0x18
jmp 0x1400017b1
mov eax, 0x18
jmp 0x1400017b1
mov eax, 0x18
jmp 0x1400017b1
mov eax, 0x18
jmp 0x1400017b1
mov r10, rcx
syscall
ret

Function at 0x140001f24
Capabilities:
Parse pe header

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

Function at 0x140008644
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140008440
Function at 0x14000d978
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 0x14000d9a8
xor eax, eax
jmp 0x14000da6b
mov rbp, rbx
cmp word [rax], si
je 0x14000d9cd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000d9b4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000d9b0
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.14000d898
movsxd r14, eax
test eax, eax
jne 0x14000da0b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000d9a1
mov rcx, r14
call fcn.14000a12c
mov rdi, rax
test rax, rax
jne 0x14000da24
xor ecx, ecx
call fcn.1400094b4
jmp 0x14000da00
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.14000d898
test eax, eax
jne 0x14000da55
mov rcx, rdi
call fcn.1400094b4
jmp 0x14000da5f
xor ecx, ecx
call fcn.1400094b4
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 0x140011d8c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140011da2
mov al, 1
jmp 0x140011e02
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140011db3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140011e00
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000e298
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140011e00
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140011e00
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140011e00
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140011e02
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140012e40
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.14000c968
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140012eca
cmp byte [rbp - 0x21], r15b
je 0x140012ec5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140012f00
call fcn.140009704
test eax, eax
jne 0x140012eec
cmp byte [rbp - 0x21], r15b
je 0x140012ee4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140012f00
cmp byte [rbp - 0x21], r15b
je 0x140012efd
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.14000bf48
test eax, eax
jne 0x140012fa0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000c968
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140012f3f
cmp byte [rbp - 0x21], r15b
je 0x140012f74
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140012f74
call fcn.140009704
test eax, eax
jne 0x140012f60
cmp byte [rbp - 0x21], r15b
je 0x140012f59
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140012f74
cmp byte [rbp - 0x21], r15b
je 0x140012f71
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.14000bf48
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140012fa0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140012fa3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140012fb1
mov rcx, rdi
call fcn.1400094b4
cmp byte [rbp + 0x3f], r15b
je 0x140012fc0
mov rcx, qword [rbp + 0x27]
call fcn.1400094b4
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 0x140015530
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140015558
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140015558
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400ba1ae
Capabilities:
Block operations on executable memory pages using arbitrary code guard

Disassembly:
jmp 0x1400cea10
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140292078]
xor rax, rbp
mov qword [rbp + 0xd8], rax
lea rcx, [0x1402ae0f7]
call fcn.1400bf2f8
lea rax, [rbp + 4]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
mov eax, dword [rbp + 4]
or eax, 1
mov dword [rbp + 4], eax
mov r8d, 4
lea rdx, [rbp + 4]
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_SetProcessMitigationPolicy]
lea rcx, [rbp - 0x20]
lea rdx, [0x140244a50]
call fcn.1400be475
mov rcx, qword [rbp + 0xd8]
xor rcx, rbp
call fcn.1400bc7dd
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x1400ba983
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x1400cebc0
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x3c8
lea rbp, [rsp + 0x20]
lea rcx, [0x1402ae0f7]
call fcn.1400bf2f8
call fcn.1400bf6c7
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
movsxd rax, dword [rax + 0x3c]
add rax, qword [rbp + 8]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
add rax, 0x88
mov qword [rbp + 0x68], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
mov eax, dword [rax]
mov dword [rbp + 0x84], eax
mov eax, dword [rbp + 0x84]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xa8]
mov eax, dword [rax + 0x14]
mov dword [rbp + 0xc4], eax
mov rax, qword [rbp + 0xa8]
mov eax, dword [rax + 0x18]
mov dword [rbp + 0xe4], eax
mov rax, qword [rbp + 0xa8]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x108], rax
mov rax, qword [rbp + 0xa8]
mov eax, dword [rax + 0x20]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0xa8]
mov eax, dword [rax + 0x24]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x148], rax
mov qword [rbp + 0x168], 0
jmp 0x1400cecd6
mov rax, qword [rbp + 0x168]
inc rax
mov qword [rbp + 0x168], rax
mov eax, dword [rbp + 0xc4]
cmp qword [rbp + 0x168], rax
jae 0x1400cee25
mov rax, qword [rbp + 0x108]
mov rcx, qword [rbp + 0x168]
cmp dword [rax + rcx*4], 0
jne 0x1400cecff
jmp 0x1400cecc5
mov rax, qword [rbp + 0x108]
mov rcx, qword [rbp + 0x168]
mov eax, dword [rax + rcx*4]
mov qword [rbp + 0x188], rax
mov qword [rbp + 0x1a8], 0
jmp 0x1400ced35
mov rax, qword [rbp + 0x1a8]
inc rax
mov qword [rbp + 0x1a8], rax
mov eax, dword [rbp + 0xe4]
cmp qword [rbp + 0x1a8], rax
jae 0x1400cee20
mov rax, qword [rbp + 0x148]
mov rcx, qword [rbp + 0x1a8]
movzx eax, word [rax + rcx*2]
cmp rax, qword [rbp + 0x168]
jne 0x1400cee1b
mov rax, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x1a8]
mov eax, dword [rax + rcx*4]
mov qword [rbp + 0x1c8], rax
mov rax, qword [rbp + 0x1c8]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x1e8], rax
mov dword [rbp + 0x204], 0
mov rax, qword [rbp + 0x1e8]
movsx eax, byte [rax]
test eax, eax
je 0x1400cedf6
mov eax, dword [rbp + 0x204]
shl eax, 0x19
mov ecx, dword [rbp + 0x204]
shr ecx, 7
or eax, ecx
mov dword [rbp + 0x204], eax
mov rax, qword [rbp + 0x1e8]
movsx eax, byte [rax]
mov ecx, dword [rbp + 0x204]
add ecx, eax
mov eax, ecx
mov dword [rbp + 0x204], eax
mov rax, qword [rbp + 0x1e8]
inc rax
mov qword [rbp + 0x1e8], rax
jmp 0x1400ceda1
mov eax, dword [rbp + 0x204]
cmp dword [rbp + 0x3c0], eax
jne 0x1400cee1b
mov rax, qword [rbp + 0x188]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax + 4]
jmp 0x1400cee25
jmp 0x1400ced24
jmp 0x1400cecc5
lea rsp, [rbp + 0x3a8]
pop rdi
pop rbp
ret
Function at 0x1400bae92
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x140106750
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp], 0
jmp 0x140106778
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp], rax
jae 0x1401067c2
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 0x14010676d
mov rax, qword [rsp + 0x20]
add rsp, 0x18
ret
Function at 0x1400bc4fe
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14016a660
mov rax, rcx
neg rcx
test rax, 7
je 0x14016a67d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x14016a6d8
test al, 7
jne 0x14016a670
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 0x14016a691
mov rdx, qword [rax - 8]
test dl, dl
je 0x14016a702
test dh, dh
je 0x14016a6fc
shr rdx, 0x10
test dl, dl
je 0x14016a6f6
test dh, dh
je 0x14016a6f0
shr rdx, 0x10
test dl, dl
je 0x14016a6ea
test dh, dh
je 0x14016a6e4
shr edx, 0x10
test dl, dl
je 0x14016a6de
test dh, dh
jne 0x14016a691
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 0x1400bc535
Capabilities:
Query environment variable

Disassembly:
jmp 0x140214be0
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140214760
lea rcx, [rsp + 0x20]
call fcn.1402147b0
movzx eax, al
test eax, eax
jne 0x140214c25
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.140214790
mov rax, qword [rsp + 0x40]
jmp 0x140214d1f
lea rcx, [rsp + 0x20]
call fcn.1402148b0
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.140214850
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.1400bc8b4
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400bbebe
lea rcx, [rsp + 0x28]
call fcn.1400bcd78
movzx eax, al
test eax, eax
jne 0x140214cbf
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.1400be23b
lea rcx, [rsp + 0x20]
call fcn.140214790
mov rax, qword [rsp + 0x50]
jmp 0x140214d1f
lea rcx, [rsp + 0x20]
call fcn.1402148b0
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1400bf20d
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.1400bc7fb
lea rcx, [rsp + 0x28]
call fcn.1400bfb7c
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.1400be23b
lea rcx, [rsp + 0x20]
call fcn.140214790
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret

Function at 0x1400bc71a
Capabilities:
Execute syscall

Disassembly:
jmp 0x1400d33c1
mov r10, rcx
mov eax, dword [0x140292040]
syscall
ret
Function at 0x1400bca49
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1401610d0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140160a50
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14016110f
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 [0x1402af020]
jmp 0x140161119
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x1400bccab
Capabilities:
Query environment variable

Disassembly:
jmp 0x140214930
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140214760
lea rcx, [rsp + 0x40]
call fcn.1402148e0
movzx eax, al
test eax, eax
jne 0x140214978
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.140214790
mov rax, qword [rsp + 0x70]
jmp 0x140214b49
lea rcx, [rsp + 0x40]
call fcn.1402148b0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140214850
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.1402148b0
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.1400bde58
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140214a1e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.140214790
mov rax, qword [rsp + 0x80]
jmp 0x140214b49
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1400bc8b4
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400bc69d
lea rcx, [rsp + 0x48]
call fcn.1400bc0e4
movzx eax, al
test eax, eax
jne 0x140214a85
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400bad0c
lea rcx, [rsp + 0x40]
call fcn.140214790
mov rax, qword [rsp + 0x88]
jmp 0x140214b49
lea rcx, [rsp + 0x48]
call fcn.1400bd18d
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.1402148b0
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.1400bde58
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x140214b1b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400bad0c
lea rcx, [rsp + 0x40]
call fcn.140214790
mov rax, qword [rsp + 0xa0]
jmp 0x140214b49
lea rcx, [rsp + 0x48]
call fcn.1400bc657
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400bad0c
lea rcx, [rsp + 0x40]
call fcn.140214790
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x1400bccc4
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140161000
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1401609d0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140161041
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 [0x1402af020]
jmp 0x140161047
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x1400bcd82
Capabilities:
Get geographical location

Disassembly:
jmp 0x1401f53f0
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.1401f4360
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1401f5457
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 [0x1402af030]
jmp 0x1401f5479
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400bc05d
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 0x1400bcd96
Capabilities:
Terminate process

Disassembly:
jmp 0x14013de50
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 0x1400bd11f
Capabilities:
Print debug messages

Disassembly:
jmp 0x140222230
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x140292078]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x140222256
jmp 0x1402222d3
mov rcx, qword [rbp + 0x30]
call fcn.1400bc4fe
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14022226f
jmp 0x1402222d3
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14022228c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400baf37
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.1400bb52c
test eax, eax
jne 0x1402222d3
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400bc7dd
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x1400bd55c
Capabilities:
Set environment variable

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

Disassembly:
jmp 0x14013f870
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14013f890
xor al, al
jmp 0x14013f911
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14013f8a3
xor al, al
jmp 0x14013f911
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 0x14013f8cd
xor al, al
jmp 0x14013f911
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14013f8e1
xor al, al
jmp 0x14013f911
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14013f8f3
xor al, al
jmp 0x14013f911
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14013f90f
xor al, al
jmp 0x14013f911
mov al, 1
add rsp, 0x38
ret
Function at 0x1400be123
Capabilities:
Terminate process

Disassembly:
jmp 0x1401620e0
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 0x14016210e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.1400becf4
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 0x1400be69b
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400cf130
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x188]
mov rax, qword [0x140292078]
xor rax, rbp
mov qword [rbp + 0x118], rax
lea rcx, [0x1402ae0f7]
call fcn.1400bf2f8
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, qword [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp + 8], rax
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x24]
mov r8d, dword [rbp + 0x150]
mov rdx, qword [rbp + 0x148]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
je 0x1400cf208
lea rdx, str.Write_File_Succes
lea rcx, [0x140294ad0]
call fcn.1400ba90b
lea rdx, [0x1400ba33e]
mov rcx, rax
call fcn.1400bca12
lea rcx, [rbp - 0x40]
lea rdx, [0x140244ae0]
call fcn.1400be475
mov rcx, qword [rbp + 0x118]
xor rcx, rbp
call fcn.1400bc7dd
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x1400bed76
Capabilities:
Print debug messages

Disassembly:
jmp 0x1401f2ac0
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