joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002f750
Capabilities:
Get graphical window text

Disassembly:
mov r11, rsp
push rbp
push rsi
push r13
push r14
lea rbp, [r11 - 0x798]
sub rsp, 0x878
mov rax, qword [0x140300040]
xor rax, rsp
mov qword [rbp + 0x740], rax
mov qword [r11 - 0x38], r12
mov r14, r9
mov qword [r11 - 0x40], r15
mov r12d, r8d
mov r15d, dword [rbp + 0x7c0]
mov r13, rdx
mov qword [rsp + 0x20], r9
mov rsi, rcx
test r15d, r15d
jns 0x14002f862
mov qword [r11 - 0x28], rbx
mov rcx, r9
mov qword [r11 - 0x30], rdi
call qword [sym.imp.USER32.dll_GetDC]
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
mov rdi, rax
lea edx, [r9 + 0x31]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SelectObject]
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x802
mov rbx, rax
call fcn.14022eb00
mov r8d, 0x400
lea rdx, [rsp + 0x30]
mov rcx, r14
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r9, [rsp + 0x28]
mov rcx, rdi
mov r8d, eax
lea rdx, [rsp + 0x30]
call qword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SelectObject]
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.USER32.dll_ReleaseDC]
mov r8d, dword [rsi + 0xf0]
mov edx, 0x60
mov ecx, dword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov rdi, qword [rsp + 0x868]
sub eax, r15d
mov rbx, qword [rsp + 0x870]
mov r15d, eax
movd xmm0, dword [rbp + 0x7c8]
xor eax, eax
movd xmm1, r15d
mov r15, qword [rsp + 0x858]
mov dword [rsp + 0x30], r12d
mov r12, qword [rsp + 0x860]
mov dword [rsp + 0x4c], 0xbf800000
mov dword [rsp + 0x50], 0xbf800000
mov qword [rsp + 0x54], rax
mov qword [rsp + 0x5c], rax
mov qword [rsp + 0x64], rax
mov qword [rsp + 0x6c], rax
mov qword [rsp + 0x7c], rax
mov qword [rsp + 0x74], rax
mov qword [rbp - 0x74], rax
mov qword [rbp - 0x7c], rax
mov qword [rbp - 0x64], rax
mov qword [rbp - 0x6c], rax
mov qword [rbp - 0x54], rax
mov qword [rbp - 0x5c], rax
mov dword [rbp - 0x38], 0xbf800000
mov dword [rbp - 0x3c], 0xbf800000
mov qword [rbp - 0x2c], rax
mov qword [rbp - 0x34], rax
mov qword [rbp - 0x24], rax
mov qword [rbp - 0x4c], 1
mov qword [rbp - 0x44], rax
mov qword [rsp + 0x3c], rax
mov dword [rsp + 0x44], 0x4e800000
mov dword [rsp + 0x48], 0x4e800000
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [rsp + 0x38], xmm0
movss dword [rsp + 0x34], xmm1
test r14, r14
je 0x14002f96d
cmp dword [rsi + 0x30], eax
je 0x14002f95a
movd xmm0, dword [rsi + 0x20]
movd xmm1, dword [rsi + 0x24]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [rsp + 0x74], xmm0
movd xmm0, dword [rsi + 0x28]
movss dword [rsp + 0x78], xmm1
movd xmm1, dword [rsi + 0x2c]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [rsp + 0x7c], xmm0
movss dword [rbp - 0x80], xmm1
test r14, r14
je 0x14002f96d
lea rcx, [rsi + 0x70]
lea rdx, [rsp + 0x20]
call fcn.14002fdc0
lea rcx, [rsi + 8]
mov r9, r14
lea r8, [rsp + 0x30]
mov rdx, r13
call fcn.140038540
mov rcx, qword [rbp + 0x740]
xor rcx, rsp
call fcn.1401f74b0
add rsp, 0x878
pop r14
pop r13
pop rsi
pop rbp
ret
Function at 0x140032d50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x140032d5b
xor eax, eax
ret
lea r11, [0x14026d710]
not ecx
cmp r8d, 8
jb 0x140032e31
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x140032d80
test r8d, r8d
je 0x140032e5d
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x140032e40
not ecx
mov eax, ecx
ret

Function at 0x1400332f0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140300040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rdx
mov rsi, rcx
call fcn.1400333c0
test eax, eax
je 0x140033399
mov rcx, qword [rsi]
lea r9, [rsp + 0x30]
xor ebp, ebp
add rbx, 4
mov dword [rsi + 0x1c], ebp
mov edi, 4
mov r8d, edi
mov qword [rsp + 0x30], rbp
mov rax, qword [rcx]
mov rdx, rbx
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
test eax, eax
je 0x140033399
cmp qword [rsp + 0x30], rdi
jne 0x140033399
test rbx, rbx
je 0x14003338f
mov eax, dword [rsi + 0x1c]
lea r8, [0x14026d710]
not eax
nop dword [rax]
nop dword [rax + rax]
movzx ecx, byte [rbx]
lea rbx, [rbx + 1]
mov edx, eax
shr eax, 8
xor rdx, rcx
movzx ecx, dl
xor eax, dword [r8 + rcx*4]
add edi, 0xffffffff
jne 0x140033370
not eax
mov ebp, eax
mov dword [rsi + 0x1c], ebp
mov eax, 1
jmp 0x14003339b
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401f74b0
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400333c0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x140300040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r14, rcx
lea r9, [rsp + 0x30]
mov rcx, qword [rcx]
mov ebx, 4
xor esi, esi
mov r8d, ebx
mov rdi, rdx
mov qword [rsp + 0x30], rsi
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
test eax, eax
je 0x140033484
cmp qword [rsp + 0x30], rbx
jne 0x140033484
mov r8, rdi
test rdi, rdi
je 0x140033450
mov eax, dword [r14 + 0x1c]
lea r9, [0x14026d710]
not eax
nop word [rax + rax]
movzx ecx, byte [r8]
lea r8, [r8 + 1]
mov edx, eax
shr eax, 8
xor rdx, rcx
movzx ecx, dl
xor eax, dword [r9 + rcx*4]
add ebx, 0xffffffff
jne 0x140033430
not eax
mov esi, eax
mov dword [r14 + 0x1c], esi
mov r8d, dword [rdi]
mov eax, r8d
movzx edx, byte [rdi + 1]
shl eax, 8
add edx, eax
mov eax, r8d
shr eax, 0x10
shl edx, 8
movzx ecx, al
mov eax, 1
add edx, ecx
shr r8d, 0x18
shl edx, 8
add edx, r8d
mov dword [rdi], edx
jmp 0x140033486
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401f74b0
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x1400334b0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140300040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
lea r9, [rsp + 0x30]
mov rcx, qword [rcx]
xor edi, edi
mov rsi, rdx
mov qword [rsp + 0x30], rdi
mov rax, qword [rcx]
lea r8d, [rdi + 1]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
test eax, eax
je 0x140033537
cmp qword [rsp + 0x30], 1
jne 0x140033537
test rsi, rsi
je 0x14003352d
mov r8d, dword [rbx + 0x1c]
movzx ecx, byte [rsi]
not r8d
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx edx, cl
lea rcx, [0x14026d710]
xor r8d, dword [rcx + rdx*4]
not r8d
mov edi, r8d
mov dword [rbx + 0x1c], edi
mov eax, 1
jmp 0x140033539
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401f74b0
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140038930
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x48], 0
mov rbx, rcx
jne 0x140038a53
cmp qword [rcx + 0x50], 0
jne 0x140038a53
lea rcx, str.SHCore.dll
mov qword [rsp + 0x30], rdi
call fcn.140027a70
xor edi, edi
mov qword [rbx + 0x48], rax
test rax, rax
je 0x140038992
lea rdx, str.GetDpiForMonitor
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x48]
lea rdx, str.SetProcessDpiAwareness
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x140038999
mov qword [rbx + 8], rdi
mov rax, rdi
lea rcx, str.user32.dll
mov qword [rbx + 0x18], rax
call fcn.140027a70
mov qword [rbx + 0x50], rax
test rax, rax
je 0x140038a3e
lea rdx, str.SetProcessDpiAwarenessContext
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x50]
lea rdx, str.SetDialogControlDpiChangeBehavior
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x50]
lea rdx, str.GetDpiForWindow
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x50]
lea rdx, str.SystemParametersInfoForDpi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x50]
lea rdx, str.EnableNonClientDpiScaling
mov qword [rbx + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x50]
lea rdx, str.SetThreadDpiAwarenessContext
mov qword [rbx + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, qword [rsp + 0x30]
mov qword [rbx + 0x40], rax
add rsp, 0x20
pop rbx
ret
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x20], rdi
mov qword [rbx + 0x28], rdi
mov qword [rbx + 0x30], rdi
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
Function at 0x140039760
Capabilities:
Find taskbar

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov rax, qword [0x140300040]
xor rax, rsp
mov qword [rbp + 0x3f], rax
cmp dword [rcx + 0x4c], 2
mov rdi, rdx
mov rsi, rcx
jne 0x14003991c
mov rcx, qword [rcx + 8]
mov edx, 0xfffffff0
mov qword [rsp + 0x100], rbx
call qword [sym.imp.USER32.dll_GetWindowLongW]
mov rcx, qword [rsi + 8]
mov edx, 0xffffffec
mov ebx, eax
btr ebx, 0x17
bts ebx, 0x16
call qword [sym.imp.USER32.dll_GetWindowLongW]
xorps xmm0, xmm0
lea rcx, [rbp - 0x29]
mov r9d, eax
xor r8d, r8d
mov edx, ebx
movdqu xmmword [rbp - 0x29], xmm0
call qword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov eax, dword [rbp - 0x29]
lea rcx, [0x1402978e0]
sub dword [rdi], eax
xor edx, edx
mov eax, dword [rdi + 4]
sub eax, dword [rbp - 0x25]
mov dword [rdi + 4], eax
mov eax, dword [rdi + 8]
sub eax, dword [rbp - 0x21]
mov dword [rdi + 8], eax
mov eax, dword [rdi + 0xc]
sub eax, dword [rbp - 0x1d]
mov dword [rdi + 0xc], eax
call qword [sym.imp.USER32.dll_FindWindowW]
mov rbx, rax
test rax, rax
je 0x140039914
mov rdx, rdi
lea rcx, [rbp + 7]
call qword [sym.imp.USER32.dll_CopyRect]
xorps xmm0, xmm0
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x19]
movdqu xmmword [rbp - 9], xmm0
call qword [sym.imp.USER32.dll_CopyRect]
mov edx, 2
lea rcx, [rbp - 0x19]
call qword [sym.imp.USER32.dll_MonitorFromRect]
lea rdx, [rbp + 0x17]
mov dword [rbp + 0x17], 0x28
mov rcx, rax
call qword [sym.imp.USER32.dll_GetMonitorInfoW]
test eax, eax
jne 0x140039871
xor r9d, r9d
lea r8, [rbp - 9]
xor edx, edx
lea ecx, [rax + 0x30]
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
jmp 0x14003987f
lea rdx, [rbp + 0x2b]
lea rcx, [rbp - 9]
call qword [sym.imp.USER32.dll_CopyRect]
xorps xmm0, xmm0
mov qword [rbp - 0x69], 0x30
xorps xmm1, xmm1
mov qword [rbp - 0x61], rbx
lea rdx, [rbp - 0x69]
mov ecx, 4
movdqu xmmword [rbp - 0x59], xmm0
movdqu xmmword [rbp - 0x49], xmm1
call qword [sym.imp.SHELL32.dll_SHAppBarMessage]
test al, 1
je 0x140039914
xorps xmm0, xmm0
lea rdx, [rbp - 0x39]
xorps xmm1, xmm1
mov rcx, rbx
movdqu xmmword [rbp - 0x39], xmm0
movdqu xmmword [rbp - 0x19], xmm1
call qword [sym.imp.USER32.dll_GetWindowRect]
lea r8, [rbp - 0x39]
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x19]
call qword [sym.imp.USER32.dll_SubtractRect]
lea rcx, [rbp - 0x19]
call qword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x140039914
mov eax, dword [rbp - 0x35]
mov ecx, dword [rbp - 0x39]
cmp eax, ecx
jne 0x14003990a
mov edx, dword [rbp - 0x2d]
cmp edx, dword [rbp - 0x31]
jle 0x140039901
inc dword [rdi]
jmp 0x140039914
jge 0x140039908
inc dword [rdi + 4]
jmp 0x140039914
cmp eax, ecx
jle 0x140039911
dec dword [rdi + 0xc]
jmp 0x140039914
dec dword [rdi + 8]
mov rbx, qword [rsp + 0x100]
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.1401f74b0
add rsp, 0xd0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14003ccb0
Capabilities:
Parse credit card information

Disassembly:
lea eax, [rdx - 0x30]
cmp ax, 9
jbe 0x14003ce95
lea eax, [rdx - 0x61]
cmp ax, 0x19
jbe 0x14003ce95
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x14003ce95
cmp dx, 0x3f
ja 0x14003ccf1
movabs r8, 0x8000508200000000
bt r8, rdx
jb 0x14003ce95
mov r8d, 0xbf
movzx eax, dx
sub ax, r8w
mov r8d, 0x1f9
cmp ax, r8w
jbe 0x14003ce95
cmp dword [rcx + 0x20c], 0
je 0x14003ce8f
mov ecx, 0x7eb
movzx eax, dx
sub ax, cx
cmp ax, 0x38
ja 0x14003cd40
movabs rcx, 0x1ff7800000079ff
bt rcx, rax
jb 0x14003ce8f
mov eax, 0x203
add eax, edx
cmp ax, 0x72
jbe 0x14003ce8f
mov eax, 0x2c2
add eax, edx
cmp ax, 0x11
jbe 0x14003ce8f
mov eax, 0xfb29
cmp dx, ax
je 0x14003ce8f
mov eax, 0xfb1e
cmp dx, ax
je 0x14003ce8f
mov ecx, 0x2010
movzx eax, dx
sub ax, cx
mov ecx, 0xdb0c
cmp ax, cx
jbe 0x14003ce8f
mov ecx, 0x8ad
movzx eax, dx
sub ax, cx
mov ecx, 0x1761
cmp ax, cx
jbe 0x14003ce8f
mov ecx, 0x825
movzx eax, dx
sub ax, cx
cmp ax, 0x38
ja 0x14003cdd5
movabs rcx, 0x1f00000000007f7
bt rcx, rax
jb 0x14003ce8f
mov eax, 0x5bd
cmp dx, ax
jbe 0x14003ce8f
mov ecx, 0x7a6
movzx eax, dx
sub ax, cx
cmp ax, 0xa
jbe 0x14003ce8f
mov ecx, 0x730
movzx eax, dx
sub ax, cx
cmp ax, 0x1c
jbe 0x14003ce8f
mov ecx, 0x6d6
movzx eax, dx
sub ax, cx
cmp ax, 0x3b
ja 0x14003ce2e
movabs rcx, 0x800000ffcfe7fff
bt rcx, rax
jb 0x14003ce8f
mov eax, 0x670
cmp dx, ax
je 0x14003ce8f
mov ecx, 0x64b
movzx eax, dx
sub ax, cx
cmp ax, 0x21
jbe 0x14003ce8f
mov ecx, 0x5f5
movzx eax, dx
sub ax, cx
cmp ax, 0x25
ja 0x14003ce6a
movabs rcx, 0x3ffeb7ffff
bt rcx, rax
jb 0x14003ce8f
mov ecx, 0x5bf
movzx eax, dx
sub ax, cx
cmp ax, 0x10
ja 0x14003ce85
mov ecx, 0x1ff6d
bt ecx, eax
jb 0x14003ce8f
mov eax, 0xfefd
cmp dx, ax
jb 0x14003ce95
mov eax, 1
ret
xor eax, eax
ret
Function at 0x140041920
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x140300040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rdx
mov r14, rcx
call fcn.140042a90
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov edx, 0x80000000
mov rcx, rbx
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140041a7e
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd rdi, eax
test eax, eax
jne 0x1400419ab
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140041a53
cmp edi, 0xf4240
jle 0x1400419c6
mov r8d, edi
mov rdx, rbx
call fcn.140043ee0
test eax, eax
je 0x140041a7e
mov rax, 0xffffffffffffffff
mov qword [rsp + 0x80], rbp
mov rdx, rdi
mov qword [rsp + 0x88], rsi
add rdx, 2
cmovb rdx, rax
lea ecx, [rax + 2]
call fcn.14020cf94
mov rsi, rax
mov rcx, rbx
test rax, rax
je 0x140041a74
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, edi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140041a69
cmp dword [rsp + 0x40], edi
jne 0x140041a69
mov r8, rdi
mov rdx, rsi
mov rcx, r14
call fcn.140041a90
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.140207144
mov eax, 1
mov rbp, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401f74b0
add rsp, 0x50
pop r14
pop rdi
pop rbx
ret
mov rcx, rsi
call fcn.140207144
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140041a43
xor eax, eax
jmp 0x140041a53
Function at 0x14004a5e0
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
push rbp
push r13
push r14
push r15
sub rsp, 0x88
mov rax, qword [0x140300040]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp qword [rcx + 8], 0xffffffffffffffff
mov r15, r8
mov qword [rsp + 0x40], r9
mov r14, rdx
mov qword [rsp + 0x38], rdx
mov rbp, rcx
je 0x14004a7fb
test r9, r9
je 0x14004a7fb
test rdx, rdx
je 0x14004a7fb
xor r8d, r8d
mov dword [rsp + 0x30], 1
mov r13d, r8d
test r15, r15
je 0x14004a7ea
mov qword [r11 - 0x28], rbx
mov qword [r11 - 0x30], rsi
mov qword [r11 - 0x38], rdi
mov qword [r11 - 0x40], r12
mov rdx, qword [rbp + 0x18]
mov r9d, 0x1000000
mov rax, qword [rbp + 0x20]
cmp rdx, rax
jae 0x14004a69d
sub rax, rdx
mov rbx, r15
cmp rax, r15
mov rcx, r14
cmovl rbx, rax
mov r8, rbx
call fcn.14022e460
add qword [rbp + 0x18], rbx
add r14, rbx
add qword [rbp + 0x28], rbx
add r13, rbx
mov qword [rsp + 0x38], r14
sub r15, rbx
jmp 0x14004a7b5
mov r12, qword [rbp + 8]
mov rbx, r8
mov rsi, qword [rbp + 0x10]
cmp r15, 0x2000
jl 0x14004a71e
mov qword [rbp + 0x18], rsi
mov qword [rbp + 0x20], rsi
mov edi, r15d
test r15d, r15d
je 0x14004a70f
cmp rdi, r9
mov dword [rsp + 0x48], r8d
mov qword [rsp + 0x20], r8
mov esi, edi
cmovg esi, r9d
mov rdx, r14
mov r8d, esi
lea r9, [rsp + 0x48]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14004a7c2
mov eax, dword [rsp + 0x48]
add rbx, rax
cmp eax, esi
jb 0x14004a70f
add r14, rax
mov r8d, 0
mov r9d, 0x1000000
sub rdi, rax
jne 0x14004a6c1
add qword [rbp + 0x28], rbx
add r13, rbx
sub r15, rbx
jmp 0x14004a7ab
mov rcx, qword [rbp + 0x28]
mov rax, r8
test rcx, rcx
cmovns rax, rcx
mov ecx, 0x2000
cqo
and edx, 0x1fff
add rax, rdx
and eax, 0x1fff
sub rax, rdx
sub ecx, eax
movsxd rdi, ecx
je 0x14004a79c
nop dword [rax + rax]
cmp rdi, r9
mov dword [rsp + 0x48], r8d
mov qword [rsp + 0x20], r8
mov r14d, edi
cmovg r14d, r9d
mov rdx, rsi
mov r8d, r14d
lea r9, [rsp + 0x48]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14004a7cb
mov eax, dword [rsp + 0x48]
add rbx, rax
cmp eax, r14d
jb 0x14004a79c
add rsi, rax
mov r8d, 0
mov r9d, 0x1000000
sub rdi, rax
jne 0x14004a750
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x18], rax
add rax, rbx
mov qword [rbp + 0x20], rax
test rbx, rbx
je 0x14004a7d3
mov r14, qword [rsp + 0x38]
test r15, r15
je 0x14004a7d3
xor r8d, r8d
jmp 0x14004a657
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x3c], eax
mov dword [rsp + 0x30], 0
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x80]
mov r12, qword [rsp + 0x68]
mov rax, qword [rsp + 0x40]
mov ecx, r13d
mov qword [rax], rcx
mov eax, dword [rsp + 0x30]
jmp 0x14004a7fd
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401f74b0
add rsp, 0x88
pop r15
pop r14
pop r13
pop rbp
ret
Function at 0x14004a910
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140300040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x14004a955
mov rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401f74b0
add rsp, 0x30
pop rbx
ret
mov rax, qword [rsp + 0x20]
mov qword [rbx + 0x30], rax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401f74b0
add rsp, 0x30
pop rbx
ret

