joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140017090
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x3260], 0
lea rbx, [rcx + 0x3268]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140017137
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x1400170ea
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.140023bd0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.1400036b0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x3260]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x3270]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x1400a43f8]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14001713f
mov rcx, rbx
call fcn.1400036b0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140017580
Capabilities:
Hash data with crc32

Disassembly:
push rbx
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov rbx, rcx
mov eax, r10d
test r9b, r9b
je 0x1400175d2
lea r11, [0x140061350]
cmp r9b, 0x23
jne 0x1400175b5
cmp byte [r8], r9b
jne 0x1400175b5
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x1400175a2
mov r11, qword [0x1400a4400]
xor r9d, r9d
mov r10, qword [r11 + 0x3228]
test r10, r10
lea rcx, [r10 + 4]
cmovne r9, rcx
test r9, r9
je 0x14001761e
not eax
cmp dword [r9], eax
je 0x140017627
movsxd r8, dword [r9 - 4]
movsxd rdx, dword [r11 + 0x3220]
add r8, r9
add rdx, 4
xor r9d, r9d
add rdx, r10
cmp r8, rdx
cmovne r9, r8
test r9, r9
jne 0x1400175f5
mov rcx, rbx
pop rbx
jmp fcn.140017490
mov rax, r9
pop rbx
ret
Function at 0x14001aac0
Capabilities:
Hash data with crc32

Disassembly:
test r8d, r8d
jle 0x14001acfe
mov r11, rsp
push rbp
push rsi
sub rsp, 0x58
mov rax, qword [0x140073040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [r11 - 0x18], rdi
mov rbp, rcx
mov qword [r11 - 0x20], r14
lea rdi, [rdx + 0x1a]
mov qword [r11 - 0x28], r15
mov r14d, 0xffffffff
lea r15, [0x140061350]
mov qword [r11 + 0x18], rbx
movsxd rsi, r8d
nop dword [rax + rax]
mov edx, dword [rdi - 0x1a]
test edx, edx
je 0x14001acc6
mov rcx, rbp
call fcn.14001a1a0
mov r9d, dword [rdi - 0x16]
mov rbx, rax
test r9d, r9d
je 0x14001ab91
movsxd rdx, dword [rbp + 0x31c0]
mov r8, qword [rbp + 0x31c8]
mov r10, rdx
shl r10, 4
add r10, r8
test rdx, rdx
je 0x14001ab81
nop dword [rax]
mov rcx, rdx
shr rcx, 1
mov rax, rcx
add rax, rax
cmp dword [r8 + rax*8], r9d
jae 0x14001ab79
lea r8, [r8 + rax*8]
mov rax, 0xffffffffffffffff
sub rax, rcx
add r8, 0x10
add rdx, rax
jmp 0x14001ab7c
mov rdx, rcx
test rdx, rdx
jne 0x14001ab50
cmp r8, r10
je 0x14001ab91
cmp dword [r8], r9d
jne 0x14001ab91
mov rcx, qword [r8 + 8]
jmp 0x14001ab93
xor ecx, ecx
mov qword [rbx + 0x10], rcx
movsx eax, word [rdi - 2]
movd xmm1, eax
movsx eax, word [rdi]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
movss dword [rbx + 0x40], xmm1
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x44], xmm0
movsx eax, word [rdi + 2]
movd xmm1, eax
movsx eax, word [rdi + 4]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
movss dword [rbx + 0x48], xmm1
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x4c], xmm0
movsx eax, word [rdi + 6]
movd xmm1, eax
movsx eax, word [rdi + 8]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
mov eax, dword [rbx + 0xb8]
and eax, 0xfffffe49
movss dword [rbx + 0x50], xmm1
or eax, 0x49
mov dword [rbx + 0xb8], eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x54], xmm0
test rcx, rcx
je 0x14001ac27
cmp qword [rcx + 0x18], 0
jne 0x14001ac1c
mov qword [rcx + 0x18], rbx
jmp 0x14001ac27
cmp qword [rcx + 0x20], 0
jne 0x14001ac27
mov qword [rcx + 0x20], rbx
mov eax, dword [rdi - 0xe]
mov r9, rbx
mov dword [rbx + 0xb0], eax
movsx eax, byte [rdi - 0xa]
mov dword [rbx + 0x58], eax
mov eax, dword [rdi - 6]
and eax, 0x61fc20
or dword [rbx + 8], eax
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x14001ac5c
nop
mov r9, rax
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14001ac50
mov r9d, dword [r9]
lea r8, str.DockNode__02X
mov edx, 0x14
lea rcx, [rsp + 0x20]
call fcn.140002d90
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov ecx, r14d
test r9b, r9b
je 0x14001acb8
cmp r9b, 0x23
jne 0x14001ac9b
cmp byte [r8], r9b
jne 0x14001ac9b
cmp byte [r8 + 1], r9b
cmove ecx, r14d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r15 + rdx*4]
test r9b, r9b
jne 0x14001ac88
not ecx
call fcn.14000ae00
mov qword [rbx + 0x80], rax
add rdi, 0x24
sub rsi, 1
jne 0x14001ab10
mov r15, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14005c420
add rsp, 0x58
pop rsi
pop rbp
ret
Function at 0x14004a1c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
lea r11, [0x140068100]
mov r9, rdx
not ecx
cmp r8, 4
jb 0x14004a239
mov r10, r8
shr r10, 2
imul rax, r10, 0xfffffffffffffffc
add r8, rax
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
add r9, 4
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x14004a1e0
test r8, r8
je 0x14004a25d
nop
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r8, 1
jne 0x14004a240
not ecx
mov eax, ecx
ret
Function at 0x14004e7d0
Capabilities:
Get common file path
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x140073040]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rdi, rdx
mov qword [rsp + 0x48], rcx
mov rsi, rcx
lea rdx, [rsp + 0x160]
mov ecx, 0x104
xor ebp, ebp
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, [0x1400678f0]
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov qword [rsp + 0x30], rbp
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r8d, dword [rdi + 8]
lea r9, [rsp + 0x48]
sub r8d, dword [rdi]
mov rcx, rax
mov rdx, qword [rdi]
mov rbx, rax
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
lea rax, [rsp + 0x50]
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], rbp
mov r8, 0xffffffffffffffff
mov qword [rsi + 0x18], rbp
nop dword [rax]
inc r8
cmp byte [rax + r8], bpl
jne 0x14004e8a0
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.14005b400
mov rax, rsi
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14005c420
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x140059080
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 0x1400590a8
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 0x1400590ce
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400590d0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140059129
test ecx, ecx
jle 0x140059109
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 0x140059129
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140059129
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 0x140059150
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 0x140059172
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140059188
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 0x1400591a4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400591a6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400591e2
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 0x14005927e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14005921d
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 0x14005925e
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 0x14005927e
cmp rbx, rax
ja 0x140059230
test rbx, rbx
je 0x14005927e
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 0x1400596e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140073040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14005970d
xor eax, eax
jmp 0x140059879
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140059747
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140059747
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 0x140059879
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14005986c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14005978a
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 0x1400597b5
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 0x140059871
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 0x140059824
sub eax, 1
je 0x140059824
cmp eax, 2
jne 0x14005986c
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 0x140059871
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140059852
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 0x14005986c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140059871
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14005c420
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14005a140
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140073040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14005a213
cmp byte [rcx + 0x71], 0
je 0x14005a213
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14005a20f
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 0x14005a1d4
sub eax, 1
je 0x14005a1d8
cmp eax, 2
jne 0x14005a20f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14005c420
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14005a206
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 0x14005a20f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14005a1bc
xor al, al
jmp 0x14005a1bc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14005c420
add rsp, 0x60
pop rbx
ret

Function at 0x14005d05c
Capabilities:
Parse pe header

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

Function at 0x14005d2e0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14005d31a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14005d31f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14005d368
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140060ae0]
cmp byte [rcx + rax], 0
je 0x14005d368
dec r8
sub rdx, 1
jne 0x14005d34e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x100d2b0c0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x100d2b0cd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x100d2b0dd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x100d2b0c5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x100d2b0f5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x100d2b0e2
sub eax, 3
jb 0x100d2b10f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x100d2b146
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x100d2b136
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x100d2b134
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x100d2b123
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.100d2b082
jmp 0x100d2b0cd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x49c360
mov dl, 0xaf
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x100d2b192
cmp rsi, rcx
jae 0x100d2b19a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x100d2b179
cmp al, 0x8f
ja 0x100d2b179
cmp byte [rsi - 2], 0xf
je 0x100d2b17f
sub al, 0xe8
cmp al, 1
ja 0x100d2b163
cmp rsi, rcx
jae 0x100d2b19a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x100d2b169
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x100d2b19a
lodsb al, byte [rsi]
jmp 0x100d2b179
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xd27000]
mov eax, dword [rdi]
or eax, eax
je 0x100d2b1f7
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xd5b374]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x100d2b1a7
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x100d2b1f1
mov qword [rbx], rax
add rbx, 8
jmp 0x100d2b1c7
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.100d2b27a], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.100d2b27a
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x100d2b26a
sub rsp, 0xffffffffffffff80
jmp 0x1000032b0
Function at 0x4013b0
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0xd0
xor edx, edx
mov r8d, 0x68
lea r9, [rsp + 0x68]
mov r10, rcx
mov rcx, r9
call fcn.00401120
lea r11, [rsp + 0x50]
xor edx, edx
mov r8d, 0x18
mov rcx, r11
mov dword [rsp + 0x68], 0x68
mov dword [rsp + 0xa4], 1
mov word [rsp + 0xa8], 0
call fcn.00401120
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], r9
mov rdx, r10
xor r9d, r9d
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401467
mov rcx, qword [rsp + 0x50]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
mov rbx, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rbx
mov rcx, qword [rsp + 0x58]
call rbx
nop
add rsp, 0xd0
pop rbx
ret

Function at 0x401470
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x290
mov rbx, rcx
mov esi, edx
lea rcx, str.2.zal_9240ee3a_4276_4944_b897_7cd3cdb3685f.
lea rdx, [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x401566
lea r10, [rsp + 0x4c]
lea rdx, [0x004030b6]
mov rcx, r10
call fcn.00401160
lea rdx, [rsp + 0x17c]
mov rcx, r10
call fcn.00401000
xor r9d, r9d
mov edx, 0x80000000
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov r8d, 1
mov rcx, r10
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, qword [sym.imp.KERNEL32.dll_FindClose]
cmp rax, 0xffffffffffffffff
mov r13, rax
jne 0x401510
mov rcx, r12
call rdi
jmp 0x401566
mov r8d, esi
lea r9, [rsp + 0x48]
mov rdx, rbx
mov rcx, rax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, r13
mov esi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call rdi
test esi, esi
je 0x401566
mov r8d, dword [rsp + 0x48]
xor eax, eax
cmp r8d, eax
jle 0x40156a
mov dl, byte [rbx + rax]
lea rcx, [rbx + rax]
inc rax
cmp dl, 0xa
je 0x401561
cmp dl, 0xd
jne 0x401548
mov byte [rcx], 0
jmp 0x40156a
xor eax, eax
jmp 0x40156f
mov eax, 1
add rsp, 0x290
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret

Function at 0x401580
Capabilities:
Check os version

Disassembly:
sub rsp, 0xc8
mov dword [rsp + 0x2c], 0x94
lea rcx, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
xor eax, eax
cmp dword [rsp + 0x30], 6
jne 0x4015ab
cmp dword [rsp + 0x34], 1
sete al
add rsp, 0xc8
ret
Function at 0x1400031b0
Capabilities:
Create process on windows

Disassembly:
push rbp
push rsi
sub rsp, 0x98
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x10], 0xfffffffffffffffe
mov rdx, qword [rcx + 8]
mov qword [rbp - 8], rcx
mov r8, qword [rcx + 0x10]
lea rcx, [rbp - 0x30]
mov qword [rbp - 0x18], rdx
call fcn.140007160
mov rcx, qword [rbp - 0x30]
mov rsi, qword [rbp - 0x28]
movabs rax, 0x8000000000000000
cmp rcx, rax
je 0x140003296
mov qword [rbp + 8], rcx
mov qword [rbp], rsi
lea rax, [0x1436f04a0]
mov qword [rbp - 0x48], rax
lea rax, [0x1436f04a5]
mov qword [rbp - 0x40], rax
mov word [rbp - 0x38], 0
lea rcx, [rbp - 0x30]
lea rdx, [rbp - 0x48]
call fcn.140001720
mov rdx, qword [rbp - 0x28]
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
xor ecx, ecx
mov qword [rbp - 0x10], rdx
mov r8, qword [rbp]
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, eax
call fcn.140007270
mov rsi, rax
mov rdx, qword [rbp - 0x30]
test rdx, rdx
je 0x14000327b
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp - 0x10]
call fcn.140003750
mov rdx, qword [rbp + 8]
test rdx, rdx
mov rcx, qword [rbp]
je 0x140003296
add rdx, rdx
mov r8d, 2
call fcn.140003750
mov rax, qword [rbp - 8]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400032b1
mov r8d, 1
mov rcx, qword [rbp - 0x18]
call fcn.140003750
mov rax, rsi
add rsp, 0x98
pop rsi
pop rbp
ret
Function at 0x1400033a0
Capabilities:
Set console window title

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x30], 0xfffffffffffffffe
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov qword [rbp - 0x18], rdx
mov qword [rbp - 0x10], r8
call fcn.140004470
mov rcx, rsi
test al, al
je 0x1400033f2
mov rdx, rbx
mov r8, rdi
call fcn.140001aa0
test rax, rax
setne cl
cmovne rsi, rax
jmp 0x1400034ed
call fcn.14000b8b0
test rax, rax
je 0x140003406
mov cl, 1
mov rsi, rax
jmp 0x1400034ed
lea rax, [rbp - 0x18]
mov qword [rbp - 8], rax
mov qword [rbp + 0x10], 0
mov qword [rbp + 0x18], 2
mov qword [rbp + 0x20], 0
lea rax, [rbp - 8]
mov qword [rbp - 0x28], rax
lea rax, [0x140003040]
mov qword [rbp - 0x20], rax
lea rax, [0x1436f0590]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], 1
mov qword [rbp - 0x38], 0
lea rax, [rbp - 0x28]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], 1
mov byte [rbp + 0x2f], 1
lea rdx, [0x1436f04b0]
lea rcx, [rbp + 0x10]
lea r8, [rbp - 0x58]
call fcn.14001ec10
test al, al
jne 0x140003519
mov rdx, qword [rbp + 0x20]
cmp rdx, qword [rbp + 0x10]
jne 0x14000349f
mov byte [rbp + 0x2f], 1
lea rcx, [rbp + 0x10]
call fcn.140003680
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x18]
mov word [rax + rdx*2], 0
inc qword [rbp + 0x20]
mov rax, qword [rbp + 0x10]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x18]
mov qword [rbp], rcx
call sub.KERNEL32.dll_SetConsoleTitleW
test eax, eax
je 0x1400034ff
xor edi, edi
mov rdx, qword [rbp + 8]
test rdx, rdx
je 0x1400034e3
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp]
call fcn.140003750
test rdi, rdi
setne cl
cmovne rsi, rdi
movzx eax, cl
mov rdx, rsi
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop rbp
ret
call sub.KERNEL32.dll_GetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rdx, qword [rbp + 8]
test rdx, rdx
jne 0x1400034d1
jmp 0x1400034e3
mov byte [rbp + 0x2f], 1
lea rax, [0x1436f0628]
mov qword [rsp + 0x20], rax
lea rcx, [0x1436f05a0]
lea r9, [0x1436f0480]
lea r8, [rbp - 0x58]
mov edx, 0x11
call fcn.140025250
ud2