joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400366a0
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x48
mov rax, qword [0x14008a040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14008d2c0]
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x50], rbx
mov rbx, qword [0x14008ae30]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x28]
sub eax, dword [rsp + 0x20]
movd xmm1, eax
mov eax, dword [rsp + 0x2c]
sub eax, dword [rsp + 0x24]
cmp byte [0x14008a129], 0
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x10], xmm1
movss dword [rbx + 0x14], xmm0
je 0x14003675e
mov qword [rsp + 0x40], rdi
mov rdi, qword [0x14008ae30]
mov ecx, dword [rdi + 0x161c]
test ecx, ecx
jns 0x140036734
mov eax, ecx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, ecx
lea rcx, [rdi + 0x1618]
test eax, eax
cmovg edx, eax
call fcn.140023d30
xor r9d, r9d
mov dword [rdi + 0x1618], 0
lea r8, [0x140036570]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_EnumDisplayMonitors]
mov rdi, qword [rsp + 0x40]
mov byte [0x14008a129], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rsp + 0x30]
xorps xmm1, xmm1
mov rax, rcx
xorps xmm0, xmm0
sub rax, qword [0x14008d2c8]
cvtsi2ss xmm0, qword [0x14008d2d0]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rbx + 0x18], xmm1
mov qword [0x14008d2c8], rcx
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x10
and al, 1
mov byte [rbx + 0x13c], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x12
and al, 1
mov byte [rbx + 0x13d], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [rbx + 0x13f], 0
mov byte [rbx + 0x13e], al
call fcn.1400360b0
cmp byte [rbx + 0xd0], 0
mov rbx, qword [rsp + 0x50]
je 0x1400367ff
mov eax, 0xffffffff
jmp 0x14003680c
mov rax, qword [0x14008ae30]
mov eax, dword [rax + 0x1f80]
cmp dword [0x14008a2dc], eax
je 0x14003681f
mov dword [0x14008a2dc], eax
call fcn.140035f30
call fcn.1400362c0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400735e0
add rsp, 0x48
ret
Function at 0x14004f040
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
mov ecx, 0x53
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x14004f071
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x14004f071
cmp byte [0x14008aecd], 1
je 0x14004f0f9
mov ecx, 0x53
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x14004f08e
cmp byte [0x14008aecd], 1
je 0x14004f11f
mov ecx, 0x41
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x14004f0b7
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x14004f0b7
cmp byte [0x14008aecd], 1
je 0x14004f0f9
mov ecx, 0x41
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x14004f0d0
cmp byte [0x14008aecd], 1
je 0x14004f11f
mov ecx, 0x44
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x14004f106
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x14004f106
cmp byte [0x14008aecd], 1
jne 0x14004f106
movss xmm0, dword [0x14007f4f8]
add rsp, 0x28
ret
mov ecx, 0x44
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x14004f12c
cmp byte [0x14008aecd], 1
jne 0x14004f12c
movss xmm0, dword [0x14007f76c]
add rsp, 0x28
ret
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x14004f152
cmp byte [0x14008aecd], 1
jne 0x14004f152
movss xmm0, dword [0x14007f4f4]
add rsp, 0x28
ret
movss xmm0, dword [0x14007f668]
add rsp, 0x28
ret

Function at 0x1400500b0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov rax, rsp
push rbp
push r12
push r14
push r15
sub rsp, 0x58
xor ecx, ecx
movaps xmmword [rax - 0x48], xmm6
cvttsd2si ebp, xmm1
mov r14d, r9d
mov dword [rsp + 0x80], ecx
xor r9d, r9d
mov r12d, 1
mov r15d, r8d
movaps xmm6, xmm0
cmp ebp, r12d
jl 0x140050190
mov qword [rax + 0x18], rbx
mov qword [rax - 0x28], rsi
mov qword [rax - 0x30], rdi
mov qword [rax - 0x38], r13
mov r13d, r14d
mov dword [rsp + 0x88], r8d
nop word [rax + rax]
mov eax, r15d
mov qword [rsp + 0x20], 0
cdq
idiv ebp
mov esi, eax
mov eax, r14d
cdq
idiv ebp
mov edi, eax
mov eax, ebp
imul eax, r12d
mov r8d, edi
sub r8d, r9d
xor r9d, r9d
cdq
idiv ebp
mov edx, esi
sub edx, ecx
mov ebx, eax
mov ecx, 1
call qword [sym.imp.USER32.dll_mouse_event]
mov ecx, ebx
sub ecx, dword [rsp + 0x80]
call fcn.1400501b0
add r15d, dword [rsp + 0x88]
inc r12d
add r14d, r13d
mov dword [rsp + 0x80], ebx
mov ecx, esi
mov r9d, edi
cmp r12d, ebp
jle 0x140050110
mov r13, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x90]
cvttsd2si ecx, xmm6
sub ecx, ebp
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x58
pop r15
pop r14
pop r12
pop rbp
jmp fcn.1400501b0
Function at 0x1400501b0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14008a040]
xor rax, rsp
mov qword [rsp + 0x30], rax
movsxd rdi, ecx
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
movabs rax, 0x20c49ba5e353f7cf
lea rcx, [rsp + 0x20]
imul qword [rsp + 0x28]
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [rsp + 0x28], rdx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x20]
cqo
mov qword [rsp + 0x20], 0
idiv qword [rsp + 0x28]
add rdi, rax
test rdi, rdi
jle 0x140050242
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x20]
cqo
idiv qword [rsp + 0x28]
mov qword [rsp + 0x20], rax
cmp rax, rdi
jl 0x140050221
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400735e0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140054bc0
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 qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov rax, qword gs:[0x60]
mov rsi, rcx
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop
mov r10, qword [rax + 0x30]
movsxd rdx, dword [r10 + 0x3c]
mov ebx, dword [rdx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140054c57
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140054c57
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 0x140054c52
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x140054c30
cmp r8d, 0x3285501
je 0x140054c5c
test r9d, r9d
jne 0x140054c10
mov rax, qword [rax]
jmp 0x140054be0
mov ecx, dword [rbx + 0x24]
mov r8d, 0x3000
add rcx, r10
movzx edx, word [rcx + r9*2]
mov r9d, 4
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
mov rdx, rsi
add rax, r10
xor ecx, ecx
mov rbx, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
pop rdi
jmp rax

Function at 0x140054ca0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov rax, qword gs:[0x60]
mov rsi, rcx
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop
mov r10, qword [rax + 0x30]
movsxd rdx, dword [r10 + 0x3c]
mov ebx, dword [rdx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140054d37
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140054d37
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 0x140054d32
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x140054d10
cmp r8d, 0x3a9acc72
je 0x140054d3c
test r9d, r9d
jne 0x140054cf0
mov rax, qword [rax]
jmp 0x140054cc0
mov ecx, dword [rbx + 0x24]
mov r8d, 0x8000
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
xor edx, edx
add rax, r10
mov rcx, rsi
mov rbx, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
pop rdi
jmp rax
Function at 0x1400592a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
movabs rax, 0x6c948b2581e1b8bb
lea rsi, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9, rcx
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x30], rax
movabs rax, 0xd6a94cfaa8267091
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x38], rax
movabs rax, 0x15e6ff4bf48edb99
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x40], rax
movabs rax, 0xd68b76d8cd421fd2
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
cmp byte [rcx], 0
movdqa xmm0, xmmword [rsp + 0x30]
mov qword [rsp + 0x48], rax
xorps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x30], xmm0
je 0x14005945f
mov rbx, qword [rsp + 0x30]
nop word [rax + rax]
mov rdi, r9
mov r11, rsi
movzx eax, bl
nop dword [rax]
movzx r8d, al
lea r11, [r11 + 1]
movzx eax, byte [rdi]
inc rdi
lea ecx, [r8 + 0x20]
movzx r10d, cl
lea edx, [r8 - 0x41]
cmp dl, 0x19
lea ecx, [rax - 0x41]
cmova r10d, r8d
cmp cl, 0x19
ja 0x14005937b
add al, 0x20
cmp al, r10b
jne 0x140059452
movzx eax, byte [r11]
test al, al
jne 0x140059350
xor esi, esi
lea rax, [rsp + 0x30]
mov ecx, esi
test bl, bl
je 0x1400593ab
nop dword [rax]
inc ecx
lea rax, [rax + 1]
cmp byte [rax], sil
jne 0x1400593a0
movsxd rax, ecx
sub rdi, rax
je 0x14005945f
lea rax, [rsp + 0x30]
mov ecx, esi
test bl, bl
je 0x1400593cd
inc ecx
lea rax, [rax + 1]
cmp byte [rax], sil
jne 0x1400593c2
movsxd rbx, ecx
add rbx, rdi
mov rdi, rsi
mov rcx, rbx
movzx edx, byte [rbx]
test dl, dl
je 0x14005945f
cmp dl, 0x22
mov rax, rcx
movzx edx, byte [rcx + 1]
cmovne rax, rdi
inc rcx
mov rdi, rax
test dl, dl
jne 0x1400593e0
test rax, rax
je 0x14005945f
sub rdi, rbx
mov qword [rsp + 0x68], r14
lea rcx, [rdi + 1]
call fcn.140073c24
mov r14, rax
test rdi, rdi
je 0x140059487
mov rdx, rax
sub rdx, rbx
nop dword [rax]
movzx ecx, byte [rbx]
test cl, cl
je 0x140059471
mov byte [rdx + rbx], cl
inc rsi
inc rbx
cmp rsi, rdi
jb 0x140059420
mov byte [r14 + rdi], 0
mov rax, r14
mov r14, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
inc r9
cmp byte [r9], 0
jne 0x140059340
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
cmp rsi, rdi
jae 0x140059487
mov r8, rdi
lea rcx, [rsi + rax]
sub r8, rsi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rbx, qword [rsp + 0x70]
mov rax, r14
mov rsi, qword [rsp + 0x78]
mov byte [r14 + rdi], 0
mov r14, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140070d40
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 0x140070d68
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 0x140070d8e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140070d90
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140070de9
test ecx, ecx
jle 0x140070dc9
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 0x140070de9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140070de9
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 0x140070e10
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 0x140070e32
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140070e48
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 0x140070e64
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140070e66
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140070ea2
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 0x140070f3e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140070edd
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 0x140070f1e
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 0x140070f3e
cmp rbx, rax
ja 0x140070ef0
test rbx, rbx
je 0x140070f3e
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 0x1400713a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14008a040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400713cd
xor eax, eax
jmp 0x140071539
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140071407
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140071407
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 0x140071539
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14007152c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14007144a
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 0x140071475
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 0x140071531
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 0x1400714e4
sub eax, 1
je 0x1400714e4
cmp eax, 2
jne 0x14007152c
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 0x140071531
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140071512
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 0x14007152c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140071531
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400735e0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140071b90
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14008a040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140071c63
cmp byte [rcx + 0x71], 0
je 0x140071c63
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140071c5f
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 0x140071c24
sub eax, 1
je 0x140071c28
cmp eax, 2
jne 0x140071c5f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400735e0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140071c56
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 0x140071c5f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140071c0c
xor al, al
jmp 0x140071c0c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400735e0
add rsp, 0x60
pop rbx
ret
Function at 0x1400734a0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push rdi
sub rsp, 0xe8
mov rax, qword [0x14008a040]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov al, 0x96
lea rdi, [rsp + 0x30]
xor ecx, ecx
rep stosb byte [rdi], al
lea rax, [r11 + 0x10]
mov qword [rsp + 0x20], rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
nop word [rax + rax]
mov r9, qword [rax + 0x30]
movsxd rcx, dword [r9 + 0x3c]
mov r11d, dword [rcx + r9 + 0x88]
add r11, r9
cmp r11, r9
je 0x140073574
mov r8d, dword [r11 + 0x18]
test r8d, r8d
je 0x140073574
mov ebx, dword [r11 + 0x20]
nop word [rax + rax]
dec r8d
mov edi, 0x811c9dc5
lea rcx, [rbx + r8*4]
mov ecx, dword [rcx + r9]
add rcx, r9
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x14007356f
nop dword [rax]
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, edi
imul edi, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x140073550
cmp edi, 0xd4c539c5
je 0x140073579
test r8d, r8d
jne 0x140073530
mov rax, qword [rax]
jmp 0x140073500
mov ecx, dword [r11 + 0x24]
add rcx, r9
movzx edx, word [rcx + r8*2]
mov ecx, dword [r11 + 0x1c]
mov r8, qword [rsp + 0x20]
add rcx, r9
mov eax, dword [rcx + rdx*4]
lea rcx, [rsp + 0x30]
mov rdx, qword [rsp + 0x100]
add rax, r9
call rax
lea rax, [rsp + 0x30]
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1400735e0
add rsp, 0xe8
pop rdi
pop rbx
ret

Function at 0x140074344
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400cfc40]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400cfc50]
mov dword [rax], 1
mov rax, qword [0x1400cfc60]
mov dword [rax], 1
mov rax, qword [0x1400cfbf0]
cmp word [rax], 0x5a4d
jne 0x14000105e
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c8
mov rax, qword [0x1400cfc30]
mov dword [0x1400e200c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b8
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x1400cfd10]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1400cfcf0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x1400cfba0]
cmp dword [rax], 1
je 0x140001100
xor eax, eax
add rsp, 0x20
pop rbp
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x14000107b
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001118
cmp dx, 0x20b
jne 0x14000105e
cmp dword [rax + 0x84], 0xe
jbe 0x14000105e
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105e
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x20
pop rbp
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105e
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105e
Function at 0x140004360
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
aeskeygenassist xmm0, xmmword [rdx], 2
movdqa xmmword [rcx], xmm0
ret