joyce8/EMBER2024-capa huggingface dataset:
Function at 0x483d0c
Capabilities:
Get common file path
Get file system object information
Get startup folder

Disassembly:
push rbx
mov rax, rsp
sub rsp, 0x2f0
mov edx, ecx
lea r8, [rax + 0x18]
xor ecx, ecx
mov qword [rax + 0x18], 0
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov rcx, qword [rsp + 0x308]
test rcx, rcx
je 0x483d7d
lea r8, [rsp + 0x30]
mov r9d, 0x2b8
mov edx, 0x80
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x20], 0x4008
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov rcx, qword [rsp + 0x308]
mov rbx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test rbx, rbx
je 0x483d7d
mov eax, dword [rsp + 0x38]
jmp 0x483d7f
xor eax, eax
add rsp, 0x2f0
pop rbx
ret

Function at 0x483d88
Capabilities:
Get file system object information

Disassembly:
push rbx
sub rsp, 0x2f0
mov rbx, r8
lea r8, [rsp + 0x30]
bts edx, 7
mov r9d, 0x2b8
mov dword [rsp + 0x20], 0x4010
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [rsp + 0x38]
mov dword [rbx], ecx
add rsp, 0x2f0
pop rbx
ret

Function at 0x483dc0
Capabilities:
Get file system object information

Disassembly:
sub rsp, 0x2f8
neg cl
lea r8, [rsp + 0x30]
lea rcx, [0x00499488]
sbb eax, eax
mov r9d, 0x2b8
mov edx, 0x90
and eax, 0xffffff01
add eax, 0x100
or eax, 0x4010
mov dword [rsp + 0x20], eax
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
add rsp, 0x2f8
ret

Function at 0x488444
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
mov r11w, ax
shr r11d, 0xf
test r11b, 1
jne 0x488477
cmp dword [rbx + 0x54], 1
ja 0x488477
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x40]
jmp 0x48847f
mov rcx, rbx
call fcn.004880a0
add rsp, 0x20
pop rbx
ret
Function at 0x4889b8
Capabilities:
Get file system object information

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x378
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov rdi, r9
mov ebp, r8d
mov r12d, edx
mov rsi, rcx
lea rcx, [rsp + 0x50]
call fcn.00402830
nop
cmp byte [rdi], 0
je 0x488a3b
mov rdx, qword [rdi + 8]
lea rcx, [rsp + 0x80]
call fcn.00457d90
nop
mov r8, rax
mov edx, 0xdb0
lea rcx, [rsp + 0x70]
call fcn.00457e80
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.00402aac
nop
mov rcx, qword [rsp + 0x70]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x80]
call sub.msvcrt.dll_free
lea rcx, [rdi + 0x18]
call fcn.00402e08
lea ebx, [rax + 1]
mov r8d, ebx
lea rdx, [rsp + 0x40]
lea rcx, [rdi + 0x18]
call fcn.00411958
nop
mov rax, qword [rdi + 0x18]
lea rdx, [rax + rbx*2]
lea rcx, [rsp + 0x60]
call fcn.004028cc
nop
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.004888e4
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.004888e4
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.004029bc
nop
lea rcx, [rsp + 0x30]
call fcn.00402c34
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.00402cc0
lea rcx, [rsp + 0x30]
call fcn.00402c34
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.00402cc0
lea rcx, [rsp + 0x30]
call fcn.00402c34
cmp byte [rdi + 1], 0
je 0x488b1e
mov edx, 0x3f4
lea rcx, [rsp + 0x30]
call fcn.0045c5f4
lea rdx, [0x0049e250]
lea rcx, [rsp + 0x30]
call fcn.00402d04
lea rcx, [rdi + 0x10]
xor r8d, r8d
lea rdx, [rsp + 0x80]
call fcn.0040be14
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call fcn.00402d04
mov edx, r12d
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rdx, qword [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov dword [rsp + 0x20], 0x110
mov r9d, 0x2b8
lea r8, [rsp + 0xb0]
mov edx, 0x80
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
je 0x488b89
mov edx, ebp
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
xor r9d, r9d
mov r8, qword [rsp + 0xb0]
mov edx, 0x170
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
nop
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x60]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x50]
call sub.msvcrt.dll_free
add rsp, 0x378
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x48d234
Capabilities:
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x58
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
xor ebp, ebp
cmp dword [rdx + 8], ebp
jne 0x48d25e
lea eax, [rbp - 1]
jmp 0x48d345
cmp ebx, 0xffffffff
cmove ebx, ebp
lea rcx, [rsp + 0x38]
call fcn.00402830
nop
mov edx, 0x110
cmp dword [rsp + 0x44], edx
jae 0x48d284
lea rcx, [rsp + 0x38]
call fcn.004024bc
mov r8d, 0x10e
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, qword [rsp + 0x38]
mov word [rcx + 0x21c], bp
mov edx, ebp
cmp word [rcx], bp
je 0x48d2b6
inc edx
add rcx, 2
cmp word [rcx], bp
jne 0x48d2ab
mov dword [rsp + 0x40], edx
cmp eax, ebp
je 0x48d2c5
cmp eax, 0x10e
jb 0x48d2d2
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.00402aac
mov dword [rsp + 0x20], 1
lea r9, [rsp + 0x88]
xor r8d, r8d
mov edx, ebx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.SHELL32.dll_ExtractIconExW]
cmp eax, 1
jne 0x48d336
mov r8, qword [rsp + 0x88]
cmp r8, rbp
je 0x48d336
lea edx, [rax - 2]
mov rcx, qword [rsi + 0x38]
call qword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.USER32.dll_DestroyIcon]
mov ebx, dword [rsi + 0x30]
lea ecx, [rbx + 1]
mov dword [rsi + 0x30], ecx
mov rcx, qword [rsp + 0x38]
call sub.msvcrt.dll_free
mov eax, ebx
jmp 0x48d345
mov rcx, qword [rsp + 0x38]
call sub.msvcrt.dll_free
mov eax, 0xffffffff
add rsp, 0x58
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x48da7c
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rsi, rcx
mov ecx, reloc.COMCTL32.dll_InitCommonControls
mov rbx, rdx
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x12
mov di, ax
shr edi, 0xf
and dil, 1
call qword [sym.imp.USER32.dll_GetKeyState]
mov r11w, ax
shr r11d, 0xf
test r11b, 1
jne 0x48db36
movzx ecx, word [rbx + 0x18]
xor edx, edx
cmp dil, dl
je 0x48db06
cmp cx, 0x41
je 0x48db0c
movzx eax, cx
cmp eax, 0x20
je 0x48daee
cmp eax, 0x6a
jle 0x48db36
cmp eax, 0x6d
jle 0x48daee
cmp eax, 0x6f
je 0x48daee
cmp eax, 0xbb
je 0x48daee
cmp eax, 0xbd
jne 0x48db36
cmp dil, dl
jne 0x48db36
cmp cx, 0x20
mov rcx, rsi
setne dl
call fcn.0048d974
mov al, 1
jmp 0x48db38
cmp cx, 0x6a
jne 0x48dac9
mov ecx, 2
lea r9, [rsp + 0x20]
mov edx, 0x102b
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x2c], ecx
mov rcx, qword [rsi + 0x40]
mov r8, 0xffffffffffffffff
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x48db02
xor al, al
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret

Function at 0x495ac0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x495af9
lea rcx, [0x00498ba8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.SetDefaultDllDirectories
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x495af9
mov ecx, 0xc00
call rax
add rsp, 0x28
ret
Function at 0x495e40
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x40]
mov r9, r8
mov rbx, rcx
mov r8, rdx
mov qword [rsp + 0x28], rax
xor ecx, ecx
xor edx, edx
mov dword [rsp + 0x20], 0
call qword [sym.imp.msvcrt.dll__beginthreadex]
test rax, rax
mov qword [rbx], rax
je 0x495e7b
xor eax, eax
add rsp, 0x30
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 1
test eax, eax
cmovne ecx, eax
mov eax, ecx
add rsp, 0x30
pop rbx
ret

Function at 0x495f50
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x198
mov rax, qword [0x004cf0f8]
mov qword [rsp + 0x150], rax
mov rax, qword [0x004cfe58]
mov qword [r11 - 0x10], rbp
mov qword [r11 - 0x18], rsi
test rax, rax
mov qword [r11 - 0x20], rdi
mov qword [r11 - 0x28], r12
mov qword [r11 - 0x30], r13
mov rdi, r9
mov esi, r8d
mov r12, rdx
mov rbp, rcx
mov r13d, 1
jne 0x496066
cmp dword [0x004cfe50], eax
jne 0x496066
lea rax, [rsp + 0x38]
mov qword [r11 - 8], rbx
lea rdx, str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x20], rax
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x496039
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea rdx, [0x004998ba]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x30], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
test eax, eax
cmove ebx, r13d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x496039
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x004cfe58], rax
jmp 0x496040
mov rax, qword [0x004cfe58]
test rax, rax
mov rbx, qword [rsp + 0x190]
jne 0x496066
lea rcx, str.hhctrl.ocx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov qword [0x004cfe58], rax
je 0x49608e
mov r10, qword [0x004cfe48]
test r10, r10
jne 0x496099
lea edx, [r10 + 0xf]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov r10, rax
mov qword [0x004cfe48], rax
jne 0x496099
mov dword [0x004cfe50], r13d
xor eax, eax
jmp 0x4960a8
mov r9, rdi
mov r8d, esi
mov rdx, r12
mov rcx, rbp
call r10
mov r13, qword [rsp + 0x168]
mov r12, qword [rsp + 0x170]
mov rdi, qword [rsp + 0x178]
mov rsi, qword [rsp + 0x180]
mov rbp, qword [rsp + 0x188]
mov rcx, qword [rsp + 0x150]
call fcn.00496e10
add rsp, 0x198
ret
Function at 0x496950
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
sub rsp, 0xc8
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
nop
cmp word [0x00400000], 0x5a4d
je 0x49698d
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
lea rdi, [0x00400000]
jmp 0x496a1b
movsxd rax, dword [0x0040003c]
lea rdi, [0x00400000]
add rax, rdi
cmp dword [rax], 0x4550
je 0x4969b1
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x496a1b
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x4969f8
cmp ecx, 0x20b
je 0x4969d0
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x496a1b
cmp dword [rax + 0x84], 0xe
ja 0x4969e4
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x496a1b
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
jmp 0x496a1b
cmp dword [rax + 0x74], 0xe
ja 0x496a09
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x496a1b
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
mov ecx, 2
call qword [sym.imp.msvcrt.dll___set_app_type]
mov qword [0x004d0400], 0xffffffffffffffff
mov qword [0x004d0408], 0xffffffffffffffff
mov rcx, qword [sym.imp.msvcrt.dll__fmode]
mov eax, dword [0x004cfe8c]
mov dword [rcx], eax
mov rcx, qword [sym.imp.msvcrt.dll__commode]
mov eax, dword [0x004cfe88]
mov dword [rcx], eax
call fcn.00496c00
cmp dword [0x004cf0e8], 0
jne 0x496a75
lea rcx, [fcn.00496c00]
call qword [sym.imp.msvcrt.dll___setusermatherr]
lea rdx, [0x004989e0]
lea rcx, [0x004989d8]
call fcn.0057a000
mov r11d, dword [0x004cfe84]
mov dword [rsp + 0xd8], r11d
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x004cfe80]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x3c]
call qword [sym.imp.msvcrt.dll___getmainargs]
lea rdx, [0x004989d0]
lea rcx, [0x00498928]
call sub.msvcrt.dll__initterm
mov r11, qword [sym.imp.msvcrt.dll__acmdln]
mov r8, qword [r11]
mov qword [rsp + 0x30], r8
cmp byte [r8], 0x22
jne 0x496b16
nop
nop
inc r8
mov qword [rsp + 0x30], r8
movzx eax, byte [r8]
test al, al
je 0x496b06
cmp al, 0x22
je 0x496b06
jmp 0x496af0
cmp byte [r8], 0x22
jne 0x496b26
inc r8
mov qword [rsp + 0x30], r8
jmp 0x496b26
cmp byte [r8], 0x20
jbe 0x496b26
inc r8
mov qword [rsp + 0x30], r8
jmp 0x496b16
movzx eax, byte [r8]
test al, al
je 0x496b3c
cmp al, 0x20
ja 0x496b3c
inc r8
mov qword [rsp + 0x30], r8
jmp 0x496b26
test byte [rsp + 0x8c], 1
je 0x496b51
movzx r9d, word [rsp + 0x90]
jmp 0x496b57
mov r9d, 0xa
xor edx, edx
mov rcx, rdi
call fcn.004570d4
mov edi, eax
mov dword [rsp + 0x38], eax
test ebx, ebx
jne 0x496b73
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
call qword [sym.imp.msvcrt.dll__cexit]
jmp 0x496b97
mov eax, edi
jmp 0x496ba0
mov rbx, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xe8]
add rsp, 0xc8
ret
Function at 0x496ce0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rdi, rcx
lea rsi, [0x004cff30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [0x004d0028]
lea rdx, [rsp + 0x70]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x496d61
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x48]
mov r9, rax
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov r8, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov r11, qword [0x004d0028]
jmp 0x496d7d
mov r11, qword [rsp + 0x68]
lea rax, [rsp + 0x68]
add rax, 8
mov qword [0x004d0028], r11
mov qword [0x004cffc8], rax
mov rax, qword [0x004cf0f8]
mov qword [0x004cfea0], r11
mov qword [0x004cffb0], rdi
mov dword [0x004cfe90], 0xc0000409
mov dword [0x004cfe94], 1
mov qword [rsp + 0x50], rax
mov rax, qword [0x004cf0f0]
xor ecx, ecx
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x004a5d80]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
add rsp, 0x68
ret
cmp rcx, qword [0x004cf0f8]
jne 0x496e29
rol rcx, 0x10
test cx, 0xffff
jne 0x496e25
ret
ror rcx, 0x10
jmp 0x496ce0
Function at 0x141bb0058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141bb01df
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 0x141bb0089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141bb006f
add dl, dl
jne 0x141bb0096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141bb00f6
xor eax, eax
add dl, dl
jne 0x141bb00a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141bb01ad
add dl, dl
jne 0x141bb00b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141bb00c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141bb00d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141bb00dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141bb00ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141bb007e
mov eax, 1
add dl, dl
jne 0x141bb0106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141bb0113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141bb00fb
sub eax, ebx
mov ebx, 1
jne 0x141bb014c
mov ecx, 1
add dl, dl
jne 0x141bb012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141bb013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141bb0123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141bb007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141bb0168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141bb0175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141bb015d
cmp eax, 0x7d00
jae 0x141bb019b
cmp eax, 0x500
jb 0x141bb0196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141bb007e
cmp eax, 0x7f
ja 0x141bb019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141bb007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141bb01d2
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 0x141bb007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14003dfa0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14003dfad
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14003dfbd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14003dfa5
lea eax, [rcx + 1]
jmp 0x14003dfcb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14003dfde
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14003dfc4
sub eax, 3
jb 0x14003dffe
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14003e04d
sar eax, 1
movsxd rbp, eax
jb 0x14003e034
jmp 0x14003e00c
add ebx, ebx
jne 0x14003e00a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14003e034
inc ecx
add ebx, ebx
jne 0x14003e01a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14003e034
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14003e02d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14003e01c
add ecx, 2
jmp 0x14003e039
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14003df62
jmp 0x14003dfad
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x5e00
mov dl, 2
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14003e099
cmp rsi, rcx
jae 0x14003e0a1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14003e080
cmp al, 0x8f
ja 0x14003e080
cmp byte [rsi - 2], 0xf
je 0x14003e086
sub al, 0xe8
cmp al, 1
ja 0x14003e06a
cmp rsi, rcx
jae 0x14003e0a1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14003e070
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14003e0a1
lodsb al, byte [rsi]
jmp 0x14003e080
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x3a000]
mov eax, dword [rdi]
or eax, eax
je 0x14003e0fe
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x6af68]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14003e0ae
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14003e0f8
mov qword [rbx], rax
add rbx, 8
jmp 0x14003e0ce
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14003e138
cmp al, 0xef
ja 0x14003e12a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14003e10a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14003e119
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x227]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14003e18c
sub rsp, 0xffffffffffffff80
jmp 0x140005dd0
Function at 0x140014020
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.140005f40
sub rsp, rax
mov rax, qword [0x14002e040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140012c00
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001406f
mov rax, rbp
jmp 0x140014177
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 + 0x7f0d0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140015140
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x7f0d0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140014173
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 0x140014173
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140015140
test rax, rax
js 0x140014173
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140014173
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140014165
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140014165
cmp byte [rcx], 0xd
jne 0x14001414b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001415a
cmp byte [rcx + 1], 0xa
jne 0x14001415a
inc rcx
jmp 0x14001415a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x2e480]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001412d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140014177
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140005b50
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 0x140014398
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400143ae
mov al, 1
jmp 0x14001440e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400143bf
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001440c
mov ecx, dword [rcx + 0x18]
nop
call fcn.140018af4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001440c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001440c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001440c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001440e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400144e0
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, [0x14007f0d0]
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 0x140014537
cmp word [rdx], r13w
jne 0x140014537
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001453c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140014661
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140014682
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140014575
mov rdx, r9
mov word [rbx], cx
jmp 0x14001459c
cmp r9, r8
jae 0x1400145ac
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 0x140014556
jmp 0x140014661
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 0x140014656
cmp dword [rsp + 0x80], esi
je 0x140014656
lea r8, [0x14007f0d0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001462e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400145fe
mov word [rbx], r13w
jmp 0x14001465e
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 0x14001460b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001465e
cmp word [rsp + 0x70], r13w
jne 0x14001463b
cmp rbx, r14
je 0x1400145f8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140015148
cmp word [rsp + 0x70], r13w
je 0x140014661
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, [0x14007f0d0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001465b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140014661