joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140092170
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x140092318
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x1400921d5
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x1400921d5
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400921d5
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x14009220c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x140092262
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140092262
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140092262
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140092262
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140092262
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.140091c20
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x1400922c4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14006e1b0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.140091ff0
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140092310
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14006e1b0
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140093a80
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1400d0c00]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x140093b15
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call fcn.1400a8776
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x140093b76
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.14006e1b0
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400a70c0
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x140093c31
sub ecx, 1
je 0x140093ca4
sub ecx, 1
je 0x140093be0
cmp ecx, 1
je 0x140093bc3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400ac310]
call fcn.14006e1b0
jmp 0x140093ca4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1400937b0
test eax, eax
je 0x140093ca4
jmp 0x140093b4a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x140093ca4
sub rax, rsi
cmp rax, rbp
jae 0x140093ca4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.14006e330
jmp 0x140093ca4
cmp r8d, 4
jle 0x140093ca4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x140093ca4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.14006e0d0
mov esi, eax
test eax, eax
je 0x140093c83
mov edx, 5
mov rcx, rbx
call fcn.140094770
mov eax, esi
jmp 0x140093b4a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.14007cba0
mov rcx, r14
call fcn.14007ce80
test eax, eax
je 0x140093b48
mov edx, 5
mov rcx, rbx
call fcn.140094770
mov eax, Ordinal_46
jmp 0x140093b4a
Function at 0x1400a6a40
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400a6a82
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400a6ac9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400a6b22
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400a6ae0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400a6b63
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400c0e12]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400c0e13]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400a6b30
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400a7c0c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400a7c56
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400a7c56
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400a7c56
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400a7c56
cmp dword [rcx + 0x84], 0xe
jbe 0x1400a7c56
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400a7c58
xor al, al
add rsp, 0x28
ret
Function at 0x1400a7f1c
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 0x1400a7f56
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400a7f5b
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 0x1400a7fa4
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 0x1400a7fa4
dec r8
sub rdx, 1
jne 0x1400a7f8a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140001ce4
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140001b54

Function at 0x140004a28
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x14000b550]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.140002a14
xor ebx, ebx
cmp qword [0x14000cd18], rbx
mov rdi, rax
jne 0x140004b3b
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140004c12
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140004c12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14000cd18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14000cd20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x14000cd28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x14000cd38], rax
test rax, rax
je 0x140004b32
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x14000cd30], rax
jmp 0x140004b42
mov rax, qword [0x14000cd30]
jmp 0x140004b49
mov rax, qword [0x14000cd30]
mov r11, qword [0x14000cd38]
cmp rax, rdi
je 0x140004bb0
cmp r11, rdi
je 0x140004bb0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x14000cd38]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140004bb0
test rax, rax
je 0x140004bb0
call rsi
test rax, rax
je 0x140004baa
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140004baa
test byte [rsp + 0x40], 1
jne 0x140004bb0
bts ebp, 0x15
jmp 0x140004bf0
mov rcx, qword [0x14000cd20]
cmp rcx, rdi
je 0x140004bf0
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140004bf0
call rax
mov rbx, rax
test rax, rax
je 0x140004bf0
mov rcx, qword [0x14000cd28]
cmp rcx, rdi
je 0x140004bf0
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140004bf0
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14000cd18]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140004c12
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140004c14
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400044a0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140006aa7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14000b550]
jne 0x1400044ba
rol rcx, 0x10
test cx, 0xffff
jne 0x1400044b6
repz ret
ror rcx, 0x10
jmp 0x140006a00
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14000cdf0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14000cee8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140006a85
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14000cdf0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140006aa7
mov rax, qword [rsp + 0x88]
mov qword [0x14000cee8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14000ce88], rax
mov rax, qword [0x14000cee8]
mov qword [0x14000cd60], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14000ce70], rax
mov dword [0x14000cd50], 0xc0000409
mov dword [0x14000cd54], 1
mov rax, qword [0x14000b550]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14000b558]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14000cde8], eax
mov ecx, 1
call fcn.1400044c0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140009ba0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14000cde8], 0
jne 0x140006b2e
mov ecx, 1
call fcn.1400044c0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x1400133ac
Capabilities:
Parse pe header

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

