joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000aae0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
push rax
mov r9d, dword [0x14082ec38]
mov r8d, dword [0x14082ec3c]
mov eax, edx
shr eax, 0x18
cvtsi2ss xmm0, eax
lea r11d, [r9 - 1]
divss xmm0, dword [0x1403dccb0]
movzx eax, dh
movzx esi, ch
cvtsi2ss xmm1, esi
sub eax, esi
cvtsi2ss xmm2, eax
mulss xmm2, xmm0
addss xmm2, xmm1
cvttss2si r10d, xmm2
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ebp, cl
shr ecx, 0x10
movzx ecx, cl
xorps xmm1, xmm1
cvtsi2ss xmm1, ecx
sub eax, ecx
xorps xmm2, xmm2
cvtsi2ss xmm2, eax
mulss xmm2, xmm0
addss xmm2, xmm1
cvttss2si ecx, xmm2
imul r11d, r9d
shl ecx, 0x10
mov eax, ecx
or eax, 0xff000000
shl r10d, 8
test r11b, 1
sete byte [rsp + 2]
mov esi, 0x641e964
mov edi, 0x950193a1
cmove edi, esi
cmp r8d, 0xa
setl byte [rsp + 3]
cmovl edi, esi
mov esi, 0xc243921b
mov r8d, 0x26ac3516
nop word cs:[rax + rax]
nop dword [rax + rax]
cmp esi, 0x641e963
jg 0x14000abe0
cmp esi, 0x950193a1
je 0x14000abf4
cmp esi, 0xc243921b
jne 0x14000aba0
movzx ebx, byte [rsp + 2]
cmp byte [rsp + 3], 0
mov esi, 0x950193a1
cmovne esi, r8d
test bl, bl
cmovne esi, r8d
jmp 0x14000aba0
cmp esi, 0x641e964
je 0x14000abfb
cmp esi, 0x26ac3516
jne 0x14000aba0
mov esi, edi
jmp 0x14000aba0
mov esi, 0x26ac3516
jmp 0x14000aba0
mov ebx, eax
and ebx, r10d
movzx edx, dl
sub edx, ebp
xorps xmm1, xmm1
cvtsi2ss xmm1, edx
mulss xmm0, xmm1
xorps xmm1, xmm1
cvtsi2ss xmm1, ebp
addss xmm1, xmm0
cvttss2si edx, xmm1
and eax, 0x27ed0000
and ecx, 0x120000
or ecx, eax
xor ecx, r10d
xor ecx, 0xd8000000
or ecx, ebx
or ecx, edx
mov dword [rsp + 4], ecx
mov eax, dword [rsp + 4]
add rsp, 8
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x14004b4c0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov r12, rcx
mov rax, qword [0x14082e958]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rax, qword [0x14082ea00]
mov dword [rax + 0x537c], 0
test rcx, rcx
mov eax, 0xf129afc2
mov ebp, 0xe9135d73
cmove ebp, eax
mov eax, 0xd1eaa757
lea r13, [rsp + 0x38]
mov ebx, 0xad54f0c6
mov esi, 0x2013beed
mov edi, 0xea394f22
mov r15, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r14d, 0xfc209fa7
jmp 0x14004b530
mov eax, 0xea394f22
mov ecx, eax
cmp eax, 0xce2152
jle 0x14004b590
cmp ecx, 0x2d827841
jg 0x14004b610
cmp ecx, 0x2013beec
jg 0x14004b6ac
cmp ecx, 0xce2153
je 0x14004b52b
mov eax, ecx
cmp ecx, 0x1b08b225
jne 0x14004b530
mov rax, qword [rsp + 0x28]
mov eax, dword [0x14082f2e0]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
mov eax, 0xce2153
cmove eax, edi
cmp dword [0x14082f2e4], 0xa
cmovl eax, edi
jmp 0x14004b530
cmp ecx, 0xea394f21
jg 0x14004b660
cmp ecx, 0xad54f0c6
je 0x14004b6be
mov eax, ebp
cmp ecx, 0xd1eaa757
je 0x14004b530
mov eax, ecx
cmp ecx, 0xe9135d73
jne 0x14004b530
mov qword [rsp + 0x28], r13
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], 0
mov rcx, r13
call fcn.140084ba0
mov qword [rsp + 0x30], rax
mov rcx, r12
lea rdx, [0x1403f4a63]
call fcn.140008840
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
mov eax, 0x501d3263
mov ecx, 0x2d827842
cmove eax, ecx
jmp 0x14004b530
cmp ecx, 0x2d827842
je 0x14004b6c8
cmp ecx, 0x501d3263
je 0x14004b6d2
mov eax, ecx
cmp ecx, 0x73989c0e
jne 0x14004b530
mov eax, dword [0x14082f2e0]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
mov eax, 0x2739fc7f
cmove eax, r14d
cmp dword [0x14082f2e4], 0xa
cmovl eax, r14d
jmp 0x14004b530
cmp ecx, 0xea394f22
je 0x14004b6fe
cmp ecx, 0xf129afc2
je 0x14004b724
mov eax, ecx
cmp ecx, 0xfc209fa7
jne 0x14004b530
mov eax, dword [0x14082f2e0]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
mov eax, 0x2739fc7f
cmove eax, esi
cmp dword [0x14082f2e4], 0xa
cmovl eax, esi
jmp 0x14004b530
cmp ecx, 0x2739fc7f
jne 0x14004b72e
mov eax, 0xfc209fa7
jmp 0x14004b530
mov eax, 0x73989c0e
jmp 0x14004b530
mov eax, 0x1b08b225
jmp 0x14004b530
mov r8, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
mov r9, qword [rsp + 0x20]
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsp + 0x20]
call r15
mov eax, 0x1b08b225
jmp 0x14004b530
mov eax, dword [0x14082f2e0]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
mov eax, 0xce2153
cmove eax, ebx
cmp dword [0x14082f2e4], 0xa
cmovl eax, ebx
jmp 0x14004b530
mov eax, 0x73989c0e
jmp 0x14004b530
mov eax, ecx
cmp ecx, 0x2013beed
jne 0x14004b530
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140384540
nop
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1401c2730
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
mov qword [rsp + 8], rcx
mov rax, qword [rsp + 8]
movzx eax, word [rax]
mov dword [rsp + 4], eax
mov edx, 0xbddffc69
mov r8d, 0x127db7e9
mov r9d, 0xac786ca4
nop word cs:[rax + rax]
cmp edx, 0x6109e73
jle 0x1401c2790
cmp edx, 0x5470e5e5
jle 0x1401c27c0
cmp edx, 0x5470e5e6
je 0x1401c282a
cmp edx, 0x7a94aa7c
jne 0x1401c2760
mov edx, 0x5470e5e6
mov rax, r10
jmp 0x1401c2760
cmp edx, 0xac786ca4
je 0x1401c27dc
cmp edx, 0xbddffc69
je 0x1401c2812
cmp edx, 0xe84ff315
jne 0x1401c2760
mov edx, 0x7a94aa7c
xor r10d, r10d
jmp 0x1401c2760
cmp edx, 0x6109e74
je 0x1401c2806
cmp edx, 0x127db7e9
jne 0x1401c2760
mov edx, 0x7a94aa7c
mov r10, qword [rsp + 0x10]
jmp 0x1401c2760
mov rdx, qword [rsp + 8]
movsxd rdx, dword [rdx + 0x3c]
add rdx, rcx
mov qword [rsp + 0x10], rdx
mov rdx, qword [rsp + 0x10]
cmp dword [rdx], 0x4550
mov edx, 0xe84ff315
cmove edx, r8d
jmp 0x1401c2760
mov edx, 0x5470e5e6
xor eax, eax
jmp 0x1401c2760
mov edx, dword [rsp + 4]
cmp edx, 0x5a4d
mov edx, 0x6109e74
cmove edx, r9d
jmp 0x1401c2760
add rsp, 0x18
ret
Function at 0x1401fcec0
Capabilities:
Hide graphical window

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rax, qword [0x14082e958]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, qword [sym.imp.USER32.dll_GetSystemMetrics]
xor ecx, ecx
call rsi
mov dword [0x14083d9a0], eax
mov ecx, 1
call rsi
mov dword [0x14083d9a4], eax
mov ecx, dword [0x14083d9a0]
mov edx, ecx
shr edx, 0x1f
add edx, ecx
sar edx, 1
mov dword [0x14083d998], edx
mov ecx, eax
shr ecx, 0x1f
add ecx, eax
sar ecx, 1
mov dword [0x14083d99c], ecx
mov ecx, dword [0x14083d958]
call fcn.1401fc7f0
mov qword [0x14083db38], rax
call fcn.1401f6e80
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [0x14083db30], rax
cmp qword [rsp + 0x38], 0
setne byte [rsp + 0x36]
cmp qword [0x14083db38], 0
setne byte [rsp + 0x37]
mov eax, 0xc73ca034
lea rdi, [rsp + 0x40]
mov rsi, qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
mov rbp, qword [sym.imp.USER32.dll_ShowWindow]
mov r14, qword [sym.imp.USER32.dll_MoveWindow]
mov r15, qword [sym.imp.USER32.dll_UpdateWindow]
lea rbx, [0x14083d938]
mov r12d, 0xa2f1a159
mov r13d, 0x945675b2
nop word [rax + rax]
cmp eax, 0x945675b2
je 0x1401fd0a3
cmp eax, 0xa2f1a159
je 0x1401fcfd4
cmp eax, 0xc73ca034
jne 0x1401fcfa0
movzx ecx, byte [rsp + 0x36]
cmp byte [rsp + 0x37], 0
mov eax, 0x945675b2
cmovne eax, r12d
test cl, cl
cmove eax, r13d
jmp 0x1401fcfa0
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.USER32.dll_SetMenu]
mov rcx, qword [0x14083db38]
lea rdx, [0x14083db74]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov qword [rsp + 0x40], 0
mov eax, dword [0x14083d9a0]
mov dword [rsp + 0x48], eax
mov eax, dword [0x14083d9a4]
mov dword [rsp + 0x4c], eax
mov rcx, qword [0x14083db30]
mov rdx, rdi
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov rcx, qword [0x14083db30]
xor edx, edx
mov r8b, 0xff
mov r9d, 2
call rsi
mov rcx, qword [0x14083db30]
call fcn.1401fc4a0
mov rcx, qword [0x14083db30]
mov edx, 5
call rbp
mov eax, dword [0x14083d9a4]
mov r9d, dword [0x14083d9a0]
mov r8d, dword [0x14083db78]
mov edx, dword [0x14083db74]
mov rcx, qword [0x14083db30]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], 1
call r14
mov rcx, qword [0x14083db30]
call r15
movzx edx, byte [0x14083df8a]
mov rcx, rbx
call fcn.1401fd0d0
mov eax, 0x945675b2
jmp 0x1401fcfa0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140384540
nop
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1403879e0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140387a2a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140387a2a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140387a2a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140387a2a
cmp dword [rcx + 0x84], 0xe
jbe 0x140387a2a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140387a2c
xor al, al
add rsp, 0x28
ret
Function at 0x140399e10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0x158
mov rax, qword [0x14082e958]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp byte [rcx + 0xae5], 0
mov rbx, rcx
jne 0x140399e54
cmp qword [rcx + 0x1e0], 0
je 0x140399f0d
mov r8, rdx
lea r9, [rsp + 0x180]
mov edx, 0x100
lea rcx, [rsp + 0x30]
call fcn.1403aca30
mov rdx, qword [rbx + 0x1e0]
movsxd r8, eax
test rdx, rdx
je 0x140399ea8
cmp byte [rbx + 0x1313], 0
jne 0x140399ea8
lea rcx, [rsp + 0x30]
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140399e90
mov byte [rbx + 0x1313], 1
lea eax, [r8 + 1]
mov byte [rsp + r8 + 0x30], 0xa
movsxd rdi, eax
cmp rdi, 0x102
jae 0x140399f5f
cmp byte [rbx + 0xae5], 0
mov byte [rsp + rdi + 0x30], 0
je 0x140399f0d
cmp qword [rbx + 0x270], 0
je 0x140399f27
mov dl, 1
mov rcx, rbx
call fcn.140389160
mov rax, qword [rbx + 0x1d8]
lea r8, [rsp + 0x30]
mov r9, rdi
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call qword [rbx + 0x270]
xor edx, edx
mov rcx, rbx
call fcn.140389160
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140384540
add rsp, 0x158
pop rdi
pop rbx
ret
mov r9, qword [rbx + 0x1d0]
lea rcx, [0x1403f2740]
mov edx, 2
lea r8d, [rdx - 1]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov r9, qword [rbx + 0x1d0]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rdi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
jmp 0x140399f0d
call fcn.140387ca0
int3

Function at 0x140399fc0
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 0x14039a002
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov qword [rbx], 0
cmp eax, 0x2733
mov edx, 0x51
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14039a160
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x130
mov rax, qword [0x14082e958]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rsi, qword [rsp + 0x190]
mov rbp, rcx
mov rcx, qword [rcx + 0x18]
mov r15, r8
movsxd r8, edx
mov r12, r9
mov rax, r8
shl rax, 5
lea rbx, [rcx + 0x218]
mov r14, qword [rcx + r8*8 + 0x1d0]
add rbx, rax
mov rax, qword [rcx + 0x3e8]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x84], 3
je 0x14039a26a
lea rax, [0x14039a010]
cmp qword [rcx + r8*8 + 0x1f8], rax
jne 0x14039a26a
cmp qword [rbx], 0
je 0x14039a1f1
test rdi, rdi
je 0x14039a26a
mov rdx, 0xffffffffffffffff
xor r9d, r9d
mov r8, rdx
mov rcx, r14
call fcn.1403aaef0
cmp eax, 0xffffffff
je 0x14039a26a
test al, 1
je 0x14039a26a
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14039a249
mov eax, dword [rbp + 0x6ec]
lea ecx, [rax + rax]
mov qword [rbx + 8], rcx
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbx], rax
mov rcx, rax
test rax, rax
je 0x14039a2a4
mov rdi, qword [rbx + 8]
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
add rdx, rcx
mov r8d, edi
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x14039a26a
add qword [rbx + 0x10], rcx
xor r9d, r9d
mov r8d, r12d
mov rdx, r15
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
mov dword [rsi], 0
cmp rbx, 0xffffffffffffffff
jne 0x14039a2e3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0x2733
jne 0x14039a2b3
xor ebx, ebx
mov dword [rsi], 0x51
jmp 0x14039a2e3
mov dword [rsi], reloc.WLDAP32.dll_Ordinal_27
mov rax, 0xffffffffffffffff
jmp 0x14039a2e6
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, edi
call fcn.1403ae400
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, rbp
call fcn.140399e10
mov dword [rbp + 0xda4], edi
mov dword [rsi], gethostname
mov rax, rbx
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140384540
add rsp, 0x130
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14039a440
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
cmp byte [rcx + 0xae5], 0
mov rsi, r9
mov rbp, r8
movsxd rdi, edx
mov rbx, rcx
je 0x14039a4f2
cmp qword [rcx + 0x270], 0
je 0x14039a4a7
mov dl, 1
call fcn.140389160
mov rax, qword [rbx + 0x1d8]
mov r9, rsi
mov r8, rbp
mov qword [rsp + 0x20], rax
mov edx, edi
mov rcx, rbx
call qword [rbx + 0x270]
xor edx, edx
mov rcx, rbx
call fcn.140389160
jmp 0x14039a4f2
mov ecx, edi
test edx, edx
je 0x14039a4b7
sub ecx, 1
je 0x14039a4b7
cmp ecx, 1
jne 0x14039a4f2
mov r9, qword [rbx + 0x1d0]
lea rax, [0x1403f2740]
mov edx, 2
lea rcx, [rdi + rdi*2]
add rcx, rax
lea r8d, [rdx - 1]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov r9, qword [rbx + 0x1d0]
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14039b1a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x268], 0
je 0x14039b1bd
call fcn.140393170
test eax, eax
je 0x14039b1e9
mov al, 1
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x1d0]
cmp rcx, 0xffffffffffffffff
je 0x14039b1e9
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
setne al
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret

Function at 0x14039b1f0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x140845900]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x14039b254
lea r9d, [rax + 2]
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea ecx, [rax + 6]
xor edx, edx
call fcn.1403cbdd0
test al, al
je 0x14039b248
mov dword [0x140845900], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x140845900], 1
jmp 0x14039b259
cmp eax, 2
je 0x14039b2ab
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 0x14039b28a
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x14039b2ab
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 0x14039b860
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x1c0
mov rax, qword [0x14082e958]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x80
mov rax, rdx
mov rbx, r8
mov rsi, rcx
lea r8, [rsp + 0x20]
mov rcx, rax
lea rdx, [rsp + 0x30]
mov rdi, r9
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14039b913
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.1403ae400
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.140399e10
jmp 0x14039b9db
movzx ecx, word [rsp + 0x30]
mov edx, ecx
sub edx, 1
je 0x14039b9b0
sub edx, 1
je 0x14039b95a
cmp edx, 0x15
jne 0x14039b961
lea rdx, [rsp + 0x38]
mov r8, rbx
mov r9d, reloc.WLDAP32.dll_Ordinal_46
call fcn.1403cb540
test rax, rax
je 0x14039b961
movzx ecx, word [rsp + 0x32]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rdi], eax
jmp 0x14039b9db
lea rdx, [rsp + 0x34]
jmp 0x14039b932
mov byte [rbx], 0
mov dword [rdi], 0
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [rax], 0x273f
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov ebx, dword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.1403ae400
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.140399e10
jmp 0x14039b9db
cmp dword [rsp + 0x20], 2
jle 0x14039b9d2
lea r9, [rsp + 0x32]
mov edx, reloc.WLDAP32.dll_Ordinal_46
lea r8, [0x1403f696c]
mov rcx, rbx
call fcn.1403ac9c0
jmp 0x14039b9d5
mov byte [rbx], 0
mov dword [rdi], 0
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140384540
add rsp, 0x1c0
pop rdi
pop rsi
pop rbx
ret
Function at 0x14039cbd0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
cdqe
add rsp, 0x28
ret
Function at 0x14039ce70
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x14082e958]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x14039ced6
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14039ceb9
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x14039ceb3
shr ax, 8
cmp al, 2
je 0x14039ced6
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140384540
add rsp, 0x1e8
ret
call fcn.1403ccd30
test eax, eax
jne 0x14039d0e0
mov qword [rsp + 0x200], rsi
lea rcx, str.kernel32
mov qword [rsp + 0x208], rdi
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x14039cf16
mov qword [0x140845910], rsi
jmp 0x14039d09d
mov qword [rsp + 0x1f0], rbx
lea rdx, str.LoadLibraryExA
mov rcx, rdi
mov qword [rsp + 0x1f8], rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rbx, str.iphlpapi.dll
mov rbp, rax
mov rcx, rbx
lea rdx, [0x1403f708c]
call sub.api_ms_win_crt_string_l1_1_0.dll_strpbrk
test rax, rax
je 0x14039cf7a
mov rcx, rbx
test rbp, rbp
je 0x14039cf6c
xor edx, edx
lea r8d, [rdx + 8]
call rbp
mov rsi, rax
jmp 0x14039d05c
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
jmp 0x14039d05c
test rbp, rbp
je 0x14039cfa9
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14039cfa9
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call rbp
mov rsi, rax
jmp 0x14039d05c
xor edx, edx
mov qword [rsp + 0x1e0], r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r14d, eax
test eax, eax
je 0x14039d054
lea ecx, [rax + 1]
add rcx, 0xc
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x14039d04b
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x14039d04b
mov rcx, 0xffffffffffffffff
mov rax, rcx
cmp byte [rdi + rax + 1], sil
lea rax, [rax + 1]
jne 0x14039cff5
mov edx, 0x5c
mov word [rax + rdi], dx
nop dword [rax]
inc rcx
cmp byte [rdi + rcx], sil
jne 0x14039d010
mov rdx, rdi
sub rdx, rbx
add rdx, rcx
movzx eax, byte [rbx]
mov byte [rdx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x14039d022
mov rcx, rdi
test rbp, rbp
je 0x14039d042
xor edx, edx
lea r8d, [rdx + 8]
call rbp
jmp 0x14039d048
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
mov rcx, rdi
call qword [fcn.1403db950]
mov r14, qword [rsp + 0x1e0]
mov rbp, qword [rsp + 0x1f8]
mov rbx, qword [rsp + 0x1f0]
mov qword [0x140845910], rsi
test rsi, rsi
je 0x14039d09d
lea rdx, str.if_nametoindex
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140845908]
test rax, rax
cmovne rcx, rax
mov qword [0x140845908], rcx
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.1403cbdd0
test al, al
lea rcx, [0x140845918]
setne byte [0x140845920]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rdi, qword [rsp + 0x208]
xor eax, eax
mov rsi, qword [rsp + 0x200]
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140384540
add rsp, 0x1e8
ret
Function at 0x14039d150
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x14039d17a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1403f708c]
mov rcx, rbx
mov r14, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strpbrk
test rax, rax
je 0x14039d1dd
mov rcx, rbx
test r14, r14
je 0x14039d1c7
xor edx, edx
lea r8d, [rdx + 8]
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
test r14, r14
je 0x14039d215
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14039d215
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x14039d2d8
mov qword [rsp + 0x40], rsi
mov rsi, 0xffffffffffffffff
mov rdx, rsi
nop
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x14039d240
lea ecx, [rax + 1]
add rcx, rdx
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x14039d2ca
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x14039d2ca
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x14039d270
mov ecx, 0x5c
mov word [rax + rdi], cx
inc rsi
cmp byte [rdi + rsi], bpl
jne 0x14039d284
mov rcx, rdi
sub rcx, rbx
add rcx, rsi
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x14039d2a0
mov rcx, rdi
test r14, r14
je 0x14039d2c1
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x14039d2c7
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [fcn.1403db950]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret

Function at 0x14039ef80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r8, rdx
movzx edx, byte [rcx]
test dl, dl
je 0x14039efb5
lea r9, [0x1403f2760]
movzx eax, byte [r8]
test al, al
je 0x14039efb5
movzx eax, byte [rax + r9]
movzx edx, dl
cmp byte [rdx + r9], al
jne 0x14039efc7
movzx edx, byte [rcx + 1]
inc rcx
inc r8
test dl, dl
jne 0x14039ef91
xor edx, edx
mov eax, edx
cmp byte [rcx], al
sete al
cmp byte [r8], dl
setne dl
xor eax, edx
ret
xor eax, eax
ret