joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000e320
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x300]
sub rsp, 0x400
mov r12, r8
mov rsi, rdx
mov rdi, rcx
xor edx, edx
mov r8d, 0x334
lea rcx, [rbp - 0x40]
mov r15, r9
call fcn.140013e20
xor r13d, r13d
mov ebx, r13d
cmp dword [rdi + 0x160], ebx
jbe 0x14000e530
mov qword [rsp + 0x430], r14
nop dword [rax + rax]
mov rcx, qword [rdi]
lea r8, [rbp - 0x40]
mov r14d, ebx
mov rdx, qword [rdi + r14*8 + 0x60]
call sym.amdfendrsr.exe_amdlogumlib_get_driver_info
mov rdx, qword [rsi]
movsxd rax, dword [rbp - 0x40]
movzx ecx, dl
cmp rax, rcx
jne 0x14000e3b2
shr rdx, 8
movzx eax, dl
cmp dword [rbp + 0x1cc], eax
je 0x14000e3c0
inc ebx
cmp ebx, dword [rdi + 0x160]
jb 0x14000e380
xor al, al
jmp 0x14000e3d7
mov rax, qword [rdi + r14*8 + 0x60]
mov qword [r12], rax
mov eax, dword [rsi]
bt rax, 0x18
jae 0x14000e3fb
mov qword [r15], r13
mov al, 1
mov r14, qword [rsp + 0x430]
lea r11, [rsp + 0x400]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rbp
ret
mov ebx, r13d
cmp dword [rbp + 0x200], ebx
jbe 0x14000e3bc
nop word [rax + rax]
mov rdx, qword [r12]
lea r9, [rsp + 0x20]
mov rcx, qword [rdi]
xorps xmm0, xmm0
xor eax, eax
mov r14d, ebx
movups xmmword [rsp + 0x20], xmm0
mov qword [rbp - 0x50], rax
movups xmmword [rsp + 0x30], xmm0
mov r8, qword [rbp + r14*8 + 0x204]
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
call sym.amdfendrsr.exe_amdlogumlib_get_device_info2
test eax, eax
je 0x14000e47c
mov r8, qword [rbp + r14*8 + 0x204]
lea r9, [rsp + 0x20]
mov rdx, qword [r12]
mov rcx, qword [rdi]
call sym.amdfendrsr.exe_amdlogumlib_get_device_info
mov eax, dword [rsp + 0x3c]
mov qword [r15], r13
movzx ecx, byte [rsi + 2]
cmp eax, 0xff
ja 0x14000e492
cmp eax, ecx
jmp 0x14000e4a5
movzx eax, al
cmp eax, ecx
jne 0x14000e4a7
mov eax, dword [rsi]
shr rax, 0x19
xor al, byte [rsp + 0x44]
test al, 0x7f
je 0x14000e4bc
inc ebx
cmp ebx, dword [rbp + 0x200]
jb 0x14000e410
xor al, al
jmp 0x14000e3d7
mov rax, qword [rbp + 0x350]
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rax], xmm0
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [rax + 0x10], xmm1
movaps xmm1, xmmword [rsp + 0x50]
movups xmmword [rax + 0x20], xmm0
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rax + 0x30], xmm1
movaps xmm1, xmmword [rsp + 0x70]
movups xmmword [rax + 0x40], xmm0
movaps xmm0, xmmword [rbp - 0x80]
movups xmmword [rax + 0x50], xmm1
movaps xmm1, xmmword [rbp - 0x70]
movups xmmword [rax + 0x60], xmm0
movaps xmm0, xmmword [rbp - 0x60]
movups xmmword [rax + 0x70], xmm1
movsd xmm1, qword [rbp - 0x50]
movups xmmword [rax + 0x80], xmm0
movsd qword [rax + 0x90], xmm1
mov rax, qword [rbp + r14*8 + 0x204]
mov qword [r15], rax
jmp 0x14000e3d5
xor al, al
jmp 0x14000e3df
Function at 0x14000eb80
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov edi, r9d
mov qword [rcx + 0x38], 1
mov rsi, r8
mov qword [rsp + 0x20], 1
mov ebp, edx
mov rbx, rcx
call sym.amdfendrsr.exe_amdlogumlib_get_timestamp_frequency
mov rdx, qword [rbx]
lea r8, [rsp + 0x20]
mov rcx, rbx
mov qword [rsp + 0x28], rax
call fcn.14000e560
lea rcx, [rbx + 0x178]
mov r9d, edi
mov r8, rsi
mov edx, ebp
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp 0x14000eb80
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
xorps xmm0, xmm0
xorps xmm1, xmm1
xor esi, esi
mov rax, r8
mov r14d, edx
mov rbx, rcx
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm1
movups xmmword [rsp + 0x40], xmm1
movups xmmword [rsp + 0x50], xmm1
movups xmmword [rsp + 0x60], xmm1
movups xmmword [rsp + 0x70], xmm1
movups xmmword [rbp - 0x80], xmm1
movups xmmword [rbp - 0x70], xmm1
movups xmmword [rbp - 0x60], xmm1
test r8, r8
je 0x14000ec26
test r9d, r9d
je 0x14000ec26
mov r8d, r9d
lea rcx, [rsp + 0x30]
mov rdx, rax
call fcn.140014470
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x14000ec4b
lea eax, [rsi + 0xa]
jmp 0x14000ecff
movups xmm0, xmmword [str.SystemRootSystem32AMD]
movzx eax, byte [0x140061cc0]
movsd xmm1, qword [0x140061cb8]
movaps xmmword [rsp + 0x30], xmm0
movsd qword [rsp + 0x40], xmm1
mov byte [rsp + 0x48], al
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x300], rdi
call fcn.14000b3e0
lea r9, [rsp + 0x30]
mov edx, 0x80
lea r8, str._s.log
lea rcx, [rbp - 0x50]
call fcn.14000f570
lea rdx, [rbp + 0xb0]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000ecf5
lea rax, [rbp + 0xdc]
mov edx, 0x80
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r8, str._s_s
lea rcx, [rbp + 0x30]
call fcn.14000f570
mov r8d, r14d
lea rdx, [rbp + 0x30]
mov rcx, rbx
call fcn.14000ed30
mov esi, eax
test eax, eax
je 0x14000ecd8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0xf8], eax
lea rdx, [rbp + 0xb0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x14000ec91
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rdi, qword [rsp + 0x300]
mov eax, esi
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140010b10
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rbx, rcx
call fcn.14000fcc0
xor edi, edi
mov dword [rax], edi
mov rcx, qword [rbx + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x140010b36
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r9d, r9d
mov qword [rsp + 0x30], rdi
lea rcx, [rbx + 0xac]
mov dword [rsp + 0x28], 0x8000080
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbx + 0x78], rax
cmp rax, 0xffffffffffffffff
jne 0x140010b8a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
mov dword [rbx + 0x18], eax
call fcn.14000fcc0
mov dword [rax], 9
jmp 0x140010c77
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rbx + 0x860], eax
cmp eax, 0xffffffff
jne 0x140010bbc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
mov dword [rbx + 0x18], eax
call fcn.14000fcc0
mov dword [rax], 9
jmp 0x140010c59
cmp dword [rbx + 0x864], eax
jae 0x140010bef
mov rcx, qword [rbx + 0x868]
mov dword [rbx + 0x864], eax
test rcx, rcx
je 0x140010be1
call fcn.140012dcc
mov eax, dword [rbx + 0x864]
mov ecx, eax
call fcn.140012dc4
mov qword [rbx + 0x868], rax
mov rdx, qword [rbx + 0x868]
test rdx, rdx
jne 0x140010c1a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
mov dword [rbx + 0x18], eax
call fcn.14000fcc0
mov dword [rax], 9
mov dword [rbx + 0x864], edi
jmp 0x140010c59
mov rcx, qword [rbx + 0x78]
lea r9, [rsp + 0x50]
mov r8d, 0x146
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140010c42
cmp dword [rsp + 0x50], 0x146
jae 0x140010c59
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
mov dword [rbx + 0x18], eax
call fcn.14000fcc0
mov dword [rax], 8
mov rcx, rbx
call fcn.14000fcc0
cmp dword [rax], edi
je 0x140010c77
mov rcx, qword [rbx + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x78], 0xffffffffffffffff
mov rcx, rbx
call fcn.14000fcc0
cmp dword [rax], edi
je 0x140010c92
cmp qword [rbx + 0x868], rdi
je 0x140010c92
mov dword [rbx + 0x860], edi
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140010ca0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov edi, dword [rcx + 0x860]
lea r9, [rsp + 0x40]
mov rdx, qword [rcx + 0x868]
mov rbx, rcx
mov rcx, qword [rcx + 0x78]
sub edi, 0x146
mov r8d, edi
mov qword [rsp + 0x20], 0
add rdx, 0x146
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140010cec
cmp dword [rsp + 0x40], edi
jae 0x140010d03
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
mov dword [rbx + 0x18], eax
call fcn.14000fcc0
mov dword [rax], 8
mov rcx, qword [rbx + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x78], 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140004440
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x140004470
mov eax, 0
cmp word [rcx], 0x5a4d
jne 0x14000446f
mov eax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140004475
cdqe
add rax, rcx
cmp dword [rax], 0x4550
mov edx, 0
cmovne rax, rdx
ret
mov rax, rcx
jmp 0x14000446f
mov eax, 0
jmp 0x14000446f

Function at 0x140004af0
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140004aa0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x14000e100
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140016c40
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140016c40
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x14000e170
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140454a74]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x14000e300
mov rax, qword [0x140454a78]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x14000e1bc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x14000e245
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x14000e1a0
mov rcx, rdi
call fcn.14000ecd0
test rax, rax
mov r12, rax
je 0x14000e352
mov rax, qword [0x140454a78]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.14000ee10
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x140454a78]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000e335
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000e23e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000e2b0
add dword [0x140454a74], 1
cmp ebx, 8
jae 0x14000e271
test bl, 4
jne 0x14000e310
test ebx, ebx
je 0x14000e266
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x14000e324
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x14000e266
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x14000e28a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x140454a78]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000e23e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000e100
xor esi, esi
jmp 0x14000e1c7
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x14000e266
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x14000e266
mov rax, qword [0x140454a78]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.14000e100
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.14000e100
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x14000e920
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140454ae0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140454ac0]
test rbx, rbx
je 0x14000e974
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14000e96b
test rsi, rsi
je 0x14000e96b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000e950
lea rcx, [0x140454ae0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14000ecd0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14044fc70]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14000ed3f
mov rcx, r9
call fcn.14000eba0
test eax, eax
je 0x14000ed3f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x14000ed3d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x14000ed34
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14000ed3f
add rdx, 0x28
cmp rdx, r9
jne 0x14000ed20
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x140019000
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x14044c7a0]
jmp 0x14000fb00

Function at 0x140019010
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x14044c7a0]
jmp 0x14000fb00
Function at 0x140061c00
Capabilities:
Create thread

Disassembly:
push rbp
sub rsp, 0x70
lea rbp, [rsp + 0x70]
mov qword [rbp - 8], 0xfffffffffffffffe
mov qword [rbp - 0x10], rdx
mov qword [rbp - 0x18], rcx
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov rdx, qword [rbp - 0x10]
lea rcx, [rbp - 0x28]
call fcn.140061d00
lea rcx, [rbp - 0x20]
lea rdx, [rbp - 0x28]
call fcn.140061d80
lea rcx, [rbp - 0x28]
call fcn.140061de0
mov rax, qword [rbp - 0x38]
lea rcx, [0x140061e20]
mov qword [rbp - 0x30], rcx
add rax, 8
mov qword [rbp - 0x40], rax
lea rcx, [rbp - 0x20]
call fcn.140061ea0
mov r9, rax
mov rax, qword [rbp - 0x40]
xor ecx, ecx
xor edx, edx
lea r8, [0x140061e20]
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rcx, rax
mov rax, qword [rbp - 0x38]
mov qword [rax], rcx
cmp qword [rax], 0
je 0x140061cb7
lea rcx, [rbp - 0x20]
call fcn.140061eb0
lea rcx, [rbp - 0x20]
call fcn.140061de0
nop
add rsp, 0x70
pop rbp
ret
mov rax, qword [rbp - 0x38]
mov dword [rax + 8], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
jmp 0x140061cd1
int3

Function at 0x140064ba0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x30]
ret

Function at 0x1400652c4
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x200
movzx ebx, dx
mov rdi, rcx
lea rdx, [rsp + 0x60]
mov ecx, 0x202
mov rbp, r9
mov rsi, r8
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x180002a46
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
movzx eax, bx
mov dword [rsp + 0x38], 2
mov dword [rsp + 0x3c], 0x11
mov dword [rsp + 0x34], eax
mov rax, qword [0x180059528]
test rax, rax
jne 0x1800029cc
xor ecx, ecx
call fcn.180003120
mov qword [0x180059528], rax
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, rdi
call rax
mov ecx, eax
mov edi, eax
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rbx, qword [rsp + 0x28]
test edi, edi
jne 0x180002a1e
mov ecx, dword [rbx + 4]
cmp ecx, 2
je 0x1800029ff
cmp ecx, 0x17
je 0x180002a12
jmp 0x180002a1e
mov rax, qword [rbx + 0x20]
mov ecx, dword [rax + 4]
mov dword [rsp + 0x20], ecx
mov rax, qword [rsp + 0x20]
mov qword [rsi], rax
mov rax, qword [rbx + 0x20]
movups xmm0, xmmword [rax + 8]
movups xmmword [rbp], xmm0
mov rax, qword [0x180059530]
test rax, rax
jne 0x180002a39
lea ecx, [rax + 2]
call fcn.180003120
mov qword [0x180059530], rax
mov rcx, rbx
call rax
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, edi
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180003120
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
sub rsp, 0x270
cmp dword [0x180059520], 0
lea rax, [0x180002bb0]
lea rbx, str.getaddrinfo
mov qword [rsp + 0x28], rax
lea rax, str.getnameinfo
movzx ebp, cx
mov qword [rsp + 0x30], rax
lea rax, [0x180002eb0]
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x38], rax
lea rax, str.freeaddrinfo
mov qword [rsp + 0x40], rax
lea rax, [fcn.180002b60]
mov qword [rsp + 0x48], rax
jne 0x1800032da
lea rcx, [rsp + 0x160]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1800032d0
lea r8, [rsp + 0x160]
lea rcx, [rsp + 0x50]
mov edx, 0x10c
mov qword [rsp + 0x280], rsi
call fcn.18002bedc
lea r8, str.ws2_32
lea rcx, [rsp + 0x50]
mov edx, 0x10c
call fcn.18002bf40
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x180003202
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x180003262
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r8, [rsp + 0x160]
lea rcx, [rsp + 0x50]
mov edx, 0x10c
call fcn.18002bedc
lea r8, str.wship6
lea rcx, [rsp + 0x50]
mov edx, 0x10c
call fcn.18002bf40
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x1800032c8
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x180003262
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1800032c8
mov qword [rsp + 0x288], rdi
lea rbx, [rsp + 0x28]
xor edi, edi
mov rdx, qword [rbx - 8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx], rax
test rax, rax
je 0x1800032b7
inc edi
add rbx, 0x10
cmp edi, 3
jl 0x180003271
mov rax, qword [rsp + 0x28]
mov qword [0x1800520d8], rax
mov rax, qword [rsp + 0x38]
mov qword [0x1800520e8], rax
mov rax, qword [rsp + 0x48]
mov qword [fcn.180002b60], rax
jmp 0x1800032c0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdi, qword [rsp + 0x288]
mov rsi, qword [rsp + 0x280]
mov dword [0x180059520], 1
mov rbx, qword [rsp + 0x290]
movzx eax, bp
lea rcx, str.getaddrinfo
add rax, rax
mov rax, qword [rcx + rax*8 + 8]
add rsp, 0x270
pop rbp
ret
Function at 0x180003540
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rdi, qword [rsp + 0x68]
mov r12, qword [rsp + 0x60]
movzx ebp, r9w
mov qword [rdi], 0
mov r14d, r8d
mov r15d, edx
mov byte [r12], 0
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rsi, rax
test rax, rax
je 0x180003618
cmp word [rax + 0x10], 2
mov qword [rsp + 0x40], rbx
jne 0x1800035db
cmp word [rax + 0x12], 4
jne 0x1800035db
mov rbx, qword [rax + 0x18]
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800035db
nop word [rax + rax]
mov r9d, dword [rcx]
movzx r8d, bp
mov edx, r14d
mov ecx, r15d
call fcn.1800034a0
mov qword [rdi], rax
test rax, rax
je 0x180003611
mov rcx, qword [rbx + 8]
add rbx, 8
lea rdi, [rax + 0x28]
test rcx, rcx
jne 0x1800035b0
mov r8, qword [rsi]
mov r9d, 0x400
mov rcx, r12
lea edx, [r9 + 1]
call fcn.18002b994
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
mov eax, 8
jmp 0x1800035f2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2af9
je 0x18000362f
dec eax
je 0x18000363d
dec eax
je 0x180003636
dec eax
mov eax, 0x2af9
jmp 0x1800035f7
mov eax, 0x2afb
jmp 0x1800035f7
mov eax, 0x2afa
jmp 0x1800035f7
Function at 0x1800036d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
mov eax, 0x25b0
call fcn.18002c060
sub rsp, rax
movsxd rax, dword [rcx + 0x3c]
xor esi, esi
mov r15d, r8d
mov r9d, dword [rax + rcx + 0x88]
mov r14, rdx
mov rdi, rcx
add r9, rcx
mov ebx, esi
mov r8d, esi
mov ebp, dword [r9 + 0x1c]
mov r10d, dword [r9 + 0x20]
mov r11d, dword [r9 + 0x24]
mov r9d, dword [r9 + 0x18]
add rbp, rcx
add r10, rcx
add r11, rcx
test r9d, r9d
je 0x1800037a5
mov qword [rsp + 0x25d0], r12
mov r12d, 0x775a
nop dword [rax]
mov edx, dword [r10]
add rdx, rdi
cmp word [rdx], r12w
jne 0x18000378d
movzx eax, byte [rdx]
mov ecx, esi
ror ecx, 0xd
movsx eax, al
lea rdx, [rdx + 1]
add ecx, eax
movzx eax, byte [rdx]
test al, al
jne 0x180003751
mov eax, ebx
lea rdx, [rsp + 0x28]
inc ebx
shl rax, 4
add rdx, rax
movzx eax, word [r11]
mov dword [rdx], ecx
mov ecx, dword [rbp + rax*4]
add rcx, rdi
mov qword [rdx + 8], rcx
cmp ebx, 0x258
je 0x18000379d
inc r8d
add r10, 4
add r11, 2
cmp r8d, r9d
jb 0x180003740
mov r12, qword [rsp + 0x25d0]
lea eax, [rbx - 1]
mov dword [rsp + 0x20], ebx
mov r10d, esi
test eax, eax
je 0x18000381b
mov eax, ebx
mov ecx, esi
sub eax, r10d
dec eax
je 0x180003810
nop
lea r9d, [rcx + 1]
mov eax, ecx
lea r8, [rsp + 0x28]
shl rax, 4
mov edx, r9d
add rdx, rdx
add r8, rax
mov r11, qword [rsp + rdx*8 + 0x30]
mov rdi, qword [r8 + 8]
cmp rdi, r11
jbe 0x180003801
mov ecx, dword [r8]
mov eax, dword [rsp + rdx*8 + 0x28]
mov qword [r8 + 8], r11
mov dword [r8], eax
mov dword [rsp + rdx*8 + 0x28], ecx
mov qword [rsp + rdx*8 + 0x30], rdi
mov ebx, dword [rsp + 0x20]
mov eax, ebx
mov ecx, r9d
sub eax, r10d
dec eax
cmp r9d, eax
jb 0x1800037c0
lea eax, [rbx - 1]
inc r10d
cmp r10d, eax
jb 0x1800037b3
mov ebp, esi
test r15d, r15d
je 0x180003885
mov rdi, r14
mov eax, esi
test ebx, ebx
je 0x18000385e
mov r8, qword [rdi]
mov edx, dword [r8]
mov ecx, eax
add rcx, rcx
cmp dword [rsp + rcx*8 + 0x28], edx
je 0x180003844
inc eax
cmp eax, ebx
jb 0x180003831
jmp 0x18000385e
mov ecx, eax
mov dword [r8 + 8], eax
mov rdx, qword [rdi]
add rcx, rcx
mov rcx, qword [rsp + rcx*8 + 0x30]
call fcn.180003a30
test eax, eax
je 0x1800038a7
inc ebp
add rdi, 8
cmp ebp, r15d
jb 0x180003825
test r15d, r15d
je 0x180003885
nop
mov rax, qword [r14]
cmp qword [rax + 0x10], 0
je 0x1800038a7
inc esi
add r14, 8
cmp esi, r15d
jb 0x180003870
mov eax, 1
lea r11, [rsp + 0x25b0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
xor eax, eax
jmp 0x18000388a