Function at 0x140019358
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 0x1400191c3
xor ecx, ecx
call qword [0x140031138]
test rax, rax
je 0x1400191c3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400191c3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400191c3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400191c3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400191c3
cmp dword [rcx + 0xf8], 0
je 0x1400191c3
mov ecx, ebx
call fcn.140019274
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.140019050
nop
cmp dword [rbp + 0x20], 0
je 0x140019211
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001921c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140019154
Function at 0x14047c2a8
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp], rbx
mov ebx, 0x303525a1
rol rbx, 0x4f
push rsi
and ebx, 0x8d26fe97
lea rbx, [0x140473790]
movzx esi, byte [r10]
push 0x6c0b180b
xor esi, r11d
and esi, 0xff
mov esi, dword [rbx + rsi*4]
shr r11d, 8
xor r11d, esi
inc r10
xor r11d, 0x72b5158a
dec rax
push 0x67a491b8
lea rsp, [rsp + 0x10]
jne 0x14047c2c3
mov esi, 0xe1a6ca0c
pop rsi
mov ebx, 0xe196cf2a
pop rbx
not r11d
mov dword [r9], r11d
push 0x4b08e702
lea rsp, [rsp + 8]
jmp fcn.14045bb8f
Function at 0x180015160
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x18001533f
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x40], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.180014c90
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x180015304
mov qword [rsp + 0x38], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rcx, qword [rcx]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x12]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x13]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x14]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x15]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x16]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x17]
imul r9, rdi
xor r9, rdx
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x18001527c
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x1800152f3
mov rdx, qword [r11 + 8]
mov r8, qword [rax + 0x10]
cmp r8, qword [rdx + 0x10]
jne 0x1800152b9
mov r10, qword [rdx]
cmp r10, rax
je 0x1800152b3
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x1800152f3
cmp r9, rdx
je 0x1800152cf
nop
mov rdx, qword [rdx + 8]
cmp r8, qword [rdx + 0x10]
je 0x180015319
cmp r9, rdx
jne 0x1800152c0
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x180015200
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x1800152f3
lea rcx, str.invalid_hash_bucket_count
call fcn.18001a98c
int3
Function at 0x180017dc4
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push rsi
sub rsp, 0x130
xor rax, rax
mov qword [rsp + 0x78], rax
lea rsi, [rsp + 0x20]
mov rdx, 0x100
mov rcx, rsi
call sub.KERNEL32.dll_GetSystemDirectoryA
test rax, rax
je 0x180018027
lea r8, str._version.dll
mov rdx, 0x100
mov rcx, rsi
call fcn.180017d80
mov rcx, rsi
call sub.KERNEL32.dll_LoadLibraryA
mov qword [rsi + 0x100], rax
test rax, rax
je 0x180018027
lea rdx, str.GetFileVersionInfoA
mov rcx, qword [rsi + 0x100]
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x180018027
mov qword [0x180065148], rax
lea rdx, str.GetFileVersionInfoByHandle
mov rcx, qword [rsi + 0x100]
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x180018027
mov qword [0x180065150], rax
lea rdx, str.GetFileVersionInfoExA
mov rcx, qword [rsi + 0x100]
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x180018027
mov qword [0x180065158], rax
lea rdx, str.GetFileVersionInfoExW
mov rcx, qword [rsi + 0x100]
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x180018027
mov qword [0x180065160], rax
lea rdx, str.GetFileVersionInfoSizeA
mov rcx, qword [rsi + 0x100]
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x180018027
mov qword [0x180065168], rax
lea rdx, str.GetFileVersionInfoSizeExA
mov rcx, qword [rsi + 0x100]
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x180018027
mov qword [0x180065170], rax
lea rdx, str.GetFileVersionInfoSizeExW
mov rcx, qword [rsi + 0x100]
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x180018027
mov qword [0x180065178], rax
lea rdx, str.GetFileVersionInfoSizeW
mov rcx, qword [rsi + 0x100]
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x180018027
mov qword [0x180065180], rax
lea rdx, str.GetFileVersionInfoW
mov rcx, qword [rsi + 0x100]
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x180018027
mov qword [0x180065188], rax
lea rdx, str.VerFindFileA
mov rcx, qword [rsi + 0x100]
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x180018027
mov qword [0x180065190], rax
lea rdx, str.VerFindFileW
mov rcx, qword [rsi + 0x100]
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x180018027
mov qword [0x180065198], rax
lea rdx, str.VerInstallFileA
mov rcx, qword [rsi + 0x100]
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x180018027
mov qword [0x1800651a0], rax
lea rdx, str.VerInstallFileW
mov rcx, qword [rsi + 0x100]
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x180018027
mov qword [0x1800651a8], rax
lea rdx, str.VerQueryValueA
mov rcx, qword [rsi + 0x100]
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x180018027
mov qword [0x1800651b0], rax
lea rdx, str.VerQueryValueW
mov rcx, qword [rsi + 0x100]
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x180018027
mov qword [0x1800651b8], rax
xor rax, rax
inc rax
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
add rsp, 0x130
pop rsi
ret
Function at 0x180018090
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x180067d9c]
mov ebx, edi
test ecx, ecx
je 0x1800181cb
mov rax, qword [0x180067d90]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x1800180e8
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800180c0
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x1800181cb
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.180018410
mov r8d, dword [0x180067d9c]
cmp ebx, r8d
jae 0x180018158
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x180067d90]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x180018151
mov edx, esi
mov ecx, ebx
call fcn.180018300
mov edi, eax
test eax, eax
jne 0x180018158
mov r8d, dword [0x180067d9c]
inc ebx
cmp ebx, r8d
jb 0x180018120
cmp qword [rsp + 0x20], 0
je 0x1800181cb
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800181b7
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800181a8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180018180
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180066550]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180018300
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov eax, ecx
lea r9, [rsp + 0x30]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x180067d90]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180018364
mov eax, 0xa
jmp 0x1800183f7
test esi, esi
je 0x180018386
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x1800183a9
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x1800183a9
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x1800183a2
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x1800183a9
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret