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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x14019389e
test rbx, rbx
je 0x14019389e
test r9, r9
je 0x14019389e
and qword [r8], 0
xor r8d, r8d
and dword [r9], 0
mov rcx, qword [rcx + 8]
mov qword [rax - 0x10], r9
lea r9, [rax + 0x10]
and qword [rax - 0x18], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14019389a
cmp dword [rsp + 0x48], 3
jne 0x14019389a
test eax, eax
jne 0x14019389a
cmp dword [rdi], eax
je 0x14019389a
mov ecx, dword [rdi]
call fcn.14008c198
mov qword [rbx], rax
lea r9, [rsp + 0x48]
mov rcx, qword [rbp + 8]
xor r8d, r8d
mov qword [rsp + 0x28], rdi
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14019388e
cmp dword [rsp + 0x48], 3
jne 0x14019388e
test eax, eax
jne 0x14019388e
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rbx]
call fcn.14008c190
and qword [rbx], 0
xor eax, eax
jmp 0x140193879
call fcn.14008d284
int3

Function at 0x140193b74
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x140193b85
xor eax, eax
jmp 0x140193bb3
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x40]
mov r9d, 4
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x140193bbc
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x140193bcd
xor eax, eax
jmp 0x140193bf1
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x28], r9d
mov r9d, 3
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x1401f7f90
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and dword [rax - 0x18], 0
mov rbp, r9
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.140245728
test eax, eax
jne 0x1401f7ff4
mov eax, dword [rsp + 0x30]
lea r8, str._s_s_X.tmp
mov dword [rsp + 0x28], eax
mov r9, rsi
mov rdx, rbp
mov qword [rsp + 0x20], rdi
mov rcx, rbx
call fcn.1400a30d0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401f8006
jmp 0x1401f7fb4
mov r9, rbx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140246cdc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140246a40
Function at 0x140251844
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x140251821
call fcn.140232664
mov dword [rax], 0x16
call fcn.140232514
or eax, 0xffffffff
jmp 0x14025183e
sub dword [rcx + 0x10], 1
jns 0x140251830
add rsp, 0x28
jmp fcn.140252918
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x140251800

Function at 0x140252918
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x1402525d4
call fcn.140232664
mov dword [rax], 0x16
call fcn.140232514
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1402525bc
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1402525bc
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x140252606
lock or dword [rax + 0x14], 0x10
jmp 0x1402525bc
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x140252623
mov rcx, qword [rbp + 0x10]
call fcn.140259284
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140244390
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.14025200c
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x14025267a
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x1402525bc
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1402526e6
mov rcx, qword [rbp + 0x10]
call fcn.140244390
cmp eax, 0xffffffff
je 0x1402526cd
mov rcx, qword [rbp + 0x10]
call fcn.140244390
cmp eax, 0xfffffffe
je 0x1402526cd
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140244390
movsxd rdi, eax
lea rsi, [0x14036c530]
mov rcx, rbx
sar rdi, 6
call fcn.140244390
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x1402526d4
lea rax, [0x14035dd30]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1402526e6
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x14025271c
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x140252718
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x140252718
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x1402525bf
jmp 0x14025258c
Function at 0x140252920
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x140252786
call fcn.140232664
mov dword [rax], 0x16
call fcn.140232514
mov eax, 0xffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140252768
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x140252768
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x20]
shr ecx, 1
test cl, 1
je 0x1402527b8
lock or dword [rax + 0x14], 0x10
jmp 0x140252768
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1402527d5
mov rcx, qword [rbp + 0x20]
call fcn.140259284
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x10], 1
jne 0x1402527ea
mov rcx, qword [rax]
mov sil, 1
mov r14b, byte [rcx]
jmp 0x1402527f0
xor sil, sil
xor r14b, r14b
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.140244390
mov rdx, qword [rbp + 0x20]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.14025200c
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x20]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 2
ja 0x140252843
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x20]
and dword [rax + 0x10], 0
jmp 0x140252768
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1402528af
mov rcx, qword [rbp + 0x20]
call fcn.140244390
cmp eax, 0xffffffff
je 0x140252896
mov rcx, qword [rbp + 0x20]
call fcn.140244390
cmp eax, 0xfffffffe
je 0x140252896
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.140244390
movsxd rdi, eax
lea r15, [0x14036c530]
mov rcx, rbx
sar rdi, 6
call fcn.140244390
and eax, 0x3f
shl rax, 6
add rax, qword [r15 + rdi*8]
jmp 0x14025289d
lea rax, [0x14035dd30]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1402528af
mov rax, qword [rbp + 0x20]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x20], 0x200
jne 0x1402528e5
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1402528e1
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1402528e1
mov rax, qword [rbp + 0x20]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax]
test sil, sil
je 0x140252903
movzx edx, byte [rcx]
dec dword [rax + 0x10]
shl dx, 8
movzx ecx, r14b
or dx, cx
inc qword [rax]
jmp 0x14025290e
movzx edx, word [rcx]
add dword [rax + 0x10], 0xfffffffe
add qword [rax], 2
movzx eax, dx
jmp 0x14025276d
jmp 0x140252734
Function at 0x1400021d4
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14001e020]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rdx
mov rsi, rcx
lea rdx, str..NET_Runtime
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov r14, rax
xor r15d, r15d
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r15w
lea r8d, [r15 + 0x28]
lea rdx, str.Description:_A_.NET_application_failed._n
lea rcx, [rbp - 0x28]
call fcn.1400042a8
lea r8d, [r15 + 0xd]
lea rdx, str.Application:
lea rcx, [rbp - 0x28]
call fcn.1400042a8
or rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp word [rdi + r8*2], r15w
jne 0x140002257
mov rdx, rdi
mov rcx, rax
call fcn.1400042a8
mov edi, 1
mov r8d, edi
lea rdx, [0x140017d50]
mov rcx, rax
call fcn.1400042a8
lea r8d, [rdi + 5]
lea rdx, str.Path:
lea rcx, [rbp - 0x28]
call fcn.1400042a8
inc rbx
cmp word [rsi + rbx*2], r15w
jne 0x140002297
mov r8, rbx
mov rdx, rsi
mov rcx, rax
call fcn.1400042a8
mov r8, rdi
lea rdx, [0x140017d50]
mov rcx, rax
call fcn.1400042a8
mov r8d, 9
lea rdx, str.Message:
lea rcx, [rbp - 0x28]
call fcn.1400042a8
lea rdx, [0x14001e4d8]
cmp qword [0x14001e4f0], 8
cmovae rdx, qword [0x14001e4d8]
mov r8, qword [0x14001e4e8]
mov rcx, rax
call fcn.1400042a8
mov r8, rdi
lea rdx, [0x140017d50]
mov rcx, rax
call fcn.1400042a8
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rax, qword [rbp - 0x28]
mov qword [rbp - 0x30], rax
xor r8d, r8d
mov edx, edi
mov qword [rsp + 0x40], r15
lea rax, [rbp - 0x30]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r15d
mov word [rsp + 0x28], di
mov qword [rsp + 0x20], r15
mov r9d, 0x3ff
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x14000239f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000239a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000239a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000f020
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14000f000
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400055a4
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbp
push rbx
push rsi
push rdi
push r13
mov rbp, rsp
sub rsp, 0x50
lea r13, [0x14001f498]
mov qword [rbp - 0x20], r13
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea rdi, [rbp + 0x38]
call fcn.1400052ac
mov rsi, rax
mov rcx, qword [rax]
or rcx, 1
mov qword [rsp + 0x28], rdi
and qword [rsp + 0x20], 0
mov r9, qword [rbp + 0x30]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vswprintf]
or ecx, 0xffffffff
test eax, eax
cmovs eax, ecx
inc eax
movsxd rbx, eax
mov rdx, rbx
lea rcx, [rbp - 0x18]
call fcn.14000581c
nop
mov rcx, qword [rsi]
or rcx, 1
mov qword [rsp + 0x28], rdi
and qword [rsp + 0x20], 0
mov r9, qword [rbp + 0x30]
mov r8, rbx
mov rdx, qword [rbp - 0x18]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vswprintf]
mov ecx, 8
mov rax, qword gs:[0x58]
mov rdi, qword [rax]
mov rax, qword [rcx + rdi]
test rax, rax
jne 0x140005691
mov rbx, qword [rbp - 0x18]
lea ecx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputws]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdx, rax
mov ecx, 0xa
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
jmp 0x14000569b
mov rcx, qword [rbp - 0x18]
call qword [0x140015410]
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [0x14001f4c8], 0
je 0x1400056fc
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rbx, qword [0x14001f4c0]
cmp rbx, rax
jne 0x1400056d1
mov eax, 8
cmp qword [rax + rdi], 0
je 0x1400056fc
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, qword [rbp + 0x30]
mov rdx, rbx
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vfwprintf]
mov ecx, 0xa
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
nop
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x14000574d
mov rax, qword [rbp - 8]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000573b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000573b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000f020
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
and qword [rbp - 8], 0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x50
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14000b830
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, 0x20
xor r14d, r14d
mov rbx, rdx
mov qword [rdx + 0x10], r14
mov rdi, rcx
cmp qword [rdx + 0x18], 8
mov rax, rdx
jb 0x14000b863
mov rax, qword [rdx]
xor r8d, r8d
mov word [rax], r14w
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebp, eax
test eax, eax
jne 0x14000b8af
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x14000b8ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r8d, ax
mov rdx, rdi
or r8d, 0x80070000
lea rcx, str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
test eax, eax
cmovle r8d, eax
call fcn.1400055a4
xor al, al
jmp 0x14000b8f5
mov rcx, 0xffffffffffffffff
mov eax, 2
mul rbp
cmovo rax, rcx
mov rcx, rax
call fcn.14000f2ec
mov r8d, ebp
mov rdx, rax
mov rcx, rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14000b885
mov rdx, rsi
mov rcx, rbx
call fcn.14000422c
mov rcx, rsi
call fcn.14000f020
mov al, 1
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
Function at 0x14002c230
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rcx, 0x7be9954f
jmp 0x14000daaf
dec rcx
jmp 0x14000db8f
jne 0x14000daaf
jmp 0x14000dd27
jmp 0x14000f2e3
jmp 0x14000f32f
jmp 0x14000f3a5
jmp 0x14000f3fa
jmp 0x14000f43c
jmp 0x14000f480
jmp 0x14000f4e8
jmp 0x14000f540
jmp 0x14000f57a
jmp 0x14000f5c2
jmp 0x14000f633
jmp 0x14000f66b
jmp 0x14000f691
jmp 0x14000f6f6
jmp 0x14000f74e
jmp 0x14000f7af
jmp 0x14000f7c9
jmp 0x14000f84a
jmp 0x14000f889
jmp 0x14000f8d8
xor rcx, rcx
nop
nop
nop
mov rdx, 0x889c
nop
nop
nop
nop
nop
mov r8d, 0x1000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
nop
nop
nop
call 0x14000f905
pop rsi
add rsi, 0xe5f
nop
nop
nop
nop
nop
mov rdi, rax
mov rcx, 0x889c
rep movsb byte [rdi], byte [rsi]
nop
nop
jmp rax
sub rsp, 0x28
call fcn.14002c90c
add rsp, 0x28
xor rcx, rcx
jmp 0x140004416

Function at 0x14002c840
Capabilities:
Parse pe header

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

Disassembly:
stc
movabs eax, dword [0x7c613798181c7b04]
out 0x55, al
xchg r11d, eax
invalid
cld
pop r11
jmp 0x140409b8d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140409b9d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140409b85
lea eax, [rcx + 1]
jmp 0x140409bab
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140409bbe
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140409ba4
sub eax, 3
jb 0x140409bde
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140409c2d
sar eax, 1
movsxd rbp, eax
jb 0x140409c14
jmp 0x140409bec
add ebx, ebx
jne 0x140409bea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140409c14
inc ecx
add ebx, ebx
jne 0x140409bfa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140409c14
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140409c0d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140409bfc
add ecx, 2
jmp 0x140409c19
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140409b42
jmp 0x140409b8d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
sub rsp, 0x28
lea rdi, [rsi + 0x402000]
mov eax, dword [rdi]
or eax, eax
je 0x140409c99
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x4091dc]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140409c3d
jns 0x140409c72
movzx rdx, word [rdi]
add rdi, 2
jmp 0x140409c7c
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140409c93
mov qword [rbx], rax
add rbx, 8
jmp 0x140409c5d
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140409cdd
cmp al, 0xef
ja 0x140409cc5
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140409ca5
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x140409cb4
mov eax, dword [rdi]
add rdi, 4
jmp 0x140409cb4
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x24f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140409d31
sub rsp, 0xffffffffffffff80
jmp 0x140264c44
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140013b50]
mov dword [rax], 1
mov rax, qword [0x140013b60]
mov dword [rax], 1
mov rax, qword [0x140013b70]
mov dword [rax], 1
mov rax, qword [0x140013b40]
mov dword [rax], 1
mov rax, qword [0x140013a10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000150a
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001b30
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.140003190
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140003190
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140002762
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14001b928]
test eax, eax
je 0x1400027fa
lea rax, [0x14001b900]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14001b930]
mov qword [rbp - 8], rax
jmp 0x1400027de
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1400027d2
cmp qword [rbp - 0x10], 0
je 0x1400027d2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140002798
lea rax, [0x14001b900]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400027fb
nop
add rsp, 0x30
pop rbp
ret