joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401ae128
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r14, r9
mov r15, r8
mov rbx, rdx
mov rdi, rcx
mov rsi, qword [rsp + 0xa0]
mov rax, qword [0x14071e300]
xor rax, rsp
mov qword [rsp + 0x48], rax
test rsi, rsi
je 0x1401ae0cc
lea rax, [rsp + 0x44]
mov dword [rax], 0
lea rcx, [rsp + 0x40]
mov dword [rcx], 4
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov rcx, rdi
xor edx, edx
mov r8, rbx
mov r9d, 0x10
call qword [sym.imp.advapi32.dll_RegGetValueW]
test eax, eax
je 0x1401ae0f5
mov rcx, rdi
mov rdx, rbx
mov r8, r15
mov r9, r14
call 0x1401ae128
test al, al
je 0x1401ae107
mov rcx, qword [r15]
test rcx, rcx
je 0x1401ae124
xor edx, edx
mov r8d, 0xa
call sub.api_ms_win_crt_convert_l1_1_0.dll_wcstol
cmp eax, 1
jmp 0x1401ae0fa
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140251a80
mov rcx, rdi
mov rdx, rbx
mov r8, r15
mov r9, r14
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp 0x1401ae128
cmp dword [rsp + 0x44], 1
sete al
movzx eax, al
mov dword [rsi], eax
mov sil, 1
jmp 0x1401ae109
xor esi, esi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140251a80
mov eax, esi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
xor eax, eax
jmp 0x1401ae0fd
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x250
mov r15, r9
mov r14, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14071e300]
xor rax, rsp
mov qword [rsp + 0x248], rax
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
xor edx, edx
call fcn.140258470
lea rax, [rsp + 0x3c]
mov dword [rax], 0x104
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
mov rcx, rsi
xor edx, edx
mov r8, rbx
mov r9d, 2
call qword [sym.imp.advapi32.dll_RegGetValueW]
mov ebx, eax
test eax, eax
jne 0x1401ae1b9
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.1401ad7f2
mov rcx, r15
call fcn.1401ad9b0
mov qword [r14], rax
test ebx, ebx
sete bl
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.140251a80
mov eax, ebx
add rsp, 0x250
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1401ae28f
Capabilities:
Print debug messages

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov rsi, r9
mov ebp, r8d
mov r14d, edx
mov rbx, rcx
mov rax, qword [0x14071e300]
xor rax, rsp
mov qword [rsp + 0x58], rax
call qword [sym.imp.kernel32.dll_LoadLibraryW]
test rax, rax
je 0x1401ae309
mov rdi, rax
lea rdx, str.CreateWebViewEnvironmentWithOptionsInternal
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x1401ae39e
mov rcx, qword [rsp + 0xb8]
mov r9, qword [rsp + 0xb0]
mov qword [rsp + 0x20], rcx
mov ecx, r14d
mov edx, ebp
mov r8, rsi
call qword [0x14026e968]
mov esi, eax
mov dword [rsp + 0x54], eax
jmp 0x1401ae420
call qword [sym.imp.kernel32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
lea rbp, [rsp + 0x54]
mov dword [rbp], esi
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x140630b30]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.1401ad6fc
mov edx, 4
mov rcx, rbp
mov r8b, 1
mov r9, rdi
call fcn.1401ae1e0
lea rcx, str.WebView2:_CoreWebView2Environment_failed_when_trying_to_LoadLibrary:_hr0x
mov rbp, qword [sym.imp.kernel32.dll_OutputDebugStringW]
call rbp
mov rcx, rdi
call fcn.1401ad9b0
mov rcx, rax
call rbp
lea rcx, str._path
call rbp
mov rcx, rbx
call rbp
lea rcx, [0x140631182]
call rbp
mov rcx, rdi
call fcn.1401ad70e
jmp 0x1401ae43e
call qword [sym.imp.kernel32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
lea rbp, [rsp + 0x54]
mov dword [rbp], esi
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x30]
mov qword [rbx + 0x10], rax
movaps xmm0, xmmword [0x140630b30]
movaps xmmword [rbx], xmm0
mov rcx, rbx
call fcn.1401ad6fc
mov edx, 4
mov rcx, rbp
mov r8b, 1
mov r9, rbx
call fcn.1401ae1e0
lea rcx, str.WebView2:_CoreWebView2Environment_failed_when_trying_to_call_into_EmbeddedBrowserWebView.dll._hr0x
mov rbp, qword [sym.imp.kernel32.dll_OutputDebugStringW]
call rbp
mov rcx, rbx
call fcn.1401ad9b0
mov rcx, rax
call rbp
lea rcx, [0x140631182]
call rbp
mov rcx, rbx
call fcn.1401ad70e
lea rdx, str.DllCanUnloadNow
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x1401ae43e
mov rcx, rdi
call qword [sym.imp.kernel32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140251a80
mov eax, esi
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x1401ae458
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
xor edx, edx
xor r8d, r8d
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1401ae4ac
mov ebx, eax
mov edx, eax
mov rcx, rsi
call fcn.1401ad76a
test al, al
je 0x1401ae4ac
mov rcx, rsi
call fcn.1401ad9b0
mov rcx, rdi
mov rdx, rax
mov r8d, ebx
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov edx, eax
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1401ad8b4
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x1401b5970
Capabilities:
Encode data using xor

Disassembly:
push rbp
sub rsp, 0xb0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x28], 0xfffffffffffffffe
mov qword [rbp + 0x18], rcx
mov rax, qword [rcx]
nop
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x1401b5990
test al, 1
je 0x1401b5a59
test al, 2
jne 0x1401b5a73
xor rax, 3
mov qword [rbp], rax
mov rcx, rbp
lea rdx, [rbp + 0x18]
call fcn.1401bced0
test rax, rax
je 0x1401b59ee
mov qword [rbp + 0x10], rax
mov rcx, rax
mov qword [rbp + 0x20], rdx
call qword [rdx]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax + 8]
test rdx, rdx
mov rcx, qword [rbp + 0x10]
je 0x1401b59ee
mov r8, qword [rax + 0x10]
call fcn.1401047d0
mov rcx, qword [rbp + 0x18]
mov qword [rbp + 8], 1
mov rax, 0xffffffffffffffc0
lock xadd qword [rcx], rax
shr rax, 6
cmp rax, qword [rbp + 8]
jb 0x1401b5a8d
jne 0x1401b5a4f
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x20], rax
lea rcx, [rax + 0x28]
call fcn.1401b0970
mov rax, qword [rbp + 0x20]
mov rax, qword [rax + 0x58]
test rax, rax
je 0x1401b5a3b
mov rcx, qword [rbp + 0x20]
mov rcx, qword [rcx + 0x60]
call qword [rax + 0x18]
mov edx, 0x80
mov r8d, 0x80
mov rcx, qword [rbp + 0x20]
call fcn.1401047d0
nop
add rsp, 0xb0
pop rbp
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x140632ed8]
mov edx, 0x23
call fcn.14026c9a0
ud2
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x140632f18]
mov edx, 0x25
call fcn.14026c9a0
ud2
mov qword [rbp - 8], rax
lea rax, [rbp - 8]
mov qword [rbp - 0x28], rax
lea rax, [fcn.140250b70]
mov qword [rbp - 0x20], rax
lea rcx, [rbp + 8]
mov qword [rbp - 0x18], rcx
mov qword [rbp - 0x10], rax
lea rax, str.current:___sub:_0_c_
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], 2
mov qword [rbp - 0x38], 0
lea rax, [rbp - 0x28]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], 2
lea rdx, [0x140632f60]
lea rcx, [rbp - 0x58]
call fcn.14026c8f0
ud2

Function at 0x1401b8b50
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
nop word [rax + rax]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x1401b8b60
test al, 1
je 0x1401b8b7f
test al, 2
jne 0x1401b8b99
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x140632ed8]
mov edx, 0x23
call fcn.14026c9a0
ud2
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x140632f18]
mov edx, 0x25
call fcn.14026c9a0
ud2
Function at 0x1401c7620
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x1401defc0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x1401df002
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 4
jb 0x1401df00a
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x1401df01b
jmp 0x1401df032
xor r10d, r10d
jmp 0x1401df0bd
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x1401df032
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x1401df049
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x1401df069
add r11, r8
jmp 0x1401df19a
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x1401df132
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x1401df0e0
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 4
jb 0x1401df150
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x1401df162
jmp 0x1401df17c
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x1401df17c
lea rcx, [r8 + r10]
movzx esi, word [rdx + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x1401df196
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret
Function at 0x1401e1cf0
Capabilities:
Hash data using fnv

Disassembly:
push rsi
cmp qword [rcx + 0x18], 0
je 0x1401e1ddf
mov eax, dword [rdx]
mov edx, eax
shr edx, 0x10
mov r8d, eax
shr r8d, 0x18
movzx r9d, al
movabs r10, 0xcbf29ce484222325
xor r10, r9
movabs r9, 0x100000001b3
imul r10, r9
movzx esi, ah
xor rsi, r10
imul rsi, r9
movzx edx, dl
xor rdx, rsi
imul rdx, r9
xor rdx, r8
imul rdx, r9
mov r8, qword [rcx]
mov rcx, qword [rcx + 8]
mov r9, rdx
shr r9, 0x39
movd xmm0, r9d
punpcklbw xmm0, xmm0
pshuflw xmm0, xmm0, 0
pshufd xmm0, xmm0, 0
xor r9d, r9d
pcmpeqd xmm1, xmm1
and rdx, rcx
movdqu xmm2, xmmword [r8 + rdx]
movdqa xmm3, xmm2
pcmpeqb xmm3, xmm0
pmovmskb r10d, xmm3
nop word cs:[rax + rax]
test r10w, r10w
je 0x1401e1dc0
lea r11d, [r10 - 1]
and r11d, r10d
tzcnt r10d, r10d
add r10, rdx
and r10, rcx
shl r10, 2
mov rsi, r8
sub rsi, r10
mov r10d, r11d
cmp eax, dword [rsi - 4]
jne 0x1401e1d90
jmp 0x1401e1ddb
pcmpeqb xmm2, xmm1
pmovmskb r10d, xmm2
test r10d, r10d
jne 0x1401e1ddf
add rdx, r9
add rdx, 0x10
add r9, 0x10
jmp 0x1401e1d6c
mov al, 1
pop rsi
ret
xor eax, eax
pop rsi
ret

Function at 0x1401e1df0
Capabilities:
Hash data using fnv

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov ebx, edx
mov rsi, rcx
mov eax, edx
shr eax, 0x10
mov ecx, edx
shr ecx, 0x18
movzx edx, bl
movabs r8, 0xcbf29ce484222325
xor r8, rdx
movabs rdx, 0x100000001b3
imul r8, rdx
movzx ebp, bh
xor rbp, r8
imul rbp, rdx
movzx edi, al
xor rdi, rbp
imul rdi, rdx
xor rdi, rcx
imul rdi, rdx
cmp qword [rsi + 0x10], 0
je 0x1401e1f02
mov rax, qword [rsi]
mov rdx, qword [rsi + 8]
mov rcx, rdi
shr rcx, 0x39
movd xmm0, ecx
punpcklbw xmm0, xmm0
pshuflw xmm0, xmm0, 0
pshufd xmm0, xmm0, 0
xor r10d, r10d
pcmpeqd xmm1, xmm1
xor r11d, r11d
and rdi, rdx
movdqu xmm2, xmmword [rax + rdi]
movdqa xmm3, xmm2
pcmpeqb xmm3, xmm0
pmovmskb ebp, xmm3
nop dword [rax]
mov r9d, ebp
test bp, bp
je 0x1401e1ec0
lea ebp, [r9 - 1]
and ebp, r9d
tzcnt r14d, r9d
add r14, rdi
and r14, rdx
shl r14, 2
mov r15, rax
sub r15, r14
cmp dword [r15 - 4], ebx
jne 0x1401e1e90
jmp 0x1401e1f61
cmp r11, 1
mov r11d, 1
je 0x1401e1ee6
pmovmskb r8d, xmm2
xor r11d, r11d
test r8d, r8d
setne r11b
tzcnt r8d, r8d
add r8, rdi
and r8, rdx
pcmpeqb xmm2, xmm1
pmovmskb ebp, xmm2
test ebp, ebp
jne 0x1401e1f18
add rdi, r10
add rdi, 0x10
add r10, 0x10
jmp 0x1401e1e79
lea r8, [rsi + 0x20]
mov edx, 1
mov rcx, rsi
call fcn.140269520
jmp 0x1401e1e4f
movzx r10d, byte [rax + r8]
test r10b, r10b
js 0x1401e1f35
movdqa xmm0, xmmword [rax]
pmovmskb r8d, xmm0
tzcnt r8d, r8d
movzx r10d, byte [rax + r8]
and r10b, 1
movzx r10d, r10b
sub qword [rsi + 0x10], r10
lea r10, [r8 - 0x10]
and r10, rdx
mov byte [rax + r8], cl
mov byte [r10 + rax + 0x10], cl
inc qword [rsi + 0x18]
shl r8, 2
neg r8
mov dword [rax + r8 - 4], ebx
test r9w, r9w
setne al
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1401ecec0
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
test rdx, rdx
je 0x1401ecf32
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
mov r15, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov r12, qword [sym.imp.advapi32.dll_SystemFunction036]
jmp 0x1401ecef8
add rdi, rbx
sub rsi, rbx
je 0x1401ecf32
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
xor ecx, ecx
mov rdx, rdi
mov r8d, ebx
mov r9d, 2
call r15
cmp eax, 0xbfffffff
jbe 0x1401ecef0
mov ebp, eax
mov rcx, rdi
mov edx, ebx
call r12
test al, al
jne 0x1401ecef0
add ebp, 0x80000000
jmp 0x1401ecf34
xor ebp, ebp
mov eax, ebp
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1402224e0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x140222570
jmp 0x14022255f
jae 0x140222630
cmp r8, 0x201
jae 0x140222570
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x1402225c8
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x14022259f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14026b9e0
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x1402225f1
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x140222698
mov r8d, r14d
cmp r15, r8
jne 0x140222550
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1402226bb
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14022255f
jmp 0x140222570
cmp rsi, r8
jb 0x1402226d5
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140225f90
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x140222681
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.1401047d0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x140222669
jmp 0x140222681
lea rcx, [0x14069c950]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14026c9a0
jmp 0x1402226ea
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14026ce90
ud2
Function at 0x140222840
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x60]
call fcn.140237c80
mov rax, qword [rbp - 0x60]
mov qword [rbp + 0x408], rax
test rax, rax
je 0x1402229c6
mov qword [rbp + 0x400], rsi
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x418], rax
mov qword [rbp + 0x3e8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3f0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x410], rax
xor edi, edi
xor ebx, ebx
xor r13d, r13d
cmp r8, 0x201
jae 0x140222900
jmp 0x1402228ef
jae 0x1402229d8
cmp r8, 0x201
jae 0x140222900
mov r15d, 0x200
lea r14, [rbp - 0x60]
mov r12, r8
jmp 0x140222958
sub r8, r13
sub rbx, r13
cmp rbx, r8
jae 0x14022292f
lea rcx, [rbp + 0x3e8]
mov rdx, r13
call fcn.14026b9e0
mov rax, qword [rbp + 0x3e8]
mov qword [rbp + 0x410], rax
mov rdi, qword [rbp + 0x3f0]
mov eax, 0xffffffff
cmp rdi, rax
mov r13d, 0xffffffff
cmovb r13, rdi
mov qword [rbp + 0x3f8], r13
mov rbx, rdi
mov r15, r13
mov r14, qword [rbp + 0x410]
mov r12, r13
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov rcx, qword [rbp + 0x408]
mov rdx, r14
mov r8d, r12d
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x140222987
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x140222aab
mov r8d, esi
cmp r12, r8
jne 0x1402228e0
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140222ad5
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x1402228ef
jmp 0x140222900
lea rcx, [rbp - 0x58]
call fcn.14021ad70
mov byte [rsi + 0x18], 2
jmp 0x140222a6a
cmp r15, r8
jb 0x140222aef
lea rcx, [rbp + 0x3a0]
mov rdx, r14
call fcn.140225f90
movups xmm0, xmmword [rbp + 0x3a0]
movups xmm1, xmmword [rbp + 0x3b0]
movaps xmmword [rbp + 0x3d0], xmm1
movaps xmmword [rbp + 0x3c0], xmm0
test rdi, rdi
je 0x140222a29
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x410]
mov rdx, rdi
call fcn.1401047d0
cmp byte [rbp + 0x3d8], 2
jne 0x140222a81
mov rsi, qword [rbp + 0x400]
mov byte [rsi + 0x18], 2
lea rcx, [rbp + 0x3c0]
call fcn.14021ad70
mov rdx, qword [rbp + 0x418]
test rdx, rdx
je 0x140222a6a
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x408]
call fcn.1401047d0
mov rax, rsi
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movaps xmm0, xmmword [rbp + 0x3c0]
movaps xmm1, xmmword [rbp + 0x3d0]
mov rsi, qword [rbp + 0x400]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x418]
test rdx, rdx
jne 0x140222a55
jmp 0x140222a6a
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3c0], rax
mov byte [rbp + 0x3d8], 2
test rdi, rdi
jne 0x140222a11
jmp 0x140222a29
lea rcx, [0x14069c950]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14026c9a0
jmp 0x140222b04
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.14026ce90
ud2
Function at 0x140222bc0
Capabilities:
Set environment variable

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xc8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x40], 0xfffffffffffffffe
mov rdi, r9
mov rbx, r8
mov r8, rdx
mov rdx, rcx
mov qword [rbp - 0x18], rcx
mov qword [rbp - 0x10], r8
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x20], r9
lea rsi, [rbp - 8]
mov rcx, rsi
call fcn.140237c80
mov rcx, qword [rbp - 8]
mov rax, qword [rbp]
test rcx, rcx
je 0x140222c72
mov qword [rbp + 0x30], rcx
mov qword [rbp + 0x38], rax
lea rcx, [rbp - 8]
mov rdx, rbx
mov r8, rdi
call fcn.140237c80
mov r14, qword [rbp - 8]
mov rbx, qword [rbp]
test r14, r14
je 0x140222c77
mov r15, qword [rbp + 0x30]
mov rcx, r15
mov rdx, r14
call qword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
test eax, eax
je 0x140222cad
xor edi, edi
test rbx, rbx
je 0x140222c67
add rbx, rbx
mov r8d, 2
mov rcx, r14
mov rdx, rbx
call fcn.1401047d0
mov rdx, qword [rbp + 0x38]
test rdx, rdx
jne 0x140222c87
jmp 0x140222c98
mov rdi, rax
jmp 0x140222c98
mov rdi, rbx
mov rdx, qword [rbp + 0x38]
test rdx, rdx
mov r15, qword [rbp + 0x30]
je 0x140222c98
add rdx, rdx
mov r8d, 2
mov rcx, r15
call fcn.1401047d0
test rdi, rdi
jne 0x140222cc4
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
shl rdi, 0x20
or rdi, 2
test rbx, rbx
jne 0x140222c53
jmp 0x140222c67
mov qword [rbp + 0x28], rdi
lea rax, [rbp - 0x18]
mov qword [rbp - 8], rax
lea rax, [0x1402287d0]
mov qword [rbp], rax
lea rcx, [rbp - 0x28]
mov qword [rbp + 8], rcx
mov qword [rbp + 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp + 0x18], rax
lea rax, [fcn.1402247e0]
mov qword [rbp + 0x20], rax
lea rax, [0x14069d270]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], 3
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x48], rsi
mov qword [rbp - 0x40], 3
lea rdx, str.library_std_srcenv.rsfailed_to_set_environment_variable____to___:
lea rcx, [rbp - 0x58]
call fcn.14026c8f0
ud2
Function at 0x140223c00
Capabilities:
Create directory

Disassembly:
cmp byte [rcx], 0
je 0x140223c10
mov rcx, rdx
mov rdx, r8
jmp fcn.140223c20
mov rcx, rdx
mov rdx, r8
jmp fcn.14022dc20

Function at 0x140229fa0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10b8
call fcn.1402519f0
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1020], xmm6
mov qword [rbp + 0x1018], 0xfffffffffffffffe
mov qword [rbp + 0x1008], rdx
mov r12, rcx
lea r13, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, r13
xor edx, edx
call fcn.140258470
lea rcx, [rbp + 0xfe8]
xorps xmm6, xmm6
lea rbx, [rbp + 0xffc]
lea rsi, [0x140231080]
lea r15, [rbp + 0xfb0]
mov r14, qword [sym.imp.kernel32.dll_WriteFileEx]
mov rdi, qword [sym.imp.kernel32.dll_SleepEx]
mov qword [rbp + 0x1010], r12
mov r9d, 0x1000
mov rdx, r12
mov r8, r13
call fcn.140230e20
cmp qword [rbp + 0xfe8], 0
jne 0x14022a177
mov r12, qword [rbp + 0xff0]
test r12, r12
je 0x14022a143
cmp r12, 0x1000
ja 0x14022a199
xor r13d, r13d
nop word cs:[rax + rax]
mov r8d, r12d
sub r8d, r13d
lea rdx, [r13 - 0x50]
add rdx, rbp
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], rbx
mov qword [rsp + 0x20], rsi
mov rcx, qword [rbp + 0x1008]
mov r9, r15
call r14
test eax, eax
je 0x14022a117
nop word [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x14022a0c0
movsxd rax, dword [rbp + 0x1000]
test rax, rax
jne 0x14022a11d
mov eax, dword [rbp + 0x1004]
add r13, rax
cmp r13, r12
je 0x14022a100
jbe 0x14022a070
jmp 0x14022a185
mov r12, qword [rbp + 0x1010]
lea r13, [rbp - 0x50]
lea rcx, [rbp + 0xfe8]
jmp 0x14022a025
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0xfe0], rax
mov qword [rbp + 0xfd8], 1
lea rcx, [rbp + 0xfe0]
call fcn.14021ad70
mov rsi, qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1010]
call rsi
mov rcx, qword [rbp + 0x1008]
call rsi
movaps xmm6, xmmword [rbp + 0x1020]
add rsp, 0x10b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0xff0]
call fcn.14021ad70
jmp 0x14022a143
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r13
mov rdx, r12
call fcn.14026cf10
jmp 0x14022a1ad
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, r12
call fcn.14026ce90
ud2