joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14024e2c0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
vmovdqu xmm4, xmmword [r9 - 0x80]
vmovdqu xmm2, xmmword [r11 + 0x20]
lea r13, [r10 - 1]
vmovups xmm15, xmmword [r9 - 0x70]
lea r12, [r9 - 0x60]
vpxor xmm9, xmm1, xmm4
add ebx, 0x6000000
jb 0x14024e3e0
vpaddb xmm10, xmm1, xmm2
vpaddb xmm11, xmm10, xmm2
vpxor xmm10, xmm10, xmm4
vpaddb xmm12, xmm11, xmm2
vpxor xmm11, xmm11, xmm4
vpaddb xmm13, xmm12, xmm2
vpxor xmm12, xmm12, xmm4
vpaddb xmm14, xmm13, xmm2
vpxor xmm13, xmm13, xmm4
vpaddb xmm1, xmm14, xmm2
vpxor xmm14, xmm14, xmm4
jmp 0x14024e320
vaesenc xmm9, xmm9, xmm15
vaesenc xmm10, xmm10, xmm15
vaesenc xmm11, xmm11, xmm15
vaesenc xmm12, xmm12, xmm15
vaesenc xmm13, xmm13, xmm15
vaesenc xmm14, xmm14, xmm15
vmovups xmm15, xmmword [r12]
lea r12, [r12 + 0x10]
dec r13d
jne 0x14024e320
vmovdqu xmm3, xmmword [r12]
vaesenc xmm9, xmm9, xmm15
vpxor xmm4, xmm3, xmmword [rcx]
vaesenc xmm10, xmm10, xmm15
vpxor xmm5, xmm3, xmmword [rcx + 0x10]
vaesenc xmm11, xmm11, xmm15
vpxor xmm6, xmm3, xmmword [rcx + 0x20]
vaesenc xmm12, xmm12, xmm15
vpxor xmm8, xmm3, xmmword [rcx + 0x30]
vaesenc xmm13, xmm13, xmm15
vpxor xmm2, xmm3, xmmword [rcx + 0x40]
vaesenc xmm14, xmm14, xmm15
vpxor xmm3, xmm3, xmmword [rcx + 0x50]
lea rcx, [rcx + 0x60]
vaesenclast xmm9, xmm9, xmm4
vaesenclast xmm10, xmm10, xmm5
vaesenclast xmm11, xmm11, xmm6
vaesenclast xmm12, xmm12, xmm8
vaesenclast xmm13, xmm13, xmm2
vaesenclast xmm14, xmm14, xmm3
vmovups xmmword [rdx], xmm9
vmovups xmmword [rdx + 0x10], xmm10
vmovups xmmword [rdx + 0x20], xmm11
vmovups xmmword [rdx + 0x30], xmm12
vmovups xmmword [rdx + 0x40], xmm13
vmovups xmmword [rdx + 0x50], xmm14
lea rdx, [rdx + 0x60]
ret
vpshufb xmm6, xmm1, xmm0
vmovdqu xmm5, xmmword [r11 + 0x30]
vpaddd xmm10, xmm6, xmmword [r11 + 0x40]
vpaddd xmm11, xmm6, xmm5
vpaddd xmm12, xmm10, xmm5
vpshufb xmm10, xmm10, xmm0
vpaddd xmm13, xmm11, xmm5
vpshufb xmm11, xmm11, xmm0
vpxor xmm10, xmm10, xmm4
vpaddd xmm14, xmm12, xmm5
vpshufb xmm12, xmm12, xmm0
vpxor xmm11, xmm11, xmm4
vpaddd xmm1, xmm13, xmm5
vpshufb xmm13, xmm13, xmm0
vpxor xmm12, xmm12, xmm4
vpshufb xmm14, xmm14, xmm0
vpxor xmm13, xmm13, xmm4
vpshufb xmm1, xmm1, xmm0
vpxor xmm14, xmm14, xmm4
jmp 0x14024e320

