joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140095710
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rbx
push rbp
push rdi
push r12
push r14
push r15
sub rsp, 0x28
xor r15d, r15d
mov r12, r9
mov rbx, r8
mov r14, rdx
mov rdi, rcx
test rdx, rdx
je 0x14009577b
mov r10, rbx
mov rcx, r9
sub r10, r9
nop dword [rax]
nop dword [rax + rax]
mov rdx, qword [rdi + 0x80]
cmp rdx, 0x40
jae 0x14009577b
movzx eax, byte [r10 + rcx]
inc r15
xor al, byte [rdx + rdi + 0x40]
mov byte [rcx], al
inc rcx
inc qword [rdi + 0x80]
sub r14, 1
jne 0x140095750
lea rbp, [rdi + 0x40]
cmp r14, 0x40
jb 0x140095871
mov qword [rsp + 0x60], rsi
mov r12, r14
shr r12, 6
mov rsi, rdi
imul rax, r12, 0xffffffffffffffc0
sub rsi, r15
mov qword [rsp + 0x20], r13
add r14, rax
mov r13, rbx
sub rsi, r9
lea rbx, [r9 + 1]
mov rax, r12
sub r13, r9
shl rax, 6
add rbx, r15
add rsi, 0x40
add r15, rax
mov rdx, rbp
mov rcx, rdi
call fcn.140095010
inc dword [rdi + 0x30]
mov ecx, 8
nop dword [rax + rax]
movzx eax, byte [rbx + r13 - 1]
xor al, byte [rbx + rsi - 1]
mov byte [rbx - 1], al
movzx eax, byte [rbx + rsi]
xor al, byte [rbx + r13]
mov byte [rbx], al
movzx eax, byte [rbx + r13 + 1]
xor al, byte [rbx + rsi + 1]
mov byte [rbx + 1], al
movzx eax, byte [rbx + r13 + 2]
xor al, byte [rbx + rsi + 2]
mov byte [rbx + 2], al
movzx eax, byte [rbx + rsi + 3]
xor al, byte [rbx + r13 + 3]
mov byte [rbx + 3], al
movzx eax, byte [rbx + rsi + 4]
xor al, byte [rbx + r13 + 4]
mov byte [rbx + 4], al
movzx eax, byte [rbx + rsi + 5]
xor al, byte [rbx + r13 + 5]
mov byte [rbx + 5], al
movzx eax, byte [rbx + rsi + 6]
xor al, byte [rbx + r13 + 6]
mov byte [rbx + 6], al
add rbx, 8
sub rcx, 1
jne 0x1400957e0
sub rsi, 0x40
sub r12, 1
jne 0x1400957c5
mov r13, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x60]
mov r12, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
test r14, r14
je 0x1400958b0
mov rdx, rbp
mov rcx, rdi
call fcn.140095010
inc dword [rdi + 0x30]
mov rcx, r14
sub r15, rdi
lea rdx, [r15 + rbx]
lea r8, [r15 + r12]
movzx eax, byte [rdx + rbp - 0x40]
xor al, byte [rbp]
mov byte [r8 + rbp - 0x40], al
lea rbp, [rbp + 1]
sub rcx, 1
jne 0x140095892
mov qword [rdi + 0x80], r14
xor eax, eax
add rsp, 0x28
pop r15
pop r14
pop r12
pop rdi
pop rbp
pop rbx
ret
Function at 0x140095f40
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1401567f8]
xor rax, rsp
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov r8d, reloc.WS2_32.dll_recv
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x38]
mov rbx, rcx
movups xmmword [rsp + 0x38], xmm0
call fcn.1400948d0
test eax, eax
jne 0x140096109
movzx eax, byte [rsp + 0x39]
movzx r8d, byte [rsp + 0x38]
movzx r9d, byte [rsp + 0x40]
movzx ecx, byte [rsp + 0x3c]
shl r8d, 8
or r8d, eax
shl r9d, 8
movzx eax, byte [rsp + 0x3a]
shl r8d, 8
or r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x3b]
shl r8d, 8
or r8, rax
mov qword [rbx + 0xd8], 0
movzx eax, byte [rsp + 0x3d]
or ecx, eax
shl r8, 0x20
movzx eax, byte [rsp + 0x3e]
shl ecx, 8
or eax, ecx
mov qword [rbx + 0x58], 0
movzx ecx, byte [rsp + 0x44]
shl eax, 8
or r8, rax
shl ecx, 8
movzx eax, byte [rsp + 0x3f]
or r8, rax
mov r10d, 4
movzx eax, byte [rsp + 0x41]
or r9d, eax
mov qword [rbx + 0x118], r8
movzx eax, byte [rsp + 0x42]
shl r9d, 8
or r9d, eax
movzx eax, byte [rsp + 0x43]
shl r9d, 8
or r9, rax
movzx eax, byte [rsp + 0x45]
or ecx, eax
shl r9, 0x20
movzx eax, byte [rsp + 0x46]
shl ecx, 8
or eax, ecx
shl eax, 8
or r9, rax
movzx eax, byte [rsp + 0x47]
or r9, rax
mov qword [rbx + 0x98], r9
mov eax, r9d
mov rcx, r8
and eax, 1
shl rcx, 0x3f
imul edx, eax, 0xe1000000
mov rax, r9
shr rax, 1
mov r9, rcx
or r9, rax
mov rax, r8
shr rax, 1
mov qword [rbx + r10*8 + 0x58], r9
mov ecx, edx
shl rcx, 0x20
mov r8, rcx
xor r8, rax
mov qword [rbx + r10*8 + 0xd8], r8
shr r10d, 1
jne 0x140096061
mov r11d, 2
mov r8d, r11d
nop dword [rax]
mov r9, qword [rbx + r8*8 + 0xd8]
mov r10, qword [rbx + r8*8 + 0x58]
cmp r8, 1
jle 0x1400960f8
lea rax, [rbx + 0x60]
lea rdx, [r8 - 1]
nop dword [rax + rax]
mov rcx, r9
xor rcx, qword [rax + 0x80]
mov qword [rax + r8*8 + 0x80], rcx
lea rax, [rax + 8]
mov rcx, r10
xor rcx, qword [rax - 8]
mov qword [rax + r8*8 - 8], rcx
sub rdx, 1
jne 0x1400960d0
lea eax, [r11 + r11]
add r8, r8
mov r11d, eax
cmp eax, 8
jle 0x1400960b0
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400b7620
add rsp, 0x50
pop rbx
ret
Function at 0x140096660
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1401567f8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xa8]
mov rsi, rcx
mov rcx, qword [rsp + 0xa0]
mov rbp, rdx
mov rdi, qword [rsp + 0xb0]
xor edx, edx
mov rbx, qword [rsp + 0xc0]
mov r14, qword [rsp + 0xc8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov rcx, rsi
call fcn.140096ad0
test eax, eax
jne 0x1400967f7
mov r9, r14
mov r8, rbx
mov rdx, rbp
mov rcx, rsi
call fcn.140096dd0
test eax, eax
jne 0x1400967f7
mov rbx, qword [rsp + 0xb8]
lea rdx, [rsp + 0x30]
mov r8, rbx
mov rcx, rsi
call fcn.140096890
test eax, eax
jne 0x1400967f7
xor ecx, ecx
mov eax, ecx
test rbx, rbx
je 0x1400967f5
cmp rbx, 8
jb 0x1400967b0
mov r8, rbx
lea rcx, [rsp + 0x30]
and r8, 0xfffffffffffffff8
mov rdx, rdi
sub rdx, rcx
xorps xmm4, xmm4
xorps xmm3, xmm3
nop dword [rax]
movd xmm2, dword [rdi + rax]
lea rcx, [rdx + rax]
movd xmm1, dword [rsp + rax + 0x30]
xorps xmm0, xmm0
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
movd xmm1, dword [rsp + rax + 0x34]
por xmm4, xmm2
punpcklbw xmm1, xmm0
movd xmm2, dword [rsp + rcx + 0x34]
add rax, 8
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
por xmm3, xmm2
cmp rax, r8
jb 0x140096730
por xmm3, xmm4
movdqa xmm0, xmm3
psrldq xmm0, 8
por xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
por xmm3, xmm0
movd ecx, xmm3
cmp rax, rbx
jae 0x1400967df
jmp 0x1400967c0
lea rdx, [rsp + 0x30]
sub rdi, rdx
mov rdx, rdi
nop dword [rax + rax]
lea r8, [rsp + 0x30]
add r8, rax
inc rax
movzx r9d, byte [rdx + r8]
movzx r8d, byte [r8]
xor r9d, r8d
or ecx, r9d
cmp rax, rbx
jb 0x1400967c0
test ecx, ecx
je 0x1400967f5
mov rdx, rbp
mov rcx, r14
call fcn.14006de40
mov eax, 0xffffffee
jmp 0x1400967f7
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400b7620
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14009b2e0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
movzx r10d, byte [r8 + 1]
mov rbx, rcx
movzx ecx, byte [r8 + 5]
mov r11d, edx
movzx eax, byte [r8]
mov r14, r9
movzx edi, byte [r8 + 4]
movzx edx, byte [r8 + 3]
shl eax, 8
shl edi, 8
or eax, r10d
movzx r10d, byte [r8 + 2]
or edi, ecx
movzx ecx, byte [r8 + 6]
shl eax, 8
shl edi, 8
or eax, r10d
or edi, ecx
shl eax, 8
movzx ecx, byte [r8 + 7]
or eax, edx
shl edi, 8
or edi, ecx
test r11d, r11d
mov r11d, reloc.WS2_32.dll_recv
jne 0x14009b3b3
lea rsi, [rbx + 0x44]
nop dword [rax]
nop word [rax + rax]
xor eax, dword [rsi]
lea rsi, [rsi - 4]
mov ecx, eax
mov r10d, eax
shr ecx, 8
movzx r9d, cl
shr ecx, 8
mov edx, ecx
shr rdx, 8
movzx ecx, cl
mov r8d, dword [rbx + rdx*4 + 0x48]
add r8d, dword [rbx + rcx*4 + 0x448]
xor r8d, dword [rbx + r9*4 + 0x848]
movzx ecx, al
mov eax, r8d
add eax, dword [rbx + rcx*4 + 0xc48]
xor eax, edi
mov edi, r10d
sub r11, 1
jne 0x14009b360
xor r10d, dword [rbx]
xor eax, dword [rbx + 4]
jmp 0x14009b412
mov rsi, rbx
nop word [rax + rax]
xor eax, dword [rsi]
lea rsi, [rsi + 4]
mov ecx, eax
mov r10d, eax
shr ecx, 8
movzx r9d, cl
shr ecx, 8
mov edx, ecx
shr rdx, 8
movzx ecx, cl
mov r8d, dword [rbx + rdx*4 + 0x48]
add r8d, dword [rbx + rcx*4 + 0x448]
xor r8d, dword [rbx + r9*4 + 0x848]
movzx ecx, al
mov eax, r8d
add eax, dword [rbx + rcx*4 + 0xc48]
xor eax, edi
mov edi, r10d
sub r11, 1
jne 0x14009b3c0
xor r10d, dword [rbx + 0x44]
xor eax, dword [rbx + 0x40]
mov rbx, qword [rsp + 8]
mov ecx, r10d
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
shr ecx, 0x18
mov byte [r14], cl
mov ecx, r10d
shr ecx, 0x10
mov byte [r14 + 1], cl
mov ecx, r10d
shr ecx, 8
mov byte [r14 + 2], cl
mov ecx, eax
shr ecx, 0x18
mov byte [r14 + 4], cl
mov ecx, eax
shr ecx, 0x10
mov byte [r14 + 5], cl
mov ecx, eax
mov byte [r14 + 7], al
xor eax, eax
shr ecx, 8
mov byte [r14 + 6], cl
mov byte [r14 + 3], r10b
mov r14, qword [rsp + 0x20]
ret
Function at 0x14009dce0
Capabilities:
Hash data using sha384
Hash data using sha512

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x70]
add rcx, 0x4ac
call fcn.14008a0d0
mov rcx, qword [rbx + 0x70]
add rcx, 0x504
call fcn.14008bd90
mov rcx, qword [rbx + 0x70]
xor edx, edx
add rcx, 0x560
call fcn.14008e720
mov rcx, qword [rbx + 0x70]
mov edx, 1
add rcx, 0x5d0
add rsp, 0x20
pop rbx
jmp fcn.1400890f0
Function at 0x1400b85f4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400b863e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400b863e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400b863e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400b863e
cmp dword [rcx + 0x84], 0xe
jbe 0x1400b863e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400b8640
xor al, al
add rsp, 0x28
ret

Function at 0x1400c2a50
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400c2a87
call fcn.1400ca30c
mov dword [rax], socket
call fcn.1400c9b3c
xor eax, eax
jmp 0x1400c2b15
mov rdx, r9
mov rcx, r8
call fcn.1400c29ec
mov rbx, rax
test rax, rax
je 0x1400c2b12
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400c2918]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400c2aff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400ca280
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400c2ae6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400c2af5
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400d60f8
jmp 0x1400c2b12
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400c2b0f
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400cfffc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1400b81e0
sub rsp, rax
mov rax, qword [0x1401567f8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400d4368
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400d004b
mov rax, rbp
jmp 0x1400d0153
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x15fd60]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400d960c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x15fd60]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400d014f
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400d014f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400d960c
test rax, rax
js 0x1400d014f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400d014f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400d0141
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400d0141
cmp byte [rcx], 0xd
jne 0x1400d0127
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400d0136
cmp byte [rcx + 1], 0xa
jne 0x1400d0136
inc rcx
jmp 0x1400d0136
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x156c00]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400d0109
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400d0153
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400b7620
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400d0afc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400d08f8

Function at 0x1400d4488
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400d449e
mov al, 1
jmp 0x1400d44fe
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400d44af
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400d44fc
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400de0ec
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400d44fc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400d44fc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400d44fc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400d44fe
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400d87ac
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14015fd60]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400d8803
cmp word [rdx], r13w
jne 0x1400d8803
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400d8808
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400d892d
mov r11d, recv
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400d894e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400d8841
mov rdx, r9
mov word [rbx], cx
jmp 0x1400d8868
cmp r9, r8
jae 0x1400d8878
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400d8822
jmp 0x1400d892d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400d8922
cmp dword [rsp + 0x80], esi
je 0x1400d8922
lea r8, [0x14015fd60]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400d88fa
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400d88ca
mov word [rbx], r13w
jmp 0x1400d892a
mov ecx, recv
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400d88d7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400d892a
cmp word [rsp + 0x70], r13w
jne 0x1400d8907
cmp rbx, r14
je 0x1400d88c4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400d9614
cmp word [rsp + 0x70], r13w
je 0x1400d892d
mov ecx, recv
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14015fd60]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400d8927
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400d892d
Function at 0x1400dd5cc
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400dd653
mov rsi, rbx
cmp word [rax], bp
je 0x1400dd612
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400dd5fc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400dd5f8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400d65ec
mov rdi, rax
test rax, rax
je 0x1400dd640
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400b9a70
mov rbp, rdi
xor ecx, ecx
call fcn.1400d60f8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400e0640
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400d4948
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400e06e1
cmp ebx, dword [rsp + 0x30]
je 0x1400e06da
test esi, esi
je 0x1400e06da
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400e06b5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400e06c2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400e069f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400e06c6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400e06e3
mov eax, 1
jmp 0x1400e06e3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400e4c04
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400d9614
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400d9614
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400e4d54
cmp rax, 0xffffffffffffffff
je 0x1400e4d54
xor edi, edi
test rbp, rbp
jle 0x1400e4cff
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400d4f1c
mov rbx, rax
test rax, rax
jne 0x1400e4c8c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400e4cf5
mov edx, 0x8000
mov ecx, r14d
call fcn.1400d194c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400d5b90
cmp eax, 0xffffffff
je 0x1400e4cd5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400e4c9c
mov edx, r15d
mov ecx, r14d
call fcn.1400d194c
jmp 0x1400e4cf5
cmp byte [rsi + 0x38], dil
je 0x1400e4cec
cmp dword [rsi + 0x34], 5
jne 0x1400e4cec
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], recv
cmp byte [rsi + 0x30], dil
je 0x1400e4cf5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400d60f8
jmp 0x1400e4d68
jns 0x1400e4d68
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400d9614
cmp rax, 0xffffffffffffffff
jne 0x1400e4d20
cmp byte [rsi + 0x30], dil
je 0x1400e4d68
mov edi, dword [rsi + 0x2c]
jmp 0x1400e4d68
mov ecx, r14d
call fcn.1400de0ec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400e4d68
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, recv
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], recv
jmp 0x1400e4d68
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400e4d61
mov eax, dword [rsi + 0x2c]
jmp 0x1400e4d66
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400d9614
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400e5bd0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [rcx + 0x60]
movzx r8d, byte [rcx + 0x5c]
test eax, eax
jle 0x1400e5c0c
mov edx, dword [rcx + 0x288]
lea r11, [0x140157cb0]
mov r9d, eax
nop dword [rax]
mov eax, edx
shr rax, 0x18
xor rax, r8
shl edx, 8
xor edx, dword [r11 + rax*4]
mov dword [rcx + 0x288], edx
sub r9, 1
jne 0x1400e5bf0
mov eax, dword [rcx + 0x5c]
mov byte [rax + rcx + 0x80], 1
movsxd r9, dword [rcx + 0x60]
mov edx, r9d
sub edx, 1
je 0x1400e5cee
sub edx, 1
je 0x1400e5ce0
cmp edx, 1
je 0x1400e5ca0
mov byte [r9 + rcx + 0x7c], 1
mov rax, qword [rcx + 0x40]
movsxd rdx, dword [rcx + 0x6c]
mov byte [rdx + rax], r8b
movsxd rdx, dword [rcx + 0x6c]
lea eax, [rdx + 1]
mov dword [rcx + 0x6c], eax
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax + 1], r8b
movsxd rdx, dword [rcx + 0x6c]
lea eax, [rdx + 1]
mov dword [rcx + 0x6c], eax
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax + 1], r8b
movsxd rdx, dword [rcx + 0x6c]
lea eax, [rdx + 1]
mov dword [rcx + 0x6c], eax
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax + 1], r8b
movsxd rdx, dword [rcx + 0x6c]
lea eax, [rdx + 1]
mov dword [rcx + 0x6c], eax
movzx r8d, byte [rcx + 0x60]
mov rax, qword [rcx + 0x40]
sub r8b, 4
mov byte [rdx + rax + 1], r8b
inc dword [rcx + 0x6c]
ret
movsxd rdx, dword [rcx + 0x6c]
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax], r8b
movsxd rdx, dword [rcx + 0x6c]
lea eax, [rdx + 1]
mov dword [rcx + 0x6c], eax
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax + 1], r8b
movsxd rdx, dword [rcx + 0x6c]
lea eax, [rdx + 1]
mov dword [rcx + 0x6c], eax
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax + 1], r8b
inc dword [rcx + 0x6c]
ret
movsxd rdx, dword [rcx + 0x6c]
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax], r8b
jmp 0x1400e5cbf
movsxd rdx, dword [rcx + 0x6c]
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax], r8b
inc dword [rcx + 0x6c]
ret
Function at 0x1400f9070
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400f9098
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400f9098
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140022980
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x1400229b4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x1400229a0
ret
Function at 0x140028d10
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140028ddc
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x140028ddc
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x140028df5
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x140028dcc
cmp byte [rax], 0x5c
jne 0x140028dc6
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x140028dc6
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140028db2
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x140028dc3
test r8b, 0x10
jne 0x140028dc6
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x140028dc6
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140024970
test edi, edi
jne 0x140028d30
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140024960
int3