joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005238
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140005258
xor eax, eax
jmp 0x14000533e
cmp qword [rcx + 0x68], 0
je 0x140005269
call fcn.140005a5c
jmp 0x14000533e
mov rax, qword [rcx + 0x38]
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140005280
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140005282
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400052b4
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.1400b66d0
mov rax, qword [rsi + 0x50]
add r14, rbx
sub rdi, rbx
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140005338
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400052eb
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
mov ebx, 0xfff
jmp 0x140005314
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14008be94
add r14, rax
sub rdi, rax
cmp rax, rbx
jne 0x140005338
cmp rdi, rbx
ja 0x1400052f2
test rdi, rdi
je 0x140005338
mov r9, qword [rsi + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call fcn.14008be94
sub rdi, rax
sub rbp, rdi
mov rax, rbp
add rsp, 0x20
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000ea70
Capabilities:
Encode data using xor
Hash data with crc32

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
push r15
or ebx, 0xffffffff
lea r15, [0x1400d9cc0]
mov rdi, rdx
mov r14, rcx
cmp rdx, 0x140
jb 0x14000ebdb
lea rsi, [rdx - 0x100]
shr rsi, 6
imul rax, rsi, 0xffffffffffffffc0
add rdi, rax
mov ebp, 4
xor ebx, dword [r14]
mov r9d, dword [r14 + 4]
mov r10d, dword [r14 + 8]
mov r11d, dword [r14 + 0xc]
add r14, 0x10
mov r8d, ebx
mov eax, ebx
shr rax, 0x10
movzx edx, al
mov eax, ebx
shr rax, 8
movzx ecx, al
mov eax, r9d
mov ebx, dword [r15 + rdx*4 + 0x3400]
shr rax, 0x10
xor ebx, dword [r15 + rcx*4 + 0x3800]
movzx ecx, al
mov eax, r9d
shr rax, 8
xor ebx, dword [r15 + rcx*4 + 0x2400]
movzx ecx, al
mov eax, r10d
shr rax, 0x10
xor ebx, dword [r15 + rcx*4 + 0x2800]
movzx ecx, al
mov eax, r10d
shr rax, 8
xor ebx, dword [r15 + rcx*4 + 0x1400]
movzx ecx, al
mov eax, r11d
shr rax, 0x10
xor ebx, dword [r15 + rcx*4 + 0x1800]
movzx ecx, al
mov eax, r11d
shr rax, 8
xor ebx, dword [r15 + rcx*4 + 0x400]
movzx ecx, al
mov eax, r8d
shr rax, 0x18
xor ebx, dword [r15 + rcx*4 + 0x800]
xor ebx, dword [r15 + rax*4 + 0x3000]
mov eax, r9d
shr rax, 0x18
xor ebx, dword [r15 + rax*4 + 0x2000]
mov eax, r10d
shr rax, 0x18
xor ebx, dword [r15 + rax*4 + 0x1000]
mov eax, r11d
shr rax, 0x18
xor ebx, dword [r15 + rax*4]
movzx eax, r8b
xor ebx, dword [r15 + rax*4 + 0x3c00]
movzx eax, r9b
xor ebx, dword [r15 + rax*4 + 0x2c00]
movzx eax, r10b
xor ebx, dword [r15 + rax*4 + 0x1c00]
movzx eax, r11b
xor ebx, dword [r15 + rax*4 + 0xc00]
sub rbp, 1
jne 0x14000eabb
sub rsi, 1
jne 0x14000eab6
test rdi, rdi
je 0x14000ebfa
movzx eax, byte [r14]
inc r14
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [r15 + rcx*4]
sub rdi, 1
jne 0x14000ebe0
mov rbp, qword [rsp + 0x20]
not ebx
mov rsi, qword [rsp + 0x28]
mov eax, ebx
mov rbx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x30]
pop r15
pop r14
ret
Function at 0x14000edc8
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x1400ee200]
xor rax, rsp
mov qword [rbp + 0x18], rax
mov rdi, rdx
mov rbx, rcx
mov dword [rsp + 0x70], WSAGetLastError
xor esi, esi
mov qword [rsp + 0x78], rsi
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x80], xmm0
movdqa xmm1, xmmword [0x1400de6d0]
movups xmmword [rbp - 0x70], xmm1
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x58], rsi
mov dword [rbp - 0x50], esi
mov qword [rbp - 0x48], rsi
movdqa xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], rsi
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
lea r8d, [rsi + 7]
lea rdx, [0x1400ddcc0]
lea rcx, [rsp + 0x50]
call fcn.140007e58
nop
mov r9, rdi
mov r8, rbx
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 8]
call fcn.14000ec20
nop
lea rcx, [rsp + 0x50]
call fcn.1400069bc
lea rdx, [rbp - 8]
cmp qword [rbp + 0x10], 7
cmova rdx, qword [rbp - 8]
lea rax, [rbp - 0x20]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x28
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x14000eebf
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000eec9
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 8]
call fcn.1400069bc
mov rcx, qword [rbp + 0x18]
xor rcx, rsp
call fcn.140029880
mov rbx, qword [rsp + 0x150]
add rsp, 0x120
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000efb8
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x1400ee200]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov edx, 0x2a
mov rbx, rcx
call fcn.140084618
xor edi, edi
mov rcx, rbx
test rax, rax
je 0x14000f158
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000f163
xorps xmm0, xmm0
mov qword [rsp + 0x30], rdi
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x6c]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], dil
jne 0x14000f031
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call fcn.140008134
cmp qword [rsp + 0x38], 0xf
lea rcx, [rsp + 0x20]
cmova rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x14000f0ea
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x14000f0a5
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f0a0
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000f1a8
call fcn.1400298a0
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x14000f016
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.140029880
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp edi, 5
je 0x14000f113
cmp edi, 0x20
je 0x14000f10c
mov ebx, 4
jmp 0x14000f118
mov ebx, 2
jmp 0x14000f118
mov ebx, 3
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x14000f151
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f14c
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000f1a8
call fcn.1400298a0
mov eax, ebx
jmp 0x14000f0c6
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14000f16d
mov eax, 1
jmp 0x14000f0c6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x14000f0c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
cmp eax, 5
je 0x14000f19e
mov eax, 2
cmp ecx, 0x20
lea ebx, [rax + 2]
cmovne eax, ebx
jmp 0x14000f0c6
mov eax, 3
jmp 0x14000f0c6
call fcn.14008c6a4
int3
Function at 0x14000f1b0
Capabilities:
Connect socket
Convert ip address from string
Get socket status
Initialize winsock library
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x330]
sub rsp, 0x430
mov rax, qword [0x1400ee200]
xor rax, rsp
mov qword [rbp + 0x320], rax
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rdx
lea rbx, [rcx + 0x18]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
and qword [rbx + 0x10], 0
mov r14d, reloc.WS2_32.dll_ntohs
mov qword [rbx + 0x18], r14
mov byte [rbx], 0
mov r8, qword [rdx + 0x10]
mov r12d, 0x1000
test r8, r8
je 0x14000f2ba
movups xmmword [rsp + 0x40], xmm0
and qword [rsp + 0x50], 0
and qword [rsp + 0x58], 0
cmp qword [rdx + 0x18], r14
jbe 0x14000f235
mov rdx, qword [rdx]
lea rcx, [rsp + 0x40]
call fcn.1400081f4
nop
lea rax, [rsp + 0x40]
cmp rbx, rax
je 0x14000f267
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], r14
cmova rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
mov rcx, rbx
call fcn.14000c718
mov ecx, 0x202
lea rdx, [rbp + 0x180]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14000f324
mov rdx, qword [rsp + 0x58]
cmp rdx, r14
jbe 0x14000f2ba
mov rcx, qword [rsp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, r12
jb 0x14000f2b4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000f400
call fcn.1400298a0
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, r14
jbe 0x14000f2ef
inc rdx
mov rcx, qword [rdi]
cmp rdx, r12
jb 0x14000f2ea
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000f406
mov rcx, r8
call fcn.1400298a0
and qword [rdi + 0x10], 0
mov qword [rdi + 0x18], r14
mov byte [rdi], 0
mov rax, rsi
mov rcx, qword [rbp + 0x320]
xor rcx, rsp
call fcn.140029880
mov rbx, qword [rsp + 0x470]
add rsp, 0x430
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
xor r8d, r8d
lea edx, [r8 + 1]
lea ecx, [rdx + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
je 0x14000f281
mov dword [rsp + 0x60], 1
lea r8, [rsp + 0x60]
mov edx, 0x8004667e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
lea rbx, [rsi + 8]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov word [rbx], 2
mov ecx, gethostname
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsi + 0xa], ax
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], r14
cmova rdx, qword [rsp + 0x40]
lea r8, [rsi + 0xc]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
mov r8d, reloc.WS2_32.dll_recv
mov rdx, rbx
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rsp + 0x68], 3
and dword [rsp + 0x6c], 0
mov rax, qword [rsi]
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x70], 1
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x70]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x14000f281
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x14000f281
call fcn.14008c6a4
nop
call fcn.14008c6a4
int3
Function at 0x14001cdf4
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x1400ee200]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
mov qword [rbp - 0x38], rcx
xor r15d, r15d
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x20], xmm1
lea rbx, [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x14001ce42
mov rdx, qword [rdx]
mov r8, qword [rbx]
lea rcx, [rbp - 0x30]
call fcn.1400081f4
nop
lea r9, [rbp - 0x30]
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
cmova r9, rcx
mov r8, qword [rbp - 0x20]
add r9, r8
lea rax, [rbp - 0x30]
cmp rdx, 0xf
cmova rax, rcx
cmp rax, r9
je 0x14001ce97
cmp byte [rax], 0x7e
jne 0x14001ce83
mov byte [rax], 0x2b
inc rax
cmp rax, r9
jne 0x14001ce7b
mov rdx, qword [rbp - 0x18]
mov r8, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x30]
lea r9, [rbp - 0x30]
cmp rdx, 0xf
cmova r9, rcx
add r9, r8
lea rax, [rbp - 0x30]
cmp rdx, 0xf
cmova rax, rcx
jmp 0x14001cebf
cmp byte [rax], 0x2e
jne 0x14001cebc
mov byte [rax], 0x2f
inc rax
cmp rax, r9
jne 0x14001ceb4
mov edx, dword [rbx]
neg rdx
and edx, 3
mov r8b, 0x3d
lea rcx, [rbp - 0x30]
call fcn.140008c44
lea rbx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0xf
cmova rbx, qword [rbp - 0x30]
lea rcx, [rbp - 0x30]
cmova rcx, qword [rbp - 0x30]
mov r12, qword [rbp - 0x20]
add r12, rcx
cmp rbx, r12
je 0x14001cf68
mov r14, qword [0x1400f4900]
lea rsi, [0x1400f48f0]
cmp qword [0x1400f4908], 0xf
cmova rsi, qword [0x1400f48f0]
test r14, r14
je 0x14001cf60
movsx edx, byte [rbx]
mov r8, r14
mov rcx, rsi
call fcn.1400b71f0
mov rcx, rax
test rax, rax
je 0x14001cf60
sub rcx, rsi
cmp rcx, 0xffffffffffffffff
je 0x14001cf60
lea rax, [0x1400f48b8]
cmp qword [0x1400f48d0], 0xf
cmova rax, qword [0x1400f48b8]
mov al, byte [rcx + rax]
mov byte [rbx], al
mov r14, qword [0x1400f4900]
inc rbx
cmp rbx, r12
jne 0x14001cf02
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rax
lea rdx, [rbp - 0x30]
mov rcx, rdi
call fcn.14001cb10
mov r9, qword [rdi]
cmp qword [rdi + 8], r9
je 0x14001cfc0
mov rcx, qword [0x1400f48e0]
mov r8, qword [0x1400f48d8]
sub rcx, r8
xor edx, edx
mov rax, r15
div rcx
mov al, byte [r9 + r15]
xor al, byte [rdx + r8]
mov byte [r9 + r15], al
inc r15
mov r9, qword [rdi]
mov rax, qword [rdi + 8]
sub rax, r9
cmp r15, rax
jb 0x14001cf89
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x14001cff7
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001cff2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001d01f
call fcn.1400298a0
mov rax, rdi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140029880
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.14008c6a4
int3
Function at 0x140025dfc
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 0x140025e36
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140025e3b
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 0x140025e84
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 0x140025e84
dec r8
sub rdx, 1
jne 0x140025e6a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14002a6c8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002a712
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002a712
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002a712
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002a712
cmp dword [rcx + 0x84], 0xe
jbe 0x14002a712
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14002a714
xor al, al
add rsp, 0x28
ret
Function at 0x140042a20
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_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x140042a4a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, [0x1400bf3f8]
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1400bf408]
mov rcx, rbx
mov r14, rax
call fcn.14009cec4
test rax, rax
je 0x140042aa9
mov rcx, rbx
test r14, r14
je 0x140042a96
xor edx, edx
lea r8d, [rdx + 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_LoadLibraryW]
test r14, r14
je 0x140042ae0
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140042ae0
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_GetSystemDirectoryW]
mov r15d, eax
test eax, eax
je 0x140042baa
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x40], rsi
mov rdx, rdi
nop dword [rax]
inc rdx
cmp word [rbx + rdx*2], bp
jne 0x140042b10
lea ecx, [rax + 1]
add rcx, rdx
add rcx, rcx
call qword [str.l__t_]
mov rsi, rax
test rax, rax
je 0x140042b9c
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140042b9c
mov rax, rdi
cmp word [rsi + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x140042b43
mov dword [rsi + rax*2], 0x5c
cmp word [rsi + rdi*2 + 2], bp
lea rdi, [rdi + 1]
jne 0x140042b55
lea rcx, [rdi + rdi]
sub rcx, rbx
add rcx, rsi
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rcx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x140042b70
mov rcx, rsi
test r14, r14
je 0x140042b93
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x140042b99
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbp, rax
mov rcx, rsi
call qword [fcn.14008ba70]
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 0x140042bc0
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x1400ee200]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x140042c26
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140042c09
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x140042c03
shr ax, 8
cmp al, 2
je 0x140042c26
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140029880
add rsp, 0x1e8
ret
call fcn.140076420
test eax, eax
jne 0x140042e37
mov qword [rsp + 0x200], rsi
lea rcx, str.kernel32
mov qword [rsp + 0x208], rdi
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x140042c66
mov qword [0x1400f27c8], rsi
jmp 0x140042df4
mov qword [rsp + 0x1f0], rbx
lea rdx, [0x1400bf3f8]
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, [0x1400bf408]
call fcn.14009cec4
test rax, rax
je 0x140042cca
mov rcx, rbx
test rbp, rbp
je 0x140042cbc
xor edx, edx
lea r8d, [rdx + 8]
call rbp
mov rsi, rax
jmp 0x140042dbc
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
jmp 0x140042dbc
test rbp, rbp
je 0x140042cf9
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140042cf9
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call rbp
mov rsi, rax
jmp 0x140042dbc
xor edx, edx
mov qword [rsp + 0x1e0], r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r14d, eax
test eax, eax
je 0x140042db4
lea ecx, [rax + 1]
lea rcx, [rcx*2 + 0x18]
call qword [str.l__t_]
mov rdi, rax
test rax, rax
je 0x140042dab
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140042dab
mov rcx, 0xffffffffffffffff
mov rax, rcx
nop dword [rax]
cmp word [rdi + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x140042d50
mov dword [rdi + rax*2], 0x5c
cmp word [rdi + rcx*2 + 2], si
lea rcx, [rcx + 1]
jne 0x140042d62
lea rdx, [rcx + rcx]
sub rdx, rbx
add rdx, rdi
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rdx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x140042d80
mov rcx, rdi
test rbp, rbp
je 0x140042da2
xor edx, edx
lea r8d, [rdx + 8]
call rbp
jmp 0x140042da8
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
mov rcx, rdi
call qword [fcn.14008ba70]
mov r14, qword [rsp + 0x1e0]
mov rbp, qword [rsp + 0x1f8]
mov rbx, qword [rsp + 0x1f0]
mov qword [0x1400f27c8], rsi
test rsi, rsi
je 0x140042df4
lea rdx, str.if_nametoindex
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140042df4
mov qword [0x1400f27c0], rax
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.140075fd0
test al, al
lea rcx, [0x1400f49e0]
setne byte [0x1400f49dc]
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.140029880
add rsp, 0x1e8
ret
Function at 0x1400498c0
Capabilities:
Convert ip address from string

Disassembly:
cmp qword [rsp + 0x28], 0
mov qword [r9], 0
jge 0x1400498d5
mov eax, 0xfffffffe
ret
mov qword [rsp + 0x28], r9
mov r9b, 1
jmp fcn.1400493a0
Function at 0x140055280
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.140033be0
mov rcx, rbx
movups xmm6, xmmword [rax]
call fcn.140053170
mov rcx, rdi
mov rsi, rax
call fcn.140053170
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x140055330
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.140033be0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.140033c70
cmp rax, 0x3e8
ja 0x140055361
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_MoveFileExW]
test eax, eax
je 0x1400552e0
test rsi, rsi
je 0x14005533d
mov rcx, rsi
call fcn.14008ba70
test rbx, rbx
je 0x14005534a
mov rcx, rbx
call fcn.14008ba70
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 0x14005536e
mov rcx, rsi
call fcn.14008ba70
test rbx, rbx
je 0x14005537b
mov rcx, rbx
call fcn.14008ba70
mov eax, 1
jmp 0x14005534c
Function at 0x1400557c0
Capabilities:
Resolve dns

