joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140163a50
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov eax, dword [0x14022b56c]
xor r12d, r12d
test eax, eax
mov ebp, r12d
jne 0x140163aac
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x140163a8c
mov dword [0x14022b56c], 1
jmp 0x140163abf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x140163aa6
mov dword [0x14022b56c], 2
jmp 0x140163b29
mov eax, dword [0x14022b56c]
cmp eax, 1
jne 0x140163b20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x140163afa
cmp word [rdi], bp
mov rax, rdi
je 0x140163ad9
add rax, 2
cmp word [rax], bp
jne 0x140163ac7
add rax, 2
cmp word [rax], bp
jne 0x140163ac7
sub eax, edi
add eax, 2
movsxd rsi, eax
mov rcx, rsi
call fcn.14016a140
test rax, rax
mov rbx, rax
jne 0x140163b01
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x140163c1b
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call fcn.1401604f0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbx
jmp 0x140163c1b
cmp eax, 2
je 0x140163b29
test eax, eax
jne 0x140163afa
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rsi, rax
je 0x140163afa
cmp byte [rax], bpl
mov rbx, rax
je 0x140163b78
nop
or r9d, 0xffffffff
mov r8, rbx
xor ecx, ecx
lea edx, [r9 + 2]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x140163afa
or rcx, 0xffffffffffffffff
add ebp, eax
mov rdi, rbx
xor eax, eax
repne scasb al, byte [rdi]
not rcx
add rbx, rcx
cmp byte [rbx], al
jne 0x140163b40
add ebp, 1
mov edx, 2
movsxd rcx, ebp
call fcn.14016a1b0
test rax, rax
mov r12, rax
jne 0x140163b9d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x140163c1b
cmp byte [rsi], 0
mov qword [rsp + 0x50], r13
mov rbx, rax
mov r13, rsi
je 0x140163c05
nop
or r9d, 0xffffffff
mov eax, ebp
mov rcx, rbx
sub rcx, r12
lea edx, [r9 + 2]
mov r8, r13
sar rcx, 1
sub eax, ecx
xor ecx, ecx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x140163c2e
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r13
repne scasb al, byte [rdi]
mov rdi, rbx
not rcx
add r13, rcx
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
cmp byte [r13], al
not rcx
lea rbx, [rbx + rcx*2]
jne 0x140163bb0
mov rcx, rsi
mov word [rbx], 0
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rax, r12
mov r13, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov rcx, r12
call fcn.14015dea0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x140163c16
Function at 0x140164b57
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14020e318]
jne 0x14015b70a
rol rcx, 0x10
test cx, 0xffff
jne 0x14015b706
repz ret
ror rcx, 0x10
jmp 0x140164ab0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14022b620]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14022b718]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140164b35
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14022b620]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140164b57
mov rax, qword [rsp + 0x88]
mov qword [0x14022b718], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14022b6b8], rax
mov rax, qword [0x14022b718]
mov qword [0x14022b590], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14022b6a0], rax
mov dword [0x14022b580], 0xc0000409
mov dword [0x14022b584], 1
mov rax, qword [0x14020e318]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14020e320]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14022b618], eax
mov ecx, 1
call fcn.14016ee40
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140199b08]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14022b618], 0
jne 0x140164bde
mov ecx, 1
call fcn.14016ee40
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140174b40
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov edi, r8d
mov r13, rdx
mov r14, rcx
call fcn.1401641f0
xor ebx, ebx
cmp qword [0x14022bed0], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x140174c6c
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x140174d7f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140174d7f
mov rcx, rax
call fcn.140164120
lea rdx, [0x140199f88]
mov rcx, rsi
mov qword [0x14022bed0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140164120
lea rdx, [0x140199f70]
mov rcx, rsi
mov qword [0x14022bed8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140164120
lea rcx, [rsp + 0x98]
mov qword [0x14022bee0], rax
call fcn.1401609f0
test eax, eax
je 0x140174c1f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.14015f440
cmp dword [rsp + 0x98], 2
jne 0x140174c6c
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140164120
test rax, rax
mov qword [0x14022bef0], rax
je 0x140174c6c
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140164120
mov qword [0x14022bee8], rax
mov rcx, qword [0x14022bee8]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x140174d18
cmp qword [0x14022bef0], rbp
je 0x140174d18
call fcn.1401642e0
mov rcx, qword [0x14022bef0]
mov rsi, rax
call fcn.1401642e0
test rsi, rsi
mov r12, rax
je 0x140174d18
test rax, rax
je 0x140174d18
call rsi
test rax, rax
je 0x140174ce3
lea rcx, [rsp + 0x34]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140174ce3
test byte [rsp + 0x40], 1
jne 0x140174d18
lea rcx, [rsp + 0x30]
call fcn.140160a40
test eax, eax
je 0x140174d05
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.14015f440
cmp dword [rsp + 0x30], 4
jb 0x140174d12
bts edi, 0x15
jmp 0x140174d56
bts edi, 0x12
jmp 0x140174d56
mov rcx, qword [0x14022bed8]
cmp rcx, rbp
je 0x140174d56
call fcn.1401642e0
test rax, rax
je 0x140174d56
call rax
test rax, rax
mov rbx, rax
je 0x140174d56
mov rcx, qword [0x14022bee0]
cmp rcx, rbp
je 0x140174d56
call fcn.1401642e0
test rax, rax
je 0x140174d56
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14022bed0]
call fcn.1401642e0
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x140174d7f
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140174d81
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x140177350
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14020e318]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x140177397
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14015b6f0
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.140177c40
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14015b6f0
add rsp, 0x38
ret

Function at 0x140177fa0
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rdi
sub rsp, 0x140
mov rax, qword [0x14020e318]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov qword [r11 + 8], rbp
lea rdx, [rsp + 0x20]
xor ebx, ebx
mov ecx, 0x105
mov qword [r11 + 0x10], rsi
lea rdi, [rsp + 0x20]
mov ebp, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp eax, 0x104
mov esi, eax
jle 0x140178038
mov qword [rsp + 0x160], r12
lea r12d, [rax + 1]
lea edx, [rbx + 1]
movsxd rcx, r12d
call fcn.14016a1b0
test rax, rax
mov rdi, rax
jne 0x140178019
call fcn.1401600f0
mov esi, ebx
mov dword [rax], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
jmp 0x140178030
test esi, esi
mov ebp, 1
je 0x140178030
mov rdx, rax
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov r12, qword [rsp + 0x160]
test esi, esi
mov rsi, qword [rsp + 0x158]
je 0x140178057
cmp byte [rdi + 1], 0x3a
jne 0x140178062
movzx ecx, byte [rdi]
call fcn.1401795c0
lea ebx, [rax - 0x40]
jmp 0x140178062
call fcn.1401600f0
mov dword [rax], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
test ebp, ebp
mov rbp, qword [rsp + 0x150]
je 0x140178076
mov rcx, rdi
call fcn.14015dea0
mov eax, ebx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14015b6f0
mov rbx, qword [rsp + 0x168]
add rsp, 0x140
pop rdi
ret
Function at 0x140178b00
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r13
sub rsp, 0x20
mov rbp, rdx
xor edi, edi
xor edx, edx
lea r8d, [rdi + 1]
mov esi, ecx
call fcn.140174fe0
cmp rax, 0xffffffffffffffff
mov r13, rax
je 0x140178ca4
lea r8d, [rdi + 2]
xor edx, edx
mov ecx, esi
call fcn.140174fe0
cmp rax, 0xffffffffffffffff
je 0x140178ca4
mov qword [rsp + 0x40], rbx
mov rbx, rbp
mov qword [rsp + 0x50], r14
sub rbx, rax
test rbx, rbx
jle 0x140178c23
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r14d, 0x1000
lea edx, [rdi + 8]
mov rcx, rax
mov r8, r14
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbp, rax
jne 0x140178ba9
call fcn.1401600f0
mov dword [rax], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
call fcn.1401600f0
mov eax, dword [rax]
mov rbx, qword [rsp + 0x40]
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop rdi
pop rsi
ret
mov edx, 0x8000
mov ecx, esi
mov qword [rsp + 0x48], r12
call fcn.140178cc0
mov r12d, eax
nop
mov r8d, ebx
cmp rbx, r14
mov rdx, rbp
cmovge r8d, r14d
mov ecx, esi
call fcn.140167310
cmp eax, 0xffffffff
je 0x140178be5
cdqe
sub rbx, rax
test rbx, rbx
jg 0x140178bc0
jmp 0x140178bfe
call fcn.140160120
cmp dword [rax], 5
jne 0x140178bfa
call fcn.1401600f0
mov dword [rax], SafeArrayDestroy
or rdi, 0xffffffffffffffff
mov edx, r12d
mov ecx, esi
call fcn.140178cc0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r12, qword [rsp + 0x48]
jmp 0x140178c7c
test rbx, rbx
jns 0x140178c86
xor r8d, r8d
mov rdx, rbp
mov ecx, esi
call fcn.140174fe0
cmp rax, 0xffffffffffffffff
je 0x140178b8a
mov ecx, esi
call fcn.140161840
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb rdi, rdi
neg rdi
sub rdi, 1
cmp rdi, 0xffffffffffffffff
jne 0x140178c86
call fcn.1401600f0
mov dword [rax], SafeArrayDestroy
call fcn.140160120
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
cmp rdi, 0xffffffffffffffff
je 0x140178b8a
xor r8d, r8d
mov rdx, r13
mov ecx, esi
call fcn.140174fe0
cmp rax, 0xffffffffffffffff
je 0x140178b8a
xor eax, eax
jmp 0x140178b91
call fcn.1401600f0
mov rbp, qword [rsp + 0x58]
mov eax, dword [rax]
add rsp, 0x20
pop r13
pop rdi
pop rsi
ret
Function at 0x14017d1f4
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x14020e318]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.1401601f0
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x140000000]
mov esi, 0x94
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call fcn.1401601f0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x14017d287
cmp dword [rsp + 0x24], 5
jb 0x14017d2a1
jmp 0x14017d29d
cmp dword [rsp + 0x30], esi
jne 0x14017d2a1
cmp dword [rsp + 0x24], 4
ja 0x14017d29d
jne 0x14017d2a1
cmp dword [rsp + 0x28], 0
jbe 0x14017d2a1
mov byte [rbx + 0x18], sil
lea rax, [0x14019b1c0]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.14017d034
movzx ecx, byte [0x14022de28]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x14022de28], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14015b6f0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140003120
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 0x140003148
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 0x14000316e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140003170
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400031c9
test ecx, ecx
jle 0x1400031a9
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 0x1400031c9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400031c9
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 0x1400031f0
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 0x140003212
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140003228
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 0x140003244
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140003246
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140003282
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 0x14000331e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400032bd
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 0x1400032fe
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 0x14000331e
cmp rbx, rax
ja 0x1400032d0
test rbx, rbx
je 0x14000331e
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
Function at 0x140003780
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14002b040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400037ad
xor eax, eax
jmp 0x140003919
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400037e7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400037e7
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 0x140003919
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000390c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000382a
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 0x140003855
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 0x140003911
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 0x1400038c4
sub eax, 1
je 0x1400038c4
cmp eax, 2
jne 0x14000390c
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 0x140003911
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400038f2
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 0x14000390c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140003911
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140004a10
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140003bf0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14002b040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140003cc3
cmp byte [rcx + 0x71], 0
je 0x140003cc3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140003cbf
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 0x140003c84
sub eax, 1
je 0x140003c88
cmp eax, 2
jne 0x140003cbf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004a10
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140003cb6
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 0x140003cbf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140003c6c
xor al, al
jmp 0x140003c6c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004a10
add rsp, 0x60
pop rbx
ret

Function at 0x140005774
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400057be
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400057be
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400057be
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400057be
cmp dword [rcx + 0x84], 0xe
jbe 0x1400057be
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400057c0
xor al, al
add rsp, 0x28
ret
Function at 0x140001000
Capabilities:
Identify system language via api

Disassembly:
sub rsp, 0x848
mov rax, rcx
mov qword [rsp + 0x858], rdx
mov qword [rsp + 0x860], r8
mov qword [rsp + 0x868], r9
lea rcx, [rsp + 0x858]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
mov ecx, 6
mov r8d, 0x800
mov r9, rax
call qword [sym.imp.ucrtbase.dll___stdio_common_vsprintf]
cmp byte [0x140007048], 1
jne 0x140001072
lea rcx, [0x1400052f0]
lea rdx, [rsp + 0x40]
call sym.wine_dbg_printf
jmp 0x14000109b
call qword [sym.imp.kernel32.dll_GetUserDefaultLangID]
mov word [rsp + 0x20], ax
mov dword [rsp + 0x28], 0
lea r8, str.MsiExec
lea rdx, [rsp + 0x40]
xor ecx, ecx
xor r9d, r9d
call sym.MsiMessageBoxA
nop
add rsp, 0x848
ret
Function at 0x140002fe0
Capabilities:
Identify system language via api
Terminate process

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2a0
mov esi, ecx
lea rcx, [0x1400056e9]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
mov rdi, rax
mov word [rsp + 0x90], 0
lea rdx, [rsp + 0x90]
mov rcx, rax
mov r8d, 0x104
call qword [sym.imp.kernel32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140003056
test byte [section..data], 2
je 0x140003056
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x68]
mov dword [rsp + 0x20], eax
lea r8, str.ShowUsage
lea r9, str.GetModuleFileName_failed:__ld_n
mov ecx, 1
call sym.wine_dbg_log
mov dword [rsp + 0x34], 0x28
mov word [rsp + 0x40], 0
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x90]
lea rdx, [rsp + 0x40]
lea r8, [rsp + 0x34]
xor r9d, r9d
call sym.MsiGetFileVersionW
test eax, eax
je 0x1400030b1
test byte [section..data], 2
je 0x1400030b1
mov dword [rsp + 0x20], eax
lea r8, str.ShowUsage
lea r9, str.MsiGetFileVersion_failed_with__ld_n
mov ecx, 1
call sym.wine_dbg_log
lea r8, [rsp + 0x38]
mov rcx, rdi
mov edx, 0xa
xor r9d, r9d
call qword [sym.imp.user32.dll_LoadStringW]
mov r14d, eax
mov dword [rsp + 0x34], eax
inc r14d
lea rcx, [r14 + r14]
mov rbx, qword [sym.imp.ucrtbase.dll_malloc]
call rbx
mov r15, rax
mov qword [rsp + 0x38], rax
lea rcx, [r14*2 + 0x50]
call rbx
mov rbx, rax
test r15, r15
je 0x14000315b
test rbx, rbx
je 0x14000315b
mov word [r15], 0
mov rcx, rdi
mov edx, 0xa
mov r8, r15
mov r9d, r14d
call qword [sym.imp.user32.dll_LoadStringW]
mov r8, qword [rsp + 0x38]
mov edx, dword [rsp + 0x34]
inc edx
add rdx, 0x28
lea r9, [rsp + 0x40]
mov rcx, rbx
call sym.swprintf
call qword [sym.imp.kernel32.dll_GetUserDefaultLangID]
mov word [rsp + 0x20], ax
mov dword [rsp + 0x28], 0
xor ecx, ecx
mov rdx, rbx
xor r8d, r8d
xor r9d, r9d
call sym.MsiMessageBoxW
mov r15, qword [rsp + 0x38]
mov rdi, qword [sym.imp.ucrtbase.dll_free]
mov rcx, r15
call rdi
mov rcx, rbx
call rdi
mov ecx, esi
call qword [sym.imp.kernel32.dll_ExitProcess]

Function at 0x140003180
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
call qword [sym.imp.ucrtbase.dll_wcslen]
lea eax, [rax*2 + 0xa]
movsxd rcx, eax
call qword [sym.imp.ucrtbase.dll_malloc]
test rax, rax
je 0x1400031e5
mov ecx, 8
nop
movzx edx, word [rdi + rcx - 8]
mov word [rax + rcx], dx
add rcx, 2
test dx, dx
jne 0x1400031b0
mov qword [rax], 0
nop dword [rax]
mov rcx, rsi
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1400031d0
mov qword [rcx], rax
add rsp, 0x28
pop rdi
pop rsi
ret
test byte [section..data], 2
je 0x140003206
lea r8, str.StringListAppend
lea r9, str.Out_of_memory__n
mov ecx, 1
call sym.wine_dbg_log
mov ecx, 1
call qword [sym.imp.kernel32.dll_ExitProcess]