joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100608a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub rsp, 0x48
mov rax, qword [0x100b4478]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbp
mov rbp, qword [rcx + 0x240]
mov qword [rsp + 0x68], rsi
mov rsi, qword [rcx]
lea r8, [rsp + 0x20]
mov qword [rsp + 0x40], rdi
mov rdi, rcx
lea rdx, [rsp + 0x28]
mov rcx, rbp
mov rbx, 0xffffffffffffffff
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x10060918
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
mov rcx, rbp
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
mov rdx, rbp
mov rcx, rdi
call fcn.10052770
cmp rbx, 0xffffffffffffffff
mov rbp, qword [rsp + 0x60]
jne 0x10060945
lea rdx, str.Error_accept__ing_server_connect
mov rcx, rsi
call fcn.1004b840
lea eax, [rbx + 0x1f]
jmp 0x100609ca
lea rdx, str.Connection_accepted_from_server_n
mov rcx, rsi
call fcn.1004b790
mov edx, 1
mov rcx, rbx
mov dword [rdi + 0x3c0], 0
mov qword [rdi + 0x240], rbx
call fcn.10078fd0
mov dword [rdi + 0x25c], 1
cmp qword [rsi + 0x2d8], 0
je 0x100609c8
mov edx, 1
mov rcx, rsi
call fcn.1004e960
mov rcx, qword [rsi + 0x2e0]
mov r8d, 1
mov rdx, rbx
call qword [rsi + 0x2d8]
xor edx, edx
mov rcx, rsi
mov ebx, eax
call fcn.1004e960
test ebx, ebx
je 0x100609c8
mov rcx, rdi
call fcn.10060760
mov eax, Ordinal_46
jmp 0x100609ca
xor eax, eax
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.10021bf0
add rsp, 0x48
ret
Function at 0x100646c0
Capabilities:
Check http status code

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rsi
mov eax, 0x51eb851f
mov qword [rsp + 0x48], rdi
mov edi, r8d
mov r8d, edx
xor ebx, ebx
mov rsi, rcx
mov rcx, qword [rcx]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
je 0x1006471a
lea rdx, str.Couldnt_set_desired_mode
call fcn.1004b840
lea eax, [rbx + 0x11]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
add rsp, 0x28
ret
cmp r8d, 0xc8
je 0x1006472f
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.1004b790
cmp edi, 0x13
jne 0x1006473e
mov rcx, rsi
call fcn.10064640
jmp 0x10064769
cmp edi, 0x14
jne 0x1006474d
mov rcx, rsi
call fcn.100614a0
jmp 0x10064769
cmp edi, 0x15
jne 0x1006475c
mov rcx, rsi
call fcn.100646a0
jmp 0x10064769
cmp edi, 0x16
jne 0x1006476b
mov rcx, rsi
call fcn.100646b0
mov ebx, eax
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x28
ret

Function at 0x10064ef0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x38], rbx
mov ebx, dword [rcx + 0x758]
mov qword [rsp + 0x40], rsi
mov rsi, qword [rcx]
mov eax, 0x51eb851f
mov qword [rsp + 0x48], rdi
imul edx
sar edx, 5
mov rdi, rcx
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
je 0x10064f89
test ebx, ebx
jne 0x10064f3e
lea rdx, str.disabling_EPRT_usage_n
mov rcx, rsi
call fcn.1004b790
mov dword [rdi + 0x3e4], ebx
add ebx, 1
cmp ebx, 2
jne 0x10064f6c
lea rdx, str.Failed_to_do_PORT
mov rcx, rsi
call fcn.1004b840
lea eax, [rbx + 0x1c]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
add rsp, 0x28
ret
mov edx, ebx
mov rcx, rdi
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
add rsp, 0x28
jmp 0x10060c90
lea rdx, str.Connect_data_stream_actively_n
mov rcx, rsi
call fcn.1004b790
xor edx, edx
mov rcx, rdi
call fcn.10060b40
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
add rsp, 0x28
jmp fcn.10064d30
Function at 0x1006f3c0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x148
mov rax, qword [0x100b4478]
xor rax, rsp
mov qword [rsp + 0x130], rax
call fcn.10038510
mov byte [rsp + 0x20], 0
test rax, rax
je 0x1006f426
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x1006f426
lea rcx, [rsp + 0x20]
call qword [fcn.1003c040]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.10021bf0
add rsp, 0x148
ret
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.10021bf0
add rsp, 0x148
ret
jmp 0x1006f3c0

Function at 0x1006f440
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x148
mov rax, qword [0x100b4478]
xor rax, rsp
mov qword [rsp + 0x130], rax
call fcn.10038510
mov byte [rsp + 0x20], 0
test rax, rax
je 0x1006f426
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x1006f426
lea rcx, [rsp + 0x20]
call qword [fcn.1003c040]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.10021bf0
add rsp, 0x148
ret
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.10021bf0
add rsp, 0x148
ret
jmp 0x1006f3c0

Function at 0x100721b0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x50
xor eax, eax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x68]
mov edx, 0x4004747b
mov dword [rsp + 0x28], 4
mov rbx, rcx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x10072217
lea r9, [rsp + 0x68]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x50
pop rbx
ret
Function at 0x100737f0
Capabilities:
Resolve dns

Disassembly:
sub rsp, 0x68
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x58], rbp
mov rbp, qword [rsp + 0x98]
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r14
mov qword [rbp], 0
mov qword [rsp + 0x28], r15
mov byte [rax], 0
movzx r13d, r9w
mov r14d, r8d
mov r15d, edx
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
mov r12, rax
je 0x10073948
cmp word [rax + 0x10], 2
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rdi
jne 0x100738f7
cmp word [rax + 0x12], 4
jne 0x100738f7
mov rdi, qword [rax + 0x18]
mov rcx, qword [rdi]
test rcx, rcx
je 0x100738f7
nop
nop
mov esi, dword [rcx]
mov edx, gethostbyname
lea ecx, [rdx - 0x2f]
call fcn.10032730
test rax, rax
mov rbx, rax
je 0x100738dd
mov edx, reloc.WS2_32.dll_recv
lea ecx, [rdx - 0xf]
call fcn.10032730
test rax, rax
jne 0x100738b5
mov rcx, rbx
call fcn.10021fb0
xor ebx, ebx
jmp 0x100738dd
mov word [rax], 2
mov word [rax + 2], r13w
mov dword [rax + 4], esi
mov dword [rbx + 4], 2
mov dword [rbx + 8], r15d
mov dword [rbx + 0xc], r14d
mov qword [rbx + reloc.WS2_32.dll_recv], 0x10
mov qword [rbx + 0x20], rax
test rbx, rbx
mov qword [rbp], rbx
je 0x10073941
mov rcx, qword [rdi + 8]
add rdi, 8
lea rbp, [rbx + 0x28]
test rcx, rcx
jne 0x10073880
mov r8, qword [r12]
mov rcx, qword [rsp + 0x90]
mov r9d, 0x400
lea edx, [r9 + 1]
call fcn.1002e9b0
xor eax, eax
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x48]
mov r15, qword [rsp + 0x28]
mov r14, qword [rsp + 0x30]
mov r13, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x58]
add rsp, 0x68
ret
mov eax, 8
jmp 0x10073914
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2af9
je 0x1007395f
sub eax, 1
je 0x1007396d
sub eax, 1
je 0x10073966
mov eax, 0x2af9
jmp 0x10073923
mov eax, 0x2afb
jmp 0x10073923
mov eax, 0x2afa
jmp 0x10073923
Function at 0x10074390
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
sub rsp, 0x288
mov rax, qword [0x100b4478]
xor rax, rsp
mov qword [rsp + 0x270], rax
cmp dword [0x100b781c], 0
lea rax, [0x10073cf0]
mov qword [r11 + 8], rbx
mov qword [rsp + 0x28], rax
lea rax, str.getnameinfo
lea rbx, str.getaddrinfo
mov qword [rsp + 0x30], rax
lea rax, [0x100740c0]
mov qword [r11 + 0x10], rbp
mov qword [rsp + 0x38], rax
lea rax, str.freeaddrinfo
movzx ebp, cx
mov qword [rsp + 0x40], rax
lea rax, [0x10073c90]
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x48], rax
jne 0x1007456c
lea rcx, [r11 - 0x128]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10074562
lea r8, [rsp + 0x160]
lea rcx, [rsp + 0x50]
mov edx, 0x10c
mov qword [rsp + 0x2a0], rsi
call fcn.100223e0
lea r8, str.ws2_32
lea rcx, [rsp + 0x50]
mov edx, 0x10c
call fcn.10022580
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x10074488
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x100744e8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r8, [rsp + 0x160]
lea rcx, [rsp + 0x50]
mov edx, 0x10c
call fcn.100223e0
lea r8, str.wship6
lea rcx, [rsp + 0x50]
mov edx, 0x10c
call fcn.10022580
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x1007455a
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x100744e8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1007455a
mov qword [rsp + 0x2a8], rdi
lea rbx, [rsp + 0x28]
xor edi, edi
nop
nop
nop
mov rdx, qword [rbx - 8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rbx], rax
je 0x10074549
add rdi, 1
add rbx, 0x10
cmp rdi, 3
jl 0x10074500
mov rax, qword [rsp + 0x28]
mov qword [0x100b5bc8], rax
mov rax, qword [rsp + 0x38]
mov qword [0x100b5bd8], rax
mov rax, qword [rsp + 0x48]
mov qword [0x100b5be8], rax
jmp 0x10074552
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdi, qword [rsp + 0x2a8]
mov rsi, qword [rsp + 0x2a0]
mov dword [0x100b781c], 1
mov rbx, qword [rsp + 0x290]
movzx eax, bp
mov rbp, qword [rsp + 0x298]
lea rcx, str.getaddrinfo
add rax, rax
mov rax, qword [rcx + rax*8 + 8]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.10021bf0
add rsp, 0x288
ret

Function at 0x10074bd0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call fcn.100835f0
test rax, rax
je 0x10074bf9
cmp rax, 0xffffffffffffffff
jne 0x10074bfb
xor eax, eax
add rsp, 0x38
ret
Function at 0x10078e20
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x40], rbx
mov rbx, rcx
mov qword [rsp + 0x50], rsi
lea rcx, str.kernel32
mov qword [rsp + 0x58], rdi
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
mov rdi, rax
jne 0x10078e61
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
add rsp, 0x38
ret
lea rdx, str.LoadLibraryExA
mov rcx, rax
mov qword [rsp + 0x48], rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x10094060]
mov rcx, rbx
mov rbp, rax
call fcn.10083d60
test rax, rax
je 0x10078eb6
test rbp, rbp
je 0x10078ea5
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 8]
call rbp
mov rsi, rax
jmp 0x10078fb3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
jmp 0x10078fb3
test rbp, rbp
je 0x10078ee5
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x10078ee5
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call rbp
mov rsi, rax
jmp 0x10078fb3
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], r13
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
mov r13d, eax
je 0x10078fae
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
mov qword [rsp + 0x30], r12
not rcx
lea rax, [rcx - 1]
lea ecx, [r13 + 1]
add rcx, rax
call qword [fcn.10021ff0]
test rax, rax
mov r12, rax
je 0x10078fa0
mov edx, r13d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10078fa0
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, r12
repne scasb al, byte [rdi]
mov rdi, r12
not rcx
mov word [rcx + r12 - 1], 0x5c
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
add rcx, r12
nop
movzx eax, byte [rbx]
add rcx, 1
add rbx, 1
test al, al
mov byte [rcx - 1], al
jne 0x10078f70
test rbp, rbp
je 0x10078f94
xor edx, edx
mov rcx, r12
lea r8d, [rdx + 8]
call rbp
jmp 0x10078f9d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
mov rcx, r12
call qword [fcn.10021fb0]
mov r12, qword [rsp + 0x30]
mov r13, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x50]
add rsp, 0x38
ret

Function at 0x10078fd0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
xor eax, eax
test edx, edx
lea r8, [rsp + 0x38]
setne al
mov edx, 0x8004667e
mov dword [rsp + 0x38], eax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
add rsp, 0x28
ret

Function at 0x1007a550
Capabilities:
Get hostname

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x40], rbx
movsxd rbx, edx
mov qword [rsp + 0x48], rdi
mov edx, ebx
mov rdi, rcx
mov byte [rcx], 0
call qword [sym.imp.WS2_32.dll_gethostname]
mov byte [rbx + rdi - 1], 0
mov rbx, qword [rsp + 0x40]
test eax, eax
jne 0x1007a592
lea edx, [rax + 0x2e]
mov rcx, rdi
call fcn.10023230
test rax, rax
je 0x1007a590
mov byte [rax], 0
xor eax, eax
mov rdi, qword [rsp + 0x48]
add rsp, 0x28
ret
Function at 0x1007a6c0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov r11, rsp
sub rsp, 0x98
mov rax, qword [0x100b4478]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov qword [r11 + 0x20], rbx
mov qword [r11 - 8], rsi
mov qword [r11 - 0x10], rdi
mov rdi, rcx
mov rsi, r8
mov rbx, rdx
lea rcx, [r11 - 0x50]
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x40], 8
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1007a79b
xor eax, eax
lea rdx, [rsp + 0x64]
mov rcx, rsi
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov byte [rsp + 0x58], 8
mov byte [rsp + 0x59], 2
mov dword [rsp + 0x5c], 0x6601
mov dword [rsp + 0x60], 8
mov dword [rsp + 0x68], eax
call fcn.1007a620
lea rcx, [rsp + 0x64]
mov edx, 8
call fcn.1007e780
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
lea r11, [rsp + 0x50]
lea r8d, [r9 + 0x14]
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x1007a79f
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
jmp 0x1007a7ec
mov ecx, dword [rsp + 0x40]
mov rax, qword [rdi]
xor r9d, r9d
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x50]
xor edx, edx
mov qword [rbx], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 1
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x90]
mov rbx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.10021bf0
add rsp, 0x98
ret

Function at 0x1007a820
Capabilities:
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rsi
mov rsi, rdx
mov rbx, rcx
mov qword [rsp + 0x48], rdi
mov rdi, r8
mov r8, rcx
mov rdx, rdi
mov rcx, rsi
call fcn.1007a6c0
lea r8, [rbx + 7]
lea rdx, [rdi + 8]
mov rcx, rsi
call fcn.1007a6c0
lea r8, [rbx + 0xe]
lea rdx, [rdi + 0x10]
mov rcx, rsi
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
add rsp, 0x28
jmp fcn.1007a6c0
Function at 0x1007a9b0
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 0x20], rbx
mov qword [rax - 8], rbp
mov qword [rax - 0x10], rsi
mov qword [rax - 0x18], rdi
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, rdx
mov rsi, r8
mov rbp, rdx
repne scasb al, byte [rdi]
movabs rax, 0x7fffffffffffffff
not rcx
sub rcx, 1
cmp rcx, rax
mov rbx, rcx
jbe 0x1007a9fe
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1007aae2
test rcx, rcx
je 0x1007aa11
add rcx, rcx
call qword [fcn.10021ff0]
mov rdi, rax
jmp 0x1007aa21
lea rcx, [0x100a16d0]
call qword [fcn.1003c040]
mov rdi, rax
test rdi, rdi
je 0x1007a9f4
mov r8, rbx
mov rdx, rbp
mov rcx, rdi
call fcn.1007cba0
lea rcx, [rsp + 0x40]
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1007aacf
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1007aac2
mov rcx, qword [rsp + 0x38]
lea r8d, [rbx + rbx]
xor r9d, r9d
mov rdx, rdi
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
mov r8, rsi
mov edx, 2
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x40]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, rdi
mov dword [rsi + 0x10], eax
mov byte [rsi + 0x14], al
call qword [fcn.10021fb0]
xor eax, eax
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x88]
add rsp, 0x68
ret

Function at 0x1007aec0
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push rbx
sub rsp, 0x30
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rbx, rcx
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1007af03
mov rcx, qword [rbx]
lea rax, [rbx + 8]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8003
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
add rsp, 0x30
pop rbx
ret
Function at 0x1007de00
Capabilities:
Hash data using sha256

Disassembly:
xor eax, eax
mov dword [rcx + 8], 0x6a09e667
mov dword [rcx + 0xc], 0xbb67ae85
mov dword [rcx + 0x10], 0x3c6ef372
mov dword [rcx + 0x14], 0xa54ff53a
mov dword [rcx + 0x18], 0x510e527f
mov dword [rcx + 0x28], eax
mov qword [rcx], rax
mov dword [rcx + 0x1c], 0x9b05688c
mov dword [rcx + 0x20], 0x1f83d9ab
mov dword [rcx + 0x24], 0x5be0cd19
ret

Function at 0x1007e7e0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub rsp, 0x38
mov eax, dword [rcx + 0x18]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
lea r9d, [rax + rax]
mov eax, dword [rcx + 0x20]
mov rbx, rcx
lea rcx, [r9 + rax + 0x18]
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x30], r12
mov r12d, r8d
mov rbp, rdx
call qword [fcn.10021ff0]
test rax, rax
mov rdi, rax
je 0x1007e90c
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rdi + 0x10], rax
cmp r12d, dword [rbx + 0x1c]
jbe 0x1007e861
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, r12d
mov rdx, rbp
call qword [rbx + reloc.WS2_32.dll_htonl]
mov ebp, dword [rbx + 0x18]
mov rdx, qword [rdi + 8]
add rbp, qword [rdi + 0x10]
mov rcx, rbp
call qword [rbx + reloc.WS2_32.dll_recv]
mov r12d, dword [rbx + 0x20]
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x50], rsi
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test r12, r12
je 0x1007e8c6
mov rsi, r12
nop
movzx eax, byte [rbp]
lea rdx, [rsp + 0x20]
mov r8d, 1
xor al, 0x36
mov byte [rsp + 0x20], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx r11d, byte [rbp]
lea rdx, [rsp + 0x20]
xor r11b, 0x5c
mov r8d, 1
add rbp, 1
mov byte [rsp + 0x20], r11b
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub r12, 1
jne 0x1007e880
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1007e904
nop
mov rcx, qword [rdi + 8]
lea rdx, [0x10094814]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x10094815]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
add rsi, 1
cmp rsi, rax
jb 0x1007e8d0
mov rsi, qword [rsp + 0x50]
mov rax, rdi
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x38
ret
Function at 0x10086e00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x30
test rcx, rcx
mov ebx, edx
jne 0x10086e46
call fcn.10024110
mov dword [rax], 0
call fcn.100240e0
mov ebx, reloc.WLDAP32.dll_Ordinal_22
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rax], ebx
mov qword [rsp + 0x20], 0
call fcn.100221e0
neg ebx
sbb eax, eax
add rsp, 0x30
pop rbx
ret
test edx, 0xfffffff9
jne 0x10086e0d
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10086e77
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.10024140
call fcn.100240e0
mov ebx, dword [rax]
neg ebx
sbb eax, eax
add rsp, 0x30
pop rbx
ret
test al, 0x10
jne 0x10086eab
test al, 1
je 0x10086eab
test bl, 2
je 0x10086eab
call fcn.10024110
mov dword [rax], 5
call fcn.100240e0
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.100240e0
mov ebx, dword [rax]
neg ebx
sbb eax, eax
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
neg ebx
sbb eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x1400023a0
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x1400023d1
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x14012aeb8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x14012aec8]
lea rdx, [rdi + rdi]
call fcn.140001bb0
mov rax, qword [0x14012aeb8]
lea r9, [rdi - 1]
mov qword [0x14012aee0], r9
mov qword [0x14012aee8], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x140002544
mov qword [rsp + 0x40], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x14012aec8]
mov r9, qword [r11]
cmp r9, rbx
jne 0x140002490
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x140002505
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x1400024cd
mov r10, qword [rdx]
cmp r10, rax
je 0x1400024c7
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 0x140002505
cmp r9, rdx
je 0x1400024e1
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x140002519
cmp r9, rdx
jne 0x1400024d2
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
je 0x14000253f
mov r9, qword [0x14012aee0]
jmp 0x140002441
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 0x140002505
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret