joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140246d70
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x1404394c0]
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x2c]
lea r9, [rsp + 0x30]
movzx eax, byte [rcx]
add rcx, 1
add rdx, 2
mov r8d, eax
and eax, 0xf
shr r8b, 4
add eax, 0x61
add r8d, 0x41
mov byte [rdx - 1], al
mov byte [rdx - 2], r8b
cmp rcx, r9
jne 0x140246d93
lea rax, [0x1404394c8]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x140246ddb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140246dd8
lea rax, [0x140439500]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x140246e0b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140246e08
xor ecx, ecx
mov byte [0x140439519], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x140439522], rdx
lea r8, [0x1404394c0]
lea rbx, [0x14043951a]
mov qword [0x140439532], rdx
mov qword [0x140439542], rdx
mov qword [0x140439552], rdx
xor edx, edx
mov qword [0x14043951a], rax
mov qword [0x14043952a], rax
mov qword [0x14043953a], rax
mov qword [0x14043954a], rax
mov byte [0x14043955a], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140246fe6
lea rcx, [0x140439500]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x140246f31
lea rsi, [0x140439400]
lea r8, [0x14043955a]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x140246edd
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x140246ed0
lea rcx, [0x140439500]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x140246fd3
lea rcx, [0x140246c80]
mov qword [0x140439400], rsi
call sub.msvcrt.dll__onexit
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x140439400]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x140439500]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x14043955a]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x140247006
nop dword [rax]
cmp byte [rax], 0x41
jne 0x140246f83
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x140246f70
mov rax, rdx
mov qword [0x140439400], rax
lea rsi, [0x140439400]
jmp 0x140246fa9
cmp rdx, rsi
je 0x140246f0f
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x140246fa0
cmp rdx, rsi
je 0x140246f0f
mov qword [rdx + 8], rsi
lea rcx, [0x140246c80]
call sub.msvcrt.dll__onexit
jmp 0x140246f0f
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.140246bf0
xor eax, eax
jmp 0x140246f28
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.140246bf0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
lea rcx, str.failed_to_get_string_from_atom_n
call fcn.140246bf0
xor eax, eax
jmp 0x140246f8f
Function at 0x140001000
Capabilities:
Download url
Execute command
Receive data

Disassembly:
sub rsp, 0x38
call fcn.140001640
call fcn.140001250
xor r9d, r9d
mov qword [rsp + 0x20], 0
lea r8, str.C:WindowsIMEAMIDEWINx64.EXE
xor ecx, ecx
lea rdx, str.https:__github.com_Niplix_AMIDEWIN_Spoofing_raw_main_AMIDEWINx64.EXE
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
xor r9d, r9d
mov qword [rsp + 0x20], 0
lea r8, str.C:WindowsIME_amifldrv64.sys
xor ecx, ecx
lea rdx, str.https:__github.com_swiftyyofc_adamveteska_raw_main_amifldrv64.sys
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
xor r9d, r9d
mov qword [rsp + 0x20], 0
lea r8, str.C:WindowsIME_amigendrv64.sys
xor ecx, ecx
lea rdx, str.https:__github.com_swiftyyofc_adamveteska_raw_main_amigendrv64.sys
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
call fcn.140001410
lea rcx, [0x1400033d0]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
add rsp, 0x38
ret
Function at 0x140001250
Capabilities:
Execute command
Self delete

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp - 0x10], rax
lea r8, str.USERNAME
lea rdx, [rbp - 0x18]
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__dupenv_s]
cmp qword [rbp - 0x40], 0
je 0x1400013f1
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
xor eax, eax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
lea ecx, [rax + 0x20]
call fcn.140001da0
mov rbx, rax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x28], 0x13
mov qword [rbp - 0x20], 0x1f
movups xmm0, xmmword [str.del__s__q_C:Users_]
movups xmmword [rax], xmm0
movzx ecx, word [0x140003440]
mov word [rax + 0x10], cx
movzx ecx, byte [0x140003442]
mov byte [rax + 0x12], cl
mov byte [rax + 0x13], 0
mov r9, qword [rbp - 0x40]
mov rdi, 0xffffffffffffffff
nop
inc rdi
cmp byte [r9 + rdi], 0
jne 0x1400012f0
cmp rdi, 0xc
ja 0x14000131e
lea rax, [rdi + 0x13]
mov qword [rbp - 0x28], rax
mov r8, rdi
mov rdx, r9
lea rcx, [rbx + 0x13]
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rdi + 0x13], 0
jmp 0x14000132f
mov qword [rsp + 0x20], rdi
mov rdx, rdi
lea rcx, [rbp - 0x38]
call fcn.140001be0
mov rcx, qword [rbp - 0x28]
mov rdx, qword [rbp - 0x20]
mov rax, rdx
sub rax, rcx
cmp rax, 0x15
jb 0x140001376
lea rax, [rcx + 0x15]
mov qword [rbp - 0x28], rax
lea rbx, [rbp - 0x38]
cmp rdx, 0xf
cmova rbx, qword [rbp - 0x38]
add rbx, rcx
mov r8d, 0x15
lea rdx, str.AppDataLocalTemp
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x15], 0
jmp 0x140001394
mov qword [rsp + 0x20], 0x15
lea r9, str.AppDataLocalTemp
mov edx, 0x15
lea rcx, [rbp - 0x38]
call fcn.140001be0
lea rcx, [rbp - 0x38]
cmp qword [rbp - 0x20], 0xf
cmova rcx, qword [rbp - 0x38]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 0xf
jbe 0x1400013f1
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400013ec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400013ec
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001de4
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140001d80
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x100001834
Capabilities:
Write file on windows

Disassembly:
test rdx, rdx
je 0x1000019c5
mov r11, rsp
mov dword [r11 + 0x18], r8d
mov qword [r11 + 0x20], r9
push rbx
push rsi
push rdi
sub rsp, 0x60
and qword [r11 - 0x30], 0
cmp qword [rdx], 0
mov eax, ecx
mov rbx, rdx
mov ecx, 0x900
je 0x1000019be
test eax, eax
lea rax, [r11 + 0x20]
mov edx, 0x1300
cmovne ecx, edx
mov qword [r11 - 0x28], rax
lea rax, [r11 - 0x28]
mov qword [r11 - 0x48], rax
and dword [rsp + 0x28], 0
lea rax, [r11 - 0x30]
xor r9d, r9d
xor edx, edx
mov qword [r11 - 0x58], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
jne 0x1000018e9
mov rcx, qword [0x100005120]
lea rax, [0x100005120]
cmp rcx, rax
je 0x1000019ae
test byte [rcx + 0x1c], 1
je 0x1000019ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x100005120]
lea r8, [0x100001370]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0xe
call fcn.100001604
jmp 0x1000019ae
cmp dword [rbx + 8], 0
je 0x100001910
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rbx]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x100001997
lea edx, [rax + 1]
xor ecx, ecx
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
jne 0x100001954
mov rcx, qword [0x100005120]
lea rax, [0x100005120]
cmp rcx, rax
je 0x1000019ae
test byte [rcx + 0x1c], 1
je 0x1000019ae
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0xf]
lea r8, [0x100001370]
call fcn.1000015d8
jmp 0x1000019ae
mov rcx, qword [rsp + 0x48]
mov rdx, rax
call qword [sym.imp.USER32.dll_CharToOemW]
test eax, eax
je 0x10000198e
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
and qword [rsp + 0x20], rax
repne scasb al, byte [rdi]
lea r9, [rsp + 0x40]
not rcx
mov rdx, rsi
lea r8, [rcx - 1]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1000019be
call qword [sym.imp.KERNEL32.dll_LocalFree]
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
Function at 0x100002c88
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x180
mov rax, qword [0x100005110]
xor rax, rsp
mov qword [rsp + 0x170], rax
cmp qword [0x100006400], 0
jne 0x100002df6
cmp byte [0x1000063e8], 0
jne 0x100002d77
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100002ce7
cmp dword [rsp + 0x54], 6
setb al
mov byte [0x1000063e9], al
test al, al
jne 0x100002d4a
lea rcx, [0x100001500]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x100002d42
lea rdx, [0x100001520]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1000063f0], rax
test rax, rax
je 0x100002d42
lea rdx, [0x100001530]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x100005620], rax
test rax, rax
jne 0x100002d53
lea rax, [0x100002ad0]
mov qword [0x100005620], rax
mov al, 1
mov byte [0x1000063e9], al
mov byte [0x1000063e8], 1
jmp 0x100002d7d
lea rdx, [0x100001540]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1000063f8], rax
test rax, rax
je 0x100002d34
mov al, byte [0x1000063e9]
jmp 0x100002d4a
mov al, byte [0x1000063e9]
test al, al
jne 0x100002da5
lea r9, [0x100006400]
lea r8, [0x100006408]
lea rdx, [0x100002a94]
lea rcx, [0x100001550]
call qword [0x100005620]
jmp 0x100002df6
and qword [rsp + 0x48], 0
lea rdx, [0x100006408]
lea rax, [0x100001550]
mov qword [rsp + 0x38], rdx
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
lea rcx, [rsp + 0x40]
mov r9d, 1
mov r8, rax
mov qword [rsp + 0x20], rcx
lea rcx, [0x100002a04]
mov qword [0x100006400], rdx
mov qword [rsp + 0x40], rax
call qword [sym.imp.ADVAPI32.dll_RegisterTraceGuidsW]
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.100003390
add rsp, 0x180
pop rbx
ret

Function at 0x100002ee4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rdi, rdx
mov qword [rsp + 0x40], rbx
cmp rcx, rbx
jne 0x100002f12
lea ecx, [rbx + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100002f92
cmp rdx, rbx
je 0x100002f40
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x100002f88
mov rcx, qword [rsp + 0x40]
cmp rcx, rbx
jne 0x100002f45
jmp 0x100002f88
mov qword [rsp + 0x40], rcx
lea rdx, [0x100001560]
cmp rdx, rbx
je 0x100002f76
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x40]
cmp eax, ebx
mov esi, ebx
sete sil
jmp 0x100002f7b
mov esi, 1
cmp rdi, rbx
je 0x100002f86
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, esi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x100002fa8
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rdi
sub rsp, 0x40
and qword [rax - 0x10], 0
and dword [rax + 8], 0
and dword [rax - 0x18], 0
mov rbx, rdx
mov dword [rax + 0x20], 4
test rcx, rcx
jne 0x100002fe2
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100003071
test rdx, rdx
je 0x100003012
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10000300e
mov rcx, qword [rsp + 0x38]
test rcx, rcx
jne 0x100003017
mov ecx, eax
jmp 0x100002fd5
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x30]
lea rdx, [0x100001560]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x100003050
cmp dword [rsp + 0x68], 4
je 0x100003055
lea edi, [rax + 0xd]
and dword [rsp + 0x50], 0
test rbx, rbx
je 0x100003065
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x1000035e4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100003631
cmp rcx, 0xffffffffffffffff
je 0x100003631
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x100003629
cmp dword [rcx + 0x3c], edx
jl 0x100003629
cmp dword [rcx + 0x3c], 0x10000000
jae 0x100003629
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x100003631
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140006f9c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140006dc8
Function at 0x140f15058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140f151df
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 0x140f15089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f1506f
add dl, dl
jne 0x140f15096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f150f6
xor eax, eax
add dl, dl
jne 0x140f150a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f151ad
add dl, dl
jne 0x140f150b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f150c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f150d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f150dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140f150ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140f1507e
mov eax, 1
add dl, dl
jne 0x140f15106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f15113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f150fb
sub eax, ebx
mov ebx, 1
jne 0x140f1514c
mov ecx, 1
add dl, dl
jne 0x140f1512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140f1513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f15123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f1507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140f15168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140f15175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f1515d
cmp eax, 0x7d00
jae 0x140f1519b
cmp eax, 0x500
jb 0x140f15196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f1507e
cmp eax, 0x7f
ja 0x140f1519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f1507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140f151d2
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 0x140f1507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001000
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x140022008]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov edi, r8d
mov rax, rdx
mov rsi, rcx
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rcx + rbx*2], 0
jne 0x140001030
xor r14d, r14d
xor r9d, r9d
mov qword [rsp + 0x30], r14
xor r8d, r8d
mov dword [rsp + 0x28], 0x80
mov edx, 0x40000000
mov rcx, rax
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140001076
xor eax, eax
jmp 0x140001102
mov r9d, edi
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x38], r14
lea r9d, [rbx + rbx]
mov qword [rsp + 0x30], r14
mov r8, rsi
mov dword [rsp + 0x28], ebx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r14
mov r8d, ebx
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140003290
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180003d50
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 0x180003d78
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 0x180003d9e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x180003da0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x180003df9
test ecx, ecx
jle 0x180003dd9
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 0x180003df9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x180003df9
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 0x180003e20
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 0x180003e51
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 0x180003e6f
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 0x180003e8b
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180003e8d
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180003ec9
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 0x180003f5e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x180003f04
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 0x180003f3e
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 0x180003f5e
cmp rbx, rax
ja 0x180003f10
test rbx, rbx
je 0x180003f5e
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 0x180004390
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x18011e040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1800043bd
xor eax, eax
jmp 0x180004529
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1800043f7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1800043f7
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 0x180004529
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x18000451c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18000443a
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 0x180004465
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 0x180004521
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
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 0x1800044d4
sub eax, 1
je 0x1800044d4
cmp eax, 2
jne 0x18000451c
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
cmovne ecx, edi
mov eax, ecx
jmp 0x180004521
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x180004502
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 0x18000451c
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x180004521
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1800ac6b0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret