joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400474e0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x290
mov rax, qword [0x14009a750]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r14d, r8d
mov rsi, rdx
mov rbp, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call fcn.14004ae70
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x140047559
mov r9d, r14d
lea rax, [rsp + 0x48]
or r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14004757a
cmp eax, 2
jne 0x1400476df
mov eax, 1
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140048fc0
add rsp, 0x290
pop r14
pop rsi
pop rbp
ret
mov qword [rsp + 0x288], rdi
mov rcx, rsi
mov qword [rsp + 0x280], r15
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
xor r15d, r15d
cmp word [rsi + rcx*2 - 2], 0x5c
lea rdi, [rsi + rcx*2]
je 0x1400475b5
mov eax, 0x5c
mov word [rdi], ax
add rdi, 2
mov word [rdi], r15w
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], r15
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], r15
xor edx, edx
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x40], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400476ab
mov qword [rsp + 0x2c8], rbx
lea rbx, [rsp + 0x60]
sub rbx, rdi
nop word [rax + rax]
mov edx, 0x208
mov rax, rdi
nop dword [rax + rax]
lea rcx, [rdx + 0x7ffffdf6]
test rcx, rcx
je 0x140047642
movzx ecx, word [rbx + rax]
test cx, cx
je 0x140047642
mov word [rax], cx
add rax, 2
sub rdx, 1
jne 0x140047620
test rdx, rdx
lea rcx, [rax - 2]
mov r8d, r14d
mov rdx, rsi
cmovne rcx, rax
mov word [rcx], r15w
mov rcx, rbp
call fcn.1400474e0
test eax, eax
je 0x1400476a3
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], r15
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], r15
xor edx, edx
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x40], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140047610
mov rbx, qword [rsp + 0x2c8]
mov word [rdi - 2], r15w
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov r15, qword [rsp + 0x280]
mov rdi, qword [rsp + 0x288]
test eax, eax
je 0x140047559
xor eax, eax
jmp 0x14004755e
Function at 0x140047710
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x14009a750]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, r9
mov rdi, r8
mov rbp, rdx
mov rsi, rcx
test rdx, rdx
jne 0x14004774b
xor al, al
jmp 0x140047889
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
movdqa xmm1, xmmword [0x140080000]
movdqu xmmword [rsp + 0x48], xmm1
xor r14d, r14d
mov word [rsp + 0x38], r14w
lea r9, [rsp + 0x38]
call fcn.1400472a0
test al, al
je 0x140047794
cmp byte [rsp + 0xb0], r14b
je 0x1400477a4
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.140004780
test al, al
jne 0x1400477e9
cmp byte [rsi], 0
je 0x1400477ed
mov byte [rsi + 1], 1
mov bl, 1
jmp 0x140047834
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400477b1
mov rcx, qword [rbx]
lea r8, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x48]
cmp rdx, qword [rbx + 0x10]
jne 0x140047794
test rdx, rdx
je 0x1400477e9
sub r8, rcx
movzx eax, word [rcx]
cmp word [r8 + rcx], ax
jne 0x140047794
add rcx, 2
sub rdx, 1
jne 0x1400477d5
mov bl, 1
jmp 0x140047834
mov rax, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 8
jb 0x1400477fb
mov rbx, qword [rbx]
cmp qword [rdi + 0x18], 8
jb 0x140047805
mov rdi, qword [rdi]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140047832
mov bl, 1
jmp 0x140047834
xor bl, bl
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x140047872
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004786d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400478a1
call fcn.140049020
movdqa xmm0, xmmword [0x140080000]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], r14w
movzx eax, bl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140048fc0
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.14004d324
int3

Function at 0x140047ff0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x14009a750]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
mov dword [rsp + 0x20], 0x114
mov r8d, 0x110
lea rcx, [rsp + 0x24]
call fcn.14004ae70
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x14004805e
mov eax, dword [rsp + 0x24]
cmp eax, 5
ja 0x140048044
jne 0x14004805e
cmp dword [rsp + 0x28], 0
jbe 0x14004805e
mov al, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140048fc0
add rsp, 0x158
ret
xor al, al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140048fc0
add rsp, 0x158
ret
Function at 0x140048080
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x14009a750]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
mov dword [rsp + 0x20], 0x114
mov r8d, 0x110
lea rcx, [rsp + 0x24]
call fcn.14004ae70
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1400480da
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140048fc0
add rsp, 0x158
ret
cmp dword [rsp + 0x24], 6
setae al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140048fc0
add rsp, 0x158
ret

Function at 0x140048100
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x14009a750]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
mov dword [rsp + 0x20], 0x114
mov r8d, 0x110
lea rcx, [rsp + 0x24]
call fcn.14004ae70
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x14004815a
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140048fc0
add rsp, 0x158
ret
cmp dword [rsp + 0x24], 0xa
setae al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140048fc0
add rsp, 0x158
ret

Function at 0x1400489c0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x450
mov rax, qword [0x14009a750]
xor rax, rsp
mov qword [rsp + 0x440], rax
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x410
rep stosb byte [rdi], al
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x20]
mov edx, dword [rsp + 0x460]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x140048a19
xor al, al
jmp 0x140048a6b
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x140048a44
cmp qword [rsp + 0x20], 0
je 0x140048a40
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor al, al
jmp 0x140048a6b
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x468]
call fcn.1400050a0
cmp qword [rsp + 0x20], 0
je 0x140048a69
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140048fc0
add rsp, 0x450
pop rdi
ret

Function at 0x140048a90
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14009a750]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor edi, edi
mov rbx, rcx
mov qword [rcx], rdi
cmp qword [0x14009a708], rdi
jne 0x140048b1b
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x20a
call fcn.14004ae70
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea rax, [rsp + 0x30]
mov word [rsp + 0x236], di
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], di
jne 0x140048b00
lea rdx, [rsp + 0x30]
lea rcx, [0x14009a6f8]
call fcn.140004360
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140048fc0
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
Function at 0x140048bc0
Capabilities:
Get session user name

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x260
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x14009a750]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
mov eax, dword [0x14009c03c]
test eax, eax
jle 0x140048c0e
inc eax
mov dword [0x14009c03c], eax
mov al, 1
jmp 0x140048d2d
xor sil, sil
xor ebp, ebp
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], ebp
lea rcx, [rsp + 0x30]
call fcn.14002f760
nop
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x30]
call fcn.140030480
movzx ebx, al
lea rcx, [rsp + 0x30]
call fcn.14002f7e0
test bl, bl
je 0x140048d19
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x140048d19
lea rdx, str.ImpersonateLoggedOnUser
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x28]
call rax
test eax, eax
je 0x140048d10
inc dword [0x14009c03c]
mov rcx, qword [rdi]
test rcx, rcx
je 0x140048c9c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x28]
mov qword [rdi], rax
mov qword [rsp + 0x28], rbp
mov sil, 1
cmp qword [0x14009a728], 0
jne 0x140048d10
xor edx, edx
mov r8d, 0x20a
lea rcx, [rsp + 0x40]
call fcn.14004ae70
mov dword [rsp + 0x20], 0x104
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov word [rsp + 0x246], bp
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140048cf4
lea rdx, [rsp + 0x40]
lea rcx, [0x14009a718]
call fcn.140004360
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x140048d29
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, sil
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140048fc0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1400542bc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140054020
Function at 0x10007510
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xa0
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x10015150], rbx
je 0x10007566
cmp rax, rbx
jne 0x10007559
mov edi, 1
jmp 0x10007566
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10007540
mov eax, dword [0x10015148]
cmp eax, 1
jne 0x1000757b
lea ecx, [rax + 0x1e]
call sub.MSVCR80.dll__amsg_exit
jmp 0x100075ba
mov eax, dword [0x10015148]
test eax, eax
jne 0x100075b0
mov dword [0x10015148], 1
lea rdx, [0x100014d0]
lea rcx, [0x100014b8]
call sub.MSVCR80.dll__initterm_e
test eax, eax
je 0x100075ba
mov eax, 0xff
jmp 0x10007714
mov dword [0x10014314], 1
mov eax, dword [0x10015148]
cmp eax, 1
jne 0x100075e2
lea rdx, [0x100014b0]
lea rcx, [0x10001470]
call sub.MSVCR80.dll__initterm
mov dword [0x10015148], 2
test edi, edi
jne 0x100075ef
xor eax, eax
xchg qword [0x10015150], rax
cmp qword [0x10015168], 0
je 0x10007618
lea rcx, [0x10015168]
call fcn.10007b90
test eax, eax
je 0x10007618
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x10015168]
mov rax, qword [sym.imp.MSVCR80.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
nop
nop
movzx ecx, byte [rbx]
cmp cl, 0x20
ja 0x100076aa
test cl, cl
je 0x10007640
test edi, edi
jne 0x100076aa
movzx eax, byte [rbx]
test al, al
je 0x10007656
cmp al, 0x20
ja 0x10007656
add rbx, 1
mov qword [rsp + 0x28], rbx
jmp 0x10007640
test byte [rsp + 0x6c], 1
je 0x10007665
movzx r9d, word [rsp + 0x70]
jmp 0x1000766b
mov r9d, 0xa
mov r8, rbx
xor edx, edx
lea rcx, [0x10000000]
call fcn.10005300
mov dword [0x10014310], eax
cmp dword [0x100142f4], 0
jne 0x10007693
mov ecx, eax
call qword [sym.imp.MSVCR80.dll_exit]
cmp dword [0x10014314], 0
jne 0x100076a8
call qword [sym.imp.MSVCR80.dll__cexit]
mov eax, dword [0x10014310]
jmp 0x1000770d
cmp cl, 0x22
jne 0x100076bc
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
movzx ecx, cl
call qword [sym.imp.MSVCR80.dll__ismbblead]
test eax, eax
je 0x100076d2
add rbx, 1
mov qword [rsp + 0x28], rbx
add rbx, 1
mov qword [rsp + 0x28], rbx
jmp 0x10007630
jmp 0x10007714
mov rbx, qword [rsp + 0xb0]
add rsp, 0xa0
pop rdi
ret
sub rsp, 0x28
call fcn.10186000
add rsp, 0x28
jmp 0x10007510
Function at 0x140001a41
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, dword [section..data]
syscall
ret

Function at 0x140002320
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000236a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000236a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000236a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000236a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000236a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000236c
xor al, al
add rsp, 0x28
ret
Function at 0x1400034e0
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 0x140003508
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 0x14000352e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140003530
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140003589
test ecx, ecx
jle 0x140003569
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 0x140003589
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140003589
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 0x1400035b0
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 0x1400035d2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400035e8
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 0x140003604
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140003606
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140003642
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 0x1400036de
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000367d
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 0x1400036be
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 0x1400036de
cmp rbx, rax
ja 0x140003690
test rbx, rbx
je 0x1400036de
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 0x140003b10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000c010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140003b3d
xor eax, eax
jmp 0x140003ca9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140003b77
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140003b77
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 0x140003ca9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140003c9c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140003bba
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 0x140003be5
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 0x140003ca1
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 0x140003c54
sub eax, 1
je 0x140003c54
cmp eax, 2
jne 0x140003c9c
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 0x140003ca1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140003c82
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 0x140003c9c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140003ca1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400056a0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140004280
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000c010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140004353
cmp byte [rcx + 0x71], 0
je 0x140004353
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000434f
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 0x140004314
sub eax, 1
je 0x140004318
cmp eax, 2
jne 0x14000434f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400056a0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140004346
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 0x14000434f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400042fc
xor al, al
jmp 0x1400042fc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400056a0
add rsp, 0x60
pop rbx
ret

Function at 0x1400055ac
Capabilities:
Get geographical location

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

Function at 0x140006160
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x10090
call fcn.1400737b0
sub rsp, rax
mov rax, qword [0x1400b8f00]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x80], bp
mov edi, 0x28
mov word [rsp + 0x30], bp
test al, al
je 0x14006efb2
nop dword [rax]
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.140083084
cmp rax, 1
jne 0x14006f00e
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14006ef8f
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x14006ef83
cmp rcx, 1
jb 0x14006f00e
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14006ef50
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x14006efe3
lea rcx, [rsp + 0x80]
call fcn.140085c3c
jmp 0x14006efe5
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.1400734e0
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140076ca0
int3