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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x1e8
mov rax, qword [0x1401990d8]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov rax, qword [rsp + 0x1f0]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x1f0]
cmp dword [rax + 0xbc], 2
jne 0x1400d4a09
jmp 0x1400d4c45
mov rax, qword [rsp + 0x1f0]
mov eax, dword [rax + 0x3c4]
shr eax, 1
and eax, 1
test eax, eax
jne 0x1400d4c38
mov rax, qword [rsp + 0x1f0]
mov eax, dword [rax + 0x3c4]
shr eax, 0x1b
and eax, 1
test eax, eax
jne 0x1400d4c38
mov dword [rsp + 0x20], reloc.OLEAUT32.dll_VarMonthName
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0xd0]
mov rcx, qword [rsp + 0x1f8]
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x1400d4aa6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x24], eax
mov r8d, reloc.OLEAUT32.dll_VarMonthName
lea rdx, [rsp + 0x150]
mov ecx, dword [rsp + 0x24]
call fcn.1401031b0
mov r9, rax
mov r8d, dword [rsp + 0x24]
lea rdx, str.getpeername___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x30]
call fcn.1400d3540
jmp 0x1400d4c45
mov dword [rsp + 0x20], reloc.OLEAUT32.dll_VarMonthName
mov r8d, reloc.OLEAUT32.dll_VarMonthName
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.140054ae0
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x1f8]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1400d4b1b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x28], eax
mov r8d, reloc.OLEAUT32.dll_VarMonthName
lea rdx, [rsp + 0x150]
mov ecx, dword [rsp + 0x28]
call fcn.1401031b0
mov r9, rax
mov r8d, dword [rsp + 0x28]
lea rdx, [0x14019afb8]
mov rcx, qword [rsp + 0x30]
call fcn.1400d3540
jmp 0x1400d4c45
mov rax, qword [rsp + 0x1f0]
add rax, 0x1bc
mov rcx, qword [rsp + 0x1f0]
add rcx, 0x18e
mov r8, rax
mov rdx, rcx
lea rcx, [rsp + 0xd0]
call fcn.1400d4c70
movzx eax, al
test eax, eax
jne 0x1400d4b97
call fcn.14007bf48
mov r8d, reloc.OLEAUT32.dll_VarMonthName
lea rdx, [rsp + 0x150]
mov ecx, dword [rax]
call fcn.1401031b0
mov qword [rsp + 0x38], rax
call fcn.14007bf48
mov rcx, qword [rsp + 0x38]
mov r9, rcx
mov r8d, dword [rax]
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x30]
call fcn.1400d3540
jmp 0x1400d4c45
mov rax, qword [rsp + 0x1f0]
add rax, 0x18e
mov rcx, qword [rsp + 0x1f0]
add rcx, 0x88
mov r8d, reloc.WLDAP32.dll_Ordinal_46
mov rdx, rax
call fcn.1400530f0
mov rax, qword [rsp + 0x1f0]
add rax, 0x1f0
mov rcx, qword [rsp + 0x1f0]
add rcx, 0x1c0
mov r8, rax
mov rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.1400d4c70
movzx eax, al
test eax, eax
jne 0x1400d4c38
call fcn.14007bf48
mov r8d, reloc.OLEAUT32.dll_VarMonthName
lea rdx, [rsp + 0x150]
mov ecx, dword [rax]
call fcn.1401031b0
mov qword [rsp + 0x40], rax
call fcn.14007bf48
mov rcx, qword [rsp + 0x40]
mov r9, rcx
mov r8d, dword [rax]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x30]
call fcn.1400d3540
jmp 0x1400d4c45
mov rcx, qword [rsp + 0x1f0]
call fcn.1400d4d30
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140051d60
add rsp, 0x1e8
ret
Function at 0x1400d5660
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x1401990d8]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0xe74]
shr eax, 0xd
and eax, 1
test eax, eax
je 0x1400d56a2
mov dword [rsp + 0x54], 1
jmp 0x1400d56aa
mov dword [rsp + 0x54], 0
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x50]
mov r8d, 8
mov edx, 0xffff
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x1400d56fd
mov r8, qword [rsp + 0x98]
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov rcx, qword [rsp + 0x90]
call fcn.1400d2f70
jmp 0x1400d57cf
mov dword [rsp + 0x60], 1
mov rax, qword [rsp + 0x90]
mov ecx, dword [rax + 0xdfc]
call fcn.1400d39f0
mov dword [rsp + 0x50], eax
imul eax, dword [rsp + 0x50], 0x3e8
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x64], eax
mov rax, qword [rsp + 0x90]
mov ecx, dword [rax + 0xe00]
call fcn.1400d39f0
mov dword [rsp + 0x50], eax
imul eax, dword [rsp + 0x50], 0x3e8
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x68], eax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, listen
lea r8, [rsp + 0x60]
mov edx, 0x98000004
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x1400d57cf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, eax
mov r8d, dword [rsp + 0x98]
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
mov rcx, qword [rsp + 0x90]
call fcn.1400d2f70
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140051d60
add rsp, 0x88
ret
Function at 0x1400d9d60
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 0x1400d9dea
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.1400eb2e0
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 0x1400d9d8c
xor edx, edx
mov rax, qword [rsp + 0x28]
mov ecx, 0x100
div rcx
mov rax, rdx
add rsp, 0x48
ret
Function at 0x1400e9390
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x98
mov rax, qword [0x1401990d8]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x24], 2
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x1160]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xc8]
mov dword [rax], 0
lea r8, [rsp + 0x20]
mov rdx, qword [rsp + 0xb8]
mov ecx, 2
call fcn.1401034d0
test eax, eax
jle 0x1400e9435
mov r9d, dword [rsp + 0xc0]
mov r8, qword [rsp + 0xb8]
lea rdx, [rsp + 0x20]
mov ecx, 2
call fcn.1401066d0
jmp 0x1400e94e6
mov r8d, Ordinal_50
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.140054ae0
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0xbc]
mov dword [rsp + 0x40], eax
mov r9d, dword [rsp + 0xc0]
lea r8, [0x14019b2f4]
mov edx, listen
lea rcx, [rsp + 0x78]
call fcn.1400ee0d0
lea rcx, [rsp + 0x68]
call fcn.140101640
mov rdi, qword [rsp + 0x30]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea r9, [rsp + 0x38]
mov r8d, dword [rsp + 0xc0]
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xb0]
call fcn.1400e96a0
movzx eax, al
test eax, eax
je 0x1400e94d3
mov rax, qword [rsp + 0xc8]
mov dword [rax], 1
xor eax, eax
jmp 0x1400e94e6
lea rdx, str.getaddrinfo___thread_failed_to_start_n
mov rcx, qword [rsp + 0x28]
call fcn.1400d3540
xor eax, eax
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140051d60
add rsp, 0x98
pop rdi
pop rsi
ret
Function at 0x1400eecd0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x54]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4004747b
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1400eed4b
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x54]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x68
ret
Function at 0x1401036f0
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp dword [rsp + 0x48], 0
je 0x14010370e
mov dword [rsp + 0x20], 1
jmp 0x140103716
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x24], eax
lea r8, [rsp + 0x24]
mov edx, 0x8004667e
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
add rsp, 0x38
ret
Function at 0x140107780
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x168
mov rax, qword [0x1401990d8]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rcx, qword [rsp + 0x170]
call fcn.1400999b4
mov qword [rsp + 0x28], rax
mov eax, 1
imul rax, rax, 0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0x104
jae 0x1401077cb
jmp 0x1401077d0
call fcn.140051a30
mov rax, qword [rsp + 0x20]
mov byte [rsp + rax + 0x40], 0
cmp qword [rsp + 0x28], 0
je 0x1401077f8
mov r8d, 0x104
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov eax, 1
imul rax, rax, 0
movsx eax, byte [rsp + rax + 0x40]
test eax, eax
je 0x14010781c
lea rcx, [rsp + 0x40]
call qword [str.dg_n_]
mov qword [rsp + 0x30], rax
jmp 0x140107825
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140051d60
add rsp, 0x168
ret
Function at 0x14011f900
Capabilities:
Check http status code

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x20], 0
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x48]
cdq
mov ecx, SHCoCreateInstance
idiv ecx
cmp eax, 2
je 0x14011f950
lea rdx, str.Couldnt_set_desired_mode
mov rcx, qword [rsp + 0x28]
call fcn.1400d3540
mov eax, reloc.WS2_32.dll_recvfrom
jmp 0x14011f9ce
cmp dword [rsp + 0x48], 0xc8
je 0x14011f970
mov r8d, dword [rsp + 0x48]
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
mov rcx, qword [rsp + 0x28]
call fcn.1400d2f70
cmp dword [rsp + 0x50], 0x13
jne 0x14011f987
mov rcx, qword [rsp + 0x40]
call fcn.140121560
mov dword [rsp + 0x20], eax
jmp 0x14011f9ca
cmp dword [rsp + 0x50], 0x14
jne 0x14011f99e
mov rcx, qword [rsp + 0x40]
call fcn.1401212d0
mov dword [rsp + 0x20], eax
jmp 0x14011f9ca
cmp dword [rsp + 0x50], 0x15
jne 0x14011f9b5
mov rcx, qword [rsp + 0x40]
call fcn.140121290
mov dword [rsp + 0x20], eax
jmp 0x14011f9ca
cmp dword [rsp + 0x50], 0x16
jne 0x14011f9ca
mov rcx, qword [rsp + 0x40]
call fcn.140121250
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x140123510
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x1401990d8]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx + rax + 0x240]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0xffffffffffffffff
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14012359c
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x70]
call fcn.1400d3f30
cmp qword [rsp + 0x38], 0xffffffffffffffff
jne 0x1401235ce
lea rdx, str.Error_accept__ing_server_connect
mov rcx, qword [rsp + 0x28]
call fcn.1400d3540
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x1401236a8
lea rdx, str.Connection_accepted_from_server_n
mov rcx, qword [rsp + 0x28]
call fcn.1400d2f70
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x3c4]
btr eax, 0xb
mov rcx, qword [rsp + 0x70]
mov dword [rcx + 0x3c4], eax
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x38]
mov qword [rcx + rax + 0x240], rdx
mov edx, 1
mov rcx, qword [rsp + 0x38]
call fcn.1401036f0
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x70]
mov byte [rcx + rax + 0x260], 1
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x738], 0
je 0x1401236a6
mov dword [rsp + 0x30], 0
mov dl, 1
mov rcx, qword [rsp + 0x28]
call fcn.1400cbbf0
mov r8d, 1
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x740]
mov rax, qword [rsp + 0x28]
call qword [rax + 0x738]
mov dword [rsp + 0x30], eax
xor edx, edx
mov rcx, qword [rsp + 0x28]
call fcn.1400cbbf0
cmp dword [rsp + 0x30], 0
je 0x1401236a6
mov rcx, qword [rsp + 0x70]
call fcn.140123830
mov eax, Ordinal_45
jmp 0x1401236a8
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140051d60
add rsp, 0x68
ret
Function at 0x140126e00
Capabilities:
Send data
Send data on socket

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x20], 0xff
mov eax, 1
imul rax, rax, 1
movzx ecx, byte [rsp + 0x58]
mov byte [rsp + rax + 0x20], cl
mov eax, 1
imul rax, rax, 2
movzx ecx, byte [rsp + 0x60]
mov byte [rsp + rax + 0x20], cl
mov eax, 8
imul rax, rax, 0
xor r9d, r9d
mov r8d, 3
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + rax + 0x240]
call qword [sym.imp.WS2_32.dll_send]
cdqe
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jge 0x140126eaa
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x24], eax
mov r8d, dword [rsp + 0x24]
lea rdx, str.Sending_data_failed___d_
mov rcx, qword [rsp + 0x30]
call fcn.1400d3540
mov r9d, dword [rsp + 0x60]
mov r8d, dword [rsp + 0x58]
lea rdx, str.SENT
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call fcn.140126ee0
add rsp, 0x48
ret

Function at 0x1401272c0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x1e8
mov rax, qword [0x1401990d8]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
xor eax, eax
test eax, eax
jne 0x1401272de
mov eax, 2
mov word [rsp + 0x20], ax
lea rdx, [rsp + 0x30]
movzx ecx, word [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x140127329
mov r8d, dword [rsp + 0x24]
lea rdx, str.WSAStartup_failed___d_
mov rcx, qword [rsp + 0x1f0]
call fcn.1400d3540
mov eax, 2
jmp 0x140127396
call qword [sym.imp.WS2_32.dll_WSACleanup]
movzx eax, word [rsp + 0x30]
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x20]
and rcx, 0xff
movzx ecx, cl
cmp eax, ecx
jne 0x140127379
movzx eax, word [rsp + 0x30]
shr rax, 8
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x20]
shr rcx, 8
and rcx, 0xff
movzx ecx, cl
cmp eax, ecx
je 0x140127394
lea rdx, str.insufficient_winsock_version_to_support_telnet
mov rcx, qword [rsp + 0x1f0]
call fcn.1400d3540
mov eax, 2
jmp 0x140127396
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140051d60
add rsp, 0x1e8
ret
Function at 0x14012e9b0
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x34], 4
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x38], eax
mov r8, qword [rsp + 0x78]
xor edx, edx
mov rcx, qword [rsp + 0x70]
call fcn.140054ae0
mov dword [rsp + 0x20], 0xf0000000
mov r9d, dword [rsp + 0x80]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14012ea2c
jmp 0x14012eb04
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x14012ea57
jmp 0x14012eadc
xor r9d, r9d
mov r8d, dword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x14012ea75
jmp 0x14012eadc
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x30]
mov edx, 4
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x14012ea9d
jmp 0x14012eadc
mov eax, dword [rsp + 0x30]
cmp qword [rsp + 0x78], rax
jae 0x14012eaaa
jmp 0x14012eadc
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x38]
mov r8, qword [rsp + 0x70]
mov edx, 2
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x14012ead2
jmp 0x14012eadc
xor eax, eax
test eax, eax
jne 0x14012ea2c
cmp qword [rsp + 0x40], 0
je 0x14012eaef
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp qword [rsp + 0x48], 0
je 0x14012eb04
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
add rsp, 0x58
ret

Function at 0x140134590
Capabilities:
Hash data via wincrypt

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor r9d, r9d
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
add rsp, 0x28
ret

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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x140134625
mov rax, qword [rsp + 0x40]
add rax, 8
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8003
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
add rsp, 0x38
ret
Function at 0x1401347e0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
xor edx, edx
xor ecx, ecx
call fcn.14007f910
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14013483a
mov ecx, 0xffffffff
call fcn.14001c370
cmp qword [rsp + 0x30], rax
jne 0x14013483e
xor eax, eax
jmp 0x140134843
mov rax, qword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x14013ac70
Capabilities:
Get hostname

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov byte [rcx + rax], 0
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_gethostname]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x48]
dec eax
cdqe
mov rcx, qword [rsp + 0x40]
mov byte [rcx + rax], 0
cmp dword [rsp + 0x20], 0
je 0x14013acc0
mov eax, dword [rsp + 0x20]
jmp 0x14013ace6
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, qword [rsp + 0x40]
call fcn.140054e20
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14013ace4
mov rax, qword [rsp + 0x28]
mov byte [rax], 0
xor eax, eax
add rsp, 0x38
ret

Function at 0x14013c840
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x1401990d8]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x40], 8
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14013c896
xor al, al
jmp 0x14013c98a
mov r8d, reloc.WS2_32.dll_sendto
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.140054ae0
mov byte [rsp + 0x58], 8
mov byte [rsp + 0x59], 2
mov dword [rsp + 0x5c], 0x6601
mov dword [rsp + 0x60], 8
lea rdx, [rsp + 0x64]
mov rcx, qword [rsp + 0xa0]
call fcn.14013c9b0
mov edx, 8
lea rcx, [rsp + 0x64]
call fcn.140144d30
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, reloc.WS2_32.dll_sendto
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x14013c923
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
jmp 0x14013c98a
mov r8d, 8
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
call fcn.1400530f0
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140051d60
add rsp, 0x88
ret
Function at 0x14013cba0
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x78]
call fcn.140080560
mov qword [rsp + 0x38], rax
movabs rax, 0x7fffffffffffffff
cmp qword [rsp + 0x38], rax
jbe 0x14013cbdd
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14013cd2b
cmp qword [rsp + 0x38], 0
je 0x14013cbfd
mov rax, qword [rsp + 0x38]
shl rax, 1
mov rcx, rax
call qword [fcn.14007d63c]
mov qword [rsp + 0x50], rax
jmp 0x14013cc0f
lea rcx, [0x1401aa289]
call qword [str.dg_n_]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x14013cc2b
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14013cd2b
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x40]
call fcn.14013c7d0
mov dword [rsp + 0x30], 0
cmp dword [rsp + 0x30], 0
je 0x14013cc57
mov eax, dword [rsp + 0x30]
jmp 0x14013cd2b
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14013cd02
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8002
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x14013ccf5
mov dword [rsp + 0x34], reloc.WS2_32.dll_recv
mov eax, dword [rsp + 0x38]
shl eax, 1
xor r9d, r9d
mov r8d, eax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8, qword [rsp + 0x80]
mov edx, 2
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rax, qword [rsp + 0x80]
add rax, 0x10
mov r8d, 5
xor edx, edx
mov rcx, rax
call fcn.140054ae0
mov rcx, qword [rsp + 0x40]
call qword [fcn.14007b234]
xor eax, eax
add rsp, 0x68
ret