Disassembly:
push rdi
push r12
push r13
push r15
sub rsp, 0x28
mov r13, r9
xor edi, edi
mov qword [r9], rdi
xor r15d, r15d
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x14005595e
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rsi
mov rsi, qword [rsp + 0x68]
test rsi, rsi
je 0x14005593e
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x20], r14
nop
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x14005582e
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140055820
inc rbx
jmp 0x140055830
xor ebx, ebx
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x14005583d
lea ebp, [rax + 0xe]
jmp 0x140055849
cmp eax, 0x17
jne 0x1400558e1
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], 0
je 0x1400558e1
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x1400558e1
cmp rax, rbp
jb 0x1400558e1
lea rcx, [rbp + 0x30]
add rcx, rbx
call qword [str.l__t_]
mov r14, rax
test rax, rax
je 0x1400558f0
mov ecx, dword [rsi]
mov r8, rbp
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], ebp
xor eax, eax
mov qword [r14 + 0x18], rax
mov qword [r14 + 0x28], rax
mov qword [r14 + 0x20], rcx
mov rdx, qword [rsi + 0x20]
call fcn.1400b66d0
test rbx, rbx
je 0x1400558ce
mov rcx, qword [r14 + 0x20]
mov r8, rbx
add rcx, rbp
mov qword [r14 + 0x18], rcx
mov rdx, qword [rsi + 0x18]
call fcn.1400b66d0
test rdi, rdi
cmove rdi, r14
test r15, r15
je 0x1400558de
mov qword [r15 + 0x28], r14
mov r15, r14
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x140055810
jmp 0x1400558f6
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x58]
test rcx, rcx
je 0x140055910
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x140055939
test rdi, rdi
je 0x140055935
nop word [rax + rax]
mov rbx, qword [rdi + 0x28]
mov rcx, rdi
call qword [fcn.14008ba70]
mov rdi, rbx
test rbx, rbx
jne 0x140055920
xor edi, edi
jmp 0x14005594d
test rdi, rdi
jne 0x14005594d
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rsi, qword [rsp + 0x60]
mov eax, r12d
mov rbx, qword [rsp + 0x50]
mov qword [r13], rdi
add rsp, 0x28
pop r15
pop r13
pop r12
pop rdi
ret