joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c810
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push r14
sub rsp, 0x38
xor ebp, ebp
movsxd rbx, r8d
mov r14, rdx
mov rsi, rcx
mov dword [rsp + 0x60], ebp
cmp dword [rcx + 0x24], ebp
jne 0x14000c90a
cmp dword [rcx + 0x1c], 1
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x30], r15
jne 0x14000c86b
mov eax, dword [rcx + 0x14]
lea r9d, [rbp + 1]
mov rcx, qword [rcx]
lea r8, [rsp + 0x7c]
neg eax
cdqe
mov edx, eax
mov qword [rsp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [rsi + 0x10]
mov dword [rsi + 0x14], eax
mov dword [rsi + 0x1c], ebp
mov ecx, dword [rsi + 0x14]
cmp ecx, ebx
jle 0x14000c8cc
mov eax, dword [rsi + 0x10]
mov edx, ebx
sub eax, ecx
movsxd rcx, eax
add rcx, qword [rsi + 8]
sub edx, 1
je 0x14000c8c4
sub edx, 1
je 0x14000c8bb
cmp edx, 2
je 0x14000c8b4
mov r8, rbx
mov rdx, r14
call fcn.14000ca30
sub dword [rsi + 0x14], ebx
mov rax, rbx
mov rdi, qword [rsp + 0x68]
mov r15, qword [rsp + 0x30]
add rsp, 0x38
pop r14
pop rsi
pop rbp
pop rbx
ret
mov eax, dword [r14]
mov dword [rcx], eax
jmp 0x14000c89a
movzx eax, word [r14]
mov word [rcx], ax
jmp 0x14000c89a
movzx eax, byte [r14]
mov byte [rcx], al
jmp 0x14000c89a
mov rcx, rsi
call fcn.140002340
mov eax, dword [rsi + 0x10]
mov rdx, r14
cmp ebx, eax
jl 0x14000c8fb
mov rcx, qword [rsi]
lea r9, [rsp + 0x60]
mov r8d, ebx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd rax, dword [rsp + 0x60]
jmp 0x14000c8a0
sub eax, dword [rsi + 0x14]
mov r8, rbx
movsxd rcx, eax
add rcx, qword [rsi + 8]
jmp 0x14000c895
movsxd rax, ebp
add rsp, 0x38
pop r14
pop rsi
pop rbp
pop rbx
ret
Function at 0x140011d5c
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
sub rsp, 0x40
mov r14, rcx
xor ebx, ebx
call qword [sym.imp.USER32.dll_GetFocus]
lea rdx, str.PB_WindowID
mov rcx, r14
mov rdi, rax
xor ebp, ebp
call qword [sym.imp.USER32.dll_GetPropW]
lea r12d, [rbx + 9]
mov rsi, rax
test rax, rax
je 0x140011e0d
lea rdx, [rsp + 0x68]
mov rcx, r14
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x140011e0d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x68], eax
jne 0x140011e0d
mov rcx, qword [0x14004ead8]
lea rdx, [rsi - 1]
call fcn.14000c320
mov rbx, rax
lea ebp, [r12 - 8]
cmp dword [rax + 0x20], 0
jle 0x140011e0d
mov rcx, qword [rax + 8]
xor edx, edx
movsxd rax, dword [rax + 0x20]
add rcx, 4
cmp word [rcx - 2], r12w
jne 0x140011dfd
mov r8d, 0xfa01
cmp word [rcx], r8w
je 0x140011e0b
inc rdx
add rcx, 6
cmp rdx, rax
jge 0x140011e0d
jmp 0x140011dea
xor ebp, ebp
mov sil, 0x80
test rdi, rdi
je 0x140011edd
mov ecx, r12d
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
je 0x140011edd
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x140011edd
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x140011edd
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x140011edd
mov r8d, 0x10
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetClassNameW]
test ebp, ebp
jne 0x140011edd
lea r8d, [rbp + 5]
lea rdx, str.RichE
lea rcx, [rsp + 0x20]
call fcn.14001452c
test eax, eax
je 0x140011ead
lea r8d, [rbp + 4]
lea rdx, str.RICHE
lea rcx, [rsp + 0x20]
call fcn.14001452c
test eax, eax
jne 0x140011ec8
xor r9d, r9d
xor r8d, r8d
mov edx, 0x44e
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xb
jae 0x140011f44
lea rdx, str.Scintilla
lea rcx, [rsp + 0x20]
call fcn.14000d0a8
test eax, eax
je 0x140011f44
test r14, r14
je 0x140011f1f
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x140011f12
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x140011f12
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
je 0x140011f1f
mov edx, 1
mov rcx, r14
call fcn.1400120d4
test rdi, rdi
je 0x140011f39
lea rdx, str.PB_Hotkey
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetPropW]
test rax, rax
jne 0x140011f44
test rbx, rbx
je 0x140011f44
mov rax, qword [rbx + 0x10]
jmp 0x140011f46
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r12
pop rdi
ret
Function at 0x1400134e4
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.14001dc20
sub rsp, rax
mov rax, qword [0x14004cee0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001bd50
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140013533
mov rax, rbp
jmp 0x14001363b
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 + 0x4f1a0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001d6a4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x4f1a0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140013637
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 0x140013637
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001d6a4
test rax, rax
js 0x140013637
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140013637
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140013629
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140013629
cmp byte [rcx], 0xd
jne 0x14001360f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001361e
cmp byte [rcx + 1], 0xa
jne 0x14001361e
inc rcx
jmp 0x14001361e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x4cef0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400135f1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001363b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14001bfb0
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 0x1400161bc
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, r8d
mov rbx, rdx
mov rbp, rcx
test r9d, r9d
je 0x140016233
mov rcx, qword [0x14004d6a8]
add esi, 2
xor edx, edx
lea eax, [rsi + 1]
movsxd r8, eax
add r8, r8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x140016233
mov rcx, rax
test rbx, rbx
je 0x140016224
mov rdx, rbx
call fcn.14000bdd4
lea rdx, [0x140042298]
mov rcx, rdi
call fcn.14000bda8
jmp 0x140016230
lea rdx, [0x140042298]
call fcn.14000bdd4
mov rbx, rdi
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
mov r8d, esi
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
jne 0x1400162bd
mov eax, dword [0x14004cbe0]
cmp eax, 2
je 0x140016288
cmp eax, 0x18
je 0x14001627e
and qword [rsp + 0x20], 0
lea r8d, [rsi + rsi]
lea r9, [rsp + 0x58]
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1400162bd
mov rcx, rbx
call fcn.14001a0d0
jmp 0x140016290
mov rcx, rbx
call fcn.14000e1a0
mov rcx, rax
mov rbx, rax
call fcn.140025200
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
mov r8, rax
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call fcn.14000e280
test rdi, rdi
je 0x1400162d4
mov rcx, qword [0x14004d6a8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14001d2d8
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, [0x14004f1a0]
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 0x14001d32f
cmp word [rdx], r13w
jne 0x14001d32f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001d334
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001d459
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001d47a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001d36d
mov rdx, r9
mov word [rbx], cx
jmp 0x14001d394
cmp r9, r8
jae 0x14001d3a4
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 0x14001d34e
jmp 0x14001d459
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 0x14001d44e
cmp dword [rsp + 0x80], esi
je 0x14001d44e
lea r8, [0x14004f1a0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001d426
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001d3f6
mov word [rbx], r13w
jmp 0x14001d456
mov ecx, 0xd
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 0x14001d403
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001d456
cmp word [rsp + 0x70], r13w
jne 0x14001d433
cmp rbx, r14
je 0x14001d3f0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001d600
cmp word [rsp + 0x70], r13w
je 0x14001d459
mov ecx, 0xd
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, [0x14004f1a0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001d453
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001d459
Function at 0x14002a380
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.140017554
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 0x14002a421
cmp ebx, dword [rsp + 0x30]
je 0x14002a41a
test esi, esi
je 0x14002a41a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14002a3f5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14002a402
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14002a3df
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14002a406
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14002a423
mov eax, 1
jmp 0x14002a423
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14002abd4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002ad1c
Function at 0x140037690
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 0x1400376c0
xor eax, eax
jmp 0x140037783
mov rbp, rbx
cmp word [rax], si
je 0x1400376e5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400376cc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400376c8
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.140025f64
movsxd r14, eax
test eax, eax
jne 0x140037723
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400376b9
mov rcx, r14
call fcn.140016bc4
mov rdi, rax
test rax, rax
jne 0x14003773c
xor ecx, ecx
call fcn.140016b88
jmp 0x140037718
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.140025f64
test eax, eax
jne 0x14003776d
mov rcx, rdi
call fcn.140016b88
jmp 0x140037777
xor ecx, ecx
call fcn.140016b88
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 0x140055dec
Capabilities:
Self delete

Disassembly:
sub rsp, 0x28
push qword [0x14004d7a0]
pop rcx
call fcn.140006848
and rax, rax
je 0x140055f56
push qword [0x14004ea60]
sub rsp, 8
push qword [0x14004ea60]
movabs rcx, str._c_del__
sub rsp, 0x28
call fcn.14000b500
add rsp, 0x28
mov rcx, qword [0x14004d780]
sub rsp, 0x28
call fcn.14000b500
add rsp, 0x28
movabs rcx, str.ffmpeg0.bmp_
sub rsp, 0x28
call fcn.14000b500
add rsp, 0x28
add qword [0x14004ea60], 2
movabs rax, str.cmd.exe
push rax
mov rdx, qword [0x14004ea58]
add qword [rsp + 8], rdx
pop rcx
pop rdx
sub rsp, 0x20
call fcn.140058415
add rsp, 0x28
pop qword [0x14004ea60]
push qword [0x14004ea60]
sub rsp, 8
push qword [0x14004ea60]
movabs rcx, 0x14004a178
sub rsp, 0x28
call fcn.14000b500
add rsp, 0x28
mov rcx, qword [0x14004d780]
sub rsp, 0x28
call fcn.14000b500
add rsp, 0x28
movabs rcx, str.audio.pcm_
sub rsp, 0x28
call fcn.14000b500
add rsp, 0x28
mov rdx, qword [0x14004ea58]
add qword [rsp], rdx
pop rcx
sub rsp, 0x20
call fcn.140007b54
add rsp, 0x28
pop qword [0x14004ea60]
push qword [0x14004ea60]
sub rsp, 8
mov rcx, qword [0x14004d780]
push qword [0x14004ea60]
sub rsp, 0x28
call fcn.14000b500
add rsp, 0x28
movabs rcx, str.audio.pcm
sub rsp, 0x28
call fcn.14000b500
add rsp, 0x28
mov rdx, qword [0x14004ea58]
add qword [rsp], rdx
pop rcx
sub rsp, 0x20
call fcn.140007b54
add rsp, 0x28
pop qword [0x14004ea60]
xor rax, rax
add rsp, 0x28
ret
Function at 0x401d28
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov eax, 0
mov byte [rbp - 1], al
movzx eax, byte [rbp - 1]
cmp eax, 4
jge 0x401dcc
jmp 0x401d52
movzx eax, byte [rbp - 1]
add eax, 1
mov byte [rbp - 1], al
jmp 0x401d34
mov eax, 0
mov byte [rbp - 2], al
movzx eax, byte [rbp - 2]
cmp eax, 4
jge 0x401dc7
jmp 0x401d78
movzx eax, byte [rbp - 2]
add eax, 1
mov byte [rbp - 2], al
jmp 0x401d5a
mov rax, qword [rbp + 0x10]
movzx ecx, byte [rbp - 2]
movsxd rcx, ecx
shl rcx, 2
add rax, rcx
movzx ecx, byte [rbp - 1]
movsxd rcx, ecx
add rax, rcx
mov rcx, qword [rbp + 0x10]
movzx edx, byte [rbp - 2]
movsxd rdx, edx
shl rdx, 2
add rcx, rdx
movzx edx, byte [rbp - 1]
movsxd rdx, edx
add rcx, rdx
movzx edx, byte [rcx]
movsxd rdx, edx
lea rcx, str.cw
add rcx, rdx
movzx edx, byte [rcx]
mov byte [rax], dl
jmp 0x401d6c
jmp 0x401d46
leave
ret

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov eax, 0
mov byte [rbp - 1], al
movzx eax, byte [rbp - 1]
cmp eax, 4
jge 0x40314a
jmp 0x4030d0
movzx eax, byte [rbp - 1]
add eax, 1
mov byte [rbp - 1], al
jmp 0x4030b2
mov eax, 0
mov byte [rbp - 2], al
movzx eax, byte [rbp - 2]
cmp eax, 4
jge 0x403145
jmp 0x4030f6
movzx eax, byte [rbp - 2]
add eax, 1
mov byte [rbp - 2], al
jmp 0x4030d8
mov rax, qword [rbp + 0x10]
movzx ecx, byte [rbp - 2]
movsxd rcx, ecx
shl rcx, 2
add rax, rcx
movzx ecx, byte [rbp - 1]
movsxd rcx, ecx
add rax, rcx
mov rcx, qword [rbp + 0x10]
movzx edx, byte [rbp - 2]
movsxd rdx, edx
shl rdx, 2
add rcx, rdx
movzx edx, byte [rbp - 1]
movsxd rdx, edx
add rcx, rdx
movzx edx, byte [rcx]
movsxd rdx, edx
lea rcx, [0x00410023]
add rcx, rdx
movzx edx, byte [rcx]
mov byte [rax], dl
jmp 0x4030ea
jmp 0x4030c4
leave
ret

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov eax, 0
mov byte [rbp - 1], al
movzx eax, byte [rbp - 1]
cmp eax, 4
jge 0x40314a
jmp 0x4030d0
movzx eax, byte [rbp - 1]
add eax, 1
mov byte [rbp - 1], al
jmp 0x4030b2
mov eax, 0
mov byte [rbp - 2], al
movzx eax, byte [rbp - 2]
cmp eax, 4
jge 0x403145
jmp 0x4030f6
movzx eax, byte [rbp - 2]
add eax, 1
mov byte [rbp - 2], al
jmp 0x4030d8
mov rax, qword [rbp + 0x10]
movzx ecx, byte [rbp - 2]
movsxd rcx, ecx
shl rcx, 2
add rax, rcx
movzx ecx, byte [rbp - 1]
movsxd rcx, ecx
add rax, rcx
mov rcx, qword [rbp + 0x10]
movzx edx, byte [rbp - 2]
movsxd rdx, edx
shl rdx, 2
add rcx, rdx
movzx edx, byte [rbp - 1]
movsxd rdx, edx
add rcx, rdx
movzx edx, byte [rcx]
movsxd rdx, edx
lea rcx, [0x00410023]
add rcx, rdx
movzx edx, byte [rcx]
mov byte [rax], dl
jmp 0x4030ea
jmp 0x4030c4
leave
ret
Function at 0x140003110
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140003132
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x1400031ac
mov rdi, r14
mov rcx, rbx
call fcn.1400043e0
test rax, rax
jle 0x140003184
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.140008530
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14000319c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1400031a4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140003146
sub r14, rdi
jmp 0x14000328f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x1400031c3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400031c5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400031f7
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140008530
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14000328c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140003232
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x14000326d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14000f0a4
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14000328c
cmp rbp, rax
ja 0x140003240
test rbp, rbp
je 0x14000328c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14000f0a4
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret

Function at 0x14000740c
Capabilities:
Parse pe header

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000cc87
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000cc87
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000cc87
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000cc87
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000cc87
cmp dword [rcx + 0x84], 0xe
jbe 0x14000cc87
cmp dword [rcx + 0xf8], 0
je 0x14000cc87
mov ecx, ebx
call fcn.14000cd38
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000cb14
nop
cmp dword [rbp + 0x20], 0
je 0x14000ccd5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000cce0
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000cc18

Function at 0x140015fe0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140015ff6
mov al, 1
jmp 0x140016056
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140016007
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140016054
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001e218
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140016054
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140016054
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140016054
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140016056
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140018f8c
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.140006cb0
sub rsp, rax
mov rax, qword [0x140037080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140015ec0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140018fdb
mov rax, rbp
jmp 0x1400190e3
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 + 0x39150]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140019ed8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x39150]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400190df
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 0x1400190df
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140019ed8
test rax, rax
js 0x1400190df
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400190df
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400190d1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400190d1
cmp byte [rcx], 0xd
jne 0x1400190b7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400190c6
cmp byte [rcx + 1], 0xa
jne 0x1400190c6
inc rcx
jmp 0x1400190c6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x37470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140019099
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400190e3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140006650
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret