joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18018bf60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x18018bf6b
xor eax, eax
ret
lea r11, [0x1800250b0]
not ecx
cmp r8d, 8
jb 0x18018c041
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x18018bf90
test r8d, r8d
je 0x18018c06d
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x18018c050
not ecx
mov eax, ecx
ret
Function at 0x140003520
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000334c
Function at 0x14000aba4
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x140001000
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Parse pe header

Disassembly:
mov r11, rsp
push rbp
push rbx
lea rbp, [r11 - 0x538]
sub rsp, 0x628
mov rax, qword [0x140004008]
xor rax, rsp
mov qword [rbp + 0x500], rax
mov rbx, rdx
mov rdx, qword [rdx + 8]
test rdx, rdx
jne case.default.0x140001068
cmp dword [rbx], edx
jne case.default.0x140001068
mov qword [r11 + 8], rsi
lea r8, [0x140000000]
mov qword [r11 + 0x18], rdi
mov qword [r11 + 0x20], r12
mov qword [r11 - 0x18], r13
mov eax, ecx
mov qword [r11 - 0x20], r14
mov qword [r11 - 0x28], r15
mov ecx, dword [r8 + rax*4 + 0x1acc]
add rcx, r8
jmp rcx
mov rdx, rbx
mov ecx, 1
call section..text
lea rax, [rbx + 0x68]
mov dword [rbx + 0x58], 0x2090208
mov rdx, rbx
mov qword [rbx + 0x60], rax
mov ecx, 8
call section..text
mov rdx, rbx
mov ecx, 0xa
call section..text
mov rdx, rbx
mov ecx, 3
call section..text
mov rax, qword [rbx + 8]
jmp 0x14000118d
mov rax, qword gs:[0x30]
mov rdx, rbx
mov qword [rbx + 0x18], rax
mov ecx, 2
mov rax, qword [rax + 0x60]
mov qword [rbx + 0x10], rax
call section..text
cmp qword [rbx + 0x20], 0
jne 0x1400010ec
mov rdx, rbx
mov ecx, 3
call section..text
mov rdx, rbx
mov ecx, 0xb
call section..text
cmp qword [rbx + 0x84c0], 0
jne 0x140001110
mov rdx, rbx
mov ecx, 3
call section..text
mov rdx, rbx
mov ecx, 0x11
call section..text
mov rax, qword [rbx + 8]
jmp 0x14000118d
mov rax, qword [rbx + 0x10]
mov rsi, qword [rax + 0x18]
add rsi, 0x20
mov rdi, qword [rsi]
cmp rdi, rsi
je 0x140001ab3
xor r12d, r12d
nop
mov rax, qword [rdi + 0x50]
test rax, rax
je 0x14000116e
mov rdx, rbx
mov qword [rbx + 0x48], rax
mov ecx, 4
call section..text
mov eax, dword [rbx + 0x8480]
mov dword [rbx + 0x8480], r12d
cmp eax, 0xa62a3b3b
je 0x14000117c
mov rdi, qword [rdi]
cmp rdi, rsi
jne 0x140001140
mov rax, qword [rbx + 8]
jmp 0x14000118d
mov rax, qword [rdi + 0x20]
mov qword [rbx + 0x20], rax
mov rax, qword [rbx + 8]
jmp 0x14000118d
mov rax, rdx
mov r14, qword [rsp + 0x618]
mov r13, qword [rsp + 0x620]
mov r12, qword [rsp + 0x658]
mov rdi, qword [rsp + 0x650]
mov rsi, qword [rsp + 0x640]
mov r15, qword [rsp + 0x610]
mov rcx, qword [rbp + 0x500]
xor rcx, rsp
call fcn.140001b90
add rsp, 0x628
pop rbx
pop rbp
ret
mov rdx, qword [rbx + 0x48]
mov ecx, 0x811c9dc5
movzx r8d, word [rdx]
test r8w, r8w
je 0x140001210
nop dword [rax]
add rdx, 2
movzx eax, r8b
xor ecx, eax
mov qword [rbx + 0x48], rdx
imul ecx, ecx, 0x1000193
movzx eax, word [rdx]
movzx r8d, al
test ax, ax
jne 0x1400011f0
mov rax, qword [rbx + 8]
mov dword [rbx + 0x8480], ecx
jmp 0x14000118d
mov rax, qword [rbx + 8]
jmp 0x14000118d
mov rax, rdx
jmp 0x1400011bd

Function at 0x1400025c0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000260a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000260a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000260a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000260a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000260a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000260c
xor al, al
add rsp, 0x28
ret
Function at 0x14000dbf0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
add rcx, 0x50
mov r9d, 0x14
jmp 0x1400106e0
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x10
cmp r8d, 0x20
mov eax, 0x255cc9d8
mov r8d, 0x93050021
cmove r8d, eax
test r9d, r9d
mov eax, 0xb0aa052d
mov r10d, 0x45c4bf01
cmove r10d, eax
lea rsi, [rdx + 0x10]
mov edi, 0xd9e57aa5
lea r14, str.expand_16_byte_k
lea r15, str.expand_32_byte_k
nop dword [rax + rax]
cmp edi, 0x255cc9d7
jle 0x140010760
cmp edi, 0x255cc9d8
je 0x140010780
cmp edi, 0x45c4bf01
je 0x14001079a
cmp edi, 0x7c502b01
jne 0x140010730
jmp 0x1400107e0
cmp edi, 0x93050021
je 0x14001078d
cmp edi, 0xb0aa052d
je 0x1400107d1
cmp edi, 0xd9e57aa5
jne 0x140010730
mov ebp, r9d
mov edi, r10d
jmp 0x140010730
mov edi, 0x7c502b01
mov r11, r15
mov rax, rsi
jmp 0x140010730
mov edi, 0x7c502b01
mov r11, r14
mov rax, rdx
jmp 0x140010730
mov dword [rsp + 0xc], ebp
mov qword [rsp], rcx
mov rdi, qword [rsp]
mov ebx, dword [rdx]
mov dword [rdi + 0x10], ebx
mov rdi, qword [rsp]
mov ebx, dword [rdx + 4]
mov dword [rdi + 0x14], ebx
mov rdi, qword [rsp]
mov ebx, dword [rdx + 8]
mov dword [rdi + 0x18], ebx
mov rdi, qword [rsp]
mov ebx, dword [rdx + 0xc]
mov dword [rdi + 0x1c], ebx
mov edi, r8d
jmp 0x140010730
mov edi, 0x45c4bf01
mov ebp, 0x14
jmp 0x140010730
mov rdx, qword [rsp]
mov ebp, dword [rax]
mov dword [rdx + 0x20], ebp
mov rdx, qword [rsp]
mov ebp, dword [rax + 4]
mov dword [rdx + 0x24], ebp
mov rdx, qword [rsp]
mov ebp, dword [rax + 8]
mov dword [rdx + 0x28], ebp
mov rdx, qword [rsp]
mov eax, dword [rax + 0xc]
mov dword [rdx + 0x2c], eax
mov rax, qword [rsp]
mov edx, dword [r11]
mov dword [rax], edx
mov rax, qword [rsp]
mov edx, dword [r11 + 4]
mov dword [rax + 4], edx
mov rax, qword [rsp]
mov edx, dword [r11 + 8]
mov dword [rax + 8], edx
mov rax, qword [rsp]
mov edx, dword [r11 + 0xc]
mov dword [rax + 0xc], edx
mov eax, dword [rsp + 0xc]
mov dword [rcx + 0x88], eax
mov dword [rcx + 0x84], 0
xor eax, eax
add rsp, 0x10
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400106e0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
add rcx, 0x50
mov r9d, 0x14
jmp 0x1400106e0
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x10
cmp r8d, 0x20
mov eax, 0x255cc9d8
mov r8d, 0x93050021
cmove r8d, eax
test r9d, r9d
mov eax, 0xb0aa052d
mov r10d, 0x45c4bf01
cmove r10d, eax
lea rsi, [rdx + 0x10]
mov edi, 0xd9e57aa5
lea r14, str.expand_16_byte_k
lea r15, str.expand_32_byte_k
nop dword [rax + rax]
cmp edi, 0x255cc9d7
jle 0x140010760
cmp edi, 0x255cc9d8
je 0x140010780
cmp edi, 0x45c4bf01
je 0x14001079a
cmp edi, 0x7c502b01
jne 0x140010730
jmp 0x1400107e0
cmp edi, 0x93050021
je 0x14001078d
cmp edi, 0xb0aa052d
je 0x1400107d1
cmp edi, 0xd9e57aa5
jne 0x140010730
mov ebp, r9d
mov edi, r10d
jmp 0x140010730
mov edi, 0x7c502b01
mov r11, r15
mov rax, rsi
jmp 0x140010730
mov edi, 0x7c502b01
mov r11, r14
mov rax, rdx
jmp 0x140010730
mov dword [rsp + 0xc], ebp
mov qword [rsp], rcx
mov rdi, qword [rsp]
mov ebx, dword [rdx]
mov dword [rdi + 0x10], ebx
mov rdi, qword [rsp]
mov ebx, dword [rdx + 4]
mov dword [rdi + 0x14], ebx
mov rdi, qword [rsp]
mov ebx, dword [rdx + 8]
mov dword [rdi + 0x18], ebx
mov rdi, qword [rsp]
mov ebx, dword [rdx + 0xc]
mov dword [rdi + 0x1c], ebx
mov edi, r8d
jmp 0x140010730
mov edi, 0x45c4bf01
mov ebp, 0x14
jmp 0x140010730
mov rdx, qword [rsp]
mov ebp, dword [rax]
mov dword [rdx + 0x20], ebp
mov rdx, qword [rsp]
mov ebp, dword [rax + 4]
mov dword [rdx + 0x24], ebp
mov rdx, qword [rsp]
mov ebp, dword [rax + 8]
mov dword [rdx + 0x28], ebp
mov rdx, qword [rsp]
mov eax, dword [rax + 0xc]
mov dword [rdx + 0x2c], eax
mov rax, qword [rsp]
mov edx, dword [r11]
mov dword [rax], edx
mov rax, qword [rsp]
mov edx, dword [r11 + 4]
mov dword [rax + 4], edx
mov rax, qword [rsp]
mov edx, dword [r11 + 8]
mov dword [rax + 8], edx
mov rax, qword [rsp]
mov edx, dword [r11 + 0xc]
mov dword [rax + 0xc], edx
mov eax, dword [rsp + 0xc]
mov dword [rcx + 0x88], eax
mov dword [rcx + 0x84], 0
xor eax, eax
add rsp, 0x10
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140010974
Capabilities:
Execute syscall

Disassembly:
mov r11, rcx
nop
mov r10, r11
nop
mov eax, dword [0x14002b090]
nop
syscall
ret
Function at 0x140013710
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013840
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1400138a7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400138a7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400138a7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400138a7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400138a7
cmp dword [rcx + 0x84], 0xe
jbe 0x1400138a7
cmp dword [rcx + 0xf8], 0
je 0x1400138a7
mov ecx, ebx
call fcn.14001378c
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1400139c0
cmp dword [rbp + 0x20], 0
je 0x1400138f4
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400137e8
int3

Function at 0x404780
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x0040e9d0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x4047ed
mov rcx, r8
call fcn.00404660
test eax, eax
je 0x4047ed
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x4047ed
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4047e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4047ef
add rax, 0x28
cmp rax, r9
jne 0x4047d0
xor eax, eax
add rsp, 0x28
ret
Function at 0x140001487
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140045ad0]
mov dword [rax], 1
mov rax, qword [0x140045ae0]
mov dword [rax], 1
mov rax, qword [0x140045af0]
mov dword [rax], 1
mov rax, qword [0x140045a50]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014d8
mov eax, 0
jmp 0x140001585
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 0x140001504
mov eax, 0
jmp 0x140001585
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 0x14000152a
cmp eax, 0x20b
je 0x140001551
jmp 0x140001580
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000153d
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000156c
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14001fc10
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Hash data with crc32

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x14004db48], 0
mov r12, rcx
mov r13, rdx
mov rdi, r8
je 0x14001fc98
lea rdx, [0x140043d4a]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x14001fda0
mov rsi, qword [0x14004db40]
jmp 0x14001fc55
lea rsi, [rdx + rax + 4]
mov rdx, rsi
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rsi
mov ebx, eax
call sub.msvcrt.dll_strlen
lea rdx, [rsi + rax + 1]
mov eax, dword [rdx]
test ebx, ebx
jne 0x14001fc50
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, r12
mov rdx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp fcn.14001dff0
mov r8d, 0xa
mov edx, 3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rax
mov r9d, dword [rax]
mov eax, dword [rax + 4]
lea rcx, [rdx + 8]
mov qword [0x14004db40], rcx
test eax, eax
je 0x14001fd88
sub eax, 1
lea r8, [rdx + rax + 9]
mov eax, 0xffffffff
nop dword [rax + rax]
movzx edx, byte [rcx]
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
shr eax, 1
and edx, 1
add rcx, 1
neg edx
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor eax, edx
cmp r8, rcx
jne 0x14001fcf0
not eax
cmp r9d, eax
jne 0x14001fe08
mov byte [0x14004db48], 1
jmp 0x14001fc2d
cmp byte [0x14004db38], 0
jne 0x14001fc44
mov rbx, qword [sym.imp.python311.dll_PyDict_New]
call rbx
mov qword [0x14004db90], rax
call rbx
mov qword [0x14004db88], rax
call rbx
mov qword [0x14004db80], rax
call rbx
mov qword [0x14004dbc0], rax
call rbx
mov qword [0x14004dbb8], rax
call rbx
mov qword [0x14004dbb0], rax
call rbx
mov qword [0x14004dba0], rax
call rbx
mov byte [0x14004db38], 1
mov qword [0x14004db98], rax
jmp 0x14001fc44
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x14002a360
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.14003b870
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.14003b870
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x14002b012
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14004e048]
test eax, eax
je 0x14002b0aa
lea rax, [0x14004e020]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14004e050]
mov qword [rbp - 8], rax
jmp 0x14002b08e
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 0x14002b082
cmp qword [rbp - 0x10], 0
je 0x14002b082
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 0x14002b048
lea rax, [0x14004e020]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14002b0ab
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14002b1b0
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 0x14002b1d8
mov eax, 0
jmp 0x14002b226
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 0x14002b201
mov eax, 0
jmp 0x14002b226
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 0x14002b221
mov eax, 0
jmp 0x14002b226
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14002b22c
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 0x14002b2aa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14002b2a1
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 0x14002b2a1
mov rax, qword [rbp - 8]
jmp 0x14002b2bf
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 0x14002b274
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14009a7d0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14009a7e0]
mov dword [rax], 1
mov rax, qword [0x14009a7f0]
mov dword [rax], 1
mov rax, qword [0x14009a780]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14009a7c0]
mov dword [0x14009d00c], 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 [0x14009a8a0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14009a880]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14009a730]
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 0x140001649
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov qword [rbp - 8], 0
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14000167c
mov eax, 0
jmp 0x1400017be
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400016a8
mov eax, 0
jmp 0x1400017be
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0xf8]
test eax, eax
je 0x1400016c0
mov eax, 0
jmp 0x1400017be
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
add rax, 0x108
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x50]
mov edx, eax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 0x30]
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140001739
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x50]
mov eax, eax
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140001747
mov eax, 0
jmp 0x1400017be
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x54]
mov ecx, eax
mov rdx, qword [rbp - 0x20]
mov rax, qword [rbp - 8]
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov dword [rbp - 0x14], 0
jmp 0x1400017aa
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x10]
mov r8d, eax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x14]
mov edx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
mov rdx, rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp - 8]
add rax, rcx
mov rcx, rax
call sym.memcpy
add qword [rbp - 0x10], 0x28
add dword [rbp - 0x14], 1
mov rax, qword [rbp - 0x28]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0x14], eax
jl 0x14000176c
mov rax, qword [rbp - 8]
add rsp, 0x50
pop rbp
ret

Function at 0x140001d40
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]