joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3b1dce058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x3b1dce1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x3b1dce089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x3b1dce06f
add dl, dl
jne 0x3b1dce096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x3b1dce0f6
xor eax, eax
add dl, dl
jne 0x3b1dce0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x3b1dce1ad
add dl, dl
jne 0x3b1dce0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x3b1dce0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x3b1dce0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x3b1dce0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x3b1dce0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x3b1dce07e
mov eax, 1
add dl, dl
jne 0x3b1dce106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x3b1dce113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x3b1dce0fb
sub eax, ebx
mov ebx, 1
jne 0x3b1dce14c
mov ecx, 1
add dl, dl
jne 0x3b1dce12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x3b1dce13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x3b1dce123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x3b1dce07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x3b1dce168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x3b1dce175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x3b1dce15d
cmp eax, 0x7d00
jae 0x3b1dce19b
cmp eax, 0x500
jb 0x3b1dce196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x3b1dce07e
cmp eax, 0x7f
ja 0x3b1dce19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x3b1dce07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x3b1dce1d2
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 0x3b1dce07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140007450
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x140007480
mov eax, 0
cmp word [rcx], 0x5a4d
jne 0x14000747f
mov eax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140007485
cdqe
add rax, rcx
cmp dword [rax], 0x4550
mov edx, 0
cmovne rax, rdx
ret
mov rax, rcx
jmp 0x14000747f
mov eax, 0
jmp 0x14000747f

Function at 0x140007b00
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140007ab0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140011110
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 fcn.140019c50
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140019c50
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140011180
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14388db54]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x140011310
mov rax, qword [0x14388db58]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x1400111cc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x140011255
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x1400111b0
mov rcx, rdi
call fcn.140011ce0
test rax, rax
mov r12, rax
je 0x140011362
mov rax, qword [0x14388db58]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.140011e20
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14388db58]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140011345
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001124e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400112c0
add dword [0x14388db54], 1
cmp ebx, 8
jae 0x140011281
test bl, 4
jne 0x140011320
test ebx, ebx
je 0x140011276
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x140011334
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x140011276
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x14001129a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x14388db58]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001124e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140011110
xor esi, esi
jmp 0x1400111d7
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x140011276
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x140011276
mov rax, qword [0x14388db58]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.140011110
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.140011110
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x140011930
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14388dbc0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14388dba0]
test rbx, rbx
je 0x140011984
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 0x14001197b
test rsi, rsi
je 0x14001197b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140011960
lea rcx, [0x14388dbc0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140011ce0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x143888610]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x140011d4f
mov rcx, r9
call fcn.140011bb0
test eax, eax
je 0x140011d4f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x140011d4d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140011d44
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140011d4f
add rdx, 0x28
cmp rdx, r9
jne 0x140011d30
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x14001c090
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x143884900]
jmp 0x140012b10

Function at 0x14001c0a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x143884900]
jmp 0x140012b10
Function at 0x1400167ac
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14001682a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140016821
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140016821
mov rax, qword [rbp - 8]
jmp 0x14001683f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400167f4
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x14070ec00
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword gs:[0x60]
movabs r11, 0x70ec70
movabs r10, 0x70ec74
mov r9, qword [rax + 0x10]
xor eax, eax
movsxd rcx, dword [r9 + 0x3c]
movsxd r11, dword [r9 + r11]
add rcx, r9
mov r10d, dword [r9 + r10]
movzx r8d, word [rcx + 0x14]
add r8, rcx
cmp dword [r8 + 0x20], eax
jbe 0x14070ec66
mov edx, eax
nop dword [rax]
nop word [rax + rax]
mov ecx, dword [r8 + 0x24]
inc eax
add rcx, rdx
inc rdx
xor byte [rcx + r9], r10b
cmp eax, dword [r8 + 0x20]
jb 0x14070ec50
lea rax, [r9 + r11]
jmp rax
Function at 0x180001030
Capabilities:
Query environment variable

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x68
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [rsp + 0x2c], 0x7b98
mov dword [rsp + 0x3c], 0xfceb
lea rax, [rsp + 0x2c]
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
mov eax, dword [rax]
imul eax, dword [rcx]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x80], 0xf0baf8d5
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x80]
sub ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x38]
imul ecx, eax
mov eax, ecx
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x70], 0xfb0c4e2d
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
cdq
mov ecx, dword [rsp + 0x50]
idiv ecx
mov ecx, dword [rsp + 0x3c]
imul ecx, eax
mov eax, ecx
mov dword [rsp + 0x3c], eax
add rsp, 0x68
ret

