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

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140016040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400066b3
cmp byte [rcx + 0x71], 0
je 0x1400066b3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400066af
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 0x140006674
sub eax, 1
je 0x140006678
cmp eax, 2
jne 0x1400066af
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000eae0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400066a6
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 0x1400066af
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000665c
xor al, al
jmp 0x14000665c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000eae0
add rsp, 0x60
pop rbx
ret

Function at 0x14000c180
Capabilities:
Encode data using xor

Disassembly:
cmp rdx, r8
jge 0x14000c1fa
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
mov qword [rsp + 0x40], rdi
mov rsi, r8
mov rdi, qword [rcx + 8]
mov rbx, rdx
mov qword [rsp + 0x48], r14
mov r14, qword [rcx]
movaps xmmword [rsp + 0x20], xmm6
movss xmm6, dword [0x140011bd0]
mov rax, qword [rdi + 0x10]
movss xmm0, dword [rax + rbx*4]
xorps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_expf
addss xmm0, dword [rdi + 8]
movss xmm1, dword [rdi]
mov rax, qword [r14]
divss xmm1, xmm0
movss dword [rax + rbx*4], xmm1
inc rbx
cmp rbx, rsi
jl 0x14000c1b3
movaps xmm6, xmmword [rsp + 0x20]
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret

Function at 0x14000f610
Capabilities:
Parse pe header

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

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

Function at 0x140022d68
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140022dd7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140022dd7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140022dd7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140022dd7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140022dd7
cmp dword [rcx + 0x84], 0xe
jbe 0x140022dd7
cmp dword [rcx + 0xf8], 0
je 0x140022dd7
mov ecx, ebx
call fcn.140022e88
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140022c64
nop
cmp dword [rbp + 0x20], 0
je 0x140022e25
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140022e30
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140022d68

Function at 0x140022f6c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140022d68
Function at 0x14002bf0c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14002bf3c
xor eax, eax
jmp 0x14002bfff
mov rbp, rbx
cmp word [rax], si
je 0x14002bf61
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002bf48
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002bf44
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14002a6c8
movsxd r14, eax
test eax, eax
jne 0x14002bf9f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002bf35
mov rcx, r14
call fcn.140026c60
mov rdi, rax
test rax, rax
jne 0x14002bfb8
xor ecx, ecx
call fcn.140025b24
jmp 0x14002bf94
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14002a6c8
test eax, eax
jne 0x14002bfe9
mov rcx, rdi
call fcn.140025b24
jmp 0x14002bff3
xor ecx, ecx
call fcn.140025b24
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14002ecc8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140028610
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14002ed69
cmp ebx, dword [rsp + 0x30]
je 0x14002ed62
test esi, esi
je 0x14002ed62
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14002ed3d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14002ed4a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14002ed27
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14002ed4e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14002ed6b
mov eax, 1
jmp 0x14002ed6b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140031e94
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140031eaa
mov al, 1
jmp 0x140031f0a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140031ebb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140031f08
mov ecx, dword [rcx + 0x18]
nop
call fcn.14002c774
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140031f08
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140031f08
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140031f08
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140031f0a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140032ef4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14001d2bc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140032f7e
cmp byte [rbp - 0x21], r15b
je 0x140032f79
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140032fb4
call fcn.140025e28
test eax, eax
jne 0x140032fa0
cmp byte [rbp - 0x21], r15b
je 0x140032f98
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140032fb4
cmp byte [rbp - 0x21], r15b
je 0x140032fb1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140021bf8
test eax, eax
jne 0x140033054
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14001d2bc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140032ff3
cmp byte [rbp - 0x21], r15b
je 0x140033028
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140033028
call fcn.140025e28
test eax, eax
jne 0x140033014
cmp byte [rbp - 0x21], r15b
je 0x14003300d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140033028
cmp byte [rbp - 0x21], r15b
je 0x140033025
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140021bf8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140033054
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140033057
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140033065
mov rcx, rdi
call fcn.140025b24
cmp byte [rbp + 0x3f], r15b
je 0x140033074
mov rcx, qword [rbp + 0x27]
call fcn.140025b24
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140035150
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140035178
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140035178
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400259cc
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1401142c0]
test rax, rax
je 0x1400259ee
call rax
mov al, 1
jmp 0x140025b4a
xor r9d, r9d
mov dword [rbp - 0x30], 0xb50b0266
mov cl, 0x66
mov dword [rbp - 0x2c], 0x1e5ae509
mov dword [rbp - 0x28], 0xa415e9
movabs rbx, 0x8080808080808081
lea r10d, [r9 + 0xa]
movsx eax, cl
inc eax
movsxd r8, eax
lea rax, [r9 + 0xa]
imul r8, rax
mov rax, rbx
mul r8
shr rdx, 7
imul rax, rdx, 0xff
movsx rdx, cl
sub r8, rax
mov al, r9b
and al, 7
shl al, 3
mov cl, al
mov rax, rbx
sar rdx, cl
mov rcx, r10
xor r8b, dl
mul r10
add r10, 0xa
shr rdx, 7
imul rax, rdx, 0xff
sub rcx, rax
xor r8b, cl
xor byte [rbp + r9 - 0x2f], r8b
inc r9
cmp r10, 0x6e
jae 0x140025a7f
mov cl, byte [rbp - 0x30]
jmp 0x140025a16
lea rcx, [rbp - 0x2f]
mov byte [rbp - 0x25], 0
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r9, rax
test rax, rax
je 0x140025b48
movdqa xmm0, xmmword [0x1400fb420]
xor eax, eax
movdqu xmmword [rbp - 0x20], xmm0
mov dword [rbp - 0x10], 0x3f837110
xor r10d, r10d
mov word [rbp - 0xc], 0xeccd
lea r11d, [rax + 0x15]
mov byte [rbp - 0xa], al
movsx eax, byte [rbp - 0x20]
mov cl, r10b
inc eax
and cl, 7
movsxd r8, eax
lea rax, [r10 + 0x15]
imul r8, rax
shl cl, 3
mov rax, rbx
mul r8
shr rdx, 7
imul rax, rdx, 0xff
movsx rdx, byte [rbp - 0x20]
sub r8, rax
sar rdx, cl
xor r8b, dl
mov rcx, r11
mov rax, rbx
mul r11
add r11, 0x15
shr rdx, 7
imul rax, rdx, 0xff
sub rcx, rax
xor r8b, cl
xor byte [rbp + r10 - 0x1f], r8b
inc r10
cmp r11, 0x1ce
jb 0x140025abf
lea rdx, [rbp - 0x1f]
mov byte [rbp - 0xa], 0
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401142c0], rax
test rax, rax
jne 0x1400259e5
xor al, al
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret

Function at 0x140025b58
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x140105700]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov esi, ecx
xor ebx, ebx
xor edx, edx
lea ecx, [rbx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140025bd3
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
jmp 0x140025bc0
cmp dword [rsp + 0x28], esi
je 0x140025bc6
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140025bac
jmp 0x140025bca
mov ebx, dword [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400a5cf0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140025c68
Capabilities:
Create process on windows
Enumerate gui resources

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xf0
mov rax, qword [0x140105700]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xor edx, edx
mov rbx, rcx
lea rcx, [rsp + 0x74]
lea r8d, [rdx + 0x64]
call fcn.1400cfdc0
xor eax, eax
mov dword [rsp + 0x70], WSAGetLastError
mov qword [rsp + 0x60], rax
xorps xmm0, xmm0
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x40], rax
mov rcx, rbx
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
and dword [rsp + 0x20], 0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140025d44
mov edi, dword [rsp + 0x60]
xor ebx, ebx
mov rdx, rdi
lea rcx, [0x140025bfc]
call qword [sym.imp.USER32.dll_EnumWindows]
cmp byte [0x1401142b8], 0
jne 0x140025d2c
mov ecx, 5
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x3a98
jl 0x140025cfe
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1400a5cf0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140025d6c
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140105700]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rcx
mov qword [rbp - 0x30], rcx
and dword [rbp - 0x60], 0
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
and qword [rcx + 0x10], 0
and qword [rcx + 0x10], 0
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], 0
mov dword [rbp - 0x60], 1
mov rcx, qword gs:[0x60]
mov qword [rbp - 0x58], rcx
movabs rax, 0x8080808080808081
mul rcx
mov rdi, rdx
shr rdi, 7
add dil, cl
xor esi, esi
lea r14, [rbp - 0x58]
mov r15d, dword [rbp - 0x60]
xor dil, byte [r14]
movzx eax, dil
mov dil, al
mov r8d, eax
lea r9, [rbp - 0x13]
dec r9
mov eax, 0xcccccccd
mul r8d
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r9], r8b
mov r8d, edx
test edx, edx
jne 0x140025e04
lea r8, [rbp - 0x13]
mov rdx, r9
lea rcx, [rbp - 0x50]
call fcn.14004866c
or r15d, 6
mov dword [rbp - 0x60], r15d
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 0xf
cmova rdx, qword [rbp - 0x50]
mov r8, qword [rbp - 0x40]
mov rcx, rbx
call fcn.1400477a4
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 0xf
jbe 0x140025e97
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025e92
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140025ed1
call fcn.1400a5d10
inc esi
inc r14
cmp esi, 8
jb 0x140025df3
mov rax, rbx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400a5cf0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.1400ae460
int3
Function at 0x14004760c
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x140047670
lea r8, [r9 + 8]
mov r11d, 0x7fffffff
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
and edx, r11d
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140047630
mov ecx, dword [r9]
jmp 0x14004774d
cmp ecx, 0x4e0
jb 0x14004774d
lea r10, [r9 + 0x9c4]
mov esi, 0xe3
mov edi, dword [r10]
mov r11d, 0x7fffffff
mov eax, edi
mov r8, r10
add r10, 4
mov edi, dword [r10]
mov edx, edi
xor edx, eax
and edx, r11d
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rsi, 1
jne 0x140047691
lea r10, [r9 + 0xd50]
mov esi, 0x18c
mov edi, dword [r10]
mov eax, edi
mov r8, r10
mov edx, eax
add r10, 4
mov edi, dword [r10]
xor edx, edi
and edx, r11d
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rsi, 1
jne 0x1400476db
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
and edx, r11d
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov rsi, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
ret

Function at 0x140047c38
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [rcx + 4], edx
lea r9, [rcx + 8]
mov r8d, 1
mov r10d, 0x270
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, r8d
inc r8
mov dword [r9], edx
lea r9, [r9 + 4]
cmp r8, r10
jb 0x140047c4b
mov dword [rcx], r10d
ret
Function at 0x140051400
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x1400514e2
call fcn.140068070
test al, al
jne 0x1400514e2
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x140051432
mov r8, rdi
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, rbx
call fcn.1400730b0
test rax, rax
je 0x140051477
sub rax, rbx
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov r8, rax
mov rcx, rbx
call fcn.1400730b0
mov rsi, rax
test rax, rax
je 0x140051477
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 0x1400514ab
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.140063670
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x140051490
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 0x140061470
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x140105700]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x1400614d6
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400614b9
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x1400614b3
shr ax, 8
cmp al, 2
je 0x1400614d6
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1400a5cf0
add rsp, 0x1e8
ret
call fcn.140097410
test eax, eax
jne 0x1400616d5
mov qword [rsp + 0x200], rsi
lea rcx, [0x1400e0b50]
mov qword [rsp + 0x208], rdi
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x140061516
mov qword [0x140106608], rsi
jmp 0x140061692
mov qword [rsp + 0x1f0], rbx
lea rdx, str.LoadLibraryExA
mov rcx, rdi
mov qword [rsp + 0x1f8], rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rbx, str.iphlpapi.dll
mov rbp, rax
mov rcx, rbx
lea rdx, [0x1400e0b70]
call fcn.1400b3600
test rax, rax
je 0x14006157a
mov rcx, rbx
test rbp, rbp
je 0x14006156c
xor edx, edx
lea r8d, [rdx + 8]
call rbp
mov rsi, rax
jmp 0x14006165a
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
jmp 0x14006165a
test rbp, rbp
je 0x1400615a9
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400615a9
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call rbp
mov rsi, rax
jmp 0x14006165a
xor edx, edx
mov qword [rsp + 0x1e0], r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r14d, eax
test eax, eax
je 0x140061652
lea ecx, [rax + 1]
add rcx, 0xc
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x140061649
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x140061649
mov rcx, 0xffffffffffffffff
mov rax, rcx
cmp byte [rdi + rax + 1], sil
lea rax, [rax + 1]
jne 0x1400615f5
mov word [rax + rdi], 0x5c
inc rcx
cmp byte [rdi + rcx], sil
jne 0x140061606
mov rdx, rdi
sub rdx, rbx
add rdx, rcx
nop dword [rax + rax]
movzx eax, byte [rbx]
mov byte [rdx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x140061620
mov rcx, rdi
test rbp, rbp
je 0x140061640
xor edx, edx
lea r8d, [rdx + 8]
call rbp
jmp 0x140061646
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
mov rcx, rdi
call qword [fcn.1400b1528]
mov r14, qword [rsp + 0x1e0]
mov rbp, qword [rsp + 0x1f8]
mov rbx, qword [rsp + 0x1f0]
mov qword [0x140106608], rsi
test rsi, rsi
je 0x140061692
lea rdx, str.if_nametoindex
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140061692
mov qword [0x140106600], rax
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.140096fc0
test al, al
lea rcx, [0x1401142e0]
setne byte [0x1401142d8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rdi, qword [rsp + 0x208]
xor eax, eax
mov rsi, qword [rsp + 0x200]
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1400a5cf0
add rsp, 0x1e8
ret
Function at 0x140073860
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.1400517f0
mov rcx, rbx
movups xmm6, xmmword [rax]
call case.0x14005a3a3.1
mov rcx, rdi
mov rsi, rax
call case.0x14005a3a3.1
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x140073910
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.1400517f0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.140051880
cmp rax, 0x3e8
ja 0x140073941
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 0x1400738c0
test rsi, rsi
je 0x14007391d
mov rcx, rsi
call fcn.1400b1528
test rbx, rbx
je 0x14007392a
mov rcx, rbx
call fcn.1400b1528
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 0x14007394e
mov rcx, rsi
call fcn.1400b1528
test rbx, rbx
je 0x14007395b
mov rcx, rbx
call fcn.1400b1528
mov eax, 1
jmp 0x14007392c