joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1801ab5b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r8
mov rsi, rdx
mov ebx, ecx
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x1801ab580]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x1803d8160]
lea rdx, [0x1801ab470]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1801ab6c0
cmp dword [0x1803d8168], 0
jne 0x1801ab6b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x1803d816c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x1801ab65c
mov ecx, 1
mov edx, 0x28
call fcn.1800d5a50
test rax, rax
je 0x1801ab6b0
mov r14, rax
mov ecx, dword [0x1803d816c]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1801ab6a8
lea r15, [0x1803d8170]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x1803d8178]
mov qword [rax + rbx*8], rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [r14 + rbx*8], rsi
mov esi, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1801e6610
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, r14
call fcn.1800d59b0
mov rcx, rsi
mov rax, rdi
call qword [0x1803f5008]
xor esi, esi
jmp 0x1801ab68c
call fcn.1801fee30
int3

Function at 0x1801abf50
Capabilities:
Inspect section memory permissions

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r15, rcx
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
jne 0x1801ac024
test dil, 8
jne 0x1801ac041
xor r14d, r14d
cmp byte [r15 + 0x60], 0
mov r12d, 0
je 0x1801abf99
mov r12, qword [r15 + 0x58]
cmp byte [r15 + 0x48], 0
mov r13d, 0
je 0x1801abfaa
mov r13, qword [r15 + 0x40]
cmp byte [r15 + 0x38], 0
jne 0x1801ac016
cmp byte [r15 + 0x18], 0
jne 0x1801ac009
xor r9d, r9d
cmp ebx, 4
jne 0x1801ac05e
mov edx, 6
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r14
mov rcx, rsi
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
mov esi, eax
test eax, eax
jne 0x1801abfff
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1801abfea
mov rcx, r15
call fcn.1801e0370
mov r9, rax
jmp 0x1801abfbb
lea rcx, [r15 + 0x20]
call fcn.1801e0370
mov r14, rax
jmp 0x1801abfb1
cmp byte [r15 + 0x50], 0
je 0x1801ac036
or edi, 0x80000000
jmp 0x1801abf7b
or edi, 0x20000000
jmp 0x1801abf7b
cmp byte [r15 + 0x68], 0
je 0x1801ac053
or edi, 0x40000000
jmp 0x1801abf85
or edi, 0x10000000
jmp 0x1801abf85
mov edx, 1
test ebx, ebx
je 0x1801abfc9
lea eax, [rbx - 2]
cmp eax, 2
jae 0x1801ac07d
mov edx, 7
jmp 0x1801abfc9
cmp ebx, 1
jne 0x1801ac08c
mov edx, 4
jmp 0x1801abfc9
xor edx, edx
jmp 0x1801abfc9
Function at 0x1801ac870
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov edi, 2
cmp rdx, 1
je 0x1801ac899
lea rax, [rdx - 1]
test rdx, rax
je 0x1801ac8b4
mov rcx, rdx
call fcn.1800f5d5b
mov rdi, rax
mov rbx, qword [rsi + 8]
cmp rdi, rbx
jbe 0x1801ac8b9
mov rcx, rsi
mov rdx, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp 0x180170700
mov rdi, rdx
jmp 0x1801ac899
jae 0x1801ac9af
mov rax, qword [rsi + 0x18]
test rax, rax
jns 0x1801ac8df
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
jmp 0x1801ac8e4
cvtsi2ss xmm0, rax
divss xmm0, dword [rsi + 0x20]
call fcn.180203dd8
cvttss2si rax, xmm0
mov rcx, rax
subss xmm0, dword [0x1803507c0]
cvttss2si rdx, xmm0
sar rcx, 0x3f
and rdx, rcx
or rdx, rax
cmp rbx, 3
jb 0x1801ac997
mov rax, rbx
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, rbx
sub rax, rcx
movabs rcx, 0x3333333333333333
mov r8, rax
shr r8, 2
and rax, rcx
and r8, rcx
add r8, rax
mov rax, r8
shr rax, 4
add rax, r8
movabs rcx, 0xf0f0f0f0f0f0f0f
and rcx, rax
movabs rax, 0x101010101010101
imul rax, rcx
shr rax, 0x38
cmp eax, 1
ja 0x1801ac997
lea rax, [rdx - 1]
bsr rcx, rax
xor ecx, 0x3f
neg cl
mov eax, 1
shl rax, cl
cmp rdx, 2
cmovb rax, rdx
jmp 0x1801ac99f
mov rcx, rdx
call fcn.1800f5d5b
cmp rdi, rax
cmovbe rdi, rax
cmp rdi, rbx
jb 0x1801ac8a2
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x1801b5f50
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1801b5f65
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret
Function at 0x1801c7340
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x1803cc0d0], 0
jne 0x1801c737d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1801c7370
mov dword [rdi], eax
mov dword [0x1803cc0d8], eax
mov qword [0x1803cc0d0], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3

Function at 0x1801c7ad0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
xor eax, eax
test r8d, r8d
sete al
xor r8d, r8d
test edx, edx
sete r8b
xor ecx, ecx
mov edx, r8d
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], 0
test rax, rax
je 0x1801c7b6a
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1801c7b54
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1801c7b31
mov qword [rsi], rdi
call fcn.18010a990
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov byte [rsi + 8], 0
inc rax
cmp rax, 1
jbe 0x1801c7b6e
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.18010a990
mov rcx, qword [rsi]
call fcn.1800fd300
mov qword [rsi], 0
jmp 0x1801c7b1f
mov byte [rsi + 8], 0
int3
Function at 0x1801cd670
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2b8
mov rsi, rcx
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
movaps xmm0, xmmword [0x1803467d0]
lea rdi, [rsp + 0x60]
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, [0x18035d14a]
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0xa0]
mov rcx, rbx
mov r9d, 0x4f9
call fcn.18010a970
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.180101470
lea rbx, [rsp + 0xa0]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.1801e8860
mov word [rbx], 0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
dec edi
cmp edi, 0x103
ja 0x1801cd764
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.180206ad4
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.18010abf0
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.180183100
mov rcx, rsi
mov rdx, r14
call fcn.18010ae40
mov rcx, r14
call fcn.18010ad40
mov rcx, rbx
call fcn.18010ad40
cmp edi, 0x104
setb bl
lea rcx, [rsp + 0x60]
call fcn.1801014d0
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.1801e6610
mov eax, ebx
add rsp, 0x2b8
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1801ceaf4
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1803b6038]
xor rax, rsp
mov ebx, 0xffffffff
cmp r8, rbx
cmovb rbx, r8
mov qword [rsp + 0x30], rax
lea r14, [rsp + 0x2c]
mov r15, qword [sym.imp.KERNEL32.dll_ReadFile]
mov r12, qword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rsi
mov r8d, ebx
mov r9, r14
call r15
test eax, eax
je 0x1801ceb97
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x1801ceb72
mov rcx, rdi
call r12
cmp eax, 3
je 0x1801ceb35
mov eax, dword [rsp + 0x2c]
jmp 0x1801ceb77
cmp eax, 0xffffffff
je 0x1801cebab
mov esi, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1801e6610
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x6d
setne sil
neg rsi
jmp 0x1801ceb79
int3

Function at 0x1801cece9
Capabilities:
Write file on windows

Disassembly:
mov rcx, qword [rcx + 8]
jmp 0x1801cece9
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov edi, 0xffffffff
cmp r8, rdi
cmovae r8, rdi
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1801ced49
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x1801ced52
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1801e6610
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x1801ced32
int3

Function at 0x1801cf040
Capabilities:
Get memory capacity

Disassembly:
push rsi
sub rsp, 0x70
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x68], rax
call fcn.180177ea0
test al, al
jne 0x1801cf0ac
movaps xmm0, xmmword [0x1803467d0]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
movaps xmmword [rcx + 0x30], xmm0
movaps xmmword [rcx + 0x20], xmm0
movaps xmmword [rcx + 0x10], xmm0
mov dword [rcx], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x1801cf0a3
mov rsi, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1801e6610
mov rax, rsi
add rsp, 0x70
pop rsi
ret
call fcn.1802d1e10
xor esi, esi
jmp 0x1801cf08d
xorps xmm0, xmm0
lea rsi, [rsp + 0x20]
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov rdx, rsi
call fcn.1802f4d40
test eax, eax
je 0x1801cf05d
mov rsi, qword [rsp + 0x20]
add rsi, qword [rsp + 0x38]
jmp 0x1801cf08d

Function at 0x1801d31d0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1803c7ba4]
cmp ecx, 0xffffffff
je 0x1801d31f5
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 3
dec eax
cmp eax, 2
setb al
add rsp, 0x28
ret
xor eax, eax
jmp 0x1801d31f0
Function at 0x1801d58e0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x1801d5927
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1801d5941
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1801d591f
mov qword [rsi], rdi
call fcn.18010a990
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x1801d5957
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.18010a990
mov rcx, qword [rsi]
call fcn.1800fd300
mov qword [rsi], 0
jmp 0x1801d590d
int3
Function at 0x1801dd760
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, qword [rcx]
lea r14, [rsi + 1]
cmp r14, 2
jae 0x1801dd7a6
xor ebx, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1801e6610
mov eax, ebx
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rdi, rcx
cmp dword [rcx + 8], 1
jne 0x1801dd88d
mov qword [rdi], 0
call fcn.18010a990
test rsi, rsi
je 0x1801dd7d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.18010a990
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x38]
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor ecx, ecx
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], 5
mov rcx, rax
mov rdx, rsi
mov r8, rax
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
setne bl
je 0x1801dd85b
mov r15, qword [rsp + 0x38]
cmp qword [rdi], r15
je 0x1801dd854
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x1801dd877
lea rax, [r15 + 1]
cmp rax, 2
jb 0x1801dd84c
mov qword [rdi], r15
call fcn.18010a990
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rdi + 8], 0
cmp r14, 2
jb 0x1801dd78a
call fcn.18010a990
mov rcx, rsi
call fcn.1800fd300
jmp 0x1801dd78a
call fcn.18010a990
mov rcx, qword [rdi]
call fcn.1800fd300
mov qword [rdi], 0
jmp 0x1801dd83a
int3
Function at 0x1801dfd20
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1801e8860
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, 0x28
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x1801dfdb5
cmp word [rsp + 0x70], 0
je 0x1801dfdb5
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.180206ad4
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.18010abf0
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.1801e6610
mov rax, rsi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1803467d0]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.1800f3690
mov rcx, rdi
call fcn.180176310
test al, al
je 0x1801dfdff
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1801826d0
lea rcx, [rsp + 0x40]
call fcn.18010ad40
jmp 0x1801dfd97
lea rax, [0x18035d06c]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.18010abf0
jmp 0x1801dfdf3

Function at 0x1801e3470
Capabilities:
Get hostname

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x260
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x258], rax
lea rsi, [rsp + 0x50]
mov r8d, 0x200
mov rcx, rsi
mov dl, 0xaa
call fcn.1801e8860
mov word [rsi], 0
lea r8, [rsp + 0x4c]
mov dword [r8], 0x100
mov ecx, 3
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x1801e3507
lea rax, str..corp.microsoft.com
lea rdi, [rsp + 0x38]
mov qword [rdi], rax
mov qword [rdi + 8], 0x13
lea rbx, [rsp + 0x28]
mov qword [rbx], rsi
mov rcx, rsi
call fcn.180206ad4
mov qword [rbx + 8], rax
mov rcx, rbx
mov rdx, rdi
mov r8d, 1
call fcn.1802f5480
mov sil, 1
test al, al
jne 0x1801e3509
xor esi, esi
mov rcx, qword [rsp + 0x258]
xor rcx, rsp
call fcn.1801e6610
mov eax, esi
add rsp, 0x260
pop rbx
pop rdi
pop rsi
ret
Function at 0x1801e5884
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x18000003c]
lea rsi, [0x180000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x1801e58fc
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x1801e58fc
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x1801e58fc
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x1801e58f0
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x1801e590e
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x1801e58de
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x1801e58fe

Function at 0x1801f8bf8
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 0x1801f8c2f
call fcn.1801fbc7c
mov dword [rax], 0x16
call fcn.1801fd4fc
xor eax, eax
jmp 0x1801f8cbd
mov rdx, r9
mov rcx, r8
call fcn.1801f8ce0
mov rbx, rax
test rax, rax
je 0x1801f8cba
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1801f8d50]
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 0x1801f8ca7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1801fbcbc
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1801f8c8e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1801f8c9d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1800d59b0
jmp 0x1801f8cba
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1801f8cb7
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 0x1801f8eac
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1801f8fa4
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 0x1801f9013
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1801f9013
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1801f9013
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1801f9013
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1801f9013
cmp dword [rcx + 0x84], 0xe
jbe 0x1801f9013
cmp dword [rcx + 0xf8], 0
je 0x1801f9013
mov ecx, ebx
call fcn.1801f8edc
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.1801f9138
nop
cmp dword [rbp + 0x20], 0
je 0x1801f9061
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1801f8f70
int3

Function at 0x1801fbfe0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x18033cc88]
mov rbp, rcx
call fcn.180211348
xor edi, edi
test rax, rax
je 0x1801fc0c6
mov ebx, edi
call fcn.1801fbc7c
mov r14d, dword [rax]
call fcn.1801fbc7c
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.180202430
mov rsi, rax
test rax, rax
je 0x1801fc057
call fcn.1801fbc7c
mov dword [rax], r14d
jmp 0x1801fc081
call fcn.1801fbc7c
cmp dword [rax], 0x22
jne 0x1801fc0be
call fcn.1801fbc7c
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.180202430
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1801fc0be
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1801fc085
cmp rax, 3
je 0x1801fc0a0
mov rcx, rsi
call fcn.1801fbf3c
test al, al
je 0x1801fc0b1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1801fc0b1
mov dil, 1
mov rcx, rbx
call fcn.1800d59b0
mov al, dil
jmp 0x1801fc0c8
mov rcx, rbx
call fcn.1800d59b0
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1801e6610
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1801fc8a8
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1801fc8f2
call fcn.1801fbc9c
mov dword [rax], 0xf
call fcn.1801fbc7c
mov dword [rax], 0xd
call fcn.1801fd4fc
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1801e6610
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1801fc8fd
lea eax, [rbx + 1]
jmp 0x1801fc8df
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 0x1801fc8dd
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1801fc8df
Function at 0x1801fead0
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, [0x1803c9280]
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 0x1801feb27
cmp word [rdx], r13w
jne 0x1801feb27
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1801feb2c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1801fec51
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1801fec72
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1801feb65
mov rdx, r9
mov word [rbx], cx
jmp 0x1801feb8c
cmp r9, r8
jae 0x1801feb9c
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 0x1801feb46
jmp 0x1801fec51
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 0x1801fec46
cmp dword [rsp + 0x80], esi
je 0x1801fec46
lea r8, [0x1803c9280]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1801fec1e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1801febee
mov word [rbx], r13w
jmp 0x1801fec4e
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 0x1801febfb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1801fec4e
cmp word [rsp + 0x70], r13w
jne 0x1801fec2b
cmp rbx, r14
je 0x1801febe8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1801fdd74
cmp word [rsp + 0x70], r13w
je 0x1801fec51
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, [0x1803c9280]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1801fec4b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1801fec51
Function at 0x180208e80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180208ea8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180208ea8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x180212b08
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.18020ca24
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 0x180212ba9
cmp ebx, dword [rsp + 0x30]
je 0x180212ba2
test esi, esi
je 0x180212ba2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180212b7d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180212b8a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x180212b67
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x180212b8e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x180212bab
mov eax, 1
jmp 0x180212bab
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret