joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001b150
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.14001a350
mov ecx, dword [0x1400b5178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001b260
lea r14, [rbx + 0x68]
mov rcx, r14
call fcn.140019b60
cmp esi, dword [rbx + 0x48]
jae 0x14001b1e0
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r14
mov byte [rax + rsi], 1
call fcn.140019ba0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rbx + 0x50]
lea r15d, [rsi + 1]
movsxd r13, r15d
lea rdx, [r13*8]
call sub.msvcrt.dll_realloc
test rax, rax
mov rdi, rax
je 0x14001b26d
mov rcx, qword [rbx + 0x58]
mov rdx, r13
movq xmm6, rdi
call sub.msvcrt.dll_realloc
movq xmm0, rax
test rax, rax
mov r13, rax
punpcklqdq xmm6, xmm0
je 0x14001b26d
mov eax, dword [rbx + 0x48]
mov edx, r15d
lea rcx, [rdi + rax*8]
sub edx, eax
lea r8, [rdx*8]
xor edx, edx
call sub.msvcrt.dll_memset
mov edx, dword [rbx + 0x48]
mov r8d, r15d
lea rcx, [r13 + rdx]
sub r8d, edx
xor edx, edx
call sub.msvcrt.dll_memset
movaps xmmword [rbx + 0x50], xmm6
mov dword [rbx + 0x48], r15d
jmp 0x14001b1a4
call fcn.14001a400
mov rbx, rax
jmp 0x14001b18f
mov rcx, r14
call fcn.140019ba0
mov eax, 0xc
jmp 0x14001b1c2

Function at 0x14001b2f0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001a350
mov ecx, dword [0x1400b5178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001b318
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.14001a400
test rax, rax
jne 0x14001b30a
add rsp, 0x28
ret

Function at 0x14001b380
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001a350
mov ecx, dword [0x1400b5178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001b3a8
add rax, 0x18
add rsp, 0x28
ret
call fcn.14001a400
test rax, rax
jne 0x14001b39a
jmp 0x14001b39e

Function at 0x14001b4c0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400e4d48]
test eax, eax
jne 0x14001b4d8
xor eax, eax
add rsp, 0x28
ret
call fcn.14001a350
mov ecx, dword [0x1400b5178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001b508
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14001b4ce
test byte [rax + 0x40], 3
je 0x14001b4ce
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x14001b4d0
call fcn.14001a400
test rax, rax
jne 0x14001b4ee
jmp 0x14001b4ce
Function at 0x14001b520
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.14001a350
mov ecx, dword [0x1400b5178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001b560
test ebx, ebx
jle 0x14001b550
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.14001a400
test rax, rax
jne 0x14001b53d
add rsp, 0x20
pop rbx
ret

Function at 0x14001b650
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001a350
mov ecx, dword [0x1400b5178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001b6c8
test byte [rbx + 0x40], 0xc
jne 0x14001b67f
mov eax, dword [0x1400e4d48]
test eax, eax
jne 0x14001b690
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140019560
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001b6b3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001b6b3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001b6dc
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140019850
call fcn.14001a400
test rax, rax
mov rbx, rax
jne 0x14001b66f
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x30]
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001b6fa
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140019850
call fcn.14001b570
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001b780
call fcn.140019320
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14001b7b8
call fcn.14001a350
mov ecx, dword [0x1400b5178]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001b810
test esi, esi
je 0x14001b796
call fcn.14001b650
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001b7f0
mov edx, edi
call fcn.1400193d0
call fcn.14001b650
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001a350
mov ecx, dword [0x1400b5178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001b800
call fcn.14001b650
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001b650
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001a350
mov ecx, dword [0x1400b5178]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x14001b755
call fcn.14001a400
mov rbx, rax
jmp 0x14001b755
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001b76e
call fcn.14001a400
jmp 0x14001b796
call fcn.14001a400
mov rbx, rax
jmp 0x14001b751
Function at 0x14001b710
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001a350
mov ecx, dword [0x1400b5178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001b6c8
test byte [rbx + 0x40], 0xc
jne 0x14001b67f
mov eax, dword [0x1400e4d48]
test eax, eax
jne 0x14001b690
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140019560
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001b6b3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001b6b3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001b6dc
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140019850
call fcn.14001a400
test rax, rax
mov rbx, rax
jne 0x14001b66f
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x30]
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001b6fa
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140019850
call fcn.14001b570
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001b780
call fcn.140019320
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14001b7b8
call fcn.14001a350
mov ecx, dword [0x1400b5178]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001b810
test esi, esi
je 0x14001b796
call fcn.14001b650
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001b7f0
mov edx, edi
call fcn.1400193d0
call fcn.14001b650
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001a350
mov ecx, dword [0x1400b5178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001b800
call fcn.14001b650
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001b650
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001a350
mov ecx, dword [0x1400b5178]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x14001b755
call fcn.14001a400
mov rbx, rax
jmp 0x14001b755
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001b76e
call fcn.14001a400
jmp 0x14001b796
call fcn.14001a400
mov rbx, rax
jmp 0x14001b751

Function at 0x14001b820
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.14001a350
mov ecx, dword [0x1400b5178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001b890
test esi, esi
je 0x14001b870
call fcn.14001b650
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001b8a0
mov edx, esi
call fcn.1400193d0
call fcn.14001b650
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001b650
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001b650
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001a400
mov rbx, rax
jmp 0x14001b841
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001b85a
Function at 0x14007a270
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x14007a297
call rbp
cmp dword [rax], 4
jne 0x14007a2b4
mov rcx, rdi
call fcn.14007a0a0
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sub.msvcrt.dll__read
cmp eax, 0xffffffff
movsxd r12, eax
je 0x14007a290
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140002340
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140005ec0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000235f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002368
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002520
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov r8d, 0x2c
mov ecx, 2
lea rdx, str._stack_smashing_detected_:_terminated_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x140002550
mov ecx, 2
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x140002ae0
Capabilities:
Get local ipv4 addresses

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rbp, qword [0x140005f90]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rax, qword [rbp]
mov qword [rsp + 0x48], rax
xor eax, eax
lea rsi, [rsp + 0x3c]
xor eax, eax
mov rdi, rcx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
mov dword [rsp + 0x3c], eax
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
cmp eax, 0x6f
je 0x140002b2a
xor eax, eax
jmp 0x140002bac
mov edx, dword [rsp + 0x3c]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
test rax, rax
mov rbx, rax
je 0x140002b23
mov qword [rsp + 0x20], rsi
mov r9, rax
xor r8d, r8d
xor edx, edx
lea r12, [rsp + 0x42]
xor ecx, ecx
mov rsi, rbx
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
cmp dword [rsi + 0x58], 6
jne 0x140002b95
mov eax, dword [rsi + 0x50]
mov r8d, 3
mov rdx, r12
mov rcx, rdi
mov dword [rsp + 0x42], eax
mov ax, word [rsi + 0x54]
mov word [rsp + 0x46], ax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
test eax, eax
jne 0x140002b95
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov al, 1
jmp 0x140002bac
mov rsi, qword [rsi + 8]
test rsi, rsi
jne 0x140002b5d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140002b23
mov rdx, qword [rsp + 0x48]
sub rdx, qword [rbp]
je 0x140002bbc
call fcn.140002520
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140002c60
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push rsi
push rbx
sub rsp, 0x48
mov rbx, qword [0x140005f90]
mov rsi, qword [sym.imp.USER32.dll_GetCursorPos]
mov rax, qword [rbx]
mov qword [rsp + 0x38], rax
xor eax, eax
lea rcx, [rsp + 0x28]
call rsi
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x30]
call rsi
mov edx, dword [rsp + 0x30]
xor eax, eax
cmp dword [rsp + 0x28], edx
jne 0x140002cae
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x2c], eax
sete al
mov rdx, qword [rsp + 0x38]
sub rdx, qword [rbx]
je 0x140002cbd
call fcn.140002520
add rsp, 0x48
pop rbx
pop rsi
ret
Function at 0x140002cd0
Capabilities:
Enumerate processes

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x160
mov rdi, qword [0x140005f90]
xor edx, edx
mov rax, qword [rdi]
mov qword [rsp + 0x158], rax
xor eax, eax
mov rsi, rcx
mov ecx, 2
mov dword [rsp + 0x28], 0x238
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rbp, [rsp + 0x28]
mov rdx, rbp
mov rcx, rax
mov rbx, rax
call sub.KERNEL32.dll_Process32First
lea r12, [rsp + 0x54]
test eax, eax
jne 0x140002d28
xor eax, eax
jmp 0x140002d4a
mov rdx, rbp
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x140002d24
mov rdx, rsi
mov rcx, r12
call sub.api_ms_win_crt_string_l1_1_0.dll__stricmp
test eax, eax
jne 0x140002d28
mov eax, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x158]
sub rdx, qword [rdi]
je 0x140002d5c
call fcn.140002520
add rsp, 0x160
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140002d70
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rbx, qword [0x140005f90]
mov rax, qword [rbx]
mov qword [rsp + 0x58], rax
xor eax, eax
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rsp + 0x48], 1
setbe al
mov rdx, qword [rsp + 0x58]
sub rdx, qword [rbx]
je 0x140002da8
call fcn.140002520
add rsp, 0x60
pop rbx
ret

Function at 0x140002db0
Capabilities:
Get local ipv4 addresses

Disassembly:
sub rsp, 0x28
lea rcx, [0x140005050]
call fcn.140002ae0
test al, al
jne 0x140002e24
lea rcx, [0x140005054]
call fcn.140002ae0
test al, al
jne 0x140002e24
lea rcx, [0x140005058]
call fcn.140002ae0
test al, al
jne 0x140002e24
lea rcx, [0x14000505c]
call fcn.140002ae0
test al, al
jne 0x140002e24
lea rcx, [0x140005060]
call fcn.140002ae0
test al, al
jne 0x140002e24
lea rcx, [0x140005064]
call fcn.140002ae0
test al, al
jne 0x140002e24
lea rcx, [0x140005068]
add rsp, 0x28
jmp fcn.140002ae0
mov al, 1
add rsp, 0x28
ret

Function at 0x140002e30
Capabilities:
Get memory capacity

Disassembly:
push rbx
sub rsp, 0x70
mov rbx, qword [0x140005f90]
mov rax, qword [rbx]
mov qword [rsp + 0x68], rax
xor eax, eax
mov dword [rsp + 0x28], 0x40
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
cmp qword [rsp + 0x30], 0x7fffffff
setbe al
mov rdx, qword [rsp + 0x68]
sub rdx, qword [rbx]
je 0x140002e74
call fcn.140002520
add rsp, 0x70
pop rbx
ret

Function at 0x1400031b0
Capabilities:
Access peb ldr_data

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rbx, qword [rax + 0x20]
mov rsi, rcx
test rbx, rbx
je 0x1400031f3
cmp word [rbx + 0x48], 0
je 0x1400031f1
mov rcx, qword [rbx + 0x50]
mov rdx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsicmp
test eax, eax
jne 0x1400031ec
mov rbx, qword [rbx + 0x20]
jmp 0x1400031f3
mov rbx, qword [rbx]
jmp 0x1400031ca
xor ebx, ebx
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x140003200
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
xor eax, eax
cmp word [rcx], 0x5a4d
mov rbx, rcx
mov rbp, rdx
jne 0x140003281
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140003281
mov edi, dword [rdx + 0x88]
xor esi, esi
add rdi, rcx
mov r12d, dword [rdi + 0x20]
mov r13d, dword [rdi + 0x14]
add r12, rcx
cmp esi, r13d
jae 0x14000327f
mov edx, dword [r12 + rsi*4]
mov rcx, rbp
add rdx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
mov edx, eax
lea rax, [rsi + 1]
test edx, edx
jne 0x14000327a
mov eax, dword [rdi + 0x24]
add rsi, rsi
add rsi, rbx
movzx edx, word [rsi + rax]
mov eax, dword [rdi + 0x1c]
lea rdx, [rbx + rdx*4]
mov eax, dword [rdx + rax]
add rax, rbx
jmp 0x140003281
mov rsi, rax
jmp 0x140003240
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x140a5c210
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140a5c397
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 0x140a5c241
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a5c227
add dl, dl
jne 0x140a5c24e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a5c2ae
xor eax, eax
add dl, dl
jne 0x140a5c25d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a5c365
add dl, dl
jne 0x140a5c26e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a5c27b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a5c288
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a5c295
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140a5c2a2
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140a5c236
mov eax, 1
add dl, dl
jne 0x140a5c2be
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a5c2cb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a5c2b3
sub eax, ebx
mov ebx, 1
jne 0x140a5c304
mov ecx, 1
add dl, dl
jne 0x140a5c2e6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a5c2f3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a5c2db
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a5c236
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140a5c320
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a5c32d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a5c315
cmp eax, 0x7d00
jae 0x140a5c353
cmp eax, 0x500
jb 0x140a5c34e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a5c236
cmp eax, 0x7f
ja 0x140a5c356
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a5c236
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140a5c38a
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 0x140a5c236
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002154
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000219e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000219e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000219e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000219e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000219e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400021a0
xor al, al
add rsp, 0x28
ret
Function at 0x140001a60
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.1400028b0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x140001ad0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140009094]
test esi, esi
mov rbx, rcx
jle 0x140001c00
mov rax, qword [0x140009098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001b1b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001ba5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001b00
mov rcx, rbx
call fcn.140002540
test rax, rax
mov rdi, rax
je 0x140001c22
mov rax, qword [0x140009098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002680
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140009098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001c07
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001b9e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001bb0
add dword [0x140009094], 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 [0x140009098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001b9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001a60
nop dword [rax]
xor esi, esi
jmp 0x140001b28
mov rax, qword [0x140009098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.140001a60
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.140001a60
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140002190
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140009100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400090e0]
test rbx, rbx
je 0x1400021ec
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 0x1400021e3
test rsi, rsi
je 0x1400021e3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400021c8
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 0x140002400
Capabilities:
Parse pe header

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

Function at 0x140002410
Capabilities:
Parse pe header

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

Function at 0x140002420
Capabilities:
Parse pe header

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

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

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

Function at 0x1400025c0
Capabilities:
Parse pe header

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