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

Disassembly:
cmp edx, 0x1f
jne 0x140032cfe
push rbp
push rdi
push r13
sub rsp, 0x30
mov rbp, qword [rcx]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x28], rsi
mov rdi, qword [rbp + 0x1b0]
mov r13, rcx
mov qword [rsp + 0x20], r12
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x140032b99
mov byte [rsi], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140032ba7
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140032bb5
mov byte [rax], Ordinal_33
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r12d, ax
mov word [rsp + 0x58], ax
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rbx]
movzx r11d, ax
mov word [rsp + 0x50], ax
cmp rcx, rbx
jae 0x140032bef
mov byte [rcx], r12b
inc qword [rbx]
mov rdx, qword [rbx]
mov r12, qword [rsp + 0x20]
cmp rdx, rbx
jae 0x140032c06
movzx ecx, byte [rsp + 0x59]
mov byte [rdx], cl
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140032c14
mov byte [rax], r11b
inc qword [rbx]
mov rcx, qword [rbx]
cmp rcx, rbx
jae 0x140032c26
movzx eax, byte [rsp + 0x51]
mov byte [rcx], al
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140032c34
mov byte [rax], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140032c42
mov byte [rax], 0xf0
inc qword [rbx]
mov rax, qword [rbx]
lea r8, [rdi + 0x1cba]
mov edx, 0x3e
mov r9, rax
mov rcx, rbp
mov qword [rbx], rsi
sub r9, rsi
mov qword [rdi + 0x1ec0], rax
sub r9, 2
call fcn.140031ef0
mov rcx, qword [r13 + 0x4c0]
xor r9d, r9d
lea r8d, [r9 + 3]
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x60]
test eax, eax
jns 0x140032caa
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140019080
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r13
call fcn.140032850
mov rcx, qword [r13 + 0x4c0]
xor r9d, r9d
lea r8d, [r9 + 2]
lea rdx, [rdi + 0x1cbf]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140032cf6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140019080
add rsp, 0x30
pop r13
pop rdi
pop rbp
repz ret
Function at 0x1400399a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0xa0
mov rbp, qword [rcx + 0x4c8]
mov rsi, qword [rcx]
mov rdi, rcx
lea r8, [rax + 8]
lea rdx, [rsp + 0x20]
mov rcx, rbp
or rbx, 0xffffffffffffffff
mov dword [rax + 8], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140039a09
lea r8, [rsp + 0xb0]
lea rdx, [rsp + 0x20]
mov rcx, rbp
mov dword [rsp + 0xb0], 0x80
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
mov rdx, rbp
mov rcx, rdi
call fcn.140021f60
mov rcx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x140039a31
lea rdx, str.Error_accept__ing_server_connect
call fcn.140019080
lea eax, [rbx + 0x1f]
jmp 0x140039ab3
lea rdx, str.Connection_accepted_from_server_n
call fcn.140018f20
mov edx, 1
mov rcx, rbx
mov dword [rdi + 0x6c8], 0
mov qword [rdi + 0x4c8], rbx
call fcn.14004b860
mov dword [rdi + 0x714], 1
cmp qword [rsi + 0x730], 0
je 0x140039ab1
mov edx, 1
mov rcx, rsi
call fcn.140016590
mov rcx, qword [rsi + 0x738]
mov r8d, 1
mov rdx, rbx
call qword [rsi + 0x730]
xor edx, edx
mov rcx, rsi
mov ebx, eax
call fcn.140016590
test ebx, ebx
je 0x140039ab1
mov rcx, rdi
call fcn.140039890
mov eax, Ordinal_46
jmp 0x140039ab3
xor eax, eax
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14003daf0
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, 0x51eb851f
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 0x14003db42
lea rdx, str.Couldnt_set_desired_mode
call fcn.140019080
lea eax, [rbx + 0x11]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp r8d, 0xc8
je 0x14003db57
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.140018f20
cmp edi, 0x13
jne 0x14003db66
mov rcx, rsi
call fcn.14003da40
jmp 0x14003db96
cmp edi, 0x14
jne 0x14003db75
mov rcx, rsi
call fcn.14003a6c0
jmp 0x14003db96
cmp edi, 0x15
jne 0x14003db80
lea r8d, [rdi - 8]
jmp 0x14003db89
cmp edi, 0x16
jne 0x14003db98
lea r8d, [rdi - 8]
mov edx, 1
mov rcx, rsi
call fcn.14003cc70
mov ebx, eax
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
add rcx, 0xa80
cmp r8d, 0x1b
je 0x14003ddc1
cmp edx, 0x15e
jne 0x14003ddb4
mov rax, qword [str.Accept_ranges:_bytes_r_n]
lea r8, [rsp + 0x20]
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov rax, qword [0x14011d760]
mov rcx, rbx
mov qword [rsp + 0x28], rax
mov eax, dword [0x14011d768]
mov dword [rsp + 0x30], eax
movzx eax, word [0x14011d76c]
mov word [rsp + 0x34], ax
movzx eax, byte [0x14011d76e]
mov byte [rsp + 0x36], al
xor eax, eax
lea edx, [rax + 3]
mov byte [rsp + 0x37], al
call fcn.140019490
test eax, eax
jne 0x14003de04
mov rcx, rbx
add rsp, 0x40
pop rbx
jmp fcn.14003d910
cmp edx, 0x15e
je 0x14003dde3
mov rcx, qword [rbx]
lea rdx, str.Couldnt_use_REST
call fcn.140019080
mov eax, Ordinal_33
add rsp, 0x40
pop rbx
ret
mov r8, qword [rcx + 0xa8]
lea rdx, str.RETR__s
call fcn.140053510
test eax, eax
jne 0x14003de04
mov dword [rbx + 0xb60], 0x20
add rsp, 0x40
pop rbx
ret
Function at 0x14003e340
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, qword [rcx]
mov ebx, dword [rcx + 0xb54]
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov rdi, rcx
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
je 0x14003e3cc
test ebx, ebx
jne 0x14003e38a
lea rdx, str.disabling_EPRT_usage_n
mov rcx, rsi
call fcn.140018f20
mov dword [rdi + 0x6e0], ebx
inc ebx
cmp ebx, 2
jne 0x14003e3b3
lea rdx, str.Failed_to_do_PORT
mov rcx, rsi
call fcn.140019080
lea eax, [rbx + 0x1c]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov edx, ebx
mov rcx, rdi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp 0x140039d80
lea rdx, str.Connect_data_stream_actively_n
mov rcx, rsi
call fcn.140018f20
mov dword [rdi + 0xb60], 0
mov rcx, qword [rdi]
mov rax, qword [rcx + 0x1b0]
cmp dword [rax + 0x10], 0
je 0x14003e40e
or r8, 0xffffffffffffffff
xor r9d, r9d
mov dword [rsp + 0x20], 0xffffffff
or edx, r8d
call fcn.14004a1d0
jmp 0x14003e418
mov dword [rdi + 0x6c8], 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov dword [rdi + 0xb34], 1
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x14004b860
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 0x14004dce0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rdi, rcx
lea rcx, [rsp + 0x30]
movaps xmmword [rsp + 0x50], xmm6
mov rbx, rdx
call fcn.140025250
mov r8d, 1
mov rdx, rbx
mov rcx, rdi
movups xmm6, xmmword [rax]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x14004dd70
nop dword [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.140025250
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.1400252e0
cmp rax, 0x3e8
ja 0x14004dd82
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x14004dd20
xor eax, eax
mov rbx, qword [rsp + 0x70]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
mov rbx, qword [rsp + 0x70]
movaps xmm6, xmmword [rsp + 0x50]
mov eax, 1
add rsp, 0x60
pop rdi
ret
Function at 0x140052f10
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rdi, rcx
mov rsi, r8
mov rbx, rdx
lea rcx, [rbp - 0x30]
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov dword [rbp + 0x28], 8
mov dword [rsp + 0x20], 0xf0000040
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14005303b
movzx edx, byte [rsi + 1]
movzx ecx, byte [rsi]
movzx r8d, byte [rsi + 5]
xor eax, eax
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x10], eax
mov qword [rbp - 0x20], rax
mov byte [rbp - 0x14], cl
shl cl, 7
movzx eax, dl
shr al, 1
shl dl, 6
mov word [rbp - 0x20], 0x208
or al, cl
movzx ecx, byte [rsi + 2]
mov dword [rbp - 0x1c], 0x6601
mov byte [rbp - 0x13], al
movzx eax, cl
shl cl, 5
shr al, 2
mov dword [rbp - 0x18], 8
or al, dl
movzx edx, byte [rsi + 3]
mov byte [rbp - 0x12], al
movzx eax, dl
shl dl, 4
shr al, 3
or al, cl
movzx ecx, byte [rsi + 4]
mov byte [rbp - 0x11], al
movzx eax, cl
shl cl, 3
shr al, 4
or al, dl
mov edx, 8
mov byte [rbp - 0x10], al
movzx eax, r8b
shl r8b, 2
shr al, 5
or al, cl
movzx ecx, byte [rsi + 6]
mov byte [rbp - 0xf], al
movzx eax, cl
add cl, cl
shr al, 6
mov byte [rbp - 0xd], cl
lea rcx, [rbp - 0x14]
or al, r8b
mov byte [rbp - 0xe], al
call fcn.14005a740
mov rcx, qword [rbp - 0x30]
xor r9d, r9d
lea r11, [rbp - 0x28]
lea rdx, [rbp - 0x20]
mov qword [rsp + 0x28], r11
lea r8d, [r9 + 0x14]
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x14005303f
mov rcx, qword [rbp - 0x30]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
jmp 0x140053087
mov ecx, dword [rbp + 0x28]
mov rax, qword [rdi]
xor r9d, r9d
mov dword [rsp + 0x30], ecx
lea rcx, [rbp + 0x28]
xor r8d, r8d
mov qword [rsp + 0x28], rcx
mov rcx, qword [rbp - 0x28]
xor edx, edx
mov qword [rbx], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rbp - 0x30]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 1
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
mov r8, rcx
mov rdx, rdi
mov rcx, rsi
call fcn.140052f10
lea r8, [rbx + 7]
lea rdx, [rdi + 8]
mov rcx, rsi
call fcn.140052f10
lea r8, [rbx + 0xe]
lea rdx, [rdi + 0x10]
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140052f10
Function at 0x1400547e0
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsxd rbx, edx
mov rdi, rcx
mov byte [rcx], 0
mov edx, ebx
call qword [sym.imp.WS2_32.dll_gethostname]
mov byte [rbx + rdi - 1], 0
test eax, eax
jne 0x140054819
lea edx, [rax + 0x2e]
mov rcx, rdi
call sub.MSVCR120.dll_strchr
test rax, rax
je 0x140054817
mov byte [rax], 0
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14005a8a0
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
mov rbx, rcx
mov rdi, r8
mov rsi, rdx
lea rcx, [rax - 0x18]
lea r9d, [rbp + 1]
xor r8d, r8d
xor edx, edx
mov qword [rax - 0x18], rbp
mov qword [rax - 0x10], rbp
mov dword [rax - 0x28], 0xf0000040
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14005a905
mov rcx, qword [rsp + 0x30]
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]
mov rcx, rdi
call fcn.14001d0b0
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
mov r8d, eax
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x38]
xor r8d, r8d
lea edx, [r8 + 2]
lea r9, [rsp + 0x68]
mov dword [rsp + 0x68], ebp
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rsp + 0x68], 0x10
jne 0x14005a963
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x68]
mov r8, rbx
mov edx, 2
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14005a973
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14005a985
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14005bff0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r12
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov r12d, r8d
lea r9d, [rax + rax]
mov eax, dword [rcx + 0x20]
mov rbp, rdx
lea rcx, [r9 + rax + 0x18]
call qword [sub.MSVCR120.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x14005c031
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r12
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rsp + 0x48], rsi
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rdi + 0x10], rax
cmp r12d, dword [rbx + 0x1c]
jbe 0x14005c075
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]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test r12, r12
je 0x14005c0d4
mov rsi, r12
nop dword [rax + rax]
movzx eax, byte [rbp]
lea rdx, [rsp + 0x40]
mov r8d, 1
xor al, 0x36
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx r11d, byte [rbp]
lea rdx, [rsp + 0x40]
xor r11b, 0x5c
mov r8d, 1
inc rbp
mov byte [rsp + 0x40], r11b
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
dec r12
jne 0x14005c090
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14005c113
nop dword [rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1401234f2]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1401234f3]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14005c0e0
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rax, rdi
add rsp, 0x20
pop r12
pop rdi
pop rbp
ret
Function at 0x14005c370
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
mov rdi, r8
mov rsi, rdx
lea rcx, [rsp + 0x30]
mov r9d, Ordinal_26
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0xf0000040
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14005c3ca
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800c
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov rcx, rdi
call fcn.14001d0b0
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
mov r8d, eax
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x38]
xor edi, edi
lea edx, [rdi + 2]
lea r9, [rsp + 0x68]
xor r8d, r8d
mov dword [rsp + 0x68], edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rsp + 0x68], 0x20
jne 0x14005c427
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x68]
lea edx, [rdi + 2]
mov r8, rbx
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14005c437
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14005c449
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1400741a0
Capabilities:
Get file size
Move file

Disassembly:
jmp 0x1400741a0
push rbx
sub rsp, 0x180
mov rax, qword [0x1401475c0]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rbx, rcx
mov rcx, qword [rcx + 0x118]
test rcx, rcx
je 0x140074328
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x3200000
jb 0x140074328
lea rcx, [rsp + 0x71]
xor edx, edx
mov r8d, 0xff
mov qword [rsp + 0x198], rdi
mov byte [rsp + 0x70], 0
call sub.MSVCR120.dll_memset
xor eax, eax
xor ecx, ecx
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x59], rax
mov qword [rsp + 0x61], rax
mov dword [rsp + 0x69], eax
mov word [rsp + 0x6d], ax
mov byte [rsp + 0x6f], al
call qword [sym.imp.MSVCR120.dll__time64]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], rax
call qword [sym.imp.MSVCR120.dll__localtime64]
lea r8, str.__d__02d__02d__02d__02d__02d.txt
mov ecx, dword [rax]
mov edx, dword [rax + 0x10]
mov r9d, dword [rax + 0x14]
mov dword [rsp + 0x40], ecx
mov ecx, dword [rax + 4]
inc edx
mov dword [rsp + 0x38], ecx
mov ecx, dword [rax + 8]
mov eax, dword [rax + 0xc]
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edx
lea rcx, [rsp + 0x58]
mov edx, reloc.WS2_32.dll_socket
add r9d, 0x76c
call qword [sym.imp.MSVCR120.dll__snprintf]
movzx eax, byte [rbx + 0xd]
lea rdx, [rsp + 0x70]
test al, al
je 0x1400742a6
lea r8, [rsp + 0x70]
mov rcx, rbx
sub rcx, r8
cmp al, 0x2e
je 0x1400742a6
mov byte [rdx], al
movzx eax, byte [rcx + rdx + 0xe]
inc rdx
test al, al
jne 0x140074294
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x70]
mov r8d, 0xff
call qword [sym.imp.MSVCR120.dll_strncat]
mov rcx, qword [rbx + 0x118]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x70]
lea rcx, [rbx + 0xd]
mov qword [rbx + 0x118], 0
call qword [sym.imp.MSVCR120.dll_rename]
xor r9d, r9d
mov qword [rsp + 0x30], 0
lea rcx, [rbx + 0xd]
lea r8d, [r9 + 1]
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
mov dword [rbx + 8], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, qword [rsp + 0x198]
mov qword [rbx + 0x118], rax
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1400bcf10
add rsp, 0x180
pop rbx
ret
Function at 0x140076c50
Capabilities:
Get common file path
Get startup folder

Disassembly:
jmp 0x140076c50
mov rax, rsp
push rdi
sub rsp, 0x270
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1401475c0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x40], rcx
xor ebx, ebx
mov dword [rsp + 0x30], ebx
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], rbx
mov word [rcx], bx
mov dword [rsp + 0x30], 1
mov word [rsp + 0x50], bx
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x52]
call sub.MSVCR120.dll_memset
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx + 0x2e]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x140076d7c
cmp word [rsp + 0x50], ax
jne 0x140076cec
mov r8d, ebx
jmp 0x140076d00
lea rax, [rsp + 0x50]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140076cf5
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.14000219e
mov r8d, 1
lea rdx, [0x1400ce800]
mov rcx, rsi
call fcn.140003724
cmp qword [rdi + 0x10], 0
je 0x140076d52
cmp qword [rdi + 0x18], 8
jb 0x140076d33
mov rdi, qword [rdi]
cmp word [rdi], 0
je 0x140076d4a
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x140076d40
mov r8, rbx
mov rdx, rdi
jmp 0x140076d5f
mov r8d, ntohl
lea rdx, [0x1400ce808]
mov rcx, rsi
call fcn.140003724
mov r8d, 1
lea rdx, [0x1400ce800]
mov rcx, rsi
call fcn.140003724
mov rax, rsi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400bcf10
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1400773d0
Capabilities:
Get system information on windows

Disassembly:
jmp 0x1400773d0
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rax, [fcn.140001d3e]
test rax, rax
setne al
add rsp, 0x58
ret
Function at 0x140080bb0
Capabilities:
Get common file path

Disassembly:
jmp 0x140080bb0
push rbx
push rsi
push rdi
sub rsp, 0x180
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x1401475c0]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp byte [rcx + 0x10], 0
jne 0x140080d0e
mov byte [rsp + 0x60], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0x61]
call sub.MSVCR120.dll_memset
lea rdx, [rsp + 0x60]
mov ecx, 0x103
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
movsxd rcx, eax
cmp byte [rsp + rcx + 0x5f], 0x5c
je 0x140080c35
lea rax, [rsp + 0x60]
dec rax
lea rax, [rax + 1]
cmp byte [rax], 0
jne 0x140080c22
movzx ecx, word [0x1400cf658]
mov word [rax], cx
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
xor r8d, r8d
mov qword [rsp + 0x48], r8
mov byte [rsp + 0x38], r8b
cmp byte [rsp + 0x60], r8b
je 0x140080c6a
lea rax, [rsp + 0x60]
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140080c60
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.140001415
nop
mov r8d, reloc.WS2_32.dll_ntohs
lea rdx, str.upgrade_sensors
lea rcx, [rsp + 0x38]
call fcn.140002b1c
mov dword [rsp + 0x20], 0x64
mov r9b, 1
mov r8, rdi
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.140001b36
mov byte [rbx + 0x10], al
call fcn.140003a8f
mov r10, qword [rax]
movzx edx, byte [rbx + 0x10]
mov dword [rsp + 0x28], edx
lea rdx, str.sensors_init_result__d_.
mov qword [rsp + 0x20], rdx
mov r9d, reloc.WLDAP32.dll_Ordinal_32
lea r8, str.CSensorsCollector::Init
lea rdx, str.DataCollectorSensorsCollector.cpp
mov rcx, rax
call qword [r10 + reloc.WS2_32.dll_recv]
cmp byte [rbx + 0x10], 0
je 0x140080cfc
xor ecx, ecx
call fcn.140001a96
mov rcx, rbx
call fcn.140003076
nop
cmp qword [rsp + 0x50], 0x10
jb 0x140080d0e
mov rcx, qword [rsp + 0x38]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1400bcf10
add rsp, 0x180
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400a42c0
Capabilities:
Check internet connectivity via wininet

Disassembly:
jmp 0x1400a42c0
push rdi
sub rsp, 0x60
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov dword [rsp + 0x70], 7
xor edx, edx
lea rcx, [rsp + 0x70]
call qword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x1400a435c
call fcn.140003a8f
mov rbx, rax
mov rdi, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rsp + 0x70]
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], eax
lea rax, str.InternetGetConnectedState_lasterror_code___d_type___d
mov qword [rsp + 0x20], rax
mov r9d, 0x135
lea r8, str.FNetwork::IsNetworkDeviceValid
lea rdx, str.FNetwork.cpp
mov rcx, rbx
call qword [rdi + reloc.WS2_32.dll_recv]
xor edx, edx
lea rcx, [rsp + 0x48]
call qword [sym.imp.Qt5Network.dll_public:_void___cdecl_QNetworkConfigurationManager::constructor_class_QObject____ptr64____ptr64]
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.Qt5Network.dll_public:_bool___cdecl_QNetworkConfigurationManager::isOnline_void_const___ptr64]
movzx ebx, al
lea rcx, [rsp + 0x48]
call qword [sym.imp.Qt5Network.dll_public_virtual:_void___cdecl_QNetworkConfigurationManager::destructor_void____ptr64]
movzx eax, bl
jmp 0x1400a435e
mov al, 1
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret