joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a9be0
Capabilities:
Encode data using xor
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x18
test r9, r9
jne 0x1400a9c13
mov ebp, 0x61707865
mov r14d, 0x3320646e
mov r15d, 0x79622d32
mov r12d, 0x6b206574
jmp 0x1400a9c22
mov ebp, dword [r9]
mov r14d, dword [r9 + 4]
mov r15d, dword [r9 + 8]
mov r12d, dword [r9 + 0xc]
mov eax, dword [r8 + 4]
mov ecx, dword [r8 + 8]
mov r10d, dword [r8]
mov r13d, dword [r8 + 0x10]
mov r9d, dword [r8 + 0x18]
mov r11d, dword [rdx]
mov ebx, dword [rdx + 4]
mov edi, dword [rdx + 8]
mov esi, dword [rdx + 0xc]
mov dword [rsp], eax
mov eax, dword [r8 + 0xc]
mov dword [rsp + 0x68], ecx
mov ecx, dword [r8 + 0x14]
mov dword [rsp + 0x78], eax
mov eax, dword [r8 + 0x1c]
mov r8d, dword [rsp + 0x68]
mov dword [rsp + 0x70], eax
mov qword [rsp + 8], 0xa
nop word [rax + rax]
add r14d, dword [rsp]
add ebp, r10d
add r12d, dword [rsp + 0x78]
xor r11d, ebp
xor esi, r12d
rol r11d, 0x10
add r13d, r11d
rol esi, 0x10
xor ebx, r14d
add r15d, r8d
xor edi, r15d
rol ebx, 0x10
add ecx, ebx
rol edi, 0x10
add r9d, edi
mov eax, r13d
xor eax, r10d
rol eax, 0xc
add ebp, eax
xor r11d, ebp
rol r11d, 8
add r13d, r11d
mov r10d, r13d
xor r10d, eax
mov eax, ecx
xor eax, dword [rsp]
rol eax, 0xc
add r14d, eax
rol r10d, 7
xor ebx, r14d
rol ebx, 8
add ecx, ebx
mov edx, ecx
xor edx, eax
mov eax, r9d
xor eax, r8d
rol edx, 7
rol eax, 0xc
add ebp, edx
add r15d, eax
xor edi, r15d
rol edi, 8
add r9d, edi
mov dword [rsp + 0x68], r9d
mov r8d, r9d
mov r9d, dword [rsp + 0x70]
xor r8d, eax
add r9d, esi
rol r8d, 7
mov eax, r9d
add r14d, r8d
xor eax, dword [rsp + 0x78]
xor r11d, r14d
rol eax, 0xc
add r12d, eax
rol r11d, 0x10
xor esi, r12d
rol esi, 8
add r9d, esi
xor esi, ebp
rol esi, 0x10
mov dword [rsp + 0x70], r9d
xor r9d, eax
mov eax, dword [rsp + 0x68]
add eax, esi
rol r9d, 7
mov dword [rsp + 0x68], eax
xor eax, edx
mov edx, dword [rsp + 0x68]
rol eax, 0xc
add ebp, eax
xor esi, ebp
rol esi, 8
add edx, esi
mov dword [rsp + 0x68], edx
xor edx, eax
rol edx, 7
mov dword [rsp], edx
mov edx, dword [rsp + 0x70]
add edx, r11d
mov eax, edx
xor eax, r8d
add r12d, r10d
rol eax, 0xc
xor edi, r12d
add r14d, eax
rol edi, 0x10
add ecx, edi
add r15d, r9d
xor ebx, r15d
xor r11d, r14d
rol ebx, 0x10
add r13d, ebx
rol r11d, 8
add edx, r11d
mov r8d, edx
mov dword [rsp + 0x70], edx
xor r8d, eax
mov eax, r13d
xor eax, r9d
rol r8d, 7
mov r9d, dword [rsp + 0x68]
rol eax, 0xc
add r15d, eax
xor ebx, r15d
rol ebx, 8
add r13d, ebx
mov edx, r13d
xor edx, eax
mov eax, ecx
xor eax, r10d
rol edx, 7
rol eax, 0xc
add r12d, eax
mov dword [rsp + 0x78], edx
xor edi, r12d
rol edi, 8
add ecx, edi
mov r10d, ecx
xor r10d, eax
rol r10d, 7
sub qword [rsp + 8], 1
jne 0x1400a9c70
mov rcx, qword [rsp + 0x60]
xor eax, eax
mov dword [rcx], ebp
mov dword [rcx + 4], r14d
mov dword [rcx + 8], r15d
mov dword [rcx + 0xc], r12d
mov dword [rcx + 0x10], r11d
mov dword [rcx + 0x14], ebx
mov dword [rcx + 0x18], edi
mov dword [rcx + 0x1c], esi
add rsp, 0x18
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400a9f70
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
call fcn.1400a9ff0
mov eax, 0xffffffff
cmp rbx, rax
jbe 0x1400a9f94
call fcn.1400a9830
mov edx, ebx
mov rcx, rdi
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x1400a9fa7
call fcn.1400a9830
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400ab010
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov dword [rcx], 0x61707865
mov dword [rcx + 4], 0x3320646e
mov dword [rcx + 8], 0x79622d32
mov dword [rcx + 0xc], 0x6b206574
mov eax, dword [rdx]
mov dword [rcx + 0x10], eax
mov eax, dword [rdx + 4]
mov dword [rcx + 0x14], eax
mov eax, dword [rdx + 8]
mov dword [rcx + 0x18], eax
mov eax, dword [rdx + 0xc]
mov dword [rcx + 0x1c], eax
mov eax, dword [rdx + 0x10]
mov dword [rcx + 0x20], eax
mov eax, dword [rdx + 0x14]
mov dword [rcx + 0x24], eax
mov eax, dword [rdx + 0x18]
mov dword [rcx + 0x28], eax
mov eax, dword [rdx + 0x1c]
mov dword [rcx + 0x2c], eax
ret
Function at 0x1400ae410
Capabilities:
Hash data using sha512

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movabs rax, 0x6a09e667f3bcc908
mov rbx, rdx
mov qword [rcx], rax
mov rdi, rcx
movabs rax, 0xbb67ae8584caa73b
xor edx, edx
mov qword [rcx + 8], rax
mov r8d, 0x129
movabs rax, 0x3c6ef372fe94f82b
mov qword [rcx + 0x10], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rcx + 0x18], rax
movabs rax, 0x510e527fade682d1
mov qword [rcx + 0x20], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rcx + 0x28], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rcx + 0x30], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rcx + 0x38], rax
add rcx, 0x40
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rbx]
xor qword [rdi], rax
mov rax, qword [rbx + 8]
xor qword [rdi + 8], rax
mov rax, qword [rbx + 0x10]
xor qword [rdi + 0x10], rax
mov rax, qword [rbx + 0x18]
xor qword [rdi + 0x18], rax
mov rax, qword [rbx + 0x20]
xor qword [rdi + 0x20], rax
mov rax, qword [rbx + 0x28]
xor qword [rdi + 0x28], rax
mov rax, qword [rbx + 0x30]
xor qword [rdi + 0x30], rax
mov rax, qword [rbx + 0x38]
xor qword [rdi + 0x38], rax
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x1400b44c0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x10
mov rax, qword [0x1400cd008]
xor rax, rsp
mov qword [rsp + 8], rax
xor r8d, r8d
lea r15, [0x1400c22a0]
mov dword [rsp], r8d
mov r9, rcx
movzx edi, byte [rsp + 3]
xor eax, eax
movzx esi, byte [rsp + 2]
movzx ebx, r8b
movzx ebp, byte [rsp + 1]
movzx r14d, r8b
mov word [rsp + 4], r8w
movzx r11d, byte [rsp + 5]
nop dword [rax]
movzx edx, byte [r9 + rax]
movzx ecx, byte [rax + r15]
movzx r10d, byte [rax + r15 + 0xc0]
xor cl, dl
or cl, r14b
xor r10b, dl
movzx r14d, cl
or r10b, r8b
movzx ecx, byte [rax + r15 + 0x20]
movzx r8d, r10b
xor cl, dl
or cl, bpl
movzx ebp, cl
movzx ecx, byte [rax + r15 + 0x40]
xor cl, dl
or cl, sil
movzx esi, cl
movzx ecx, byte [rax + r15 + 0x60]
xor cl, dl
or cl, dil
movzx edi, cl
movzx ecx, byte [rax + r15 + 0x80]
xor cl, dl
or cl, bl
movzx ebx, cl
movzx ecx, byte [rax + r15 + 0xa0]
inc rax
xor cl, dl
or cl, r11b
movzx r11d, cl
cmp rax, 0x1f
jb 0x1400b4520
movzx ecx, byte [rax + r9]
movzx r9d, byte [rax + r15 + 0xc0]
and cl, 0x7f
movzx edx, byte [rax + r15 + 0xa0]
movzx r8d, cl
xor edx, r8d
movzx ecx, r10b
or edx, r11d
xor r9d, r8d
dec edx
or r9d, ecx
dec r9d
or r9d, edx
movzx edx, byte [rax + r15 + 0x80]
xor edx, r8d
or edx, ebx
dec edx
or r9d, edx
movzx edx, byte [rax + r15]
xor edx, r8d
or edx, r14d
dec edx
or r9d, edx
movzx edx, byte [rax + r15 + 0x20]
xor edx, r8d
or edx, ebp
dec edx
or r9d, edx
movzx edx, byte [rax + r15 + 0x40]
movzx eax, byte [rax + r15 + 0x60]
xor edx, r8d
xor eax, r8d
or edx, esi
or eax, edi
dec edx
dec eax
or r9d, edx
or eax, r9d
shr eax, 8
and eax, 1
mov rcx, qword [rsp + 8]
xor rcx, rsp
call fcn.1400a9b00
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x10
pop r15
pop r14
pop rdi
ret

Function at 0x1400b4f60
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov eax, dword [rdx]
mov dword [rcx + 0x14], eax
mov eax, dword [rdx + 4]
mov dword [rcx + 0x28], eax
mov eax, dword [rdx + 8]
mov dword [rcx + 0x3c], eax
mov eax, dword [rdx + 0xc]
mov dword [rcx + 0x30], eax
mov eax, dword [rdx + 0x10]
mov dword [rcx + 0x1c], eax
mov eax, dword [rdx + 0x14]
mov dword [rcx + 0x10], eax
mov eax, dword [rdx + 0x18]
mov dword [rcx + 0x24], eax
mov eax, dword [rdx + 0x1c]
mov dword [rcx + 0x38], eax
mov dword [rcx], 0x61707865
mov dword [rcx + 4], 0x3320646e
mov dword [rcx + 8], 0x79622d32
mov dword [rcx + 0xc], 0x6b206574
ret
Function at 0x1400b8070
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rcx
xor eax, eax
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], eax
mov rcx, qword [rsp + 0x10]
movzx edx, byte [rcx + rax]
mov rcx, qword [rsp + 0x18]
movzx r9d, byte [rcx + rax]
inc rax
mov ecx, dword [rsp + 8]
xor r9d, edx
or ecx, r9d
mov dword [rsp + 8], ecx
cmp rax, 0x10
jl 0x1400b8080
mov eax, dword [rsp + 8]
dec eax
shr eax, 8
and eax, 1
dec eax
ret
Function at 0x1800034b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rbp + 0x28], edx
mov dword [rbp + 0x30], r8d
mov eax, dword [rbp + 0x30]
shr eax, 0x18
lea rdx, [rbp]
add byte [rax + 0x30458b02], cl
shr eax, 0x10
lea rdx, [rbp]
inc rdx
mov byte [rdx], al
mov eax, dword [rbp + 0x30]
shr eax, 8
lea rdx, [rbp]
add rdx, 2
mov byte [rdx], al
mov eax, dword [rbp + 0x30]
lea rdx, [rbp]
add rdx, 3
mov byte [rdx], al
mov dword [rbp + 4], 0
mov dword [rbp + 8], 0
mov eax, dword [rbp + 4]
mov edx, dword [rbp + 0x28]
cmp eax, edx
jb 0x180003516
jmp 0x18000355a
mov eax, 1
add eax, dword [rbp + 4]
mov dword [rbp + 4], eax
jmp 0x1800034fd
mov eax, dword [rbp + 4]
add rax, qword [rbp + 0x20]
movzx eax, byte [rax]
movzx eax, al
lea rdx, [rbp]
mov ecx, dword [rbp + 8]
add rdx, rcx
movzx edx, byte [rdx]
movzx edx, dl
xor eax, edx
mov edx, dword [rbp + 4]
add rdx, qword [rbp + 0x20]
mov byte [rdx], al
mov eax, 1
add eax, dword [rbp + 8]
mov dword [rbp + 8], eax
mov eax, dword [rbp + 8]
cmp eax, 4
jne 0x180003509
mov dword [rbp + 8], 0
jmp 0x180003509
lea rsp, [rbp + 0x10]
pop rbp
ret

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

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x280], 0
je 0x180003f3d
call fcn.180057450
test eax, eax
jne 0x180003f63
xor al, al
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x1e8]
cmp rcx, 0xffffffffffffffff
je 0x180003f36
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x180003f36
mov al, 1
add rsp, 0x28
ret
Function at 0x180010830
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x18009ddc8]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rsi, qword [rcx + 0x18]
lea r8, [rsp + 0x20]
mov rdi, rcx
lea rdx, [rsp + 0x30]
mov rbx, 0xffffffffffffffff
mov rbp, qword [rsi + 0x1f0]
mov rcx, rbp
mov dword [rsp + 0x20], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1800108ab
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x80
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
mov r8, rbp
mov rdx, rsi
mov rcx, rdi
call fcn.180003e10
mov rcx, rdi
cmp rbx, 0xffffffffffffffff
jne 0x1800108d3
lea rdx, [0x18007e080]
call fcn.180033740
lea eax, [rbx + 0x1f]
jmp 0x18001094f
lea rdx, [0x18007e0a8]
call fcn.1800338b0
mov edx, 1
mov byte [rsi + 0x3da], 0
mov rcx, rbx
mov qword [rsi + 0x1f0], rbx
call fcn.18002ea80
mov byte [rsi + 0x3ed], 1
cmp qword [rdi + 0x288], 0
je 0x18001094d
mov dl, 1
mov rcx, rdi
call fcn.18002ad50
mov rcx, qword [rdi + 0x290]
mov r8d, 1
mov rdx, rbx
call qword [rdi + 0x288]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.18002ad50
test ebx, ebx
je 0x18001094d
mov rdx, rsi
mov rcx, rdi
call fcn.180010e50
mov eax, Ordinal_46
jmp 0x18001094f
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.180058650
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1800123e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1b0]
mov rbx, rcx
mov rdx, qword [rcx + 0x18]
cmp dword [rax + 0x10], 0
je 0x180012416
mov dword [rdx + 0x7d0], 0xd
mov r8d, reloc.WS2_32.dll_listen
mov dl, 1
add rsp, 0x20
pop rbx
jmp fcn.180012500
cmp byte [rcx + 0xb0e], 0
je 0x18001242b
xor edx, edx
add rsp, 0x20
pop rbx
jmp fcn.180012fa0
cmp byte [rcx + 0xb11], 0
je 0x1800124ac
mov r9, qword [rdx + 0x790]
test r9, r9
jne 0x18001246e
mov r9, qword [rcx + 0x7b8]
test r9, r9
jne 0x180012465
cmp byte [rbx + 0x12e1], 0
lea rcx, str.NLST
lea r9, str.LIST
cmovne r9, rcx
lea r8, str.PRET__s
jmp 0x180012485
cmp byte [rcx + 0xb1d], 0
lea r8, str.PRET_STOR__s
jne 0x180012485
lea r8, str.PRET_RETR__s
add rdx, 0x700
mov rcx, rbx
call fcn.18002f5b0
test eax, eax
jne 0x1800124b6
mov rcx, qword [rbx + 0x18]
mov dword [rcx + 0x7d0], 0x1d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.180012ef0
add rsp, 0x20
pop rbx
ret

Function at 0x1800127f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1b0]
add rdx, 0x700
mov rbx, rcx
cmp dword [rax + 0x10], 0
je 0x18001283e
cmp qword [rdx + 0x90], 0
je 0x18001283e
xor r9d, r9d
lea r8, str.REST__d
call fcn.18002f5b0
test eax, eax
jne 0x180012848
mov rcx, qword [rbx + 0x18]
mov dword [rcx + 0x7d0], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1800123e0
add rsp, 0x20
pop rbx
ret
Function at 0x180074a80
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180074aa0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1800630d0
or eax, 0xffffffff
jmp 0x180074aa2
xor eax, eax
add rsp, 0x28
ret

Function at 0x141e11058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x141e111df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141e11089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141e1106f
add dl, dl
jne 0x141e11096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141e110f6
xor eax, eax
add dl, dl
jne 0x141e110a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141e111ad
add dl, dl
jne 0x141e110b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141e110c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141e110d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141e110dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141e110ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141e1107e
mov eax, 1
add dl, dl
jne 0x141e11106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141e11113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141e110fb
sub eax, ebx
mov ebx, 1
jne 0x141e1114c
mov ecx, 1
add dl, dl
jne 0x141e1112e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141e1113b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141e11123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141e1107e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141e11168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141e11175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141e1115d
cmp eax, 0x7d00
jae 0x141e1119b
cmp eax, 0x500
jb 0x141e11196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141e1107e
cmp eax, 0x7f
ja 0x141e1119e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141e1107e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141e111d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x141e1107e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140599058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1405991df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140599089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14059906f
add dl, dl
jne 0x140599096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405990f6
xor eax, eax
add dl, dl
jne 0x1405990a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405991ad
add dl, dl
jne 0x1405990b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405990c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405990d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405990dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1405990ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14059907e
mov eax, 1
add dl, dl
jne 0x140599106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140599113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405990fb
sub eax, ebx
mov ebx, 1
jne 0x14059914c
mov ecx, 1
add dl, dl
jne 0x14059912e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14059913b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140599123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14059907e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140599168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140599175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14059915d
cmp eax, 0x7d00
jae 0x14059919b
cmp eax, 0x500
jb 0x140599196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14059907e
cmp eax, 0x7f
ja 0x14059919e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14059907e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1405991d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14059907e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400015a0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
xor eax, eax
lea rsi, [0x140005810]
lea rdi, [0x140005888]
mov rbx, rsi
mov qword [0x140005810], rax
mov qword [0x140005818], rax
mov qword [0x140005820], rax
mov qword [0x140005828], rax
mov qword [0x140005830], rax
mov qword [0x140005838], rax
mov qword [0x140005840], rax
mov dword [0x140005848], eax
nop dword [rax]
mov edx, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
add rbx, 8
cmp rbx, rdi
mov qword [rbx - 8], rax
jl 0x140001600
call fcn.140001170
call fcn.140001340
test eax, eax
jne 0x140001660
nop dword [rax + rax]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
or edx, 0xffffffff
mov rcx, rax
mov qword [0x1400058b0], rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140001660
call fcn.140001340
test eax, eax
je 0x140001630
movsxd r11, dword [0x1400058a4]
lea rbx, [0x1400051ac]
mov r10d, 6
mov rdi, qword [rsi + r11*8]
inc r11d
lea rsi, [0x14000505e]
mov rdx, rdi
sub rbx, rdi
nop dword [rax + rax]
movzx eax, byte [rbx + rdx]
mov r8, rsi
mov r9d, 4
mov byte [rdx], al
nop
movzx eax, byte [r8 + 1]
sub r8, 4
xor byte [rdx], al
movzx eax, byte [rdx]
xor al, byte [r8 + 4]
mov byte [rdx], al
movzx ecx, byte [r8 + 3]
xor cl, al
mov byte [rdx], cl
movzx eax, byte [r8 + 2]
xor al, cl
sub r9, 1
mov byte [rdx], al
jne 0x1400016a0
inc rdx
sub r10, 1
jne 0x140001690
xor ecx, ecx
mov byte [rdi + 6], r10b
cmp r11d, 0xf
cmovge r11d, ecx
lea rax, [0x140001740]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [0x1400058a4], r11d
mov qword [rsp + 0x28], rax
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
test eax, eax
jne 0x14000172a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x40
pop rdi
ret
Function at 0x140002067
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140005020]
jne 0x140001c6a
rol rcx, 0x10
test cx, 0xffff
jne 0x140001c66
repz ret
ror rcx, 0x10
jmp 0x140001fc0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140005300]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1400053f8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140002045
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140005300]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140002067
mov rax, qword [rsp + 0x88]
mov qword [0x1400053f8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140005398], rax
mov rax, qword [0x1400053f8]
mov qword [0x140005270], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140005380], rax
mov dword [0x140005260], 0xc0000409
mov dword [0x140005264], 1
mov rax, qword [0x140005020]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140005028]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400052f8], eax
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140003258]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400052f8], 0
jne 0x1400020ee
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x14002915c
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.14001c754
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c754
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400292ac
cmp rax, 0xffffffffffffffff
je 0x1400292ac
xor edi, edi
test rbp, rbp
jle 0x140029257
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f068
mov rbx, rax
test rax, rax
jne 0x1400291e4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002924d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a088
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.14001d430
cmp eax, 0xffffffff
je 0x14002922d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400291f4
mov edx, r15d
mov ecx, r14d
call fcn.14001a088
jmp 0x14002924d
cmp byte [rsi + 0x38], dil
je 0x140029244
cmp dword [rsi + 0x34], 5
jne 0x140029244
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002924d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001ae1c
jmp 0x1400292c0
jns 0x1400292c0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c754
cmp rax, 0xffffffffffffffff
jne 0x140029278
cmp byte [rsi + 0x30], dil
je 0x1400292c0
mov edi, dword [rsi + 0x2c]
jmp 0x1400292c0
mov ecx, r14d
call fcn.140018540
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400292c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400292c0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400292b9
mov eax, dword [rsi + 0x2c]
jmp 0x1400292be
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c754
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 0x1400a053c
Capabilities:
Parse pe header

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