joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ebc0
Capabilities:
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov word [rbp + 0x36], dx
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], 0
nop
lea rcx, [0x0063cc90]
call sub.KERNEL32.DLL_EnterCriticalSection_1
movzx rax, word [rbp + 0x36]
cmp word [0x0063ccb8], ax
jne 0x40ec2b
mov rcx, qword [rbp + 0x28]
lea rdx, [0x0063ccba]
mov r8d, 0x55
call fcn.0040c520
lea rcx, [0x0063cc90]
call sub.KERNEL32.DLL_LeaveCriticalSection_1
jmp 0x40ed37
lea rcx, [0x0063cc90]
call sub.KERNEL32.DLL_LeaveCriticalSection_1
mov rcx, qword [rbp + 0x28]
call fcn.0040b060
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.KERNEL32.DLL_IsValidLocale_1
test eax, eax
je 0x40ecf0
cmp byte [0x0063cc88], 0
je 0x40ec84
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.0040ea50
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.0040b690
jmp 0x40ecf0
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.0040e780
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040b690
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x40ecf0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x40eccf
mov rcx, qword [rbp + 0x28]
lea rdx, [0x0040ed84]
call fcn.0040c790
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.0040e780
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.0040c790
lea rcx, [0x0063cc90]
call sub.KERNEL32.DLL_EnterCriticalSection_1
movzx rax, word [rbp + 0x36]
mov word [0x0063ccb8], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.0040c450
lea rcx, [0x0063ccba]
mov rdx, rax
mov r8d, 0xaa
call sub.KERNEL32.DLL_lstrcpynW_1
lea rcx, [0x0063cc90]
call sub.KERNEL32.DLL_LeaveCriticalSection_1
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.0040b140
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x40f880
Capabilities:
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x88], rdx
mov qword [rbp + 0x90], r8
mov rcx, qword [rbp + 0x88]
call fcn.0040b1f0
mov rcx, qword [rbp + 0x90]
call fcn.0040b1f0
nop
mov rcx, qword [rbp + 0x28]
call fcn.0040b060
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
call fcn.0040b710
xor rax, rax
cmp qword [rbp + 0x90], 0
je 0x40f923
mov rax, qword [rbp + 0x90]
mov eax, dword [rax - 4]
cmp eax, 1
jl 0x40f95d
mov rcx, qword [rbp + 0x90]
movsxd rdx, eax
cmp word [rcx + rdx*2 - 2], 0x2e
jne 0x40f956
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
mov r8d, 1
mov r9d, eax
call fcn.0040ca90
jmp 0x40f95d
sub eax, 1
test eax, eax
jne 0x40f928
nop
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
call fcn.0040f450
cmp qword [rbp + 0x68], 0
je 0x40f99b
mov rcx, rbp
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x68]
call fcn.0040f600
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
call fcn.0040b690
jmp 0x40fa37
call sub.KERNEL32.DLL_GetUserDefaultUILanguage
lea rcx, [rbp + 0x48]
mov edx, eax
call fcn.0040ebc0
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x48]
call fcn.0040f600
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x50]
call fcn.0040b690
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x40fa10
cmp byte [0x0063cc88], 0
jne 0x40fa10
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.0040ebc0
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x38]
call fcn.0040f600
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040b690
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x40fa37
mov rcx, rbp
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x60]
call fcn.0040f740
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
call fcn.0040b690
nop
lea rcx, [rbp + 0x30]
mov edx, 8
call fcn.0040b140
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.0040b140
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x410660
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call sub.KERNEL32.DLL_GetSystemInfo
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x410680
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
call sub.KERNEL32.DLL_GetVersion
mov ecx, eax
and ecx, 0xff
and eax, 0xff00
shr eax, 8
cmp ecx, 5
jne 0x4106a4
cmp eax, 1
jae 0x4106a9
cmp ecx, 5
jbe 0x4106b5
mov dword [0x006389b0], 0x7f
jmp 0x4106bf
mov dword [0x006389b0], 0x409
add rsp, 0x28
ret
Function at 0x410910
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.00410900
mov ebx, eax
test ebx, ebx
je 0x41095b
cmp dword [0x005296e0], 0xffffffff
jne 0x410934
mov ecx, 0xe2
call fcn.0040ad10
mov ecx, ebx
call fcn.004108e0
test rax, rax
jne 0x41094d
mov ecx, 0xe2
call fcn.0040ad10
jmp 0x41095b
mov ecx, dword [0x005296e0]
mov rdx, rax
call sub.KERNEL32.DLL_TlsSetValue
add rsp, 0x20
pop rbx
ret

Function at 0x410970
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x0063cd64], 0
je 0x4109ab
mov ecx, dword [0x005296e0]
call sub.KERNEL32.DLL_TlsGetValue
test rax, rax
jne 0x4109bf
call fcn.00410910
mov ecx, dword [0x005296e0]
call sub.KERNEL32.DLL_TlsGetValue
test rax, rax
jne 0x4109bf
mov rax, qword [0x0063cd98]
jmp 0x4109bf
mov rax, qword gs:[0x58]
movsxd rcx, dword [0x005296e0]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

Function at 0x4272f0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x30
mov rbp, rsp
movdqa xmmword [rbp + 0x20], xmm6
mov rbx, rdx
movapd xmm6, xmm2
mov rcx, rbx
mov edx, 0xa
xor r8, r8
call fcn.00407510
movsd xmm0, qword [0x004273b0]
comisd xmm0, xmm6
jbe 0x427329
mov byte [rbx + 9], 0x80
movapd xmm0, xmm6
call fcn.004073c0
call fcn.004072e0
mov rcx, rax
xor r8, r8
jmp 0x427391
mov r9d, 0x64
mov rax, rcx
cqo
idiv r9
mov r9, rdx
movsxd r10, r8d
mov r11d, 0xa
mov eax, r9d
cdq
idiv r11d
mov r11, rdx
mov esi, 0xa
mov eax, r9d
cdq
idiv esi
shl eax, 4
add r11b, al
mov byte [rbx + r10], r11b
mov r9d, 0x64
mov rax, rcx
cqo
idiv r9
mov rcx, rax
add r8d, 1
test rcx, rcx
jle 0x42739c
cmp r8d, 9
jl 0x42733f
mov rax, rbx
movdqa xmm6, xmmword [rbp + 0x20]
lea rsp, [rbp + 0x30]
pop rbx
pop rsi
pop rbp
ret

Function at 0x42b270
Capabilities:
Get geographical location

Disassembly:
push rbp
push rbx
sub rsp, 0x38
mov rbp, rsp
mov ebx, r8d
lea r8, [rbp + 0x2c]
mov r9d, 2
call sub.KERNEL32.DLL_GetLocaleInfoW
test eax, eax
jle 0x42b297
movzx rax, word [rbp + 0x2c]
jmp 0x42b299
mov eax, ebx
lea rsp, [rbp + 0x38]
pop rbx
pop rbp
ret
Function at 0x42c560
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x8e0
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
lea r8, [rbp + 0x60]
mov r9d, 0x400
call fcn.0042c300
mov ebx, eax
mov rax, qword [0x006376d8]
cmp byte [rax], 0
je 0x42c698
mov rcx, qword [0x006373a0]
call fcn.00407480
call fcn.00406350
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.KERNEL32.DLL_WideCharToMultiByte
mov esi, eax
lea rcx, [rbp + 0x58]
mov rdx, qword [0x0042c520]
mov r8d, 1
movsxd r9, esi
call fcn.0040df10
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.KERNEL32.DLL_WideCharToMultiByte
mov ecx, 0xfffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov rcx, rax
mov rdx, qword [rbp + 0x58]
mov r8d, esi
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.KERNEL32.DLL_WriteFile
mov ecx, 0xfffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov rcx, rax
lea rdx, [0x0042c738]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.KERNEL32.DLL_WriteFile
jmp 0x42c6de
mov rcx, qword [0x0063cd68]
call fcn.0040e220
mov rcx, rax
mov rax, qword [0x00637340]
mov edx, dword [rax + 8]
lea r8, [rbp + 0x860]
mov r9d, 0x40
call sub.user32.dll_LoadStringW_1
xor rcx, rcx
lea rdx, [rbp + 0x60]
lea r8, [rbp + 0x860]
mov r9d, 0x2010
call sub.user32.dll_MessageBoxW
nop
lea rcx, [rbp + 0x58]
mov rdx, qword [0x0042c520]
call fcn.0040e0f0
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret

Function at 0x42e790
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x240
mov rbp, rsp
mov rbx, rcx
mov rcx, rbx
call fcn.0040b830
mov r13d, eax
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call fcn.00410640
mov esi, eax
cmp esi, 0x104
jbe 0x42e7ed
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.00406010
mov rdi, rax
jmp 0x42e7f1
lea rdi, [rbp + 0x38]
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], esi
call fcn.00410640
mov rax, rdi
mov rcx, rax
call sub.user32.dll_CharUpperW
xor rbx, rbx
xor rax, rax
mov ecx, esi
sub ecx, 1
cmp eax, ecx
jg 0x42e847
add ecx, 1
mov edx, ebx
shl edx, 5
shr ebx, 0x1b
or edx, ebx
mov ebx, edx
movsxd rdx, eax
movzx edx, word [rdi + rdx*2]
xor ebx, edx
add eax, 1
cmp eax, ecx
jne 0x42e82b
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x42e859
mov rcx, rdi
call fcn.00406040
mov eax, ebx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x4d4f30
Capabilities:
Resume thread

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov byte [rbp + 0x2f], dl
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
nop
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x18], 0
jne 0x4d4f63
movzx rax, byte [rbp + 0x2f]
test al, al
je 0x4d4fc1
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x1c], 0
jne 0x4d4fc1
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x68], 0
jne 0x4d4fc1
mov rax, qword [rbp + 0x20]
mov byte [rax + 0x1a], 0
mov byte [rax + 0x18], 0
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 0x10]
call sub.KERNEL32.DLL_ResumeThread
cmp eax, 1
je 0x4d4feb
lea rcx, [rbp + 0x38]
mov rdx, qword [0x00637650]
call fcn.00410570
mov rcx, qword [0x004a9cd8]
mov dl, 1
mov r8, qword [rbp + 0x38]
call fcn.0042c760
mov rcx, rax
call fcn.0040a180
jmp 0x4d4feb
lea rcx, [rbp + 0x30]
mov rdx, qword [0x00637650]
call fcn.00410570
mov rcx, qword [0x004a9cd8]
mov dl, 1
mov r8, qword [rbp + 0x30]
call fcn.0042c760
mov rcx, rax
call fcn.0040a180
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040b140
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x4d54b0
Capabilities:
Suspend thread

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x50], rcx
mov rax, qword [rbp + 0x50]
movzx rax, byte [rax + 0x1a]
mov byte [rbp + 0x3f], al
nop
mov rax, qword [rbp + 0x50]
mov byte [rax + 0x1a], 1
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax + 0x10]
call sub.KERNEL32.DLL_SuspendThread
mov rcx, qword [rbp + 0x50]
test eax, eax
setge dl
call fcn.004d4e00
jmp 0x4d550b
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x4d5530
Capabilities:
Resume thread

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x20
mov rbp, rsp
mov rbx, rcx
mov rcx, qword [rbx + 0x10]
call sub.KERNEL32.DLL_ResumeThread
mov esi, eax
mov rcx, rbx
test esi, esi
setge dl
call fcn.004d4e00
cmp esi, 1
jne 0x4d555e
mov byte [rbx + 0x1a], 0
lea rsp, [rbp + 0x20]
pop rbx
pop rsi
pop rbp
ret
Function at 0x18049d058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.18049d1df
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 0x18049d089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18049d06f
add dl, dl
jne 0x18049d096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18049d0f6
xor eax, eax
add dl, dl
jne 0x18049d0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18049d1ad
add dl, dl
jne 0x18049d0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18049d0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18049d0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18049d0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x18049d0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18049d07e
mov eax, 1
add dl, dl
jne 0x18049d106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18049d113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18049d0fb
sub eax, ebx
mov ebx, 1
jne 0x18049d14c
mov ecx, 1
add dl, dl
jne 0x18049d12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18049d13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18049d123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18049d07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x18049d168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18049d175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18049d15d
cmp eax, 0x7d00
jae 0x18049d19b
cmp eax, 0x500
jb 0x18049d196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18049d07e
cmp eax, 0x7f
ja 0x18049d19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18049d07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x18049d1d2
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 0x18049d07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
push rcx
push rsi
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
mov rsi, qword [rdx + 0x50]
xor r9, r9
movzx rcx, word [rdx + 0x4a]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
mov rdx, qword [rdx + 0x20]
push r9
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov r8d, dword [rax + 0x20]
mov ecx, dword [rax + 0x18]
push rax
add r8, rdx
jrcxz 0x1400040ca
dec rcx
xor r9, r9
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x14000af40
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x14002dd98]
test rcx, rcx
je 0x14000af7b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000af6e
mov rcx, qword [0x14002dd98]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002dd98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14002dda8], 0
je 0x14000b06e
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x140028900]
mov qword [rsp + 0x80], rsi
lea rsi, [0x1400365d0]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b04f
test al, 0x10
je 0x14000b04f
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000aff5
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x14000a190
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x14000a1b1
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000a1de
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000a1e0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14000a239
test ecx, ecx
jle 0x14000a219
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14000a239
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000a239
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
lodsb al, byte [rsi]
retf 0xff0c
Function at 0x14000a260
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14000a282
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x14000a291
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000a2b4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000a2b6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000a2f2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000a38e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000a32d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000a36e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000a38e
cmp rbx, rax
ja 0x14000a340
test rbx, rbx
je 0x14000a38e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
or r13b, byte [rax]
invalid
Function at 0x14000a7c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140074010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000a7ed
xor eax, eax
jmp 0x14000a959
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000a827
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14000a827
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x14000a959
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000a94c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000a86a
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
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14000a895
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000a951
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000a904
sub eax, 1
je 0x14000a904
cmp eax, 2
jne 0x14000a94c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000a951
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14000a932
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000a94c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14000a951
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14005b2e0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14000acd0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140074010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000ada3
cmp byte [rcx + 0x71], 0
je 0x14000ada3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000ad9f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000ad64
sub eax, 1
je 0x14000ad68
cmp eax, 2
jne 0x14000ad9f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14005b2e0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000ad96
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000ad9f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000ad4c
xor al, al
jmp 0x14000ad4c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14005b2e0
add rsp, 0x60
pop rbx
ret