joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401daa3c
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
lea rax, vtable.CDataRecoveryHandler.0
mov qword [rcx], rax
lea rdi, [rcx + 0x120]
cmp qword [rcx + 0x138], 0
je 0x1401daaaf
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1401ca700
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1401daaa5
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
cmp qword [rbx + 0x138], 0
jne 0x1401daa64
mov rdx, qword [rbx + 0x180]
xor ecx, ecx
call qword [sym.imp.USER32.dll_KillTimer]
mov rdx, qword [rbx + 0x160]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1401daae9
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
mov rdx, qword [rbx + 0x158]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1401dab14
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
mov rcx, rdi
call fcn.1401ca414
lea rcx, [rbx + 0xe8]
lea rdi, vtable.CMap_class_CDocument____ptr64__class_CDocument____ptr64__class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____wchar_t_const____ptr64_.0
mov qword [rcx], rdi
call fcn.1401dcfd0
nop
lea rcx, [rbx + 0xb0]
mov qword [rcx], rdi
call fcn.1401dcfd0
nop
lea rcx, [rbx + 0x78]
lea rax, vtable.CMap_class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____wchar_t_const____ptr64__bool__bool_.0
mov qword [rcx], rax
call fcn.1401dd06c
nop
lea rcx, [rbx + 0x40]
lea rax, vtable.CMap_class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____wchar_t_const____ptr64__class_CDocument____ptr64__class_CDocument____ptr64_.0
mov qword [rcx], rax
call fcn.1401dd06c
nop
lea rcx, [rbx + 8]
lea rax, vtable.CMap_class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____wchar_t_const____ptr64__class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____wchar_t_const____ptr64_.0
mov qword [rcx], rax
call fcn.1401dd104
nop
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1401db720
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, rdx
mov rcx, qword [rdx]
cmp dword [rcx - 0x10], 0
je 0x1401db752
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1401db752
lea rcx, [rdi + 0x120]
mov rdx, rbx
call fcn.1401ca480
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rdi
ret
Function at 0x1401db764
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1401db78a
mov r8, rdx
mov rdx, qword [rbx]
call fcn.1401d2950
jmp 0x1401db7f6
cmp byte [0x1402ba100], 0
jne 0x1401db7ce
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401db7be
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402ba0f8], rax
jmp 0x1401db7c5
mov rax, qword [0x1402ba0f8]
mov byte [0x1402ba100], 1
jmp 0x1401db7d5
mov rax, qword [0x1402ba0f8]
mov rdx, rdi
mov rcx, qword [rbx]
test rax, rax
je 0x1401db7ef
xor r9d, r9d
mov r8d, dword [rbx + 8]
call qword [case.0x1400136d6.0]
jmp 0x1401db7f6
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1401ddf40
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x3f]
sub rsp, 0x88
mov rdi, rcx
mov esi, 1
mov rax, qword [rcx + 0x20]
neg rax
sbb rdx, rdx
mov qword [rbp + 0x77], rdx
cmp qword [rcx + 0x20], 0
je 0x1401de02e
xor esi, esi
and qword [rbp + 0x17], rsi
and dword [rbp + 0x1f], esi
and qword [rbp + 0x27], rsi
mov rax, qword [rcx]
lea rdx, [rbp + 0xf]
mov rax, qword [rax + 0x40]
call qword [case.0x1400136d6.0]
nop
mov rbx, qword [rax]
call fcn.1401ce6e4
xor edx, edx
mov rcx, qword [rax + 8]
call fcn.1401d1574
nop
and qword [rbp + 0x7f], rsi
lea rcx, [rbp + 0x67]
mov qword [rsp + 0x40], rcx
lea rcx, [rbp + 0x7f]
mov qword [rsp + 0x38], rcx
and qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x2001f
and dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x1401ddfef
mov rax, qword [rbp + 0x7f]
mov qword [rbp + 0x17], rax
and dword [rbp + 0x1f], ebx
mov rdx, qword [rbp + 0xf]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1401de017
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
test ebx, ebx
je 0x1401de123
mov rcx, qword [rbp + 0x17]
test rcx, rcx
je 0x1401de02e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
add rsp, 0x88
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1401bb0c4
mov rcx, rax
test rax, rax
je 0x1401de152
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
add rax, 0x18
mov qword [rbp + 0x6f], rax
call fcn.1401bb0c4
mov rcx, rax
test rax, rax
je 0x1401de147
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
add rax, 0x18
mov qword [rbp + 7], rax
lea rcx, [rdi + 8]
lea r9, [rbp + 7]
lea r8, [rbp + 0x6f]
lea rdx, [rbp + 0x77]
call fcn.1401dbe58
mov rbx, qword [rbp + 7]
test rbx, rbx
je 0x1401de0d6
mov rcx, rbx
call fcn.1401ec8d4
lea ecx, [rax*2 + 2]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rbp + 0x6f]
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1401de0fb
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
nop
mov rdx, qword [rbp + 0x6f]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1401de123
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
cmp qword [rbp + 0x77], 0
jne 0x1401de03c
mov rcx, qword [rbp + 0x17]
test rcx, rcx
je 0x1401de13d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x1401de030
mov ecx, 0x80004005
call fcn.140001470
nop
mov ecx, 0x80004005
call fcn.140001470
int3
Function at 0x1401ded80
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rdx, [rsp + 0x34]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x30], eax
cmp eax, 0xffffffff
jne 0x1401dedab
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1401dedb6
mov rax, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
lea rcx, [rbx + 0x18]
call fcn.1401bb0c0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rbx
call fcn.1401dfffc
int3

Function at 0x1401df0e0
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
test r8d, r8d
jne 0x1401df0f2
xor eax, eax
jmp 0x1401df10f
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x50]
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401df115
mov eax, dword [rsp + 0x50]
add rsp, 0x30
pop rbx
ret
lea rcx, [rbx + 0x18]
call fcn.1401bb0c0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rbx
call fcn.1401dfffc
int3

Function at 0x1401df240
Capabilities:
Write file on windows

Disassembly:
test r8d, r8d
je 0x1401df27e
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov rdi, rcx
mov ebx, r8d
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1401df27f
cmp dword [rsp + 0x50], ebx
jne 0x1401df29c
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
lea rcx, [rdi + 0x18]
call fcn.1401bb0c0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rbx
call fcn.1401dfffc
int3
lea rcx, [rdi + 0x18]
call fcn.1401bb0c0
or edx, 0xffffffff
mov r8, rax
lea ecx, [rdx + 0xe]
call fcn.1401dfb30
int3

Function at 0x1401e3694
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1401ffa1f
call fcn.1401ec568
mov dword [rax], socket
call fcn.1401ec3fc
xor eax, eax
jmp 0x1401ffaad
mov rdx, r9
mov rcx, r8
call fcn.1401ff984
mov rbx, rax
test rax, rax
je 0x1401ffaaa
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1401ff8b0]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1401ffa97
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1401ec4dc
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1401ffa7e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1401ffa8d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140208d1c
jmp 0x1401ffaaa
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1401ffaa7
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140201b94
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1401e33b0
sub rsp, rax
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1402017c4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140201be3
mov rax, rbp
jmp 0x140201ceb
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x2bb580]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14020eb34
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x2bb580]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140201ce7
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140201ce7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14020eb34
test rax, rax
js 0x140201ce7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140201ce7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140201cd9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140201cd9
cmp byte [rcx], 0xd
jne 0x140201cbf
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140201cce
cmp byte [rcx + 1], 0xa
jne 0x140201cce
inc rcx
jmp 0x140201cce
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x2a7b40]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140201ca1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140201ceb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1401e2900
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14020ba20
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14020ba36
mov al, 1
jmp 0x14020ba96
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14020ba47
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14020ba94
mov ecx, dword [rcx + 0x18]
nop
call fcn.140202358
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14020ba94
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14020ba94
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14020ba94
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14020ba96
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14020ded4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1402bb580]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14020df2b
cmp word [rdx], r13w
jne 0x14020df2b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14020df30
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14020e055
mov r11d, recv
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14020e076
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14020df69
mov rdx, r9
mov word [rbx], cx
jmp 0x14020df90
cmp r9, r8
jae 0x14020dfa0
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14020df4a
jmp 0x14020e055
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14020e04a
cmp dword [rsp + 0x80], esi
je 0x14020e04a
lea r8, [0x1402bb580]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14020e022
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14020dff2
mov word [rbx], r13w
jmp 0x14020e052
mov ecx, recv
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14020dfff
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14020e052
cmp word [rsp + 0x70], r13w
jne 0x14020e02f
cmp rbx, r14
je 0x14020dfec
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14020eb3c
cmp word [rsp + 0x70], r13w
je 0x14020e055
mov ecx, recv
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1402bb580]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14020e04f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14020e055
Function at 0x140211858
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1402118a2
call fcn.1401ec548
mov dword [rax], send
call fcn.1401ec568
mov dword [rax], recv
call fcn.1401ec3fc
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401e2900
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1402118ad
lea eax, [rbx + 1]
jmp 0x14021188f
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x14021188d
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14021188f
Function at 0x140212b4c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140212bd3
mov rsi, rbx
cmp word [rax], bp
je 0x140212b92
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140212b7c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140212b78
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140208fc8
mov rdi, rax
test rax, rax
je 0x140212bc0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1401e7770
mov rbp, rdi
xor ecx, ecx
call fcn.140208d1c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1402155b8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1402088e0
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140215659
cmp ebx, dword [rsp + 0x30]
je 0x140215652
test esi, esi
je 0x140215652
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14021562d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14021563a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140215617
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14021563e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14021565b
mov eax, 1
jmp 0x14021565b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1402191f4
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14020eb3c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14020eb3c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140219344
cmp rax, 0xffffffffffffffff
je 0x140219344
xor edi, edi
test rbp, rbp
jle 0x1402192ef
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140208ed4
mov rbx, rax
test rax, rax
jne 0x14021927c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1402192e5
mov edx, 0x8000
mov ecx, r14d
call fcn.140203380
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14020c714
cmp eax, 0xffffffff
je 0x1402192c5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14021928c
mov edx, r15d
mov ecx, r14d
call fcn.140203380
jmp 0x1402192e5
cmp byte [rsi + 0x38], dil
je 0x1402192dc
cmp dword [rsi + 0x34], 5
jne 0x1402192dc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], send
cmp byte [rsi + 0x30], dil
je 0x1402192e5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140208d1c
jmp 0x140219358
jns 0x140219358
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14020eb3c
cmp rax, 0xffffffffffffffff
jne 0x140219310
cmp byte [rsi + 0x30], dil
je 0x140219358
mov edi, dword [rsi + 0x2c]
jmp 0x140219358
mov ecx, r14d
call fcn.140202358
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140219358
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, recv
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], send
jmp 0x140219358
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140219351
mov eax, dword [rsi + 0x2c]
jmp 0x140219356
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14020eb3c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140219990
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1402199b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1402199b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x18000f1f0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 8]
mov rcx, qword [rcx]
mov ecx, dword [rcx + 0xc]
add rcx, qword [rax]
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x68]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 8]
mov rax, qword [rax]
mov eax, dword [rax + 0x10]
sub rax, qword [rsp + 0x38]
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x20], 0
jmp 0x18000f25a
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x20], eax
jae 0x18000f319
mov rax, qword [rsp + 0x68]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x68]
call fcn.18000a3b0
mov ecx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x30]
add rdx, rcx
mov rcx, rdx
mov r8, qword [rsp + 0x40]
mov rdx, rax
call fcn.1800f7a50
test eax, eax
jne 0x18000f314
mov dword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
lea r9, [rsp + 0x28]
mov r8d, 0x40
mov edx, 0x100
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x18000f314
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
cmp dword [rcx + rax + 0x28], 1
jne 0x18000f2f5
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
mov dword [rcx + rax + 0x28], 0
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x10]
mov qword [rcx], rax
mov al, 1
jmp 0x18000f31b
jmp 0x18000f250
xor al, al
add rsp, 0x58
ret
Function at 0x180022550
Capabilities:
Check mutex on windows

Disassembly:
mov r11, rsp
push r14
sub rsp, 0xb0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov rax, qword [0x180208090]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov r14, rcx
mov qword [r11 - 0x80], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
call fcn.1800038c0
nop
mov byte [r14], dil
lea ecx, [rdi + 8]
call fcn.1800d8074
mov rbx, rax
mov qword [rsp + 0x40], rax
mov rcx, rax
call fcn.1800038c0
nop
lea ecx, [rdi + 8]
call fcn.1800d8074
mov qword [rsp + 0x28], rax
mov qword [rax], 0xffffffffffffffff
mov qword [rbx], rax
mov qword [r14 + 8], rbx
lea rdx, str.RC_SAFE_140D511E_F5F7_419D_95B8_F66D4E2333D5
lea rcx, [rsp + 0x48]
call fcn.180003bb0
nop
lea rbx, [r14 + 0x30]
mov qword [rsp + 0x28], rbx
mov rcx, rbx
call fcn.1800038c0
nop
mov qword [rbx], rdi
mov word [rbx + 8], di
lea rcx, [rsp + 0x48]
call fcn.180005c00
test al, al
jne 0x180022612
lea rcx, [rsp + 0x48]
call fcn.180003a80
jmp 0x180022615
mov rax, rdi
mov r8, rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx], rax
test rax, rax
je 0x18002263b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x18002263b
mov byte [rbx + 9], 1
lea rcx, [rsp + 0x48]
call fcn.180003b80
mov qword [r14 + 0x40], rdi
mov qword [r14 + 0x48], rdi
mov qword [r14 + 0x50], rdi
lea rcx, [r14 + 0x58]
call fcn.180003c60
nop
lea rcx, [r14 + 0x40]
call fcn.180003800
mov rdx, qword [r14 + 0x48]
mov rcx, qword [r14 + 0x40]
call fcn.180024e30
mov rax, qword [r14 + 0x40]
mov qword [r14 + 0x48], rax
xor eax, eax
mov qword [r14 + 0x10], rax
mov qword [r14 + 0x18], rax
mov qword [r14 + 0x20], rax
mov qword [r14 + 0x28], rax
lea rdx, str.StatDuplicate
lea rcx, [rsp + 0x68]
call fcn.180003bb0
nop
lea rcx, [rsp + 0x48]
call fcn.180021e10
mov rbx, rax
mov edi, 1
mov dword [rsp + 0x20], edi
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x88]
call fcn.180099c60
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.180005c40
nop
lea rcx, [rsp + 0x88]
call fcn.180003b80
mov rdx, rbx
lea rcx, [r14 + 0x58]
call fcn.180005c40
and edi, 0xfffffffe
mov dword [rsp + 0x20], edi
lea rcx, [rsp + 0x48]
call fcn.180003b80
nop
lea rcx, [rsp + 0x68]
call fcn.180003b80
nop
mov rax, r14
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1800d8050
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret