joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000efa0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
cmp byte [rcx + 0x41], 0
mov rsi, rdx
mov edi, r8d
mov rbx, rcx
je 0x14000f0a4
mov rcx, qword [rcx + 0x50]
mov qword [rsp + 0x48], rbp
mov rax, rcx
test rcx, rcx
je 0x14000efe7
cmp dword [rbx + 0x58], edi
jae 0x14000efe7
call fcn.14000f188
mov qword [rbx + 0x50], 0
jmp 0x14000efec
test rax, rax
jne 0x14000effb
lea ecx, [rdi + rdi]
call fcn.14000f2ec
mov qword [rbx + 0x50], rax
mov dword [rbx + 0x58], edi
mov r8, rdi
mov rdx, rsi
mov rcx, rax
mov rbp, rdi
call sub.VCRUNTIME140.dll_memcpy
test edi, edi
je 0x14000f09b
xor r11d, r11d
lea rsi, [0x140011e70]
nop
mov rax, qword [rbx + 0x50]
lea r11, [r11 + 1]
mov r8d, dword [rbx + 0x4c]
mov edx, dword [rbx + 0x44]
mov r9d, r8d
mov ecx, edx
and r9d, 0xfffd
movsx r10, byte [r11 + rax - 1]
or r9d, 2
xor rcx, r10
shr edx, 8
movzx eax, cl
movzx ecx, r8b
shr r8d, 8
xor edx, dword [rsi + rax*4]
movzx eax, dl
add eax, dword [rbx + 0x48]
imul eax, eax, 0x8088405
mov dword [rbx + 0x44], edx
inc eax
mov dword [rbx + 0x48], eax
shr rax, 0x18
xor rcx, rax
xor r8d, dword [rsi + rcx*4]
mov ecx, r9d
xor ecx, 1
mov dword [rbx + 0x4c], r8d
mov rax, qword [rbx + 0x50]
imul ecx, r9d
shr ecx, 8
xor cl, r10b
mov byte [r11 + rax - 1], cl
sub rbp, 1
jne 0x14000f020
mov rsi, qword [rbx + 0x50]
mov rbp, qword [rsp + 0x48]
mov rdx, qword [rbx + 0x30]
test rdx, rdx
je 0x14000f0f4
mov ecx, dword [rbx + 0x38]
lea eax, [rcx + rdi]
cmp eax, dword [rbx + 0x3c]
jb 0x14000f0d1
mov dword [rbx + 0x24], 0x30000
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
add rcx, rdx
mov r8, rdi
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
add dword [rbx + 0x38], edi
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14000f12b
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov dword [rbx + 0x24], 0x1000000
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1411a3058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1411a31df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1411a3089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411a306f
add dl, dl
jne 0x1411a3096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411a30f6
xor eax, eax
add dl, dl
jne 0x1411a30a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411a31ad
add dl, dl
jne 0x1411a30b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411a30c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411a30d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411a30dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1411a30ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1411a307e
mov eax, 1
add dl, dl
jne 0x1411a3106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411a3113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1411a30fb
sub eax, ebx
mov ebx, 1
jne 0x1411a314c
mov ecx, 1
add dl, dl
jne 0x1411a312e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1411a313b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1411a3123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1411a307e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1411a3168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1411a3175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1411a315d
cmp eax, 0x7d00
jae 0x1411a319b
cmp eax, 0x500
jb 0x1411a3196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1411a307e
cmp eax, 0x7f
ja 0x1411a319e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1411a307e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1411a31d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1411a307e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002090
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
xor edx, edx
mov dword [rsp + 0x20], 0x238
mov rdi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x20]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
jne 0x140002105
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x140002105
nop dword [rax]
mov rdx, rdi
lea rcx, [rsp + 0x4c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov rcx, rbx
test eax, eax
je 0x140002121
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x1400020e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
Function at 0x140002a70
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x140002a91
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140002abe
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140002ac0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140002b19
test ecx, ecx
jle 0x140002af9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140002b19
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002b19
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
Function at 0x140002b40
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140002b71
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140002b88
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140002bab
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002bad
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002be9
mov qword [rsp + 0x38], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140002c7e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140002c24
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140002c5e
nop dword [rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140002c7e
cmp rbx, rax
ja 0x140002c30
test rbx, rbx
je 0x140002c7e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
Function at 0x1400030c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400030e4
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
mov rax, qword [rcx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x140003127
mov rdx, qword [rbx + 0x58]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x140003127
lea eax, [r8 - 1]
mov dword [rdx], eax
mov rcx, qword [rbx + 0x40]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
mov eax, edi
mov byte [rdx], dil
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0x80], rsi
je 0x140003258
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000316a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140003195
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmove edi, ecx
mov eax, edi
jmp 0x14000325d
lea rax, [rsp + 0x90]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000320a
sub eax, 1
je 0x14000320a
cmp eax, 2
jne 0x140003258
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmove edi, ecx
mov eax, edi
jmp 0x14000325d
mov rsi, qword [rsp + 0x90]
lea rax, [rsp + 0x48]
sub rsi, rax
je 0x14000323b
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x48]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140003258
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x98], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14000325d
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x140003640
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140003709
cmp byte [rcx + 0x71], 0
je 0x140003709
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x68], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400036fc
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x60]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400036b8
sub eax, 1
je 0x1400036bc
cmp eax, 2
jne 0x1400036fc
mov rdi, qword [rsp + 0x68]
mov al, 1
mov byte [rbx + 0x71], 0
add rsp, 0x50
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x1400036ea
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400036fc
cmp byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x68]
sete al
add rsp, 0x50
pop rbx
ret
mov rdi, qword [rsp + 0x68]
xor al, al
add rsp, 0x50
pop rbx
ret
mov al, 1
add rsp, 0x50
pop rbx
ret

Function at 0x14000428c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400042d6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400042d6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400042d6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400042d6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400042d6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400042d8
xor al, al
add rsp, 0x28
ret
Function at 0x380b01cd0
Capabilities:
Access peb ldr_data

Disassembly:
push rdi
push rsi
mov rsi, rcx
push rbx
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rdi, qword [rax + 0x20]
mov rbx, rdi
mov rcx, qword [rbx + 0x50]
call fcn.380b01c95
mov eax, eax
cmp rax, rsi
jne 0x380b01d04
mov rax, qword [rbx + 0x20]
jmp 0x380b01d15
mov rbx, qword [rbx]
test rbx, rbx
je 0x380b01d11
cmp rdi, rbx
jne 0x380b01cee
or rax, 0xffffffffffffffff
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x380b01d1d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
mov r15, rdx
push r14
push r13
push r12
push rbp
xor ebp, ebp
push rdi
push rsi
push rbx
mov rbx, rcx
sub rsp, 0x28
movsxd rax, dword [rcx + 0x3c]
mov edi, dword [rax + rcx + 0x88]
add rdi, rcx
mov r14d, dword [rdi + 0x20]
mov r12d, dword [rdi + 0x1c]
mov r13d, dword [rdi + 0x24]
add r14, rcx
cmp ebp, dword [rdi + 0x18]
jae 0x380b01d88
mov esi, ebp
xor edx, edx
mov ecx, dword [r14 + rsi*4]
add rcx, rbx
call fcn.380b01c50
cmp rax, r15
jne 0x380b01d84
add rsi, rsi
add rsi, rbx
movzx eax, word [rsi + r13]
lea rax, [rbx + rax*4]
mov eax, dword [rax + r12]
add rax, rbx
jmp 0x380b01d88
inc ebp
jmp 0x380b01d52
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x380b023b0
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.380b02fc0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.fwurHBbbEnQhFBCEmqPNoxlQrS_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.380b02fc0
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 0x380b02420
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x380b08064]
mov rbx, rcx
test esi, esi
jle 0x380b02550
mov rax, qword [0x380b08068]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x380b0246b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x380b024f5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x380b02450
mov rcx, rbx
call fcn.380b02c80
mov rdi, rax
test rax, rax
je 0x380b02572
mov rax, qword [0x380b08068]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.380b02dc0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x380b08068]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x380b02557
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x380b024ee
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x380b02500
add dword [0x380b08064], 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 [0x380b08068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x380b024ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.gblTyodKcSCZofJvKKGALccRsNMMHaigQoFBOl
mov edx, eax
call fcn.380b023b0
nop dword [rax]
xor esi, esi
jmp 0x380b02478
mov rax, qword [0x380b08068]
mov edx, dword [rdi + 8]
lea rcx, str.PQoxEQirDEdYZArvyBySMjCxbVWexZlabcemTJqMNFMGSkrV
mov r8, qword [rax + rbx + 0x18]
call fcn.380b023b0
mov rdx, rbx
lea rcx, str.ZlcNqOZnVDShXQYRzGIJYYyZrzUbKOT
call fcn.380b023b0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x380b028f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x380b080a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x380b08080]
test rbx, rbx
je 0x380b0294c
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 rsi, rsi
je 0x380b02943
test eax, eax
jne 0x380b02943
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x380b02928
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 0x180014370
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x40
mov rax, qword [0x1800690e0]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor r14d, r14d
mov rbp, r8
mov esi, edx
mov rdi, rcx
cmp rcx, 0x1000
jb 0x180014550
movabs r12, 0xffff800000000000
test r12, rcx
jne 0x180014550
cmp r8, 0x1000
jb 0x180014550
test r12, r8
jne 0x180014550
cmp dword [r8 + 4], 0x10
ja 0x180014549
cmp dword [r8 + 8], 0x3f
ja 0x180014549
mov rax, qword [rcx + 0x60]
mov qword [rsp + 0x78], rbx
test rax, rax
je 0x1800143fe
mov rcx, qword [rax + 0x28]
mov rax, qword [rax + 0x40]
call qword [case.0x18000a7ec.0]
mov rbx, qword [rdi + 0x10]
cmp esi, 0xffffffff
jne 0x18001440d
mov rbx, qword [rdi + 0x18]
jmp 0x180014421
test rbx, rbx
je 0x180014421
test esi, esi
je 0x180014421
mov rbx, qword [rbx + 8]
dec esi
test rbx, rbx
jne 0x180014412
cmp rbx, 0x1000
jb 0x180014522
test r12, rbx
jne 0x180014522
cmp rbx, qword [rdi + 0x18]
jne 0x1800144c9
mov eax, dword [rdi + 0x38]
cmp dword [rbp], eax
jne 0x18001445d
mov eax, dword [rdi + 0x3c]
cmp dword [rbp + 4], eax
jne 0x18001445d
mov eax, dword [rdi + 0x40]
cmp dword [rbp + 8], eax
je 0x180014528
mov rax, qword [rbx + 0x30]
mov rdx, rbp
mov rcx, qword [rbx + 0x20]
mov rax, qword [rax + 0x88]
call qword [case.0x18000a7ec.0]
mov rcx, qword [rbx + 0x30]
lea rdx, [rdi + 0x38]
mov r14d, eax
mov rax, qword [rcx + 0x80]
mov rcx, qword [rbx + 0x20]
call qword [case.0x18000a7ec.0]
test eax, eax
jns 0x1800144a9
mov qword [rdi + 0x38], 0
mov dword [rdi + 0x40], 0
jmp 0x180014528
mov ecx, 0xff
cmp dword [rdi + 0x3c], ecx
cmovbe ecx, dword [rdi + 0x3c]
mov dword [rdi + 0x3c], ecx
mov ecx, 0x3f
cmp dword [rdi + 0x40], ecx
cmovbe ecx, dword [rdi + 0x40]
mov dword [rdi + 0x40], ecx
jmp 0x180014528
mov rax, qword [rbx + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, qword [rbx + 0x20]
mov rax, qword [rax + 0x80]
call qword [case.0x18000a7ec.0]
mov r14d, eax
test eax, eax
js 0x180014505
mov eax, dword [rsp + 0x20]
cmp dword [rbp], eax
jne 0x180014505
mov eax, dword [rsp + 0x24]
cmp dword [rbp + 4], eax
jne 0x180014505
mov eax, dword [rsp + 0x28]
cmp dword [rbp + 8], eax
je 0x180014528
mov rax, qword [rbx + 0x30]
mov rdx, rbp
mov rcx, qword [rbx + 0x20]
mov rax, qword [rax + 0x88]
call qword [case.0x18000a7ec.0]
mov r14d, eax
jmp 0x180014528
mov r14d, 0xfffff37c
mov rax, qword [rdi + 0x60]
mov rbx, qword [rsp + 0x78]
test rax, rax
je 0x180014544
mov rcx, qword [rax + 0x28]
mov rax, qword [rax + 0x48]
call qword [case.0x18000a7ec.0]
mov eax, r14d
jmp 0x180014555
mov eax, 0xfffffffe
jmp 0x180014555
mov eax, 0xfffffffa
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180050510
add rsp, 0x40
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18004d6c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movsxd rdi, edx
movzx esi, r9b
mov rbx, r8
mov rbp, rcx
cmp edi, 0xa
ja case.0x18004d6f8.8
lea rcx, [0x180000000]
mov r10d, dword [rcx + rdi*4 + 0x4d76c]
add r10, rcx
jmp r10
movzx eax, byte [r8]
test al, al
je 0x18004d71a
cmp al, 0x20
je 0x18004d70f
cmp al, 9
je 0x18004d70f
cmp al, 0x7c
jne 0x18004d71a
movzx eax, byte [rbx + 1]
inc rbx
test al, al
jne 0x18004d703
mov rcx, rbx
call fcn.18004c480
test eax, eax
js 0x18004d757
xor r9d, r9d
mov r8, rbx
mov edx, edi
mov rcx, rbp
call fcn.18004c1e0
test eax, eax
js 0x18004d74d
xor sil, 1
movzx edx, sil
add dx, 5
mov word [rbp + rdi*4 + 8], dx
jmp 0x18004d757
cmp eax, 0xffffffc8
jne 0x18004d757
mov eax, 0xfffffffe
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800503d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
test rcx, rcx
lea rdx, [0x18005255e]
movabs rax, 0xcbf29ce484222325
cmovne rdx, rcx
movzx ecx, byte [rdx]
test cl, cl
je 0x180050415
movabs r8, 0x100000001b3
nop dword [rax]
imul rax, r8
movzx ecx, cl
lea rdx, [rdx + 1]
xor rax, rcx
movzx ecx, byte [rdx]
test cl, cl
jne 0x180050400
ret