joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001810
Capabilities:
Access peb ldr_data

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
movzx ebx, word [section..rdata]
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov r11, rcx
mov r12, rdx
mov r8d, r8d
mov dword [rsp + 0x5c], 0
mov rdi, qword [rax]
lea r10, [rdi - 0x10]
mov rsi, r10
mov r10, qword [r10]
cmp rdi, r10
je 0x1400018b6
mov rax, qword [rsi + 0x60]
lea rcx, [rax + 2]
movzx eax, word [rax]
test ax, ax
je 0x140001850
mov edx, 0x2108
mov r9d, edx
add rcx, 2
shl r9d, 6
add edx, r9d
add edx, eax
movzx eax, word [rcx - 2]
test ax, ax
jne 0x140001870
cmp edx, 0xfcdfbd0e
jne 0x140001850
mov edx, dword [rsi + 0x40]
mov rax, qword [rsi + 0x30]
cmp edx, 2
je 0x1400018b6
sub edx, 3
lea rdx, [rax + rdx + 1]
nop dword [rax]
cmp word [rax], bx
je 0x1400018b8
add rax, 1
cmp rdx, rax
jne 0x1400018a8
xor eax, eax
mov qword [rsp + 0x60], rax
lea r9, [rsp + 0x5c]
mov rdx, r12
mov rcx, r11
mov qword [rsp + 0x40], 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x70], 0
call fcn.140002810
test eax, eax
mov eax, 0
cmovne eax, dword [rsp + 0x5c]
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
ret

Function at 0x140001ad0
Capabilities:
Access peb ldr_data

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x78
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0xa0], rcx
mov r13, r8
mov r8, r9
movzx r9d, word [section..rdata]
mov r12, rdx
mov rsi, qword [rax]
lea r11, [rsi - 0x10]
nop
mov rbx, r11
mov r11, qword [r11]
cmp rsi, r11
je 0x140001b77
mov rax, qword [rbx + 0x60]
lea rcx, [rax + 2]
movzx eax, word [rax]
test ax, ax
je 0x140001b10
mov edx, 0x2108
mov r10d, edx
add rcx, 2
shl r10d, 6
add edx, r10d
add edx, eax
movzx eax, word [rcx - 2]
test ax, ax
jne 0x140001b30
cmp edx, 0xfcdfbd0e
jne 0x140001b10
mov edx, dword [rbx + 0x40]
mov rax, qword [rbx + 0x30]
cmp edx, 2
je 0x140001b77
sub edx, 3
lea rdx, [rax + rdx + 1]
nop dword [rax]
cmp word [rax], r9w
je 0x140001b79
add rax, 1
cmp rax, rdx
jne 0x140001b68
xor eax, eax
movq xmm0, rax
mov rax, qword [rsp + 0xe0]
mov rdx, r13
mov rcx, r12
mov r9, qword [rsp + 0xc0]
movhps xmm0, qword [rsp + 0xa0]
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xd8]
movaps xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.140002810
add rsp, 0x78
pop rbx
pop rsi
pop r12
pop r13
ret
Function at 0x140003040
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rax, qword [str.kernel32LoadLibrLocalAllGetProcA_not_found_]
lea rsi, [rsp + 0x20]
mov byte [rsp + 0x2c], 0
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0x6c6c642e
call fcn.140002b00
mov byte [rsp + 0x2c], 0
mov rbx, rax
mov rax, qword [0x1400c90a8]
mov dword [rsp + 0x28], 0x41797261
mov qword [rsp + 0x20], rax
movsxd rax, dword [rbx + 0x3c]
mov ebp, dword [rbx + rax + 0x88]
test ebp, ebp
je 0x140003240
lea r12, [rbx + rbp]
mov edi, dword [r12 + 0x20]
mov r13d, dword [r12 + 0x18]
add rdi, rbx
test r13d, r13d
je 0x140003270
xor r14d, r14d
jmp 0x1400030d9
add r14, 1
add rdi, 4
cmp r14, r13
je 0x140003270
mov ecx, dword [rdi]
mov rdx, rsi
add rcx, rbx
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400030c8
mov edx, dword [r12 + 0x24]
lea rcx, [rbx + r14*2]
mov eax, dword [r12 + 0x1c]
movzx edx, word [rcx + rdx]
lea rdx, [rbx + rdx*4]
mov eax, dword [rdx + rax]
add rax, rbx
mov qword [0x1400f7060], rax
mov rax, qword [0x1400c90b8]
lea r12, [rbx + rbp]
xor r14d, r14d
mov dword [rsp + 0x28], 0x65726464
mov qword [rsp + 0x20], rax
mov eax, 0x7373
mov word [rsp + 0x2c], ax
mov byte [rsp + 0x2e], 0
mov edi, dword [r12 + 0x20]
mov r13d, dword [r12 + 0x18]
add rdi, rbx
test r13d, r13d
jne 0x140003161
jmp 0x140003260
add r14, 1
add rdi, 4
cmp r13, r14
je 0x140003260
mov ecx, dword [rdi]
mov rdx, rsi
add rcx, rbx
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140003150
mov edx, dword [r12 + 0x24]
lea rcx, [rbx + r14*2]
mov eax, dword [r12 + 0x1c]
movzx edx, word [rcx + rdx]
lea rdx, [rbx + rdx*4]
mov eax, dword [rdx + rax]
add rax, rbx
add rbp, rbx
mov edx, 0x636f
mov byte [rsp + 0x2a], 0
xor r12d, r12d
mov qword [0x1400f7068], rax
mov rax, qword [0x1400c90b0]
mov word [rsp + 0x28], dx
mov qword [rsp + 0x20], rax
mov edi, dword [rbp + 0x20]
mov r13d, dword [rbp + 0x18]
add rdi, rbx
test r13d, r13d
jne 0x1400031dd
jmp 0x140003256
add r12, 1
add rdi, 4
cmp r13, r12
je 0x140003256
mov ecx, dword [rdi]
mov rdx, rsi
add rcx, rbx
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400031d0
mov edx, dword [rbp + 0x24]
lea rcx, [rbx + r12*2]
mov eax, dword [rbp + 0x1c]
movzx edx, word [rcx + rdx]
lea rdx, [rbx + rdx*4]
mov eax, dword [rdx + rax]
add rbx, rax
mov ecx, 0x4098
mov qword [0x1400f7058], rbx
call fcn.140002fa0
test rax, rax
mov qword [0x1400f7050], rax
setne al
movzx eax, al
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov qword [0x1400f7060], 0
mov qword [0x1400f7068], 0
xor ebx, ebx
jmp 0x140003206
xor eax, eax
jmp 0x14000318e
xor eax, eax
jmp 0x140003106
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
jmp 0x140003040
Function at 0x140003280
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rax, qword [str.kernel32LoadLibrLocalAllGetProcA_not_found_]
lea rsi, [rsp + 0x20]
mov byte [rsp + 0x2c], 0
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0x6c6c642e
call fcn.140002b00
mov byte [rsp + 0x2c], 0
mov rbx, rax
mov rax, qword [0x1400c90a8]
mov dword [rsp + 0x28], 0x41797261
mov qword [rsp + 0x20], rax
movsxd rax, dword [rbx + 0x3c]
mov ebp, dword [rbx + rax + 0x88]
test ebp, ebp
je 0x140003240
lea r12, [rbx + rbp]
mov edi, dword [r12 + 0x20]
mov r13d, dword [r12 + 0x18]
add rdi, rbx
test r13d, r13d
je 0x140003270
xor r14d, r14d
jmp 0x1400030d9
add r14, 1
add rdi, 4
cmp r14, r13
je 0x140003270
mov ecx, dword [rdi]
mov rdx, rsi
add rcx, rbx
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400030c8
mov edx, dword [r12 + 0x24]
lea rcx, [rbx + r14*2]
mov eax, dword [r12 + 0x1c]
movzx edx, word [rcx + rdx]
lea rdx, [rbx + rdx*4]
mov eax, dword [rdx + rax]
add rax, rbx
mov qword [0x1400f7060], rax
mov rax, qword [0x1400c90b8]
lea r12, [rbx + rbp]
xor r14d, r14d
mov dword [rsp + 0x28], 0x65726464
mov qword [rsp + 0x20], rax
mov eax, 0x7373
mov word [rsp + 0x2c], ax
mov byte [rsp + 0x2e], 0
mov edi, dword [r12 + 0x20]
mov r13d, dword [r12 + 0x18]
add rdi, rbx
test r13d, r13d
jne 0x140003161
jmp 0x140003260
add r14, 1
add rdi, 4
cmp r13, r14
je 0x140003260
mov ecx, dword [rdi]
mov rdx, rsi
add rcx, rbx
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140003150
mov edx, dword [r12 + 0x24]
lea rcx, [rbx + r14*2]
mov eax, dword [r12 + 0x1c]
movzx edx, word [rcx + rdx]
lea rdx, [rbx + rdx*4]
mov eax, dword [rdx + rax]
add rax, rbx
add rbp, rbx
mov edx, 0x636f
mov byte [rsp + 0x2a], 0
xor r12d, r12d
mov qword [0x1400f7068], rax
mov rax, qword [0x1400c90b0]
mov word [rsp + 0x28], dx
mov qword [rsp + 0x20], rax
mov edi, dword [rbp + 0x20]
mov r13d, dword [rbp + 0x18]
add rdi, rbx
test r13d, r13d
jne 0x1400031dd
jmp 0x140003256
add r12, 1
add rdi, 4
cmp r13, r12
je 0x140003256
mov ecx, dword [rdi]
mov rdx, rsi
add rcx, rbx
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400031d0
mov edx, dword [rbp + 0x24]
lea rcx, [rbx + r12*2]
mov eax, dword [rbp + 0x1c]
movzx edx, word [rcx + rdx]
lea rdx, [rbx + rdx*4]
mov eax, dword [rdx + rax]
add rbx, rax
mov ecx, 0x4098
mov qword [0x1400f7058], rbx
call fcn.140002fa0
test rax, rax
mov qword [0x1400f7050], rax
setne al
movzx eax, al
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov qword [0x1400f7060], 0
mov qword [0x1400f7068], 0
xor ebx, ebx
jmp 0x140003206
xor eax, eax
jmp 0x14000318e
xor eax, eax
jmp 0x140003106
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
jmp 0x140003040
Function at 0x1400062d0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rdi
push rsi
push rbx
mov rax, rcx
lea rcx, [rcx + 0xf]
sub rcx, rdx
cmp rcx, 0x1e
jbe 0x1400063b4
movdqu xmm1, xmmword [rdx]
movups xmmword [rax], xmm1
movdqu xmm0, xmmword [rdx + 0x10]
movups xmmword [rax + 0x10], xmm0
movzx edi, byte [rax + 0x1f]
movzx r9d, byte [rax + 0x1e]
mov r10d, 8
lea r11, [0x1400c9380]
movzx r8d, byte [rax + 0x1d]
movzx edx, byte [rax + 0x1c]
lea rbx, [0x1400c9260]
jmp 0x140006379
movzx r8d, r8b
movzx edx, dl
movzx ecx, byte [r11 + r8]
movzx r8d, r9b
movzx r9d, dil
movzx edi, byte [r11 + rdx]
mov edx, r10d
movzx r8d, byte [r11 + r8]
movzx r9d, byte [r11 + r9]
shr edx, 3
xor cl, byte [rbx + rdx]
mov edx, ecx
xor dl, byte [rax]
xor r8b, byte [rax + 1]
add r10d, 1
add rax, 4
xor r9b, byte [rax - 2]
xor dil, byte [rax - 1]
mov byte [rax + 0x1c], dl
mov byte [rax + 0x1d], r8b
mov byte [rax + 0x1e], r9b
mov byte [rax + 0x1f], dil
cmp r10d, 0x3c
je 0x1400063b0
mov ecx, r10d
and ecx, 7
je 0x140006320
cmp ecx, 4
jne 0x14000634e
movzx edx, dl
movzx r8d, r8b
movzx esi, r9b
movzx ecx, dil
movzx edx, byte [r11 + rdx]
movzx r8d, byte [r11 + r8]
movzx r9d, byte [r11 + rsi]
movzx edi, byte [r11 + rcx]
jmp 0x14000634e
pop rbx
pop rsi
pop rdi
ret
movzx ecx, byte [rdx]
mov byte [rax], cl
movzx ecx, byte [rdx + 1]
mov byte [rax + 1], cl
movzx ecx, byte [rdx + 2]
mov byte [rax + 2], cl
movzx ecx, byte [rdx + 3]
mov byte [rax + 3], cl
movzx ecx, byte [rdx + 4]
mov byte [rax + 4], cl
movzx ecx, byte [rdx + 5]
mov byte [rax + 5], cl
movzx ecx, byte [rdx + 6]
mov byte [rax + 6], cl
movzx ecx, byte [rdx + 7]
mov byte [rax + 7], cl
movzx ecx, byte [rdx + 8]
mov byte [rax + 8], cl
movzx ecx, byte [rdx + 9]
mov byte [rax + 9], cl
movzx ecx, byte [rdx + 0xa]
mov byte [rax + 0xa], cl
movzx ecx, byte [rdx + 0xb]
mov byte [rax + 0xb], cl
movzx ecx, byte [rdx + 0xc]
mov byte [rax + 0xc], cl
movzx ecx, byte [rdx + 0xd]
mov byte [rax + 0xd], cl
movzx ecx, byte [rdx + 0xe]
mov byte [rax + 0xe], cl
movzx ecx, byte [rdx + 0xf]
mov byte [rax + 0xf], cl
movzx ecx, byte [rdx + 0x10]
mov byte [rax + 0x10], cl
movzx ecx, byte [rdx + 0x11]
mov byte [rax + 0x11], cl
movzx ecx, byte [rdx + 0x12]
mov byte [rax + 0x12], cl
movzx ecx, byte [rdx + 0x13]
mov byte [rax + 0x13], cl
movzx ecx, byte [rdx + 0x14]
mov byte [rax + 0x14], cl
movzx ecx, byte [rdx + 0x15]
mov byte [rax + 0x15], cl
movzx ecx, byte [rdx + 0x16]
mov byte [rax + 0x16], cl
movzx ecx, byte [rdx + 0x17]
mov byte [rax + 0x17], cl
movzx ecx, byte [rdx + 0x18]
mov byte [rax + 0x18], cl
movzx ecx, byte [rdx + 0x19]
mov byte [rax + 0x19], cl
movzx ecx, byte [rdx + 0x1a]
mov byte [rax + 0x1a], cl
movzx ecx, byte [rdx + 0x1b]
mov byte [rax + 0x1b], cl
movzx ecx, byte [rdx + 0x1c]
mov byte [rax + 0x1c], cl
movzx ecx, byte [rdx + 0x1d]
mov byte [rax + 0x1d], cl
movzx ecx, byte [rdx + 0x1e]
mov byte [rax + 0x1e], cl
movzx edx, byte [rdx + 0x1f]
mov byte [rax + 0x1f], dl
jmp 0x1400062f7
Function at 0x14000c340
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rbx, qword [0x1400c9890]
mov rax, qword [str.GetFileSkernel32VirtualAReadFileCloseHanCreateFiPathAppeShlwapi.]
lea r15, [rsp + 0x40]
lea r14, [rsp + 0x50]
mov r12, rdx
mov rdi, r8
mov rdx, r15
mov rcx, r14
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], 0x657a69
mov byte [rsp + 0x5c], 0
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x58], 0x6c6c642e
call fcn.140003580
xor edx, edx
mov rcx, r12
call rax
mov rdx, r14
mov rcx, r15
mov byte [rsp + 0x5c], 0
mov esi, eax
mov rax, qword [0x1400c9898]
mov byte [rsp + 0x4c], 0
mov dword [rsp + 0x58], 0x636f6c6c
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], 0x6c6c642e
call fcn.140003580
lea edx, [rsi + 1]
mov r9d, 0x40
xor ecx, ecx
mov r8d, 0x3000
call rax
mov rdx, r15
mov rcx, r14
mov byte [rsp + 0x48], 0
mov r13, rax
mov rax, qword [0x1400c98a0]
mov byte [rsp + 0x5c], 0
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x58], 0x6c6c642e
call fcn.140003580
lea r9, [rsp + 0x3c]
mov r8d, esi
mov rdx, r13
mov qword [rsp + 0x20], 0
mov rcx, r12
call rax
mov rax, qword [0x1400c98a8]
mov rdx, r15
mov rcx, r14
mov dword [rsp + 0x48], 0x656c64
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x58], 0x6c6c642e
mov byte [rsp + 0x5c], 0
call fcn.140003580
mov rcx, r12
call rax
mov eax, dword [rsp + 0x3c]
mov qword [rdi], rax
mov rax, r13
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
push r13
push r12
push rbx
sub rsp, 0x60
mov rax, qword [0x1400c98b0]
mov qword [rsp + 0x40], rax
mov r12, rcx
mov r13, rdx
lea rcx, [rsp + 0x50]
mov rax, qword [0x1400c9890]
lea rdx, [rsp + 0x40]
mov rbx, r8
mov dword [rsp + 0x48], 0x41656c
mov byte [rsp + 0x5c], 0
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x6c6c642e
call fcn.140003580
mov rcx, r13
xor r9d, r9d
mov edx, 0x80000000
mov qword [rsp + 0x30], 0
mov r8d, 1
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call rax
mov r8, rbx
mov rcx, r12
mov rdx, rax
add rsp, 0x60
pop rbx
pop r12
pop r13
jmp 0x14000c340

Function at 0x1400195f0
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 fcn.140027100
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140027100
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x14001a222
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400f71e8]
test eax, eax
je 0x14001a2ba
lea rax, [0x1400f71c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400f71f0]
mov qword [rbp - 8], rax
jmp 0x14001a29e
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 0x14001a292
cmp qword [rbp - 0x10], 0
je 0x14001a292
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 0x14001a258
lea rax, [0x1400f71c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14001a2bb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14001a3c0
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 0x14001a3e8
mov eax, 0
jmp 0x14001a436
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 0x14001a411
mov eax, 0
jmp 0x14001a436
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 0x14001a431
mov eax, 0
jmp 0x14001a436
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14001a43c
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 0x14001a4ba
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14001a4b1
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 0x14001a4b1
mov rax, qword [rbp - 8]
jmp 0x14001a4cf
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 0x14001a484
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400293a0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x1400294b2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14002948a
add rax, 1
cmp rax, 0x6b
je 0x1400294a7
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x140029480
cmp edx, 0x6a
je 0x1400294a7
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x14002949b

Function at 0x140029850
Capabilities:
Allocate thread local storage

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x28
lea rsi, [0x1400f7dc0]
mov rcx, rsi
call fcn.140029110
lea r13, [rax + 8]
mov r12, rax
mov rcx, r13
call fcn.140028920
mov ebx, dword [0x1400f7dc0]
test ebx, ebx
jne 0x1400298c0
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400c5388], eax
cmp eax, 0xffffffff
je 0x1400c3ff6
mov dword [0x1400f7dc0], 1
mov rcx, r13
call fcn.140028c40
test r12, r12
je 0x1400298f2
mov rcx, r12
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
jmp fcn.1400294d0
cmp ebx, 1
je 0x1400298a1
mov ecx, 2
call qword [fcn.140027100]
mov r9d, ebx
mov r8, rsi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call fcn.1400290e0
mov rcx, r13
call fcn.140028c40
test r12, r12
jne 0x1400298ae
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
ret
call sub.msvcrt.dll_abort
nop
Function at 0x140088db0
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 0x140088dd7
call rbp
cmp dword [rax], 4
jne 0x140088df4
mov rcx, rdi
call fcn.140088be0
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x140088dd0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002290
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002290
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

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

Disassembly:
mov rax, qword [0x140008008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x140008008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x140008008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140008008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret
Function at 0x140001180
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
lea r8d, [rdx + 6]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor r11d, r11d
lea rsi, [0x14000f040]
mov r10, rax
sub rbx, rax
movabs rdi, 0x7c97d9108c2ad433
lea r9, [rax + 1]
nop dword [rax + rax]
movsxd r8, r11d
mov rax, rdi
mul r8
mov rcx, r8
shr rdx, 7
imul rax, rdx, 0x107
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 1]
xor al, byte [rbx + r9 - 1]
mov byte [r9 - 1], al
mov rax, rdi
mul rcx
shr rdx, 7
imul rax, rdx, 0x107
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 2]
xor al, byte [rbx + r9]
mov byte [r9], al
mov rax, rdi
mul rcx
shr rdx, 7
imul rax, rdx, 0x107
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 3]
xor al, byte [rbx + r9 + 1]
mov byte [r9 + 1], al
mov rax, rdi
mul rcx
shr rdx, 7
imul rax, rdx, 0x107
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 4]
xor al, byte [rbx + r9 + 2]
mov byte [r9 + 2], al
mov rax, rdi
mul rcx
shr rdx, 7
imul rax, rdx, 0x107
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 5]
xor al, byte [rbx + r9 + 3]
mov byte [r9 + 3], al
mov rax, rdi
mul rcx
shr rdx, 7
imul rax, rdx, 0x107
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 6]
xor al, byte [rbx + r9 + 4]
mov byte [r9 + 4], al
mov rax, rdi
mul rcx
shr rdx, 7
imul rax, rdx, 0x107
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 7]
xor al, byte [rbx + r9 + 5]
mov byte [r9 + 5], al
mov rax, rdi
mul rcx
shr rdx, 7
imul rax, rdx, 0x107
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 8]
xor al, byte [rbx + r9 + 6]
mov byte [r9 + 6], al
mov rax, rdi
mul rcx
shr rdx, 7
imul rax, rdx, 0x107
sub rcx, rax
movzx eax, byte [rcx + rsi]
xor al, byte [rbx + r9 + 7]
mov byte [r9 + 7], al
lea rcx, [r8 + 9]
mov rax, rdi
lea r9, [r9 + 0xe]
mul rcx
add r11d, 0xe
shr rdx, 7
imul rax, rdx, 0x107
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 0xa]
xor al, byte [rbx + r9 - 6]
mov byte [r9 - 6], al
mov rax, rdi
mul rcx
shr rdx, 7
imul rax, rdx, 0x107
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 0xb]
xor al, byte [rbx + r9 - 5]
mov byte [r9 - 5], al
mov rax, rdi
mul rcx
shr rdx, 7
imul rax, rdx, 0x107
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 0xc]
xor al, byte [rbx + r9 - 4]
mov byte [r9 - 4], al
mov rax, rdi
mul rcx
shr rdx, 7
imul rax, rdx, 0x107
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 0xd]
xor al, byte [rbx + r9 - 3]
mov byte [r9 - 3], al
mov rax, rdi
mul rcx
shr rdx, 7
imul rax, rdx, 0x107
sub rcx, rax
movzx eax, byte [rcx + rsi]
xor al, byte [rbx + r9 - 2]
mov byte [r9 - 2], al
cmp r11d, 0xe
jb 0x1400011d0
mov rbx, qword [rsp + 0x30]
mov rax, r10
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret