joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100028f78
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x20
mov r13, qword [rsp + 0x60]
xor r14d, r14d
mov r12, r9
mov qword [r9], r14
mov edi, r8d
mov rsi, rdx
mov qword [r13], r14
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
cmp rax, r14
jne 0x100028ff9
call fcn.100027b98
mov ebx, eax
mov rcx, qword [0x10003d610]
lea rdx, [0x10003d610]
cmp rcx, rdx
je 0x100028ff2
test byte [rcx + 0x1c], 1
je 0x100028ff2
lea edx, [r14 + 0x12]
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000060f0]
mov r9d, eax
call fcn.10001550c
mov eax, ebx
jmp 0x10002912c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
cmp rax, r14
jne 0x100029031
call fcn.100027b98
mov ebx, eax
mov rcx, qword [0x10003d610]
lea rdx, [0x10003d610]
cmp rcx, rdx
je 0x100028ff2
test byte [rcx + 0x1c], 1
je 0x100028ff2
mov edx, 0x13
jmp 0x100028fdf
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, r14d
jne 0x10002906c
call fcn.100027b98
mov ebx, eax
mov rcx, qword [0x10003d610]
lea rdx, [0x10003d610]
cmp rcx, rdx
je 0x100028ff2
test byte [rcx + 0x1c], 1
je 0x100028ff2
mov edx, 0x14
jmp 0x100028fdf
mov ecx, eax
add rcx, rbx
cmp rbx, rcx
jbe 0x1000290ae
mov rcx, qword [0x10003d610]
lea rdx, [0x10003d610]
cmp rcx, rdx
je 0x1000290a7
test byte [rcx + 0x1c], 1
je 0x1000290a7
mov edx, 0x15
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000060f0]
mov r9d, edi
call fcn.10001550c
mov eax, 0x80070714
jmp 0x10002912c
mov edx, edi
mov r8d, r14d
and edx, 0xf
jbe 0x1000290cd
cmp rbx, rcx
jae 0x1000290d2
movzx eax, word [rbx]
inc r8d
lea rbx, [rbx + rax*2 + 2]
cmp r8d, edx
jb 0x1000290b8
cmp rbx, rcx
jb 0x1000290f2
mov rcx, qword [0x10003d610]
lea rdx, [0x10003d610]
cmp rcx, rdx
je 0x1000290a7
test byte [rcx + 0x1c], 1
je 0x1000290a7
mov edx, 0x16
jmp 0x100029094
cmp word [rbx], r14w
jne 0x10002911b
mov rcx, qword [0x10003d610]
lea rdx, [0x10003d610]
cmp rcx, rdx
je 0x1000290a7
test byte [rcx + 0x1c], 2
je 0x1000290a7
mov edx, 0x17
jmp 0x100029094
movzx eax, word [rbx]
mov qword [r12], rax
lea rax, [rbx + 2]
mov qword [r13], rax
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
Function at 0x10002a760
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov ebp, dword [rcx + 0x38]
mov rdi, rcx
mov edx, dword [rdi + 0x8c]
mov ebx, dword [rdi + 0x50]
mov eax, dword [rdi + 0x94]
sub ebx, edx
sub ebx, eax
jne 0x10002a7a2
test edx, edx
jne 0x10002a7b1
test eax, eax
jne 0x10002a7b1
mov ebx, ebp
jmp 0x10002a837
cmp ebx, 0xffffffff
jne 0x10002a7b1
mov ebx, 0xfffffffe
jmp 0x10002a837
mov eax, dword [rdi + 0x38]
lea ecx, [rbp + rax - 0x106]
cmp edx, ecx
jb 0x10002a837
mov rcx, qword [rdi + 0x48]
mov r8, rbp
lea rdx, [rcx + rbp]
call sub.msvcrt.dll_memcpy
mov r9d, dword [rdi + 0x6c]
mov rax, qword [rdi + 0x60]
sub dword [rdi + 0x90], ebp
sub dword [rdi + 0x8c], ebp
sub dword [rdi + 0x7c], ebp
lea r8, [rax + r9*2]
sub r8, 2
xor eax, eax
movzx edx, word [r8]
movzx ecx, dx
sub cx, bp
cmp edx, ebp
cmovae ax, cx
add r9d, 0xffffffff
mov word [r8], ax
jne 0x10002a7ea
mov rax, qword [rdi + 0x58]
mov r9d, ebp
lea r8, [rax + rbp*2]
sub r8, 2
xor eax, eax
movzx edx, word [r8]
movzx ecx, dx
sub cx, bp
cmp edx, ebp
cmovae ax, cx
add r9d, 0xffffffff
mov word [r8], ax
jne 0x10002a815
add ebx, ebp
mov rsi, qword [rdi]
cmp dword [rsi + 8], 0
je 0x10002a8f6
mov eax, dword [rdi + 0x8c]
mov r13d, dword [rdi + 0x94]
add r13, rax
mov eax, dword [rsi + 8]
add r13, qword [rdi + 0x48]
cmp eax, ebx
mov r12d, eax
cmova r12d, ebx
test r12d, r12d
je 0x10002a8a2
sub eax, r12d
mov dword [rsi + 8], eax
mov rax, qword [rsi + 0x28]
cmp dword [rax + 0x2c], 0
jne 0x10002a88a
mov rdx, qword [rsi]
mov ecx, dword [rsi + 0x4c]
mov r8d, r12d
call fcn.10002b310
mov dword [rsi + 0x4c], eax
mov rdx, qword [rsi]
mov r8d, r12d
mov rcx, r13
mov ebx, r12d
call sub.msvcrt.dll_memcpy
add qword [rsi], rbx
add dword [rsi + 0xc], r12d
add dword [rdi + 0x94], r12d
mov r9d, dword [rdi + 0x94]
cmp r9d, 3
jb 0x10002a8e0
mov eax, dword [rdi + 0x8c]
mov rdx, qword [rdi + 0x48]
mov ecx, dword [rdi + 0x78]
movzx r8d, byte [rax + rdx]
mov dword [rdi + 0x68], r8d
shl r8d, cl
inc eax
movzx eax, byte [rax + rdx]
xor r8d, eax
and r8d, dword [rdi + 0x74]
mov dword [rdi + 0x68], r8d
cmp r9d, 0x106
jae 0x10002a8f6
mov rax, qword [rdi]
cmp dword [rax + 8], 0
jne 0x10002a77e
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x10002b310
Capabilities:
Compute adler32 checksum

Disassembly:
movzx r9d, cx
shr ecx, 0x10
mov r10, rdx
test rdx, rdx
jne 0x10002b449
lea eax, [rdx + 1]
ret
mov edx, 0x15b0
cmp r8d, edx
cmovb edx, r8d
sub r8d, edx
cmp edx, 0x10
jl 0x10002b40d
mov r11d, edx
shr r11, 4
mov eax, r11d
neg eax
shl eax, 4
add edx, eax
movzx eax, byte [r10]
add r10, 0x10
add r9d, eax
movzx eax, byte [r10 - 0xf]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xe]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xd]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xc]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xb]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xa]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 9]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 8]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 7]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 6]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 5]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 4]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 3]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 2]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 1]
add ecx, r9d
add r9d, eax
add ecx, r9d
sub r11, 1
jne 0x10002b350
test edx, edx
je 0x10002b423
movzx eax, byte [r10]
inc r10
add r9d, eax
add ecx, r9d
sub edx, 1
jne 0x10002b411
mov eax, 0x80078071
mul r9d
mov eax, 0x80078071
shr edx, 0xf
imul edx, edx, 0xffff000f
add r9d, edx
mul ecx
shr edx, 0xf
imul edx, edx, 0xffff000f
add ecx, edx
test r8d, r8d
jne 0x10002b327
shl ecx, 0x10
or ecx, r9d
mov eax, ecx
ret
Function at 0x10002e840
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
or r10d, 0xffffffff
xor edi, edi
mov rbx, rdx
mov r11, rcx
cmp rdx, 4
jb 0x10002e874
mov rax, rcx
and eax, 3
je 0x10002e874
mov r8d, 4
sub r8, rax
jmp 0x10002e877
mov r8, rdi
cmp rdx, 4
jb 0x10002e887
mov rdi, rdx
sub rdi, r8
and rdi, 0xfffffffffffffff8
sub rbx, rdi
lea rsi, [0x100000000]
sub rbx, r8
test r8, r8
je 0x10002e8c4
nop dword [rax]
movzx ecx, byte [r11]
mov eax, r10d
inc r11
xor rcx, rax
shr eax, 8
movzx edx, cl
mov r10d, dword [rsi + rdx*4 + 0x1d30]
xor r10d, eax
sub r8, 1
jne 0x10002e8a0
shr rdi, 3
test rdi, rdi
je 0x10002e967
xor r10d, dword [r11]
mov r8d, dword [r11 + 4]
add r11, 8
mov r9d, r10d
mov rax, r8
shr rax, 0x10
movzx edx, al
mov rax, r8
mov r10d, dword [rsi + rdx*4 + 0x2130]
shr rax, 8
movzx ecx, al
mov rax, r9
xor r10d, dword [rsi + rcx*4 + 0x2530]
shr rax, 0x10
movzx ecx, al
mov rax, r9
xor r10d, dword [rsi + rcx*4 + 0x3130]
shr rax, 8
movzx ecx, al
mov rax, r8
xor r10d, dword [rsi + rcx*4 + 0x3530]
shr rax, 0x18
xor r10d, dword [rsi + rax*4 + 0x1d30]
mov rax, r9
shr rax, 0x18
xor r10d, dword [rsi + rax*4 + 0x2d30]
movzx eax, r8b
xor r10d, dword [rsi + rax*4 + 0x2930]
movzx eax, r9b
xor r10d, dword [rsi + rax*4 + 0x3930]
sub rdi, 1
jne 0x10002e8d1
test rbx, rbx
je 0x10002e997
nop dword [rax]
movzx ecx, byte [r11]
mov eax, r10d
inc r11
xor rcx, rax
movzx eax, cl
mov ecx, r10d
mov r10d, dword [rsi + rax*4 + 0x1d30]
shr ecx, 8
xor r10d, ecx
sub rbx, 1
jne 0x10002e970
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov eax, r10d
ret
Function at 0x10002eee0
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x10003d110]
jne 0x10002eefb
rol rcx, 0x10
test cx, 0xffff
jne 0x10002eef7
ret 0
ror rcx, 0x10
jmp 0x10002fd3c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x10003dc60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x10003dd58]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x10002fdc1
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x10003dc60]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x10002fde3
mov rax, qword [rsp + 0x88]
mov qword [0x10003dd58], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x10003dcf8], rax
mov rax, qword [0x10003dd58]
mov qword [0x10003dbd0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x10003dce0], rax
mov dword [0x10003dbc0], 0xc0000409
mov dword [0x10003dbc4], 1
mov rax, qword [0x10003d110]
mov qword [rsp + 0x68], rax
mov rax, qword [0x10003d118]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x100001740]
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, 0x88
ret

Function at 0x10002f0d4
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x530
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x10002f13f
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
jmp 0x10002f15f
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x538]
mov qword [rsp + 0xf8], rax
lea rcx, [0x1000016c8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add rsp, 0x530
pop rbx
ret

Function at 0x10002fbd8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x10002fc25
cmp rcx, 0xffffffffffffffff
je 0x10002fc25
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10002fc1d
cmp dword [rcx + 0x3c], edx
jl 0x10002fc1d
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10002fc1d
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x10002fc25
mov rax, rdx
add rsp, 0x18
ret
Function at 0x100031578
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov rsi, rcx
cmp rcx, rdi
jne 0x1000315b6
call qword [sym.imp.msvcrt.dll__errno]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
mov dword [rax], 0x16
call fcn.10002f17c
jmp 0x1000316bc
mov eax, dword [rcx + 0x18]
test al, 0x83
je 0x1000316bc
test al, 0x40
jne 0x1000316bc
test al, 2
je 0x1000315d8
or eax, 0x20
mov dword [rcx + 0x18], eax
jmp 0x1000316bc
or eax, 1
mov dword [rcx + 0x18], eax
test eax, 0x10c
je 0x100031591
mov rbx, qword [rcx + 0x10]
mov qword [rcx], rbx
call qword [sym.imp.msvcrt.dll__fileno]
mov r8d, dword [rsi + 0x24]
mov ecx, eax
mov rdx, rbx
call qword [sym.imp.msvcrt.dll__read]
mov dword [rsi + 8], eax
cmp eax, edi
je 0x1000316ac
cmp eax, 0xffffffff
je 0x1000316ac
test byte [rsi + 0x18], 0x82
jne 0x10003167e
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__fileno]
cmp eax, 0xffffffff
je 0x100031668
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__fileno]
cmp eax, 0xfffffffe
je 0x100031668
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__fileno]
mov rbx, qword [sym.imp.msvcrt.dll___pioinfo]
mov rcx, rsi
movsxd rdi, eax
sar rdi, 5
call qword [sym.imp.msvcrt.dll__fileno]
mov r11d, eax
and r11d, 0x1f
imul r11, r11, 0x38
add r11, qword [rbx + rdi*8]
jmp 0x10003166f
mov r11, qword [sym.imp.msvcrt.dll___badioinfo]
mov al, byte [r11 + 8]
and al, 0x82
cmp al, 0x82
jne 0x10003167e
bts dword [rsi + 0x18], 0xd
cmp dword [rsi + 0x24], 0x200
jne 0x10003169b
test byte [rsi + 0x18], 8
je 0x10003169b
bt dword [rsi + 0x18], 0xa
jb 0x10003169b
mov dword [rsi + 0x24], 0x1000
mov rcx, qword [rsi]
dec dword [rsi + 8]
movzx eax, byte [rcx]
inc rcx
mov qword [rsi], rcx
jmp 0x1000316bf
neg eax
mov dword [rsi + 8], edi
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [rsi + 0x18], eax
or eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x100033254
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov rsi, rcx
cmp rcx, rdi
jne 0x100033292
call qword [sym.imp.msvcrt.dll__errno]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
mov dword [rax], 0x16
call fcn.10002f17c
jmp 0x1000333a3
mov eax, dword [rcx + 0x18]
test al, 0x83
je 0x1000333a3
test al, 0x40
jne 0x1000333a3
test al, 2
je 0x1000332b4
or eax, 0x20
mov dword [rcx + 0x18], eax
jmp 0x1000333a3
or eax, 1
mov dword [rcx + 0x18], eax
test eax, 0x10c
je 0x10003326d
mov rbx, qword [rcx + 0x10]
mov qword [rcx], rbx
call qword [sym.imp.msvcrt.dll__fileno]
mov r8d, dword [rsi + 0x24]
mov ecx, eax
mov rdx, rbx
call qword [sym.imp.msvcrt.dll__read]
mov dword [rsi + 8], eax
cmp eax, edi
je 0x100033393
cmp eax, 1
je 0x100033393
cmp eax, 0xffffffff
je 0x100033393
test byte [rsi + 0x18], 0x82
jne 0x100033363
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__fileno]
cmp eax, 0xffffffff
je 0x10003334d
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__fileno]
cmp eax, 0xfffffffe
je 0x10003334d
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__fileno]
mov rbx, qword [sym.imp.msvcrt.dll___pioinfo]
mov rcx, rsi
movsxd rdi, eax
sar rdi, 5
call qword [sym.imp.msvcrt.dll__fileno]
mov r11d, eax
and r11d, 0x1f
imul r11, r11, 0x38
add r11, qword [rbx + rdi*8]
jmp 0x100033354
mov r11, qword [sym.imp.msvcrt.dll___badioinfo]
mov al, byte [r11 + 8]
and al, 0x82
cmp al, 0x82
jne 0x100033363
bts dword [rsi + 0x18], 0xd
cmp dword [rsi + 0x24], 0x200
jne 0x100033380
test byte [rsi + 0x18], 8
je 0x100033380
bt dword [rsi + 0x18], 0xa
jb 0x100033380
mov dword [rsi + 0x24], 0x1000
mov rcx, qword [rsi]
add dword [rsi + 8], 0xfffffffe
movzx eax, word [rcx]
add rcx, 2
mov qword [rsi], rcx
jmp 0x1000333a8
neg eax
mov dword [rsi + 8], edi
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [rsi + 0x18], eax
mov eax, 0xffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140001bd0
Capabilities:
Encode data using xor

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x320
xor ecx, ecx
mov r8d, 0x104
lea rsi, [0x14002b020]
lea r9, [rsp + 0xe6]
lea rdi, [rsp + 0x78]
mov rdx, r9
mov qword [rsp + 0x58], r9
call qword [0x14003a0c8]
mov ecx, 0x29
lea rax, [rsp + 0x78]
mov dl, 0x37
rep movsb byte [rdi], byte [rsi]
mov r9, qword [rsp + 0x58]
mov rbx, rax
xor byte [rax], dl
inc edx
inc rax
cmp dl, 0x60
jne 0x140001c1a
lea rsi, [rsp + 0x1ea]
mov r8, rbx
mov edx, 0x136
mov rcx, rsi
call fcn.140001540
lea rdx, [rsp + 0x7c]
xor eax, eax
xor r9d, r9d
mov rdi, rdx
mov ecx, 0x19
lea rdx, [rsp + 0x60]
xor r8d, r8d
rep stosd dword [rdi], eax
mov rdi, rdx
mov ecx, 6
mov dword [rsp + 0x78], 0x68
rep stosd dword [rdi], eax
xor eax, eax
mov qword [rsp + 0x48], rdx
xor edx, edx
mov dword [rsp + 0x20], edx
mov rdx, rsi
mov dword [rsp + 0xb4], 1
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x8000000
call qword [0x14003a0d8]
test eax, eax
je 0x140001cbf
mov rcx, qword [rsp + 0x60]
call qword [0x14003a0e0]
mov rcx, qword [rsp + 0x68]
call qword [0x14003a0e0]
nop
add rsp, 0x320
pop rbx
pop rsi
pop rdi
ret

Function at 0x1400023f2
Capabilities:
Encode data using xor

Disassembly:
push rdi
sub rsp, 0xf0
xor eax, eax
mov r10, qword [0x14003a0d8]
lea r8, [rsp + 0x8c]
mov rdx, rcx
mov ecx, 0x13
mov dword [rsp + 0x88], 0x68
mov rdi, r8
lea r8, [rsp + 0x50]
mov dword [rsp + 0x84], 0x5234282a
rep stosd dword [rdi], eax
mov ecx, 6
mov rdi, r8
mov dword [rsp + 0xc4], 0x101
rep stosd dword [rdi], eax
mov qword [rsp + 0xd8], rdx
movabs rax, 0x515952526d650274
mov qword [rsp + 0x6c], rax
movabs rax, 0x2331373a111d3348
mov qword [rsp + 0x74], rax
movabs rax, 0x60292128167b7b2a
mov qword [rsp + 0x7c], rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0xe0], rdx
mov rcx, rax
mov qword [rsp + 0xe8], rdx
mov dl, 0x37
xor byte [rax], dl
inc edx
inc rax
cmp dl, 0x53
jne 0x140002497
lea rax, [rsp + 0x88]
xor edx, edx
mov qword [rsp + 0x48], r8
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor eax, eax
xor r8d, r8d
mov dword [rsp + 0x28], edx
mov rdx, rcx
xor ecx, ecx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x20], 1
call r10
test eax, eax
jne 0x1400024ec
mov ecx, 1
call qword [0x14003a0b8]
or edx, 0xffffffff
mov rcx, qword [rsp + 0x50]
call qword [0x14003a0d0]
mov rcx, qword [rsp + 0x50]
call qword [0x14003a0e0]
mov rcx, qword [rsp + 0x58]
call qword [0x14003a0e0]
nop
add rsp, 0xf0
pop rdi
ret

Function at 0x14000c750
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.140012e20
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.140012e20
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 0x14000c7c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14003a194]
mov rbx, rcx
test esi, esi
jle 0x14000c8f0
mov rax, qword [0x14003a198]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000c80b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000c895
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000c7f0
mov rcx, rbx
call fcn.14000d210
mov rdi, rax
test rax, rax
je 0x14000c912
mov rax, qword [0x14003a198]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000d350
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14003a198]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000c8f7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000c88e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000c8a0
add dword [0x14003a194], 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 [0x14003a198]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000c88e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000c750
nop dword [rax]
xor esi, esi
jmp 0x14000c818
mov rax, qword [0x14003a198]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000c750
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000c750
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000ce80
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14003a200]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14003a1e0]
test rbx, rbx
je 0x14000cedc
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 0x14000ced3
test rsi, rsi
je 0x14000ced3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000ceb8
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 0x14000d210
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x14000d290
Capabilities:
Parse pe header

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

Function at 0x14000d350
Capabilities:
Parse pe header

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

Function at 0x140013ee0
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 + 0x48], rdx
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x40], rax
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 + 0x7b], 0
mov qword [rsp + 0x83], 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 0x140013fe2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x140013fba
add rax, 1
cmp rax, 0x6b
je 0x140013fd7
cmp byte [rcx + rax], 0
jne 0x140013fb0
movsxd rdx, eax
cmp eax, 0x6a
je 0x140013fd7
add eax, 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 0x140013fcb