joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48bba0
Capabilities:
Access peb ldr_data

Disassembly:
lea r12, [rsp - 0x28]
cmp r12, qword [r14 + 0x10]
jbe 0x48bd52
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xb8], rbx
mov qword [rsp + 0x58], 0
movups xmmword [rsp + 0x60], xmm15
movups xmmword [rsp + 0x48], xmm15
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xb8]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov byte [rsp + 0x10], 0
nop dword [rax]
call fcn.00403080
xorps xmm15, xmm15
mov r14, qword [0x005e24b0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x18]
mov qword [rsp + 0x40], rax
cmp rax, 0xffffffffffffffff
jne 0x48bc29
jmp 0x48bc72
mov qword [rsp + 0x58], 0
movups xmmword [rsp + 0x60], xmm15
lea rdx, [0x004e9818]
mov qword [rsp + 0x48], rdx
lea rdx, [0x004e91a0]
mov qword [rsp + 0x50], rdx
mov rdi, qword [rsp + 0x48]
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
add rsp, 0xa0
pop rbp
ret
mov rcx, qword [rsp + 0xb8]
mov qword [rsp + 0x40], rcx
inc rcx
lea rax, [0x004afdc0]
xor ebx, ebx
call fcn.00446520
mov rsi, qword [rsp + 0x40]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 0
inc rsi
mov qword [rsp + 0x80], rsi
mov rdx, qword [rsp + 0xb0]
mov rbx, qword [rsp + 0xb8]
mov rcx, rax
xor edi, edi
mov rax, rdx
call fcn.0048c840
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rcx
inc rbx
cmp rcx, rbx
jae 0x48bce7
jmp 0x48bce9
jmp 0x48bcfc
mov edi, 1
lea rsi, [0x004afdc0]
call fcn.00446600
jmp 0x48bcfc
lea rdx, [rax + rbx*2]
lea rdx, [rdx - 2]
mov word [rdx], 0
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x98], rcx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rcx
movups xmmword [rsp + 0x48], xmm15
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
xor edi, edi
xor esi, esi
add rsp, 0xa0
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
nop dword [rax]
call fcn.0045ca20
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.0048bba0
Function at 0x15447f0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x15447fd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x154480d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x15447f5
lea eax, [rcx + 1]
jmp 0x154481b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x154482e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1544814
sub eax, 3
jb 0x154484e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x154489d
sar eax, 1
movsxd rbp, eax
jb 0x1544884
jmp 0x154485c
add ebx, ebx
jne 0x154485a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1544884
inc ecx
add ebx, ebx
jne 0x154486a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1544884
call r11
adc ecx, ecx
add ebx, ebx
jne 0x154487d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x154486c
add ecx, 2
jmp 0x1544889
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.015447b2
jmp 0x15447fd
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x112e000]
mov eax, dword [rdi]
or eax, eax
je 0x15448f9
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x11442c4]
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 0x15448a9
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 0x15448f3
mov qword [rbx], rax
add rbx, 8
jmp 0x15448c9
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 0x154493d
cmp al, 0xef
ja 0x1544925
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1544905
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1544914
mov eax, dword [rdi]
add rdi, 4
jmp 0x1544914
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 + 0x1af]
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 0x1544991
sub rsp, 0xffffffffffffff80
jmp 0x473540
Function at 0x428b50
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x6a8
mov rbp, rsp
mov rbx, rcx
mov rcx, rbx
call fcn.0043c3b0
mov rdi, rax
mov rcx, rdi
mov edx, 0x208
lea r8, [rbp + 0x36]
lea r9, [rbp + 0x28]
call sub.kernel32.dll_GetFullPathNameW
mov esi, eax
test esi, esi
je 0x428cb0
lea rdi, [rbp + 0x36]
mov rcx, rdi
lea rdx, [0x00428cc4]
mov r8d, 4
call fcn.0041b880
test eax, eax
jne 0x428c28
add rdi, 8
mov qword [rbp + 0x28], rdi
mov rcx, rbx
mov rdx, rdi
call fcn.0041b9d0
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x428c07
cmp qword [rbp + 0x28], rbx
jbe 0x428c07
mov rax, qword [rbp + 0x28]
movzx rdi, word [rax]
mov rax, qword [rbp + 0x28]
mov word [rax], 0
mov rcx, rbx
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
mov rax, qword [rbp + 0x28]
mov word [rax], di
cmp esi, 0xffffffff
je 0x428bff
test esi, esi
setne al
jmp 0x428cb5
xor rax, rax
jmp 0x428cb5
mov rcx, rbx
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x428c20
test esi, esi
setne al
jmp 0x428cb5
xor rax, rax
jmp 0x428cb5
cmp qword [rbp + 0x28], 0
je 0x428c39
mov rax, qword [rbp + 0x28]
cmp word [rax], 0
jne 0x428c4e
mov rcx, rdi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
setne sil
movzx rsi, sil
jmp 0x428cb0
mov rcx, rdi
mov edx, 0x37
lea r8, [rbp + 0x450]
lea r9, [rbp + 0x448]
call fcn.00427fb0
mov esi, eax
movzx rsi, sil
mov rcx, qword [rbp + 0x448]
call fcn.00428080
test esi, esi
jne 0x428cb0
cmp word [rdi + 2], 0x5c
je 0x428c9d
cmp word [rdi + 2], 0x3a
jne 0x428cb0
cmp word [rdi + 4], 0x5c
jne 0x428cb0
cmp word [rdi + 6], 0
jne 0x428cb0
mov rcx, rdi
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 1
jbe 0x428cb0
mov esi, 1
test esi, esi
setne al
lea rsp, [rbp + 0x6a8]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x432c10
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x490
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x48], 0
nop
mov rax, qword [rbp + 0x28]
test rax, rax
jne 0x432cfa
xor rbx, rbx
mov rcx, qword [rbp + 0x20]
mov edx, ebx
lea r8, [rbp + 0x286]
mov r9d, 0x20a
call sub.advapi32.dll_RegEnumKeyW
mov esi, eax
test esi, esi
je 0x432c71
cmp esi, 0x103
jne 0x432cf4
xor rsi, rsi
jmp 0x432cf4
cmp word [rbp + 0x286], 0x2e
jne 0x432cd2
mov dword [rbp + 0x78], 0x20a
mov rcx, qword [rbp + 0x20]
lea rdx, [rbp + 0x286]
lea r8, [rbp + 0x7c]
lea r9, [rbp + 0x78]
call sub.advapi32.dll_RegQueryValueW
mov esi, eax
test esi, esi
jne 0x432cf4
lea rax, [rbp + 0x286]
mov qword [rbp + 0x50], rax
mov byte [rbp + 0x58], 0xa
lea rax, [rbp + 0x7c]
mov qword [rbp + 0x60], rax
mov byte [rbp + 0x68], 0xa
lea rcx, [0x00432de4]
lea rdx, [rbp + 0x50]
mov r8d, 1
call fcn.00428e80
mov rax, qword [0x00449bf0]
cmp dword [rax], 0
je 0x432cec
mov eax, 1
mov dword [rbp + 0x34], eax
jmp 0x432da9
add ebx, 1
jmp 0x432c3e
nop
jmp 0x432da5
mov rcx, qword [rbp + 0x28]
xor rdx, rdx
call fcn.0043c1e0
mov rcx, rax
mov qword [rbp + 0x28], rcx
mov dx, 0x20
call fcn.00423550
test rax, rax
je 0x432d20
mov word [rax], 0
mov dword [rbp + 0x78], 0x20a
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x28]
lea r8, [rbp + 0x7c]
lea r9, [rbp + 0x78]
call sub.advapi32.dll_RegQueryValueW
mov esi, eax
test esi, esi
jne 0x432d73
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x50], rax
mov byte [rbp + 0x58], 0xa
lea rax, [rbp + 0x7c]
mov qword [rbp + 0x60], rax
mov byte [rbp + 0x68], 0xa
lea rcx, [0x00432de4]
lea rdx, [rbp + 0x50]
mov r8d, 1
call fcn.00428e80
jmp 0x432da5
lea rcx, [rbp + 0x48]
mov rdx, qword [0x00449c20]
call fcn.0040e3a0
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x38], rax
mov byte [rbp + 0x40], 0xa
mov rcx, qword [rbp + 0x48]
mov edx, 1
lea r8, [rbp + 0x38]
xor r9, r9
call fcn.0043b7f0
mov dword [rbp + 0x34], esi
nop
lea rcx, [rbp + 0x48]
call fcn.0040a110
mov eax, dword [rbp + 0x34]
lea rsp, [rbp + 0x490]
pop rbx
pop rsi
pop rbp
ret
Function at 0x43b5e0
Capabilities:
Set current directory

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x258
mov rbp, rsp
mov dword [rbp + 0x24], ecx
mov qword [rbp + 0x28], 0
nop
xor rdi, rdi
mov word [rbp + 0x248], 0x3d
mov eax, dword [rbp + 0x24]
add ax, 0x40
mov word [rbp + 0x24a], ax
mov word [rbp + 0x24c], 0x3a
mov word [rbp + 0x24e], 0
xor rsi, rsi
lea rcx, [rbp + 0x248]
call fcn.00425eb0
mov rbx, rax
test rbx, rbx
je 0x43b64b
mov rcx, rbx
call sub.kernel32.dll_SetCurrentDirectoryW
test eax, eax
setne sil
test sil, sil
jne 0x43b6d7
test rbx, rbx
je 0x43b666
mov ecx, 1
call sub.kernel32.dll_SetErrorMode
mov edi, eax
movzx rax, word [rbp + 0x24a]
mov word [rbp + 0x3e], ax
movzx rax, word [rbp + 0x24c]
mov word [rbp + 0x40], ax
mov word [rbp + 0x42], 0x5c
mov word [rbp + 0x44], 0
lea rcx, [rbp + 0x248]
lea rdx, [rbp + 0x3e]
call fcn.00426220
lea rcx, [rbp + 0x3e]
call sub.kernel32.dll_SetCurrentDirectoryW
test eax, eax
jne 0x43b6cb
lea rcx, [rbp + 0x28]
mov rdx, qword [0x00449880]
call fcn.0040e3a0
mov rcx, qword [rbp + 0x28]
xor rdx, rdx
lea r8, [rbp + 0x28]
or r9d, 0xffffffff
call fcn.0043b7f0
test rbx, rbx
je 0x43b6d7
mov ecx, edi
call sub.kernel32.dll_SetErrorMode
mov rcx, qword [0x00449f58]
xor rdx, rdx
call fcn.004285e0
nop
lea rcx, [rbp + 0x28]
call fcn.0040a110
lea rsp, [rbp + 0x258]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x43c000
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov esi, edx
xor rdi, rdi
mov rcx, rbx
mov edx, 1
call sub.kernel32.dll_TerminateProcess
test eax, eax
jne 0x43c02c
call sub.kernel32.dll_GetLastError_2
mov dword [0x00448f4c], eax
test esi, esi
je 0x43c03a
mov rcx, rbx
call fcn.0043c050
mov edi, eax
mov eax, edi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x43c260
Capabilities:
Get disk information

