joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180164080
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov esi, r9d
mov edx, dword [rsp + 0x60]
mov rbp, r8
mov rcx, rdi
xor r9d, r9d
xor r8d, r8d
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1801640d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x180164106
movzx eax, ax
or eax, 0x80070000
jmp 0x180164106
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rbx
mov r8d, esi
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180164104
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x1801640fb
mov ebx, eax
jmp 0x180164104
movzx ebx, ax
or ebx, 0x80070000
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x180167c10
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x20
mov rdi, rcx
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rdx, qword [rdi + 0x10]
mov ecx, 2
inc rdx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbp, rax
test rax, rax
jne 0x180167c5d
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rcx, rdi
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
jmp fcn.18003f680
cmp qword [rdi + 0x18], 0xf
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rsi
mov rsi, rdi
jbe 0x180167c74
mov rsi, qword [rdi]
mov rbx, qword [rdi + 0x10]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalLock]
lea r8, [rbx + 1]
mov rdx, rsi
mov rcx, rax
call fcn.18023b0c0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rbp
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rsi, qword [rsp + 0x40]
mov rcx, rdi
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
jmp fcn.18003f680

Function at 0x18016b5e0
Capabilities:
Enumerate process modules

Disassembly:
push rdi
sub rsp, 0x270
mov rax, qword [0x180672700]
xor rax, rsp
mov qword [rsp + 0x260], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18016b63a
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
jne 0x18016b63e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x18016b677
mov qword [rsp + 0x280], rbx
xor ebx, ebx
nop dword [rax + rax]
lea rdx, [rsp + 0x20]
mov rcx, rdi
inc ebx
call qword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x18016b650
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x280]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1801fbc70
add rsp, 0x270
pop rdi
ret
Function at 0x180191f70
Capabilities:
Check http status code
Create http request
Read data from internet
Receive data
Reference http user-agent string

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x840
mov rax, qword [0x180672700]
xor rax, rsp
mov qword [rsp + 0x830], rax
mov r15, rdx
mov rsi, rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdx
xor ebx, ebx
mov dword [rsp + 0x3c], ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx + 1]
lea rcx, str.Mozilla_5.0
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r12, rax
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], 0xf
mov byte [rsi], bl
mov dword [rsp + 0x3c], 1
test rax, rax
je 0x180192101
mov rdx, r15
cmp qword [r15 + 0x18], 0xf
jbe 0x180192000
mov rdx, qword [r15]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x84800200
xor r9d, r9d
xor r8d, r8d
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov r14, rax
test rax, rax
je 0x1801920f7
mov dword [rsp + 0x34], ebx
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x34]
mov edx, 0x20000013
mov rcx, rax
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp dword [rsp + 0x34], 0xc8
jne 0x1801920ee
movzx ebx, byte [rsp + 0x30]
nop dword [rax]
nop dword [rax + rax]
lea r9, [rsp + 0x38]
mov r8d, 0x7d0
lea rdx, [rsp + 0x60]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
mov ebp, dword [rsp + 0x38]
mov rcx, qword [rsi + 0x10]
mov rdx, qword [rsi + 0x18]
mov rax, rdx
sub rax, rcx
cmp rbp, rax
ja 0x1801920ce
lea rax, [rcx + rbp]
mov qword [rsi + 0x10], rax
mov rax, rsi
cmp rdx, 0xf
jbe 0x1801920b4
mov rax, qword [rsi]
lea rdi, [rax + rcx]
mov r8, rbp
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.18023b0c0
mov byte [rdi + rbp], 0
jmp 0x1801920e7
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x60]
movzx r8d, bl
mov rdx, rbp
mov rcx, rsi
call fcn.180042160
cmp dword [rsp + 0x38], 0
ja 0x180192070
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov rcx, r15
call fcn.18003f680
mov rax, rsi
mov rcx, qword [rsp + 0x830]
xor rcx, rsp
call fcn.1801fbc70
lea r11, [rsp + 0x840]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1801f3c00
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x180672700]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
xor esi, esi
xor edx, edx
lea ecx, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1801f3d4f
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1801f3d46
mov esi, 1
mov qword [rsp + 0x68], rbx
cmp dword [rsp + 0x20], 0x10
jb 0x1801f3cfc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x1801f3cfc
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x1801f3cfc
mov rdx, qword [rdi]
test rdx, rdx
jne 0x1801f3cbd
mov rcx, qword [0x18067b9b8]
mov r8d, 0x200
mov dword [rdi + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rdi], rax
mov rdx, rax
test rax, rax
je 0x1801f3d25
lea rbx, [rdi + 0xc]
jmp 0x1801f3cf1
mov eax, dword [rdi + 8]
lea rbx, [rdi + 0xc]
cmp dword [rbx], eax
jb 0x1801f3cf1
mov rcx, qword [0x18067b9b8]
add eax, eax
mov r9d, eax
mov r8, rdx
shl r9, 2
xor edx, edx
mov dword [rdi + 8], eax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x1801f3d25
mov qword [rdi], rax
mov ecx, dword [rbx]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1801f3c63
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1801f3d41
mov r8, qword [rdi]
xor esi, esi
test r8, r8
je 0x1801f3d41
mov rcx, qword [0x18067b9b8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rdi], rsi
mov rbx, qword [rsp + 0x68]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1801fbc70
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x1801f3d70
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov ebp, r8d
mov qword [rcx], 0
mov r14d, edx
mov qword [rcx + 8], 0
mov rdi, rcx
call fcn.1801f3c00
test eax, eax
jne 0x1801f3db7
mov eax, 9
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rdi], 0
je 0x1801f3e2e
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rdi + 0xc], ebx
jbe 0x1801f3e16
mov qword [rsp + 0x38], rsi
nop
mov r8, qword [rdi]
xor edx, edx
mov r8d, dword [r8 + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1801f3e0a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.1801f3a50
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x1801f3dd0
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rbp, qword [rsp + 0x40]
xor eax, eax
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1801f3e50
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rcx
je 0x1801f3ebf
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x1801f3ea8
mov qword [rsp + 0x38], rsi
mov r8, qword [rdi]
xor edx, edx
mov r8d, dword [r8 + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1801f3e9c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x1801f3e70
mov rsi, qword [rsp + 0x38]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x18067b9b8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1801f3ed0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov eax, ecx
lea r9, [rsp + 0x30]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x18067e410]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1801f3f34
mov eax, 0xa
jmp 0x1801f3fc7
test esi, esi
je 0x1801f3f56
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x1801f3f79
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x1801f3f79
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x1801f3f72
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x1801f3f79
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1801f3fe0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
mov r8d, dword [0x18067e41c]
mov esi, ecx
xor ecx, ecx
mov ebx, ecx
test r8d, r8d
je 0x1801f4027
mov rax, qword [0x18067e410]
add rax, 0x20
nop word [rax + rax]
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x1801f4034
inc ebx
add rax, 0x38
cmp ebx, r8d
jb 0x1801f4010
mov eax, ecx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp ebx, 0xffffffff
je 0x1801f4027
test esi, esi
mov qword [rsp + 0x48], rdi
mov edx, 0xffffffff
setne cl
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.1801f3d70
mov edi, eax
test eax, eax
jne 0x1801f411d
mov r9d, dword [0x18067e41c]
cmp ebx, r9d
jae 0x1801f40ac
nop dword [rax + rax]
mov ecx, ebx
imul rdx, rcx, 0x38
mov rcx, qword [0x18067e410]
movzx r8d, byte [rdx + rcx + 0x20]
shr r8d, 1
and r8d, 1
cmp r8d, esi
je 0x1801f40a5
mov edx, esi
mov ecx, ebx
call fcn.1801f3ed0
mov edi, eax
test eax, eax
jne 0x1801f40ac
mov r9d, dword [0x18067e41c]
inc ebx
cmp ebx, r9d
jb 0x1801f4070
cmp qword [rsp + 0x20], 0
je 0x1801f411b
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1801f4107
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1801f40f8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x1801f40d0
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18067b9b8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret

Function at 0x1801f58f0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov rax, r8
mov ecx, 0x5a4d
cmp word [r8], cx
jne 0x1801f59c6
movsxd rcx, dword [r8 + 0x3c]
cmp dword [rcx + r8], 0x4550
jne 0x1801f59c6
mov r8d, dword [rcx + r8 + 0x50]
test r8, r8
je 0x1801f59c6
add r8, rax
cmp byte [0x18067a7da], 0
je 0x1801f598d
cmp byte [0x18067a7d8], 0
je 0x1801f5962
movaps xmm0, xmmword [rdx]
lea r9, [rsp + 0x20]
mov rdx, rax
movdqa xmmword [rsp + 0x20], xmm0
mov rcx, rbx
call fcn.1801f6530
mov rax, rbx
add rsp, 0x30
pop rbx
ret
cmp byte [0x18067a7d7], 0
je 0x1801f598d
movaps xmm0, xmmword [rdx]
lea r9, [rsp + 0x20]
mov rdx, rax
movdqa xmmword [rsp + 0x20], xmm0
mov rcx, rbx
call fcn.1801f6060
mov rax, rbx
add rsp, 0x30
pop rbx
ret
cmp byte [0x18067a7d4], 0
lea r9, [rsp + 0x20]
movaps xmm0, xmmword [rdx]
mov rcx, rbx
movdqa xmmword [rsp + 0x20], xmm0
mov rdx, rax
je 0x1801f59b8
call fcn.1801f5b50
mov rax, rbx
add rsp, 0x30
pop rbx
ret
call fcn.1801f5830
mov rax, rbx
add rsp, 0x30
pop rbx
ret
mov qword [rbx], 0
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x18021615c
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.1801fcc40
sub rsp, rax
mov rax, qword [0x180672700]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18022298c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1802161ab
mov rax, rbp
jmp 0x1802162b3
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x6784a0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1802241f4
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x6784a0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1802162af
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 0x1802162af
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1802241f4
test rax, rax
js 0x1802162af
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1802162af
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1802162a1
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1802162a1
cmp byte [rcx], 0xd
jne 0x180216287
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180216296
cmp byte [rcx + 1], 0xa
jne 0x180216296
inc rcx
jmp 0x180216296
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x672b30]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180216269
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1802162b3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1801fbc70
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 0x180224398
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1802243ae
mov al, 1
jmp 0x18022440e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1802243bf
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18022440c
mov ecx, dword [rcx + 0x18]
nop
call fcn.18022f254
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18022440c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18022440c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18022440c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18022440e
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1802244e0
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, [0x1806784a0]
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 0x180224537
cmp word [rdx], r13w
jne 0x180224537
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18022453c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180224661
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180224682
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180224575
mov rdx, r9
mov word [rbx], cx
jmp 0x18022459c
cmp r9, r8
jae 0x1802245ac
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 0x180224556
jmp 0x180224661
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 0x180224656
cmp dword [rsp + 0x80], esi
je 0x180224656
lea r8, [0x1806784a0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18022462e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1802245fe
mov word [rbx], r13w
jmp 0x18022465e
mov ecx, 0xd
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 0x18022460b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18022465e
cmp word [rsp + 0x70], r13w
jne 0x18022463b
cmp rbx, r14
je 0x1802245f8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1802241fc
cmp word [rsp + 0x70], r13w
je 0x180224661
mov ecx, 0xd
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, [0x1806784a0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18022465b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180224661
Function at 0x18022a068
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18022a098
xor eax, eax
jmp 0x18022a15b
mov rbp, rbx
cmp word [rax], si
je 0x18022a0bd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18022a0a4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18022a0a0
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.180227cc4
movsxd r14, eax
test eax, eax
jne 0x18022a0fb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18022a091
mov rcx, r14
call fcn.180221764
mov rdi, rax
test rax, rax
jne 0x18022a114
xor ecx, ecx
call fcn.1802216b8
jmp 0x18022a0f0
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180227cc4
test eax, eax
jne 0x18022a145
mov rcx, rdi
call fcn.1802216b8
jmp 0x18022a14f
xor ecx, ecx
call fcn.1802216b8
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x18022d2ec
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.18021e8bc
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 0x18022d38d
cmp ebx, dword [rsp + 0x30]
je 0x18022d386
test esi, esi
je 0x18022d386
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18022d361
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18022d36e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18022d34b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18022d372
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18022d38f
mov eax, 1
jmp 0x18022d38f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180232310
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.1802241fc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1802241fc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180232460
cmp rax, 0xffffffffffffffff
je 0x180232460
xor edi, edi
test rbp, rbp
jle 0x18023240b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180221640
mov rbx, rax
test rax, rax
jne 0x180232398
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180232401
mov edx, 0x8000
mov ecx, r14d
call fcn.180232194
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.180223c40
cmp eax, 0xffffffff
je 0x1802323e1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1802323a8
mov edx, r15d
mov ecx, r14d
call fcn.180232194
jmp 0x180232401
cmp byte [rsi + 0x38], dil
je 0x1802323f8
cmp dword [rsi + 0x34], 5
jne 0x1802323f8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180232401
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1802216b8
jmp 0x180232474
jns 0x180232474
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1802241fc
cmp rax, 0xffffffffffffffff
jne 0x18023242c
cmp byte [rsi + 0x30], dil
je 0x180232474
mov edi, dword [rsi + 0x2c]
jmp 0x180232474
mov ecx, r14d
call fcn.18022f254
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180232474
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x180232474
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18023246d
mov eax, dword [rsi + 0x2c]
jmp 0x180232472
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1802241fc
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