joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1404e0755
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
xchg dl, r8b
mov rbx, rcx
lea r9, [0x1400c8e90]
xor ecx, ecx
movsx dx, ah
bswap rdx
lea r8, [0x1400c8e88]
movzx rdx, bx
cdq
lea rdx, [0x1400cfb70]
jmp 0x1404e0789
call fcn.1404e0a83
test rax, rax
jmp 0x1404e0796
je 0x1404e07bc
mov rcx, rbx
clc
and ebx, 0x7c5b57e9
add rsp, 0x20
movsx rbx, dx
movzx rbx, si
not bl
pop rbx
jmp qword [0x1400b8d90]
add rsp, 0x20
movsx rbx, cx
movsxd rbx, esi
movzx bx, r8b
pop rbx
jmp 0x1404e07d2
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x1404e0869
Capabilities:
Get thread local storage value

Disassembly:
push rbx
clc
sar bl, 0x1d
sub rsp, 0x20
cmovp rbx, rdi
movzx ebx, r11w
mov ebx, ecx
movsx r9w, al
not r9b
lea r9, [0x1400c8ea0]
mov r8w, 0x2107
mov ecx, 2
xchg r8b, r8b
movsx r8w, sil
mov dl, r10b
lea r8, [0x1400c8e98]
movsxd rdx, r11d
cmovae edx, ebx
movzx dx, sil
lea rdx, [0x1400cf758]
jmp 0x1404e08bf
call fcn.1404e0a83
mov ecx, ebx
clc
cmp r15w, 0x210f
test rax, rax
je 0x1404e08eb
add rsp, 0x20
cmove rbx, r11
pop rbx
jmp 0x1404e08e4
jmp qword [0x1400b8d90]
add rsp, 0x20
movzx rbx, r9w
pop rbx
jmp 0x1404e08f9
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1404e0900
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
movsxd r8, ebp
cmp r10b, dil
ror r9, cl
push rdi
rcr bl, 0x56
sar r8w, cl
movzx rdi, r12w
sub rsp, 0x20
movzx r8d, bp
movzx r9w, cl
cmovp r8w, r13w
mov rbx, rdx
movsx r8w, r15b
mov r8b, al
lea r9, [0x1400c8ea8]
mov edi, ecx
xchg dx, r8w
movzx ecx, r13w
lea rdx, [0x1400cf748]
jmp 0x1404e0954
mov ecx, 3
lea r8, [0x1400c8ea0]
jmp 0x1404e0965
call fcn.1404e0a83
mov rdx, rbx
ror ch, cl
shl ecx, 0x49
mov ecx, edi
test rax, rax
jmp 0x1404e097c
je 0x1404e098d
call qword [0x1400b8d90]
jmp 0x1404e0993
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
cmp r13b, r8b
sal dil, cl
add rsp, 0x20
setp dil
movsx rdi, cx
cmovg rdi, rax
pop rdi
jmp 0x1404e09b4
ret
Function at 0x1404e11d1
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
cmc
cmp r8w, 0x4cc1
mov qword [rsp + 0x18], rsi
cmc
test sil, bpl
test r9b, 0x6e
push rdi
jmp 0x1404e11f5
push r14
push r15
cmove r14d, esp
sub rsp, 0x20
adc r14b, 0x6c
mov r14, rcx
test rcx, rcx
je 0x1404e130f
xor ebx, ebx
lea r15, [0x140000000]
xor cx, 0x2d9
mov edi, 0xe3
lea eax, [rdi + rbx]
shld dx, si, 0xa0
mov r8d, 0x55
cmp r8b, 0x64
shrd si, bp, 0xe4
cdq
inc sil
mov rcx, r14
rcl sil, 0x5f
sub eax, edx
sub ebp, 0x6ceb0473
bts rdx, r13
sar eax, 1
movsxd rbp, eax
btc si, 0xb3
sal esi, 0x96
cwd
mov rdx, rbp
rol sil, 0x25
movzx rsi, r14w
movzx esi, r14w
mov rsi, rbp
cmp spl, sil
cmc
stc
add rdx, rdx
jmp 0x1404e1280
mov rdx, qword [r15 + rdx*8 + 0xc9cf0]
call fcn.14026d904
test eax, eax
jmp 0x1404e1294
je 0x1404e12c6
jns 0x1404e12a8
lea edi, [rbp - 1]
jmp 0x1404e12b6
lea ebx, [rbp + 1]
test bpl, 0x61
cmp rsp, 0x6b760a55
cmp ebx, edi
jle 0x1404e1224
or eax, 0xffffffff
jmp 0x1404e12d6
lea rsi, [rsi + rsi]
mov eax, dword [r15 + rsi*8 + 0xc9cf8]
stc
cmp spl, r9b
test eax, eax
jmp 0x1404e12dd
js 0x1404e130f
cmp eax, 0xe4
jmp 0x1404e12ed
jae 0x1404e130f
cdqe
add rax, rax
jmp 0x1404e12fd
mov eax, dword [r15 + rax*8 + 0xc8eb0]
jmp 0x1404e130a
jmp 0x1404e1319
xor eax, eax
btr si, 0x25
adc r15b, dl
mov rbx, qword [rsp + 0x40]
and sil, 0x80
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
test r9b, 0xcb
ror r14b, 0xc
ror r15, cl
add rsp, 0x20
mov r15b, 6
xchg di, di
pop r15
not dil
movzx rdi, r15w
seta dil
pop r14
movzx edi, r12w
movzx rdi, r9w
mov dil, 0x26
pop rdi
jmp 0x1404e1361
ret
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x240
mov rax, qword [0x14000c040]
xor rax, rsp
mov qword [rsp + 0x238], rax
stmxcsr dword [rsp + 0x40]
mov rdi, rdx
or dword [rsp + 0x40], 0x8040
ldmxcsr dword [rsp + 0x40]
lea rdx, [0x140009150]
lea rsi, [rsp + 0x40]
mov r8d, 0x1f8
mov rcx, rsi
call fcn.140001120
mov rcx, qword [rdi + 8]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov ecx, 0x1fffff
xor edx, edx
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
mov dword [rsp + 0x20], 0x40
mov r8d, 0x1f8
mov rcx, rax
xor edx, edx
mov r9d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbx, rax
mov qword [rsp + 0x20], 0
mov r9d, 0x1f8
mov rcx, rdi
mov rdx, rax
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x238]
xor rcx, rsp
call fcn.140007140
xor eax, eax
add rsp, 0x240
pop rbx
pop rdi
pop rsi
ret
Function at 0x140005bc0
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
xor esi, esi
test rcx, rcx
je 0x140005d10
mov rdi, rcx
lea rcx, str.INTEL_ISA_DISABLE
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
test rax, rax
je 0x140005d10
mov rcx, rax
movzx eax, byte [rax]
xor esi, esi
test al, al
je 0x140005d10
lea rdx, [0x14000c1c0]
xor r8d, r8d
lea r9, [rcx + 1]
mov r10d, 1
xor r11d, r11d
cmp al, 0x2c
jne 0x140005c33
nop dword [rax]
movzx eax, byte [rcx + r11 + 1]
inc r11
dec r10
inc r9
cmp al, 0x2c
je 0x140005c20
movzx eax, al
test eax, eax
je 0x140005d10
nop
mov rax, r9
movzx ebx, byte [r9]
inc r9
cmp ebx, 0x2c
je 0x140005c60
test ebx, ebx
je 0x140005c60
mov r8, rax
jmp 0x140005c40
mov rax, r8
sub rax, rcx
inc rax
cmp rax, r11
jne 0x140005c81
dec r9
movzx eax, byte [r9]
mov rcx, r9
test al, al
jne 0x140005c0b
jmp 0x140005d10
cmp byte [0x14000c1b0], 0
jne 0x140005c8f
call fcn.140005100
mov rax, rcx
neg rax
add r11, rcx
mov rbx, r8
not rbx
add rbx, r11
mov ecx, 1
jmp 0x140005cb9
inc rcx
cmp rcx, 0x47
je 0x140005c6e
lea r14, [rcx + rcx*2]
mov r14, qword [rdx + r14*8 + 0x10]
test r14, r14
je 0x140005cb0
xor r15d, r15d
nop word [rax + rax]
movzx ebp, byte [r11 + r15]
cmp bpl, byte [r14 + r15]
jne 0x140005cb0
inc r15
mov r12, rbx
add r12, r15
jne 0x140005cd0
add r14, r8
add r14, rax
cmp byte [r10 + r14], 0
jne 0x140005cb0
cmp ecx, 2
jb 0x140005c6e
mov rax, rdi
call fcn.140005b60
cmp eax, 1
adc rsi, 0
jmp 0x140005c6e
mov eax, esi
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x140006ce0
Capabilities:
Parse pe header

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

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400b682c
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140005620]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140005630]
mov dword [rax], 1
mov rax, qword [0x140005640]
mov dword [rax], 1
mov rax, qword [0x1400055c0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140005610]
mov dword [0x14000800c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x1400056f0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1400056d0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140005550]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140001bc0
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 sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140001c30
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140008094]
test esi, esi
mov rbx, rcx
jle 0x140001d60
mov rax, qword [0x140008098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001c7b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001d05
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001c60
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x140001d82
mov rax, qword [0x140008098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140008098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001d67
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001cfe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001d10
add dword [0x140008094], 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 [0x140008098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001cfe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001c88
mov rax, qword [0x140008098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400022f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140008100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400080e0]
test rbx, rbx
je 0x14000234c
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 0x140002343
test rsi, rsi
je 0x140002343
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002328
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 0x140002560
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

Function at 0x140002570
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
nop

Function at 0x140002580
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002598
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400025a0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400025b0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx r8d, word [rcx + 6]
movzx eax, word [rcx + 0x14]
test r8w, r8w
lea rax, [rcx + rax + 0x18]
je 0x1400025fd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rdx, r8
mov rcx, r8
jb 0x1400025f4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400025ff
add rax, 0x28
cmp rax, r9
jne 0x1400025e0
xor eax, eax
ret

Function at 0x140002600
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002690
mov rdx, qword [0x1400055c0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000267e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000267e
cmp word [rax + 0x18], 0x20b
jne 0x14000267e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002690
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002669
add rbx, 0x28
cmp rbx, rdi
je 0x140002690
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002660
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

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

Function at 0x140002720
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400055c0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000273f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002748
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000273f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140002760
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400055c0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002780
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002788
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002780
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x1400027d0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400027c7
test rcx, rcx
je 0x140002780
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400027b8
xor eax, eax
ret

Function at 0x1400027e0
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x1400055c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002840
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002848
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002840
movzx r9d, word [r8 + 6]
sub rcx, rdx
movzx edx, word [r8 + 0x14]
test r9w, r9w
lea rdx, [r8 + rdx + 0x18]
je 0x140002840
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140002894
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400028a0
add rdx, 0x28
cmp r9, rdx
jne 0x140002880
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x1400055c0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400028d2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400028e0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400028d2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400028d2
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x1400028d2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov r8, r9
jb 0x140002935
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002948
add rdx, 0x28
cmp rdx, r10
jne 0x140002920
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002957
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002967
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000293e
test ecx, ecx
jg 0x140002950
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14001dfb0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14001dfc0]
mov dword [rax], 1
mov rax, qword [0x14001dfd0]
mov dword [rax], 1
mov rax, qword [0x14001df50]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14001dfa0]
mov dword [0x14002300c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14001e080]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14001e060]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14001df00]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140003f0f
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 8], 0
cmp qword [rbp + 0x18], 0
je 0x140003f3f
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.nimCStrLen
mov rcx, rax
jmp 0x140003f44
mov ecx, 0
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov r9, rdx
mov r8, rcx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140014740
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 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 rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x1400147b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140034af4]
mov rbx, rcx
test esi, esi
jle 0x1400148e0
mov rax, qword [0x140034af8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400147fb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140014885
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400147e0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140014902
mov rax, qword [0x140034af8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140034af8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400148e7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001487e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140014890
add dword [0x140034af4], 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 [0x140034af8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001487e
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 esi, esi
jmp 0x140014808
mov rax, qword [0x140034af8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140014e70
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140034b60]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140034b40]
test rbx, rbx
je 0x140014ecc
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 0x140014ec3
test rsi, rsi
je 0x140014ec3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140014ea8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]