joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180054670
Capabilities:
Download url
Receive data

Disassembly:
push rdi
sub rsp, 0xb0
mov rax, qword [0x1800d2070]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rdi, rcx
call fcn.180054234
and qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, str.C:Windows_newver
lea rdx, str.https:__cdn.discordapp.com_attachments_1125752354139025512_1159852964484218900_newver_ex6532883fis6520133fhm0505ed4f7108c53b8f42c04f81cdb44d0590afd49f387a28dc133f5ea3014a3b
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
xor ecx, ecx
test eax, eax
sets cl
cmp ecx, 1
je 0x1800548c6
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x50], 0
cmp qword [0x1800ed0a0], 0
jne 0x1800546ed
mov rcx, rdi
call fcn.1800550f8
test al, al
je 0x1800548ad
lea rcx, str.rust.temp
mov rax, qword [0x1800ed1b0]
mov qword [rax + 0x20], rcx
mov dword [rax + 0x1c], 0x56b5e621
mov byte [rax + 0x3a4], 0
cmp qword [0x1800ed2c8], 0
jne 0x1800547a5
or eax, 0xffffffff
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x6c], eax
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x74], eax
mov dword [rsp + 0x78], eax
or dword [rsp + 0x7c], 0xffffffff
mov dword [rsp + 0x80], eax
mov dword [rsp + 0x84], eax
mov dword [rsp + 0x88], eax
mov dword [rsp + 0x8c], 0xfffffffd
mov dword [rsp + 0x90], eax
mov dword [rsp + 0x94], eax
and qword [rsp + 0x98], 0
and qword [rsp + 0x30], 0
lea rax, [0x1800ed2c8]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov r8d, 0x1553f
lea rdx, [0x1800d50c0]
mov rcx, qword [0x1800ed0b8]
call qword [sym.imp.d3dx11_43.dll_D3DX11CreateShaderResourceViewFromMemory]
cmp qword [0x1800ed7f0], 0
jne 0x1800547b4
call fcn.18001bff0
call fcn.18001c794
call fcn.180021328
cmp byte [0x1800ed10c], 0
je 0x18005481d
xorps xmm1, xmm1
movss xmm0, dword [0x1800ecfac]
ucomiss xmm0, xmm1
jp 0x1800547d9
je 0x18005481d
movss xmm0, dword [0x1800ecfa8]
ucomiss xmm0, xmm1
jp 0x1800547e8
je 0x18005481d
mov rcx, qword [0x1800ed1b8]
call fcn.1800279dc
nop
call fcn.18001624c
jmp 0x1800547fc
cmp dword [0x1800d31ec], 0
je 0x18005480a
call fcn.18004f064
cmp byte [0x1800ea7e8], 0
je 0x180054818
call fcn.180053198
call fcn.180027a74
call fcn.1800228b0
call fcn.180022b60
mov rcx, qword [0x1800ed0a8]
mov rax, qword [rcx]
xor r9d, r9d
lea r8, [0x1800ed2c0]
lea edx, [r9 + 1]
call qword [rax + 0x108]
mov rdx, qword [0x1800ed1b0]
add rdx, 0x1d98
mov al, byte [rdx]
neg al
sbb rcx, rcx
and rcx, rdx
call fcn.18001b408
mov rdx, qword [0x1800ed1b0]
mov r8b, byte [rdx + 0x1d98]
lea rax, [rdx + 0x1dc0]
mov ecx, 0x28
test r8b, r8b
cmovne rcx, rax
movss xmm0, dword [rcx]
movss dword [0x1800ecfac], xmm0
lea rax, [rdx + 0x1dbc]
mov ecx, 0x24
cmovne rcx, rax
movss xmm0, dword [rcx]
movss dword [0x1800ecfa8], xmm0
jmp 0x1800548ad
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.180072690
add rsp, 0xb0
pop rdi
ret
lea r9d, [rcx + 0xf]
lea r8, str.outdated
lea rdx, str.outdated__please_download_the_new_version_discord.gg_HMvqUjAzEj
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor ecx, ecx
call fcn.180088290
nop
Function at 0x18005f270
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 0x18005f290
xor eax, eax
jmp 0x18005f376
cmp qword [rcx + 0x68], 0
je 0x18005f2a1
call fcn.180056070
jmp 0x18005f376
mov rax, qword [rcx + 0x38]
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x18005f2b8
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18005f2ba
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18005f2ec
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.180074e00
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 0x18005f370
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x18005f323
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 0x18005f34c
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.180081dd0
add r14, rax
sub rdi, rax
cmp rax, rbx
jne 0x18005f370
cmp rdi, rbx
ja 0x18005f32a
test rdi, rdi
je 0x18005f370
mov r9, qword [rsi + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call fcn.180081dd0
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 0x18006d240
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.18006d460
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x18006d347
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x18006d2a4
mov rax, qword [0x1800d2008]
cmp qword [rsp + 0x20], rax
ja 0x18006d2a4
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18006d266
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1800754b0
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18006d2d3
jmp 0x18006d347
cmp dword [rsp + 0x50], 0x10000
jne 0x18006d32a
cmp qword [rsp + 0x48], 0x10000
jb 0x18006d32a
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18006d318
mov rax, qword [rsp + 0x28]
jmp 0x18006d349
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18006d342
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.18006d460
mov qword [rsp + 0x20], rax
jmp 0x18006d266
xor eax, eax
add rsp, 0x68
ret
Function at 0x18006d350
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.18006d4a0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x18006d453
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x18006d3ab
mov rax, qword [0x1800d2008]
cmp qword [rsp + 0x20], rax
ja 0x18006d3ab
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18006d36d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1800754b0
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18006d3da
jmp 0x18006d453
cmp dword [rsp + 0x50], 0x10000
jne 0x18006d431
cmp qword [rsp + 0x48], 0x10000
jb 0x18006d431
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18006d41f
mov rax, qword [rsp + 0x28]
jmp 0x18006d455
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18006d44e
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.18006d4a0
mov qword [rsp + 0x20], rax
jmp 0x18006d36d
xor eax, eax
add rsp, 0x68
ret
Function at 0x18006d4f0
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.18006da80
mov qword [rsp + 0x28], 0
cmp qword [0x1800eb528], 0
jne 0x18006d538
cmp qword [0x1800eb520], 0
je 0x18006d538
mov rax, qword [0x1800eb520]
mov qword [0x1800eb528], rax
cmp qword [0x1800eb528], 0
je 0x18006d5de
mov rax, qword [0x1800eb528]
cmp qword [rax + 0x10], 0
je 0x18006d5de
mov rax, qword [0x1800eb528]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18006d5de
mov rax, qword [0x1800eb528]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18006d5de
mov rax, qword [0x1800eb528]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x18006d5a4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x18006d5ab
xor eax, eax
jmp 0x18006d759
mov rax, qword [0x1800eb528]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call fcn.1800754b0
mov rax, qword [rsp + 0x28]
jmp 0x18006d759
mov rax, qword [0x1800eb520]
mov qword [0x1800eb528], rax
jmp 0x18006d600
mov rax, qword [0x1800eb528]
mov rax, qword [rax + 8]
mov qword [0x1800eb528], rax
cmp qword [0x1800eb528], 0
je 0x18006d64d
cmp qword [0x1800eb528], 0
je 0x18006d64b
mov rax, qword [0x1800eb528]
cmp qword [rax + 0x10], 0
je 0x18006d64b
mov rax, qword [0x1800eb528]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18006d64b
mov rax, qword [0x1800eb528]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18006d64b
jmp 0x18006d57c
jmp 0x18006d5ee
mov rcx, qword [rsp + 0x60]
call fcn.18006f900
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.18006d760
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x18006d757
mov rax, qword [rsp + 0x48]
mov qword [0x1800eb528], rax
mov rax, qword [0x1800eb528]
mov dword [rax], 0x52727464
mov rax, qword [0x1800eb528]
mov qword [rax + 0x10], 0
mov rax, qword [0x1800eb528]
mov rcx, qword [0x1800eb520]
mov qword [rax + 8], rcx
mov rax, qword [0x1800eb528]
mov qword [0x1800eb520], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x1800eb528]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x18006d708
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x18006d742
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x18006d6fe
mov rax, qword [0x1800eb528]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18006d57c
xor eax, eax
add rsp, 0x58
ret
Function at 0x18007182c
Capabilities:
Get geographical location

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

Function at 0x180080404
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.180073580
sub rsp, rax
mov rax, qword [0x1800d2070]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1800943c4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180080453
mov rax, rbp
jmp 0x18008055b
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xec770]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180094934
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0xec770]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180080557
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 0x180080557
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180094934
test rax, rax
js 0x180080557
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180080557
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180080549
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180080549
cmp byte [rcx], 0xd
jne 0x18008052f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18008053e
cmp byte [rcx + 1], 0xa
jne 0x18008053e
inc rcx
jmp 0x18008053e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xd2470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180080511
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18008055b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180072690
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 0x180088290
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 0x180088137
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180088137
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180088137
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180088137
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180088137
cmp dword [rcx + 0x84], 0xe
jbe 0x180088137
cmp dword [rcx + 0xf8], 0
je 0x180088137
mov ecx, ebx
call fcn.1800881f4
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.180087fc4
nop
cmp dword [rbp + 0x20], 0
je 0x180088185
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180088190
int3
xor r8d, r8d
xor edx, edx
jmp 0x1800880c8
Function at 0x1800949e0
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, [0x1800ec770]
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 0x180094a3e
cmp word [rdx], r12w
jne 0x180094a3e
or byte [rax + r8*8 + 0x38], cl
jmp 0x180094a44
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x180094b9f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x180094b7a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x180094a7d
mov rcx, r9
jmp 0x180094aa0
cmp r9, rdx
jae 0x180094ab7
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 0x180094a61
jmp 0x180094b9f
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 0x180094b74
cmp dword [rsp + 0x80], edi
je 0x180094b74
mov rdx, r14
lea r11, [0x1800ec770]
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 0x180094b4d
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x180094b20
mov word [rbx], r12w
jmp 0x180094b9b
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 0x180094b29
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x180094b9b
cmp word [rsp + 0x70], r12w
jne 0x180094b5a
cmp rbx, rsi
je 0x180094b1a
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.18009493c
cmp word [rsp + 0x70], r12w
je 0x180094b9f
mov word [rbx], r13w
jmp 0x180094b9b
lea r11, [0x1800ec770]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x180094b97
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x180094b9f
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 0x1800972f4
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 0x180097326
call fcn.180088944
mov dword [rax], 0x16
call fcn.180079724
jmp 0x180097445
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x180097445
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x180097445
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x180097355
lock or dword [rcx + 0x14], 0x10
jmp 0x180097445
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x180097369
call fcn.1800994dc
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1800943c4
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.180094e8c
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x180097433
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1800973fe
mov rcx, rsi
call fcn.1800943c4
cmp eax, edi
je 0x1800973e9
mov rcx, rsi
call fcn.1800943c4
cmp eax, 0xfffffffe
je 0x1800973e9
mov rcx, rsi
call fcn.1800943c4
movsxd rbx, eax
lea r14, [0x1800ec770]
mov rcx, rsi
sar rbx, 6
call fcn.1800943c4
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1800973f0
lea rdx, [0x1800d2420]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1800973fe
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x180097422
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x180097422
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x180097422
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 0x180097448
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 0x18009c57c
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 0x18009c5ac
xor eax, eax
jmp 0x18009c66f
mov rbp, rbx
cmp word [rax], si
je 0x18009c5d1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18009c5b8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18009c5b4
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.180098150
movsxd r14, eax
test eax, eax
jne 0x18009c60f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18009c5a5
mov rcx, r14
call fcn.1800930a8
mov rdi, rax
test rax, rax
jne 0x18009c628
xor ecx, ecx
call fcn.180092144
jmp 0x18009c604
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.180098150
test eax, eax
jne 0x18009c659
mov rcx, rdi
call fcn.180092144
jmp 0x18009c663
xor ecx, ecx
call fcn.180092144
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 0x18009c68c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x18009c713
mov rsi, rbx
cmp word [rax], bp
je 0x18009c6d2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x18009c6bc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x18009c6b8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1800930a8
mov rdi, rax
test rax, rax
je 0x18009c700
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.180074e00
mov rbp, rdi
xor ecx, ecx
call fcn.180092144
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800a458c
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.18007ef70
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1800a4616
cmp byte [rbp - 0x21], r15b
je 0x1800a4611
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1800a464c
call fcn.180092448
test eax, eax
jne 0x1800a4638
cmp byte [rbp - 0x21], r15b
je 0x1800a4630
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1800a464c
cmp byte [rbp - 0x21], r15b
je 0x1800a4649
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.180088444
test eax, eax
jne 0x1800a46ec
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.18007ef70
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1800a468b
cmp byte [rbp - 0x21], r15b
je 0x1800a46c0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1800a46c0
call fcn.180092448
test eax, eax
jne 0x1800a46ac
cmp byte [rbp - 0x21], r15b
je 0x1800a46a5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1800a46c0
cmp byte [rbp - 0x21], r15b
je 0x1800a46bd
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.180088444
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1800a46ec
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1800a46ef
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1800a46fd
mov rcx, rdi
call fcn.180092144
cmp byte [rbp + 0x3f], r15b
je 0x1800a470c
mov rcx, qword [rbp + 0x27]
call fcn.180092144
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