joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002710
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140011c20]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000272f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002738
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002750
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140011c20]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002770
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002778
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002770
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002770
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400027c4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400027d0
add rdx, 0x28
cmp r9, rdx
jne 0x1400027b0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x1400027e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140011c20]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002802
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002810
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002802
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002802
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002802
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002865
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002878
add rdx, 0x28
cmp rdx, r10
jne 0x140002850
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002887
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002897
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000286e
test ecx, ecx
jg 0x140002880
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1400018c0
Capabilities:
Enumerate processes

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x2a0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x2d0], rbx
mov rax, qword [0x14001c008]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rsi, rdx
mov rdi, rcx
mov dword [rsp + 0x30], 0x238
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x34]
call fcn.1400074f0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x1400186a0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edx, edx
lea ecx, [rdx + 2]
test rax, rax
jne 0x14000193d
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
jmp 0x14000193f
call rax
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001b17
mov qword [rsp + 0x288], 7
xor ebp, ebp
mov qword [rsp + 0x280], rbp
mov word [rsp + 0x270], bp
xor r8d, r8d
lea rdx, [0x140018654]
lea rcx, [rsp + 0x270]
call fcn.1400030e0
nop
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x1400186c0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rsp + 0x30]
mov rcx, rbx
test rax, rax
jne 0x1400019b4
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x1400019b6
call rax
test eax, eax
je 0x140001a92
cmp word [rsp + 0x5c], 0
jne 0x1400019cb
mov r8, rbp
jmp 0x1400019df
lea rax, [rsp + 0x5c]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x1400019d4
lea rdx, [rsp + 0x5c]
lea rcx, [rsp + 0x270]
call fcn.1400030e0
lea r8, [rsp + 0x270]
cmp qword [rsp + 0x288], 8
cmovae r8, qword [rsp + 0x270]
mov rcx, rdi
call fcn.140002e70
mov rdx, rax
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea rcx, str.kernel32.dll
test eax, eax
je 0x140001a5c
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x1400186d0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rsp + 0x30]
mov rcx, rbx
test rax, rax
jne 0x1400019b4
call qword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x1400019b6
mov edi, dword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x1400186e0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r8d, edi
xor edx, edx
mov ecx, 0x1fffff
test rax, rax
jne 0x140001a8d
call qword [sym.imp.KERNEL32.dll_OpenProcess]
jmp 0x140001a8f
call rax
mov qword [rsi], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, qword [rsp + 0x288]
cmp rax, 8
jb 0x140001b17
inc rax
mov rcx, qword [rsp + 0x270]
movabs rdx, 0x7fffffffffffffff
cmp rax, rdx
jbe 0x140001aca
call fcn.140008364
int3
add rax, rax
cmp rax, 0x1000
jb 0x140001b12
test byte [rsp + 0x270], 0x1f
je 0x140001ae5
call fcn.140008364
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140001af4
call fcn.140008364
int3
sub rcx, rax
cmp rcx, 8
jae 0x140001b03
call fcn.140008364
int3
cmp rcx, 0x27
jbe 0x140001b0f
call fcn.140008364
int3
mov rcx, rax
call fcn.14000498c
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140004350
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x2a0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001b40
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x14001c008]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rsi, rcx
xor dil, dil
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x1400186a0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edx, edx
lea ecx, [rdx + 2]
test rax, rax
jne 0x140001b99
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
jmp 0x140001b9b
call rax
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001c60
lea rcx, str.kernel32.dll
mov dword [rsp + 0x20], 0x238
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x1400186c0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rsp + 0x20]
mov rcx, rbx
test rax, rax
jne 0x140001be2
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x140001be4
call rax
test eax, eax
je 0x140001c57
mov qword [rsp + 0x288], rbp
mov ebp, 1
nop word [rax + rax]
mov rdx, rsi
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
movzx edi, dil
lea rcx, str.kernel32.dll
test eax, eax
cmove edi, ebp
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x1400186d0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rsp + 0x20]
mov rcx, rbx
test rax, rax
jne 0x140001c49
call qword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x140001c4b
call rax
test eax, eax
jne 0x140001c00
mov rbp, qword [rsp + 0x288]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, dil
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140004350
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140001c90
Capabilities:
Acquire debug privileges

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14001c008]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor eax, eax
mov dword [rsp + 0x38], 0
lea r8, [rsp + 0x30]
mov qword [rsp + 0x3c], rax
xor bl, bl
mov dword [rsp + 0x44], eax
lea edx, [rax + 0x28]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140001d1c
lea r8, [rsp + 0x3c]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
mov r9d, 0x10
mov qword [rsp + 0x28], 0
xor edx, edx
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x44], 2
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov bl, 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bl
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140004350
add rsp, 0x50
pop rbx
ret
Function at 0x140008898
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x14000866c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000866c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000866c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000866c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000866c
cmp dword [rcx + 0x84], 0xe
jbe 0x14000866c
cmp dword [rcx + 0xf8], esi
je 0x14000866c
mov ecx, r14d
call fcn.1400087b4
mov ecx, 2
call fcn.140009f04
nop
cmp byte [0x14001d220], 0
jne 0x140008736
mov r15d, 1
mov eax, r15d
xchg dword [0x14001d210], eax
test ebx, ebx
jne 0x1400086df
mov rdi, qword [0x14001c008]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x14001d218]
cmp rcx, rax
je 0x1400086d6
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140005308]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x14001d460]
jmp 0x1400086eb
cmp ebx, r15d
jne 0x1400086f1
lea rcx, [0x14001d478]
call fcn.140009204
nop
test ebx, ebx
jne 0x140008708
lea rdx, [0x1400113d8]
lea rcx, [0x1400113b8]
call fcn.140009528
lea rdx, [0x1400113e8]
lea rcx, [0x1400113e0]
call fcn.140009528
movzx eax, byte [0x14001d220]
test esi, esi
cmove eax, r15d
mov byte [0x14001d220], al
jmp 0x140008736
mov ecx, 2
call fcn.140009f58
test esi, esi
jne 0x14000874d
mov ecx, r14d
call fcn.140008768
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1400085fc
Function at 0x180001b20
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x180013040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14, rcx
mov rsi, rdx
mov rcx, qword [0x180013af8]
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, qword [0x180013af8]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xorps xmm0, xmm0
mov rdx, rsi
movsxd rcx, dword [rax + 0x3c]
xor eax, eax
mov edi, dword [rcx + rdi + 0x50]
lea rcx, [rsp + 0x28]
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], rax
call fcn.180001a00
mov rcx, qword [0x180013af8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r11, qword [rsp + 0x30]
mov r9d, ebx
mov r10, qword [rsp + 0x28]
mov rsi, rax
sub r11, r10
sar r11, 2
sub rdi, r11
je 0x180001be8
nop
mov eax, ebx
test r11, r11
je 0x180001be0
mov rcx, rbx
nop word [rax + rax]
mov r8d, dword [r10 + rcx*4]
lea ecx, [rax + r9]
movzx ecx, byte [rcx + rsi]
cmp ecx, r8d
je 0x180001bd7
cmp r8d, 0xffffffff
jne 0x180001c54
inc eax
mov ecx, eax
cmp rcx, r11
jb 0x180001bc0
mov ebx, r9d
add rbx, rsi
jne 0x180001c18
mov r9d, 0x10
lea r8, str.Memcury::Scanner::FindPattern
lea rdx, str.FindPattern_return_nullptr
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r10, qword [rsp + 0x28]
mov qword [r14], rbx
test r10, r10
je 0x180001c6d
mov rdx, qword [rsp + 0x38]
mov rax, r10
sub rdx, r10
and rdx, 0xfffffffffffffffc
cmp rdx, 0x1000
jb 0x180001c65
mov r10, qword [r10 - 8]
add rdx, 0x27
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180001c65
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
inc r9d
mov eax, r9d
cmp rax, rdi
jb 0x180001bb0
jmp 0x180001be8
mov rcx, r10
call fcn.18000b294
mov rax, r14
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18000acd0
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x180007570
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 0x180007598
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 0x1800075be
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1800075c0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x180007619
test ecx, ecx
jle 0x1800075f9
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 0x180007619
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x180007619
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 0x180007640
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 0x180007662
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x180007678
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 0x180007694
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180007696
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1800076d2
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 0x18000776e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x18000770d
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 0x18000774e
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 0x18000776e
cmp rbx, rax
ja 0x180007720
test rbx, rbx
je 0x18000776e
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 0x180007bd0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x180013040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x180007bfd
xor eax, eax
jmp 0x180007d69
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x180007c37
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x180007c37
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 0x180007d69
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x180007d5c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180007c7a
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 0x180007ca5
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 0x180007d61
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 0x180007d14
sub eax, 1
je 0x180007d14
cmp eax, 2
jne 0x180007d5c
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 0x180007d61
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x180007d42
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 0x180007d5c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x180007d61
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.18000acd0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1800084c0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x180013040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180008593
cmp byte [rcx + 0x71], 0
je 0x180008593
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x18000858f
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 0x180008554
sub eax, 1
je 0x180008558
cmp eax, 2
jne 0x18000858f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18000acd0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x180008586
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 0x18000858f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x18000853c
xor al, al
jmp 0x18000853c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18000acd0
add rsp, 0x60
pop rbx
ret

Function at 0x18000a708
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 0x18000a742
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x18000a747
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 0x18000a790
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x18000d5c0]
cmp byte [rcx + rax], 0
je 0x18000a790
dec r8
sub rdx, 1
jne 0x18000a776
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x18000cab0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov rax, qword [0x180047700]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp edx, 0xffffffff
je 0x18000cbdd
mov esi, edx
mov rdi, rcx
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x18000cb0d
mov rax, qword [rdi + 0x58]
mov ecx, dword [rax]
test ecx, ecx
jle 0x18000cb0d
dec ecx
mov dword [rax], ecx
mov rax, qword [rdi + 0x40]
mov rcx, qword [rax]
lea rdx, [rcx + 1]
mov qword [rax], rdx
mov byte [rcx], sil
jmp 0x18000cc22
cmp qword [rdi + 0x80], 0
je 0x18000cbe1
mov rax, qword [rdi + 0x18]
lea rcx, [rdi + 0x70]
cmp qword [rax], rcx
jne 0x18000cb47
mov ecx, dword [rdi + 0x90]
mov rdx, qword [rdi + 0x88]
mov qword [rax], rdx
mov rax, qword [rdi + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rdi + 0x50]
mov dword [rax], ecx
mov rcx, qword [rdi + 0x68]
test rcx, rcx
je 0x18000cbe8
mov byte [rsp + 0x5f], sil
lea rax, [rsp + 0x80]
lea r9, [rsp + 0x60]
lea rdx, [rdi + 0x74]
mov r10, qword [rcx]
lea r8, [rsp + 0x48]
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rax
lea r14, [rsp + 0x60]
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea rbx, [rsp + 0x5f]
mov r8, rbx
call qword [r10 + 0x38]
mov ebp, 0xffffffff
cmp eax, 2
jae 0x18000cc01
mov r15, qword [rsp + 0x48]
sub r15, r14
je 0x18000cbcd
mov r9, qword [rdi + 0x80]
mov edx, 1
mov rcx, r14
mov r8, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r15, rax
jne 0x18000cc20
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x50], rbx
mov eax, 0xffffffff
jmp 0x18000cc1b
xor esi, esi
jmp 0x18000cc22
mov esi, 0xffffffff
jmp 0x18000cc22
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, 0xffffffff
cmove esi, eax
jmp 0x18000cc22
cmp eax, 3
jne 0x18000cc20
mov rdx, qword [rdi + 0x80]
movsx ecx, byte [rsp + 0x5f]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, 0xffffffff
cmove esi, eax
mov ebp, esi
mov esi, ebp
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180035d50
mov eax, esi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x18000d090
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
test r8, r8
jle 0x18000d0d3
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x18000d0da
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
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]
xor esi, esi
jmp 0x18000d1f9
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x18000d12d
mov rax, qword [rbx + 0x50]
movsxd r15, dword [rax]
test r15, r15
je 0x18000d12d
cmp r15, rsi
cmovae r15, rsi
mov rcx, rdi
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
add rdi, r15
mov r14, rsi
sub r14, r15
mov rax, qword [rbx + 0x50]
sub dword [rax], r15d
mov rax, qword [rbx + 0x38]
movsxd rcx, r15d
add qword [rax], rcx
cmp qword [rbx + 0x80], 0
jne 0x18000d13e
jmp 0x18000d1f6
mov r14, rsi
cmp qword [rbx + 0x80], 0
je 0x18000d1f6
mov rax, qword [rbx + 0x18]
lea rcx, [rbx + 0x70]
cmp qword [rax], rcx
jne 0x18000d16a
mov ecx, dword [rbx + 0x90]
mov rdx, qword [rbx + 0x88]
mov qword [rax], rdx
mov rax, qword [rbx + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rbx + 0x50]
mov dword [rax], ecx
movabs r15, 0x7d53b9058285db7a
mov r12, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
movabs r13, 0x82ac46fa7d7a2486
nop word cs:[rax + rax]
cmp r14, 0x1000
jb 0x18000d1d1
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rdi
call r12
add rdi, rax
add r14, r15
mov rcx, r14
sub rcx, rax
lea r14, [rcx + r13]
cmp rax, 0xfff
je 0x18000d190
add rsi, r15
sub rsi, rcx
jmp 0x18000d1f9
test r14, r14
je 0x18000d1f3
mov r9, qword [rbx + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub r14, rax
jmp 0x18000d1f6
xor r14d, r14d
sub rsi, r14
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret