joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140041570
Capabilities:
Get file version info

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0x20
cmp byte [rcx + 0x20], 0
mov rdi, rdx
mov rbp, rcx
jne 0x14004164b
cmp qword [rdx + 0x18], 8
mov rcx, rdx
mov dword [rsp + 0x50], 0
jb 0x14004159e
mov rcx, qword [rdx]
lea rdx, [rsp + 0x50]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov r14d, eax
test eax, eax
je 0x14004164b
mov r9, qword [rbp + 0x10]
mov ecx, r14d
mov r8, qword [rbp + 8]
mov rdx, r9
sub rdx, r8
mov qword [rsp + 0x58], rsi
cmp r14, rdx
jae 0x1400415d8
lea rax, [r8 + r14]
mov qword [rbp + 0x10], rax
jmp 0x140041619
jbe 0x140041619
mov rax, qword [rbp + 0x18]
sub rax, r8
cmp rcx, rax
jbe 0x1400415f9
mov rdx, rcx
lea r8, [rsp + 0x40]
lea rcx, [rbp + 8]
call fcn.140040d00
jmp 0x140041619
sub rcx, rdx
mov qword [rsp + 0x48], rbx
lea rbx, [rcx + r9]
mov rcx, r9
mov rdx, rbx
call fcn.140040e20
mov qword [rbp + 0x10], rbx
mov rbx, qword [rsp + 0x48]
cmp qword [rdi + 0x18], 8
jb 0x140041623
mov rdi, qword [rdi]
mov r9, qword [rbp + 8]
mov r8d, r14d
xor edx, edx
mov rcx, rdi
call sub.VERSION.dll_GetFileVersionInfoW
mov rsi, qword [rsp + 0x58]
cmp eax, 1
sete al
mov byte [rbp + 0x20], al
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
xor al, al
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140052270
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1400a0850]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x1400522ce
cmp word [rdx], r12w
jne 0x1400522ce
or byte [rax + r8*8 + 0x38], cl
jmp 0x1400522d4
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14005242f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14005240a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14005230d
mov rcx, r9
jmp 0x140052330
cmp r9, rdx
jae 0x140052347
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x1400522f1
jmp 0x14005242f
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140052404
cmp dword [rsp + 0x80], edi
je 0x140052404
mov rdx, r14
lea r11, [0x1400a0850]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x1400523dd
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1400523b0
mov word [rbx], r12w
jmp 0x14005242b
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1400523b9
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14005242b
cmp word [rsp + 0x70], r12w
jne 0x1400523ea
cmp rbx, rsi
je 0x1400523aa
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1400541e0
cmp word [rsp + 0x70], r12w
je 0x14005242f
mov word [rbx], r13w
jmp 0x14005242b
lea r11, [0x1400a0850]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140052427
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14005242f
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140065ef8
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400541e0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400541e0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140066048
cmp rax, 0xffffffffffffffff
je 0x140066048
xor edi, edi
test rbp, rbp
jle 0x140065ff3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140065594
mov rbx, rax
test rax, rax
jne 0x140065f80
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140065fe9
mov edx, 0x8000
mov ecx, r14d
call fcn.14006111c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140053660
cmp eax, 0xffffffff
je 0x140065fc9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140065f90
mov edx, r15d
mov ecx, r14d
call fcn.14006111c
jmp 0x140065fe9
cmp byte [rsi + 0x38], dil
je 0x140065fe0
cmp dword [rsi + 0x34], 5
jne 0x140065fe0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140065fe9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140062ce0
jmp 0x14006605c
jns 0x14006605c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400541e0
cmp rax, 0xffffffffffffffff
jne 0x140066014
cmp byte [rsi + 0x30], dil
je 0x14006605c
mov edi, dword [rsi + 0x2c]
jmp 0x14006605c
mov ecx, r14d
call fcn.140065de8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14006605c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14006605c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140066055
mov eax, dword [rsi + 0x2c]
jmp 0x14006605a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400541e0
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140066a28
Capabilities:
Read file on windows

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, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x14006674a
call fcn.140051440
mov dword [rax], 0x16
call fcn.14004fbc0
jmp 0x14006689a
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14006689a
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14006689a
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140066779
lock or dword [rcx + 0x14], 0x10
jmp 0x14006689a
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14006678d
call fcn.140066e28
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x14006679d
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x1400667a0
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.1400640cc
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.14005271c
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x140066888
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x140066833
mov rcx, rbx
call fcn.1400640cc
cmp eax, 0xffffffff
je 0x14006681e
mov rcx, rbx
call fcn.1400640cc
cmp eax, 0xfffffffe
je 0x14006681e
mov rcx, rbx
call fcn.1400640cc
movsxd rdi, eax
lea rsi, [0x1400a0850]
mov rcx, rbx
sar rdi, 6
call fcn.1400640cc
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x140066825
lea rdx, [0x14009d790]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140066833
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x140066857
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x140066857
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x140066857
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x140066875
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x140066880
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x14006689f
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x140066714
Function at 0x140067424
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1400443b0
sub rsp, rax
mov rax, qword [0x14009d2d0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400640cc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140067473
mov rax, rbp
jmp 0x14006757b
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xa0850]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400541d8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xa0850]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140067577
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140067577
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400541d8
test rax, rax
js 0x140067577
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140067577
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140067569
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140067569
cmp byte [rcx], 0xd
jne 0x14006754f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14006755e
cmp byte [rcx + 1], 0xa
jne 0x14006755e
inc rcx
jmp 0x14006755e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x9d430]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140067531
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14006757b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140043760
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14006a4e8
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 0x14006a56f
mov rsi, rbx
cmp word [rax], bp
je 0x14006a52e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14006a518
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14006a514
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140062d1c
mov rdi, rax
test rax, rax
je 0x14006a55c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140045e30
mov rbp, rdi
xor ecx, ecx
call fcn.140062ce0
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 0x14001c360
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
lea rcx, [0x140126780]
call qword [sym.imp.USER32.dll_GetKeyboardState]
movzx eax, byte [0x140126791]
shr al, 7
mov byte [0x140126899], al
movzx eax, byte [0x140126792]
shr al, 7
mov byte [0x14012689a], al
movzx eax, byte [0x140126794]
shr al, 7
mov byte [0x14012689b], al
movzx eax, byte [0x140126820]
shr al, 7
mov byte [0x14012689c], al
movzx eax, byte [0x140126821]
shr al, 7
test byte [0x1401267db], 0x80
mov byte [0x14012689d], al
jne 0x14001c3e5
test byte [0x1401267dc], 0x80
mov byte [0x14012689e], 0
je 0x14001c3ec
mov byte [0x14012689e], 1
add rsp, 0x28
ret
Function at 0x140182fd0
Capabilities:
Get file version info

Disassembly:
mov word [rsp + 8], cx
sub rsp, 0x98
mov eax, 0x367
mov word [rsp + 0xa0], ax
mov eax, 0x343
mov word [rsp + 0xa0], ax
mov eax, 0x727
mov word [rsp + 0xa0], ax
mov eax, 0x1ee
mov word [rsp + 0xa0], ax
mov eax, 0x5d7
mov word [rsp + 0xa0], ax
mov eax, 0x23b
mov word [rsp + 0xa0], ax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x68]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x60]
mov ecx, 0x41
call sub.VERSION.dll_VerInstallFileW
mov dword [rsp + 0x54], eax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x80]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x70]
mov ecx, SHTestTokenMembership
call sub.VERSION.dll_VerInstallFileW
mov dword [rsp + 0x58], eax
movzx ecx, word [rsp + 0xa0]
call fcn.140182fd0
mov eax, 0x390
mov word [rsp + 0xa0], ax
mov eax, 0x405
mov word [rsp + 0xa0], ax
lea r9, [rsp + 0x40]
mov r8d, 0x80
mov edx, 0x5c
mov rcx, qword [rsp + 0x80]
call sub.VERSION.dll_GetFileVersionInfoW
mov dword [rsp + 0x40], eax
movsx eax, word [rsp + 0xa0]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0x14b
je 0x140183170
cmp dword [rsp + 0x50], 0x558
je 0x140183124
jmp 0x140183203
movzx ecx, word [rsp + 0xa0]
call fcn.140182fd0
mov eax, 0x78d
mov word [rsp + 0xa0], ax
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x58]
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x60]
call sub.VERSION.dll_VerQueryValueW
mov dword [rsp + 0x78], eax
mov eax, 0x4ed
mov word [rsp + 0xa0], ax
jmp 0x140183203
mov eax, 0x782
mov word [rsp + 0xa0], ax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x70]
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x48]
mov ecx, 0x3f
call sub.VERSION.dll_VerFindFileW
mov dword [rsp + 0x7c], eax
movzx ecx, word [rsp + 0xa0]
call fcn.140182fd0
mov eax, 0x76b
mov word [rsp + 0xa0], ax
movzx ecx, word [rsp + 0xa0]
call fcn.140182fd0
mov eax, 0x591
mov word [rsp + 0xa0], ax
mov ecx, 0xec
call fcn.140182e60
mov eax, 0x70
mov word [rsp + 0xa0], ax
movzx ecx, word [rsp + 0xa0]
call fcn.140182fd0
mov eax, 0x496
mov word [rsp + 0xa0], ax
mov eax, reloc.SHELL32.dll_ILFindChild
mov word [rsp + 0xa0], ax
mov eax, ILIsParent
add rsp, 0x98
ret
Function at 0x140183a40
Capabilities:
Parse pe header

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

Function at 0x1401880c0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140187ebc
Function at 0x14018b174
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 0x14018b1a4
xor eax, eax
jmp 0x14018b267
mov rbp, rbx
cmp word [rax], si
je 0x14018b1c9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14018b1b0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14018b1ac
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.14018b094
movsxd r14, eax
test eax, eax
jne 0x14018b207
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14018b19d
mov rcx, r14
call fcn.14018bc08
mov rdi, rax
test rax, rax
jne 0x14018b220
xor ecx, ecx
call fcn.1401896cc
jmp 0x14018b1fc
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.14018b094
test eax, eax
jne 0x14018b251
mov rcx, rdi
call fcn.1401896cc
jmp 0x14018b25b
xor ecx, ecx
call fcn.1401896cc
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 0x1401909d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1401909f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1401909f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140003a70
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003aa4
cmp word [rcx], 0x5a4d
jne 0x140003aa4
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003aa4
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003aa4
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.1400039b0
test eax, eax
jne 0x140003ac0
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140003a20
test rax, rax
je 0x140003ab5
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.140004263
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140004170
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.140004110
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 0x1400045c4
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x1409885f8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x1409885f4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140004612
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000460a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400046f9
inc ebx
add rax, 0x28
jmp 0x1400045ea
mov rcx, r12
call fcn.140004df1
mov rbp, rax
test rax, rax
jne 0x140004631
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140004560
movsxd rbx, ebx
mov rax, qword [0x1409885f8]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.140004e9f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1409885f8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140004693
mov rax, qword [0x1409885f8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140004560
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400046f3
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400046f3
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1409885f8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400046f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140004560
inc dword [0x1409885f4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140004b20
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x140988660]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140988640]
test rbx, rbx
je 0x140004b6c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140004b66
test eax, eax
jne 0x140004b66
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140004b3e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140004d20
Capabilities:
Parse pe header

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

Function at 0x140004d44
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140004d7e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140004d75
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140004d80
inc r8d
add rax, 0x28
jmp 0x140004d5c
xor eax, eax
ret

Function at 0x140004df1
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140982710]
mov r8, rcx
mov rcx, r9
call fcn.140004d20
test eax, eax
je 0x140004e1d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140004d44
xor eax, eax
add rsp, 0x28
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140027480]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140027490]
mov dword [rax], 1
mov rax, qword [0x1400274a0]
mov dword [rax], 1
mov rax, qword [0x140027470]
mov dword [rax], 1
mov rax, qword [0x140027340]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x140027460]
mov dword [0x14002a00c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x1400010c0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140027420]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140027400]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400272f0]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067

Function at 0x1400015e0
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov dword [rbp + 0x10], ecx
cmp dword [rbp + 0x10], 0
jne 0x1400015fb
mov ecx, 0
call sym.exit
mov r8d, dword [rbp + 0x10]
mov edx, 0
mov ecx, 0x1f0fff
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140001627
mov ecx, 0
call sym.exit
mov rax, qword [rbp - 8]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov r8d, 0x47e5a
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x140001665
mov ecx, 0
call sym.exit
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov qword [rsp + 0x20], 0
mov r9d, 0x23f2d
lea r8, [0x140003020]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call rax
test eax, eax
jne 0x14000169d
mov ecx, 0
call sym.exit
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, rdx
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
nop
add rsp, 0x50
pop rbp
ret