Function at 0x14004b1b0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140300040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
je 0x14004b1e8
mov r8, qword [rbx + 0x18]
test r8, r8
je 0x14004b1e8
mov rdx, qword [rbx + 0x10]
call fcn.14004b570
test eax, eax
je 0x14004b1f0
mov qword [rbx + 0x18], 0
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, qword [rsp + 0x20]
mov rdx, 0xffffffffffffffff
test eax, eax
cmove rcx, rdx
mov rax, rcx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401f74b0
add rsp, 0x30
pop rbx
ret

Function at 0x14004b230
Capabilities:
Delete file
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
mov rbx, rcx
call fcn.14004b320
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov edx, 0x40000000
mov rcx, rdi
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x14004b2ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x38], eax
cmp eax, 5
jne 0x14004b2e1
lea edx, [rax + 0x7b]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov edx, 0x40000000
mov rcx, rdi
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x14004b2ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x38], eax
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
call fcn.14021581c
mov qword [rbx + 0x30], rax
mov eax, 1
mov dword [rbx + 0x28], 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14004b570
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140300040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
test r8, r8
je 0x14004b5eb
xor r14d, r14d
mov r15d, 0x1000000
nop word [rax + rax]
cmp rbx, r15
mov dword [rsp + 0x30], r14d
mov edi, ebx
mov qword [rsp + 0x20], r14
cmova edi, r15d
lea r9, [rsp + 0x30]
mov r8d, edi
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14004b611
mov eax, dword [rsp + 0x30]
cmp edi, eax
jne 0x14004b611
add rsi, rax
sub rbx, rax
jne 0x14004b5b0
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401f74b0
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
xor eax, eax
jmp 0x14004b5f0

Function at 0x14004bdd0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x14004bddb
xor eax, eax
ret
lea r11, [0x14026ee70]
not ecx
cmp r8d, 8
jb 0x14004beb1
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x14004be00
test r8d, r8d
je 0x14004bedd
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x14004bec0
not ecx
mov eax, ecx
ret