Function at 0x1800010f0
Capabilities:
Query environment variable

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x58
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x38], 0xdb4e
mov dword [rsp + 0x3c], 0x3d3a
lea rax, [rsp + 0x38]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov ecx, dword [rsp + 0x38]
mov eax, dword [rax]
or eax, ecx
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
mov dword [rsp + 0x40], 0xfc5cd7b1
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x40]
sub ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x40]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x38]
add ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x3c]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x40], 0xf287f164
jg 0x1800011e4
mov dword [rsp + 0x60], 0xfe53c958
mov eax, dword [rsp + 0x60]
and eax, 0xa4
mov ecx, dword [rsp + 0x38]
sub ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x60]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x3c], 0xc3
je 0x1800011e4
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [rsp + 0x44], 0x6e
mov eax, dword [rsp + 0x44]
or eax, 0x8739
imul eax, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x38]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x44]
imul eax, dword [rsp + 0x60]
mov dword [rsp + 0x48], eax
add rsp, 0x58
ret
Function at 0x180002230
Capabilities:
Query environment variable

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x88
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x5990
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x28]
cdq
mov ecx, dword [rsp + 0x78]
idiv ecx
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [rsp + 0x2c], 0
jmp 0x18000228a
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 3
jge 0x1800023c6
mov dword [rsp + 0x24], 0xe9
cmp dword [rsp + 0x24], 0xab1f
jl 0x1800022d4
mov dword [rsp + 0x98], 0xfa447b24
lea rax, [rsp + 0x98]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov ecx, dword [rsp + 0x20]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x38], eax
jmp 0x1800022f6
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov eax, dword [rsp + 0x28]
or eax, 0xf935c6a7
mov ecx, dword [rsp + 0x24]
imul ecx, eax
mov eax, ecx
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x90], 0x87
mov dword [rsp + 0x98], 0x17aa
lea rax, [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x98]
inc eax
mov dword [rsp + 0x7c], eax
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
cdq
mov ecx, dword [rsp + 0x7c]
idiv ecx
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x54], 0
jmp 0x180002354
mov eax, dword [rsp + 0x54]
inc eax
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 3
jge 0x1800023c1
mov dword [rsp + 0x38], 0xfc553955
lea rax, [rsp + 0x28]
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x38]
and ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x58]
sub eax, dword [rcx]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x74], 0xf6bf7661
mov rax, qword [rsp + 0x68]
mov ecx, dword [rsp + 0x74]
mov eax, dword [rax]
or eax, ecx
sub eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x98]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x98], eax
call qword [sym.imp.KERNEL32.dll_GetACP]
jmp 0x18000234a
jmp 0x180002280
add rsp, 0x88
ret
Function at 0x140001000
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rsi
push rdi
sub rsp, 0x2a8
mov rax, qword [0x140021200]
xor rax, rsp
mov qword [rsp + 0x290], rax
lea rax, [rsp + 0x80]
lea rcx, str.C:UsersErickOneDrive___UNIOESTEDocumentosmaldevinfected.dll
mov rdi, rax
mov rsi, rcx
mov ecx, 0x84
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x104]
mov rdi, rax
xor eax, eax
mov ecx, 0x184
rep stosb byte [rdi], al
cmp dword [rsp + 0x2c0], 2
je 0x140001089
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x2c8]
mov rdx, qword [rcx + rax]
lea rcx, str.Usage:__s__PID__n
call fcn.1400012c0
mov eax, 1
jmp 0x140001241
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x2c8]
mov rcx, qword [rcx + rax]
call fcn.140006f1c
mov dword [rsp + 0x48], eax
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov ecx, 0x28
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x1400010e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Couldnt_get_a_handle_to_process._Error:__lx_n
call fcn.1400012c0
mov eax, 1
jmp 0x140001241
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x50]
lea rcx, [0x140021084]
call fcn.1400012c0
cmp qword [rsp + 0x50], 0
jne 0x14000112d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Couldnt_get_a_handle_to_kernel32.dll._Error:__lx_n
call fcn.1400012c0
mov eax, 1
jmp 0x140001241
lea rdx, str.LoadLibraryW
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x14000116a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Couldnt_get_address_of_LoadLibraryW._Error:__lx_n
call fcn.1400012c0
mov eax, 1
jmp 0x140001241
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8d, 0x208
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1400011b6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Couldnt_allocate_memory_in_process._Error:__lx_n
call fcn.1400012c0
mov eax, 1
jmp 0x140001241
mov qword [rsp + 0x20], 0
mov r9d, 0x208
lea r8, [rsp + 0x80]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x60]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThreadEx]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x14000123f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Couldnt_create_a_remote_thread._Error:__lx_n
call fcn.1400012c0
mov eax, 1
jmp 0x140001241
xor eax, eax
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1400013b0
add rsp, 0x2a8
pop rdi
pop rsi
ret
Function at 0x140001d94
Capabilities:
Parse pe header

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

Function at 0x140007ae4
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 0x140007b53
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140007b53
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140007b53
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140007b53
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140007b53
cmp dword [rcx + 0x84], 0xe
jbe 0x140007b53
cmp dword [rcx + 0xf8], 0
je 0x140007b53
mov ecx, ebx
call fcn.140007c04
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.1400079e0
nop
cmp dword [rbp + 0x20], 0
je 0x140007ba1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140007bac
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140007ae4

Function at 0x140007ce8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140007ae4
Function at 0x14000d160
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 0x14000d190
xor eax, eax
jmp 0x14000d253
mov rbp, rbx
cmp word [rax], si
je 0x14000d1b5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000d19c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000d198
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.14000d080
movsxd r14, eax
test eax, eax
jne 0x14000d1f3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000d189
mov rcx, r14
call fcn.1400097dc
mov rdi, rax
test rax, rax
jne 0x14000d20c
xor ecx, ecx
call fcn.140008b64
jmp 0x14000d1e8
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.14000d080
test eax, eax
jne 0x14000d23d
mov rcx, rdi
call fcn.140008b64
jmp 0x14000d247
xor ecx, ecx
call fcn.140008b64
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 0x14001157c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140011592
mov al, 1
jmp 0x1400115f2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400115a3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400115f0
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000da80
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400115f0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400115f0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400115f0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400115f2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140012630
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.14000b614
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400126ba
cmp byte [rbp - 0x21], r15b
je 0x1400126b5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400126f0
call fcn.140008db4
test eax, eax
jne 0x1400126dc
cmp byte [rbp - 0x21], r15b
je 0x1400126d4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400126f0
cmp byte [rbp - 0x21], r15b
je 0x1400126ed
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.14000b7cc
test eax, eax
jne 0x140012790
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000b614
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001272f
cmp byte [rbp - 0x21], r15b
je 0x140012764
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140012764
call fcn.140008db4
test eax, eax
jne 0x140012750
cmp byte [rbp - 0x21], r15b
je 0x140012749
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140012764
cmp byte [rbp - 0x21], r15b
je 0x140012761
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.14000b7cc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140012790
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140012793
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400127a1
mov rcx, rdi
call fcn.140008b64
cmp byte [rbp + 0x3f], r15b
je 0x1400127b0
mov rcx, qword [rbp + 0x27]
call fcn.140008b64
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 0x140014d20
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140014d48
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140014d48
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret