joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003bb78
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1400e30a8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x20], 0
mov eax, 1
imul rax, rax, 9
mov byte [rsp + rax + 0x38], 0x75
mov eax, 1
imul rax, rax, 3
mov byte [rsp + rax + 0x38], 0x54
mov eax, 1
imul rax, rax, 5
mov byte [rsp + rax + 0x38], 0x63
mov eax, 1
imul rax, rax, 2
mov byte [rsp + rax + 0x38], reloc.WS2_32.dll_WSACleanup
mov eax, 1
imul rax, rax, 0xa
mov byte [rsp + rax + 0x38], WSASetLastError
mov eax, 1
imul rax, rax, 4
mov byte [rsp + rax + 0x38], 0x69
mov eax, 1
imul rax, rax, 0xb
mov byte [rsp + rax + 0x38], reloc.WS2_32.dll_WSACleanup
mov eax, 1
imul rax, rax, 7
mov byte [rsp + rax + 0x38], 0x43
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x38], 0x47
mov eax, 1
imul rax, rax, 8
mov byte [rsp + rax + 0x38], reloc.WS2_32.dll_WSAGetLastError
mov eax, 1
imul rax, rax, 1
mov byte [rsp + rax + 0x38], 0x65
mov eax, 1
imul rax, rax, 6
mov byte [rsp + rax + 0x38], WSAGetLastError
mov eax, 1
imul rax, rax, 0xc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xd
jae 0x14003bc53
jmp 0x14003bc58
call fcn.140088f10
mov rax, qword [rsp + 0x28]
mov byte [rsp + rax + 0x38], 0
call fcn.1400366b0
lea rdx, [rsp + 0x38]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14003bc8a
call qword [rsp + 0x30]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140089130
add rsp, 0x58
ret

Function at 0x14003bca8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1400e30a8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x20], 0
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x38], 0x47
mov eax, 1
imul rax, rax, 2
mov byte [rsp + rax + 0x38], reloc.WS2_32.dll_WSACleanup
mov eax, 1
imul rax, rax, 5
mov byte [rsp + rax + 0x38], reloc.WS2_32.dll_WSAStartup
mov eax, 1
imul rax, rax, 1
mov byte [rsp + rax + 0x38], 0x65
mov eax, 1
imul rax, rax, 8
mov byte [rsp + rax + 0x38], WSACleanup
mov eax, 1
imul rax, rax, 7
mov byte [rsp + rax + 0x38], 0x45
mov eax, 1
imul rax, rax, 3
mov byte [rsp + rax + 0x38], 0x4c
mov eax, 1
imul rax, rax, 6
mov byte [rsp + rax + 0x38], reloc.WS2_32.dll_WSACleanup
mov eax, 1
imul rax, rax, 0xa
mov byte [rsp + rax + 0x38], reloc.WS2_32.dll_WSAGetLastError
mov eax, 1
imul rax, rax, 0xb
mov byte [rsp + rax + 0x38], WSACleanup
mov eax, 1
imul rax, rax, 9
mov byte [rsp + rax + 0x38], WSACleanup
mov eax, 1
imul rax, rax, 0xc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xd
jae 0x14003bd75
jmp 0x14003bd7a
call fcn.140088f10
mov rax, qword [rsp + 0x28]
mov byte [rsp + rax + 0x38], 0
mov eax, 1
imul rax, rax, 4
mov byte [rsp + rax + 0x38], 0x61
call fcn.1400366b0
lea rdx, [rsp + 0x38]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14003bdba
call qword [rsp + 0x30]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140089130
add rsp, 0x58
ret
Function at 0x140041c7c
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x1400e30a8]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x140041cce
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140041cb5
mov eax, 2
jmp 0x140041d29
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x140041cc6
shr ax, 8
cmp al, 2
je 0x140041cce
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x140041cae
call fcn.140053c38
test eax, eax
jne 0x140041d29
lea rcx, str.iphlpapi.dll
call fcn.140041d80
mov qword [0x1400e5d60], rax
test rax, rax
je 0x140041cff
lea rdx, str.if_nametoindex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edx, edx
mov dword [rsp + 0x20], 3
lea ecx, [rdx + 6]
call fcn.140053e7c
test al, al
lea rcx, [0x1400e5e70]
setne byte [0x1400e5e78]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140089130
add rsp, 0x1e8
ret

Function at 0x140041d80
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, rcx
xor ebx, ebx
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
je 0x140041eb6
lea rdx, str.LoadLibraryExA
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1400d2f08]
mov rcx, rbp
mov rsi, rax
call fcn.140096380
test rax, rax
je 0x140041df6
mov rcx, rbp
test rsi, rsi
je 0x140041dee
mov r8d, 8
jmp 0x140041e19
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x140041e1d
test rsi, rsi
je 0x140041e25
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140041e25
mov r8d, 0x800
mov rcx, rbp
xor edx, edx
call rsi
mov rbx, rax
jmp 0x140041eb3
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r14d, eax
test eax, eax
je 0x140041eb3
mov rcx, rbp
call fcn.140093e00
lea ecx, [r14 + 1]
add rcx, rax
call qword [str.hM_t_]
mov rdi, rax
test rax, rax
je 0x140041eaa
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x140041eaa
mov rcx, rdi
call fcn.140093e00
lea rdx, [0x1400d2f20]
lea rcx, [rdi + rax]
call fcn.1400961f0
mov rcx, rdi
call fcn.140093e00
mov rdx, rbp
lea rcx, [rdi + rax]
call fcn.1400961f0
mov rcx, rdi
test rsi, rsi
je 0x140041ea1
xor edx, edx
lea r8d, [rdx + 8]
call rsi
jmp 0x140041ea7
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
mov rcx, rdi
call qword [fcn.140093ea8]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14004655c
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbx, rdx
mov r14, rcx
movsxd rdx, r8d
mov rdi, rdx
shl rdi, 5
mov rax, qword [rbx + 0x408]
mov rsi, qword [rdi + rbx + 0x240]
sub rsi, qword [rdi + rbx + 0x248]
test byte [rax + 0x84], 3
je 0x140046675
lea rax, [0x14004699c]
cmp qword [rbx + rdx*8 + 0x218], rax
jne 0x140046675
cmp qword [rdi + rbx + 0x238], 0
je 0x1400465d2
test rsi, rsi
je 0x140046675
mov rbp, qword [rbx + rdx*8 + 0x1f0]
xor r9d, r9d
mov rcx, rbp
or r8, 0xffffffffffffffff
call fcn.14005d4b8
cmp eax, 0xffffffff
je 0x140046675
test al, 1
je 0x140046675
mov rcx, qword [rdi + rbx + 0x238]
test rcx, rcx
jne 0x14004664c
mov eax, dword [r14 + 0x6e4]
add eax, eax
movsxd rcx, eax
mov qword [rdi + rbx + 0x240], rcx
call qword [str.hM_t_]
mov qword [rdi + rbx + 0x238], rax
mov rcx, rax
test rax, rax
jne 0x140046632
lea eax, [rcx + 0x1b]
jmp 0x140046677
and qword [rdi + rbx + 0x248], 0
and qword [rdi + rbx + 0x250], 0
mov rsi, qword [rdi + rbx + 0x240]
mov rdx, qword [rdi + rbx + 0x248]
xor r9d, r9d
add rdx, rcx
mov r8d, esi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x140046675
add qword [rdi + rbx + 0x248], rcx
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x130
mov rax, qword [0x1400e30a8]
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 + 0x1f0]
call fcn.14004655c
test eax, eax
je 0x1400468dd
mov dword [rbx], 0x1b
or rax, 0xffffffffffffffff
jmp 0x140046941
xor r9d, r9d
mov r8d, esi
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
and dword [rbx], 0
movsxd rsi, eax
cmp rsi, 0xffffffffffffffff
jne 0x14004693e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0x2733
jne 0x140046914
xor esi, esi
mov dword [rbx], 0x51
jmp 0x14004693e
lea rdx, [rsp + 0x20]
mov ecx, edi
call fcn.140062360
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, rbp
call fcn.14004675c
mov dword [rbp + 0xd34], edi
mov dword [rbx], 0x37
mov rax, rsi
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140089130
add rsp, 0x130
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140046d10
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x140046d49
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
and qword [rbx], 0
mov ecx, 0x38
cmp eax, 0x2733
lea edx, [rcx + 0x19]
cmove ecx, edx
mov eax, ecx
jmp 0x140046d4e
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140046dc4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
movsxd r10, edx
mov rsi, r9
mov rbp, r8
mov rdi, rcx
cmp byte [rcx + 0xa76], bl
je 0x140046e74
cmp qword [rcx + 0x270], rbx
je 0x140046e28
mov dl, 1
call fcn.14004650c
mov rcx, qword [rcx + 0x1d8]
mov edx, r10d
mov qword [rsp + 0x20], rcx
mov rcx, rdi
call qword [rdi + 0x270]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.14004650c
jmp 0x140046e74
mov ecx, r10d
test edx, edx
je 0x140046e39
sub ecx, 1
je 0x140046e39
cmp ecx, 1
jne 0x140046e74
mov r9, qword [rdi + 0x1d0]
lea rcx, [r10 + r10*2]
mov edx, 2
lea rax, [0x1400d1da8]
add rcx, rax
lea r8d, [rdx - 1]
call fcn.14009098c
mov r9, qword [rdi + 0x1d0]
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call fcn.14009098c
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140046f98
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1400e30a8]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor eax, eax
mov dword [rsp + 0x20], 4
cmp byte [rcx + 0xa83], al
lea r9, [rsp + 0x50]
mov rdi, rdx
mov rbx, rcx
setne al
mov edx, 0xffff
mov r8d, 8
mov dword [rsp + 0x50], eax
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
js 0x14004705b
mov ecx, dword [rbx + 0xa08]
mov dword [rsp + 0x58], 1
call fcn.140046e94
mov ecx, dword [rbx + 0xa0c]
imul edx, eax, 0x3e8
mov dword [rsp + 0x5c], edx
call fcn.140046e94
and qword [rsp + 0x40], 0
lea r8, [rsp + 0x58]
and qword [rsp + 0x38], 0
mov r9d, listen
imul edx, eax, 0x3e8
mov rcx, rdi
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov dword [rsp + 0x50], edx
mov dword [rsp + 0x60], edx
mov edx, 0x98000004
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140089130
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
Function at 0x1400478d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x1c8
mov rax, qword [0x1400e30a8]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rdi, r8
mov rbx, rdx
mov r8d, 0x80
mov rsi, rcx
xor edx, edx
mov dword [rsp + 0x20], r8d
lea rcx, [rsp + 0x30]
mov rbp, r9
call fcn.14008a770
lea r8, [rsp + 0x20]
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14004794b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, [rsp + 0xb0]
mov ebx, eax
call fcn.140062360
mov r8d, ebx
lea rdx, str.getsockname___failed_with_errno__d:__s
jmp 0x14004798b
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rbp
mov r8, rdi
call fcn.140047750
test al, al
jne 0x140047996
call fcn.140093dcc
mov ebx, dword [rax]
call fcn.140093dcc
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.140062360
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.14004675c
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140089130
add rsp, 0x1c8
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140047fe0
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
sub rsp, 0x38
mov r8d, 1
mov dword [rax - 0x18], 4
mov rcx, rdx
mov dword [rax + 8], r8d
lea r9, [rax + 8]
lea edx, [r8 + 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x140048014
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
and dword [rsp + 0x48], 0
mov rbx, rcx
mov eax, dword [0x1400e5e48]
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x140048069
xor edx, edx
mov dword [rsp + 0x20], 3
lea ecx, [rax + 6]
call fcn.140053e7c
test al, al
je 0x14004805e
mov dword [0x1400e5e48], 2
jmp 0x1400480c0
mov eax, 1
mov dword [0x1400e5e48], eax
cmp eax, 2
je 0x1400480c0
lea rax, [rsp + 0x58]
mov edx, 0xffff
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14004809f
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x1400480c0
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret
Function at 0x1400480c8
Capabilities:
Connect socket

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x118]
sub rsp, 0x218
mov rax, qword [0x1400e30a8]
xor rax, rsp
mov qword [rbp + 0x100], rax
movsxd r12, r9d
mov rax, r8
mov r13, rdx
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x40]
mov r14, rcx
xor esi, esi
or qword [rdx + r12*8 + 0x200], 0xffffffffffffffff
mov rdx, rax
call fcn.140048638
mov ebx, eax
test eax, eax
jne 0x14004834b
mov edx, dword [rsp + 0x4c]
lea r9, [rsp + 0x24]
lea r8, [rbp - 0x30]
lea rcx, [rsp + 0x50]
call fcn.140047750
mov r15, qword [rsp + 0x28]
test al, al
jne 0x14004817c
call fcn.140093dcc
mov ebx, dword [rax]
call fcn.140093dcc
lea rdx, [rbp]
mov ecx, ebx
mov rdi, rax
call fcn.140062360
mov r8d, dword [rdi]
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, r14
call fcn.14004675c
jmp 0x14004820d
cmp dword [rsp + 0x40], 2
jne 0x1400481a0
cmp dword [rsp + 0x44], 1
jne 0x1400481a0
mov dil, 1
cmp byte [r14 + 0xa7b], sil
je 0x1400481a3
mov rdx, r15
call fcn.140047fe0
jmp 0x1400481a3
mov dil, sil
mov rcx, r15
call fcn.140048014
test dil, dil
je 0x1400481c4
cmp byte [r14 + 0xa83], sil
je 0x1400481c4
mov rdx, r15
mov rcx, r14
call fcn.140046f98
cmp qword [r14 + 0x280], rsi
je 0x140048222
mov dl, 1
mov rcx, r14
call fcn.14004650c
mov rcx, qword [r14 + 0x288]
xor r8d, r8d
mov rdx, r15
call qword [r14 + 0x280]
xor edx, edx
mov rcx, r14
mov r8d, eax
call fcn.14004650c
cmp r8d, 2
jne 0x140048203
mov dil, 1
jmp 0x14004822a
test r8d, r8d
je 0x140048227
mov esi, 0x2a
mov r8, r15
mov rdx, r13
mov rcx, r14
call fcn.1400485a8
mov eax, esi
jmp 0x14004834b
mov dil, sil
jmp 0x14004822a
mov dil, dl
cmp dword [rsp + 0x40], 2
jne 0x140048268
mov r8d, 2
mov rdx, r15
mov rcx, r14
call fcn.1400471a0
mov ebx, eax
test eax, eax
je 0x140048268
mov r8, r15
mov rdx, r13
mov rcx, r14
call fcn.1400485a8
cmp ebx, 1
mov eax, 7
cmove ebx, eax
mov eax, ebx
jmp 0x14004834b
mov edx, 1
mov rcx, r15
call fcn.140062a94
lea rcx, [rsp + 0x28]
call fcn.140062068
cmp dword [r13 + 0x3e4], 1
movups xmm0, xmmword [rax]
movdqu xmmword [r13 + 0x3e8], xmm0
jle 0x1400482bf
mov rdx, qword [r13 + 0x3f8]
mov r8d, 3
mov rcx, r14
call fcn.140046284
mov rdx, qword [r13 + 0x400]
mov r8d, 4
mov rcx, r14
call fcn.140046284
test dil, dil
jne 0x140048341
cmp dword [r13 + 0x88], 4
je 0x140048341
cmp byte [r13 + 0x3d9], sil
jne 0x1400482f9
mov r8d, dword [rsp + 0x4c]
lea rdx, [rsp + 0x50]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1400482f9
test ebx, ebx
jne 0x140048261
jmp 0x140048334
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
sub edx, 0xb
je 0x140048332
sub edx, 0x2728
je 0x140048332
cmp edx, 1
je 0x140048332
mov r8, r15
mov dword [r14 + 0xd34], eax
mov rdx, r13
mov rcx, r14
call fcn.1400485a8
mov ebx, 7
jmp 0x140048261
mov ebx, esi
mov qword [r13 + r12*8 + 0x200], r15
jmp 0x140048261
mov qword [r13 + r12*8 + 0x200], r15
xor eax, eax
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.140089130
add rsp, 0x218
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140048b14
Capabilities:
Hash data using djb2

Disassembly:
sub rsp, 0x28
lea r10, [rcx + rdx]
mov r8, rcx
mov r9d, 0x1505
cmp rcx, r10
jae 0x140048b45
mov cl, byte [r8]
call fcn.140052448
imul r9, r9, 0x21
movsx rdx, al
inc r8
xor r9, rdx
cmp r8, r10
jb 0x140048b2a
movzx eax, r9b
add rsp, 0x28
ret
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140048b86
call fcn.14005cbf4
test al, al
jne 0x140048b86
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140048a9c
mov rdx, qword [rsp + 0x30]
mov rcx, rax
add rsp, 0x20
pop rbx
jmp 0x140048b14
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140048b50
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
sub rsp, 0x28
lea r10, [rcx + rdx]
mov r8, rcx
mov r9d, 0x1505
cmp rcx, r10
jae 0x140048b45
mov cl, byte [r8]
call fcn.140052448
imul r9, r9, 0x21
movsx rdx, al
inc r8
xor r9, rdx
cmp r8, r10
jb 0x140048b2a
movzx eax, r9b
add rsp, 0x28
ret
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140048b86
call fcn.14005cbf4
test al, al
jne 0x140048b86
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140048a9c
mov rdx, qword [rsp + 0x30]
mov rcx, rax
add rsp, 0x20
pop rbx
jmp 0x140048b14
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140053fec
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
xor ebp, ebp
mov r14, rcx
xor ecx, ecx
lea edi, [rbp + 1]
jmp 0x14005403e
mov r8d, edi
mov rdx, rbx
mov rcx, r14
mov rbp, rbx
mov esi, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, eax
test eax, eax
je 0x14005407a
cmp edi, esi
je 0x14005407a
cmp edi, 0x8000
ja 0x14005407a
cmp edi, esi
jb 0x140054075
mov rcx, rbx
mov rdx, rdi
call qword [str.pM_t_]
mov rbx, rax
test rax, rax
jne 0x140054011
mov rcx, rbp
call qword [fcn.140093ea8]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rbx
jmp 0x14005405a
mov rcx, rbx
jmp 0x140054052
jmp 0x140053fec

Function at 0x140054080
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
xor ebp, ebp
mov r14, rcx
xor ecx, ecx
lea edi, [rbp + 1]
jmp 0x14005403e
mov r8d, edi
mov rdx, rbx
mov rcx, r14
mov rbp, rbx
mov esi, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, eax
test eax, eax
je 0x14005407a
cmp edi, esi
je 0x14005407a
cmp edi, 0x8000
ja 0x14005407a
cmp edi, esi
jb 0x140054075
mov rcx, rbx
mov rdx, rdi
call qword [str.pM_t_]
mov rbx, rax
test rax, rax
jne 0x140054011
mov rcx, rbp
call qword [fcn.140093ea8]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rbx
jmp 0x14005405a
mov rcx, rbx
jmp 0x140054052
jmp 0x140053fec
Function at 0x140056eac
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 rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
and qword [rbp - 8], 0
mov rdi, r8
and qword [rbp - 0x10], 0
mov rbx, r9
and dword [rbp + 0x40], 0
mov rsi, rdx
mov r14, rcx
mov dword [rbp + 0x48], 4
mov rcx, rdi
mov dword [rbp + 0x38], ebx
mov r8, r9
xor edx, edx
call fcn.14008a770
mov r9d, 0x18
mov dword [rsp + 0x20], 0xf0000040
xor r8d, r8d
lea rcx, [rbp - 8]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x140056fb3
mov rcx, qword [rbp - 8]
lea rax, [rbp - 0x10]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x140056f93
mov rcx, qword [rbp - 0x10]
xor r9d, r9d
mov r8d, esi
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x140056f93
mov rcx, qword [rbp - 0x10]
lea r9, [rbp + 0x48]
and dword [rsp + 0x20], 0
lea r8, [rbp + 0x40]
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x140056f93
mov eax, dword [rbp + 0x40]
cmp rbx, rax
jb 0x140056f93
and dword [rsp + 0x20], 0
lea r9, [rbp + 0x38]
mov rcx, qword [rbp - 0x10]
mov r8, rdi
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140056fa2
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x140056fb3
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
Function at 0x140059aa0
Capabilities:
Set socket configuration

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x50
and qword [r11 - 0x18], 0
lea rax, [r11 + 0x18]
and qword [r11 - 0x20], 0
xor r9d, r9d
mov qword [r11 - 0x28], rax
xor r8d, r8d
lea rax, [r11 + 0x10]
mov dword [rsp + 0x28], 4
mov edx, 0x4004747b
mov qword [r11 - 0x38], rax
mov rbx, rcx
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x140059b03
lea r9, [rsp + 0x68]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x50
pop rbx
ret

Function at 0x14005d41c
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov r11, r9
mov r10, r8
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
je 0x14005d43c
cmp dword [rdx], 0
jne 0x14005d452
test r10, r10
je 0x14005d447
cmp dword [r8], 0
jne 0x14005d452
test r11, r11
je 0x14005d4a2
cmp dword [r9], 0
je 0x14005d4a2
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.14006bfd8
test r11, r11
je 0x14005d46c
cmp dword [r11], 0
jne 0x14005d46f
xor r11d, r11d
test r10, r10
je 0x14005d47a
cmp dword [r10], 0
jne 0x14005d47d
xor r10d, r10d
test rbx, rbx
je 0x14005d487
cmp dword [rbx], 0
jne 0x14005d489
xor ebx, ebx
lea ecx, [rdi + 1]
mov qword [rsp + 0x20], rax
mov r9, r11
mov r8, r10
mov rdx, rbx
call qword [sym.imp.WS2_32.dll_select]
jmp 0x14005d4ac
mov rcx, qword [rsp + 0x60]
call fcn.14005d3dc
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140062d48
Capabilities:
Move file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x60
mov rbx, rcx
movaps xmmword [rax - 0x18], xmm6
lea rcx, [rax - 0x38]
mov rdi, rdx
call fcn.140062068
mov rcx, rbx
movups xmm6, xmmword [rax]
call fcn.1400a6818
mov rcx, rdi
mov rsi, rax
call fcn.1400a6818
mov edi, 1
mov rdx, rax
mov r8d, edi
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x140062de7
movdqa xmmword [rsp + 0x20], xmm6
lea rcx, [rsp + 0x40]
call fcn.140062068
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x30], xmm0
call fcn.1400620e0
cmp rax, 0x3e8
ja 0x140062e18
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, edi
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x140062da2
test rsi, rsi
je 0x140062df4
mov rcx, rsi
call fcn.140093ea8
test rbx, rbx
je 0x140062e01
mov rcx, rbx
call fcn.140093ea8
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
test rsi, rsi
je 0x140062e25
mov rcx, rsi
call fcn.140093ea8
test rbx, rbx
je 0x140062e32
mov rcx, rbx
call fcn.140093ea8
mov eax, edi
jmp 0x140062e03