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

Disassembly:
push rsi
sub rsp, 0xb0
mov rsi, rcx
movups xmm0, xmmword [0x140020a80]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x14000c788
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0x88], rcx
test r9, r9
mov qword [rsp + 0x80], r9
lea rcx, [rsp + 0x88]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x14000c7ea
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x14000c7f5
xor edx, edx
jmp 0x14000c805
cmp eax, 0x103
je 0x14000c830
test eax, eax
js 0x14000c810
mov rdx, qword [rsp + 0x68]
xor eax, eax
add rsp, 0xb0
pop rsi
ret
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb0
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x90], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x98], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x80]
call fcn.140007a30
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x78]
call fcn.140003e40
mov ecx, 7
int 0x29
ud2

Function at 0x14000c8a0
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0xb0
mov rsi, rcx
movups xmm0, xmmword [0x140020a80]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x14000c8d8
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0x88], rcx
test r9, r9
mov qword [rsp + 0x80], r9
lea rcx, [rsp + 0x88]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14000c941
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14000c975
test eax, eax
js 0x14000c955
mov rdx, qword [rsp + 0x68]
xor eax, eax
add rsp, 0xb0
pop rsi
ret
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb0
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x90], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x98], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x80]
call fcn.140007a30
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x78]
call fcn.140003e40
mov ecx, 7
int 0x29
ud2
Function at 0x14001a9e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14001aa5a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14001aa50
cmp r11, r10
ja 0x14001aae5
cmp r10, rdx
ja 0x14001aaf7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14001aa52
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14001aa30
jmp 0x14001aac7
ja 0x14001aa5a
mov r11, r10
cmp rax, r8
jne 0x14001aa02
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001aacb
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14001aaa0
mov r8, r10
sub ecx, r9d
jns 0x14001aabe
jmp 0x14001aacd
cmp r10, rdx
je 0x14001aad9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001aacd
xor al, 1
cmp r8, rdx
jne 0x14001aa80
jmp 0x14001aacd
xor eax, eax
jmp 0x14001aacd
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.14001d540
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001da40
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001da30
int3

Function at 0x14001c0f8
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
mov dword [rax + 8], ecx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rdi, rdx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
xor esi, esi
mov qword [rbp - 0x10], rsi
mov dword [rbp + 0x30], esi
lea r8, [rbp + 0x30]
xor edx, edx
lea ecx, [rsi + 3]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x14005feb4
lea ebx, [rsi + 0xd]
jmp 0x14005ff1f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xea
jne 0x14005ff1f
mov word [rbp + 0x20], si
mov edx, dword [rbp + 0x30]
lea rax, [rbp - 0x20]
mov qword [rbp - 0x30], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x30], xmm0
lea r8, [rbp - 0x30]
lea rcx, [rbp - 0x20]
call fcn.14003cffc
lea r8, [rbp + 0x30]
mov rdx, qword [rbp - 0x20]
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x14005ff11
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x14005ff1f
mov rdx, qword [rbp - 0x20]
mov rcx, rdi
call fcn.1400033fc
mov ebx, esi
lea rcx, [rbp - 0x20]
call fcn.1400174fc
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret

Function at 0x140060a48
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400bd0c0], eax
call fcn.140060cf8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400bd0c0], 0
jne case.default.0x140060a9e
mov ecx, 1
call fcn.140060cf8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
adc eax, 0x1fc3f13f
ret 0x3dcf
Function at 0x45e200
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rdi
cmp word [0x00400000], 0x5a4d
je 0x45e221
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x45e29d
movsxd rax, dword [0x0040003c]
lea rcx, [0x00400000]
add rax, rcx
cmp dword [rax], 0x4550
je 0x45e242
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x45e29d
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x45e280
cmp ecx, 0x20b
je 0x45e25e
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x45e29d
cmp dword [rax + 0x84], 0xe
ja 0x45e26f
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x45e29d
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0x60], ebx
jmp 0x45e29d
cmp dword [rax + 0x74], 0xe
ja 0x45e28e
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x45e29d
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0x60], ebx
mov ecx, 1
call qword [0x00460418]
mov qword [0x00483dc8], 0xffffffffffffffff
mov qword [0x00483dd0], 0xffffffffffffffff
mov rcx, qword [0x00460410]
mov eax, dword [0x00481da4]
mov dword [rcx], eax
mov rcx, qword [0x00460408]
mov eax, dword [0x00481da0]
mov dword [rcx], eax
call fcn.0045d2e0
cmp dword [0x004817b0], 0
jne 0x45e2f7
lea rcx, [fcn.0045d2e0]
call qword [0x00460400]
lea rdx, [0x00460498]
lea rcx, [0x00460490]
call fcn.0045e3f4
mov r11d, dword [0x00481d9c]
mov dword [rsp + 0x68], r11d
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x00481d98]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call qword [0x004603f0]
lea rdx, [0x00460488]
lea rcx, [0x00460430]
call fcn.0045e3f4
mov r11, qword [rsp + 0x38]
mov rax, qword [0x004603e0]
mov qword [rax], r11
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x30]
call 0x51a000
mov edi, eax
mov dword [rsp + 0x34], eax
test ebx, ebx
jne 0x45e383
mov ecx, eax
call qword [0x004603e8]
call qword [0x004603d8]
jmp 0x45e3a4
mov eax, edi
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x58
ret
Function at 0x140001dc0
Capabilities:
Accept command line arguments

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x50
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rdx
mov rbx, rcx
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlGetNtVersionNumbers
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebp, ebp
test rax, rax
je 0x140001e29
lea rdx, [rbx + 0xc]
lea rcx, [rbx + 8]
xor r8d, r8d
call rax
mov word [rbx + 0xa], bp
mov word [rbx + 0xe], bp
cmp dword [rbx + 8], 5
ja 0x140001e36
xor eax, eax
jmp 0x140001edf
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x30], rbp
xor r8d, r8d
xor edx, edx
call fcn.140001b00
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x38], ebp
lea rdx, [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r8, rax
mov edx, dword [rsp + 0x38]
lea rcx, [rsp + 0x28]
call fcn.140001010
lea r8, [rbx + 0x10]
lea rcx, [rsp + 0x28]
call fcn.1400012e0
mov eax, dword [rbx + 0x10]
test eax, eax
je 0x140001e91
cmp eax, 3
jge 0x140001e91
mov ebp, 1
mov r14, qword [rsp + 0x28]
mov rbx, qword [r14]
mov qword [r14], r14
mov qword [r14 + 8], r14
cmp rbx, r14
je 0x140001ed5
nop word [rax + rax]
mov rsi, qword [rbx]
lea rcx, [rbx + 0x30]
call fcn.140001430
lea rcx, [rbx + 0x10]
call fcn.140001430
mov rcx, rbx
call fcn.140002bb0
mov rbx, rsi
cmp rsi, r14
jne 0x140001eb0
mov rcx, r14
call fcn.140002bb0
mov eax, ebp
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140002b50
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140009558
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x14000932c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000932c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000932c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000932c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000932c
cmp dword [rcx + 0x84], 0xe
jbe 0x14000932c
cmp dword [rcx + 0xf8], esi
je 0x14000932c
mov ecx, r14d
call fcn.140009474
mov ecx, 2
call fcn.14000bdf4
nop
cmp byte [0x140020450], 0
jne 0x1400093f6
mov r15d, 1
mov eax, r15d
xchg dword [0x140020444], eax
test ebx, ebx
jne 0x14000939f
mov rdi, qword [section..data]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140020448]
cmp rcx, rax
je 0x140009396
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140001000]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140020460]
jmp 0x1400093ab
cmp ebx, r15d
jne 0x1400093b1
lea rcx, [0x140020478]
call fcn.140009a68
nop
test ebx, ebx
jne 0x1400093c8
lea rdx, [0x140014358]
lea rcx, [0x140014338]
call fcn.1400091ec
lea rdx, [0x140014368]
lea rcx, [0x140014360]
call fcn.1400091ec
movzx eax, byte [0x140020450]
test esi, esi
cmove eax, r15d
mov byte [0x140020450], al
jmp 0x1400093f6
mov ecx, 2
call fcn.14000be48
test esi, esi
jne 0x14000940d
mov ecx, r14d
call fcn.140009428
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1400092bc
Function at 0x14000c5d0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
mov eax, 0x1408
call fcn.140025960
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1380], 0xfffffffffffffffe
mov edi, edx
mov rsi, rcx
mov rax, qword [0x140052c40]
movabs rcx, 0x9d4bb9e988c1b3c9
movabs r14, 0xec0a3d7a1a772cb0
mov rax, qword [rax + rcx]
add rax, r14
movabs rdx, 0x9d4bb9e988c1b586
add rdx, qword [0x140052c48]
lea rbx, [0x140054936]
mov rcx, rbx
call rax
mov rax, qword [0x140052c40]
movabs rcx, 0x9d4bb9e988c1b3d1
mov rax, qword [rax + rcx]
add rax, r14
lea rcx, [rbp + 0x1350]
mov rdx, rbx
call rax
mov rax, qword [0x140052c58]
movabs rcx, 0xedb697be583648a5
movabs r10, 0xb56ed3945a31b250
add r10, qword [rax + rcx]
lea rcx, [rbp - 0x50]
mov edx, edi
mov r8d, 0xffffffff
mov r9d, 0x6c078965
call r10
mov rax, qword [0x140052c40]
movabs rcx, 0x9d4bb9e988c1b3d9
mov rax, qword [rax + rcx]
movabs rbx, 0xec0a3d7a1a772cb0
add rax, rbx
lea rdi, [rbp + 0x1350]
lea rdx, [rbp + 0x1370]
mov rcx, rdi
call rax
mov rax, qword [0x140052c40]
movabs rcx, 0x9d4bb9e988c1b3e1
mov rax, qword [rax + rcx]
add rax, rbx
lea rdx, [rbp + 0x1378]
mov rcx, rdi
call rax
mov rdi, qword [rbp + 0x1378]
mov rbx, qword [rbp + 0x1370]
mov rax, qword [0x140052c60]
movabs rcx, 0x7f7568a826a8f111
movabs r15, 0xb1b79f51e67f9689
mov r8, qword [rax + rcx]
add r8, r15
lea rcx, [rbp + 0x1338]
lea rdx, [rbp - 0x50]
call r8
mov rax, qword [0x140052c60]
movabs rcx, 0x7f7568a826a8f119
add r15, qword [rax + rcx]
lea r14, [rbp + 0x1338]
mov rcx, rdi
mov rdx, rbx
mov r8, r14
call r15
mov rax, qword [0x140052c78]
movabs rcx, 0xffb8989bc5ab1b90
movabs rdi, 0x518523611ae52757
mov rdx, qword [rax + rcx]
add rdx, rdi
mov rcx, r14
call rdx
mov rax, qword [0x140052c78]
movabs rcx, 0xffb8989bc5ab1b98
add rdi, qword [rax + rcx]
mov qword [rsp + 0x20], r14
lea rdx, [rbp + 0x1350]
mov r9d, 0x10
mov rcx, rsi
xor r8d, r8d
call rdi
mov rax, qword [0x140052c40]
movabs rcx, 0x9d4bb9e988c1b3e9
movabs rdx, 0xec0a3d7a1a772cb0
add rdx, qword [rax + rcx]
lea rcx, [rbp + 0x1350]
call rdx
mov rax, rsi
add rsp, 0x1408
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret

Function at 0x140026a3c
Capabilities:
Parse pe header

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

Function at 0x14002acc8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002ae10

Function at 0x14002d490
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002d4b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002d4b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140033da4
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 0x140033dd4
xor eax, eax
jmp 0x140033e97
mov rbp, rbx
cmp word [rax], si
je 0x140033df9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140033de0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140033ddc
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.140033cc4
movsxd r14, eax
test eax, eax
jne 0x140033e37
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140033dcd
mov rcx, r14
call fcn.1400319c8
mov rdi, rax
test rax, rax
jne 0x140033e50
xor ecx, ecx
call fcn.14002ee90
jmp 0x140033e2c
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.140033cc4
test eax, eax
jne 0x140033e81
mov rcx, rdi
call fcn.14002ee90
jmp 0x140033e8b
xor ecx, ecx
call fcn.14002ee90
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 0x140033eb4
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 0x140033f3b
mov rsi, rbx
cmp word [rax], bp
je 0x140033efa
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140033ee4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140033ee0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400319c8
mov rdi, rax
test rax, rax
je 0x140033f28
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140027de0
mov rbp, rdi
xor ecx, ecx
call fcn.14002ee90
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 0x140037d48
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140037d5e
mov al, 1
jmp 0x140037dbe
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140037d6f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140037dbc
mov ecx, dword [rcx + 0x18]
nop
call fcn.140034398
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140037dbc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140037dbc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140037dbc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140037dbe
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140038458
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.14002c7f4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400384e2
cmp byte [rbp - 0x21], r15b
je 0x1400384dd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140038518
call fcn.14002fc70
test eax, eax
jne 0x140038504
cmp byte [rbp - 0x21], r15b
je 0x1400384fc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140038518
cmp byte [rbp - 0x21], r15b
je 0x140038515
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.140033914
test eax, eax
jne 0x1400385b8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14002c7f4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140038557
cmp byte [rbp - 0x21], r15b
je 0x14003858c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14003858c
call fcn.14002fc70
test eax, eax
jne 0x140038578
cmp byte [rbp - 0x21], r15b
je 0x140038571
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14003858c
cmp byte [rbp - 0x21], r15b
je 0x140038589
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.140033914
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400385b8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400385bb
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400385c9
mov rcx, rdi
call fcn.14002ee90
cmp byte [rbp + 0x3f], r15b
je 0x1400385d8
mov rcx, qword [rbp + 0x27]
call fcn.14002ee90
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 0x140002d24
Capabilities:
Parse pe header

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