joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140064350
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rcx
mov rax, qword [0x1402b7040]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x140275a70]
lea rbx, [rsp + 0x40]
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.PathExists
lea r8, str....._base_files_file_util_win.cc
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r9d, 0x203
call fcn.140133460
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call fcn.140108c50
mov qword [rsp + 0x80], Ordinal_14
mov al, byte [0x1402c925b]
test al, al
jne 0x140064417
cmp byte [rsi + 0x17], 0
jns 0x1400643d7
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
lea rcx, [rsp + 0x40]
call fcn.14014c910
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
cmp rcx, qword [0x1402b7040]
je 0x14006440a
call fcn.14019f290
int3
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
movzx ecx, al
lea r9, [rsp + 0x90]
mov qword [r9], rdi
lea rax, str.ScopedBlockingCall
lea r8, [rsp + 0x88]
mov qword [r8], rax
lea rdx, [rsp + 0x80]
call fcn.140203060
jmp 0x1400643ce

Function at 0x140064450
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rcx
mov rax, qword [0x1402b7040]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x140275a70]
lea rbx, [rsp + 0x40]
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.DirectoryExists
lea r8, str....._base_files_file_util_win.cc
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r9d, 0x22b
call fcn.140133460
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call fcn.140108c50
mov qword [rsp + 0x80], Ordinal_14
mov al, byte [0x1402c925b]
test al, al
jne 0x140064522
cmp byte [rsi + 0x17], 0
jns 0x1400644d7
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp eax, 0xffffffff
setne al
and esi, 0x10
shr esi, 4
and sil, al
lea rcx, [rsp + 0x40]
call fcn.14014c910
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
cmp rcx, qword [0x1402b7040]
je 0x140064515
call fcn.14019f290
int3
mov eax, esi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
movzx ecx, al
lea r9, [rsp + 0x90]
mov qword [r9], rdi
lea rax, str.ScopedBlockingCall
lea r8, [rsp + 0x88]
mov qword [r8], rax
lea rdx, [rsp + 0x80]
call fcn.140203060
jmp 0x1400644ce
Function at 0x140064560
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2c8
mov rsi, rcx
mov rax, qword [0x1402b7040]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
movaps xmm0, xmmword [0x140275a70]
lea rbx, [rsp + 0x60]
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, [0x140286eeb]
lea r8, str....._base_files_file_util_win.cc
lea rdi, [rsp + 0xb0]
mov rcx, rdi
mov r9d, 0x411
call fcn.140133460
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call fcn.140108c50
mov qword [rsp + 0xa8], Ordinal_14
mov al, byte [0x1402c925b]
test al, al
jne 0x1400646c7
lea rbx, [rsp + 0xb0]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.1401d8720
mov word [rbx], 0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
dec edi
cmp edi, 0x103
ja 0x14006468b
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.14019cee8
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.140152d30
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.140049250
cmp byte [rsi + 0x17], 0
jns 0x14006465d
mov rcx, qword [rsi]
call fcn.14019cac4
mov rax, qword [rsp + 0x58]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rsi], xmm0
mov byte [rsp + 0x5f], 0
mov word [rsp + 0x48], 0
cmp byte [rsp + 0x47], 0
jns 0x14006468b
mov rcx, qword [rsp + 0x30]
call fcn.14019cac4
cmp edi, 0x104
setb bl
lea rcx, [rsp + 0x60]
call fcn.14014c910
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
cmp rcx, qword [0x1402b7040]
je 0x1400646b8
call fcn.14019f290
int3
mov eax, ebx
add rsp, 0x2c8
pop rbx
pop rdi
pop rsi
pop r14
ret
movzx ecx, al
lea r9, [rsp + 0x48]
mov qword [r9], rdi
lea rax, str.ScopedBlockingCall
lea r8, [rsp + 0x30]
mov qword [r8], rax
lea rdx, [rsp + 0xa8]
call fcn.140203060
jmp 0x1400645e7

