joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400069d0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x3e0]
sub rsp, 0x4e0
mov rax, qword [0x14002a040]
xor rax, rsp
mov qword [rbp + 0x3d0], rax
mov rsi, rdx
mov rbx, rcx
mov qword [rsp + 0x68], rcx
xor r14d, r14d
mov dword [rsp + 0x60], r14d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx], r14
mov qword [rcx + 8], r14
mov qword [rcx + 0x10], r14
mov dword [rsp + 0x60], 1
mov word [rbp - 0x40], r14w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp - 0x3e]
call fcn.1400195d0
mov dword [rsp + 0x74], 0x104
mov dword [rsp + 0x70], r14d
lea rax, [rbp - 0x68]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x74]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x74]
lea rdx, [rbp - 0x40]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x140006b81
mov edi, r14d
nop dword [rax + rax]
mov dword [rsp + 0x78], 0xff
lea rax, [rbp - 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x78]
lea r8, [rbp + 0x1d0]
mov edx, edi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140006b75
lea rdx, [rbp + 0x1d0]
lea rcx, [rbp - 0x60]
call fcn.140003ed0
nop
mov rax, qword [rbx + 8]
cmp rax, qword [rbx + 0x10]
je 0x140006b29
lea rdx, [rbp - 0x60]
mov rcx, rax
call fcn.140004010
add qword [rbx + 8], 0x20
jmp 0x140006b39
lea r8, [rbp - 0x60]
mov rdx, rax
mov rcx, rbx
call fcn.1400075e0
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x140006b75
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006b70
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006bab
call fcn.140008e24
inc edi
cmp edi, dword [rsp + 0x70]
jb 0x140006ac0
mov rax, rbx
mov rcx, qword [rbp + 0x3d0]
xor rcx, rsp
call fcn.140008b80
lea r11, [rsp + 0x4e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.14000f8f0
int3
Function at 0x140006bc0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x130
mov rax, qword [0x14002a040]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov r10, r8
mov rax, rdx
mov rdi, rcx
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], 1
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
xor ebp, ebp
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], 7
mov word [rcx], bp
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x40], 0xc8
mov dword [rsp + 0x44], 1
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x44]
xor r8d, r8d
mov rdx, r10
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rdi + 0x18]
cmp eax, 2
jne 0x140006c87
cmp rcx, 1
jb 0x140006c79
mov rax, rdi
cmp rcx, 7
jbe 0x140006c69
mov rax, qword [rdi]
mov qword [rdi + 0x10], 1
mov dword [rax], 0x30
jmp 0x140006cda
lea r9, [0x140024ab8]
mov edx, 1
jmp 0x140006cd1
lea rax, [rsp + 0x50]
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], 0
jne 0x140006c93
cmp rdx, rcx
ja 0x140006ccc
mov rsi, rdi
cmp rcx, 7
jbe 0x140006cae
mov rsi, qword [rdi]
mov qword [rdi + 0x10], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.140018f30
mov word [rbx + rsi], bp
jmp 0x140006cda
lea r9, [rsp + 0x50]
mov rcx, rdi
call fcn.140004600
nop
mov rax, rdi
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140008b80
mov rbx, qword [rsp + 0x168]
add rsp, 0x130
pop rdi
pop rsi
pop rbp
ret
Function at 0x140007270
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0xa0
movaps xmmword [rsp + 0x90], xmm6
mov rax, qword [0x14002a040]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea rdx, str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v4Full
lea rcx, [rsp + 0x60]
call fcn.140003ed0
nop
xor ebx, ebx
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 7
cmova rdx, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140007396
movdqa xmm0, xmmword [0x140024c20]
movdqu xmmword [rsp + 0x40], xmm0
movsd xmm0, qword [str.Release]
movsd qword [rsp + 0x30], xmm0
mov eax, dword [0x140024bf0]
mov dword [rsp + 0x38], eax
movzx eax, word [0x140024bf4]
mov word [rsp + 0x3c], ax
mov word [rsp + 0x3e], bx
mov dword [rsp + 0x5c], 4
mov dword [rsp + 0x58], ebx
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
cmove ebx, dword [rsp + 0x58]
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x140007396
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007391
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000748a
call fcn.140008e24
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, 0x80ea8
jb 0x1400073b3
movss xmm6, dword [0x140024c18]
jmp 0x140007422
cmp ebx, 0x70bf0
jb 0x1400073c5
movss xmm6, dword [0x140024c14]
jmp 0x140007422
cmp ebx, 0x709fc
jb 0x1400073d7
movss xmm6, dword [0x140024c10]
jmp 0x140007422
cmp ebx, 0x707fe
jb 0x1400073e9
movss xmm6, dword [0x140024c0c]
jmp 0x140007422
cmp ebx, 0x60632
jb 0x1400073fb
movss xmm6, dword [0x140024c08]
jmp 0x140007422
cmp ebx, 0x6040e
jb 0x14000740d
movss xmm6, dword [0x140024c04]
jmp 0x140007422
cmp ebx, 0x6004f
jb 0x14000741f
movss xmm6, dword [0x140024c00]
jmp 0x140007422
xorps xmm6, xmm6
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x140007460
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000745b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007484
call fcn.140008e24
movaps xmm0, xmm6
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140008b80
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa0
pop rbx
ret
call fcn.14000f8f0
nop
call fcn.14000f8f0
nop