Disassembly:
push rbp
sub rsp, 0x30
mov rbp, rsp
mov word [rbp + 0x28], cx
mov word [rbp + 0x2a], 0x3a
mov word [rbp + 0x2c], 0x5c
mov word [rbp + 0x2e], 0
lea rcx, [rbp + 0x28]
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 1
ja 0x43c291
xor rax, rax
jmp 0x43c293
mov al, 1
lea rsp, [rbp + 0x30]
pop rbp
ret

Function at 0x43c2a0
Capabilities:
Get disk information

Disassembly:
push rbp
sub rsp, 0x260
mov rbp, rsp
mov word [rbp + 0x44], cx
mov word [rbp + 0x46], 0x3a
mov word [rbp + 0x48], 0x5c
mov word [rbp + 0x4a], 0
lea rcx, [rbp + 0x44]
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 1
ja 0x43c2d3
mov al, 1
jmp 0x43c330
cmp eax, 2
je 0x43c32d
cmp eax, 5
je 0x43c32d
lea rcx, [rbp + 0x44]
lea rdx, [rbp + 0x4e]
mov r8d, 0x104
lea r9, [rbp + 0x258]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x38], 0
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
jne 0x43c32d
call sub.kernel32.dll_GetLastError_2
cmp eax, 5
jne 0x43c32d
mov al, 1
jmp 0x43c330
xor rax, rax
lea rsp, [rbp + 0x260]
pop rbp
ret

Function at 0x43c920
Capabilities:
Set console window title

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x30
mov rbp, rsp
mov rbx, rcx
test rbx, rbx
je 0x43ca1e
mov rax, qword [0x00449990]
cmp qword [rax], 0
jne 0x43ca1e
mov rax, qword [0x00449788]
cmp byte [rax], 0
jne 0x43ca1e
mov ecx, 0x20c
call fcn.00404ae0
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x43ca1e
mov rcx, qword [rbp + 0x28]
mov edx, 0x104
call sub.kernel32.dll_GetConsoleTitleW
mov esi, eax
test esi, esi
je 0x43ca1e
mov rcx, rbx
call fcn.004235c0
lea rcx, [rbp + 0x28]
mov edx, esi
add edx, eax
add edx, dword [0x004670b4]
add edx, 0xa
add edx, edx
mov edx, edx
call fcn.00404b40
cmp qword [rbp + 0x28], 0
je 0x43ca1e
mov rax, qword [0x00449ae8]
cmp byte [rax], 0
je 0x43c9d7
mov rax, qword [rbp + 0x28]
mov ecx, dword [0x004670b4]
lea rcx, [rax + rcx*2]
mov rdx, rbx
call fcn.004235e0
jmp 0x43ca0c
mov rcx, qword [rbp + 0x28]
lea rdx, [0x0043ca28]
call fcn.00423600
mov rcx, qword [rbp + 0x28]
call fcn.004235c0
mov dword [0x004670b4], eax
mov rcx, qword [rbp + 0x28]
mov rdx, rbx
call fcn.00423600
mov rax, qword [0x00449ae8]
mov byte [rax], 1
mov rcx, qword [rbp + 0x28]
call sub.kernel32.dll_SetConsoleTitleW
mov rcx, qword [rbp + 0x28]
call fcn.00404b10
lea rsp, [rbp + 0x30]
pop rbx
pop rsi
pop rbp
ret
Function at 0x43ca30
Capabilities:
Set console window title

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x43ca6b
mov rax, qword [0x00449990]
cmp qword [rax], 0
jne 0x43ca6b
mov rax, qword [0x00449ae8]
cmp byte [rax], 0
je 0x43ca6b
call sub.kernel32.dll_SetConsoleTitleW
mov dword [0x004670b4], 0
mov rax, qword [0x00449ae8]
mov byte [rax], 0
add rsp, 0x28
ret

Function at 0x43cd60
Capabilities:
Encrypt data using rc6

Disassembly:
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rcx, qword [0x00467178]
lea rdx, [rsp + 0x20]
mov r8d, 0x40
call fcn.00404eb0
mov dword [0x004670bc], 0xb7e15163
mov ebx, 1
lea rax, [0x004670bc]
movsxd rcx, ebx
lea rdx, [0x004670b8]
movsxd r8, ebx
mov edx, dword [rdx + r8*4]
add edx, 0x9e3779b9
mov dword [rax + rcx*4], edx
add ebx, 1
cmp ebx, 0x2c
jne 0x43cd93
nop
xor rbx, rbx
xor rsi, rsi
xor r13, r13
xor r14, r14
mov edi, 1
lea rax, [0x004670bc]
movsxd rcx, ebx
mov ecx, dword [rax + rcx*4]
add ecx, r13d
add ecx, r14d
mov edx, 3
call fcn.0043cbb0
mov r13d, eax
lea rax, [0x004670bc]
movsxd rcx, ebx
mov dword [rax + rcx*4], r13d
movsxd rax, esi
mov ecx, dword [rsp + rax*4 + 0x20]
add ecx, r13d
add ecx, r14d
mov edx, r13d
add edx, r14d
call fcn.0043cbb0
mov r14d, eax
movsxd rax, esi
mov dword [rsp + rax*4 + 0x20], r14d
mov eax, ebx
add eax, 1
mov ecx, 0x2c
cdq
idiv ecx
mov rbx, rdx
mov eax, esi
add eax, 1
mov ecx, 0x10
cdq
idiv ecx
mov rsi, rdx
add edi, 1
cmp edi, 0x85
jne 0x43cdcf
nop
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop r13
pop r14
ret

Function at 0x43d3a0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x240
mov rbp, rsp
mov rbx, rcx
xor rsi, rsi
mov rcx, 0xffffffff80000002
lea rdx, [0x0043d4a0]
xor r8, r8
mov r9d, 0x20019
lea rax, [rbp + 0x238]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x43d479
mov rcx, qword [rbp + 0x238]
lea rdx, [0x0043d4e0]
xor r8, r8
lea r9, [rbp + 0x30]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x34]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x43d419
mov sil, 1
jmp 0x43d479
mov rcx, 0xffffffff80000002
lea rdx, [0x0043d4a0]
xor r8, r8
mov r9d, 0x20119
lea rax, [rbp + 0x238]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x43d479
mov rcx, qword [rbp + 0x238]
lea rdx, [0x0043d4e0]
xor r8, r8
lea r9, [rbp + 0x30]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x34]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x43d479
mov sil, 1
test sil, sil
je 0x43d491
mov rcx, rbx
lea rdx, [rbp + 0x38]
mov r8d, pe_nt_image_headers64
call fcn.0040b000
mov rax, rbx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rbp
ret
Function at 0x140001b50
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 0x140001b78
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 0x140001b9e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140001ba0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140001bf9
test ecx, ecx
jle 0x140001bd9
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 0x140001bf9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140001bf9
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
Function at 0x140001c20
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140001c51
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je 0x140001c6f
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140001c8b
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140001c8d
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140001cc9
mov qword [rsp + 0x38], 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 + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140001d5e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140001d04
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 0x140001d3e
nop dword [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 0x140001d5e
cmp rbx, rax
ja 0x140001d10
test rbx, rbx
je 0x140001d5e
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
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x1400021a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400021c4
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
mov rax, qword [rcx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x140002207
mov rdx, qword [rbx + 0x58]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x140002207
lea eax, [r8 - 1]
mov dword [rdx], eax
mov rcx, qword [rbx + 0x40]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
mov eax, edi
mov byte [rdx], dil
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0x80], rsi
je 0x140002338
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000224a
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 0x140002275
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
cmove edi, ecx
mov eax, edi
jmp 0x14000233d
lea rax, [rsp + 0x90]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x98]
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 0x1400022ea
sub eax, 1
je 0x1400022ea
cmp eax, 2
jne 0x140002338
movsx ecx, byte [rsp + 0x40]
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
cmove edi, ecx
mov eax, edi
jmp 0x14000233d
mov rsi, qword [rsp + 0x90]
lea rax, [rsp + 0x48]
sub rsi, rax
je 0x14000231b
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x48]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140002338
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x98], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14000233d
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x1400025a0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002669
cmp byte [rcx + 0x71], 0
je 0x140002669
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x68], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000265c
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x60]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
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 0x140002618
sub eax, 1
je 0x14000261c
cmp eax, 2
jne 0x14000265c
mov rdi, qword [rsp + 0x68]
mov al, 1
mov byte [rbx + 0x71], 0
add rsp, 0x50
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x14000264a
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000265c
cmp byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x68]
sete al
add rsp, 0x50
pop rbx
ret
mov rdi, qword [rsp + 0x68]
xor al, al
add rsp, 0x50
pop rbx
ret
mov al, 1
add rsp, 0x50
pop rbx
ret
Function at 0x14000b44c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14000b486
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14000b48b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14000b4d4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14000e600]
cmp byte [rcx + rax], 0
je 0x14000b4d4
dec r8
sub rdx, 1
jne 0x14000b4ba
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14000c434
Capabilities:
Parse pe header

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