joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b0d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rsi, rcx
mov rcx, qword [0x140013a48]
mov rbp, r8
mov r12d, edx
mov r8d, 0x1000
xor edx, edx
mov r13, r9
xor edi, edi
mov r15d, 0x800
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x14000b2b2
movzx edx, word [rsp + 0x30]
mov qword [rsp + 0x70], rbx
mov rbx, rax
nop dword [rax]
cmp rbp, 0xffffffffffffffff
je 0x14000b142
test rbp, rbp
je 0x14000b204
dec rbp
cmp qword [rsi + 8], 0
lea rdx, [rsp + 0x30]
je 0x14000b162
mov r8d, 2
mov rcx, rsi
call fcn.14000b6a0
mov dword [rsp + 0x34], eax
jmp 0x14000b17f
mov rcx, qword [rsi]
lea r9, [rsp + 0x34]
mov r8d, 2
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x34]
movzx edx, word [rsp + 0x30]
cmp eax, 2
jne 0x14000b204
test dx, dx
je 0x14000b19a
mov word [rbx], dx
movzx edx, word [rsp + 0x30]
add rbx, 2
mov rdi, rbx
lea eax, [r15 - 1]
sub rdi, r14
movsxd rcx, eax
sar rdi, 1
cmp rdi, rcx
jle 0x14000b1e0
mov rcx, qword [0x140013a48]
add r15d, 0x800
mov r8, r14
movsxd r9, r15d
mov edx, 8
add r9, r9
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
movzx edx, word [rsp + 0x30]
mov r14, rax
movsxd rax, edi
lea rbx, [r14 + rax*2]
test dx, dx
je 0x14000b204
mov edi, 0
test r12d, r12d
jne 0x14000b130
cmp dx, 0xd
je 0x14000b209
cmp dx, 0xa
je 0x14000b20f
jmp 0x14000b130
test r12d, r12d
jne 0x14000b213
cmp dx, 0xa
jne 0x14000b232
sub rbx, 2
xor edi, edi
mov rax, rbx
sub rax, r14
sar rax, 1
mov qword [r13], rax
mov word [rbx], di
mov rbx, qword [rsp + 0x70]
mov rax, r14
jmp 0x14000b2b5
cmp dx, 0xd
jne 0x14000b213
sub rbx, 2
cmp qword [rsi + 8], 0
lea rdx, [rsp + 0x30]
je 0x14000b25e
mov r8d, 2
mov rcx, rsi
call fcn.14000b6a0
xor edi, edi
mov dword [rsp + 0x34], eax
jmp 0x14000b277
mov rcx, qword [rsi]
xor edi, edi
lea r9, [rsp + 0x34]
lea r8d, [rdi + 2]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [rsp + 0x30], 0xa
je 0x14000b215
cmp qword [rsi + 8], 0
je 0x14000b28c
add dword [rsi + 0x14], 2
jmp 0x14000b215
mov rcx, qword [rsi]
mov r9d, 1
lea r8, [rsp + 0x3c]
lea edx, [r9 - 3]
mov qword [rsp + 0x38], 0xfffffffffffffffe
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x14000b215
mov rax, rdi
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14000b2d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rsi, rcx
mov rcx, qword [0x140013a48]
mov rdi, r8
mov r15d, edx
mov r14d, 0x1000
xor edx, edx
mov r8d, r14d
mov r12, r9
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x14000b469
movzx r8d, byte [rsp + 0x30]
mov qword [rsp + 0x60], rbx
mov rbx, rax
cmp rdi, 0xffffffffffffffff
je 0x14000b339
test rdi, rdi
je 0x14000b3c7
dec rdi
mov rdx, rbx
mov rcx, rsi
call fcn.14000b7d0
mov dword [rsp + 0x34], eax
test eax, eax
jne 0x14000b351
xor r8b, r8b
jmp 0x14000b355
movzx r8d, byte [rbx]
cdqe
mov byte [rsp + 0x30], r8b
add rbx, rax
lea eax, [r14 - 5]
mov rdx, rbx
movsxd rcx, eax
sub rdx, rbp
cmp rdx, rcx
jle 0x14000b3a1
mov rcx, qword [0x140013a48]
add r14d, 0x1000
mov r8, rbp
mov edx, 8
movsxd r9, r14d
sub ebx, ebp
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
movzx r8d, byte [rsp + 0x30]
movsxd rbx, ebx
mov rbp, rax
add rbx, rax
test r8b, r8b
je 0x14000b3c7
test r15d, r15d
jne 0x14000b327
cmp r8b, 0xd
je 0x14000b3d0
cmp r8b, 0xa
jne 0x14000b327
dec rbx
jmp 0x14000b454
test r15d, r15d
jne 0x14000b454
cmp r8b, 0xa
jne 0x14000b3db
dec rbx
jmp 0x14000b454
cmp r8b, 0xd
jne 0x14000b454
dec rbx
cmp qword [rsi + 8], 0
lea rdx, [rsp + 0x30]
je 0x14000b404
mov r8d, 1
mov rcx, rsi
call fcn.14000b6a0
mov dword [rsp + 0x34], eax
jmp 0x14000b421
mov rcx, qword [rsi]
lea r9, [rsp + 0x34]
mov r8d, 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [rsp + 0x30], 0xa
je 0x14000b454
cmp qword [rsi + 8], 0
je 0x14000b434
inc dword [rsi + 0x14]
jmp 0x14000b454
mov rcx, qword [rsi]
lea r8, [rsp + 0x3c]
mov r9d, 1
or edx, 0xffffffff
mov qword [rsp + 0x38], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rax, rbx
sub rax, rbp
mov qword [r12], rax
mov byte [rbx], 0
mov rbx, qword [rsp + 0x60]
mov rax, rbp
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
Function at 0x14000b490
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
movsxd rdi, r8d
mov rsi, rdx
mov rbx, rcx
mov dword [rsp + 0x50], ebp
cmp dword [rcx + 0x24], ebp
jne 0x14000b5ce
cmp dword [rcx + 0x1c], 1
jne 0x14000b4e3
mov eax, dword [rcx + 0x14]
mov rcx, qword [rcx]
lea r9d, [rbp + 1]
neg eax
lea r8, [rsp + 0x6c]
cdqe
mov edx, eax
mov qword [rsp + 0x68], rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x1c], ebp
mov dword [rbx + 0x14], eax
mov ecx, dword [rbx + 0x14]
cmp ecx, edi
jle 0x14000b56f
mov eax, dword [rbx + 0x10]
mov edx, edi
sub eax, ecx
movsxd rcx, eax
add rcx, qword [rbx + 8]
dec edx
je 0x14000b557
dec edx
je 0x14000b53e
cmp edx, 2
je 0x14000b527
mov r8, rdi
mov rdx, rsi
call sub.msvcrt.dll_memcpy
sub dword [rbx + 0x14], edi
mov rax, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov eax, dword [rsi]
mov dword [rcx], eax
sub dword [rbx + 0x14], edi
mov rax, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
movzx eax, word [rsi]
mov word [rcx], ax
sub dword [rbx + 0x14], edi
mov rax, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
movzx eax, byte [rsi]
mov byte [rcx], al
sub dword [rbx + 0x14], edi
mov rax, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov rcx, rbx
call fcn.14000a4e0
mov eax, dword [rbx + 0x10]
mov rdx, rsi
cmp edi, eax
jl 0x14000b5a9
mov rcx, qword [rbx]
lea r9, [rsp + 0x50]
mov r8d, edi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd rax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
sub eax, dword [rbx + 0x14]
mov r8, rdi
movsxd rcx, eax
add rcx, qword [rbx + 8]
call sub.msvcrt.dll_memcpy
sub dword [rbx + 0x14], edi
mov rax, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
movsxd rax, ebp
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000b6a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
xor r14d, r14d
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
cmp dword [rcx + 0x1c], r14d
jne 0x14000b6d4
call fcn.14000a4e0
mov dword [rbx + 0x1c], 1
mov dword [rbx + 0x14], r14d
movsxd rcx, dword [rbx + 0x14]
mov eax, dword [rbx + 0x18]
sub eax, ecx
mov rbp, rcx
cmp rcx, rdi
jl 0x14000b739
movsxd rcx, eax
mov rax, rdi
add rcx, qword [rbx + 8]
dec rax
je 0x14000b72f
dec rax
je 0x14000b721
cmp rax, 2
je 0x14000b715
mov rdx, rcx
mov r8, rdi
mov rcx, rsi
call sub.msvcrt.dll_memcpy
movsxd rax, edi
jmp 0x14000b7b1
mov eax, dword [rcx]
mov dword [rsi], eax
movsxd rax, edi
jmp 0x14000b7b1
movzx eax, word [rcx]
mov word [rsi], ax
movsxd rax, edi
jmp 0x14000b7b1
movzx eax, byte [rcx]
mov byte [rsi], al
movsxd rax, edi
jmp 0x14000b7b1
movsxd rdx, eax
mov r8, rcx
mov rcx, rsi
add rdx, qword [rbx + 8]
call sub.msvcrt.dll_memcpy
movsxd r8, dword [rbx + 0x10]
mov rcx, qword [rbx]
sub rdi, rbp
add rsi, rbp
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x50]
cmp rdi, r8
jl 0x14000b781
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x50]
mov dword [rbx + 0x14], r14d
add eax, ebp
cdqe
jmp 0x14000b7b4
mov rdx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rax, dword [rsp + 0x50]
mov rdx, qword [rbx + 8]
cmp rdi, rax
mov rcx, rsi
mov dword [rbx + 0x14], eax
cmovg rdi, rax
mov dword [rbx + 0x18], eax
mov r8, rdi
call sub.msvcrt.dll_memcpy
lea eax, [rdi + rbp]
cdqe
sub dword [rbx + 0x14], edi
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x14000b7d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x30
cmp qword [rcx + 8], 0
mov rbx, rdx
mov rsi, rcx
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x50], 0
je 0x14000b805
mov r8d, 1
call fcn.14000b6a0
mov dword [rsp + 0x50], eax
jmp 0x14000b826
mov rcx, qword [rcx]
lea r9, [rsp + 0x50]
mov r8d, 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x50]
cmp eax, 1
je 0x14000b838
xor eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
movzx ecx, byte [rsp + 0x40]
test cl, cl
js 0x14000b857
mov byte [rbx], cl
mov byte [rbx + 1], 0
mov eax, 1
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
movzx eax, cl
mov qword [rsp + 0x48], rdi
and al, 0xe0
cmp al, 0xc0
jne 0x14000b86c
mov edi, 2
jmp 0x14000b88a
movzx eax, cl
and al, 0xf0
cmp al, 0xe0
jne 0x14000b87c
mov edi, 3
jmp 0x14000b88a
movzx eax, cl
and al, 0xf8
cmp al, 0xf0
jne 0x14000b8f5
mov edi, 4
mov byte [rbx], cl
cmp qword [rsi + 8], 0
lea rdx, [rbx + 1]
je 0x14000b8aa
lea eax, [rdi - 1]
mov rcx, rsi
movsxd r8, eax
call fcn.14000b6a0
mov rcx, rax
jmp 0x14000b8c9
mov rcx, qword [rsi]
lea r8d, [rdi - 1]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x50]
lea eax, [rdi - 1]
cmp ecx, eax
je 0x14000b8e2
xor eax, eax
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
movsxd rax, edi
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
mov rdi, qword [rsp + 0x48]
mov word [rbx], 0x3f
mov rbx, qword [rsp + 0x58]
mov eax, 1
add rsp, 0x30
pop rsi
ret

Function at 0x14000ca24
Capabilities:
Set console window title

Disassembly:
mov edx, 2
xor ecx, ecx
jmp 0x14000ca30
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [0x14001101e], 0
mov edi, edx
mov rbx, rcx
jne 0x14000ca4e
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, 0xfffffff6
mov dword [0x140012d88], edi
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff5
mov qword [0x140013d00], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff4
mov qword [0x140013d10], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, qword [0x140013d10]
lea rdx, [0x140013d20]
mov qword [0x140013d40], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov edi, 1
lea rcx, [0x14000ca0c]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test rbx, rbx
je 0x14000cac0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
lea rcx, [0x140013d50]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x140013d80]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x14000ca30
Capabilities:
Set console window title

Disassembly:
mov edx, 2
xor ecx, ecx
jmp 0x14000ca30
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [0x14001101e], 0
mov edi, edx
mov rbx, rcx
jne 0x14000ca4e
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, 0xfffffff6
mov dword [0x140012d88], edi
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff5
mov qword [0x140013d00], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff4
mov qword [0x140013d10], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, qword [0x140013d10]
lea rdx, [0x140013d20]
mov qword [0x140013d40], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov edi, 1
lea rcx, [0x14000ca0c]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test rbx, rbx
je 0x14000cac0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
lea rcx, [0x140013d50]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x140013d80]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret

Function at 0x14000cbac
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
and qword [rsp + 0x20], 0
mov edi, edx
mov r8d, edx
mov rdx, rcx
mov rbx, rcx
mov rcx, qword [0x140013d10]
lea r9, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
jne 0x14000cc51
mov eax, dword [0x140012d88]
cmp eax, 2
je 0x14000cc18
cmp eax, 0x18
je 0x14000cc0e
mov rcx, qword [0x140013d10]
and qword [rsp + 0x20], 0
lea r8d, [rdi + rdi]
lea r9, [rsp + 0x50]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x14000cc51
mov rcx, rbx
call fcn.14000de30
jmp 0x14000cc20
mov rcx, rbx
call fcn.14000da90
mov rcx, rax
mov rbx, rax
call sub.msvcrt.dll_strlen
mov rcx, qword [0x140013d10]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call fcn.14000de20
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x2fc4c5930
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 rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4c6332
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4e8108]
test eax, eax
je 0x2fc4c63ca
lea rax, [0x2fc4e80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4e8110]
mov qword [rbp - 8], rax
jmp 0x2fc4c63ae
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 0x2fc4c63a2
cmp qword [rbp - 0x10], 0
je 0x2fc4c63a2
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 0x2fc4c6368
lea rax, [0x2fc4e80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4c63cb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4c64d0
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 0x2fc4c64f8
mov eax, 0
jmp 0x2fc4c6546
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 0x2fc4c6521
mov eax, 0
jmp 0x2fc4c6546
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 0x2fc4c6541
mov eax, 0
jmp 0x2fc4c6546
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4c654c
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 0x2fc4c65ca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4c65c1
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 0x2fc4c65c1
mov rax, qword [rbp - 8]
jmp 0x2fc4c65df
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 0x2fc4c6594
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1409be7c3
Capabilities:
Encode data using xor

Disassembly:
lea rsp, [rsp + 0x18]
je 0x1409be813
mov edi, 0x2921d7a1
lea rcx, [0x1409a58a8]
movzx edi, byte [r11]
push 0x64845e8b
xor edi, ebx
sal byte [rsp + 2], 0xc4
and edi, 0xff
mov edi, dword [rcx + rdi*4]
shr ebx, 8
xor ebx, edi
inc r11
neg dword [rsp + 2]
xor ebx, 0x512b7087
dec r10
lea rsp, [rsp + 8]
jne 0x1409be7da
push 0xffffffffa004fe25
not ebx
call fcn.1409c8f70
mov r9d, 0x202150b5
mov r9, qword [rdi + r9*2 - 0x4042a16a]
mov eax, 0xfd23d208
add rdi, 8
call fcn.1409a244a
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140011d70]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140011d80]
mov dword [rax], 1
mov rax, qword [0x140011d90]
mov dword [rax], 1
mov rax, qword [0x140011d20]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140011d60]
mov dword [0x14001500c], 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 [0x140011e50]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140011e30]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140011cb0]
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 0x140001db0
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 0x140001e20
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140015094]
mov rbx, rcx
test esi, esi
jle 0x140001f50
mov rax, qword [0x140015098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001e6b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001ef5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001e50
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001f72
mov rax, qword [0x140015098]
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 [0x140015098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001f57
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001eee
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001f00
add dword [0x140015094], 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 [0x140015098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001eee
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 0x140001e78
mov rax, qword [0x140015098]
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 0x1400024e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140015100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400150e0]
test rbx, rbx
je 0x14000253c
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 0x140002533
test rsi, rsi
je 0x140002533
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002518
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 0x140002750
Capabilities:
Parse pe header

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