joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b7a0
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x140030d18]
test rcx, rcx
je 0x14000b7db
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000b7ce
mov rcx, qword [0x140030d18]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x140030d18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140030d28], 0
je 0x14000b8ce
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x14002aa50]
mov qword [rsp + 0x80], rsi
lea rsi, [0x140043550]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b8af
test al, 0x10
je 0x14000b8af
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000b855
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x14000d100
Capabilities:
Parse pe header

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

Function at 0x14000fe08
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000fe77
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000fe77
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000fe77
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000fe77
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000fe77
cmp dword [rcx + 0x84], 0xe
jbe 0x14000fe77
cmp dword [rcx + 0xf8], 0
je 0x14000fe77
mov ecx, ebx
call fcn.14000ff1c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000fd10
nop
cmp dword [rbp + 0x20], 0
jne 0x14000fed8
call fcn.140014aec
cmp eax, 1
jne 0x14000fec8
xor dl, dl
jmp 0x14000fed2
call fcn.140014ab8
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x14000fee3
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000feec
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000fe08

Function at 0x14000fff0
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000fe77
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000fe77
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000fe77
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000fe77
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000fe77
cmp dword [rcx + 0x84], 0xe
jbe 0x14000fe77
cmp dword [rcx + 0xf8], 0
je 0x14000fe77
mov ecx, ebx
call fcn.14000ff1c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000fd10
nop
cmp dword [rbp + 0x20], 0
jne 0x14000fed8
call fcn.140014aec
cmp eax, 1
jne 0x14000fec8
xor dl, dl
jmp 0x14000fed2
call fcn.140014ab8
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x14000fee3
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000feec
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000fe08
Function at 0x1400197e8
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 0x14001986f
mov rsi, rbx
cmp word [rax], bp
je 0x14001982e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140019818
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140019814
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140016d20
mov rdi, rax
test rax, rax
je 0x14001985c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140020a00
mov rbp, rdi
xor ecx, ecx
call fcn.140015d00
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 0x14001bd90
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001bda6
mov al, 1
jmp 0x14001be12
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001bdb7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001be10
mov ecx, dword [rcx + 0x18]
nop
call fcn.140019f8c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001be10
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001be10
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001be10
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001be12
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140020250
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140020278
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140020278
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140011019
Capabilities:
Create thread

Disassembly:
jmp 0x140015d50
mov qword [rsp + 0x18], r8
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 [0x14002d040]
xor rax, rbp
mov qword [rbp + 0x120], rax
lea rcx, [0x1400340fd]
call fcn.1400119a1
nop
mov edx, 8
lea rcx, [rbp + 8]
call fcn.140011677
mov r8, qword [rbp + 0x160]
mov rdx, qword [rbp + 0x158]
lea rcx, [rbp + 0x108]
call fcn.1400116a4
mov qword [rbp + 0x118], rax
mov rdx, qword [rbp + 0x118]
lea rcx, [rbp + 8]
call fcn.1400110f0
nop
lea rcx, [rbp + 0x108]
call fcn.1400115e6
nop
lea rax, [0x14001159b]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x150]
add rax, 8
mov qword [rbp + 0x118], rax
lea rcx, [rbp + 8]
call fcn.14001177b
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 0x140015e5f
lea rcx, [rbp + 8]
call fcn.1400119fb
nop
jmp 0x140015e78
mov rax, qword [rbp + 0x150]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.140011244
nop
lea rcx, [rbp + 8]
call fcn.1400115e6
nop
lea rcx, [rbp - 0x30]
lea rdx, [0x140027bf0]
call fcn.14001183e
mov rcx, qword [rbp + 0x120]
xor rcx, rbp
call fcn.1400114e2
lea rsp, [rbp + 0x138]
pop rdi
pop rbp
ret
Function at 0x140011320
Capabilities:
Enumerate processes

Disassembly:
jmp 0x1400193b0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x258
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x5e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x278]
mov rax, qword [0x14002d040]
xor rax, rbp
mov qword [rbp + 0x228], rax
lea rcx, [0x140034102]
call fcn.1400119a1
nop
xor edx, edx
mov ecx, 2
call fcn.1400114c4
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x140019456
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x224], eax
lea rdx, str.Failed_to_create_process_snapshot:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14001112c
mov ecx, dword [rbp + 0x224]
mov edx, ecx
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
lea rdx, [0x14001106e]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
xor eax, eax
jmp 0x1400194b9
mov dword [rbp + 0x30], 0x130
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.14001182f
test eax, eax
je 0x1400194ac
mov rcx, qword [rbp + 0x250]
call fcn.1400110ff
mov rdx, rax
lea rcx, [rbp + 0x5c]
call qword [sym.imp.ucrtbased.dll__stricmp]
test eax, eax
jne 0x14001949b
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, dword [rbp + 0x38]
jmp 0x1400194b9
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.1400119ba
test eax, eax
jne 0x14001946e
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140026e10]
call fcn.14001183e
mov rax, rdi
mov rcx, qword [rbp + 0x228]
xor rcx, rbp
call fcn.1400114e2
lea rsp, [rbp + 0x238]
pop rdi
pop rbp
ret

Function at 0x140011573
Capabilities:
Terminate process

Disassembly:
jmp 0x14001e6a0
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 0x1400116ae
Capabilities:
Set console window title

Disassembly:
jmp 0x14001ca90
push rbp
push rdi
sub rsp, 0x198
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14002d040]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x140034102]
call fcn.1400119a1
nop
lea rcx, str.Version_v2.100_CryptGuard__Kernel_Version:_NONE
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
nop
lea rdx, str.RobloxPlayerBeta.exe
lea rcx, [rbp + 8]
call fcn.140011465
nop
lea rcx, [rbp + 8]
call fcn.140011320
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jne 0x14001cb4a
lea rdx, str.Could_not_get_process:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14001112c
lea rdx, [rbp + 8]
mov rcx, rax
call fcn.1400118c5
lea rdx, [0x14001106e]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov dword [rbp + 0x154], 1
lea rcx, [rbp + 8]
call fcn.1400111d1
mov eax, dword [rbp + 0x154]
jmp 0x14001cba3
lea rdx, str.wait_n
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14001112c
nop
lea r8, [rbp + 0x44]
lea rdx, [0x1400118ed]
lea rcx, [rbp + 0x68]
call fcn.1400117bc
nop
lea rcx, [rbp + 0x68]
call fcn.140011005
nop
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
lea rcx, [rbp + 0x68]
call fcn.140011460
nop
lea rcx, [rbp + 8]
call fcn.1400111d1
nop
jmp 0x14001cba1
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140027450]
call fcn.14001183e
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.1400114e2
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret

Function at 0x1400116db
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001f9f0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001fa10
xor al, al
jmp 0x14001fa91
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001fa23
xor al, al
jmp 0x14001fa91
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 0x14001fa4d
xor al, al
jmp 0x14001fa91
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001fa61
xor al, al
jmp 0x14001fa91
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001fa73
xor al, al
jmp 0x14001fa91
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001fa8f
xor al, al
jmp 0x14001fa91
mov al, 1
add rsp, 0x38
ret
Function at 0x14001d7f0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400119ec
movzx eax, al
test eax, eax
jne 0x14001d810
mov ecx, 7
call fcn.14001184d
nop
mov byte [rsp + 0x20], 0
call fcn.140011889
mov byte [rsp + 0x21], al
cmp dword [0x14002db78], 1
jne 0x14001d834
mov ecx, 7
call fcn.14001184d
nop
jmp 0x14001d88c
cmp dword [0x14002db78], 0
jne 0x14001d887
mov dword [0x14002db78], 1
lea rdx, [0x140026660]
lea rcx, [0x140026330]
call fcn.1400114bf
test eax, eax
je 0x14001d868
mov eax, 0xff
jmp 0x14001d991
lea rdx, [0x140026220]
lea rcx, [section..rdata]
call fcn.140011870
mov dword [0x14002db78], 2
jmp 0x14001d88c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011834
call fcn.14001171c
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x14001d8e9
mov rcx, qword [rsp + 0x30]
call fcn.1400113cf
movzx eax, al
test eax, eax
je 0x14001d8e9
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 [0x140035020]
nop
call fcn.140011799
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001d91d
mov rcx, qword [rsp + 0x38]
call fcn.1400113cf
movzx eax, al
test eax, eax
je 0x14001d91d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011960
nop
call fcn.14001da40
mov dword [rsp + 0x28], eax
call fcn.1400116db
movzx eax, al
test eax, eax
jne 0x14001d93c
mov ecx, dword [rsp + 0x28]
call fcn.1400110cd
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001d94b
call fcn.140011974
nop
xor edx, edx
mov cl, 1
call fcn.140011398
mov eax, dword [rsp + 0x28]
jmp 0x14001d991
add rsp, 0x68
ret
Function at 0x140f66058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140f661df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140f66089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f6606f
add dl, dl
jne 0x140f66096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f660f6
xor eax, eax
add dl, dl
jne 0x140f660a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f661ad
add dl, dl
jne 0x140f660b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f660c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f660d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f660dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140f660ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140f6607e
mov eax, 1
add dl, dl
jne 0x140f66106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f66113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f660fb
sub eax, ebx
mov ebx, 1
jne 0x140f6614c
mov ecx, 1
add dl, dl
jne 0x140f6612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140f6613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f66123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f6607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140f66168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140f66175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f6615d
cmp eax, 0x7d00
jae 0x140f6619b
cmp eax, 0x500
jb 0x140f66196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f6607e
cmp eax, 0x7f
ja 0x140f6619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f6607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140f661d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140f6607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000e800]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000e810]
mov dword [rax], 1
mov rax, qword [0x14000e820]
mov dword [rax], 1
mov rax, qword [0x14000e7f0]
mov dword [rax], 1
mov rax, qword [0x14000e6b0]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x14000e7e0]
mov dword [0x140011020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010c0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14000e7a0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14000e780]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000e640]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
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 0x140001b30
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]

Function at 0x140001ba0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400110c4]
mov r12, rcx
test ebx, ebx
jle 0x140001cd0
mov rax, qword [0x1400110c8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x140001bec
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001c73
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x140001bd0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x140001cf2
mov rax, qword [0x1400110c8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400110c8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001cd7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001c6c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001c80
add dword [0x1400110c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1400110c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001c6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor ebx, ebx
jmp 0x140001bf7
mov rax, qword [0x1400110c8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400021b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140011120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140011100]
test rbx, rbx
je 0x140002204
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x1400021fb
test r12, r12
je 0x1400021fb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400021e0
lea rcx, [0x140011120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]