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

Disassembly:
lea rax, [rdx + 0xf]
mov r8d, reloc.WS2_32.dll_recv
lea r10, [rcx + 0xf]
cmp rcx, rax
ja 0x140028f4b
xor r9d, r9d
cmp r10, rdx
jae 0x140028f5e
movdqu xmm1, xmmword [rcx]
movdqu xmm0, xmmword [rdx]
pxor xmm1, xmm0
movdqu xmmword [rcx], xmm1
mov r9, r8
cmp r9, r8
jae 0x140028f80
sub rdx, rcx
lea rax, [r9 + rcx]
sub r8, r9
nop dword [rax]
movzx ecx, byte [rdx + rax]
xor byte [rax], cl
lea rax, [rax + 1]
sub r8, 1
jne 0x140028f70
ret

Function at 0x1400293a0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x1e8
mov rax, qword [0x140077020]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov esi, r9d
mov rbx, r8
mov r15d, edx
mov r14, rcx
test rcx, rcx
je 0x14002951c
mov ecx, edx
call fcn.14002c5e0
movsxd r12, eax
mov ecx, r15d
mov dword [r14 + 8], r12d
call fcn.14002c600
mov dword [r14 + 4], eax
mov edi, eax
mov dword [r14], r15d
cmp esi, r12d
jle 0x14002944d
mov edx, r15d
lea rcx, [rsp + 0x20]
call fcn.14002c6a0
test eax, eax
jne 0x14002951c
mov r8d, esi
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.14002c640
test eax, eax
jne 0x14002951c
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0x20]
call fcn.14002c700
test eax, eax
jne 0x14002951c
lea rbx, [rsp + 0x190]
mov esi, edi
mov qword [rsp + 0x1e0], rbp
xor ebp, ebp
movsxd r8, esi
mov r10d, ebp
test esi, esi
jle 0x1400294a9
lea rax, [rsp + 0x110]
mov r9, r14
sub rbx, rax
lea rcx, [rsp + 0x110]
sub r9, rcx
mov edi, ebp
mov r10d, esi
nop
lea rdx, [rsp + 0x110]
add rdx, rdi
inc rdi
movzx ecx, byte [rbx + rdx]
movzx eax, cl
xor cl, 0x5c
xor al, 0x36
mov byte [r9 + rdx + 0xf8], cl
mov byte [rdx], al
cmp rdi, r8
jl 0x140029480
movsxd rax, r10d
mov r10, r12
cmp rax, r12
jge 0x1400294e3
lea rdi, [r14 + 0xf8]
add rdi, rax
lea r9, [rsp + 0x110]
add r9, rax
sub r10, rax
mov eax, 0x5c
mov rcx, r10
rep stosb byte [rdi], al
mov rdi, r9
mov rcx, r10
mov eax, 0x36
rep stosb byte [rdi], al
mov edx, r15d
lea rcx, [r14 + 0x10]
call fcn.14002c6a0
test eax, eax
jne 0x14002950b
mov r8d, r12d
lea rdx, [rsp + 0x110]
lea rcx, [r14 + 0x10]
call fcn.14002c640
test eax, eax
je 0x140029510
mov ebp, 1
mov eax, ebp
mov rbp, qword [rsp + 0x1e0]
jmp 0x140029521
mov eax, 1
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.14001ec40
add rsp, 0x1e8
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x14002c180
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x28
mov r10, rdx
mov r9, r8
mov rdx, rcx
mov rcx, r8
call fcn.14002c1e0
mov qword [0x140078df0], r9
mov qword [0x140078df8], r10
call fcn.14002c260
add rsp, 0x28
jmp 0x14002c210
mov qword [rsp + 8], rbx
mov rax, qword [0x140078df0]
lea rbx, [0x140078e00]
xor r10b, r10b
movzx r11d, cl
shl r11d, 2
nop
movzx r9d, r10b
xor r8b, r8b
add r9d, r11d
shl r9d, 2
nop
movzx ecx, r8b
inc r8b
add ecx, r9d
movzx ecx, byte [rcx + rbx]
xor byte [rax], cl
inc rax
cmp r8b, 4
jb 0x14002c1b0
inc r10b
cmp r10b, 4
jb 0x14002c1a0
mov rbx, qword [rsp + 8]
ret
push rbx
sub rsp, 0x20
xor ecx, ecx
call 0x14002c180
mov bl, 1
nop
call fcn.14002c560
call fcn.14002c500
call fcn.14002c450
movzx ecx, bl
call 0x14002c180
inc bl
cmp bl, 0xa
jb 0x14002c220
call fcn.14002c560
call fcn.14002c500
mov cl, 0xa
add rsp, 0x20
pop rbx
jmp 0x14002c180

Function at 0x14002c210
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x28
mov r10, rdx
mov r9, r8
mov rdx, rcx
mov rcx, r8
call fcn.14002c1e0
mov qword [0x140078df0], r9
mov qword [0x140078df8], r10
call fcn.14002c260
add rsp, 0x28
jmp 0x14002c210
mov qword [rsp + 8], rbx
mov rax, qword [0x140078df0]
lea rbx, [0x140078e00]
xor r10b, r10b
movzx r11d, cl
shl r11d, 2
nop
movzx r9d, r10b
xor r8b, r8b
add r9d, r11d
shl r9d, 2
nop
movzx ecx, r8b
inc r8b
add ecx, r9d
movzx ecx, byte [rcx + rbx]
xor byte [rax], cl
inc rax
cmp r8b, 4
jb 0x14002c1b0
inc r10b
cmp r10b, 4
jb 0x14002c1a0
mov rbx, qword [rsp + 8]
ret
push rbx
sub rsp, 0x20
xor ecx, ecx
call 0x14002c180
mov bl, 1
nop
call fcn.14002c560
call fcn.14002c500
call fcn.14002c450
movzx ecx, bl
call 0x14002c180
inc bl
cmp bl, 0xa
jb 0x14002c220
call fcn.14002c560
call fcn.14002c500
mov cl, 0xa
add rsp, 0x20
pop rbx
jmp 0x14002c180

Function at 0x14002c450
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov r8, qword [0x140078df0]
mov edi, 4
add r8, 2
nop word [rax + rax]
movzx r11d, byte [r8 - 2]
movzx ebx, r11b
movzx ecx, r11b
xor bl, byte [r8 - 1]
xor bl, byte [r8 + 1]
xor cl, byte [r8 - 1]
xor bl, byte [r8]
call fcn.14002c5c0
xor al, r11b
xor al, bl
mov byte [r8 - 2], al
movzx r10d, byte [r8]
movzx ecx, byte [r8 - 1]
xor cl, r10b
call fcn.14002c5c0
xor al, byte [r8 - 1]
movzx ecx, r10b
xor al, bl
mov byte [r8 - 1], al
xor cl, byte [r8 + 1]
call fcn.14002c5c0
xor al, r10b
xor al, bl
mov byte [r8], al
xor r11b, byte [r8 + 1]
movzx ecx, r11b
call fcn.14002c5c0
xor al, byte [r8 + 1]
lea r8, [r8 + 4]
xor al, bl
mov byte [r8 - 3], al
sub rdi, 1
jne 0x14002c470
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14002c5b0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
movzx eax, cl
lea rcx, str.cw
movzx eax, byte [rax + rcx]
ret
Function at 0x14002c6a0
Capabilities:
Hash data using sha1
Hash data using sha256
Hash data using sha384
Hash data using sha512

Disassembly:
test rcx, rcx
je 0x14002c6f2
mov dword [rcx], edx
test edx, edx
je 0x14002c6e9
sub edx, 1
je 0x14002c6e0
sub edx, 1
je 0x14002c6d7
sub edx, 1
je 0x14002c6ce
cmp edx, 1
je 0x14002c6c5
mov eax, 4
ret
add rcx, 8
jmp 0x14002eb80
add rcx, 8
jmp 0x14002e1f0
add rcx, 8
jmp 0x14002e1c0
add rcx, 8
jmp 0x14002d990
add rcx, 8
jmp 0x14002d850
mov eax, 1
ret
test rcx, rcx
jne 0x14002d85b
mov eax, 1
ret
xor eax, eax
mov qword [rcx + 0x14], rax
mov word [rcx + 0x1c], ax
mov dword [rcx], 0x67452301
mov dword [rcx + 4], 0xefcdab89
mov dword [rcx + 8], 0x98badcfe
mov dword [rcx + 0xc], 0x10325476
mov dword [rcx + 0x10], 0xc3d2e1f0
mov qword [rcx + 0x60], rax
ret
lea rdx, [0x140077100]
jmp 0x14002dfe0
test rcx, rcx
jne 0x14002dfe9
lea eax, [rcx + 1]
ret
xor r8d, r8d
mov qword [rcx + 0x20], r8
mov word [rcx + 0x28], r8w
mov eax, dword [rdx]
mov dword [rcx], eax
mov eax, dword [rdx + 4]
mov dword [rcx + 4], eax
mov eax, dword [rdx + 8]
mov dword [rcx + 8], eax
mov eax, dword [rdx + 0xc]
mov dword [rcx + 0xc], eax
mov eax, dword [rdx + 0x10]
mov dword [rcx + 0x10], eax
mov eax, dword [rdx + 0x14]
mov dword [rcx + 0x14], eax
mov eax, dword [rdx + 0x18]
mov dword [rcx + 0x18], eax
mov eax, dword [rdx + 0x1c]
mov dword [rcx + 0x1c], eax
xor eax, eax
mov qword [rcx + 0x6c], r8
ret
lea rdx, [0x140077120]
jmp 0x14002dfe0
lea rdx, [0x140077140]
jmp 0x14002e940
test rcx, rcx
jne 0x14002e949
lea eax, [rcx + 1]
ret
xor r8d, r8d
mov word [rcx + 0x50], r8w
mov qword [rcx + 0x40], r8
mov qword [rcx + 0x48], r8
mov rax, qword [rdx]
mov qword [rcx], rax
mov rax, qword [rdx + 8]
mov qword [rcx + 8], rax
mov rax, qword [rdx + 0x10]
mov qword [rcx + 0x10], rax
mov rax, qword [rdx + 0x18]
mov qword [rcx + 0x18], rax
mov rax, qword [rdx + 0x20]
mov qword [rcx + 0x20], rax
mov rax, qword [rdx + 0x28]
mov qword [rcx + 0x28], rax
mov rax, qword [rdx + 0x30]
mov qword [rcx + 0x30], rax
mov rax, qword [rdx + 0x38]
mov qword [rcx + 0x38], rax
xor eax, eax
mov qword [rcx + 0xd4], r8
ret
lea rdx, [0x140077180]
jmp 0x14002e940
Function at 0x14002d390
Capabilities:
Hash data using sha1

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
movsx rcx, word [rcx + 0x1c]
mov rax, rcx
mov byte [rcx + rbx + 0x1e], dl
movzx eax, word [rbx + 0x1c]
inc ax
mov word [rbx + 0x1c], ax
cmp ecx, 0x38
jl 0x14002d3e3
cmp ax, 0x40
jge 0x14002d3d7
nop dword [rax + rax]
movsx rax, ax
mov byte [rax + rbx + 0x1e], 0
inc word [rbx + 0x1c]
movzx eax, word [rbx + 0x1c]
cmp ax, 0x40
jl 0x14002d3c0
mov rcx, rbx
call fcn.14002d450
movzx eax, word [rbx + 0x1c]
cmp ax, 0x38
jge 0x14002d405
nop dword [rax]
movsx rax, word [rbx + 0x1c]
mov byte [rax + rbx + 0x1e], 0
inc word [rbx + 0x1c]
cmp word [rbx + 0x1c], 0x38
jl 0x14002d3f0
movzx eax, byte [rbx + 0x1b]
mov rcx, rbx
mov byte [rbx + 0x56], al
movzx eax, byte [rbx + 0x1a]
mov byte [rbx + 0x57], al
mov eax, dword [rbx + 0x18]
shr eax, 8
mov byte [rbx + 0x58], al
movzx eax, byte [rbx + 0x18]
mov byte [rbx + 0x59], al
movzx eax, byte [rbx + 0x17]
mov byte [rbx + 0x5a], al
movzx eax, byte [rbx + 0x16]
mov byte [rbx + 0x5b], al
mov eax, dword [rbx + 0x14]
shr eax, 8
mov byte [rbx + 0x5c], al
movzx eax, byte [rbx + 0x14]
mov byte [rbx + 0x5d], al
add rsp, 0x20
pop rbx
jmp fcn.14002d450
Function at 0x14002da20
Capabilities:
Hash data using murmur3

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
movsx rcx, word [rcx + 0x28]
mov rax, rcx
mov byte [rcx + rbx + 0x2a], dl
movzx eax, word [rbx + 0x28]
inc ax
mov word [rbx + 0x28], ax
cmp ecx, 0x38
jl 0x14002da73
cmp ax, 0x40
jge 0x14002da67
nop dword [rax + rax]
movsx rax, ax
mov byte [rax + rbx + 0x2a], 0
inc word [rbx + 0x28]
movzx eax, word [rbx + 0x28]
cmp ax, 0x40
jl 0x14002da50
mov rcx, rbx
call fcn.14002dae0
movzx eax, word [rbx + 0x28]
cmp ax, 0x38
jge 0x14002da95
nop dword [rax]
movsx rax, word [rbx + 0x28]
mov byte [rax + rbx + 0x2a], 0
inc word [rbx + 0x28]
cmp word [rbx + 0x28], 0x38
jl 0x14002da80
movzx eax, byte [rbx + 0x27]
mov rcx, rbx
mov byte [rbx + 0x62], al
movzx eax, byte [rbx + 0x26]
mov byte [rbx + 0x63], al
mov eax, dword [rbx + 0x24]
shr eax, 8
mov byte [rbx + 0x64], al
movzx eax, byte [rbx + 0x24]
mov byte [rbx + 0x65], al
movzx eax, byte [rbx + 0x23]
mov byte [rbx + 0x66], al
movzx eax, byte [rbx + 0x22]
mov byte [rbx + 0x67], al
mov eax, dword [rbx + 0x20]
shr eax, 8
mov byte [rbx + 0x68], al
movzx eax, byte [rbx + 0x20]
mov byte [rbx + 0x69], al
add rsp, 0x20
pop rbx
jmp fcn.14002dae0
Function at 0x140041658
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140041454
Function at 0x14004b1b4
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14004b1e4
xor eax, eax
jmp 0x14004b2a7
mov rbp, rbx
cmp word [rax], si
je 0x14004b209
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14004b1f0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14004b1ec
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140048a24
movsxd r14, eax
test eax, eax
jne 0x14004b247
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14004b1dd
mov rcx, r14
call fcn.1400467b0
mov rdi, rax
test rax, rax
jne 0x14004b260
xor ecx, ecx
call fcn.140045c10
jmp 0x14004b23c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140048a24
test eax, eax
jne 0x14004b291
mov rcx, rdi
call fcn.140045c10
jmp 0x14004b29b
xor ecx, ecx
call fcn.140045c10
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14004b2c4
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 0x14004b34b
mov rsi, rbx
cmp word [rax], bp
je 0x14004b30a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14004b2f4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14004b2f0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400467b0
mov rdi, rax
test rax, rax
je 0x14004b338
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400307a0
mov rbp, rdi
xor ecx, ecx
call fcn.140045c10
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 0x14004e198
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.140045760
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 0x14004e239
cmp ebx, dword [rsp + 0x30]
je 0x14004e232
test esi, esi
je 0x14004e232
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14004e20d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14004e21a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14004e1f7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14004e21e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14004e23b
mov eax, 1
jmp 0x14004e23b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400510f8
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140034dc8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140051182
cmp byte [rbp - 0x21], r15b
je 0x14005117d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400511b8
call fcn.140046b9c
test eax, eax
jne 0x1400511a4
cmp byte [rbp - 0x21], r15b
je 0x14005119c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400511b8
cmp byte [rbp - 0x21], r15b
je 0x1400511b5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140035414
test eax, eax
jne 0x140051258
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140034dc8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400511f7
cmp byte [rbp - 0x21], r15b
je 0x14005122c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14005122c
call fcn.140046b9c
test eax, eax
jne 0x140051218
cmp byte [rbp - 0x21], r15b
je 0x140051211
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14005122c
cmp byte [rbp - 0x21], r15b
je 0x140051229
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140035414
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140051258
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14005125b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140051269
mov rcx, rdi
call fcn.140045c10
cmp byte [rbp + 0x3f], r15b
je 0x140051278
mov rcx, qword [rbp + 0x27]
call fcn.140045c10
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140053188
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, [0x140079540]
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 0x1400531df
cmp word [rdx], r13w
jne 0x1400531df
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400531e4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140053309
mov r11d, recv
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14005332a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14005321d
mov rdx, r9
mov word [rbx], cx
jmp 0x140053244
cmp r9, r8
jae 0x140053254
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 0x1400531fe
jmp 0x140053309
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 0x1400532fe
cmp dword [rsp + 0x80], esi
je 0x1400532fe
lea r8, [0x140079540]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400532d6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400532a6
mov word [rbx], r13w
jmp 0x140053306
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 0x1400532b3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140053306
cmp word [rsp + 0x70], r13w
jne 0x1400532e3
cmp rbx, r14
je 0x1400532a0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400543e4
cmp word [rsp + 0x70], r13w
je 0x140053309
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, [0x140079540]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140053303
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140053309
Function at 0x14005455c
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.1400543e4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400543e4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400546ac
cmp rax, 0xffffffffffffffff
je 0x1400546ac
xor edi, edi
test rbp, rbp
jle 0x140054657
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140045b98
mov rbx, rax
test rax, rax
jne 0x1400545e4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14005464d
mov edx, 0x8000
mov ecx, r14d
call fcn.140042650
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.140051d78
cmp eax, 0xffffffff
je 0x14005462d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400545f4
mov edx, r15d
mov ecx, r14d
call fcn.140042650
jmp 0x14005464d
cmp byte [rsi + 0x38], dil
je 0x140054644
cmp dword [rsi + 0x34], 5
jne 0x140054644
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], recv
cmp byte [rsi + 0x30], dil
je 0x14005464d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140045c10
jmp 0x1400546c0
jns 0x1400546c0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400543e4
cmp rax, 0xffffffffffffffff
jne 0x140054678
cmp byte [rsi + 0x30], dil
je 0x1400546c0
mov edi, dword [rsi + 0x2c]
jmp 0x1400546c0
mov ecx, r14d
call fcn.1400477cc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400546c0
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 0x1400546c0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400546b9
mov eax, dword [rsi + 0x2c]
jmp 0x1400546be
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400543e4
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 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004bd970]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x004bd980]
mov dword [rax], 1
mov rax, qword [0x004bd990]
mov dword [rax], 1
mov rax, qword [0x004bd960]
mov dword [rax], 1
mov rax, qword [0x004bd830]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x004bd950]
mov dword [0x004e400c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x4010b0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x004bd910]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x004bcc70]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067

Function at 0x40c350
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]