Function at 0x140064700
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rcx
mov rax, qword [0x1402b7040]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x140275a70]
lea rbx, [rsp + 0x40]
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, [0x140286f00]
lea r8, str....._base_files_file_util_win.cc
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r9d, 0x421
call fcn.140133460
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call fcn.140108c50
mov qword [rsp + 0x80], Ordinal_14
mov al, byte [0x1402c925b]
test al, al
jne 0x1400647c6
cmp byte [rsi + 0x17], 0
jns 0x140064787
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
lea rcx, [rsp + 0x40]
call fcn.14014c910
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
cmp rcx, qword [0x1402b7040]
je 0x1400647b9
call fcn.14019f290
int3
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
movzx ecx, al
lea r9, [rsp + 0x90]
mov qword [r9], rdi
lea rax, str.ScopedBlockingCall
lea r8, [rsp + 0x88]
mov qword [r8], rax
lea rdx, [rsp + 0x80]
call fcn.140203060
jmp 0x14006477e
Function at 0x1400671e0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x28
test rdx, rdx
jne 0x14006720f
test r8d, r8d
jne 0x140067208
lea rcx, [0x1402cc548]
lea rdx, [0x1400aad10]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
xor eax, eax
add rsp, 0x28
ret
mov r8d, r8d
add rsp, 0x28
jmp fcn.140130830

Function at 0x14006b800
Capabilities:
Get file attributes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rdi, rdx
mov rax, qword [0x1402b7040]
xor rax, rsp
mov qword [rsp + 0x30], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x28]
mov qword [rsi], rax
mov rdx, rsi
call fcn.140057390
mov rax, qword [rsi]
test rax, rax
je 0x14006b881
mov rbx, qword [rax + 0x50]
mov r15, qword [rax + 0x58]
xor esi, esi
cmp rbx, r15
jne 0x14006b888
lea rcx, [rsp + 0x28]
call fcn.140056ae0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
cmp rcx, qword [0x1402b7040]
je 0x14006b871
call fcn.14019f290
int3
mov eax, esi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 3
jmp 0x14006b850
mov r12, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [rbx + 0x68], 2
jne 0x14006b8ac
cmp byte [rbx + 0x27], 0
js 0x14006b8a1
lea rcx, [rbx + 0x10]
jmp 0x14006b8a5
mov rcx, qword [rbx + 0x10]
call r12
test al, 0x10
je 0x14006b8b7
add rbx, 0x70
cmp rbx, r15
je 0x14006b850
jmp 0x14006b88f
mov r14, qword [rdi + 8]
cmp r14, qword [rdi + 0x10]
jae 0x14006b8d6
mov rcx, r14
mov rdx, rbx
call fcn.14021ce90
add r14, 0x68
mov qword [rdi + 8], r14
jmp 0x14006b8ac
mov rcx, rdi
mov rdx, rbx
call fcn.14021cd30
mov r14, rax
jmp 0x14006b8d0

Function at 0x14006d460
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movups xmm0, xmmword [rcx]
shl eax, 4
movups xmm1, xmmword [rcx + 0x10]
xorps xmm2, xmm0
xorps xmm3, xmm0
movups xmm0, xmmword [rcx + 0x20]
lea rcx, [rcx + rax + 0x20]
neg rax
add rax, 0x10
aesenc xmm2, xmm1
aesenc xmm3, xmm1
movups xmm1, xmmword [rcx + rax]
add rax, 0x20
aesenc xmm2, xmm0
aesenc xmm3, xmm0
movups xmm0, xmmword [rcx + rax - 0x10]
jne 0x14006d480
aesenc xmm2, xmm1
aesenc xmm3, xmm1
aesenclast xmm2, xmm0
aesenclast xmm3, xmm0
ret

Function at 0x14006d4c0
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
movups xmm0, xmmword [rcx]
shl eax, 4
movups xmm1, xmmword [rcx + 0x10]
xorps xmm2, xmm0
xorps xmm3, xmm0
movups xmm0, xmmword [rcx + 0x20]
lea rcx, [rcx + rax + 0x20]
neg rax
add rax, 0x10
aesdec xmm2, xmm1
aesdec xmm3, xmm1
movups xmm1, xmmword [rcx + rax]
add rax, 0x20
aesdec xmm2, xmm0
aesdec xmm3, xmm0
movups xmm0, xmmword [rcx + rax - 0x10]
jne 0x14006d4e0
aesdec xmm2, xmm1
aesdec xmm3, xmm1
aesdeclast xmm2, xmm0
aesdeclast xmm3, xmm0
ret
Function at 0x14009cb90
Capabilities:
Read .ini file

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xc50
mov rdi, r9
mov rbx, r8
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x1402b7040]
xor rax, rsp
mov qword [rsp + 0xc48], rax
lea r15, [rsp + 0x440]
mov r8d, 0x800
mov rcx, r15
xor edx, edx
call fcn.1401d8720
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x400
lea r8, [0x14027ab34]
mov rcx, r14
mov rdx, rbx
mov r9, r15
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov rcx, r15
call fcn.14019cee8
mov rbx, rax
test ebx, ebx
jle 0x14009cccc
movabs r15, 0x7ffffffffffffff7
lea rdi, [rsp + 0x40]
mov r8d, 0x400
mov rcx, rdi
xor edx, edx
call fcn.1401d8720
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdi
lea r8, [rsp + 0x440]
xor ecx, ecx
xor edx, edx
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, rdi
call fcn.1401c0bd0
cmp rax, r15
ja 0x14009cd12
mov rbx, rax
cmp rax, 0x16
ja 0x14009ccd5
mov byte [rsi + 0x17], bl
mov rcx, rsi
lea r14, [rcx + rbx]
cmp rdi, rcx
setb al
cmp rdi, r14
setae dl
or dl, al
je 0x14009cd10
test rbx, rbx
je 0x14009cc9c
lea rdx, [rsp + 0x40]
mov r8, rbx
call fcn.1401d8080
mov byte [r14], 0
mov rcx, qword [rsp + 0xc48]
xor rcx, rsp
cmp rcx, qword [0x1402b7040]
je 0x14009ccba
call fcn.14019f290
int3
mov rax, rsi
add rsp, 0xc50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
xor eax, eax
mov byte [rsi + 0x17], al
mov byte [rsi], al
jmp 0x14009cca0
mov rax, rbx
or rax, 7
lea rcx, [rax + 1]
cmp rax, 0x17
mov r14d, Ordinal_26
cmovne r14, rcx
mov rcx, r14
call fcn.14019ca88
mov rcx, rax
mov qword [rsi], rax
add r15, 9
or r15, r14
mov qword [rsi + 0x10], r15
mov qword [rsi + 8], rbx
jmp 0x14009cc72
ud2
mov rcx, rsi
call fcn.1401dc2a0
int3

Function at 0x14009e920
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [rcx + 8]
cmp word [rax], 0x5a4d
jne 0x14009e94c
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14009e94c
cmp word [rax + rcx + 0x14], 0xf0
jne 0x14009e94c
cmp word [rax + rcx + 0x18], 0x20b
sete al
ret
xor eax, eax
jmp 0x14009e94b
Function at 0x1400a45e0
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov eax, dword [0x1402c6098]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp byte [rax + 0x120], 0
jne 0x1400a460b
call fcn.14019eb48
mov eax, dword [0x1402c6098]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp qword [rax + 0x198], 1
je 0x1400a4632
mov ecx, dword [rsi + 0x1d30]
test ecx, ecx
je 0x1400a463f
xor edi, edi
mov rax, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov ecx, 1
lock xadd dword [rsi + 0x1d30], ecx
cmp ecx, 0x7fffffff
je 0x1400a469e
test rsi, rsi
je 0x1400a46a1
lea rbx, [rax + 0x198]
call fcn.1400c0f20
mov edx, 0x570
mov rcx, rax
xor r8d, r8d
call fcn.1400a2b90
mov rdi, rax
mov rcx, rax
mov rdx, rsi
call fcn.1400a4e10
mov ecx, dword [0x1402c99b8]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov qword [rbx], rdi
lock dec dword [rsi + 0x1d30]
jmp 0x1400a4634
int3
int3

Function at 0x1400a4cb0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
sub rsp, 0x20
cmp dword [rcx + 0xdb0], 0x8000
jne 0x1400a4dea
mov rsi, rcx
movzx eax, word [0x1402b97f8]
lea rax, [rax + rax*2]
shl eax, 4
cmp dword [rcx + rax + 0x60], 0x200
jne 0x1400a4ded
lea rcx, [0x1402b97b0]
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400a4d7b
cmp byte [0x1402c9a08], 0
jne 0x1400a4d40
cmp qword [0x1402cff30], 0
jne 0x1400a4df3
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1400a4df6
mov dword [0x1402c99b8], eax
mov dword [0x1402cff38], eax
lea rax, [0x1400a4ae0]
mov qword [0x1402cff30], rax
mov byte [0x1402c9a08], 1
lea rcx, [0x1402b97b0]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
xor eax, eax
lock cmpxchg qword [0x1402c9a10], rsi
jne 0x1400a4df0
add rsi, 0x48
lea rax, [0x1400a4e00]
mov qword [0x1402cff40], rax
xor eax, eax
lea rcx, [0x1402c99c0]
jmp 0x1400a4db2
lea rcx, [0x1402b97b0]
call fcn.14001e950
cmp byte [0x1402c9a08], 0
jne 0x1400a4d40
jmp 0x1400a4d02
xor edx, edx
mov byte [rax + rcx], dl
inc rax
add rsi, 0x30
cmp rax, 0x48
je 0x1400a4de4
cmp qword [rsi], 0
je 0x1400a4da0
mov r8d, dword [rsi + 0x18]
mov dl, 0x80
cmp r8d, 0x81
jb 0x1400a4da2
mov dl, 0x40
cmp r8d, 0x101
jb 0x1400a4da2
cmp r8d, 0x201
setb dl
shl dl, 4
add dl, 0x10
jmp 0x1400a4da2
add rsp, 0x20
pop rsi
ret
int3
int3
int3
int3
int3
Function at 0x1400ab080
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov eax, 1
lea rdx, [0x140292000]
cmp qword [str.Xo__], rdx
jne 0x1400ab0ae
test rcx, rcx
je 0x1400ab0f8
mov qword [str.Xo__], rcx
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rax, qword [fcn.1400581d0]
mov rcx, rsi
call qword [0x1402a7b00]
xor esi, esi
lea rax, [0x140296f58]
mov qword [str.Xo__], rax
mov rax, qword [fcn.1400581d0]
mov rcx, rsi
call qword [0x1402a7b00]
jmp 0x1400ab0ac
mov rax, qword [fcn.1400581d0]
mov rcx, r14
jmp 0x1400ab0c4
mov edi, 1
xor r14d, r14d
lea rbx, str.CURL_SSL_BACKEND
mov r15, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov rax, qword [fcn.14009eb20]
mov edx, edi
mov rcx, r14
call qword [0x1402a7b00]
test rax, rax
je 0x1400ab0ec
mov rsi, rax
mov rcx, rbx
mov rdx, rax
mov r8d, edi
call r15
test eax, eax
je 0x1400ab0ba
cmp eax, edi
je 0x1400ab0ba
cmp eax, 0x8001
jae 0x1400ab0ba
mov r14, rsi
cmp eax, edi
mov edi, eax
jae 0x1400ab10e
mov rdx, qword [str.schannel]
mov rcx, rsi
call fcn.1400b1550
test eax, eax
je 0x1400ab0cc
mov rax, qword [fcn.1400581d0]
lea rcx, [0x140296f58]
mov qword [str.Xo__], rcx
jmp 0x1400ab0e1
Function at 0x1400b0260
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rsi
sub rsp, 0x50
mov rax, qword [0x1402b7040]
xor rax, rsp
mov qword [rsp + 0x48], rax
test rcx, rcx
je 0x1400b02a5
mov rsi, rcx
lea r8, [rsp + 0x2c]
mov dword [r8], 0xaaaaaaaa
movaps xmm0, xmmword [0x140275a70]
movaps xmmword [rsp + 0x30], xmm0
mov ecx, 2
mov rdx, rsi
call fcn.1400cffa0
test eax, eax
je 0x1400b02c7
xor edx, edx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
cmp rcx, qword [0x1402b7040]
je 0x1400b02be
call fcn.14019f290
int3
mov rax, rdx
add rsp, 0x50
pop rsi
ret
lea r8, [rsp + 0x30]
mov ecx, Ordinal_26
mov rdx, rsi
call fcn.1400cffa0
test eax, eax
jne 0x1400b02a5
mov rcx, rsi
call fcn.1401c0bd0
mov edx, 5
test rax, rax
je 0x1400b02a7
lea r10, [rax + rsi]
dec r10
mov r8, 0xffffffffffffffff
xor ecx, ecx
cmp r10, rsi
jb 0x1400b0345
inc r8
lea r9, [r10 - 1]
cmp byte [r10], 0x2e
mov r10, r9
jne 0x1400b02ff
mov rcx, r8
sub rcx, rax
cmp rcx, 0xffffffffffffffff
je 0x1400b0343
xor ecx, ecx
cmp r9, rsi
jb 0x1400b0345
lea r10, [r9 - 1]
inc r8
cmp byte [r9], 0x2e
mov r9, r10
jne 0x1400b0322
add r10, 2
mov rax, r8
mov rcx, r10
jmp 0x1400b0345
xor ecx, ecx
test rcx, rcx
cmovne rsi, rcx
test rax, rax
jle 0x1400b02a7
add rax, rsi
mov ecx, 0x1505
mov rdx, rcx
shl rdx, 5
add rdx, rcx
movzx ecx, byte [rsi]
inc rsi
lea r8d, [rcx - 0x61]
lea r9d, [rcx - 0x20]
cmp r8b, 0x1a
movzx r8d, r9b
cmovae r8d, ecx
movzx ecx, r8b
xor rcx, rdx
cmp rsi, rax
jb 0x1400b035d
movzx edx, cl
jmp 0x1400b02a7
Function at 0x1400b2c70
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x1402b7040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, qword [rcx]
mov rcx, rbx
mov edx, 3
call fcn.1400c42c0
mov rax, qword [rsi + 0x698]
test byte [rax + 0x80], 0x10
jne 0x1400b2ef3
xor eax, eax
mov byte [rdi], al
mov byte [rsi + 0x66b], al
cmp qword [rbx + 0xd08], 0
je 0x1400b2d04
mov rax, qword [fcn.1400581d0]
mov rcx, qword [rsi + 0x6e0]
call qword [0x1402a7b00]
mov qword [rsi + 0x6e0], 0
mov rdx, qword [rbx + 0xd08]
lea rcx, str.User_Agent:__s_r_n
call fcn.1400c5d80
mov qword [rsi + 0x6e0], rax
test rax, rax
je 0x1400b2d3b
mov qword [rbx + 0x108], 0
cmp byte [0x1402cc640], 1
je 0x1400b2d45
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
imul rcx, rcx, 0x10624dd3
shr rcx, 0x26
imul edx, ecx, 0x3e8
sub eax, edx
imul eax, eax, 0x3e8
jmp 0x1400b2d7e
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1400b2ef8
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x38]
mov qword [r14], rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [r14]
mov r8, qword [0x1402cc648]
cqo
idiv r8
mov rcx, rax
imul rax, rdx, 0xf4240
cqo
idiv r8
movabs r14, 0xaaaaaaaa00000000
mov eax, eax
or rax, r14
mov qword [rsi + 0x490], rcx
mov qword [rsi + 0x498], rax
cmp qword [rsi + 0x4c0], 0xffffffffffffffff
je 0x1400b2e89
mov rcx, rbx
mov edx, 4
call fcn.1400c42c0
cmp byte [rsi + 0x558], 0
jne 0x1400b2dcc
mov rax, qword [rsi + 0x698]
test byte [rax + 0x7c], 0x30
je 0x1400b2dd9
mov rcx, rbx
mov edx, 5
call fcn.1400c42c0
mov bl, 1
mov byte [rsi + 0x652], bl
mov byte [rdi], bl
mov rdx, qword [rsi + 0x4c0]
mov rcx, rsi
call fcn.1400bdf30
mov rcx, qword [rsi]
cmp byte [rcx + 0xf1e], bl
jne 0x1400b2e5d
mov eax, dword [rsi + 0x2d0]
mov edx, dword [rsi + 0x3f0]
lea r9, [rsi + 0x2f8]
mov r8d, 0x398
cmp byte [rsi + 0x65b], 0
jne 0x1400b2e45
mov r8d, 0x3d0
cmp byte [rsi + 0x65a], 0
jne 0x1400b2e45
cmp byte [rsi + 0x657], 0
mov r10d, 0x378
mov r8d, 0x348
cmovne r8, r10
mov r8, qword [rsi + r8]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edx
lea rdx, str.Connected_to__s___s__port__ld___ld__n
call fcn.1400b8a80
cmp byte [0x1402cc640], 1
je 0x1400b2ea5
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
imul rcx, rcx, 0x10624dd3
shr rcx, 0x26
imul edx, ecx, 0x3e8
sub eax, edx
imul eax, eax, 0x3e8
jmp 0x1400b2ede
mov byte [rsi + 0x652], 0
mov rdx, qword [rsi + 0x2d8]
mov rcx, rsi
call fcn.1400beec0
test eax, eax
jne 0x1400b2ef8
jmp 0x1400b2e5d
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x38]
mov qword [rdi], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rdi]
mov r8, qword [0x1402cc648]
cqo
idiv r8
mov rcx, rax
imul rax, rdx, 0xf4240
cqo
idiv r8
mov eax, eax
or rax, r14
mov qword [rsi + 0x490], rcx
mov qword [rsi + 0x498], rax
jmp 0x1400b2ef6
mov byte [rdi], 1
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
cmp rcx, qword [0x1402b7040]
je 0x1400b2f0f
call fcn.14019f290
int3
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400b8300
Capabilities:
Initialize winsock library

Disassembly:
push rsi
push rdi
sub rsp, 0x1c8
mov rax, qword [0x1402b7040]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
test cl, 2
je 0x1400b8382
lea rsi, [rsp + 0x28]
mov r8d, 0x198
mov rcx, rsi
mov dl, 0xaa
call fcn.1401d8720
mov cx, 0x202
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400b8371
mov esi, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
cmp rcx, qword [0x1402b7040]
je 0x1400b8365
call fcn.14019f290
int3
mov eax, esi
add rsp, 0x1c8
pop rdi
pop rsi
ret
cmp word [rsp + 0x28], 0x202
je 0x1400b8382
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x1400b8346
call fcn.1400f4e50
mov esi, eax
test eax, eax
jne 0x1400b834b
lea rcx, str.iphlpapi.dll
call fcn.1400b8470
mov qword [0x1402cc638], rax
test rax, rax
je 0x1400b83c1
lea rdx, str.if_nametoindex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400b83c1
mov qword [0x1402cc630], rax
lea rdi, [rsp + 0x34]
xor esi, esi
mov r8d, 0x110
mov rcx, rdi
xor edx, edx
call fcn.1401d8720
movabs rax, 0x60000011c
mov qword [rdi - 0xc], rax
mov dword [rdi - 4], 0
mov dword [rdi + 4], 2
mov rdi, qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
xor ecx, ecx
mov edx, 2
mov r8b, 3
call rdi
mov rcx, rax
mov edx, 1
mov r8b, 3
call rdi
mov rcx, rax
mov edx, 0x20
mov r8b, 3
call rdi
mov rcx, rax
mov edx, 0x10
mov r8b, 3
call rdi
mov rcx, rax
mov edx, 8
mov r8b, 1
call rdi
lea rcx, [rsp + 0x28]
mov edx, 0x33
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
setne byte [0x1402cc640]
lea rcx, [0x1402cc648]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
jmp 0x1400b834b
Function at 0x1400b8470
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rcx
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400b84e2
mov rbx, rax
lea rdx, [0x140293008]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
lea rdx, [0x140293018]
mov rcx, rdi
call fcn.1401c23e4
test rax, rax
je 0x1400b84f4
test rsi, rsi
je 0x1400b8522
mov r9, qword [0x1402a7b00]
mov rcx, rdi
xor edx, edx
mov r8d, 8
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp r9
xor r14d, r14d
mov rax, r14
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
test rsi, rsi
je 0x1400b854c
lea rdx, str.AddDllDirectory
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400b854c
mov r9, qword [0x1402a7b00]
mov rcx, rdi
xor edx, edx
mov r8d, 0x800
jmp 0x1400b84d1
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor r14d, r14d
mov rax, qword [fcn.1400581d0]
mov rcx, rbx
call qword [0x1402a7b00]
jmp 0x1400b84e5
xor r14d, r14d
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1400b84e5
mov r15d, eax
mov rcx, rdi
call fcn.14019cee8
mov rdx, qword [fcn.14009ead0]
lea ecx, [r15 + 1]
add rcx, rax
add rcx, rcx
mov rax, rdx
call qword [0x1402a7b00]
mov rbx, rax
test rax, rax
je 0x1400b8537
mov rcx, rbx
mov edx, r15d
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1400b8537
mov rcx, rbx
call fcn.14019cee8
lea rcx, [rbx + rax*2]
lea rdx, [0x14027cdd6]
call fcn.1401c2314
mov rcx, rbx
call fcn.14019cee8
lea rcx, [rbx + rax*2]
mov rdx, rdi
call fcn.1401c2314
mov rcx, rbx
test rsi, rsi
je 0x1400b85e7
xor edx, edx
mov r8d, 8
mov rax, rsi
call qword [0x1402a7b00]
mov r14, rax
jmp 0x1400b853a
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x1400b85df