joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000bda0
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 0x14000bdc8
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 0x14000bdee
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000bdf0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14000be49
test ecx, ecx
jle 0x14000be29
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 0x14000be49
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000be49
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 0x14000be70
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 0x14000be92
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x14000bea8
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 0x14000bec4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000bec6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000bf02
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 0x14000bf9e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000bf3d
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 0x14000bf7e
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 0x14000bf9e
cmp rbx, rax
ja 0x14000bf50
test rbx, rbx
je 0x14000bf9e
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 0x14000c3d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14008a190]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000c3fd
xor eax, eax
jmp 0x14000c569
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000c437
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14000c437
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 0x14000c569
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000c55c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000c47a
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 0x14000c4a5
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 0x14000c561
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 0x14000c514
sub eax, 1
je 0x14000c514
cmp eax, 2
jne 0x14000c55c
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 0x14000c561
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14000c542
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 0x14000c55c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14000c561
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140047580
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14000ec80
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14008a190]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000ed53
cmp byte [rcx + 0x71], 0
je 0x14000ed53
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000ed4f
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 0x14000ed14
sub eax, 1
je 0x14000ed18
cmp eax, 2
jne 0x14000ed4f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140047580
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000ed46
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 0x14000ed4f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000ecfc
xor al, al
jmp 0x14000ecfc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140047580
add rsp, 0x60
pop rbx
ret

Function at 0x14003b690
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x14008a190]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, r8
mov rdi, rdx
mov ecx, dword [0x1400900a8]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x14008efe0], ecx
jg 0x14003b772
mov eax, ebx
cmp rbx, rax
jne 0x14003b734
xor ecx, ecx
mov eax, ecx
test rbx, rbx
setne al
test ebx, ebx
setne cl
cmp eax, ecx
jne 0x14003b734
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
mov rcx, qword [0x14008efd8]
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x14003b7b5
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140047580
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
mov ecx, 0x5b6
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.GenerateBlock_size
lea rcx, [rsp + 0x20]
call fcn.14000dc90
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.14003b2a0
lea rdx, [0x140086350]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [0x14008efe0]
call fcn.140047650
cmp dword [0x14008efe0], 0xffffffff
jne 0x14003b6dc
lea rcx, [0x14008efd8]
call fcn.14003b190
lea rcx, [0x14004b9d0]
call fcn.14004794c
nop
lea rcx, [0x14008efe0]
call fcn.1400475e4
jmp 0x14003b6dc
mov ecx, eax
call fcn.14003b800
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [0x140050be8]
lea rcx, [rsp + 0x20]
call fcn.14000dc90
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.14003b2a0
lea rdx, [0x140086350]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140042c50
Capabilities:
Encode data using xor

Disassembly:
mov r9, r8
xor r11d, r11d
mov r10, rdx
mov r8d, r11d
cmp r9, 8
jb 0x140042c87
mov rdx, r9
shr rdx, 3
imul rax, rdx, 0xfffffffffffffff8
add r9, rax
mov rax, qword [rcx]
add rcx, 8
xor rax, qword [r10]
add r10, 8
or r8, rax
sub rdx, 1
jne 0x140042c70
mov rdx, r8
shr rdx, 0x20
or edx, r8d
mov r8d, edx
mov eax, edx
shr r8d, 8
or r8d, edx
shr eax, 0x10
and r8d, 0xff00
or r8d, eax
movzx eax, dl
shr r8d, 8
or r8d, eax
test r9, r9
je 0x140042d78
sub rcx, r10
cmp r9, 8
jb 0x140042d59
mov rax, r9
lea rdx, [r10 + 4]
and rax, 0xfffffffffffffff8
xorps xmm4, xmm4
xorps xmm3, xmm3
nop dword [rax + rax]
movd xmm2, dword [rcx + rdx - 4]
xorps xmm0, xmm0
movd xmm1, dword [rdx - 4]
lea rdx, [rdx + 8]
punpcklbw xmm2, xmm0
add r11, 8
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
movd xmm1, dword [rdx - 8]
punpcklbw xmm1, xmm0
orps xmm4, xmm2
movd xmm2, dword [rcx + rdx - 8]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
orps xmm3, xmm2
cmp r11, rax
jb 0x140042ce0
orps xmm3, xmm4
movdqa xmm0, xmm3
psrldq xmm0, 8
orps xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
orps xmm3, xmm0
movd eax, xmm3
or r8d, eax
cmp r11, r9
jae 0x140042d78
add r10, r11
sub r9, r11
nop
movzx edx, byte [rcx + r10]
movzx eax, byte [r10]
lea r10, [r10 + 1]
xor edx, eax
or r8d, edx
sub r9, 1
jne 0x140042d60
test r8d, r8d
sete al
ret
Function at 0x140042d80
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
mov r10, rdx
test r9, r9
je 0x140042f24
cmp r9, 4
jb 0x140042dca
mov rdx, r9
shr rdx, 2
imul rax, rdx, 0xfffffffffffffffc
add r9, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [r10]
add r10, 4
xor eax, dword [r8]
add r8, 4
mov dword [rcx], eax
add rcx, 4
sub rdx, 1
jne 0x140042db0
xor r11d, r11d
test r9, r9
je 0x140042f24
cmp r9, 8
jb 0x140042efd
lea rdx, [rcx - 1]
lea rax, [r8 - 1]
add rdx, r9
add rax, r9
cmp rcx, rax
ja 0x140042dfc
cmp rdx, r8
jae 0x140042efd
lea rax, [r10 - 1]
add rax, r9
cmp rcx, rax
ja 0x140042e11
cmp rdx, r10
jae 0x140042efd
mov rdx, r10
mov qword [rsp + 0x10], rbx
sub rdx, r8
mov qword [rsp], rdi
cmp r9, 0x40
jb 0x140042eb7
mov rdi, r9
mov qword [rsp + 0x18], rsi
and edi, 0x3f
mov rsi, r9
sub rsi, rdi
mov rbx, rcx
lea rax, [r8 + 0x10]
sub rbx, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rdx + rax - 0x10]
movdqu xmm2, xmmword [rdx + rax]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rbx + rax - 0x50], xmm1
xorps xmm2, xmm0
movdqu xmm0, xmmword [rax - 0x30]
movdqu xmm1, xmmword [rdx + rax - 0x30]
movdqu xmmword [rbx + rax - 0x40], xmm2
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm2, xmmword [rdx + rax - 0x20]
movdqu xmmword [rbx + rax - 0x30], xmm1
xorps xmm2, xmm0
movdqu xmmword [rbx + rax - 0x20], xmm2
cmp r11, rsi
jb 0x140042e50
mov rsi, qword [rsp + 0x18]
cmp rdi, 8
jb 0x140042eef
mov rbx, r9
and rbx, 0xfffffffffffffff8
mov rdi, rcx
lea rax, [r11 + r8]
sub rdi, r8
nop dword [rax + rax]
movq xmm1, qword [rax + rdx]
add r11, 8
movq xmm0, qword [rax]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rax + rdi - 8], xmm1
cmp r11, rbx
jb 0x140042ed0
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
cmp r11, r9
jae 0x140042f24
sub r10, r8
lea rdx, [r11 + r8]
sub rcx, r8
sub r9, r11
nop word [rax + rax]
movzx eax, byte [rdx + r10]
xor al, byte [rdx]
mov byte [rdx + rcx], al
lea rdx, [rdx + 1]
sub r9, 1
jne 0x140042f10
add rsp, 8
ret
Function at 0x140042f30
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
test r8, r8
je 0x140043092
cmp r8, 4
jb 0x140042f72
mov r9, r8
shr r9, 2
imul rax, r9, 0xfffffffffffffffc
add r8, rax
nop dword [rax]
nop word [rax + rax]
mov eax, dword [rdx]
add rdx, 4
xor dword [rcx], eax
add rcx, 4
sub r9, 1
jne 0x140042f60
xor r10d, r10d
test r8, r8
je 0x140043092
cmp r8, 8
jb 0x140043074
lea r9, [rcx - 1]
lea rax, [rdx - 1]
add r9, r8
add rax, r8
cmp rcx, rax
ja 0x140042fa4
cmp r9, rdx
jae 0x140043074
mov r9, rdx
cmp r8, 0x40
jb 0x140043038
mov r11, r8
mov qword [rsp], rbx
and r11d, 0x3f
mov rbx, r8
sub rbx, r11
lea rax, [rcx + 0x10]
sub r9, rcx
nop dword [rax]
movdqu xmm0, xmmword [rax - 0x10]
add r10, 0x40
movdqu xmm1, xmmword [r9 + rax - 0x10]
movdqu xmm2, xmmword [r9 + rax]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x50], xmm1
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmm1, xmmword [r9 + rax - 0x30]
xorps xmm2, xmm0
movdqu xmmword [rax - 0x40], xmm2
movdqu xmm0, xmmword [rax - 0x30]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm1, xmmword [r9 + rax - 0x20]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x20], xmm1
cmp r10, rbx
jb 0x140042fd0
mov rbx, qword [rsp]
cmp r11, 8
jb 0x14004306f
jmp 0x14004303b
sub r9, rcx
mov r11, r8
and r11, 0xfffffffffffffff8
lea rax, [r10 + rcx]
nop word [rax + rax]
movq xmm0, qword [rax]
add r10, 8
movq xmm1, qword [r9 + rax]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rax - 8], xmm1
cmp r10, r11
jb 0x140043050
cmp r10, r8
jae 0x140043092
sub rdx, rcx
lea r9, [r10 + rcx]
sub r8, r10
nop
movzx eax, byte [r9 + rdx]
xor byte [r9], al
lea r9, [r9 + 1]
sub r8, 1
jne 0x140043080
add rsp, 8
ret
Function at 0x140046d34
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 0x140046db8
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140053a80]
cmp byte [rcx + rax], 0
je 0x140046db8
dec r8
sub rdx, 1
jne 0x140046d9e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140048300
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0xd8
mov dword [rsp + 0x20], 0x94
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 0
jne 0x14032b821
mov dword [rsp + 0xc0], 0
jmp 0x14032b8b8
cmp dword [rsp + 0x30], 2
jne 0x14032b885
cmp dword [rsp + 0x24], 4
ja 0x14032b83c
mov dword [rsp + 0xc0], 4
jmp 0x14032b883
cmp dword [rsp + 0x24], 5
jne 0x14032b878
cmp dword [rsp + 0x28], 0
jne 0x14032b857
mov dword [rsp + 0xc0], 5
jmp 0x14032b876
cmp dword [rsp + 0x28], 1
jne 0x14032b86b
mov dword [rsp + 0xc0], 6
jmp 0x14032b876
mov dword [rsp + 0xc0], 7
jmp 0x14032b883
mov dword [rsp + 0xc0], 8
jmp 0x14032b8b8
cmp dword [rsp + 0x28], 0
jne 0x14032b899
mov dword [rsp + 0xc0], 1
jmp 0x14032b8b8
cmp dword [rsp + 0x28], 0xa
jne 0x14032b8ad
mov dword [rsp + 0xc0], 2
jmp 0x14032b8b8
mov dword [rsp + 0xc0], 3
movzx eax, byte [rsp + 0xc0]
mov byte [0x140325716], al
cmp dword [rsp + 0xc0], 0
je 0x14032b8e4
cmp dword [rsp + 0xc0], 1
je 0x14032b8e4
cmp dword [rsp + 0xc0], 4
jne 0x14032b8eb
mov eax, 0x1a0
jmp 0x14032b8ed
xor eax, eax
add rsp, 0xd8
ret

Function at 0x14032c820
Capabilities:
Check mutex on windows

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x28
cmp qword [rsp + 0x30], 0
jne 0x14032c866
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [0x14036c9d0], rax
cmp qword [0x14036c9d0], 0
jne 0x14032c85a
mov eax, Ordinal_732
jmp 0x14032c890
mov rax, qword [0x14036c9d0]
mov qword [rsp + 0x30], rax
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject_1]
cmp eax, 0x102
jne 0x14032c88e
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, 0x258
jmp 0x14032c890
xor eax, eax
add rsp, 0x28
ret
Function at 0x14034e860
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x68
mov r8d, 0x32
lea rdx, [rsp + 0x20]
lea rcx, [0x14032a938]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA_1]
test eax, eax
jne 0x14034e88a
mov eax, 0xffffffff
jmp 0x14034e933
lea rax, [rsp + 0x20]
test rax, rax
jne 0x14034e89e
mov eax, 0xffffffff
jmp 0x14034e933
lea rdx, [0x14032a930]
lea rcx, [rsp + 0x20]
call fcn.14032c470
test eax, eax
je 0x14034e8c8
lea rdx, [0x14032a92c]
lea rcx, [rsp + 0x20]
call fcn.14032c470
test eax, eax
jne 0x14034e8cc
xor eax, eax
jmp 0x14034e933
lea rdx, [0x14032a928]
lea rcx, [rsp + 0x20]
call fcn.14032c470
test eax, eax
je 0x14034e8f6
lea rdx, [0x14032a924]
lea rcx, [rsp + 0x20]
call fcn.14032c470
test eax, eax
jne 0x14034e8fd
mov eax, 1
jmp 0x14034e933
lea rdx, [0x14032a91c]
lea rcx, [rsp + 0x20]
call fcn.14032c470
test eax, eax
je 0x14034e927
lea rdx, [0x14032a914]
lea rcx, [rsp + 0x20]
call fcn.14032c470
test eax, eax
jne 0x14034e92e
mov eax, 2
jmp 0x14034e933
mov eax, 0xffffffff
add rsp, 0x68
ret

Function at 0x14034e940
Capabilities:
Identify system language via api

Disassembly:
sub rsp, 0x38
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID_1]
movzx eax, ax
and eax, 0xff
mov word [rsp + 0x24], ax
movzx eax, word [rsp + 0x24]
cmp eax, 0xc
jne 0x14034e971
mov dword [rsp + 0x20], 1
movzx eax, word [rsp + 0x24]
cmp eax, 7
jne 0x14034e983
mov dword [rsp + 0x20], 2
movzx eax, word [rsp + 0x24]
cmp eax, 0xa
jne 0x14034e995
mov dword [rsp + 0x20], 3
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x140355070
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov edx, 0x7530
mov rcx, qword [0x14036c9d0]
call fcn.14032c820
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1403550a0
mov eax, dword [rsp + 0x20]
jmp 0x1403550ec
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.140354fa0
mov dword [rsp + 0x20], eax
mov rcx, qword [0x14036c9d0]
call fcn.14032c8a0
movzx r11d, byte [0x140327c22]
test r11d, r11d
je 0x1403550e8
cmp dword [rsp + 0x20], 0
je 0x1403550e8
movzx eax, byte [0x140328537]
test eax, eax
jne 0x1403550e8
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_ExitProcess_1]
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x140001030
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x58
mov dword [rsp + 0x54], 0
mov dword [rsp + 0x50], r9d
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rcx
call fcn.140001110
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140001073
mov dword [rsp + 0x54], 1
jmp 0x140001102
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0xffffffff
jne 0x1400010a4
mov rcx, qword [rsp + 0x28]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov dword [rsp + 0x54], 1
jmp 0x140001102
mov eax, dword [rsp + 0x34]
and eax, 6
cmp eax, 0
je 0x1400010c8
call fcn.140001000
mov rcx, qword [rsp + 0x28]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x1400010fa
xor eax, eax
mov ecx, eax
lea rdx, str.This_app_uses_an_incompatible_version_of_Windows._Please_contact_the_publisher_to_acquire_an_appropriate_version_for_your_system.
lea r8, str.Incompatible_Application
mov r9d, 0x1010
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, qword [rsp + 0x28]
call fcn.140001190
mov rcx, qword [rsp + 0x28]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov dword [rsp + 0x54], 0
mov eax, dword [rsp + 0x54]
add rsp, 0x58
ret

Function at 0x140001190
Capabilities:
Check if file exists
Copy file
Get common file path
Set file attributes

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x30], rcx
lea rcx, [0x140002420]
mov edx, 0x8000
xor eax, eax
mov r8d, eax
lea r9, [rsp + 0x28]
call sub.SHELL32.dll_SHGetKnownFolderPath
cmp eax, 0
je 0x1400011cd
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x1400012ba
mov ecx, 0x208
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140001202
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x1400012ba
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
lea r8, str.ContentDeploymentHostRunner.exe
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
cmp rax, 0
jne 0x14000123d
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x1400012ba
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 0
je 0x14000126b
mov rcx, qword [rsp + 0x20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x1400012ba
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 0
jne 0x140001296
mov rcx, qword [rsp + 0x20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x1400012ba
mov rcx, qword [rsp + 0x20]
mov edx, 6
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rsp + 0x20]
call fcn.1400012c0
mov rcx, qword [rsp + 0x20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
add rsp, 0x38
ret
Function at 0x1400012c0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x40], rcx
mov rcx, 0xffffffff80000001
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
lea r8, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, 0
jne 0x140001330
mov rcx, qword [rsp + 0x40]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
shl rax, 1
add rax, 2
mov r10, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor edx, edx
lea r8, str.ContentDeploymentHostRunner
mov r9d, 1
mov qword [rsp + 0x20], r10
mov dword [rsp + 0x28], eax
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
add rsp, 0x48
ret

Function at 0x140001ab4
Capabilities:
Parse pe header

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