joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c0b14
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.1400a0fec
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400a0fec
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400c0c64
cmp rax, 0xffffffffffffffff
je 0x1400c0c64
xor edi, edi
test rbp, rbp
jle 0x1400c0c0f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14009da30
mov rbx, rax
test rax, rax
jne 0x1400c0b9c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400c0c05
mov edx, 0x8000
mov ecx, r14d
call fcn.1400bdee8
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.14009cf38
cmp eax, 0xffffffff
je 0x1400c0be5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400c0bac
mov edx, r15d
mov ecx, r14d
call fcn.1400bdee8
jmp 0x1400c0c05
cmp byte [rsi + 0x38], dil
je 0x1400c0bfc
cmp dword [rsi + 0x34], 5
jne 0x1400c0bfc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], send
cmp byte [rsi + 0x30], dil
je 0x1400c0c05
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14009d3c8
jmp 0x1400c0c78
jns 0x1400c0c78
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400a0fec
cmp rax, 0xffffffffffffffff
jne 0x1400c0c30
cmp byte [rsi + 0x30], dil
je 0x1400c0c78
mov edi, dword [rsi + 0x2c]
jmp 0x1400c0c78
mov ecx, r14d
call fcn.1400a5868
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400c0c78
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, recv
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], send
jmp 0x1400c0c78
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400c0c71
mov eax, dword [rsi + 0x2c]
jmp 0x1400c0c76
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400a0fec
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 0x1400c0d50
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400c0d78
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400c0d78
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001689
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov dword [0x140013038], 1
mov eax, dword [0x140013038]
mov dword [0x14001305c], eax
mov eax, dword [0x14001305c]
mov dword [0x140013058], eax
mov qword [0x140013040], 0
lea rax, str.POSIXLY_CORRECT
mov rcx, rax
call sub.msvcrt.dll_getenv
mov qword [0x140013050], rax
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax]
cmp al, 0x2d
jne 0x1400016f4
mov dword [0x140013048], 2
add qword [rbp + 0x10], 1
jmp 0x140001732
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax]
cmp al, 0x2b
jne 0x140001710
mov dword [0x140013048], 0
add qword [rbp + 0x10], 1
jmp 0x140001732
mov rax, qword [0x140013050]
test rax, rax
je 0x140001728
mov dword [0x140013048], 0
jmp 0x140001732
mov dword [0x140013048], 1
mov rax, qword [rbp + 0x10]
add rsp, 0x20
pop rbp
ret
Function at 0x140002921
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Create process suspended

Disassembly:
push rbp
push rbx
sub rsp, 0xe8
lea rbp, [rsp + 0xe0]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp - 8], 0
mov dword [rbp - 0x90], 0x68
mov qword [rbp - 0x88], 0
mov qword [rbp - 0x78], 0
mov qword [rbp - 0x80], 0
mov dword [rbp - 0x64], 0
mov eax, dword [rbp - 0x64]
mov dword [rbp - 0x68], eax
mov eax, dword [rbp - 0x68]
mov dword [rbp - 0x6c], eax
mov eax, dword [rbp - 0x6c]
mov dword [rbp - 0x70], eax
mov word [rbp - 0x50], 0
mov qword [rbp - 0x48], 0
mov word [rbp - 0x4e], 0
mov dword [rbp - 0x54], 0x101
mov rax, qword [rbp + 0x20]
mov qword [rbp - 0x40], rax
mov rax, qword [rbp + 0x28]
mov qword [rbp - 0x38], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rax, [rbp - 0x90]
lea rdx, [rax + 0x60]
mov rax, qword [rbp + 0x28]
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 2
mov r9, rdx
mov r8, rbx
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call rax
mov rax, qword [0x14000f9c0]
mov rax, qword [rax]
lea rdx, [rbp - 0x20]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp - 0x90]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
je 0x140002a78
mov rax, qword [rbp - 0x20]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x140002ad1
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov ecx, eax
mov r8d, 0xa
lea rax, [0x140013060]
mov rdx, rax
call sub.msvcrt.dll__itoa
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rax
lea rax, str.Failed_to_execute_shell__error___s
mov rcx, rax
call fcn.140003200
mov rax, qword [rbp - 8]
add rsp, 0xe8
pop rbx
pop rbp
ret

Function at 0x140002ea6
Capabilities:
Initialize winsock library

Disassembly:
push rbp
sub rsp, 0x1c0
lea rbp, [rsp + 0x80]
mov word [rbp + 0x13e], 0x101
movzx eax, word [rbp + 0x13e]
lea rdx, [rbp - 0x60]
mov ecx, eax
mov rax, qword [sym.imp.WSOCK32.dll_WSAStartup]
call rax
mov dword [rbp + 0x138], eax
cmp dword [rbp + 0x138], 0
jne 0x140002f03
movzx eax, word [rbp - 0x60]
cmp al, 1
jne 0x140002ef8
movzx eax, word [rbp - 0x60]
shr ax, 8
cmp al, 1
je 0x140002f04
mov rax, qword [sym.imp.WSOCK32.dll_WSACleanup]
call rax
jmp 0x140002f04
nop
add rsp, 0x1c0
pop rbp
ret
Function at 0x1400044c4
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov dword [rbp + 0x20], ecx
mov qword [rbp + 0x28], rdx
mov rdx, qword [0x1400131c8]
mov eax, dword [rbp + 0x20]
cdqe
mov r9d, 0
mov r8d, 1
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_send]
call rax
mov ebx, eax
cmp ebx, 1
je 0x14000451d
mov rax, qword [sym.imp.msvcrt.dll__errno]
call rax
mov eax, dword [rax]
mov edx, eax
lea rax, str.udptest_first_write_failed___errno__d
mov rcx, rax
call fcn.140003200
mov eax, dword [0x140013218]
test eax, eax
je 0x140004540
mov eax, dword [0x140013218]
imul eax, eax, 0x3e8
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
jmp 0x1400045b6
mov word [0x140013214], 0
mov dword [0x140013218], 5
mov rax, qword [rbp + 0x28]
mov r9d, 0
mov r8d, 0
mov edx, 0x7a69
mov rcx, rax
call fcn.140003c2b
mov ebx, eax
test ebx, ebx
jle 0x14000458c
mov eax, dword [rbp + 0x20]
cdqe
mov edx, 2
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_shutdown]
call rax
movsxd rax, ebx
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_closesocket]
call rax
mov dword [0x140013218], 0
movzx eax, word [0x140013214]
add eax, 1
mov word [0x140013214], ax
mov rax, qword [sym.imp.msvcrt.dll__errno]
call rax
mov dword [rax], 0
mov rdx, qword [0x1400131c8]
mov eax, dword [rbp + 0x20]
cdqe
mov r9d, 0
mov r8d, 1
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_send]
call rax
mov ebx, eax
cmp ebx, 1
jne 0x1400045f5
mov eax, dword [rbp + 0x20]
jmp 0x140004621
mov eax, dword [rbp + 0x20]
cdqe
mov edx, 2
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_shutdown]
call rax
mov eax, dword [rbp + 0x20]
cdqe
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_closesocket]
call rax
mov eax, 0xffffffff
add rsp, 0x28
pop rbx
pop rbp
ret

Function at 0x140004829
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x30], rcx
mov dword [rbp + 0x38], edx
mov edi, 0
mov rbx, qword [rbp + 0x30]
mov esi, dword [rbp + 0x38]
jmp 0x1400048de
movzx eax, byte [rbx]
cmp al, 0xff
jne 0x1400048d3
mov byte [0x140013232], 0xff
add rbx, 1
sub esi, 1
movzx eax, byte [rbx]
cmp al, 0xfb
je 0x140004871
movzx eax, byte [rbx]
cmp al, 0xfc
jne 0x140004876
mov edi, 0xfffffffe
movzx eax, byte [rbx]
cmp al, 0xfd
je 0x140004884
movzx eax, byte [rbx]
cmp al, 0xfe
jne 0x140004889
mov edi, 0xfffffffc
test dil, dil
je 0x1400048d6
mov byte [0x140013233], dil
add rbx, 1
sub esi, 1
movzx eax, byte [rbx]
mov byte [0x140013234], al
mov eax, dword [0x14000d010]
cdqe
mov r9d, 0
mov r8d, 3
lea rdx, [0x140013232]
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_send]
call rax
mov edi, 0
jmp 0x1400048d7
nop
jmp 0x1400048d7
nop
add rbx, 1
sub esi, 1
test esi, esi
jg 0x14000484e
nop
nop
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140006270
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
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.14000c500
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.14000c500
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 0x1400062e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400132a4]
mov rbx, rcx
test esi, esi
jle 0x140006410
mov rax, qword [0x1400132a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000632b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400063b5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140006310
mov rcx, rbx
call fcn.140006d60
mov rdi, rax
test rax, rax
je 0x140006432
mov rax, qword [0x1400132a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140006ea0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400132a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140006417
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400063ae
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400063c0
add dword [0x1400132a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
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 [0x1400132a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400063ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140006270
nop dword [rax]
xor esi, esi
jmp 0x140006338
mov rax, qword [0x1400132a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140006270
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140006270
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400069d0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140013300]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400132e0]
test rbx, rbx
je 0x140006a2c
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 rsi, rsi
je 0x140006a23
test eax, eax
jne 0x140006a23
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140006a08
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 0x140006d60
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000f810]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140006d80
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140006d88
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140006d80
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140006ddd
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]
mov rdx, r8
cmp rcx, r8
jb 0x140006dd4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140006d80
add rax, 0x28
cmp rax, r9
jne 0x140006dc0
xor eax, eax
ret

Function at 0x140006de0
Capabilities:
Parse pe header

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

Function at 0x140006ea0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000f810]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140006ebf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140006ec8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14001117c
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400296d0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x14004b110]
call fcn.140011db6
nop
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x140029728
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x14002983a
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x1400297d3
cmp qword [rbp + 0x28], 0
jle 0x1400297d3
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x140029771
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.140011cf3
nop
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
nop
cmp qword [rbp + 0x130], 0
jle 0x140029829
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x140029829
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x1400117b2
Capabilities:
Terminate process

Disassembly:
jmp 0x14002b400
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret
Function at 0x14001198d
Capabilities:
Parse pe header

Disassembly:
jmp 0x14002d310
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14002d330
xor al, al
jmp 0x14002d3b1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14002d343
xor al, al
jmp 0x14002d3b1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14002d36d
xor al, al
jmp 0x14002d3b1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14002d381
xor al, al
jmp 0x14002d3b1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14002d393
xor al, al
jmp 0x14002d3b1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14002d3af
xor al, al
jmp 0x14002d3b1
mov al, 1
add rsp, 0x38
ret
Function at 0x140011d7f
Capabilities:
Write file on windows

Disassembly:
jmp 0x140022150
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c8]
mov rax, qword [0x140041040]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x14004b110]
call fcn.140011db6
nop
mov rax, qword [rbp + 0x190]
cmp qword [rax + 0x68], 0
je 0x1400221b7
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400221be
mov al, 1
jmp 0x14002230e
call fcn.1400113d4
mov rcx, qword [rbp + 0x190]
mov rcx, qword [rcx]
mov qword [rbp + 0x158], rcx
mov edx, eax
mov rcx, qword [rbp + 0x190]
mov rax, qword [rbp + 0x158]
call qword [rax + 0x18]
mov dword [rbp + 0x160], eax
call fcn.1400113d4
mov ecx, dword [rbp + 0x160]
mov edx, ecx
mov ecx, eax
call fcn.140011ac3
movzx eax, al
test eax, eax
je 0x14002220f
xor al, al
jmp 0x14002230e
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x190]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x190]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x154], eax
cmp dword [rbp + 0x154], 0
je 0x140022274
cmp dword [rbp + 0x154], 1
je 0x14002227f
cmp dword [rbp + 0x154], 3
je 0x1400222fd
jmp 0x14002230c
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x1400222cf
mov rax, qword [rbp + 0x190]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x1400222cf
xor al, al
jmp 0x14002230e
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400222ea
mov dword [rbp + 0x154], 1
jmp 0x1400222f4
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x14002230e
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14002230e
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140037500]
call fcn.140011b4a
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.14001168b
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x140018d60
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x188]
mov rax, qword [0x140041040]
xor rax, rbp
mov qword [rbp + 0x120], rax
lea rcx, [0x14004b11f]
call fcn.140011db6
nop
mov edx, 8
lea rcx, [rbp + 8]
call fcn.140025050
mov rdx, qword [rbp + 0x158]
lea rcx, [rbp + 0x108]
call fcn.14001a630
mov qword [rbp + 0x118], rax
mov rdx, qword [rbp + 0x118]
lea rcx, [rbp + 8]
call fcn.1400149c0
nop
lea rcx, [rbp + 0x108]
call fcn.14001d470
nop
lea rax, [0x140018290]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x150]
add rax, 8
mov qword [rbp + 0x118], rax
lea rcx, [rbp + 8]
call fcn.1400262b0
mov rcx, qword [rbp + 0x118]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov rcx, qword [rbp + 0x150]
mov qword [rcx], rax
mov rax, qword [rbp + 0x150]
cmp qword [rax], 0
je 0x140018e63
lea rcx, [rbp + 8]
call fcn.140027900
nop
jmp 0x140018e7c
mov rax, qword [rbp + 0x150]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.14001132a
nop
lea rcx, [rbp + 8]
call fcn.14001d470
nop
lea rcx, [rbp - 0x30]
lea rdx, [0x140038710]
call fcn.140011b4a
mov rcx, qword [rbp + 0x120]
xor rcx, rbp
call fcn.14001168b
lea rsp, [rbp + 0x138]
pop rdi
pop rbp
ret
Function at 0x14002c100
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011e3d
movzx eax, al
test eax, eax
jne 0x14002c120
mov ecx, 7
call fcn.140011b63
nop
mov byte [rsp + 0x20], 0
call fcn.140011bb3
mov byte [rsp + 0x21], al
cmp dword [0x140041900], 1
jne 0x14002c144
mov ecx, 7
call fcn.140011b63
nop
jmp 0x14002c19c
cmp dword [0x140041900], 0
jne 0x14002c197
mov dword [0x140041900], 1
lea rdx, [0x140035880]
lea rcx, [0x140035550]
call fcn.140011659
test eax, eax
je 0x14002c178
mov eax, 0xff
jmp 0x14002c2a1
lea rdx, [0x140035440]
lea rcx, [section..rdata]
call fcn.140011b95
mov dword [0x140041900], 2
jmp 0x14002c19c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011b3b
call fcn.1400119e7
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x14002c1f9
mov rcx, qword [rsp + 0x30]
call fcn.140011528
movzx eax, al
test eax, eax
je 0x14002c1f9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x14004c020]
nop
call fcn.140011a8c
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14002c22d
mov rcx, qword [rsp + 0x38]
call fcn.140011528
movzx eax, al
test eax, eax
je 0x14002c22d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011d48
nop
call fcn.14002c310
mov dword [rsp + 0x28], eax
call fcn.14001198d
movzx eax, al
test eax, eax
jne 0x14002c24c
mov ecx, dword [rsp + 0x28]
call fcn.14001111d
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14002c25b
call fcn.140011d66
nop
xor edx, edx
mov cl, 1
call fcn.1400114c9
mov eax, dword [rsp + 0x28]
jmp 0x14002c2a1
add rsp, 0x68
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00405800]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x00405810]
mov dword [rax], 1
mov rax, qword [0x00405820]
mov dword [rax], 1
mov rax, qword [0x004057f0]
mov dword [rax], 1
mov rax, qword [0x004056b0]
cmp word [rax], 0x5a4d
je 0x4010d0
mov rax, qword [0x004057e0]
mov dword [0x00408008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010c2
mov ecx, 2
call sym.__set_app_type
mov rcx, 0xffffffffffffffff
call dbg._encode_pointer
mov rdx, qword [0x00405740]
mov qword [rdx], rax
mov rdx, qword [0x00405730]
mov qword [rdx], rax
mov rax, qword [0x004057a0]
mov edx, dword [rax]
mov rax, qword [sym.imp.msvcrt.dll__fmode]
mov rax, qword [rax]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x00405660]
cmp dword [rax], 1
je 0x401120
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401133
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058