Function at 0x140009830
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14000fad7
call fcn.14001039c
mov dword [rax], 0x16
call fcn.14000f8d0
xor eax, eax
jmp 0x14000fb65
mov rdx, r9
mov rcx, r8
call fcn.14000fa3c
mov rbx, rax
test rax, rax
je 0x14000fb62
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14000f968]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14000fb4f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140010310
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14000fb36
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14000fb45
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140011b14
jmp 0x14000fb62
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000fb5f
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14000fe90
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000fc8c
Function at 0x140015368
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140015398
xor eax, eax
jmp 0x14001545b
mov rbp, rbx
cmp word [rax], si
je 0x1400153bd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400153a4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400153a0
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140013c70
movsxd r14, eax
test eax, eax
jne 0x1400153fb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140015391
mov rcx, r14
call fcn.140011b50
mov rdi, rax
test rax, rax
jne 0x140015414
xor ecx, ecx
call fcn.140011b14
jmp 0x1400153f0
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140013c70
test eax, eax
jne 0x140015445
mov rcx, rdi
call fcn.140011b14
jmp 0x14001544f
xor ecx, ecx
call fcn.140011b14
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140018d40
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140018d68
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140018d68
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180003a80
Capabilities:
Check internet connectivity via wininet

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov rbp, rsp
sub rsp, 0x40
movdqa xmm1, xmmword [0x180012090]
mov dl, 0x1c
movd ecx, xmm1
mov r8b, 0x15
movdqu xmmword [rbp - 0x20], xmm1
mov byte [rbp - 0xa], 0
mov r9b, 0x5e
xor byte [rbp - 0x1e], cl
movdqa xmm0, xmm1
xor byte [rbp - 0x1d], cl
xor dl, cl
xor byte [rbp - 0x1c], cl
xor r8b, cl
xor byte [rbp - 0x1b], cl
xor r9b, cl
xor byte [rbp - 0x1a], cl
mov r10b, 0x13
xor byte [rbp - 0x19], cl
xor r10b, cl
xor byte [rbp - 0x18], cl
mov r11b, 0x1f
xor byte [rbp - 0x17], cl
xor r11b, cl
xor byte [rbp - 0x16], cl
mov bl, 0x1d
xor byte [rbp - 0x15], cl
xor bl, cl
xor byte [rbp - 0x14], cl
xor byte [rbp - 0x13], cl
xor byte [rbp - 0x12], cl
xor byte [rbp - 0x11], cl
psrldq xmm0, 1
movd eax, xmm0
mov byte [rbp - 0x10], dl
mov edx, 1
mov byte [rbp - 0xf], r8b
xor r8d, r8d
xor al, cl
mov byte [rbp - 0xe], r9b
lea rcx, [rbp - 0x1f]
mov byte [rbp - 0x1f], al
mov byte [rbp - 0xd], r10b
mov byte [rbp - 0xc], r11b
mov byte [rbp - 0xb], bl
call qword [sym.imp.WININET.dll_InternetCheckConnectionA]
test eax, eax
jne 0x180003c01
movdqa xmm1, xmmword [0x180012100]
mov r8b, 0x57
movd ecx, xmm1
movzx r9d, r8b
movdqu xmmword [rbp - 0x20], xmm1
mov qword [rsp + 0x50], rsi
mov dl, 0x5a
xor byte [rbp - 0x1e], cl
xor dl, cl
xor byte [rbp - 0x1d], cl
xor r9b, cl
xor byte [rbp - 0x1c], cl
movdqa xmm0, xmm1
xor byte [rbp - 0x1b], cl
mov r10b, 0x53
xor byte [rbp - 0x1a], cl
xor r10b, cl
xor byte [rbp - 0x19], cl
mov r11b, 0x16
xor byte [rbp - 0x18], cl
xor r11b, cl
xor byte [rbp - 0x17], cl
mov bl, 0x5b
xor byte [rbp - 0x16], cl
xor bl, cl
xor byte [rbp - 0x15], cl
mov sil, 0x55
xor byte [rbp - 0x14], cl
xor sil, cl
xor byte [rbp - 0x13], cl
xor byte [rbp - 0x12], cl
xor byte [rbp - 0x11], cl
psrldq xmm0, 1
movd eax, xmm0
mov qword [rsp + 0x58], rdi
movzx edi, r8b
xor r8b, cl
mov byte [rbp - 0x10], dl
xor al, cl
mov byte [rbp - 0xf], r8b
xor dil, cl
mov byte [rbp - 0x1f], al
lea rcx, [rbp - 0x1f]
mov byte [rbp - 0xe], r9b
xor r8d, r8d
mov byte [rbp - 0xd], r10b
mov edx, 1
mov byte [rbp - 0xc], r11b
mov byte [rbp - 0xb], bl
mov byte [rbp - 0xa], dil
mov byte [rbp - 9], sil
mov byte [rbp - 8], 0
call qword [sym.imp.WININET.dll_InternetCheckConnectionA]
mov rdi, qword [rsp + 0x58]
test eax, eax
mov rsi, qword [rsp + 0x50]
setne al
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rbp
ret
mov rbx, qword [rsp + 0x60]
mov al, 1
add rsp, 0x40
pop rbp
ret
Function at 0x18000c910
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x18000c938
xor eax, eax
lea r8, [0x18000b660]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret

Function at 0x18000ce30
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 0x18000ce58
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 0x18000ce7e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x18000ce80
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x18000ced9
test ecx, ecx
jle 0x18000ceb9
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 0x18000ced9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x18000ced9
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
Function at 0x18000cf00
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x18000cf22
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x18000cf38
add rsp, 0x30
pop r14
pop rsi
pop rbp
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 + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x18000cf54
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18000cf56
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18000cf92
mov qword [rsp + 0x20], 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 + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x18000d02e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x18000cfcd
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 0x18000d00e
nop word [rax + 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 0x18000d02e
cmp rbx, rax
ja 0x18000cfe0
test rbx, rbx
je 0x18000d02e
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
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x18000d490
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x180017040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x18000d4bd
xor eax, eax
jmp 0x18000d629
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x18000d4f7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x18000d4f7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x18000d629
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x18000d61c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18000d53a
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 0x18000d565
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
cmovne ecx, edi
mov eax, ecx
jmp 0x18000d621
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 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 0x18000d5d4
sub eax, 1
je 0x18000d5d4
cmp eax, 2
jne 0x18000d61c
movsx ecx, byte [rsp + 0x50]
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
cmovne ecx, edi
mov eax, ecx
jmp 0x18000d621
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x18000d602
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x18000d61c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x18000d621
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.18000ec70
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x18000da40
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x180017040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x18000db13
cmp byte [rcx + 0x71], 0
je 0x18000db13
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x18000db0f
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 0x18000dad4
sub eax, 1
je 0x18000dad8
cmp eax, 2
jne 0x18000db0f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18000ec70
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x18000db06
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 0x18000db0f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x18000dabc
xor al, al
jmp 0x18000dabc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18000ec70
add rsp, 0x60
pop rbx
ret
Function at 0x1400039c0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x140003a21
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x1400039e0
mov ecx, dword [r9]
jmp 0x140003b0b
cmp ecx, 0x4e0
jb 0x140003b0b
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140003a40
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140003a90
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x1400044e0
Capabilities:
Parse pe header

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