Function at 0x140251ef0
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
test rdx, rdx
je 0x140251f62
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
mov r15, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov r12, qword [sym.imp.ADVAPI32.dll_SystemFunction036]
jmp 0x140251f28
add rdi, rbx
sub rsi, rbx
je 0x140251f62
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
xor ecx, ecx
mov rdx, rdi
mov r8d, ebx
mov r9d, 2
call r15
cmp eax, 0xbfffffff
jbe 0x140251f20
mov ebp, eax
mov rcx, rdi
mov edx, ebx
call r12
test al, al
jne 0x140251f20
and ebp, 0x7fffffff
jmp 0x140251f64
xor ebp, ebp
mov eax, ebp
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140258250
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x48
movdqa xmmword [rsp + 0x30], xmm9
movdqa xmmword [rsp + 0x20], xmm8
movdqa xmmword [rsp + 0x10], xmm7
movdqa xmmword [rsp], xmm6
cmp r8, 0x80
jb 0x14025846d
movdqu xmm4, xmmword [rdx]
movdqu xmm3, xmmword [rdx + 0x10]
movdqu xmm2, xmmword [rdx + 0x20]
movdqu xmm1, xmmword [rdx + 0x30]
not ecx
movd xmm0, ecx
pxor xmm0, xmm4
add rdx, 0x40
add r8, 0xffffffffffffffc0
movabs rax, 0x154442bd4
movq xmm4, rax
movdqa xmm5, xmmword [0x1403cdf60]
nop word cs:[rax + rax]
movdqa xmm6, xmm0
pclmulqdq xmm6, xmm4, 0
movdqa xmm7, xmm0
pclmulqdq xmm7, xmm5, 0x11
movdqu xmm0, xmmword [rdx]
pxor xmm0, xmm6
pxor xmm0, xmm7
movdqu xmm6, xmmword [rdx + 0x10]
movdqu xmm7, xmmword [rdx + 0x20]
movdqu xmm8, xmmword [rdx + 0x30]
movdqa xmm9, xmm3
pclmulqdq xmm9, xmm4, 0
pxor xmm9, xmm6
pclmulqdq xmm3, xmm5, 0x11
pxor xmm3, xmm9
movdqa xmm6, xmm2
pclmulqdq xmm6, xmm4, 0
pxor xmm6, xmm7
pclmulqdq xmm2, xmm5, 0x11
pxor xmm2, xmm6
movdqa xmm6, xmm1
pclmulqdq xmm6, xmm4, 0
pxor xmm6, xmm8
pclmulqdq xmm1, xmm5, 0x11
pxor xmm1, xmm6
add rdx, 0x40
add r8, 0xffffffffffffffc0
cmp r8, 0x3f
ja 0x1402582c0
movabs rax, 0x1751997d0
movq xmm4, rax
movdqa xmm6, xmm0
pclmulqdq xmm6, xmm4, 0
movdqa xmm5, xmmword [0x1403cdf70]
pclmulqdq xmm0, xmm5, 0x11
pxor xmm0, xmm6
pxor xmm0, xmm3
movdqa xmm3, xmm0
pclmulqdq xmm3, xmm4, 0
pclmulqdq xmm0, xmm5, 0x11
pxor xmm0, xmm3
pxor xmm0, xmm2
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pclmulqdq xmm0, xmm5, 0x11
pxor xmm0, xmm2
pxor xmm0, xmm1
cmp r8, 0x10
jb 0x1402583ea
nop word cs:[rax + rax]
movdqu xmm1, xmmword [rdx]
add r8, 0xfffffffffffffff0
add rdx, 0x10
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm5, 0x11
pxor xmm0, xmm2
cmp r8, 0xf
ja 0x1402583c0
movdqa xmm1, xmmword [0x1403cdf70]
pclmulqdq xmm1, xmm0, 1
psrldq xmm0, 8
pxor xmm0, xmm1
pxor xmm1, xmm1
pxor xmm2, xmm2
pblendw xmm2, xmm0, 3
movabs rax, 0x163cd6124
movq xmm3, rax
pclmulqdq xmm3, xmm2, 0
psrldq xmm0, 4
pxor xmm0, xmm3
pxor xmm2, xmm2
pblendw xmm2, xmm0, 3
pclmulqdq xmm2, xmmword [0x1403cdf80], 0x10
pblendw xmm2, xmm1, 0xfc
movabs rax, 0x1db710641
movq xmm1, rax
pclmulqdq xmm1, xmm2, 0
pxor xmm1, xmm0
pextrd ecx, xmm1, 1
not ecx
test r8, r8
je 0x14025848b
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
add rsp, 0x48
jmp fcn.140257d30
mov eax, ecx
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x14026b7f0
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov rsi, rcx
mov qword [rbp - 8], 0
lea r9, [rbp - 8]
mov rcx, rdx
xor edx, edx
xor r8d, r8d
call qword [sym.imp.shell32.dll_SHGetKnownFolderPath]
mov rcx, qword [rbp - 8]
test eax, eax
je 0x14026b83d
call qword [sym.imp.ole32.dll_CoTaskMemFree]
movabs rax, 0x8000000000000000
mov qword [rsi], rax
jmp 0x14026b86c
call qword [sym.imp.kernel32.dll_lstrlenW]
movsxd r8, eax
mov rdx, qword [rbp - 8]
lea rcx, [rbp - 0x28]
call fcn.14029fe60
mov rcx, qword [rbp - 8]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
movups xmm0, xmmword [rbp - 0x28]
movups xmm1, xmmword [rbp - 0x18]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rax, rsi
add rsp, 0x58
pop rsi
pop rbp
ret

Function at 0x140279530
Capabilities:
Log keystrokes via application hook

Disassembly:
sub rsp, 0x58
lea rdx, [0x14027adc0]
mov ecx, 0xd
xor r8d, r8d
xor r9d, r9d
call sub.user32.dll_SetWindowsHookExW
lea rdx, [0x14027b0d0]
mov ecx, 0xe
xor r8d, r8d
xor r9d, r9d
call sub.user32.dll_SetWindowsHookExW
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.user32.dll_GetMessageW
nop
add rsp, 0x58
ret
Function at 0x14028f000
Capabilities:
Register raw input devices

Disassembly:
sub rsp, 0x48
movzx edx, dl
test dl, dl
je 0x14028f017
cmp edx, 1
jne 0x14028f021
mov eax, 0x2000
jmp 0x14028f026
mov eax, 1
mov rcx, rdx
jmp 0x14028f026
mov eax, 0x2100
mov dword [rsp + 0x28], 0x20001
mov dword [rsp + 0x2c], eax
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x38], 0x60001
mov dword [rsp + 0x3c], eax
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x28]
mov edx, 2
mov r8d, 0x10
call qword [sym.imp.user32.dll_RegisterRawInputDevices]
cmp eax, 1
sete al
add rsp, 0x48
ret

Function at 0x14028f1b0
Capabilities:
Log keystrokes via polling

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov bl, 1
call fcn.14028f310
test al, al
je 0x14028f1d6
mov ecx, 0xa5
call qword [sym.imp.user32.dll_GetKeyState]
test ax, ax
setns bl
mov rdi, qword [sym.imp.user32.dll_GetKeyState]
mov ecx, 0x10
call rdi
movzx esi, ax
shr esi, 0xf
lea ebp, [rsi*4]
mov ecx, 0x11
call rdi
test ax, ax
lea r14d, [rsi*4 + 0x20]
cmovns r14d, ebp
test bl, bl
cmove r14d, ebp
mov ecx, 0x12
call rdi
lea esi, [r14 + 0x100]
test ax, ax
cmovns esi, r14d
test bl, bl
cmove esi, r14d
mov ecx, 0x5b
call rdi
test ax, ax
js 0x14028f244
mov ecx, 0x5c
call qword [sym.imp.user32.dll_GetKeyState]
test ax, ax
jns 0x14028f24a
or esi, 0x800
mov eax, esi
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x14028f260
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rsi
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp], 0xfffffffffffffffe
mov rsi, rcx
mov ecx, 0x100
mov edx, 1
call fcn.140120570
test rax, rax
je 0x14028f2c9
mov qword [rbp - 8], rax
mov rcx, rax
call qword [sym.imp.user32.dll_GetKeyboardState]
mov rcx, qword [rbp - 8]
mov rax, rcx
add rax, 0x100
mov qword [rsi], rcx
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], 0x100
mov qword [rsi + 0x18], rax
mov qword [rsi + 0x20], 0
mov rax, rsi
add rsp, 0x38
pop rsi
pop rbp
ret
mov ecx, 1
mov edx, 0x100
call fcn.140338fb0
int3
Function at 0x14028f9a0
Capabilities:
Log keystrokes

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rax, rcx
test r9b, r9b
je 0x14028f9d1
or r8d, 0xe000
cmp dx, 0x10
je 0x14028f9ed
movzx ecx, dx
cmp ecx, 0x11
je 0x14028fa2c
cmp ecx, 0x12
jne 0x14028fa0b
mov dx, 0xa5
jmp 0x14028fa7d
cmp dx, 0x10
je 0x14028f9ed
movzx ecx, dx
cmp ecx, 0x11
je 0x14028fa32
cmp ecx, 0x12
jne 0x14028fa0b
mov dx, 0xa4
jmp 0x14028fa7d
mov rsi, rax
mov ecx, r8d
mov edx, 3
mov edi, r8d
call qword [sym.imp.user32.dll_MapVirtualKeyA]
mov r8d, edi
mov edx, eax
mov rax, rsi
jmp 0x14028fa7d
cmp r8d, 0xe01c
jg 0x14028fa38
cmp r8d, 0x45
je 0x14028fa4c
cmp r8d, 0x46
jne 0x14028fa7d
mov r8d, 0x46
mov dx, 0x91
jmp 0x14028fa7d
mov dx, 0xa3
jmp 0x14028fa7d
mov dx, 0xa2
jmp 0x14028fa7d
cmp r8d, 0xe01d
je 0x14028fa6f
cmp r8d, 0xe046
je 0x14028fa63
jmp 0x14028fa7d
cmp dx, 0x13
je 0x14028fa63
movzx ecx, dx
mov r8d, 0x45
cmp ecx, 0xff
jne 0x14028fa7d
mov r8d, 0xe059
mov dx, 0x13
jmp 0x14028fa7d
mov r8d, 0xe01d
xor ecx, ecx
cmp dx, 0x13
je 0x14028fa8a
mov word [rax + 4], dx
mov dword [rax + 8], r8d
mov ecx, 1
mov dword [rax], ecx
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x14028faa0
Capabilities:
Log keystrokes

Disassembly:
push rsi
sub rsp, 0x20
mov eax, edx
shr eax, 0x10
movzx esi, al
test edx, 0x1000000
jne 0x14028fad1
cmp cx, 0x10
je 0x14028faf0
movzx eax, cx
cmp eax, 0x11
je 0x14028fb1e
cmp eax, 0x12
jne 0x14028fb01
mov cx, 0xa4
jmp 0x14028fb6e
or esi, 0xe000
cmp cx, 0x10
je 0x14028faf0
movzx eax, cx
cmp eax, 0x11
je 0x14028fb24
cmp eax, 0x12
jne 0x14028fb01
mov cx, 0xa5
jmp 0x14028fb6e
mov ecx, esi
mov edx, 3
call qword [sym.imp.user32.dll_MapVirtualKeyA]
mov ecx, eax
jmp 0x14028fb6e
cmp esi, 0xe01c
jg 0x14028fb2a
cmp esi, 0x45
je 0x14028fb3c
cmp esi, 0x46
jne 0x14028fb6e
mov esi, 0x46
mov cx, 0x91
jmp 0x14028fb6e
mov cx, 0xa2
jmp 0x14028fb6e
mov cx, 0xa3
jmp 0x14028fb6e
cmp esi, 0xe01d
je 0x14028fb5c
cmp esi, 0xe046
je 0x14028fb51
jmp 0x14028fb6e
cmp cx, 0x13
je 0x14028fb51
movzx eax, cx
mov esi, 0x45
cmp eax, 0xff
jne 0x14028fb6e
mov esi, 0xe059
mov cx, 0x13
jmp 0x14028fb6e
mov esi, 0xe01d
cmp cx, 0x13
jne 0x14028fb6e
mov edx, 0xa4
jmp 0x14028fb75
call fcn.14028f630
mov edx, eax
mov eax, esi
add rsp, 0x20
pop rsi
ret
Function at 0x1402902c0
Capabilities:
Log keystrokes via input method manager

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov qword [rbp - 8], 0xfffffffffffffffe
mov edi, r8d
mov rbx, rdx
mov rsi, rcx
mov rcx, rdx
mov edx, r8d
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.imm32.dll_ImmGetCompositionStringW]
test eax, eax
je 0x14029034b
js 0x140290364
mov r14d, eax
mov ecx, eax
movzx eax, byte [0x14047edc1]
mov edx, 1
mov qword [rbp - 0x10], rcx
call fcn.140120540
test rax, rax
je 0x1402903a6
mov rcx, rbx
mov edx, edi
mov qword [rbp - 0x18], rax
mov r8, rax
mov r9d, r14d
call qword [sym.imp.imm32.dll_ImmGetCompositionStringW]
test eax, eax
js 0x14029037c
mov eax, eax
mov rcx, qword [rbp - 0x10]
mov qword [rsi], rcx
mov rcx, qword [rbp - 0x18]
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
jmp 0x140290371
mov qword [rsi], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], 0
jmp 0x140290371
movabs rax, 0x8000000000000000
mov qword [rsi], rax
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov r8d, 1
mov rcx, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x10]
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp fcn.140120550
mov ecx, 1
mov rdx, qword [rbp - 0x10]
call fcn.140338fb0
int3

Function at 0x140292510
Capabilities:
Log keystrokes

Disassembly:
push rsi
sub rsp, 0x70
mov rsi, rcx
mov ecx, 0x12
xor edx, edx
call qword [sym.imp.user32.dll_MapVirtualKeyW]
mov dword [rsp + 0x20], 1
mov word [rsp + 0x28], 0xa4
mov word [rsp + 0x2a], ax
mov qword [rsp + 0x2c], 1
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x48], 1
mov word [rsp + 0x50], 0xa4
mov word [rsp + 0x52], ax
mov qword [rsp + 0x54], 3
mov qword [rsp + 0x60], 0
lea rdx, [rsp + 0x20]
mov ecx, 2
mov r8d, 0x28
call qword [sym.imp.user32.dll_SendInput]
mov rcx, rsi
call qword [sym.imp.user32.dll_SetForegroundWindow]
nop
add rsp, 0x70
pop rsi
ret
Function at 0x14029b500
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x14029b5a0
jmp 0x14029b58f
jae 0x14029b65f
cmp r8, 0x201
jae 0x14029b5a0
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x14029b5f7
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x14029b5cf
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.140337a60
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x14029b620
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x14029b6cb
mov r8d, r13d
cmp r12, r8
jne 0x14029b580
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14029b6ff
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14029b58f
jmp 0x14029b5a0
cmp r14, r8
jb 0x14029b719
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.14029fe60
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x14029b6b4
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.140120550
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x14029b69f
jmp 0x14029b6b4
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.1403392c0
jmp 0x14029b72e
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.140339750
ud2
Function at 0x14029c180
Capabilities:
Create directory

Disassembly:
push rbp
mov rbp, rsp
cmp byte [rcx], 0
je 0x14029c195
mov rcx, rdx
mov rdx, r8
pop rbp
jmp fcn.14029c1b0
mov rcx, rdx
mov rdx, r8
pop rbp
jmp fcn.1402a8090

Function at 0x14029f760
Capabilities:
Set socket configuration

Disassembly:
push rbp
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rcx, qword [rcx]
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x14029f7c7
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x14029f7c7
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x14029f7c7
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x14029f7c7
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x14029f809
mov dword [rbp - 4], r9d
mov dword [rsp + 0x20], 4
lea r9, [rbp - 4]
mov edx, 0xffff
mov r8d, 0x1006
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14029f7f5
xor eax, eax
add rsp, 0x30
pop rbp
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbp
ret
lea rax, str.cannot_set_a_0_duration_timeout
add rsp, 0x30
pop rbp
ret

Function at 0x14029f820
Capabilities:
Set socket configuration

Disassembly:
push rbp
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rcx, qword [rcx]
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x14029f887
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x14029f887
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x14029f887
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x14029f887
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x14029f8c9
mov dword [rbp - 4], r9d
mov dword [rsp + 0x20], 4
lea r9, [rbp - 4]
mov edx, 0xffff
mov r8d, 0x1005
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14029f8b5
xor eax, eax
add rsp, 0x30
pop rbp
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbp
ret
lea rax, str.cannot_set_a_0_duration_timeout
add rsp, 0x30
pop rbp
ret

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

Disassembly:
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rcx, qword [rcx]
cmp r8, 0x7fffffff
mov eax, 0x7fffffff
cmovae r8, rax
mov r9d, 2
call qword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
je 0x14029f915
movsxd rdx, eax
xor ecx, ecx
jmp 0x14029f939
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
xor edx, edx
mov ecx, 0
cmp eax, 0x274a
je 0x14029f939
shl rax, 0x20
or rax, 2
mov ecx, 1
mov rdx, rax
mov rax, rcx
add rsp, 0x20
pop rbp
ret

Function at 0x14029f950
Capabilities:
Set socket configuration

Disassembly:
push rbp
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rcx, qword [rcx]
movzx eax, dl
mov dword [rbp - 4], eax
mov dword [rsp + 0x20], 4
lea r9, [rbp - 4]
mov edx, 6
mov r8d, 1
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14029f98d
xor eax, eax
add rsp, 0x30
pop rbp
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbp
ret
Function at 0x14029f9b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rsi, rdx
mov rcx, qword [rcx]
mov rax, qword [rdx + 8]
mov rdi, qword [rdx + 0x10]
sub rax, rdi
cmp rax, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, rax
mov rdx, qword [rdx]
add rdx, rdi
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
je 0x14029fa0d
cdqe
add rdi, rax
mov qword [rsi + 0x10], rdi
mov rax, qword [rsi + 0x18]
cmp rax, rdi
cmova rdi, rax
mov qword [rsi + 0x18], rdi
xor eax, eax
jmp 0x14029fa26
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x14029fa1e
xor eax, eax
jmp 0x14029fa26
shl rax, 0x20
or rax, 2
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret

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

Disassembly:
push rbp
push rsi
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov rcx, qword [rcx]
mov eax, 0xffffffff
cmp r8, rax
cmovae r8, rax
mov dword [rbp + 4], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], 0
lea r9, [rbp + 4]
call qword [sym.imp.ws2_32.dll_WSASend]
mov esi, eax
cmp esi, 0xffffffff
jne 0x14029fb00
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
xor ecx, ecx
cmp esi, 0xffffffff
sete cl
mov edx, dword [rbp + 4]
cmove rdx, rax
mov rax, rcx
add rsp, 0x48
pop rsi
pop rbp
ret

Function at 0x14029fd20
Capabilities:
Set socket configuration

Disassembly:
push rbp
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rcx, qword [rcx]
movzx eax, dl
mov dword [rbp - 4], eax
lea r8, [rbp - 4]
mov edx, 0x8004667e
call qword [sym.imp.ws2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x14029fd4f
xor eax, eax
add rsp, 0x30
pop rbp
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbp
ret

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

Disassembly:
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rcx, qword [rcx]
cmp r8, 0x7fffffff
mov eax, 0x7fffffff
cmovae r8, rax
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
je 0x14029fdd6
movsxd rdx, eax
xor eax, eax
add rsp, 0x20
pop rbp
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0x20
pop rbp
ret

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

Disassembly:
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rcx, qword [rcx]
cmp r8, 0x7fffffff
mov eax, 0x7fffffff
cmovae r8, rax
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
je 0x14029fe32
movsxd rdx, eax
xor ecx, ecx
jmp 0x14029fe56
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
xor edx, edx
mov ecx, 0
cmp eax, 0x274a
je 0x14029fe56
shl rax, 0x20
or rax, 2
mov ecx, 1
mov rdx, rax
mov rax, rcx
add rsp, 0x20
pop rbp
ret
Function at 0x1402a3d10
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10b8
call fcn.14032c9d0
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1020], xmm6
mov qword [rbp + 0x1018], 0xfffffffffffffffe
mov qword [rbp + 0x1008], rdx
mov r15, rcx
lea r12, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, r12
xor edx, edx
call sub.VCRUNTIME140.dll_memset
xorps xmm6, xmm6
lea r13, [rbp + 0xffc]
lea rbx, [0x1402aade0]
lea r14, [rbp + 0xfb0]
mov rsi, qword [sym.imp.kernel32.dll_WriteFileEx]
mov rdi, qword [sym.imp.kernel32.dll_SleepEx]
mov qword [rbp + 0x1010], r15
mov r8d, 0x1000
mov rcx, r15
mov rdx, r12
call fcn.1402aabb0
mov r15, rdx
mov qword [rbp + 0xfd8], rax
mov qword [rbp + 0xfe0], rdx
test rax, rax
jne 0x1402a3f00
test r15, r15
je 0x1402a3ecc
cmp r15, 0x1000
ja 0x1402a3f22
xor r12d, r12d
nop word cs:[rax + rax]
mov r8d, r15d
sub r8d, r12d
lea rdx, [r12 + rbp]
add rdx, 0xffffffffffffffb0
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r13
mov qword [rsp + 0x20], rbx
mov rcx, qword [rbp + 0x1008]
mov r9, r14
call rsi
test eax, eax
je 0x1402a3ea0
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x1402a3e30
mov ecx, dword [rbp + 0x1000]
mov eax, dword [rbp + 0x1004]
mov rdx, rcx
shl rdx, 0x20
or rdx, 2
xor r8d, r8d
test ecx, ecx
setne r8b
cmove rdx, rax
mov qword [rbp + 0xfe8], r8
mov qword [rbp + 0xff0], rdx
jne 0x1402a3ec0
add r12, rax
cmp r12, r15
je 0x1402a3e90
jbe 0x1402a3de0
jmp 0x1402a3f0e
mov r15, qword [rbp + 0x1010]
lea r12, [rbp - 0x50]
jmp 0x1402a3d8e
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0xfe8], 1
mov qword [rbp + 0xff0], rax
lea rcx, [rbp + 0xff0]
call fcn.1402953b0
mov rsi, qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1010]
call rsi
mov rcx, qword [rbp + 0x1008]
call rsi
movaps xmm6, xmmword [rbp + 0x1020]
add rsp, 0x10b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0xfe0]
call fcn.1402953b0
jmp 0x1402a3ecc
lea r8, str.library_std_src_syspalwindowspipe.rs
mov rcx, r12
mov rdx, r15
call fcn.1403397c0
jmp 0x1402a3f36
lea r8, str.library_std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, r15
call fcn.140339750
ud2