joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002b1c
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x140008020]
xor rax, rsp
mov qword [rsp + 0x280], rax
and dword [rsp + 0x60], 0
mov dword [rsp + 0x64], edx
lea rcx, [rsp + 0x70]
lea rdx, [0x1400056c8]
mov r8d, 0x34
call sub.MSVCR90.dll_memcpy
lea rcx, [rsp + 0xa4]
xor edx, edx
mov r8d, 0x1d4
call sub.MSVCR90.dll_memset
lea rdx, [rsp + 0x50]
mov rdi, 0xffffffff80000002
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x70]
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140002bdf
lea rax, [rsp + 0x68]
lea rdx, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
mov rcx, rdi
mov dword [rsp + 0x28], 0x20006
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140002d05
mov rcx, qword [rsp + 0x50]
mov esi, 4
lea rax, [rsp + 0x5c]
lea rdx, str.VERSION_Value
mov r9d, esi
xor r8d, r8d
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x5c], 0x7d3
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
or rcx, 0xffffffffffffffff
lea rdx, [0x140005700]
xor eax, eax
mov rdi, rdx
lea r9d, [rsi - 3]
repne scasw ax, word [rdi]
xor r8d, r8d
not rcx
lea eax, [rcx + rcx + 2]
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
lea rdx, [0x1400057f0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
or rcx, 0xffffffffffffffff
lea rdx, str.ff3487rbea4775grsn9_.uvu_a35_7754_bml_22114i81
xor eax, eax
mov rdi, rdx
lea r9d, [rsi - 3]
repne scasw ax, word [rdi]
xor r8d, r8d
not rcx
lea eax, [rcx + rcx + 2]
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
lea rdx, [0x140005810]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
lea rdx, [0x140005830]
mov r9d, esi
xor r8d, r8d
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x64]
lea rdx, str.DNS_Value
mov r9d, esi
xor r8d, r8d
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call fcn.140002a64
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x58], eax
lea rax, [rsp + 0x58]
lea rdx, str.SubNet_Value
mov r9d, esi
xor r8d, r8d
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140002d15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140003660
mov rsi, qword [rsp + 0x2a0]
add rsp, 0x290
pop rdi
ret
Function at 0x140003bf3
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140008020]
jne 0x14000367a
rol rcx, 0x10
test cx, 0xffff
jne 0x140003676
repz ret
ror rcx, 0x10
jmp 0x140003b4c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140008ca0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x140008d98]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140003bd1
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140008ca0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140003bf3
mov rax, qword [rsp + 0x88]
mov qword [0x140008d98], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140008d38], rax
mov rax, qword [0x140008d98]
mov qword [0x140008c10], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140008d20], rax
mov dword [0x140008c00], 0xc0000409
mov dword [0x140008c04], 1
mov rax, qword [0x140008020]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140008028]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140008c98], eax
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400053f0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140008c98], 0
jne 0x140003c7a
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x7ff6c5921bcc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [0x7ff6c5923060]
test rax, rax
je 0x7ff6c5921c16
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x7ff6c5921c16
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x7ff6c5921c16
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x7ff6c5921c16
cmp dword [rcx + 0x84], 0xe
jbe 0x7ff6c5921c16
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x7ff6c5921c18
xor al, al
add rsp, 0x28
ret
Function at 0x140032980
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140054d50], rbx
je 0x1400329cc
cmp rax, rbx
jne 0x1400329bf
mov ebx, 1
mov esi, ebx
jmp 0x1400329d1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400329a4
mov ebx, 1
mov eax, dword [0x140054d58]
cmp eax, ebx
jne 0x1400329e7
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x140032a4c
mov eax, dword [0x140054d58]
test eax, eax
jne 0x140032a46
mov dword [0x140054d58], ebx
lea r15, [0x1400376a0]
lea rdi, [0x140037688]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140032a38
test eax, eax
jne 0x140032a3c
cmp qword [rdi], 0
je 0x140032a2d
mov rax, qword [rdi]
mov rcx, qword [0x1400375e8]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x140032a0e
test eax, eax
je 0x140032a4c
mov eax, 0xff
jmp 0x140032b28
mov dword [0x140054738], ebx
mov eax, dword [0x140054d58]
cmp eax, ebx
jne 0x140032a73
lea rdx, [0x140037680]
lea rcx, [0x1400375f0]
call sub.msvcrt.dll__initterm
mov dword [0x140054d58], 2
test esi, esi
jne 0x140032a80
xor eax, eax
xchg qword [0x140054d50], rax
cmp qword [0x140054d70], 0
je 0x140032ab4
lea rcx, [0x140054d70]
call fcn.140033030
test eax, eax
je 0x140032ab4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140054d70]
mov r9, qword [0x1400375e8]
call r9
mov r8, qword [0x140054750]
mov rdx, qword [0x140054748]
mov ecx, dword [0x140054740]
call fcn.1400285b0
mov dword [0x140054734], eax
cmp dword [0x140054758], 0
jne 0x140032ae4
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140054738], 0
jne 0x140032af9
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140054734]
jmp 0x140032b28
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.1401c5000
add rsp, 0x28
jmp 0x140032980

Function at 0x140032f2c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140032f78
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140032f70
cmp dword [rcx + 0x3c], edx
jl 0x140032f70
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140032f70
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140032f78
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140007e50
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rcx, qword [0x140022048]
test rcx, rcx
je 0x140007e8b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140007eb0
mov rcx, qword [0x140022048]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14002b0a8], 0
jne 0x140007ec8
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [0x140022048]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x140007e7e
lea r12, [rsp + 0x20]
mov edx, 0x414
mov rbp, qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov qword [rsp + 0x20], 0
lea rsi, [0x14001c38c]
mov dword [rsp + 0x28], 3
mov rcx, r12
mov ebx, 0x14
lea rdi, [0x14002b0c0]
movq xmm0, rsi
mov word [rsp + 0x40], dx
movq xmm6, rdi
mov dword [rsp + 0x44], 0
punpcklqdq xmm6, xmm0
mov qword [rsp + 0x50], rsi
movaps xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x48], 0
call rbp
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140007f94
test al, 0x10
je 0x140007e94
mov ecx, 0x64
call r14
mov eax, 0x414
movaps xmmword [rsp + 0x30], xmm6
mov rcx, r12
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rsi
call rbp
sub ebx, 1
je 0x140007e94
mov rcx, rdi
call r13
cmp eax, 0xffffffff
jne 0x140007f40
jmp 0x140007e94
Function at 0x14000f6f0
Capabilities:
Create directory

Disassembly:
push rdi
mov eax, 0x2020
push rsi
push rbx
call fcn.140014f80
sub rsp, rax
mov eax, dword [0x14002f0c0]
test eax, eax
mov rsi, rcx
je 0x14000f790
lea rdi, [0x14002d0c0]
xor ebx, ebx
test eax, eax
jg 0x14000f72c
jmp 0x14000f740
add rbx, 1
cmp dword [0x14002f0c0], ebx
jle 0x14000f740
mov rdx, qword [rdi + rbx*8]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14000f720
jmp 0x14000f777
mov rcx, rsi
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x14000f755
cmp word [rsi + 2], 0x3a
je 0x14000f777
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000f7e0
movsxd rbx, dword [0x14002f0c0]
cmp ebx, 0x3ff
jle 0x14000f7f8
mov eax, 1
add rsp, 0x2020
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
mov r8d, 0x1000
lea rbx, str._HOME_
mov rcx, rdi
mov rdx, rbx
call fcn.140007690
test al, al
je 0x14000f81a
movsxd rbx, dword [0x14002f0c0]
mov rcx, rdi
call sub.msvcrt.dll__wcsdup
lea rdi, [0x14002d0c0]
mov qword [rdi + rbx*8], rax
mov eax, dword [0x14002f0c0]
add eax, 1
mov dword [0x14002f0c0], eax
jmp 0x14000f711
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000f764
xor eax, eax
jmp 0x14000f77c
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add dword [0x14002f0c0], 1
mov rdx, rax
lea rax, [0x14002d0c0]
mov qword [rax + rbx*8], rdx
jmp 0x14000f777
mov rcx, rbx
call fcn.140007e20
nop
nop word cs:[rax + rax]
nop
Function at 0x1400141c0
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.140019fa0
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.140019fa0
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 0x140014230
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14002f144]
test esi, esi
mov rbx, rcx
jle 0x140014360
mov rax, qword [0x14002f148]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14001427b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140014305
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140014260
mov rcx, rbx
call fcn.140014ca0
test rax, rax
mov rdi, rax
je 0x140014382
mov rax, qword [0x14002f148]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140014de0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14002f148]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140014367
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400142fe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140014310
add dword [0x14002f144], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x14002f148]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400142fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400141c0
nop dword [rax]
xor esi, esi
jmp 0x140014288
mov rax, qword [0x14002f148]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.1400141c0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.1400141c0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400148f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14002f1a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14002f180]
test rbx, rbx
je 0x14001494c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140014943
test rsi, rsi
je 0x140014943
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140014928
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140014b60
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140014b98
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140014ba0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140014b70
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140014b98
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140014ba0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140014b80
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140014b98
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140014ba0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140014ca0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14001d9f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140014cc0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140014cc8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140014cc0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140014d1d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x140014d14
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140014cc0
add rax, 0x28
cmp rax, r9
jne 0x140014d00
xor eax, eax
ret

Function at 0x140014d20
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001d9f0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140014d3f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140014d48
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140014d3f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140014de0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001d9f0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140014dff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140014e08
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14004ade0]
mov dword [rax], 1
mov rax, qword [0x14004adf0]
mov dword [rax], 1
mov rax, qword [0x14004ae00]
mov dword [rax], 1
mov rax, qword [0x14004ad60]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
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 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14002ce60
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.14003e5f0
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.14003e5f0
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x14002db32
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140053128]
test eax, eax
je 0x14002dbca
lea rax, [0x140053100]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140053130]
mov qword [rbp - 8], rax
jmp 0x14002dbae
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 0x14002dba2
cmp qword [rbp - 0x10], 0
je 0x14002dba2
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 0x14002db68
lea rax, [0x140053100]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14002dbcb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14002dcd0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14002dcf8
mov eax, 0
jmp 0x14002dd46
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 0x14002dd21
mov eax, 0
jmp 0x14002dd46
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14002dd41
mov eax, 0
jmp 0x14002dd46
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14002dd4c
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 0x14002ddca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14002ddc1
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 0x14002ddc1
mov rax, qword [rbp - 8]
jmp 0x14002dddf
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 0x14002dd94
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x930d20
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x930d2d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x930d3d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x930d25
lea eax, [rcx + 1]
jmp 0x930d4b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x930d5e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x930d44
sub eax, 3
jb 0x930d7e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x930dcd
sar eax, 1
movsxd rbp, eax
jb 0x930db4
jmp 0x930d8c
add ebx, ebx
jne 0x930d8a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x930db4
inc ecx
add ebx, ebx
jne 0x930d9a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x930db4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x930dad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x930d9c
add ecx, 2
jmp 0x930db9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00930ce2
jmp 0x930d2d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x236c00
mov dl, 0x25
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x930e19
cmp rsi, rcx
jae 0x930e21
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x930e00
cmp al, 0x8f
ja 0x930e00
cmp byte [rsi - 2], 0xf
je 0x930e06
sub al, 0xe8
cmp al, 1
ja 0x930dea
cmp rsi, rcx
jae 0x930e21
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x930df0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x930e21
lodsb al, byte [rsi]
jmp 0x930e00
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x529000]
mov eax, dword [rdi]
or eax, eax
je 0x930e7e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x55d5fc]
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 0x930e2e
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 0x930e78
mov qword [rbx], rax
add rbx, 8
jmp 0x930e4e
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 0x930ec2
cmp al, 0xef
ja 0x930eaa
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x930e8a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x930e99
mov eax, dword [rdi]
add rdi, 4
jmp 0x930e99
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 + 0x1af]
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 0x930f16
sub rsp, 0xffffffffffffff80
jmp 0x45c540