joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800aba80
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x40
cmp qword [rcx + 0x58], 0x10
lea rsi, [rcx + 0x40]
movzx ebx, dl
jb 0x1800abaa3
mov rcx, qword [rsi]
jmp 0x1800abaa6
mov rcx, rsi
mov eax, reloc.WS2_32.dll_socket
mov qword [rsp + 0x58], rdi
test bl, bl
mov r14d, reloc.WS2_32.dll_setsockopt
cmovne r14d, eax
or r8d, 0xffffffff
mov edx, r14d
call fcn.18009e9f0
test rax, rax
jne 0x1800abcb5
call fcn.18009fcb0
cmp dword [rax], 8
je 0x1800abbe4
test bl, bl
je 0x1800abcb3
cmp qword [rsi + 0x18], 0x10
jb 0x1800abaf3
mov rcx, qword [rsi]
jmp 0x1800abaf6
mov rcx, rsi
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov edx, 0x12019f
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1800abbe4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsi + 0x18], 0x10
jb 0x1800abb44
mov rbx, qword [rsi]
jmp 0x1800abb47
mov rbx, rsi
call fcn.18009fcb0
mov ecx, dword [rax]
call fcn.18009e8c0
mov r9, rax
lea rdx, str.open_db__s_failed_db_broken:_s__forced_reset_successful
mov r8, rbx
mov ecx, 7
call fcn.1800a2b80
cmp qword [rsi + 0x18], 0x10
jb 0x1800abb76
mov rcx, qword [rsi]
jmp 0x1800abb79
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp qword [rsi + 0x18], 0x10
jb 0x1800abb8b
mov rcx, qword [rsi]
jmp 0x1800abb8e
mov rcx, rsi
or r8d, 0xffffffff
mov edx, r14d
call fcn.18009e9f0
test rax, rax
jne 0x1800abcb5
cmp qword [rsi + 0x18], 0x10
jb 0x1800abbad
mov rsi, qword [rsi]
call fcn.18009fcb0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
mov edi, eax
call fcn.18009e8c0
mov r9, rax
mov dword [rsp + 0x20], edi
mov r8, rsi
lea rdx, str.open_db__s_failed_db_broken:_s
mov ecx, 7
call fcn.1800a2b80
jmp 0x1800abcb3
call fcn.18009fcb0
cmp dword [rax], 3
jne 0x1800abcb3
cmp qword [rsi + 0x18], 0x10
mov qword [rsp + 0x50], rbp
jb 0x1800abc03
mov rbp, qword [rsi]
jmp 0x1800abc06
mov rbp, rsi
call fcn.18009fcb0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
mov edi, eax
call fcn.18009e8c0
mov r9, rax
mov dword [rsp + 0x20], edi
mov r8, rbp
lea rdx, str.open_db__s_failed_db_broken:_s_:_d
mov ecx, 8
call fcn.1800a2b80
cmp qword [rsi + 0x18], 0x10
mov rbp, qword [rsp + 0x50]
jb 0x1800abc49
mov rcx, qword [rsi]
jmp 0x1800abc4c
mov rcx, rsi
call fcn.18009f820
test eax, eax
jne 0x1800abc75
cmp qword [rsi + 0x18], 0x10
jb 0x1800abc5f
mov rsi, qword [rsi]
mov r8, rsi
lea rdx, str._s:repaire_failed
mov ecx, 8
call fcn.1800a2b80
jmp 0x1800abcb3
cmp qword [rsi + 0x18], 0x10
jb 0x1800abc81
mov r8, qword [rsi]
jmp 0x1800abc84
mov r8, rsi
lea rdx, str._s:repaire_sucess
mov ecx, 8
call fcn.1800a2b80
cmp qword [rsi + 0x18], 0x10
jb 0x1800abc9f
mov rsi, qword [rsi]
or r8d, 0xffffffff
mov edx, r14d
mov rcx, rsi
call fcn.18009e9f0
test rax, rax
jne 0x1800abcb5
xor eax, eax
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1800b02e0
Capabilities:
Get file version info

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x260
mov rax, qword [0x18049d0e0]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor bl, bl
mov r14, rdx
cmp qword [rcx + 0x10], 0
mov rdi, rcx
je 0x1800b04d5
mov qword [rsp + 0x290], rsi
call fcn.180081e40
mov rcx, rax
lea rdx, [rsp + 0x30]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test eax, eax
je 0x1800b04d0
mov ecx, esi
mov qword [rsp + 0x288], rbp
lea rdx, [0x1804b7a00]
call fcn.1800b83ec
mov rbp, rax
test rax, rax
je 0x1800b04a1
mov rcx, rdi
call fcn.180081e40
mov edx, dword [rsp + 0x30]
mov rcx, rax
mov r9, rbp
mov r8d, esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1800b0499
lea r9, [rsp + 0x34]
mov rcx, rbp
lea r8, [rsp + 0x38]
lea rdx, str.VarFileInfoTranslation
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1800b0499
mov rax, qword [rsp + 0x38]
mov rdi, qword [r14]
mov qword [rsp + 0x298], r15
movzx r15d, word [rax]
movzx eax, word [rax + 2]
mov rbx, qword [rdi]
shl r15d, 0x10
or r15d, eax
cmp rbx, rdi
je 0x1800b048f
cmp qword [rbx + 0x38], 8
jb 0x1800b03d2
mov rax, qword [rbx + 0x20]
jmp 0x1800b03d6
lea rax, [rbx + 0x20]
mov r9d, r15d
mov qword [rsp + 0x20], rax
lea r8, str.StringFileInfo_08lx_s
mov edx, 0x100
lea rcx, [rsp + 0x50]
call fcn.1800b0c80
lea r9, [rsp + 0x34]
mov rcx, rbp
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1800b0437
mov rdx, qword [rsp + 0x40]
cmp word [rdx], 0
jne 0x1800b041f
xor r8d, r8d
jmp 0x1800b042e
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x1800b0423
lea rcx, [rbx + 0x40]
call fcn.1800856a0
cmp byte [rbx + 0x19], 0
jne 0x1800b0486
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x1800b0461
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x1800b0486
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1800b0453
jmp 0x1800b0486
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x1800b0483
nop dword [rax + rax]
cmp rbx, qword [rax + 0x10]
jne 0x1800b0483
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1800b0470
mov rbx, rax
cmp rbx, rdi
jne 0x1800b03c5
mov r15, qword [rsp + 0x298]
mov bl, 1
mov rcx, rbp
call fcn.1800b78dc
mov rbp, qword [rsp + 0x288]
movzx eax, bl
mov rsi, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1800b80c0
add rsp, 0x260
pop r14
pop rdi
pop rbx
ret
movzx eax, bl
jmp 0x1800b04ac
movzx eax, bl
jmp 0x1800b04b4

Function at 0x1800b0ce0
Capabilities:
Initialize winsock library
Print debug messages

Disassembly:
push rbx
sub rsp, 0x1d0
mov rax, qword [0x18049d0e0]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1800b0d1f
lea rcx, str.WSAStartup_error___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rax, rbx
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1800b80c0
add rsp, 0x1d0
pop rbx
ret
Function at 0x1800b0d50
Capabilities:
Get disk information

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x510
mov rax, qword [0x18049d0e0]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
mov rbp, rdx
mov r14, rcx
xor edx, edx
lea rcx, [rsp + 0x100]
mov r8d, 0x3e8
call fcn.18020d410
xor eax, eax
lea rcx, [rsp + 0x30]
xor r15d, r15d
mov dword [rsp + 0x22], eax
xor edx, edx
mov word [rsp + 0x20], r15w
mov r8d, reloc.WLDAP32.dll_Ordinal_200
call fcn.18020d410
test r14, r14
je 0x1800b0f50
test rbp, rbp
je 0x1800b0f50
lea r8d, [r15 + 0xc]
mov rcx, r14
lea rdx, str.DeviceMup_
call fcn.180215350
test eax, eax
jne 0x1800b0dfa
lea rdx, [0x18032ce9c]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [r14 + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [r15 + 1]
jmp 0x1800b0f11
mov qword [rsp + 0x540], rbx
lea rdx, [rsp + 0x100]
mov qword [rsp + 0x508], rsi
mov ecx, 0x3e8
mov qword [rsp + 0x500], rdi
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x1800b0eeb
mov edi, r15d
cmp word [rsp + 0x100], di
je 0x1800b0eeb
lea rbx, [rsp + 0x100]
nop word [rax + rax]
movsxd rax, edi
lea rsi, [rsp + 0x100]
lea rdx, [0x18032d1e8]
lea rsi, [rsi + rax*2]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1800b0eda
lea rdx, [0x18032d1f0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1800b0eda
movzx eax, word [rbx]
lea rdx, [rsp + 0x30]
mov word [rsp + 0x20], ax
lea rcx, [rsp + 0x20]
movzx eax, word [rbx + 2]
mov r8d, 0x64
mov word [rsp + 0x22], ax
mov word [rsp + 0x24], r15w
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1800b0ef7
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rsi, eax
lea rdx, [rsp + 0x30]
mov r8, rsi
mov rcx, r14
call fcn.180215350
test eax, eax
je 0x1800b0f2e
add rbx, 8
add edi, 4
cmp word [rbx], r15w
jne 0x1800b0e50
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
mov rsi, qword [rsp + 0x508]
mov rbx, qword [rsp + 0x540]
mov rdi, qword [rsp + 0x500]
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.1800b80c0
add rsp, 0x510
pop r15
pop r14
pop rbp
ret
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [r14 + rsi*2]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, 1
jmp 0x1800b0ef9
xor eax, eax
jmp 0x1800b0f11
Function at 0x1800b1180
Capabilities:
Get process image filename

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x450
mov rax, qword [0x18049d0e0]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rdi, rdx
mov r8d, ecx
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x1800b11f2
xor edx, edx
lea rcx, [rsp + 0x230]
mov r8d, 0x208
call fcn.18020d410
mov r8d, 0x104
lea rdx, [rsp + 0x230]
mov rcx, rbx
call sub.KERNEL32.dll_K32GetProcessImageFileNameW
test eax, eax
jne 0x1800b11f6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1800b125a
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.18020d410
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x230]
call fcn.1800b0d50
test eax, eax
je 0x1800b11e9
cmp word [rsp + 0x20], 0
jne 0x1800b122b
xor r8d, r8d
jmp 0x1800b123f
lea rax, [rsp + 0x20]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x1800b1234
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1800856a0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1800b80c0
mov rbx, qword [rsp + 0x470]
add rsp, 0x450
pop rdi
ret

Function at 0x1800b1450
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x198
mov rax, qword [0x18049d0e0]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rsi, r8
mov dword [rsp + 0x34], 1
mov r15, rdx
mov r14, rcx
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x105
mov rbp, r9
call fcn.18020d410
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x30], 0x105
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [rsp + 0x40]
xor ebx, ebx
cmp ax, 9
je 0x1800b14c0
cmp ax, 6
mov eax, ebx
jne 0x1800b14c5
mov eax, 1
test eax, eax
mov ecx, 0x100
mov r9d, 0x200
lea rax, [rsp + 0x38]
cmovne r9d, ecx
mov qword [rsp + 0x20], rax
or r9d, 0x20019
xor r8d, r8d
mov rdx, r15
mov rcx, r14
mov edi, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1800b155e
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1800b155e
cmp byte [rsp + 0x70], bl
je 0x1800b1549
lea rax, [rsp + 0x70]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rax + rbx], dil
jne 0x1800b1540
mov r8, rbx
lea rdx, [rsp + 0x70]
mov rcx, rbp
call fcn.180085e50
mov edi, 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1800b80c0
add rsp, 0x198
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800b1590
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x290
mov rax, qword [0x18049d0e0]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rsi, r8
mov qword [rsp + 0x38], rcx
mov r14, rdx
mov dword [rsp + 0x34], 1
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x20a
mov rbp, r9
call fcn.18020d410
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x30], 0x105
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [rsp + 0x40]
xor ebx, ebx
cmp ax, 9
je 0x1800b1600
cmp ax, 6
mov eax, ebx
jne 0x1800b1605
mov eax, 1
test eax, eax
mov ecx, 0x100
mov r9d, 0x200
lea rax, [rsp + 0x38]
cmovne r9d, ecx
mov qword [rsp + 0x20], rax
or r9d, 0x20019
xor r8d, r8d
mov rdx, r14
mov rcx, 0xffffffff80000002
mov edi, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1800b169e
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800b169e
cmp word [rsp + 0x70], bx
je 0x1800b1689
lea rax, [rsp + 0x70]
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rax + rbx*2], di
jne 0x1800b1680
mov r8, rbx
lea rdx, [rsp + 0x70]
mov rcx, rbp
call fcn.1800856a0
mov edi, 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1800b80c0
add rsp, 0x290
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800b16d0
Capabilities:
Get common file path
Get file version info

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x268
mov rax, qword [0x18049d0e0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r15, r8
mov r14, rdx
mov rsi, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x40]
mov rbp, r9
call fcn.18020d410
xor r9d, r9d
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x25]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x1800b17dc
lea rdx, str.kernel32.dll
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x1800b17dc
xor edx, edx
lea rcx, [rsp + 0x40]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test eax, eax
je 0x1800b17dc
mov ecx, edi
call fcn.1800b7c18
mov r9, rax
lea rcx, [rsp + 0x40]
mov r8d, edi
xor edx, edx
mov rbx, rax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1800b17d4
xor eax, eax
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
mov dword [rsp + 0x30], eax
lea rdx, [0x18032d234]
mov qword [rsp + 0x38], rax
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1800b17d4
mov rcx, qword [rsp + 0x38]
movzx eax, word [rcx + 0xa]
mov dword [rsi], eax
movzx eax, word [rcx + 8]
mov dword [r14], eax
movzx eax, word [rcx + 0xe]
mov dword [r15], eax
movzx eax, word [rcx + 0xc]
mov rcx, rbx
mov dword [rbp], eax
call fcn.1800b78dc
mov al, 1
jmp 0x1800b17de
mov rcx, rbx
call fcn.1800b78dc
xor al, al
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1800b80c0
add rsp, 0x268
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800d81c0
Capabilities:
Query environment variable

Disassembly:
mov eax, Ordinal_41
call fcn.1800b8100
sub rsp, rax
cmp dword [0x1804b838c], 0
jne 0x1800d8322
mov qword [rsp + 0x38], rbp
lea r8d, [rax + 8]
mov qword [rsp + 0x40], rsi
lea rcx, str.OPENSSL_ia32cap
mov qword [rsp + 0x20], rdi
lea rdi, [0x1804b8390]
mov rdx, rdi
mov dword [0x1804b838c], 1
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x2e
ja 0x1800d82ee
movzx r11d, word [0x1804b8390]
xor ebp, ebp
mov eax, ebp
cmp r11w, 0x7e
sete al
lea rcx, [rdi + rax*2]
call fcn.1800d8810
mov rsi, rax
cmp r11w, 0x7e
jne 0x1800d827d
mov qword [rsp + 0x30], rbx
lea rcx, [0x18051c270]
mov rbx, rax
call fcn.180004bf0
movzx r11d, word [0x1804b8390]
not rsi
and rsi, rax
bt rbx, 0x18
mov rbx, qword [rsp + 0x30]
jae 0x1800d829b
movabs rax, 0xedfff7fdffffffff
and rsi, rax
jmp 0x1800d829b
cmp r11w, 0x3a
jne 0x1800d829b
lea rcx, [0x18051c270]
call fcn.180004bf0
movzx r11d, word [0x1804b8390]
mov rsi, rax
test r11w, r11w
je 0x1800d82b7
cmp r11w, 0x3a
je 0x1800d82bf
movzx r11d, word [rdi + 2]
add rdi, 2
test r11w, r11w
jne 0x1800d82a1
mov dword [0x18051c278], ebp
jmp 0x1800d82fd
cmp word [rdi + 2], 0x7e
sete bpl
lea rcx, [rbp + 1]
lea rcx, [rdi + rcx*2]
call fcn.1800d8810
cmp word [rdi + 2], 0x7e
jne 0x1800d82e6
not eax
and dword [0x18051c278], eax
jmp 0x1800d82fd
mov dword [0x18051c278], eax
jmp 0x1800d82fd
lea rcx, [0x18051c270]
call fcn.180004bf0
mov rsi, rax
mov rdi, qword [rsp + 0x20]
mov eax, esi
mov rbp, qword [rsp + 0x38]
bts eax, 0xa
shr rsi, 0x20
mov dword [0x18051c274], esi
mov rsi, qword [rsp + 0x40]
mov dword [0x18051c270], eax
add rsp, 0x28
ret
Function at 0x1801c0e80
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0x1505
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x50], rax
jae 0x1801c0f0a
mov rax, qword [rsp + 0x28]
shl rax, 5
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax]
mov byte [rsp + 0x20], al
movzx ecx, byte [rsp + 0x20]
call fcn.1801d42b0
movsx rax, al
mov rcx, qword [rsp + 0x28]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
inc rax
mov qword [rsp + 0x50], rax
jmp 0x1801c0eac
xor edx, edx
mov rax, qword [rsp + 0x28]
mov ecx, 0x100
div rcx
mov rax, rdx
add rsp, 0x48
ret
push rdi
sub rsp, 0x20
mov rdi, rcx
test rcx, rcx
je 0x1801c148d
call fcn.1801d6250
test al, al
jne 0x1801c148d
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rsi
xor esi, esi
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rdi + rbx], sil
jne 0x1801c1427
mov r8, rbx
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, rdi
call fcn.1801e0690
test rax, rax
je 0x1801c146c
sub rax, rdi
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov r8, rax
mov rcx, rdi
call fcn.1801e0690
mov rsi, rax
test rax, rax
je 0x1801c146c
inc rsi
mov rcx, rdi
sub rcx, rsi
add rbx, rcx
test rsi, rsi
mov rdx, rbx
cmovne rdi, rsi
mov rcx, rdi
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x1801c0e80
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x1801c1400
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0x1505
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x50], rax
jae 0x1801c0f0a
mov rax, qword [rsp + 0x28]
shl rax, 5
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax]
mov byte [rsp + 0x20], al
movzx ecx, byte [rsp + 0x20]
call fcn.1801d42b0
movsx rax, al
mov rcx, qword [rsp + 0x28]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
inc rax
mov qword [rsp + 0x50], rax
jmp 0x1801c0eac
xor edx, edx
mov rax, qword [rsp + 0x28]
mov ecx, 0x100
div rcx
mov rax, rdx
add rsp, 0x48
ret
push rdi
sub rsp, 0x20
mov rdi, rcx
test rcx, rcx
je 0x1801c148d
call fcn.1801d6250
test al, al
jne 0x1801c148d
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rsi
xor esi, esi
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rdi + rbx], sil
jne 0x1801c1427
mov r8, rbx
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, rdi
call fcn.1801e0690
test rax, rax
je 0x1801c146c
sub rax, rdi
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov r8, rax
mov rcx, rdi
call fcn.1801e0690
mov rsi, rax
test rax, rax
je 0x1801c146c
inc rsi
mov rcx, rdi
sub rcx, rsi
add rbx, rcx
test rsi, rsi
mov rdx, rbx
cmovne rdi, rsi
mov rcx, rdi
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x1801c0e80
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x1801cda90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
cmp byte [rcx + 0xacf], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x1801cdb4e
cmp qword [rcx + 0x268], 0
je 0x1801cdb0e
mov qword [rsp + 0x40], rbx
call fcn.1801bb650
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.1801bb9a0
mov rcx, qword [rdi + 0x1d8]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x268]
movzx edx, bl
mov rcx, rdi
call fcn.1801bb9a0
mov rbx, qword [rsp + 0x40]
jmp 0x1801cdb4e
cmp esi, 2
ja 0x1801cdb4e
mov r9, qword [rdi + 0x1d0]
lea rax, [0x1803ff7c8]
mov edx, 2
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call fcn.180214c68
mov r9, qword [rdi + 0x1d0]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call fcn.180214c68
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x1801cdb70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rdi
sub rsp, 0x160
mov rax, qword [0x18049d0e0]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp byte [rcx + 0xacf], 0
mov rdi, rcx
jne 0x1801cdbb3
cmp qword [rcx + 0x1e0], 0
je 0x1801cdca1
mov r8, rdx
mov qword [rsp + 0x150], rsi
mov edx, 0x100
lea r9, [rsp + 0x180]
lea rcx, [rsp + 0x30]
call sym.gcm64.dll_curl_mvsnprintf
mov rdx, qword [rdi + 0x1e0]
movsxd r9, eax
test rdx, rdx
je 0x1801cdc19
cmp byte [rdi + 0x132b], 0
jne 0x1801cdc19
lea r8, [rsp + 0x30]
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r8]
lea r8, [r8 + 1]
mov byte [rdx], cl
lea rdx, [rdx + 1]
test cl, cl
jne 0x1801cdc00
mov byte [rdi + 0x132b], 1
mov byte [rsp + r9 + 0x30], 0xa
inc r9d
movsxd rsi, r9d
cmp rsi, 0x102
jae 0x1801cdcf2
cmp byte [rdi + 0xacf], 0
mov byte [rsp + rsi + 0x30], 0
je 0x1801cdc99
cmp qword [rdi + 0x268], 0
je 0x1801cdcba
mov rcx, rdi
mov qword [rsp + 0x158], rbx
call fcn.1801bb650
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.1801bb9a0
mov rdx, qword [rdi + 0x1d8]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rdx
mov r9, rsi
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x268]
movzx edx, bl
mov rcx, rdi
call fcn.1801bb9a0
mov rbx, qword [rsp + 0x158]
mov rsi, qword [rsp + 0x150]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800b80c0
add rsp, 0x160
pop rdi
ret
mov r9, qword [rdi + 0x1d0]
lea rcx, [0x1803ff7c8]
mov edx, 2
lea r8d, [rdx - 1]
call fcn.180214c68
mov r9, qword [rdi + 0x1d0]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rsi
call fcn.180214c68
jmp 0x1801cdc99
call fcn.1800b84fc
int3
Function at 0x1801cded0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x130
mov rax, qword [0x18049d0e0]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rbx, qword [rsp + 0x180]
mov rbp, rcx
mov rcx, qword [rcx + 0x18]
mov rsi, r9
movsxd rax, edx
mov rdi, r8
mov r14, qword [rcx + rax*8 + 0x1b8]
call fcn.1801ce3d0
test rax, rax
jle 0x1801cdf22
mov dword [rbx], 0
jmp 0x1801cdf8d
xor r9d, r9d
mov r8d, esi
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
movsxd rsi, eax
mov dword [rbx], 0
cmp rsi, 0xffffffffffffffff
jne 0x1801cdf8a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0x2733
jne 0x1801cdf5a
mov dword [rbx], 0x51
jmp 0x1801cdf8a
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, edi
call fcn.1801b6bd0
mov r8, rax
lea rdx, str.Recv_failure:__s
mov rcx, rbp
call fcn.1801cdb70
mov dword [rbp + 0xd8c], edi
mov dword [rbx], gethostname
mov rax, rsi
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1800b80c0
add rsp, 0x130
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1801cdfb0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x130
mov rax, qword [0x18049d0e0]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rbx, qword [rsp + 0x180]
mov rdi, r8
movsxd r8, edx
mov rsi, r9
mov rdx, qword [rcx + 0x18]
mov rbp, rcx
mov r14, qword [rdx + r8*8 + 0x1b8]
call fcn.1801ce540
test eax, eax
je 0x1801ce005
mov dword [rbx], reloc.WLDAP32.dll_Ordinal_27
or rax, 0xffffffffffffffff
jmp 0x1801ce070
xor r9d, r9d
mov r8d, esi
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
movsxd rsi, eax
mov dword [rbx], 0
cmp rsi, 0xffffffffffffffff
jne 0x1801ce06d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0x2733
jne 0x1801ce03d
mov dword [rbx], 0x51
jmp 0x1801ce06d
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, edi
call fcn.1801b6bd0
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, rbp
call fcn.1801cdb70
mov dword [rbp + 0xd8c], edi
mov dword [rbx], gethostname
mov rax, rsi
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1800b80c0
add rsp, 0x130
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret