joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14100d058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14100d1df
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 0x14100d089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14100d06f
add dl, dl
jne 0x14100d096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14100d0f6
xor eax, eax
add dl, dl
jne 0x14100d0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14100d1ad
add dl, dl
jne 0x14100d0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14100d0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14100d0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14100d0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14100d0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14100d07e
mov eax, 1
add dl, dl
jne 0x14100d106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14100d113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14100d0fb
sub eax, ebx
mov ebx, 1
jne 0x14100d14c
mov ecx, 1
add dl, dl
jne 0x14100d12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14100d13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14100d123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14100d07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14100d168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14100d175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14100d15d
cmp eax, 0x7d00
jae 0x14100d19b
cmp eax, 0x500
jb 0x14100d196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14100d07e
cmp eax, 0x7f
ja 0x14100d19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14100d07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14100d1d2
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 0x14100d07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400023bc
Capabilities:
Parse pe header

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

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov qword [rbp + 0x18], rdx
mov rdi, rcx
lea rcx, [rbp - 0x10]
call fcn.14001f980
mov r13, qword [rbp - 8]
mov r14, qword [rbp + 8]
cmp r13, r14
je 0x14000c949
mov rbx, qword [rbp + 0x10]
mov rax, qword [sym.imp.user32.dll_MapVirtualKeyA]
nop
cmp byte [r13], 0
js 0x14000c8d4
inc r13
inc rbx
cmp r13, r14
jne 0x14000c8c0
jmp 0x14000c949
movzx ecx, bx
xor edx, edx
mov rsi, rax
call rax
mov r15d, eax
mov ecx, ebx
call fcn.14001fd10
mov r12d, eax
mov rcx, rdi
mov rdx, qword [rbp + 0x18]
call fcn.14000c690
call fcn.14001f8d0
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x58], 0xd
mov dword [rbp - 0x50], r12d
mov dword [rbp - 0x4c], r15d
mov dword [rbp - 0x48], eax
mov byte [rbp - 0x44], 1
mov dword [rbp - 0x40], 0
mov byte [rbp - 0x3c], 1
mov rax, qword [rbp + 0x18]
mov rcx, qword [rax + 0x18]
add rcx, 0x10
lea rdx, [rbp - 0x58]
call fcn.1400077e0
inc r13
inc rbx
cmp r13, r14
mov rax, rsi
jne 0x14000c8c0
mov rdx, qword [rbp]
test rdx, rdx
je 0x14000c961
mov rcx, qword [rbp - 0x10]
mov r8d, 1
call fcn.14001d4e0
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x58], 0xc
mov byte [rbp - 0x50], 1
mov rax, qword [rbp + 0x18]
mov rcx, qword [rax + 0x18]
add rcx, 0x10
lea rdx, [rbp - 0x58]
call fcn.1400077e0
nop
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x14000c9f0
Capabilities:
Log keystrokes

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov rsi, rdx
mov rdi, rcx
lea rcx, [rbp - 0x50]
call fcn.14001f980
mov r13, qword [rbp - 0x48]
mov r14, qword [rbp - 0x38]
cmp r13, r14
je 0x14000cab6
mov rbx, qword [rbp - 0x30]
mov rax, qword [sym.imp.user32.dll_MapVirtualKeyA]
nop
cmp byte [r13], 0
js 0x14000ca54
inc r13
inc rbx
cmp r13, r14
jne 0x14000ca40
jmp 0x14000cab6
movzx ecx, bx
xor edx, edx
call rax
mov r15d, eax
mov ecx, ebx
call fcn.14001fd10
mov r12d, eax
call fcn.14001f8d0
mov qword [rbp + 0x18], rdi
mov qword [rbp - 0x28], 0xd
mov dword [rbp - 0x20], r12d
mov dword [rbp - 0x1c], r15d
mov dword [rbp - 0x18], eax
mov byte [rbp - 0x14], 1
mov dword [rbp - 0x10], 0
mov byte [rbp - 0xc], 1
mov rcx, qword [rsi + 0x18]
add rcx, 0x10
lea rdx, [rbp - 0x28]
call fcn.1400077e0
inc r13
inc rbx
cmp r13, r14
mov rax, qword [sym.imp.user32.dll_MapVirtualKeyA]
jne 0x14000ca40
mov rdx, qword [rbp - 0x40]
test rdx, rdx
je 0x14000cace
mov rcx, qword [rbp - 0x50]
mov r8d, 1
call fcn.14001d4e0
mov r14, qword [rsi + 0x10]
lea rbx, [r14 + 0x10]
mov cl, 1
xor eax, eax
lock cmpxchg byte [r14 + 0x10], cl
jne 0x14000cb8f
mov r15, qword [0x143b47428]
mov rax, qword [r15]
shl rax, 1
test rax, rax
jne 0x14000cb9c
xor eax, eax
movzx ecx, byte [r14 + 0x11]
test cl, cl
jne 0x14000cbb0
mov dword [r14 + 0xdc], 0
test al, al
jne 0x14000cb29
mov rax, qword [r15]
shl rax, 1
test rax, rax
jne 0x14000cbee
xor eax, eax
xchg byte [rbx], al
cmp al, 2
je 0x14000cbe1
mov qword [rbp + 0x18], rdi
mov qword [rbp - 0x28], 0xe
mov dword [rbp - 0x20], 0
mov rcx, qword [rsi + 0x18]
add rcx, 0x10
lea rdx, [rbp - 0x28]
call fcn.1400077e0
mov qword [rbp + 0x18], rdi
mov qword [rbp - 0x28], 0xc
mov byte [rbp - 0x20], 0
mov rcx, qword [rsi + 0x18]
add rcx, 0x10
lea rdx, [rbp - 0x28]
call fcn.1400077e0
nop
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, rbx
call fcn.1400458c0
jmp 0x14000cae6
call fcn.1400457f0
xor al, 1
movzx ecx, byte [r14 + 0x11]
test cl, cl
je 0x14000cb0b
mov qword [rbp - 0x28], rbx
mov byte [rbp - 0x20], al
lea rax, [0x140048990]
mov qword [rsp + 0x20], rax
lea rcx, [0x140048758]
lea r9, fcn.14000ba30
lea r8, [rbp - 0x28]
mov edx, 0x2b
call fcn.140046470
ud2
mov rcx, rbx
call fcn.140045980
jmp 0x14000cb35
call fcn.1400457f0
test al, al
jne 0x14000cb29
mov byte [r14 + 0x11], 1
jmp 0x14000cb29
Function at 0x14001f8d0
Capabilities:
Log keystrokes via polling

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

Function at 0x14001f980
Capabilities:
Log keystrokes via polling

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov ecx, 0x100
mov edx, 1
call fcn.14001d500
test rax, rax
je 0x14001f9d7
mov rdi, rax
mov rcx, rax
call qword [sym.imp.user32.dll_GetKeyboardState]
mov rax, rdi
add rax, 0x100
mov qword [rsi], rdi
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], 0x100
mov qword [rsi + 0x18], rax
mov qword [rsi + 0x20], 0
mov rax, rsi
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 1
mov edx, 0x100
call fcn.140045f40
int3
Function at 0x140020080
Capabilities:
Log keystrokes

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rax, rcx
test r9b, r9b
je 0x1400200b1
or r8d, 0xe000
cmp dx, 0x10
je 0x1400200cd
movzx ecx, dx
cmp ecx, 0x11
je 0x140020106
cmp ecx, 0x12
jne 0x1400200eb
mov dx, 0xa5
jmp 0x140020157
cmp dx, 0x10
je 0x1400200cd
movzx ecx, dx
cmp ecx, 0x11
je 0x14002010c
cmp ecx, 0x12
jne 0x1400200eb
mov dx, 0xa4
jmp 0x140020157
mov rsi, rax
mov ecx, r8d
mov edx, 3
mov edi, r8d
call qword [sym.imp.user32.dll_MapVirtualKeyA]
mov r8d, edi
mov edx, eax
mov rax, rsi
jmp 0x140020157
cmp r8d, 0xe01c
jg 0x140020112
cmp r8d, 0x45
je 0x140020126
cmp r8d, 0x46
jne 0x140020157
mov dx, 0x91
jmp 0x140020157
mov dx, 0xa3
jmp 0x140020157
mov dx, 0xa2
jmp 0x140020157
cmp r8d, 0xe01d
je 0x140020149
cmp r8d, 0xe046
je 0x14002013d
jmp 0x140020157
cmp dx, 0x13
je 0x14002013d
movzx ecx, dx
mov r8d, 0x45
cmp ecx, 0xff
jne 0x140020157
mov r8d, 0xe059
mov dx, 0x13
jmp 0x140020157
mov r8d, 0xe01d
xor ecx, ecx
cmp dx, 0x13
je 0x140020164
mov word [rax + 4], dx
mov dword [rax + 8], r8d
mov ecx, 1
mov dword [rax], ecx
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x140020170
Capabilities:
Log keystrokes

Disassembly:
push rsi
sub rsp, 0x20
mov eax, edx
shr eax, 0x10
movzx esi, al
test edx, 0x1000000
jne 0x1400201a1
cmp cx, 0x10
je 0x1400201c0
movzx eax, cx
cmp eax, 0x11
je 0x1400201e9
cmp eax, 0x12
jne 0x1400201d1
mov cx, 0xa4
jmp 0x140020239
or esi, 0xe000
cmp cx, 0x10
je 0x1400201c0
movzx eax, cx
cmp eax, 0x11
je 0x1400201ef
cmp eax, 0x12
jne 0x1400201d1
mov cx, 0xa5
jmp 0x140020239
mov ecx, esi
mov edx, 3
call qword [sym.imp.user32.dll_MapVirtualKeyA]
mov ecx, eax
jmp 0x140020239
cmp esi, 0xe01c
jg 0x1400201f5
cmp esi, 0x45
je 0x140020207
cmp esi, 0x46
jne 0x140020239
mov cx, 0x91
jmp 0x140020239
mov cx, 0xa2
jmp 0x140020239
mov cx, 0xa3
jmp 0x140020239
cmp esi, 0xe01d
je 0x140020227
cmp esi, 0xe046
je 0x14002021c
jmp 0x140020239
cmp cx, 0x13
je 0x14002021c
movzx eax, cx
mov esi, 0x45
cmp eax, 0xff
jne 0x140020239
mov esi, 0xe059
mov cx, 0x13
jmp 0x140020239
mov esi, 0xe01d
cmp cx, 0x13
jne 0x140020239
mov edx, 0xa4
jmp 0x140020240
call fcn.14001fd10
mov edx, eax
mov eax, esi
add rsp, 0x20
pop rsi
ret
Function at 0x140021ad0
Capabilities:
Log keystrokes via input method manager

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x90
lea rbp, [rsp + 0x80]
mov qword [rbp + 8], 0xfffffffffffffffe
mov edi, r8d
mov rbx, rdx
mov rsi, rcx
xor r15d, r15d
mov rcx, rdx
mov edx, r8d
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.imm32.dll_ImmGetCompositionStringW]
test eax, eax
je 0x140021b59
js 0x140021bbc
mov r14d, eax
mov r15d, eax
movzx eax, byte [0x143b47541]
mov edx, 1
mov rcx, r15
call fcn.14001d4d0
test rax, rax
je 0x140021c77
mov r12, rax
mov rcx, rbx
mov edx, edi
mov r8, rax
mov r9d, r14d
call qword [sym.imp.imm32.dll_ImmGetCompositionStringW]
test eax, eax
js 0x140021bab
mov r8d, eax
jmp 0x140021b62
mov r12d, 1
xor r8d, r8d
lea rdx, [r12 + 1]
and rdx, 0xfffffffffffffffe
sub rdx, r12
sub r8, rdx
jae 0x140021b85
mov qword [rbp - 8], r12
mov qword [rbp], r15
mov edx, 2
xor r8d, r8d
jmp 0x140021bdc
mov eax, r8d
and eax, 1
or rax, rdx
je 0x140021bce
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test r15, r15
jne 0x140021c42
jmp 0x140021c64
mov r8d, 1
mov rcx, r12
mov rdx, r15
call fcn.14001d4e0
movabs rax, 0x8000000000000000
mov qword [rsi], rax
jmp 0x140021c64
mov qword [rbp], r15
mov qword [rbp - 8], r12
add rdx, r12
shr r8d, 1
lea rcx, [rbp - 0x60]
call fcn.140028980
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x60]
call fcn.140030780
mov rdx, qword [rbp - 0x40]
mov rcx, qword [rbp - 0x38]
mov rax, rdx
neg rax
jno 0x140021c1b
movups xmm0, xmmword [rbp - 0x30]
movaps xmmword [rbp - 0x20], xmm0
mov qword [rsi], rcx
movaps xmm0, xmmword [rbp - 0x20]
movups xmmword [rsi + 8], xmm0
mov r15, qword [rbp]
jmp 0x140021c39
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov r15, qword [rbp]
jae 0x140021c39
mov r8d, 1
call fcn.14001d4e0
mov r12, qword [rbp - 8]
test r15, r15
je 0x140021c64
mov r8d, 1
mov rcx, r12
mov rdx, r15
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
jmp fcn.14001d4e0
nop
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
mov ecx, 1
mov rdx, r15
call fcn.140045f40
int3

Function at 0x140021d50
Capabilities:
Register raw input devices

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

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

Function at 0x140026260
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x140026300
jmp 0x1400262ef
jae 0x1400263ce
cmp r8, 0x201
jae 0x140026300
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x140026366
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x14002633e
mov qword [rsp + 0x20], 2
mov r9d, 2
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.140045430
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x14002638f
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x14002643a
mov r8d, r13d
cmp r12, r8
jne 0x1400262e0
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14002646e
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x1400262ef
jmp 0x140026300
cmp r14, r8
jb 0x140026488
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.140028980
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x140026423
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.14001d4e0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x14002640e
jmp 0x140026423
lea rcx, [0x143b349f0]
lea r8, [0x143b369d8]
mov edx, 0x28
call fcn.140046180
jmp 0x14002649d
lea rax, [0x143b369c0]
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.140046570
ud2
Function at 0x140026cc0
Capabilities:
Create directory

Disassembly:
push rbp
mov rbp, rsp
cmp byte [rcx], 0
je 0x140026cd5
mov rcx, rdx
mov rdx, r8
pop rbp
jmp fcn.140026cf0
mov rcx, rdx
mov rdx, r8
pop rbp
jmp fcn.14002eb30
Function at 0x14002eb30
Capabilities:
Create directory

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x70
lea rbp, [rsp + 0x70]
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x18]
call fcn.140030230
mov rax, qword [rbp - 0x18]
mov rsi, qword [rbp - 0x10]
mov rcx, rax
neg rcx
jo 0x14002eb8b
mov rcx, qword [rbp - 8]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rsi
mov qword [rbp - 0x20], rcx
lea rcx, [rbp - 0x48]
lea rdx, [rbp - 0x30]
mov r8b, 1
call fcn.140031010
mov rdi, qword [rbp - 0x48]
mov rsi, qword [rbp - 0x40]
mov rax, rdi
neg rax
jno 0x14002eb96
mov rax, rsi
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
mov rcx, rsi
xor edx, edx
call qword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
je 0x14002ebc2
test rdi, rdi
je 0x14002ebee
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.14001d4e0
xor eax, eax
jmp 0x14002eb8e
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
test rdi, rdi
je 0x14002eb8e
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
mov rsi, rax
call fcn.14001d4e0
jmp 0x14002eb8b
xor eax, eax
jmp 0x14002eb8e

Function at 0x14002f090
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov rax, qword [rbp + 0x70]
mov qword [rbp - 8], r9
lea rcx, [rbp]
mov qword [rbp], rax
movups xmm0, xmmword [0x143b36428]
movaps xmmword [rbp + 0x10], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xor r8d, r8d
test r9b, 1
cmove rcx, r8
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14002f126
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp + 0x10]
cmp eax, 0x103
je 0x14002f153
test eax, eax
js 0x14002f132
mov rdx, qword [rbp + 0x18]
xor eax, eax
jmp 0x14002f149
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb8
pop rsi
pop rbp
ret
mov dword [rbp + 0x28], 0
mov byte [rbp + 0x2c], 0
lea rax, [0x143b36488]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x30]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x28]
lea rdx, [rbp - 0x38]
call fcn.1400285a0
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.140024040
mov ecx, 7
int 0x29
ud2
Function at 0x140030890
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rdi, r8
mov rsi, rcx
mov rcx, qword [rcx + 8]
mov rbx, qword [rsi + 0x10]
xor r14d, r14d
mov eax, 0
cmp rbx, 3
jb 0x1400308fc
movzx r8d, byte [rbx + rcx - 2]
mov r9d, r8d
and r9b, 0xf0
xor r14d, r14d
cmp r9b, 0xa0
jne 0x1400308fc
xor r14d, r14d
cmp byte [rbx + rcx - 3], 0xed
jne 0x1400308fc
movzx r14d, byte [rbx + rcx - 1]
and r8d, 0xf
and r14d, 0x3f
shl r8d, 0x10
shl r14d, 0xa
or r14d, r8d
mov al, 1
cmp rdi, 3
jb 0x1400309a8
cmp byte [rdx], 0xed
jne 0x1400309b1
movzx r12d, byte [rdx + 1]
mov r8d, r12d
and r8b, 0xf0
cmp r8b, 0xb0
setne r8b
xor al, 1
or al, r8b
jne 0x1400309b1
movzx r13d, byte [rdx + 2]
cmp rbx, 3
jb 0x140030941
add rbx, 0xfffffffffffffffd
mov qword [rsi + 0x10], rbx
and r13d, 0x3f
shl r12d, 6
lea r8, [rdi + 1]
mov rax, qword [rsi]
sub rax, rbx
cmp rax, r8
jb 0x140030a9b
add rdx, 3
mov r15, rdx
and r12d, 0x3c0
or r14d, r13d
or r14d, r12d
add r14d, 0x10000
mov rcx, rsi
mov edx, r14d
call fcn.14002c200
add rdi, 0xfffffffffffffffd
mov rax, qword [rsi]
mov rbx, qword [rsi + 0x10]
sub rax, rbx
cmp rax, rdi
jb 0x140030ac0
mov rcx, qword [rsi + 8]
add rcx, rbx
mov rdx, r15
jmp 0x140030a4e
test rdi, rdi
je 0x140030a40
lea rax, [rdx + rdi]
mov r9, rdx
jmp 0x1400309d8
add r9, 2
cmp r8, rax
cmovne r8, r9
nop word cs:[rax + rax]
mov r9, r8
cmp r8, rax
je 0x140030a40
lea r8, [r9 + 1]
movzx r10d, byte [r9]
test r10b, r10b
jns 0x1400309d0
cmp r10b, 0xe0
jb 0x1400309ba
cmp r10b, 0xed
jne 0x140030a0f
cmp r8, rax
je 0x140030a40
lea r8, [r9 + 2]
cmp r8, rax
je 0x140030a40
cmp byte [r9 + 1], 0x9f
ja 0x140030a3c
add r9, 3
mov r8, r9
jmp 0x1400309d0
add r9, 2
cmp r8, rax
cmove r9, r8
xor r8d, r8d
cmp r9, rax
setne r8b
add r8, r9
cmp r10b, 0xf0
jb 0x1400309d0
xor r9d, r9d
cmp r8, rax
setne r9b
add r8, r9
jmp 0x1400309d0
mov byte [rsi + 0x18], 0
mov rax, qword [rsi]
sub rax, rbx
cmp rax, rdi
jb 0x140030a6e
add rcx, rbx
mov r8, rdi
call fcn.140043e97
add rbx, rdi
mov qword [rsi + 0x10], rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov r14, rdx
mov rdx, rbx
mov r8, rdi
call fcn.140045430
mov rdx, r14
mov rcx, qword [rsi + 8]
mov rbx, qword [rsi + 0x10]
jmp 0x140030a4b
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov r15, rdx
mov rdx, rbx
call fcn.140045430
mov rdx, r15
jmp 0x14003095c
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
call fcn.140045430
mov rbx, qword [rsi + 0x10]
jmp 0x140030999
Function at 0x140043a68
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x140043ab2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140043ab2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140043ab2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140043ab2
cmp dword [rcx + 0x84], 0xe
jbe 0x140043ab2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140043ab4
xor al, al
add rsp, 0x28
ret
Function at 0x140008550
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
sub rsp, 0x98
mov rax, qword [0x140041010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rcx, qword [0x140042fb8]
cmp dword [rcx + 0x14365a0], 1
jne 0x140008720
mov r9d, 0xa
mov qword [r11 - 8], rdi
add rcx, 0x1435560
mov qword [r11 + 8], rbx
lea rdx, str.K_0_0_c_c
lea r8d, [r9 + 3]
call fcn.1400010b0
mov rdx, qword [0x140042fb8]
xor edi, edi
cmp dword [rdx + 0x14365a0], 1
jne 0x1400085f8
mov rbx, qword [rdx + 0x1436720]
cmp dword [rbx + 8], 1
je 0x1400085f8
add rdx, 0x1435560
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], dil
jne 0x1400085d2
mov rcx, qword [rbx + 0xe00028]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rbx + 0xe00020], edi
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 0x1f4
call fcn.14000b5a0
movsxd r8, eax
test eax, eax
je 0x140008710
mov rbx, qword [0x140042fb8]
mov edx, edi
mov rcx, qword [rbx + 0x1436720]
jle 0x140008659
mov r9d, dword [rcx + 0xe00018]
mov eax, dword [rcx + 0xe0001c]
cmp r9d, eax
je 0x140008659
inc eax
mov dword [rcx + 0xe0001c], eax
cmp eax, 0x700000
jb 0x140008652
mov dword [rcx + 0xe0001c], edi
inc edx
cmp edx, r8d
jl 0x140008632
xorps xmm0, xmm0
mov byte [r8 + rbx + 0xbb12e0], dil
movups xmmword [rsp + 0x60], xmm0
lea r11, [rbx + 0xbb12e6]
mov r10, rdi
movups xmmword [rsp + 0x70], xmm0
nop dword [rax + rax]
mov r8d, edi
mov r9d, edi
mov rax, rdi
nop dword [rax]
movzx edx, byte [rax + r11]
lea ecx, [rdx - 0x30]
cmp cl, 9
ja 0x1400086aa
movsx ecx, cl
lea edx, [r8 + r8*4]
lea r8d, [rcx + rdx*2]
jmp 0x1400086b5
cmp dl, 0x2d
jne 0x1400086c0
mov r9d, 1
inc rax
cmp rax, 0x10
jl 0x140008690
jmp 0x1400086c8
cmp dl, 0x2c
jne 0x1400086c8
inc rax
add r11, rax
mov eax, r8d
neg eax
cmp r9d, 1
movzx ecx, byte [r11]
cmovne eax, r8d
mov dword [rsp + r10*4 + 0x40], eax
lea eax, [rcx - 0x30]
cmp al, 9
jbe 0x1400086f0
sub cl, 0x2c
cmp cl, 1
ja 0x1400086fc
inc r10
cmp r10, 0x1000
jl 0x140008680
cmp dword [rsp + 0x6c], 0x128e0
jl 0x140008710
mov eax, dword [rsp + 0x70]
mov dword [rbx + 0x14366b0], eax
mov rbx, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400137d0
add rsp, 0x98
ret