joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412d00
Capabilities:
Encode data using xor

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
movabs rax, 0x27d4eb2f165667c5
mov r9d, dword [rcx + 0x48]
mov r11, qword [rcx + 0x18]
mov rbx, qword [rcx]
add rax, r11
lea r8, [rcx + 0x28]
mov r10, rcx
add r9, r8
cmp rbx, 0x1f
jbe 0x412ddc
mov rbp, qword [rcx + 0x10]
mov rax, qword [rcx + 8]
movabs rdx, 0xc2b2ae3d27d4eb4f
movabs rsi, 0x9e3779b185ebca87
mov rcx, qword [rcx + 0x20]
mov rdi, rbp
imul rbp, rdx
mov r12, rax
rol rax, 1
rol rdi, 7
imul r12, rdx
add rax, rdi
mov rdi, r11
rol rdi, 0xc
rol rbp, 0x1f
imul r11, rdx
add rax, rdi
rol r12, 0x1f
imul rbp, rsi
mov rdi, rcx
rol rdi, 0x12
imul rdx, rcx
add rdi, rax
mov rax, r12
rol r11, 0x1f
imul rax, rsi
imul r11, rsi
rol rdx, 0x1f
imul rdx, rsi
xor rdi, rax
movabs rax, 0x85ebca77c2b2ae63
imul rdi, rsi
add rdi, rax
xor rdi, rbp
imul rdi, rsi
add rdi, rax
xor r11, rdi
imul r11, rsi
lea rcx, [r11 + rax]
xor rdx, rcx
imul rdx, rsi
add rax, rdx
lea rsi, [r10 + 0x30]
lea rdx, [rbx + rax]
cmp r9, rsi
jb 0x412e49
movabs rbx, 0xc2b2ae3d27d4eb4f
mov rcx, rsi
movabs r8, 0x9e3779b185ebca87
movabs r11, 0x85ebca77c2b2ae63
nop word [rax + rax]
mov rax, qword [rcx - 8]
add rcx, 8
imul rax, rbx
rol rax, 0x1f
imul rax, r8
xor rax, rdx
rol rax, 0x1b
imul rax, r8
lea rdx, [rax + r11]
cmp r9, rcx
jae 0x412e10
mov rax, r9
sub rax, r10
lea r8, [rax - 0x30]
and r8, 0xfffffffffffffff8
add r8, rsi
lea rcx, [r8 + 4]
cmp r9, rcx
jb 0x412e88
mov eax, dword [r8]
movabs r8, 0x9e3779b185ebca87
imul rax, r8
mov r8, rcx
xor rax, rdx
movabs rdx, 0xc2b2ae3d27d4eb4f
rol rax, 0x17
imul rax, rdx
movabs rdx, 0x165667b19e3779f9
add rdx, rax
cmp r9, r8
jbe 0x412ec7
movabs r10, 0x27d4eb2f165667c5
movabs rcx, 0x9e3779b185ebca87
nop dword [rax]
movzx eax, byte [r8]
add r8, 1
imul rax, r10
xor rax, rdx
rol rax, 0xb
imul rax, rcx
mov rdx, rax
cmp r9, r8
jne 0x412ea8
mov rax, rdx
shr rax, 0x21
xor rax, rdx
movabs rdx, 0xc2b2ae3d27d4eb4f
imul rax, rdx
mov rdx, rax
shr rdx, 0x1d
xor rax, rdx
movabs rdx, 0x165667b19e3779f9
imul rax, rdx
mov rdx, rax
shr rdx, 0x20
xor rax, rdx
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x41cd30
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov r12, qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r13, qword [sym.imp.KERNEL32.dll_ReadFile]
xor esi, esi
movdqa xmm6, xmmword [0x0042a7c0]
lea r14, [0x0043f0f0]
mov rdi, rdx
mov rdx, qword [0x0043f100]
mov rbp, rcx
nop
mov r8, qword [0x0043f0f8]
sub r8, rdx
jne 0x41ce77
mov rcx, qword [0x0043f120]
mov rdx, qword [0x0043f118]
cmp rcx, rdx
setb al
or sil, al
jne 0x41cec0
cmp rcx, rdx
je 0x41cdbc
mov r8d, 0x124
lea rdx, str.static_srcOnefileBootstrap.c
lea rcx, str.input.size__input.pos
call qword [sym.imp.msvcrt.dll__assert]
xor edx, edx
mov rbx, qword [0x0043f0e0]
mov rcx, qword [0x0043f130]
xor r8d, r8d
mov r9d, 1
call r12
mov rdx, qword [0x0043f100]
mov eax, eax
sub rbx, rax
je 0x41cd70
mov r8d, ebx
cmp rbx, 0x20002
jbe 0x41cdfd
mov r8d, 0x20003
mov ebx, 0x20003
mov qword [rsp + 0x20], 0
mov rdx, qword [0x0043f110]
lea r9, [rsp + 0x3c]
mov rcx, qword [0x0043f130]
call r13
test eax, eax
je 0x41cf40
mov eax, dword [rsp + 0x3c]
cmp rbx, rax
je 0x41ce47
mov r8d, 0xe5
lea rdx, str.static_srcOnefileBootstrap.c
lea rcx, str.read_size__size
call qword [sym.imp.msvcrt.dll__assert]
mov rdx, qword [0x0043f100]
mov r8, qword [0x0043f0f8]
mov qword [0x0043f120], 0
add qword [0x004300a8], rbx
mov qword [0x0043f118], rbx
sub r8, rdx
je 0x41cd80
cmp r8, rdi
mov rbx, r8
mov rcx, rbp
cmova rbx, rdi
add rdx, qword [r14]
mov r8, rbx
add rbp, rbx
call sub.msvcrt.dll_memcpy
mov rdx, qword [0x0043f100]
add rdx, rbx
mov qword [0x0043f100], rdx
sub rdi, rbx
jne 0x41cd70
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [0x0043f128]
lea r8, [0x0043f110]
lea rdx, [0x0043f0f0]
movups xmmword [0x0043f0f8], xmm6
call fcn.0041bfd0
mov r8, rax
mov rax, qword [0x0043f100]
cmp qword [0x0043f0f8], rax
sete sil
cmp r8, 0xffffffffffffff88
ja 0x41cf18
mov qword [0x0043f0f8], rax
xor edx, edx
mov qword [0x0043f100], 0
jmp 0x41cd70
mov r8d, 0x11a
lea rdx, str.static_srcOnefileBootstrap.c
lea rcx, str._ZSTD_isError_ret_
call qword [sym.imp.msvcrt.dll__assert]
mov rax, qword [0x0043f100]
jmp 0x41cefc
mov r8d, 0xe4
lea rdx, str.static_srcOnefileBootstrap.c
lea rcx, str.bool_res
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x41ce24
Function at 0x41dcf0
Capabilities:
Accept command line arguments
Get common file path

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0xc38
xor r9d, r9d
mov word [rcx], r9w
movzx eax, word [rdx]
mov rbx, rcx
mov rsi, r8
test ax, ax
je 0x41dde8
lea rdi, [rdx + 2]
xor edx, edx
jmp 0x41dd40
test rdx, rdx
je 0x41ddc8
mov word [rdx], ax
add rdx, 2
movzx eax, word [rdi]
add rdi, 2
test ax, ax
je 0x41dde8
cmp ax, 0x25
jne 0x41dd20
test rdx, rdx
je 0x41de00
xor ecx, ecx
lea r12, [rsp + 0x430]
mov word [rdx], cx
lea rdx, str.TEMP
mov rcx, r12
call sub.msvcrt.dll__wcsicmp
test eax, eax
je 0x41deb8
lea rdx, str.PROGRAM
mov rcx, r12
call sub.msvcrt.dll__wcsicmp
test eax, eax
je 0x41dec8
lea rdx, [0x00429900]
mov rcx, r12
call sub.msvcrt.dll__wcsicmp
test eax, eax
je 0x41de80
lea rdx, str.TIME
mov rcx, r12
call sub.msvcrt.dll__wcsicmp
test eax, eax
je 0x41de20
xor eax, eax
add rsp, 0xc38
pop rbx
pop rsi
pop rdi
pop r12
ret
test rsi, rsi
je 0x41ddb4
mov word [rbx], ax
movzx eax, word [rdi]
sub rsi, 1
add rbx, 2
add rdi, 2
test ax, ax
jne 0x41dd40
xor eax, eax
mov word [rbx], ax
mov eax, 1
add rsp, 0xc38
pop rbx
pop rsi
pop rdi
pop r12
ret
xor r8d, r8d
lea rdx, [rsp + 0x430]
mov word [rsp + 0x430], r8w
jmp 0x41dd30
lea rcx, [rsp + 0x28]
lea r12, [rsp + 0x30]
mov qword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov r9, qword [rsp + 0x28]
mov rcx, r12
lea r8, str._lld
mov edx, 0x400
call fcn.00402370
mov r8, rsi
mov rdx, r12
mov rcx, rbx
call fcn.0041dbf0
jmp 0x41de70
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x41de68
xor edx, edx
jmp 0x41dd30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r12, [rsp + 0x30]
mov r9d, 0xa
mov r8d, pe_nt_image_headers64
mov rdx, r12
mov ecx, eax
call qword [sym.imp.msvcrt.dll__itoa_s]
mov r8, rsi
mov rdx, r12
mov rcx, rbx
call fcn.0041dbf0
jmp 0x41de70
mov rdx, rbx
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x41de70
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp word [rbx], 0
mov rdx, rsi
mov rcx, qword [rax]
mov rax, rbx
je 0x41defe
nop dword [rax + rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x41def0
movzx r8d, word [rcx]
test r8w, r8w
je 0x41df33
test rdx, rdx
jne 0x41df19
jmp 0x41df3d
test rdx, rdx
je 0x42648a
add rcx, 2
mov word [rax], r8w
add rax, 2
sub rdx, 1
movzx r8d, word [rcx]
test r8w, r8w
jne 0x41df10
xor edx, edx
mov word [rax], dx
jmp 0x41de70
jmp 0x42648a
Function at 0x41ef20
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x80]
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x28], rdx
mov qword [rbp - 0x20], r8
mov qword [rbp - 0x18], r9
lea rax, [rbp - 0x28]
mov qword [rbp - 0x58], rax
mov ecx, 2
call fcn.00426120
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 0x58]
mov ecx, 2
call fcn.00426120
mov r8, rbx
mov rdx, qword [rbp - 0x30]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x41fb26
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x0043f208]
test eax, eax
je 0x41fbb4
lea rcx, [0x0043f1e0]
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x0043f210]
mov qword [rbp - 8], rax
jmp 0x41fb9b
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 0x41fb8f
cmp qword [rbp - 0x10], 0
je 0x41fb8f
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 0x41fb55
lea rcx, [0x0043f1e0]
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x41fbb5
nop
add rsp, 0x30
pop rbp
ret

Function at 0x41fcc0
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 0x41fce8
mov eax, 0
jmp 0x41fd36
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 0x41fd11
mov eax, 0
jmp 0x41fd36
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 0x41fd31
mov eax, 0
jmp 0x41fd36
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x41fd3c
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 0x41fdba
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x41fdb1
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 0x41fdb1
mov rax, qword [rbp - 8]
jmp 0x41fdcf
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 0x41fd84
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001650
Capabilities:
Terminate process

Disassembly:
push rdi
sub rsp, 0x260
mov rax, qword [0x14000d040]
xor rax, rsp
mov qword [rsp + 0x250], rax
cmp byte [rdx], 0
mov r9, rdx
mov rdi, rcx
jne 0x140001756
mov qword [rsp + 0x280], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], 0
mov r9d, 0x400
mov ebx, eax
mov dword [rsp + 0x28], 0xff
lea rax, [rsp + 0x150]
mov r8d, ebx
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
lea rdx, [rsp + 0x40]
call fcn.1400017f0
movzx ecx, byte [rax + 6]
test cl, cl
je 0x1400016ed
xor byte [rax], 0x38
xor byte [rax + 1], 0x39
xor byte [rax + 2], 0x3a
xor byte [rax + 3], 0x3b
xor byte [rax + 4], 0x3c
xor byte [rax + 5], 0x3d
xor cl, 0x3e
mov byte [rax + 6], cl
lea r9, [rsp + 0x150]
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140001430
lea rcx, [0x14000d758]
call fcn.1400083a0
mov r8, rax
lea rdx, [rsp + 0x50]
mov r9d, 0x10
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 3
lea rcx, [rsp + 0x48]
call fcn.1400085b0
mov rcx, rax
call fcn.1400085c0
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov rbx, qword [rsp + 0x280]
lea rdx, [rsp + 0x40]
call fcn.1400017f0
movzx ecx, byte [rax + 6]
test cl, cl
je 0x140001785
xor byte [rax], 0x38
xor byte [rax + 1], 0x39
xor byte [rax + 2], 0x3a
xor byte [rax + 3], 0x3b
xor byte [rax + 4], 0x3c
xor byte [rax + 5], 0x3d
xor cl, 0x3e
mov byte [rax + 6], cl
mov r8, rdi
lea rcx, [rsp + 0x50]
mov rdx, rax
call fcn.140001430
lea rcx, [0x14000d758]
call fcn.1400083a0
mov r8, rax
lea rdx, [rsp + 0x50]
mov r9d, 0x10
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 3
lea rcx, [rsp + 0x48]
call fcn.1400085b0
mov rcx, rax
call fcn.1400085c0
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140001820
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x14000d040]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor edi, edi
mov word [rsp + 0x74], 0x500
lea rax, [rsp + 0x68]
mov dword [rsp + 0x78], edi
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x48], edi
mov ebx, edi
mov dword [rsp + 0x40], edi
mov r9d, 0x220
mov dword [rsp + 0x38], edi
mov r8d, 0x20
mov dword [rsp + 0x30], edi
mov dl, 2
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x70], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1400018ac
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x78]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x1400018b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400018c9
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov qword [rsp + 0x68], rdi
test ebx, ebx
jne 0x1400018f2
mov eax, dword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140008be0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
lea rdx, [0x14000b7f8]
mov dword [rsp + 0x60], ebx
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x140001910
Capabilities:
Create process on windows
Create thread

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x14000d040]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov dword [rsp + 0x30], 0
call fcn.140001820
mov dword [rsp + 0x30], eax
jmp 0x140001940
test eax, eax
jne 0x140001a11
mov r8d, 0x104
lea rdx, [rsp + 0xb0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x140001a11
mov dword [rsp + 0x40], 0x70
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x44], xmm0
movups xmmword [rsp + 0x54], xmm0
movups xmmword [rsp + 0x64], xmm0
movups xmmword [rsp + 0x74], xmm0
movups xmmword [rsp + 0x84], xmm0
movups xmmword [rsp + 0x94], xmm0
mov qword [rsp + 0xa4], rax
mov dword [rsp + 0xac], eax
lea rax, str.runas
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x70], 1
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x140001a11
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
jne 0x140001a11
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [fcn.140001910]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140008be0
add rsp, 0x1d8
ret
Function at 0x14000971c
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400c1540]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400c1550]
mov dword [rax], 1
mov rax, qword [0x1400c1560]
mov dword [rax], 1
mov rax, qword [0x1400c14f0]
cmp word [rax], 0x5a4d
jne 0x14000105e
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c8
mov rax, qword [0x1400c1530]
mov dword [0x1400e800c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b8
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400c1620]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400c1600]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400c08e0]
cmp dword [rax], 1
je 0x140001100
xor eax, eax
add rsp, 0x20
pop rbp
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x14000107b
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001118
cmp dx, 0x20b
jne 0x14000105e
cmp dword [rax + 0x84], 0xe
jbe 0x14000105e
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105e
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x20
pop rbp
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105e
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105e

Function at 0x14000b7a0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rbx, rcx
lea rax, [rbp + 0x28]
mov ecx, 2
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
mov qword [rbp - 8], 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 [rbp - 8]
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 0x14000b810
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
movsxd rsi, dword [0x1400e80a4]
mov rbx, rcx
test esi, esi
jle 0x14000b940
mov rax, qword [0x1400e80a8]
xor r9d, r9d
add rax, 0x18
nop dword [rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000b85b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000b8e3
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000b840
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x14000b962
mov rax, qword [0x1400e80a8]
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 [0x1400e80a8]
lea rdx, [rbp - 0x30]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000b947
mov eax, dword [rbp - 0xc]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000b8dc
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14000b8f0
add dword [0x1400e80a4], 1
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 2
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400e80a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000b8dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop word [rax + rax]
xor esi, esi
jmp 0x14000b868
mov rax, qword [0x1400e80a8]
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 0x14000bef0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
lea r13, [0x1400e8100]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400e80e0]
test rbx, rbx
je 0x14000bf55
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, dword [rbx]
call r12
mov rsi, rax
call rdi
test rsi, rsi
je 0x14000bf4c
test eax, eax
jne 0x14000bf4c
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000bf30
mov rcx, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14000c190
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14000c1a8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14000c1b0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x14000c1c0
Capabilities:
Enumerate pe sections

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

Function at 0x14000c210
Capabilities:
Parse pe header

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

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

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

Function at 0x14000c340
Capabilities:
Parse pe header

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

Function at 0x14000c380
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400c14f0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x14000c3a0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x14000c3a8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x14000c3a0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x14000c3f0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14000c3e7
test rcx, rcx
je 0x14000c3a0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x14000c3d8
xor eax, eax
ret