joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400043f0]
mov dword [rax], 1
mov rax, qword [0x140004400]
mov dword [rax], 1
mov rax, qword [0x140004410]
mov dword [rax], 1
mov rax, qword [0x1400043a0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400015e0
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x16]
movzx eax, ax
and eax, 0x2000
test eax, eax
je 0x14000165e
mov r9d, 0x10
lea r8, str.Hata
lea rax, str.RunPE_tespit_edildi_
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
mov eax, 1
add rsp, 0x40
pop rbp
ret

Function at 0x140001a00
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop
Function at 0x140002c20
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, r8
mov rdi, rdx
test byte [rcx], 1
je 0x140002c3a
mov rcx, qword [rcx + 0x10]
jmp 0x140002c3e
add rcx, 2
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
xor r14d, r14d
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x140002cad
mov rbx, rax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov rcx, rax
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.DLL_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_FlushFileBuffers]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov r14d, dword [rsp + 0x44]
mov eax, r14d
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140017ef0
Capabilities:
Get file size
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, rdx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor ebx, ebx
mov edx, 1
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov rdi, rax
inc rax
cmp rax, 2
jb 0x140017faf
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
mov dword [rsp + 0x44], 0
mov rdx, qword [rsp + 0x48]
test rdx, rdx
jle 0x140017f6b
mov rcx, rsi
xor r8d, r8d
call fcn.140075670
test byte [rsi], 1
je 0x140017f78
mov rsi, qword [rsi + 0x10]
jmp 0x140017f7b
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
xor ebx, ebx
jmp 0x140017faf
inc rsi
mov r8d, dword [rsp + 0x48]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.DLL_ReadFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [rsp + 0x44]
cmp qword [rsp + 0x48], rax
sete bl
mov eax, ebx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
Function at 0x14002fc80
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
xor edi, edi
cmp qword [rcx + 0x78], 0
je 0x14002fdc6
mov rsi, rcx
mov rcx, qword [rcx + 0x80]
test rcx, rcx
je 0x14002fe4a
mov eax, dword [rsi + 0x94]
test al, 0x10
jne 0x14002fce2
test al, 8
je 0x14002fdc6
mov eax, dword [rsi + 0x8c]
mov dword [rsp + 0x2c], eax
cmp byte [rsi + 0x9a], 0
je 0x14002fd82
mov rbx, qword [rsi + 0x20]
sub rbx, qword [rsi + 0x18]
jmp 0x14002fda8
mov rax, qword [rsi + 0x30]
cmp rax, qword [rsi + 0x28]
je 0x14002fd08
mov rax, qword [rsi]
mov edi, 0xffffffff
mov rcx, rsi
mov edx, 0xffffffff
call qword [rax + 0x68]
cmp eax, 0xffffffff
je 0x14002fdc6
lea rdi, [rsi + 0x88]
lea r15, [rsp + 0x30]
nop word cs:[rax + rax]
mov r8, qword [rsi + 0x40]
mov rcx, qword [rsi + 0x80]
mov r9, qword [rsi + 0x60]
add r9, r8
mov rax, qword [rcx]
mov qword [rsp + 0x20], r15
mov rdx, rdi
call qword [rax + 0x28]
mov ebx, eax
mov r14, qword [rsp + 0x30]
mov rcx, qword [rsi + 0x40]
mov r9, qword [rsi + 0x78]
sub r14, rcx
mov edx, 1
mov r8, r14
call sub.msvcrt.dll_fwrite
cmp rax, r14
jne 0x14002fdc1
cmp ebx, 1
je 0x14002fd20
cmp ebx, 2
je 0x14002fdc1
mov rcx, qword [rsi + 0x78]
call sub.msvcrt.dll_fflush
mov edi, 0
test eax, eax
jne 0x14002fdc1
jmp 0x14002fdc6
mov rax, qword [rcx]
call qword [rax + 0x30]
mov r9, qword [rsi + 0x48]
mov rbx, qword [rsi + 0x50]
sub rbx, r9
test eax, eax
jle 0x14002fe0b
mov rcx, qword [rsi + 0x20]
sub rcx, qword [rsi + 0x18]
mov eax, eax
imul rcx, rax
add rbx, rcx
xor ebp, ebp
mov rcx, qword [rsi + 0x78]
neg ebx
mov edx, ebx
mov r8d, 1
call fcn.14009df40
test eax, eax
je 0x14002fdd5
mov edi, 0xffffffff
mov eax, edi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
test bpl, bpl
je 0x14002fde4
mov eax, dword [rsp + 0x2c]
mov dword [rsi + 0x88], eax
mov rax, qword [rsi + 0x40]
mov qword [rsi + 0x50], rax
mov qword [rsi + 0x48], rax
mov dword [rsi + 0x94], 0
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
mov qword [rsi + 0x20], 0
jmp 0x14002fdc6
mov rax, qword [rsi + 0x18]
cmp rax, qword [rsi + 0x20]
je 0x14002fda8
mov r8, qword [rsi + 0x40]
mov rcx, qword [rsi + 0x80]
sub rax, qword [rsi + 0x10]
mov r10, qword [rcx]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x2c]
call qword [r10 + 0x40]
mov eax, eax
add rbx, qword [rsi + 0x48]
add rax, qword [rsi + 0x40]
sub rbx, rax
mov bpl, 1
jmp 0x14002fdaa
call fcn.140030330
int3
Function at 0x1400348b0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rcx + 0x10]
cmp rbx, qword [rcx + 0x18]
jne 0x1400349d3
mov rax, qword [rsi]
mov rdx, qword [rsi + 8]
mov rcx, rdx
sub rcx, rax
jbe 0x14003491b
sar rcx, 3
lea rax, [rcx + 1]
shr rax, 0x3f
lea r14, [rcx + rax]
inc r14
shr r14, 1
shl r14, 3
mov rcx, rdx
sub rcx, r14
mov r8, rbx
sub r8, rdx
call sub.msvcrt.dll_memmove
sub rbx, r14
mov qword [rsi + 0x10], rbx
sub qword [rsi + 8], r14
jmp 0x1400349d3
mov rcx, rbx
sub rcx, rax
sar rcx, 2
cmp rbx, rax
mov ebx, 1
cmovne rbx, rcx
mov rax, rbx
shr rax, 0x3d
jne 0x140034a3d
mov r14, rbx
shr r14, 2
lea rcx, [rbx*8]
call fcn.1400731c0
lea rdx, [rax + r14*8]
mov rcx, qword [rsi + 8]
mov r9, qword [rsi + 0x10]
mov r10, r9
sub r10, rcx
lea r8, [rax + rbx*8]
mov rbx, rdx
sub r9, rcx
je 0x1400349b3
and r10, 0xfffffffffffffff8
mov rbx, r10
add rbx, rdx
add r9, 0xfffffffffffffff8
cmp r9, 0x68
jb 0x140034991
lea r10, [rax + r14*8]
sub r10, rcx
cmp r10, 0x20
jae 0x1400349ec
mov r10, rdx
mov r11, rcx
nop word [rax + rax]
mov rcx, qword [r11]
mov qword [r10], rcx
add r10, 8
add r11, 8
cmp r10, rbx
jne 0x1400349a0
mov rcx, qword [rsi]
mov qword [rsi], rax
mov qword [rsi + 8], rdx
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], r8
test rcx, rcx
je 0x1400349d3
call fcn.140073240
mov rbx, qword [rsi + 0x10]
mov rax, qword [rdi]
mov qword [rbx], rax
add qword [rsi + 0x10], 8
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
shr r9, 3
inc r9
shl r14, 3
mov r15, r9
and r15, 0xfffffffffffffffc
lea r10, [rdx + r15*8]
lea r11, [rcx + r15*8]
add r14, rax
add r14, 0x10
xor r12d, r12d
movups xmm0, xmmword [rcx + r12*8]
movups xmm1, xmmword [rcx + r12*8 + 0x10]
movups xmmword [r14 + r12*8 - 0x10], xmm0
movups xmmword [r14 + r12*8], xmm1
add r12, 4
cmp r15, r12
jne 0x140034a10
cmp r9, r15
jne 0x1400349a0
jmp 0x1400349b3
call fcn.140002ba0
int3
Function at 0x140034a50
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rdx, qword [rcx + 8]
cmp rdx, qword [rcx]
jne 0x140034b73
mov r8, qword [rsi + 0x10]
mov rax, qword [rsi + 0x18]
cmp r8, rax
jae 0x140034abd
sub rax, r8
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
lea r14, [rax + rcx]
inc r14
shl r14, 2
and r14, 0xfffffffffffffff8
lea rbx, [r8 + r14]
sub r8, rdx
sub rbx, r8
mov rcx, rbx
call sub.msvcrt.dll_memmove
mov qword [rsi + 8], rbx
add qword [rsi + 0x10], r14
mov rdx, rbx
jmp 0x140034b73
mov rcx, rax
sub rcx, rdx
sar rcx, 2
cmp rax, rdx
mov r14d, 1
cmovne r14, rcx
mov rax, r14
shr rax, 0x3d
jne 0x140034bed
lea rbx, [r14 + 3]
shr rbx, 2
lea rcx, [r14*8]
call fcn.1400731c0
lea rdx, [rax + rbx*8]
mov rcx, qword [rsi + 8]
mov r10, qword [rsi + 0x10]
mov r11, r10
sub r11, rcx
lea r8, [rax + r14*8]
mov r9, rdx
sub r10, rcx
je 0x140034b53
and r11, 0xfffffffffffffff8
mov r9, r11
add r9, rdx
add r10, 0xfffffffffffffff8
cmp r10, 0x68
jb 0x140034b35
lea r11, [rax + rbx*8]
sub r11, rcx
cmp r11, 0x20
jae 0x140034b8d
mov r11, rdx
mov r14, rcx
nop dword [rax + rax]
mov rcx, qword [r14]
mov qword [r11], rcx
add r11, 8
add r14, 8
cmp r11, r9
jne 0x140034b40
mov rcx, qword [rsi]
mov qword [rsi], rax
mov qword [rsi + 8], rdx
mov qword [rsi + 0x10], r9
mov qword [rsi + 0x18], r8
test rcx, rcx
je 0x140034b73
call fcn.140073240
mov rdx, qword [rsi + 8]
mov rax, qword [rdi]
mov qword [rdx - 8], rax
add qword [rsi + 8], 0xfffffffffffffff8
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
shr r10, 3
inc r10
shl rbx, 3
mov r15, r10
and r15, 0xfffffffffffffffc
lea r11, [rdx + r15*8]
lea r14, [rcx + r15*8]
add rbx, rax
add rbx, 0x10
xor r12d, r12d
nop word cs:[rax + rax]
movups xmm0, xmmword [rcx + r12*8]
movups xmm1, xmmword [rcx + r12*8 + 0x10]
movups xmmword [rbx + r12*8 - 0x10], xmm0
movups xmmword [rbx + r12*8], xmm1
add r12, 4
cmp r15, r12
jne 0x140034bc0
cmp r10, r15
jne 0x140034b40
jmp 0x140034b53
call fcn.140002ba0
int3
Function at 0x140034c00
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rdx, qword [rcx + 8]
cmp rdx, qword [rcx]
jne 0x140034d23
mov r8, qword [rsi + 0x10]
mov rax, qword [rsi + 0x18]
cmp r8, rax
jae 0x140034c6d
sub rax, r8
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
lea r14, [rax + rcx]
inc r14
shl r14, 2
and r14, 0xfffffffffffffff8
lea rbx, [r8 + r14]
sub r8, rdx
sub rbx, r8
mov rcx, rbx
call sub.msvcrt.dll_memmove
mov qword [rsi + 8], rbx
add qword [rsi + 0x10], r14
mov rdx, rbx
jmp 0x140034d23
mov rcx, rax
sub rcx, rdx
sar rcx, 2
cmp rax, rdx
mov r14d, 1
cmovne r14, rcx
mov rax, r14
shr rax, 0x3d
jne 0x140034d9d
lea rbx, [r14 + 3]
shr rbx, 2
lea rcx, [r14*8]
call fcn.1400731c0
lea rdx, [rax + rbx*8]
mov rcx, qword [rsi + 8]
mov r10, qword [rsi + 0x10]
mov r11, r10
sub r11, rcx
lea r8, [rax + r14*8]
mov r9, rdx
sub r10, rcx
je 0x140034d03
and r11, 0xfffffffffffffff8
mov r9, r11
add r9, rdx
add r10, 0xfffffffffffffff8
cmp r10, 0x68
jb 0x140034ce5
lea r11, [rax + rbx*8]
sub r11, rcx
cmp r11, 0x20
jae 0x140034d3d
mov r11, rdx
mov r14, rcx
nop dword [rax + rax]
mov rcx, qword [r14]
mov qword [r11], rcx
add r11, 8
add r14, 8
cmp r11, r9
jne 0x140034cf0
mov rcx, qword [rsi]
mov qword [rsi], rax
mov qword [rsi + 8], rdx
mov qword [rsi + 0x10], r9
mov qword [rsi + 0x18], r8
test rcx, rcx
je 0x140034d23
call fcn.140073240
mov rdx, qword [rsi + 8]
mov rax, qword [rdi]
mov qword [rdx - 8], rax
add qword [rsi + 8], 0xfffffffffffffff8
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
shr r10, 3
inc r10
shl rbx, 3
mov r15, r10
and r15, 0xfffffffffffffffc
lea r11, [rdx + r15*8]
lea r14, [rcx + r15*8]
add rbx, rax
add rbx, 0x10
xor r12d, r12d
nop word cs:[rax + rax]
movups xmm0, xmmword [rcx + r12*8]
movups xmm1, xmmword [rcx + r12*8 + 0x10]
movups xmmword [rbx + r12*8 - 0x10], xmm0
movups xmmword [rbx + r12*8], xmm1
add r12, 4
cmp r15, r12
jne 0x140034d70
cmp r10, r15
jne 0x140034cf0
jmp 0x140034d03
call fcn.140002ba0
int3
Function at 0x140035190
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rdx, qword [rcx + 8]
cmp rdx, qword [rcx]
jne 0x1400352b3
mov r8, qword [rsi + 0x10]
mov rax, qword [rsi + 0x18]
cmp r8, rax
jae 0x1400351fd
sub rax, r8
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
lea r14, [rax + rcx]
inc r14
shl r14, 2
and r14, 0xfffffffffffffff8
lea rbx, [r8 + r14]
sub r8, rdx
sub rbx, r8
mov rcx, rbx
call sub.msvcrt.dll_memmove
mov qword [rsi + 8], rbx
add qword [rsi + 0x10], r14
mov rdx, rbx
jmp 0x1400352b3
mov rcx, rax
sub rcx, rdx
sar rcx, 2
cmp rax, rdx
mov r14d, 1
cmovne r14, rcx
mov rax, r14
shr rax, 0x3d
jne 0x14003532d
lea rbx, [r14 + 3]
shr rbx, 2
lea rcx, [r14*8]
call fcn.1400731c0
lea rdx, [rax + rbx*8]
mov rcx, qword [rsi + 8]
mov r10, qword [rsi + 0x10]
mov r11, r10
sub r11, rcx
lea r8, [rax + r14*8]
mov r9, rdx
sub r10, rcx
je 0x140035293
and r11, 0xfffffffffffffff8
mov r9, r11
add r9, rdx
add r10, 0xfffffffffffffff8
cmp r10, 0x68
jb 0x140035275
lea r11, [rax + rbx*8]
sub r11, rcx
cmp r11, 0x20
jae 0x1400352cd
mov r11, rdx
mov r14, rcx
nop dword [rax + rax]
mov rcx, qword [r14]
mov qword [r11], rcx
add r11, 8
add r14, 8
cmp r11, r9
jne 0x140035280
mov rcx, qword [rsi]
mov qword [rsi], rax
mov qword [rsi + 8], rdx
mov qword [rsi + 0x10], r9
mov qword [rsi + 0x18], r8
test rcx, rcx
je 0x1400352b3
call fcn.140073240
mov rdx, qword [rsi + 8]
mov rax, qword [rdi]
mov qword [rdx - 8], rax
add qword [rsi + 8], 0xfffffffffffffff8
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
shr r10, 3
inc r10
shl rbx, 3
mov r15, r10
and r15, 0xfffffffffffffffc
lea r11, [rdx + r15*8]
lea r14, [rcx + r15*8]
add rbx, rax
add rbx, 0x10
xor r12d, r12d
nop word cs:[rax + rax]
movups xmm0, xmmword [rcx + r12*8]
movups xmm1, xmmword [rcx + r12*8 + 0x10]
movups xmmword [rbx + r12*8 - 0x10], xmm0
movups xmmword [rbx + r12*8], xmm1
add r12, 4
cmp r15, r12
jne 0x140035300
cmp r10, r15
jne 0x140035280
jmp 0x140035293
call fcn.140002ba0
int3
Function at 0x14003fe00
Capabilities:
Parse credit card information

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov rsi, rdx
cmp rdx, r8
je 0x14003ff4c
mov rbx, r8
mov rdi, rcx
movzx eax, word [rsi]
cmp eax, 0x5b
jg 0x14003fecb
cmp eax, 0x24
je 0x14003ff06
cmp eax, 0x28
jne 0x14003ff4c
lea rax, [rsi + 2]
cmp rax, rbx
je 0x14003ff4c
cmp word [rax], 0x3f
jne 0x14003ff4c
lea rax, [rsi + 4]
cmp rax, rbx
je 0x14003ff4c
movzx eax, word [rax]
cmp eax, 0x21
je 0x140040005
cmp eax, 0x3d
jne 0x14003ff4c
lea r14, [rsp + 0x20]
mov rcx, r14
call fcn.140040850
mov eax, dword [rdi + 0x18]
mov dword [rsp + 0x38], eax
add rsi, 6
mov rcx, r14
mov rdx, rsi
mov r8, rbx
call fcn.14003f020
mov rsi, rax
mov ebp, dword [rsp + 0x3c]
mov r9d, dword [rdi + 0x1c]
lea rdx, [rsp + 0x20]
mov rcx, rdi
xor r8d, r8d
call fcn.1400408c0
add dword [rdi + 0x1c], ebp
cmp rsi, rbx
je 0x14003fec6
cmp word [rsi], 0x29
je 0x140040054
call fcn.140040970
cmp eax, 0x5c
je 0x14003ff5a
cmp eax, 0x5e
jne 0x14003ff4c
mov ecx, 0x18
call fcn.1400731c0
mov ecx, 0x5f0
and ecx, dword [rdi + 0x18]
cmp ecx, 0x400
mov rcx, qword [rdi + 0x38]
mov rdx, qword [rcx + 8]
mov qword [rax + 8], rdx
lea rdx, [0x14025f350]
jmp 0x14003ff31
mov ecx, 0x18
call fcn.1400731c0
mov ecx, 0x5f0
and ecx, dword [rdi + 0x18]
cmp ecx, 0x400
mov rcx, qword [rdi + 0x38]
mov rdx, qword [rcx + 8]
mov qword [rax + 8], rdx
lea rdx, [0x14025f3c0]
mov qword [rax], rdx
sete byte [rax + 0x10]
mov qword [rcx + 8], rax
mov rax, qword [rdi + 0x38]
mov rax, qword [rax + 8]
mov qword [rdi + 0x38], rax
add rsi, 2
mov rax, rsi
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
lea rax, [rsi + 2]
cmp rax, rbx
je 0x14003ff4c
movzx eax, word [rax]
cmp eax, 0x42
je 0x14003ffad
cmp eax, 0x62
jne 0x14003ff4c
mov ecx, 0x30
call fcn.1400731c0
mov rbx, rax
mov rax, qword [rdi + 0x38]
mov rax, qword [rax + 8]
mov qword [rbx + 8], rax
lea rax, [0x14025f430]
mov qword [rbx], rax
lea rcx, [rbx + 0x10]
mov rdx, rdi
call fcn.140095100
movups xmm0, xmmword [rdi + 8]
movups xmmword [rbx + 0x18], xmm0
mov byte [rbx + 0x28], 0
jmp 0x14003ffe8
mov ecx, 0x30
call fcn.1400731c0
mov rbx, rax
mov rax, qword [rdi + 0x38]
mov rax, qword [rax + 8]
mov qword [rbx + 8], rax
lea rax, [0x14025f430]
mov qword [rbx], rax
lea rcx, [rbx + 0x10]
mov rdx, rdi
call fcn.140095100
movups xmm0, xmmword [rdi + 8]
movups xmmword [rbx + 0x18], xmm0
mov byte [rbx + 0x28], 1
mov rax, qword [rdi + 0x38]
mov qword [rax + 8], rbx
mov rax, qword [rdi + 0x38]
mov rax, qword [rax + 8]
mov qword [rdi + 0x38], rax
add rsi, 4
jmp 0x14003ff4c
lea r14, [rsp + 0x20]
mov rcx, r14
call fcn.140040850
mov eax, dword [rdi + 0x18]
mov dword [rsp + 0x38], eax
add rsi, 6
mov rcx, r14
mov rdx, rsi
mov r8, rbx
call fcn.14003f020
mov rsi, rax
mov ebp, dword [rsp + 0x3c]
mov r9d, dword [rdi + 0x1c]
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov r8b, 1
call fcn.1400408c0
add dword [rdi + 0x1c], ebp
cmp rsi, rbx
je 0x140040067
cmp word [rsi], 0x29
jne 0x140040067
add rsi, 2
lea rcx, [rsp + 0x20]
call fcn.140020740
jmp 0x14003ff4c
call fcn.140040970
jmp 0x140040072
mov rsi, rax
lea rcx, [rsp + 0x20]
call fcn.140020740
mov rcx, rsi
call fcn.14009d370
int3
Function at 0x14004e1a0
Capabilities:
Initialize winsock library

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1c0
movzx eax, byte [0x1402daaad]
test al, al
jne 0x14004e1f2
test cl, cl
jne 0x14004e1f2
lea rsi, [rsp + 0x28]
mov rbx, qword [sym.imp.WS2_32.dll_WSAStartup]
lea rdi, str.winsocks_init_faild
nop dword [rax]
mov cx, 0x202
mov rdx, rsi
call rbx
test eax, eax
je 0x14004e208
mov rcx, rdi
mov dl, 1
call fcn.140011c60
cmp byte [0x1402daaad], 0
je 0x14004e1d0
jmp 0x14004e20f
and cl, al
cmp cl, 1
jne 0x14004e20f
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov byte [0x1402daaad], 0
jmp 0x14004e20f
mov byte [0x1402daaad], 1
add rsp, 0x1c0
pop rbx
pop rdi
pop rsi
ret

Function at 0x14004e220
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get socket status
Set socket configuration

Disassembly:
push rsi
push rdi
sub rsp, 0x98
mov rdi, rcx
mov ecx, 2
mov edx, 1
mov r8d, 6
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
mov qword [rsp + 0x40], 0
mov word [rsp + 0x38], 2
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x3c], eax
mov cx, 0x1bd
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x3a], ax
mov dword [rsp + 0x34], 1
lea r8, [rsp + 0x34]
mov rcx, rsi
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
lea rdx, [rsp + 0x38]
mov rcx, rsi
mov r8d, 0x10
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rsp + 0x80], 1
mov qword [rsp + 0x88], rsi
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x58], rsi
mov dword [rsp + 0x68], 1
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x48], 4
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x68]
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x80]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x14004e312
cmp dword [rsp + 0x50], 0
setne dil
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x14004e31d
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
xor edi, edi
mov eax, edi
add rsp, 0x98
pop rdi
pop rsi
ret
Function at 0x140051300
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rcx
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], 0
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea rdx, str.HARDWAREDESCRIPTIONSystemCentralProcessor0
mov rcx, 0xffffffff80000002
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140051428
mov rcx, qword [rsp + 0x38]
lea rbx, [rsp + 0x30]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 0
lea rdx, str.ProcessorNameString
lea r9, [rsp + 0x34]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [rsp + 0x30]
mov rcx, rsi
xor r8d, r8d
call fcn.140075670
mov rcx, qword [rsp + 0x38]
lea rdi, [rsi + 1]
test byte [rsi], 1
mov rax, rdi
je 0x1400513a8
mov rax, qword [rsi + 0x10]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
lea rdx, str.ProcessorNameString
lea r9, [rsp + 0x34]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
movzx eax, byte [rsi]
test al, 1
je 0x1400513da
mov rdx, qword [rsi + 8]
cmp rdx, 2
jne 0x1400513e6
jmp 0x14005141d
mov rdx, rax
shr rdx, 1
cmp rdx, 2
je 0x14005141d
test al, 1
je 0x1400513ee
mov rdi, qword [rsi + 0x10]
dec rdx
nop word cs:[rax + rax]
cmp byte [rdi + rdx - 1], 0x20
jne 0x140051412
dec rdx
cmp rdx, 1
jne 0x140051400
jmp 0x14005141d
mov rcx, rsi
xor r8d, r8d
call fcn.140075670
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret

Function at 0x140051450
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rcx
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], 0
mov dword [rsp + 0x3c], 1
mov dword [rsp + 0x38], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14005151c
mov rcx, qword [rsp + 0x40]
lea rdi, [rsp + 0x38]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
lea rdx, [0x140261495]
lea r9, [rsp + 0x3c]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [rsp + 0x38]
mov rcx, rsi
xor r8d, r8d
call fcn.140075670
mov rcx, qword [rsp + 0x40]
test byte [rsi], 1
je 0x1400514ee
mov rax, qword [rsi + 0x10]
jmp 0x1400514f2
lea rax, [rsi + 1]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
lea rdx, [0x140261495]
lea r9, [rsp + 0x3c]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rsi
add rsp, 0x48
pop rdi
pop rsi
ret