joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400136d0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x18
mov rax, qword [rcx + 0x108]
lea r9, [0x140057a50]
movss xmm2, dword [rcx + 0x120]
movss xmm3, dword [rcx + 0x124]
movsxd rcx, dword [rcx + 0x100]
movss xmm0, dword [rdx]
movss xmm1, dword [rdx + 4]
subss xmm0, xmm2
subss xmm1, xmm3
mov r8d, dword [rax + rcx*4 - 4]
not r8d
movzx ecx, r8b
shr r8d, 8
movss dword [rsp], xmm0
movzx eax, byte [rsp]
xor rcx, rax
movss xmm0, dword [rdx + 8]
movzx eax, byte [rsp + 1]
subss xmm0, xmm2
movss dword [rsp + 4], xmm1
movss xmm1, dword [rdx + 0xc]
xor r8d, dword [r9 + rcx*4]
subss xmm1, xmm3
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 2]
movss dword [rsp + 8], xmm0
movss dword [rsp + 0xc], xmm1
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 3]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 4]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 5]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 6]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 7]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 8]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 9]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xa]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xb]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xc]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xd]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xe]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
xor r8d, dword [r9 + rcx*4]
movzx ecx, byte [rsp + 0xf]
movzx edx, r8b
shr r8d, 8
xor rdx, rcx
xor r8d, dword [r9 + rdx*4]
not r8d
mov eax, r8d
add rsp, 0x18
ret
Function at 0x1400142b0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x20
movsxd rbp, r9d
mov r14, r8
test r8, r8
je 0x1400142cb
mov qword [r8], 0
call fcn.1400143d0
mov rbx, rax
test rax, rax
jne 0x1400142e1
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
mov qword [rsp + 0x40], rsi
mov rcx, rbx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x1400143a9
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400143a9
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x1400143a9
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400143a9
cmp rdi, 0xffffffffffffffff
je 0x1400143a9
lea rcx, [rdi + rbp]
call fcn.140016d30
mov rsi, rax
test rax, rax
je 0x1400143a9
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rdi
je 0x140014381
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, rsi
call fcn.140016de0
jmp 0x1400143b2
test ebp, ebp
jle 0x140014393
lea rcx, [rsi + rdi]
mov r8, rbp
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x1400143a4
mov qword [r14], rdi
mov rax, rsi
jmp 0x1400143b4
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret

Function at 0x140014890
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x1400148ed
lea rbx, [0x140057a50]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1400148d4
cmp r10, 2
jb 0x1400148d4
cmp byte [r9], r8b
jne 0x1400148d4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x1400148b0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14001492f
lea rbx, [0x140057a50]
cmp r8b, 0x23
jne 0x140014913
cmp byte [r9], r8b
jne 0x140014913
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140014900
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x140014c00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rdi
push r12
push r13
sub rsp, 0x10
mov qword [rsp + 0x30], rbx
lea r13, [0x140000000]
mov qword [rsp + 0x38], rbp
mov rdi, rdx
mov qword [rsp + 0x40], rsi
mov rax, rcx
mov qword [rsp + 8], r14
xor r12d, r12d
mov qword [rsp], r15
test rdi, rdi
je 0x140014c40
cmp rax, rdi
jae 0x140014db8
movzx r8d, byte [rax]
test r8b, r8b
je 0x140014db8
xor ebx, ebx
mov ecx, r8d
shr rcx, 3
mov rdx, rdi
movsx r9, byte [rcx + r13 + 0x586e0]
test r9d, r9d
sete bl
add ebx, r9d
test rdi, rdi
jne 0x140014c76
movsxd rdx, ebx
add rdx, rax
xor esi, esi
lea rcx, [rax + 1]
cmp rax, rdx
cmovb esi, r8d
cmp rcx, rdx
jae 0x140014c8e
movzx r15d, byte [rcx]
jmp 0x140014c91
xor r15b, r15b
lea rcx, [rax + 2]
cmp rcx, rdx
jae 0x140014ca0
movzx r14d, byte [rcx]
jmp 0x140014ca3
xor r14b, r14b
lea rcx, [rax + 3]
cmp rcx, rdx
jae 0x140014cb1
movzx ebp, byte [rcx]
jmp 0x140014cb4
xor bpl, bpl
lea r10, [r9*4]
movzx ecx, sil
mov r9d, dword [r10 + r13 + 0x58700]
and r9d, ecx
movzx r8d, r15b
shl r9d, 6
mov ecx, r8d
and ecx, 0x3f
movzx edx, r14b
or r9d, ecx
movzx r11d, bpl
shl r9d, 6
and r8d, 0xc0
mov ecx, edx
and edx, 0xc0
and ecx, 0x3f
or r9d, ecx
mov ecx, r11d
shr r11d, 2
and ecx, 0x3f
or r11d, edx
shl r9d, 6
shr r11d, 2
or r9d, ecx
mov ecx, dword [r10 + r13 + 0x58730]
or r11d, r8d
shr r9d, cl
shr r11d, 2
mov edx, r9d
cmp r9d, dword [r10 + r13 + 0x58718]
sbb ecx, ecx
and edx, 0xfffff800
and ecx, 0x40
xor r8d, r8d
or r11d, ecx
mov ecx, 0x80
cmp edx, 0xd800
cmove r8d, ecx
xor edx, edx
or r11d, r8d
mov ecx, 0x100
cmp r9d, 0xffff
cmova edx, ecx
mov ecx, dword [r10 + r13 + 0x58748]
or r11d, edx
xor r11d, 0x2a
sar r11d, cl
test r11d, r11d
je 0x140014daa
xor edx, edx
test bpl, bpl
setne dl
xor ecx, ecx
test r14b, r14b
setne cl
add edx, ecx
xor ecx, ecx
test r15b, r15b
setne cl
add edx, ecx
xor ecx, ecx
test sil, sil
setne cl
add edx, ecx
cmp ebx, edx
cmovl edx, ebx
mov ebx, edx
movsxd rcx, ebx
add rax, rcx
inc r12d
jmp 0x140014c32
mov r15, qword [rsp]
mov eax, r12d
mov r14, qword [rsp + 8]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x10
pop r13
pop r12
pop rdi
ret
Function at 0x140014e30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x30
movsxd rax, edx
mov rdi, rcx
dec rax
mov qword [r11 + 0x20], rsi
mov rsi, r9
xor r9d, r9d
lea rax, [rcx + rax*2]
mov qword [rsp], rax
cmp rcx, rax
jae 0x140015047
mov qword [r11 + 0x18], rbp
lea rbp, [0x140000000]
mov qword [r11 + 0x10], rbx
mov qword [r11 - 0x10], r12
mov qword [r11 - 0x18], r13
mov qword [r11 - 0x20], r14
mov qword [r11 - 0x28], r15
nop
test rsi, rsi
je 0x140014e8e
cmp r8, rsi
jae 0x140015024
movzx edx, byte [r8]
test dl, dl
je 0x140015024
xor ebx, ebx
mov eax, edx
shr rax, 3
mov rcx, rsi
movsx r9, byte [rax + rbp + 0x586e0]
test r9d, r9d
sete bl
add ebx, r9d
test rsi, rsi
jne 0x140014ec2
movsxd rcx, ebx
add rcx, r8
xor r14d, r14d
lea rax, [r8 + 1]
cmp r8, rcx
cmovb r14d, edx
cmp rax, rcx
jae 0x140014edb
movzx r13d, byte [rax]
jmp 0x140014ede
xor r13b, r13b
lea rax, [r8 + 2]
cmp rax, rcx
jae 0x140014eed
movzx r12d, byte [rax]
jmp 0x140014ef0
xor r12b, r12b
lea rax, [r8 + 3]
cmp rax, rcx
jae 0x140014eff
movzx r15d, byte [rax]
jmp 0x140014f02
xor r15b, r15b
lea r10, [r9*4]
movzx eax, r14b
mov ebp, dword [r10 + rbp + 0x58700]
and ebp, eax
movzx r9d, r13b
shl ebp, 6
mov eax, r9d
and eax, 0x3f
movzx edx, r12b
or ebp, eax
movzx r11d, r15b
shl ebp, 6
and r9d, 0xc0
mov eax, edx
and edx, 0xc0
and eax, 0x3f
or ebp, eax
mov eax, r11d
shr r11d, 2
and eax, 0x3f
or r11d, edx
shl ebp, 6
or ebp, eax
shr r11d, 2
or r11d, r9d
lea rax, [0x140000000]
mov ecx, dword [r10 + rax + 0x58730]
shr r11d, 2
shr ebp, cl
mov ecx, 0x100
cmp ebp, dword [r10 + rax + 0x58718]
sbb eax, eax
xor r9d, r9d
and eax, 0x40
mov edx, r9d
or r11d, eax
mov eax, ebp
and eax, 0xfffff800
cmp eax, 0xd800
mov eax, 0x80
cmove edx, eax
mov eax, r9d
or r11d, edx
cmp ebp, 0xffff
cmova eax, ecx
lea rcx, [0x140000000]
mov ecx, dword [r10 + rcx + 0x58748]
or r11d, eax
xor r11d, 0x2a
sar r11d, cl
test r11d, r11d
je 0x140015006
test r15b, r15b
mov eax, r9d
mov ecx, r9d
mov ebp, 0xfffd
setne cl
test r12b, r12b
setne al
add ecx, eax
mov eax, r9d
test r13b, r13b
setne al
add ecx, eax
mov eax, r9d
test r14b, r14b
setne al
add ecx, eax
cmp ebx, ecx
cmovl ecx, ebx
mov ebx, ecx
mov word [rdi], bp
add rdi, 2
movsxd rax, ebx
lea rbp, [0x140000000]
add r8, rax
cmp rdi, qword [rsp]
jb 0x140014e80
mov rcx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x10]
mov r14, qword [rsp + 0x18]
mov r13, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov word [rdi], r9w
test rax, rax
je 0x14001505d
mov qword [rax], r8
sub rdi, rcx
sar rdi, 1
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x140016c50
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, 0x20
cmp qword [rcx + 0x6008], 0
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
je 0x140016cd3
xor edx, edx
add rcx, 0x6010
call fcn.1400254f0
mov r8, rsi
lea rcx, [rbx + 0x6010]
mov rdx, rbp
call fcn.140024bf0
mov eax, dword [rbx + 0x6010]
xor edx, edx
mov r9, qword [rbx + 0x6008]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rbx + 0x6018]
cmove ecx, edx
test rax, rax
movsxd r8, ecx
mov edx, 1
lea rcx, [0x14006b8d8]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x140016cdf
add rcx, 0x6010
call fcn.140024bf0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001f4c0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x14006b8d0]
mov rbx, rcx
xor ecx, ecx
mov dword [rax + 0x5f64], ecx
test rbx, rbx
je 0x14001f52f
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rdi
call fcn.14001f540
lea rdx, [0x1400595e4]
mov rcx, rbx
mov rdi, rax
call fcn.1400143d0
mov rbx, rax
test rax, rax
je 0x14001f52a
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x1400377f0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push rbx
sub rsp, 0x20
call fcn.140013530
test rax, rax
je 0x14003780e
call fcn.140013890
mov rbx, qword [rax + 0x88]
jmp 0x140037810
xor ebx, ebx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rbx + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x14003783b
mov dword [rbx + 0x2c], eax
add rsp, 0x20
pop rbx
ret
Function at 0x140039240
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14006b8d0]
mov rcx, qword [rax + 0x4e20]
mov r10, qword [rax + 0x4000]
movsxd rax, dword [rcx + 0x74]
movups xmm0, xmmword [rcx + 0x170]
movss xmm4, dword [rcx + 0x170]
movss xmm3, dword [rcx + 0x174]
movss xmm2, dword [rcx + 0x178]
movss xmm1, dword [rcx + 0x17c]
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
imul r9, rax, 0x70
mov rax, qword [r10 + 0x2a8]
add r9, qword [rcx + 0x18]
movups xmmword [r10 + 0x248], xmm0
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r10 + 0x2a8]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [r9 + 0x5c]
mov rdx, qword [r10 + 0x2a8]
mov rcx, qword [rcx + 0x1a0]
add rsp, 0x38
jmp 0x14002d620
Function at 0x140039310
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
sub rsp, 0x60
movsxd rax, dword [rcx]
mov rbx, rdx
mov rdx, rcx
cmp eax, r8d
je 0x14002d741
movups xmm0, xmmword [rbx]
mov r9, rax
mov qword [rsp + 0x70], rsi
mov rax, qword [rcx + 0x10]
shl r9, 5
mov qword [rsp + 0x78], rdi
lea rdi, [rbx + 0x88]
movups xmmword [r9 + rax], xmm0
movsxd rcx, dword [rcx]
mov rax, qword [rdx + 0x10]
movups xmm0, xmmword [rbx + 0x10]
shl rcx, 5
movups xmmword [rcx + rax + 0x10], xmm0
mov rax, qword [rdx + 0x10]
mov dword [rdx], r8d
movsxd rcx, r8d
shl rcx, 5
movups xmm0, xmmword [rcx + rax]
movups xmmword [rbx], xmm0
mov rax, qword [rdx + 0x10]
movups xmm0, xmmword [rcx + rax + 0x10]
movups xmmword [rbx + 0x10], xmm0
mov rax, qword [rbx + 0x18]
movsxd rsi, dword [rbx + 0x10]
lea rcx, [rax + rsi*2]
movsxd rax, dword [rbx]
mov qword [rbx + 0x50], rcx
test eax, eax
je 0x14002d6f8
imul rcx, rax, 0x38
mov rax, qword [rbx + 8]
add rax, 0xffffffffffffffc8
add rcx, rax
je 0x14002d6f8
cmp dword [rcx + 0x20], 0
jne 0x14002d6e6
movups xmm0, xmmword [rdi]
mov rsi, qword [rsp + 0x70]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rdi + 0x10]
movsd qword [rcx + 0x10], xmm1
mov eax, dword [rdi + 0x18]
mov rdi, qword [rsp + 0x78]
mov dword [rcx + 0x18], eax
add rsp, 0x60
pop rbx
ret
mov r8d, 0x1c
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14002d737
xor eax, eax
mov dword [rsp + 0x3c], esi
xorps xmm0, xmm0
mov qword [rsp + 0x50], rax
mov rax, qword [rbx + 0x98]
lea rdx, [rsp + 0x20]
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x30], rax
mov rcx, rbx
movups xmm0, xmmword [rdi]
mov eax, dword [rbx + 0xa0]
mov dword [rsp + 0x38], eax
movups xmmword [rsp + 0x20], xmm0
call fcn.140024fe0
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x60
pop rbx
ret
sub rsp, 0x38
mov rax, qword [0x14006b8d0]
mov rcx, qword [rax + 0x4e20]
mov r9, qword [rax + 0x4000]
movups xmm0, xmmword [r9 + 0x248]
movups xmmword [rcx + 0x170], xmm0
mov rax, qword [r9 + 0x2a8]
movups xmm0, xmmword [rcx + 0x150]
movss xmm4, dword [rcx + 0x150]
movss xmm3, dword [rcx + 0x154]
movss xmm2, dword [rcx + 0x158]
movss xmm1, dword [rcx + 0x15c]
movups xmmword [r9 + 0x248], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x2a8]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [rcx + 0x232]
mov rcx, qword [rcx + 0x1a0]
mov rdx, qword [r9 + 0x2a8]
add rsp, 0x38
jmp 0x14002d620
Function at 0x1400490c0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14006b100]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea eax, [rcx - 0xe0]
xor ebx, ebx
mov r8d, ecx
cmp eax, 7
ja 0x14004916d
add r8d, 0xffffff20
cmp r8d, 7
ja case.default.0x14004910e
lea rdx, [0x140000000]
movsxd rax, r8d
mov eax, dword [rdx + rax*4 + 0x49320]
add rax, rdx
jmp rax
or byte [0x14006c1a8], 1
jmp case.default.0x14004910e
or byte [0x14006c1a8], 2
jmp case.default.0x14004910e
or byte [0x14006c1a8], 4
jmp case.default.0x14004910e
or byte [0x14006c1a8], 8
jmp case.default.0x14004910e
or byte [0x14006c1a8], 0x10
jmp case.default.0x14004910e
or byte [0x14006c1a8], 0x20
jmp case.default.0x14004910e
or byte [0x14006c1a8], 0x40
jmp case.default.0x14004910e
or byte [0x14006c1a8], 0x80
jmp case.default.0x14004910e
mov rcx, rbx
lea rdx, [0x140000000]
nop word [rax + rax]
movsx eax, byte [rcx + rdx + 0x6c1aa]
cmp eax, r8d
je case.default.0x14004910e
inc rcx
cmp rcx, 0xa
jl 0x140049180
mov ecx, ebx
mov rax, rbx
nop dword [rax + rax]
cmp byte [rax + rdx + 0x6c1aa], bl
je 0x1400491db
inc ecx
inc rax
cmp rax, 0xa
jl 0x1400491a0
movzx eax, word [0x14006c1b3]
movsd xmm0, qword [0x14006c1ab]
mov word [0x14006c1b2], ax
mov byte [0x14006c1b3], r8b
movsd qword [0x14006c1aa], xmm0
jmp case.default.0x14004910e
movsxd rax, ecx
mov byte [rax + rdx + 0x6c1aa], r8b
cmp qword [0x14006b930], rbx
ja 0x140049207
mov eax, 0xffffdcd8
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140052fe0
add rsp, 0x50
pop rbx
ret
inc dword [0x14006b948]
mov dword [0x14006b94c], 0x123c2c2f
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movsd xmm0, qword [0x14006c1a9]
lea rdx, [0x14006b940]
mov rcx, qword [0x14006b930]
xor r9d, r9d
mov dword [0x14006b944], eax
movzx eax, byte [0x14006c1a8]
mov byte [0x14006b950], al
movzx eax, word [0x14006c1b1]
lea r8d, [r9 + 0x1c]
mov word [0x14006b959], ax
movzx eax, byte [0x14006c1b3]
mov byte [0x14006b95b], al
lea rax, [0x14006c160]
mov dword [rsp + 0x28], socket
mov qword [rsp + 0x20], rax
movsd qword [0x14006b951], xmm0
call qword [sym.imp.WS2_32.dll_sendto]
mov rcx, qword [0x14006b930]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x14006bd50]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x30], socket
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8d, 0x400
call qword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jns 0x1400492df
mov eax, 0xffffdcdb
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140052fe0
add rsp, 0x50
pop rbx
ret
mov eax, dword [0x14006b94c]
cmp dword [0x14006bd5c], eax
je 0x1400492f4
mov ebx, 0xffffdcdc
jmp 0x140049308
mov ecx, dword [0x14006b948]
mov eax, 0xffffdcdd
cmp dword [0x14006bd58], ecx
cmovne ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140052fe0
add rsp, 0x50
pop rbx
ret
Function at 0x140049340
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14006b100]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea eax, [rcx - 0xe0]
xor ebx, ebx
mov r8d, ecx
cmp eax, 7
ja case.default.0x140049378
lea rdx, [0x140000000]
cdqe
mov ecx, dword [rdx + rax*4 + 0x49558]
add rcx, rdx
jmp rcx
and byte [0x14006c1a8], 0xfe
jmp 0x14004941e
and byte [0x14006c1a8], 0xfd
jmp 0x14004941e
and byte [0x14006c1a8], 0xfb
jmp 0x14004941e
and byte [0x14006c1a8], 0xf7
jmp 0x14004941e
and byte [0x14006c1a8], 0xef
jmp 0x14004941e
and byte [0x14006c1a8], 0xdf
jmp 0x14004941e
and byte [0x14006c1a8], 0xbf
jmp 0x14004941e
and byte [0x14006c1a8], 0x7f
jmp 0x14004941e
mov r9d, ebx
lea r10, [0x14006c1aa]
mov rcx, rbx
nop dword [rax + rax]
movsx eax, byte [rcx + r10]
lea edx, [r9 + 1]
cmp eax, r8d
je 0x1400493fc
inc rcx
mov r9d, edx
cmp rcx, 0xa
jl 0x1400493e0
jmp 0x14004941e
mov eax, 0xa
movsxd rdx, edx
sub eax, r9d
movsxd rcx, r9d
movsxd r8, eax
add rdx, r10
add rcx, r10
call sub.VCRUNTIME140.dll_memcpy
mov byte [0x14006c1b3], bl
cmp qword [0x14006b930], rbx
ja 0x14004943f
mov eax, 0xffffdcd8
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140052fe0
add rsp, 0x50
pop rbx
ret
inc dword [0x14006b948]
mov dword [0x14006b94c], 0x123c2c2f
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movsd xmm0, qword [0x14006c1a9]
lea rdx, [0x14006b940]
mov rcx, qword [0x14006b930]
xor r9d, r9d
mov dword [0x14006b944], eax
movzx eax, byte [0x14006c1a8]
mov byte [0x14006b950], al
movzx eax, word [0x14006c1b1]
lea r8d, [r9 + 0x1c]
mov word [0x14006b959], ax
movzx eax, byte [0x14006c1b3]
mov byte [0x14006b95b], al
lea rax, [0x14006c160]
mov dword [rsp + 0x28], socket
mov qword [rsp + 0x20], rax
movsd qword [0x14006b951], xmm0
call qword [sym.imp.WS2_32.dll_sendto]
mov rcx, qword [0x14006b930]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x14006bd50]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x30], socket
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8d, 0x400
call qword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jns 0x140049517
mov eax, 0xffffdcdb
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140052fe0
add rsp, 0x50
pop rbx
ret
mov eax, dword [0x14006b94c]
cmp dword [0x14006bd5c], eax
je 0x14004952c
mov ebx, 0xffffdcdc
jmp 0x140049540
mov ecx, dword [0x14006b948]
mov eax, 0xffffdcdd
cmp dword [0x14006bd58], ecx
cmovne ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140052fe0
add rsp, 0x50
pop rbx
ret
Function at 0x140049580
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub rsp, 0x58
mov rax, qword [0x14006b100]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov eax, ecx
mov rcx, qword [0x14006b930]
test rcx, rcx
jne 0x1400495b8
mov eax, 0xffffdcd8
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140052fe0
add rsp, 0x58
ret
inc dword [0x14006b948]
test eax, eax
mov dword [0x14006b94c], 0x23234343
mov eax, dword [0x14006c1d0]
je 0x1400495d7
or eax, 1
jmp 0x1400495da
and eax, 0xfffffffe
xor r9d, r9d
mov dword [0x14006b944], eax
mov dword [0x14006c1d0], eax
lea rdx, [0x14006b940]
lea rax, [0x14006c160]
mov dword [rsp + 0x28], socket
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 0x10]
call qword [sym.imp.WS2_32.dll_sendto]
mov rcx, qword [0x14006b930]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x14006bd50]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x30], socket
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8d, 0x400
call qword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jns 0x140049662
mov eax, 0xffffdcdb
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140052fe0
add rsp, 0x58
ret
mov eax, dword [0x14006b94c]
cmp dword [0x14006bd5c], eax
je 0x140049687
mov eax, 0xffffdcdc
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140052fe0
add rsp, 0x58
ret
mov ecx, dword [0x14006b948]
xor eax, eax
cmp dword [0x14006bd58], ecx
mov edx, 0xffffdcdd
cmovne eax, edx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140052fe0
add rsp, 0x58
ret
Function at 0x1400496b0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14006b100]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [0x14006b930], 0
mov ebx, ecx
ja 0x1400496e9
mov eax, 0xffffdcd8
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140052fe0
add rsp, 0x50
pop rbx
ret
inc dword [0x14006b948]
mov dword [0x14006b94c], 0x9823ae8d
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov dword [0x14006b944], eax
test ebx, ebx
je 0x140049712
or dword [0x14006c170], 1
jmp 0x140049719
and dword [0x14006c170], 0xfffffffe
movups xmm0, xmmword [0x14006c170]
mov rcx, qword [0x14006b930]
xor r9d, r9d
movups xmm1, xmmword [0x14006c180]
lea rax, [0x14006c160]
mov dword [rsp + 0x28], socket
movaps xmmword [0x14006b950], xmm0
lea rdx, [0x14006b940]
movups xmm0, xmmword [0x14006c190]
lea r8d, [r9 + 0x48]
mov qword [rsp + 0x20], rax
movaps xmmword [0x14006b960], xmm1
movsd xmm1, qword [0x14006c1a0]
movaps xmmword [0x14006b970], xmm0
movsd qword [0x14006b980], xmm1
call qword [sym.imp.WS2_32.dll_sendto]
mov rcx, qword [0x14006b930]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x14006bd50]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x30], socket
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8d, 0x400
call qword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jns 0x1400497d7
mov eax, 0xffffdcdb
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140052fe0
add rsp, 0x50
pop rbx
ret
mov eax, dword [0x14006b94c]
cmp dword [0x14006bd5c], eax
je 0x1400497fd
mov eax, 0xffffdcdc
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140052fe0
add rsp, 0x50
pop rbx
ret
mov ecx, dword [0x14006b948]
xor eax, eax
cmp dword [0x14006bd58], ecx
mov edx, 0xffffdcdd
cmovne eax, edx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140052fe0
add rsp, 0x50
pop rbx
ret