joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800891d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movsxd rsi, edx
mov rdi, rcx
imul rbx, rsi, 0x68
add rbx, qword [rcx + 0x18]
cmp rbx, qword [rcx + 0x18]
jb 0x1800891f9
cmp rbx, qword [rcx + 0x20]
jb 0x180089213
mov r8d, 0x238
lea rdx, str.D:ProjetosAge_IVOTBAgeimguiimgui_internal.h
lea rcx, str.p___Data__p___DataEnd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov r9, qword [rdi + 0x190]
mov dword [rdi + 0x7c], esi
test dword [rbx], 0x4000
movss xmm0, dword [rbx + 0x34]
je 0x180089232
addss xmm0, dword [rdi + 0x94]
lea rsi, [r9 + 0xd8]
movss dword [rsi], xmm0
movss xmm1, dword [rdi + 0xc8]
addss xmm1, dword [rdi + 0x84]
movss dword [r9 + 0xf0], xmm0
subss xmm0, dword [r9 + 0x10]
movss dword [r9 + 0xdc], xmm1
subss xmm0, dword [r9 + 0x118]
movss dword [r9 + 0x11c], xmm0
mov eax, dword [rdi + 0x90]
mov dword [r9 + 0x110], eax
movsx eax, byte [rbx + 0x61]
mov dword [r9 + 0x14c], eax
movss dword [r9 + 0x234], xmm1
mov eax, dword [rbx + 0x34]
mov dword [r9 + 0x230], eax
mov eax, dword [rbx + 0x38]
mov dword [r9 + 0x238], eax
mov eax, dword [rbx + 0x3c]
mov dword [r9 + 0x1c4], eax
cmp byte [rbx + 0x5a], 0
jne 0x1800892cd
maxss xmm1, dword [rdi + 0x88]
movss dword [r9 + 0xdc], xmm1
movzx eax, byte [rbx + 0x5f]
mov byte [r9 + 0x93], al
cmp byte [rbx + 0x5f], 0
je 0x1800892e7
xor eax, eax
mov qword [r9 + 0x124], rax
test dword [rdi + 4], 0x100000
je 0x1800892f8
mov r8d, 2
jmp 0x18008936e
movups xmm0, xmmword [rbx + 0x20]
mov rax, qword [r9 + 0x2b0]
movss xmm1, dword [rbx + 0x20]
movss xmm2, dword [rbx + 0x24]
movss xmm3, dword [rbx + 0x28]
movss xmm4, dword [rbx + 0x2c]
movups xmmword [r9 + 0x250], xmm0
movss dword [rax + 0x88], xmm1
movss dword [rax + 0x8c], xmm2
movss dword [rax + 0x90], xmm3
movss dword [rax + 0x94], xmm4
mov rax, qword [r9 + 0x2b0]
movsxd rdx, dword [rax + 0x58]
mov rcx, qword [rax + 0x60]
add rdx, rdx
movss dword [rcx + rdx*8 - 0x10], xmm1
movss dword [rcx + rdx*8 - 0xc], xmm2
movss dword [rcx + rdx*8 - 8], xmm3
movss dword [rcx + rdx*8 - 4], xmm4
movzx r8d, byte [rbx + 0x57]
mov rdx, qword [r9 + 0x2b0]
mov rcx, qword [rdi + 0x1a8]
call fcn.1800c8220
mov rdi, qword [0x1806fe070]
cmp byte [rdi + 0x308c], 0
je 0x1800893b3
cmp byte [rbx + 0x5f], 0
jne 0x1800893b3
xor r8d, r8d
lea rdx, [0x18028b330]
mov rcx, rsi
call fcn.180077bc0
mov dword [rdi + 0x30c0], 0x7f7fffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x18008f2c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0xa0
movaps xmmword [rsp + 0x90], xmm6
mov rax, qword [0x180572380]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
movaps xmm6, xmm2
mov ebx, edx
test al, al
je 0x18008f307
nop
cmp al, 0x25
jne 0x18008f2fc
cmp byte [rcx + 1], al
jne 0x18008f307
inc rcx
movzx eax, byte [rcx + 1]
inc rcx
test al, al
jne 0x18008f2f0
cmp byte [rcx], 0x25
jne 0x18008f3e9
cmp byte [rcx + 1], 0x25
je 0x18008f3e9
mov r8d, reloc.WLDAP32.dll_Ordinal_32
lea rdx, [rsp + 0x20]
call fcn.18009a570
xorps xmm3, xmm3
lea r8, [rsp + 0x20]
cvtss2sd xmm3, xmm6
mov edx, 0x40
lea rcx, [rsp + 0x40]
movq r9, xmm3
call fcn.180075900
cmp byte [rsp + 0x40], 0x20
lea rcx, [rsp + 0x40]
jne 0x18008f35e
inc rcx
cmp byte [rcx], 0x20
je 0x18008f356
lea eax, [rbx - 8]
cmp eax, 1
jbe 0x18008f3d7
movzx edx, byte [rcx]
movzx r8d, dl
cmp dl, 0x2d
jne 0x18008f377
movzx r8d, byte [rcx + 1]
lea rax, [rcx + 1]
xorps xmm1, xmm1
cmovne rax, rcx
cmp r8b, 0x2b
lea rcx, [rax + 1]
cmovne rcx, rax
movzx eax, byte [rcx]
cmp al, 0x30
jl 0x18008f3c6
movss xmm2, dword [0x180289cec]
nop dword [rax]
cmp al, 0x39
ja 0x18008f3c6
movsx eax, byte [rcx]
inc rcx
sub eax, 0x30
mulss xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rcx]
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
movaps xmm1, xmm0
cmp al, 0x30
jge 0x18008f3a0
cmp dl, 0x2d
jne 0x18008f3e4
xorps xmm1, xmmword [0x180289d50]
movaps xmm0, xmm1
jmp 0x18008f3ec
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movaps xmm0, xmm1
jmp 0x18008f3ec
movaps xmm0, xmm6
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1800d1620
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa0
pop rbx
ret
Function at 0x18008f410
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0xa0
movaps xmmword [rsp + 0x90], xmm6
mov rax, qword [0x180572380]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
movaps xmm6, xmm2
mov ebx, edx
test al, al
je 0x18008f457
nop
cmp al, 0x25
jne 0x18008f44c
cmp byte [rcx + 1], al
jne 0x18008f457
inc rcx
movzx eax, byte [rcx + 1]
inc rcx
test al, al
jne 0x18008f440
cmp byte [rcx], 0x25
jne 0x18008f533
cmp byte [rcx + 1], 0x25
je 0x18008f533
mov r8d, reloc.WLDAP32.dll_Ordinal_32
lea rdx, [rsp + 0x20]
call fcn.18009a570
movaps xmm3, xmm6
lea r8, [rsp + 0x20]
movq r9, xmm6
lea rcx, [rsp + 0x40]
mov edx, 0x40
call fcn.180075900
cmp byte [rsp + 0x40], 0x20
lea rcx, [rsp + 0x40]
jne 0x18008f4aa
inc rcx
cmp byte [rcx], 0x20
je 0x18008f4a2
lea eax, [rbx - 8]
cmp eax, 1
jbe 0x18008f525
movzx edx, byte [rcx]
movzx r8d, dl
cmp dl, 0x2d
jne 0x18008f4c3
movzx r8d, byte [rcx + 1]
lea rax, [rcx + 1]
xorps xmm1, xmm1
cmovne rax, rcx
cmp r8b, 0x2b
lea rcx, [rax + 1]
cmovne rcx, rax
movzx eax, byte [rcx]
cmp al, 0x30
jl 0x18008f514
movsd xmm2, qword [0x18028d6f0]
nop dword [rax]
cmp al, 0x39
ja 0x18008f514
movsx eax, byte [rcx]
inc rcx
sub eax, 0x30
mulsd xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rcx]
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
cmp al, 0x30
jge 0x18008f4f0
cmp dl, 0x2d
jne 0x18008f52e
xorps xmm1, xmmword [0x18027d8e0]
movaps xmm0, xmm1
jmp 0x18008f536
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
movaps xmm1, xmm0
movaps xmm0, xmm1
jmp 0x18008f536
movaps xmm0, xmm6
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1800d1620
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa0
pop rbx
ret
Function at 0x18009f540
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
movaps xmmword [rsp + 0x20], xmm6
mov rsi, rcx
call fcn.180074ab0
mov dl, 1
mov ecx, dword [rax + 0x6c]
call fcn.180076b20
test al, al
je 0x18009f578
mov byte [rsi + 0x20], 0x42
jmp 0x18009f6cb
call fcn.180074ab0
xorps xmm6, xmm6
comiss xmm6, dword [rax + 0x130]
jbe 0x18009f592
mov byte [rsi + 0x20], 0x3f
jmp 0x18009f6cb
call fcn.180074ab0
movss xmm0, dword [rax + 0x130]
comiss xmm0, xmm6
jbe 0x18009f5ad
mov byte [rsi + 0x20], 0x40
jmp 0x18009f6cb
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x18009f5c6
mov byte [rsi + 0x20], gethostname
jmp 0x18009f6cb
mov ecx, 0xa4
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x18009f5df
mov byte [rsi + 0x20], 0x34
jmp 0x18009f6cb
mov ecx, 0xa2
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x18009f5f8
mov byte [rsi + 0x20], 0x35
jmp 0x18009f6cb
mov ecx, 3
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x18009f611
mov byte [rsi + 0x20], reloc.WLDAP32.dll_Ordinal_60
jmp 0x18009f6cb
mov ecx, 4
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x18009f62a
mov byte [rsi + 0x20], 0x3d
jmp 0x18009f6cb
xor ebx, ebx
mov edi, ebx
nop
xor edx, edx
mov ecx, edi
call fcn.180076cb0
test al, al
jne 0x18009f6c3
inc edi
cmp edi, 5
jl 0x18009f630
lea rbp, str.___0123456789_A
lea rdi, str.Kiero
mov dl, 1
mov ecx, ebx
call fcn.180076b20
test al, al
je 0x18009f679
mov rcx, rbp
cmp dword [rcx + 0x10], ebx
je 0x18009f674
add rcx, 0x18
cmp rcx, rdi
jne 0x18009f666
cmp rcx, rdi
jne 0x18009f687
inc ebx
cmp ebx, 0x200
jl 0x18009f656
xor al, al
jmp 0x18009f6cd
sub rcx, rbp
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov byte [rsi + 0x20], dl
cmp dl, 0x35
jne 0x18009f6cb
mov dl, 1
mov ecx, 0xa5
call fcn.180076b20
test al, al
je 0x18009f6cb
mov byte [rsi + 0x20], 0x53
jmp 0x18009f6cb
add dil, 0x39
mov byte [rsi + 0x20], dil
mov al, 1
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x30
pop rdi
ret
Function at 0x1800a0080
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbp
push rbx
push rdi
push r14
lea rbp, [rsp - 0x3f]
sub rsp, 0xd8
mov rax, qword [0x180572380]
xor rax, rsp
mov qword [rbp + 0x27], rax
xor eax, eax
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x61], xmm1
mov qword [rbp - 0x51], rax
mov ecx, 0x400
call fcn.1800d10f4
mov qword [rbp - 0x61], rax
lea rdi, [rax + 0x400]
mov qword [rbp - 0x51], rdi
xor edx, edx
mov r8d, 0x400
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rbp - 0x59], rdi
lea r14, [rbp + 0x6f]
sub rdi, qword [rbp - 0x61]
call fcn.18003a6a0
mov rcx, qword [rax]
or rcx, 2
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], 0
mov r9, qword [rbp + 0x67]
mov r8, rdi
mov rdx, qword [rbp - 0x61]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsprintf]
mov ecx, 0xffffffff
test eax, eax
cmovs eax, ecx
mov r10, qword [rbp - 0x59]
mov ecx, r10d
mov r11, qword [rbp - 0x61]
sub ecx, r11d
cmp eax, ecx
jl 0x1800a01b3
inc eax
movsxd rcx, eax
mov rdx, r10
sub rdx, r11
cmp rcx, rdx
jae 0x1800a0157
lea r10, [rcx + r11]
mov qword [rbp - 0x59], r10
jmp 0x1800a019a
jbe 0x1800a019a
mov rax, qword [rbp - 0x51]
sub rax, r11
cmp rcx, rax
jbe 0x1800a017b
lea r8, [rbp - 0x69]
mov rdx, rcx
lea rcx, [rbp - 0x61]
call fcn.18009fef0
mov r10, qword [rbp - 0x59]
jmp 0x1800a0196
sub rcx, rdx
lea rbx, [r10 + rcx]
mov r8, rcx
xor edx, edx
mov rcx, r10
call sub.VCRUNTIME140.dll_memset
mov r10, rbx
mov qword [rbp - 0x59], rbx
mov r11, qword [rbp - 0x61]
sub r10, r11
mov r9, r14
mov r8, qword [rbp + 0x67]
mov rdx, r10
mov rcx, r11
call fcn.1800a02e0
mov r11, qword [rbp - 0x61]
mov rdx, r11
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.18001e910
lea rdx, [0x180023460]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov r8, qword [rbp - 0x61]
mov edx, 0x64
lea rcx, [rbp - 0x49]
call fcn.18004cbb0
lea rcx, [rbp - 0x49]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
nop
mov rcx, qword [rbp - 0x61]
test rcx, rcx
je 0x1800a022c
mov rdx, qword [rbp - 0x51]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800a0227
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800a0227
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d1130
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1800d1620
add rsp, 0xd8
pop r14
pop rdi
pop rbx
pop rbp
ret
Function at 0x1800b4df0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
mov eax, 0x5a4d
mov rsi, r9
mov r14, r8
mov r11, rdx
mov rbx, rcx
cmp word [rcx], ax
jne 0x1800b4e83
movsxd r10, dword [rcx + 0x3c]
add r10, rcx
cmp dword [r10], 0x4550
jne 0x1800b4e83
movzx r9d, word [r10 + 0x14]
add r9, 0x18
add r9, r10
movzx r10d, word [r10 + 6]
test r10w, r10w
je 0x1800b4e83
mov rdi, qword [rdx + 0x18]
mov ebp, 0xffff
nop dword [rax]
mov rax, r11
cmp rdi, 0xf
jbe 0x1800b4e5c
mov rax, qword [r11]
mov r8, r9
sub r8, rax
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1800b4e75
inc rax
test ecx, ecx
jne 0x1800b4e62
test edx, edx
je 0x1800b4e9c
add r9, 0x28
add r10w, bp
jne 0x1800b4e50
xor al, al
mov rbx, qword [rsp + 0x10]
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
pop r14
ret
mov eax, dword [r9 + 0xc]
add rax, rbx
mov qword [r14], rax
mov eax, dword [r9 + 0x10]
mov qword [rsi], rax
mov al, 1
jmp 0x1800b4e85

Function at 0x1800d0d78
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 0x1800d0db2
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1800d0db7
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 0x1800d0e00
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1800d0e00
dec r8
sub rdx, 1
jne 0x1800d0de6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x18011fbb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov byte [rsp + 0x18], r8b
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0x48
movsx eax, byte [rsp + 0x58]
and eax, 1
mov dword [rsp + 0x34], eax
movsx eax, byte [rsp + 0x60]
mov ecx, eax
call fcn.18011f600
mov dword [rsp + 0x30], eax
movzx eax, byte [rsp + 0x58]
and eax, 0xf
mov byte [rsp + 0x20], al
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x24], eax
jmp 0x18011fc00
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 3
ja 0x18011fc83
movsx eax, byte [rsp + 0x60]
mov ecx, dword [rsp + 0x24]
sar eax, cl
and eax, 1
cmp eax, dword [rsp + 0x34]
jne 0x18011fc25
mov dword [rsp + 0x28], 1
jmp 0x18011fc2d
mov dword [rsp + 0x28], 0
cmp dword [rsp + 0x28], 0
jne 0x18011fc3e
mov dword [rsp + 0x2c], 0
jmp 0x18011fc46
mov dword [rsp + 0x2c], 1
movzx eax, byte [rsp + 0x2c]
mov byte [rsp + 0x21], al
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x18011fc69
movzx edx, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
call fcn.18011fa40
jmp 0x18011fc7e
movzx eax, byte [rsp + 0x20]
xor eax, 1
movzx edx, al
mov rcx, qword [rsp + 0x50]
call fcn.18011fa40
jmp 0x18011fbf6
movzx edx, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
call fcn.18011fa40
add rsp, 0x48
ret
Function at 0x180219e30
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x180219f12
call fcn.180233610
test al, al
jne 0x180219f12
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x180219e62
mov r8, rdi
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, rbx
call fcn.18023e390
test rax, rax
je 0x180219ea7
sub rax, rbx
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov r8, rax
mov rcx, rbx
call fcn.18023e390
mov rsi, rax
test rax, rax
je 0x180219ea7
inc rsi
mov rcx, rbx
sub rcx, rsi
add rdi, rcx
test rsi, rsi
cmovne rbx, rsi
lea rsi, [rbx + rdi]
mov edi, 0x1505
cmp rbx, rsi
jae 0x180219edb
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.18022f390
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x180219ec0
mov rsi, qword [rsp + 0x30]
mov rcx, rdi
movabs rax, 0x410410410410411
mul rdi
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
imul rcx, rcx, 0x3f
sub rdi, rcx
mov rax, rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x180228e10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
cmp byte [rcx + 0xa4e], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x180228edb
cmp qword [rcx + 0x278], 0
je 0x180228e8e
mov qword [rsp + 0x40], rbx
call fcn.180214080
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.1802146c0
mov rcx, qword [rdi + 0x1f0]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x278]
movzx edx, bl
mov rcx, rdi
call fcn.1802146c0
mov rbx, qword [rsp + 0x40]
jmp 0x180228edb
mov ecx, esi
test edx, edx
je 0x180228e9e
sub ecx, 1
je 0x180228e9e
cmp ecx, 1
jne 0x180228edb
mov r9, qword [rdi + 0x1e8]
lea rax, [0x1804f9d00]
lea rcx, [rsi + rsi*2]
mov edx, 2
add rcx, rax
mov r8d, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov r9, qword [rdi + 0x1e8]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x18022ccb0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
cdqe
add rsp, 0x28
ret
Function at 0x18022cfa0
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x18022cfca
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1804fa7b8]
mov rcx, rbx
mov r14, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strpbrk
test rax, rax
je 0x18022d02b
mov rcx, rbx
test r14, r14
je 0x18022d018
xor edx, edx
mov r8d, 8
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test r14, r14
je 0x18022d062
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18022d062
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x18022d12a
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x40], rsi
mov rdx, rdi
nop dword [rax + rax]
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x18022d090
lea ecx, [rax + 1]
add rcx, rdx
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x18022d11c
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x18022d11c
mov rax, rdi
cmp byte [rsi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x18022d0c0
mov word [rax + rsi], 0x5c
inc rdi
cmp byte [rsi + rdi], bpl
jne 0x18022d0d1
mov rax, rsi
sub rax, rbx
add rdi, rax
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rdi + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x18022d0f0
mov rcx, rsi
test r14, r14
je 0x18022d113
xor edx, edx
mov r8d, 8
call r14
jmp 0x18022d119
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rsi
call qword [case.0x18021b705.0]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x18023eb30
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rbx, rcx
movaps xmmword [rsp + 0x50], xmm6
lea rcx, [rsp + 0x30]
mov rdi, rdx
call fcn.18021a220
mov rcx, rbx
movups xmm6, xmmword [rax]
call case.0x18021b705.2
mov rcx, rdi
mov rsi, rax
call case.0x18021b705.2
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x18023ebe0
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.18021a220
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.18021a2b0
cmp rax, 0x3e8
ja 0x18023ec11
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x18023eb90
test rsi, rsi
je 0x18023ebed
mov rcx, rsi
call case.0x18021b705.0
test rbx, rbx
je 0x18023ebfa
mov rcx, rbx
call case.0x18021b705.0
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
test rsi, rsi
je 0x18023ec1e
mov rcx, rsi
call case.0x18021b705.0
test rbx, rbx
je 0x18023ec2b
mov rcx, rbx
call case.0x18021b705.0
mov eax, 1
jmp 0x18023ebfc
Function at 0x18023f190
Capabilities:
Resolve dns

Disassembly:
push rbp
push rdi
push r12
push r13
sub rsp, 0x28
mov r13, r9
xor edi, edi
mov qword [r9], rdi
xor ebp, ebp
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x18023f32f
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x68]
test rsi, rsi
je 0x18023f30f
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x20], r15
nop dword [rax]
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x18023f1fe
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x18023f1f0
inc rbx
jmp 0x18023f200
xor ebx, ebx
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x18023f210
mov r15d, reloc.WS2_32.dll_recv
jmp 0x18023f21f
cmp eax, 0x17
jne 0x18023f2b8
mov r15d, Ordinal_32
cmp qword [rsi + 0x20], 0
je 0x18023f2b8
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x18023f2b8
cmp rax, r15
jb 0x18023f2b8
lea rcx, [rbx + 0x30]
add rcx, r15
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
je 0x18023f2c7
mov ecx, dword [rsi]
mov r8, r15
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [r14 + 0x30]
mov dword [rax + 0x10], r15d
xor eax, eax
mov qword [r14 + 0x18], rax
mov qword [r14 + 0x28], rax
mov qword [r14 + 0x20], rcx
mov rdx, qword [rsi + 0x20]
call sub.VCRUNTIME140.dll_memcpy
test rbx, rbx
je 0x18023f2a5
mov rcx, qword [r14 + 0x20]
mov r8, rbx
add rcx, r15
mov qword [r14 + 0x18], rcx
mov rdx, qword [rsi + 0x18]
call sub.VCRUNTIME140.dll_memcpy
test rdi, rdi
cmove rdi, r14
test rbp, rbp
je 0x18023f2b5
mov qword [rbp + 0x28], r14
mov rbp, r14
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x18023f1e0
jmp 0x18023f2cd
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x60]
test rcx, rcx
je 0x18023f2e7
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x18023f30a
test rdi, rdi
je 0x18023f306
mov rbx, qword [rdi + 0x28]
mov rcx, rdi
call qword [case.0x18021b705.0]
mov rdi, rbx
test rbx, rbx
jne 0x18023f2f1
xor edi, edi
jmp 0x18023f31e
test rdi, rdi
jne 0x18023f31e
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rsi, qword [rsp + 0x58]
mov eax, r12d
mov rbx, qword [rsp + 0x50]
mov qword [r13], rdi
add rsp, 0x28
pop r13
pop r12
pop rdi
pop rbp
ret

Function at 0x18023f7a0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rbx
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call sub.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex
test rax, rax
je 0x18023f7d6
cmp rax, 0xffffffffffffffff
cmovne rbx, rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret
add rsp, 0x30
pop rbx
ret