joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002e240
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.140022c18
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140022c18
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002e390
cmp rax, 0xffffffffffffffff
je 0x14002e390
xor edi, edi
test rbp, rbp
jle 0x14002e33b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001cd58
mov rbx, rax
test rax, rax
jne 0x14002e2c8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002e331
mov edx, 0x8000
mov ecx, r14d
call fcn.1400188ec
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.1400205f4
cmp eax, 0xffffffff
je 0x14002e311
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14002e2d8
mov edx, r15d
mov ecx, r14d
call fcn.1400188ec
jmp 0x14002e331
cmp byte [rsi + 0x38], dil
je 0x14002e328
cmp dword [rsi + 0x34], 5
jne 0x14002e328
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002e331
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001cd1c
jmp 0x14002e3a4
jns 0x14002e3a4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140022c18
cmp rax, 0xffffffffffffffff
jne 0x14002e35c
cmp byte [rsi + 0x30], dil
je 0x14002e3a4
mov edi, dword [rsi + 0x2c]
jmp 0x14002e3a4
mov ecx, r14d
call fcn.1400252f4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14002e3a4
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 0x14002e3a4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14002e39d
mov eax, dword [rsi + 0x2c]
jmp 0x14002e3a2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140022c18
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 0x14002ea80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002eaa8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002eaa8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x407ff0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
cmp byte [0x0069d0a0], 0
je 0x4080ab
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rdi, rax
mov rcx, rsi
call fcn.0040f100
mov rcx, rdi
mov rdx, rsi
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rsi, rax
mov rcx, qword [0x006670c0]
call fcn.0040f100
mov rcx, rsi
mov rdx, qword [0x006670c0]
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rsi, rax
mov rcx, rbx
call fcn.0040f100
mov rcx, rsi
mov rdx, rbx
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x4080bf
xor ecx, ecx
mov rdx, rbx
mov r8, rsi
mov r9d, 0x2010
call sub.user32.dll_MessageBoxA
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x40c480
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbp
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov ebx, edx
mov rax, qword [rbp + 0x28]
mov r13d, dword [rax + 0x18]
mov rcx, qword [rbp + 0x28]
call fcn.0040cac0
mov esi, eax
test sil, sil
jne 0x40c636
test ebx, ebx
je 0x40c636
xor edi, edi
test r13d, r13d
jle 0x40c562
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov dword [rbp + 0x3c], 0
test r13d, r13d
jle 0x40c546
cmp ebx, 0xffffffff
je 0x40c4f3
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x40c4f3
xor esi, esi
jmp 0x40c636
mov rax, qword [rbp + 0x28]
cmp dword [rax], 1
jg 0x40c546
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0
jne 0x40c534
xor eax, eax
mov ecx, 1
mov rdx, qword [rbp + 0x28]
lock cmpxchg dword [rdx], ecx
test eax, eax
jne 0x40c534
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp 0x40c636
lea rcx, [rbp + 0x3c]
call fcn.0040c020
sub r13d, 1
test r13d, r13d
jg 0x40c4da
nop
cmp ebx, 0xffffffff
je 0x40c562
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x40c560
xor esi, esi
jmp 0x40c636
sub ebx, eax
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x40c49d
mov edx, ecx
add edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40c562
nop
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov rcx, qword [rbp + 0x28]
call fcn.0040c6e0
xor ecx, ecx
mov rdx, rax
mov r8d, ebx
mov rax, qword [0x0069d998]
call qword [rax + 0x20]
test eax, eax
sete sil
cmp ebx, 0xffffffff
je 0x40c5c5
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jae 0x40c5c3
sub ebx, eax
jmp 0x40c5c5
xor ebx, ebx
test sil, sil
je 0x40c5f7
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov eax, ecx
test eax, 1
jne 0x40c5f4
mov edx, ecx
sub edx, 2
or edx, 1
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40c5ca
mov dil, 1
nop
jmp 0x40c614
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov edx, ecx
sub edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40c5f7
mov dil, 1
test dil, dil
je 0x40c585
nop
test sil, sil
je 0x40c636
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov eax, esi
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop r13
pop r14
pop rbp
ret
Function at 0x40e370
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x0069d0a0], 0
je 0x40e40e
cmp word [0x0069d3b0], 0xd7b2
jne 0x40e3a3
cmp dword [0x0069d3b8], 0
jbe 0x40e3a3
lea rcx, [0x0069d3a8]
call qword [0x0069d3d0]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x00668980]
mov r8d, 0x25
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rbx, rax
lea rcx, [0x0040e444]
call fcn.0040fbe0
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x40e42f
cmp byte [0x00667052], 0
jne 0x40e42f
xor ecx, ecx
lea rdx, [0x00668980]
lea r8, str.Error
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40e720
Capabilities:
Create thread

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x48
mov qword [rsp + 0x38], rcx
mov ebx, edx
mov rsi, r8
mov rdi, r9
cmp qword [0x00667058], 0
je 0x40e751
mov rcx, rsi
mov rdx, rdi
call qword [0x00667058]
mov r13, rax
jmp 0x40e767
mov ecx, 0x10
call fcn.00409030
mov r13, rax
mov qword [r13], rsi
mov qword [r13 + 8], rdi
mov byte [0x0069d0a1], 1
mov rcx, qword [rsp + 0x38]
mov edx, ebx
lea r8, [0x0040e6b0]
mov r9, r13
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x28], rax
call sub.kernel32.dll_CreateThread
mov rbx, rax
test rbx, rbx
jne 0x40e7ac
mov rcx, r13
call fcn.00409060
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x413370
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x006a1ef8]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x006a1f20], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x006a1ef0], al
cmp byte [0x006a1ef0], 0
je 0x41340f
lea rcx, [0x00413414]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0041342e]
call sub.kernel32.dll_GetProcAddress
mov qword [0x006a1ed8], rax
lea rcx, [0x00413414]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0041344c]
call sub.kernel32.dll_GetProcAddress
mov qword [0x006a1ee0], rax
lea rcx, [0x00413414]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0041346a]
call sub.kernel32.dll_GetProcAddress
mov qword [0x006a1ee8], rax
add rsp, 0x28
ret
Function at 0x4136b0
Capabilities:
Get geographical location

Disassembly:
push rbp
push rbx
sub rsp, 0x1d8
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov word [rbp + 0x56], r8w
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x48]
call fcn.0040e920
movzx rax, word [rbp + 0x56]
cmp word [0x00669170], ax
ja 0x41379c
movzx rax, word [rbp + 0x56]
cmp ax, word [0x00669570]
mov word [rbp + 0x56], ax
ja 0x41379c
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x41379b
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
mov edx, eax
lea r9, [0x00669170]
mov r10, rdx
add r10, r10
movzx r11, word [rbp + 0x56]
cmp word [r9 + r10*8], r11w
jbe 0x413754
mov ecx, eax
sub ecx, 1
jmp 0x413796
lea r8, [0x00669170]
mov r9, rdx
add r9, r9
movzx r10, word [rbp + 0x56]
cmp word [r8 + r9*8], r10w
jae 0x413776
mov r8d, eax
add r8d, 1
jmp 0x413796
mov rcx, qword [rbp + 0x40]
mov rax, qword [rbp + 0x48]
lea r8, [0x00669178]
add rdx, rdx
mov r8, qword [r8 + rdx*8]
mov rdx, rax
call fcn.00413560
jmp 0x41379b
cmp ecx, r8d
jae 0x413721
nop
mov rax, qword [rbp + 0x48]
cmp qword [rax], 0
jne 0x41387a
movzx rcx, word [rbp + 0x56]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x41387a
movzx rbx, word [rbp + 0x56]
movzx ebx, bx
mov ecx, ebx
mov edx, 0x59
lea r8, [rbp + 0x126]
mov r9d, 0x55
call sub.kernel32.dll_GetLocaleInfoW
mov ecx, ebx
mov edx, 0x5a
lea r8, [rbp + 0x7c]
mov r9d, 0x55
call sub.kernel32.dll_GetLocaleInfoW
lea rcx, [rbp + 0x68]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.00410830
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.00410830
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.00410830
mov rcx, qword [rbp + 0x48]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x004138cc]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x004138dc]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.00410ca0
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.0040ea00
mov rax, qword [rbp + 0x48]
lea rsp, [rbp + 0x1d8]
pop rbx
pop rbp
ret
Function at 0x413ae0
Capabilities:
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov word [rbp + 0x36], dx
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], 0
nop
lea rcx, [0x006a1ef8]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x006a1f20], ax
jne 0x413b4b
mov rcx, qword [rbp + 0x28]
lea rdx, [0x006a1f22]
mov r8d, 0x55
call fcn.00410830
lea rcx, [0x006a1ef8]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x413c56
lea rcx, [0x006a1ef8]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.0040e920
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x413c10
cmp byte [0x006a1ef0], 0
je 0x413ba4
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.00413970
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.0040ef50
jmp 0x413c10
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.004136b0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040ef50
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x413c10
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x413bef
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00413c9c]
call fcn.00410aa0
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.004136b0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.00410aa0
lea rcx, [0x006a1ef8]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x006a1f20], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.00410730
lea rcx, [0x006a1f22]
mov edx, 0xaa
mov r8, rax
call fcn.004134a0
lea rcx, [0x006a1ef8]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.0040ea00
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x414600
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x70], r8
mov rcx, qword [rbp + 0x70]
call fcn.0040eab0
nop
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx ecx, ax
mov edx, 3
lea r8, [rbp + 0x48]
mov r9d, 4
call sub.kernel32.dll_GetLocaleInfoW
lea rcx, [rbp + 0x38]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.00410830
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x38]
call fcn.00410b70
mov rcx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x28]
mov rdx, qword [rax]
call fcn.00414450
test al, al
jne 0x4146ce
mov word [rbp + 0x4c], 0
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.00410830
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x30]
call fcn.00410b70
mov rcx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x28]
mov rdx, qword [rax]
call fcn.00414450
test al, al
jne 0x4146ce
mov rcx, qword [rbp + 0x28]
call fcn.0040e920
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040ea00
lea rcx, [rbp + 0x70]
call fcn.0040e920
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x414720
Capabilities:
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x88], rdx
mov qword [rbp + 0x90], r8
mov rcx, qword [rbp + 0x88]
call fcn.0040eab0
mov rcx, qword [rbp + 0x90]
call fcn.0040eab0
nop
mov rcx, qword [rbp + 0x28]
call fcn.0040e920
cmp qword [rbp + 0x90], 0
je 0x4148e0
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
call fcn.0040efd0
xor eax, eax
mov rcx, qword [rbp + 0x90]
test rcx, rcx
je 0x4147cb
mov eax, dword [rcx - 4]
cmp eax, 1
jl 0x414805
mov rcx, qword [rbp + 0x90]
movsxd rdx, eax
cmp word [rcx + rdx*2 - 2], 0x2e
jne 0x4147fe
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
mov r8d, 1
mov r9d, eax
call fcn.00410d90
jmp 0x414805
sub eax, 1
test eax, eax
jne 0x4147d0
nop
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
call fcn.00414350
cmp qword [rbp + 0x68], 0
je 0x414843
mov rcx, rbp
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x68]
call fcn.004144e0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
call fcn.0040ef50
jmp 0x4148df
call sub.kernel32.dll_GetUserDefaultUILanguage
lea rcx, [rbp + 0x48]
mov edx, eax
call fcn.00413ae0
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x48]
call fcn.004144e0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x50]
call fcn.0040ef50
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x4148b8
cmp byte [0x006a1ef0], 0
jne 0x4148b8
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.00413ae0
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x38]
call fcn.004144e0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040ef50
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x4148df
mov rcx, rbp
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x60]
call fcn.00414600
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
call fcn.0040ef50
nop
lea rcx, [rbp + 0x30]
mov edx, 8
call fcn.0040ea00
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.0040ea00
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x416ec0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x416ee0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
call sub.kernel32.dll_GetVersion
mov ecx, eax
and ecx, 0xff
and eax, 0xff00
shr eax, 8
cmp ecx, 5
jne 0x416f04
cmp eax, 1
jae 0x416f09
cmp ecx, 5
jbe 0x416f15
mov dword [0x0069da28], 0x7f
jmp 0x416f1f
mov dword [0x0069da28], 0x409
add rsp, 0x28
ret
Function at 0x418720
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.00418710
mov ebx, eax
test ebx, ebx
je 0x41876b
cmp dword [0x0066a268], 0xffffffff
jne 0x418744
mov ecx, 0xe2
call fcn.0040e600
mov ecx, ebx
call fcn.004186f0
test rax, rax
jne 0x41875d
mov ecx, 0xe2
call fcn.0040e600
jmp 0x41876b
mov ecx, dword [0x0066a268]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

Function at 0x4187c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
lea rax, [0x248]
test rax, rax
je 0x4187ff
cmp dword [0x0066a268], 0xffffffff
je 0x4187ff
mov ecx, dword [0x0066a268]
call sub.kernel32.dll_TlsGetValue
test rax, rax
je 0x4187ff
mov rcx, rax
call sub.kernel32.dll_LocalFree
mov ecx, dword [0x0066a268]
xor edx, edx
call sub.kernel32.dll_TlsSetValue
add rsp, 0x28
ret

Function at 0x418840
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x006a3268], 0
je 0x41887b
mov ecx, dword [0x0066a268]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x41888e
call fcn.00418720
mov ecx, dword [0x0066a268]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x41888e
mov rax, qword [0x006a32a8]
jmp 0x41888e
mov rax, qword gs:[0x58]
mov ecx, dword [0x0066a268]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

Function at 0x42cff0
Capabilities:
Get disk information

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x468
mov rbp, rsp
mov qword [rbp + 0x20], rdx
mov qword [rbp + 0x28], r8
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x40], 0
nop
mov ecx, 0x104
lea rdx, [rbp + 0x254]
call sub.kernel32.dll_GetLogicalDriveStringsW
mov esi, eax
test esi, esi
jle 0x42d104
lea rbx, [rbp + 0x254]
mov word [rbx + 4], 0
mov rcx, rbx
lea rdx, [rbp + 0x48]
mov r8d, 0x104
call sub.kernel32.dll_QueryDosDeviceW
mov esi, eax
test esi, esi
jle 0x42d0ea
lea rcx, [rbp + 0x40]
lea rdx, [rbp + 0x48]
mov r8d, 0x106
call fcn.00410830
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x28]
mov r8d, 1
call fcn.00410f20
test eax, eax
jle 0x42d0ea
xor esi, esi
mov rax, qword [rbp + 0x40]
test rax, rax
je 0x42d09f
mov esi, dword [rax - 4]
xor edi, edi
mov rax, qword [rbp + 0x28]
test rax, rax
je 0x42d0ad
mov edi, dword [rax - 4]
lea rcx, [rbp + 0x38]
mov rdx, rbx
call fcn.004107d0
lea rcx, [rbp + 0x30]
mov rdx, qword [rbp + 0x28]
mov r8d, esi
add r8d, 1
mov r9d, edi
sub r9d, esi
call fcn.00410d90
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x38]
mov r8, qword [rbp + 0x30]
call fcn.00410b70
jmp 0x42d103
add rbx, 2
cmp word [rbx], 0
jne 0x42d0e6
add rbx, 4
test rbx, rbx
je 0x42d103
cmp word [rbx], 0
jne 0x42d042
nop
nop
lea rcx, [rbp + 0x30]
mov edx, 3
call fcn.0040ea00
mov rax, qword [rbp + 0x20]
lea rsp, [rbp + 0x468]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x42d2a0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push rbp
sub rsp, 0x2a0
mov rbp, rsp
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x68], rbp
mov qword [rbp + 0x2b0], rcx
mov qword [rbp + 0x2b8], rdx
mov qword [rbp + 0x2c0], r8
mov dword [rbp + 0x2c8], r9d
nop
mov byte [rbp + 0x28f], 0
mov rcx, qword [rbp + 0x2c0]
call fcn.0040e920
mov dword [rbp + 0x288], 0
mov rcx, qword [rbp + 0x2b8]
lea rdx, [rbp + 0x288]
call sub.kernel32.dll_GetFileSize
mov dword [rbp + 0x284], eax
cmp dword [rbp + 0x284], 0
jne 0x42d3b7
cmp dword [rbp + 0x288], 0
jne 0x42d3b7
mov ecx, 6
xor edx, edx
call fcn.004399a0
test al, al
je 0x42d3b7
mov rcx, qword [rbp + 0x2b8]
lea rdx, [rbp + 0x78]
mov r8d, 0x104
mov r9d, 2
call sub.kernel32.dll_GetFinalPathNameByHandleW
test eax, eax
jbe 0x42d3b7
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x78]
mov r8d, 0x106
call fcn.00410830
mov rcx, rbp
lea rdx, [rbp + 0x60]
mov r8, qword [rbp + 0x58]
call fcn.0042cff0
mov rcx, qword [rbp + 0x2c0]
mov rdx, qword [rbp + 0x60]
call fcn.0040ef50
mov byte [rbp + 0x28f], 1
jmp 0x42d521
cmp dword [rbp + 0x284], 0
jne 0x42d3cd
cmp dword [rbp + 0x288], 0
je 0x42d4ba
mov rcx, qword [rbp + 0x2b8]
xor edx, edx
mov r8d, 2
xor r9, r9
mov dword [rsp + 0x20], 1
mov qword [rsp + 0x28], 0
call sub.kernel32.dll_CreateFileMappingW
mov qword [rbp + 0x290], rax
cmp qword [rbp + 0x290], 0x3ee
je 0x42d4ba
nop
mov rcx, qword [rbp + 0x290]
mov edx, 4
xor r8, r8
xor r9, r9
mov qword [rsp + 0x20], 1
call sub.kernel32.dll_MapViewOfFile
mov qword [rbp + 0x298], rax
cmp qword [rbp + 0x298], 0
je 0x42d4ad
nop
call sub.kernel32.dll_GetCurrentProcess
mov rcx, rax
mov rdx, qword [rbp + 0x298]
lea r8, [rbp + 0x78]
mov r9d, 0x104
call fcn.0041ccc0
test eax, eax
jbe 0x42d4a0
lea rcx, [rbp + 0x48]
lea rdx, [rbp + 0x78]
mov r8d, 0x106
call fcn.00410830
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x48]
call fcn.0042cff0
mov rcx, qword [rbp + 0x2c0]
mov rdx, qword [rbp + 0x50]
call fcn.0040ef50
mov byte [rbp + 0x28f], 1
nop
mov rcx, qword [rbp + 0x298]
call sub.kernel32.dll_UnmapViewOfFile
nop
mov rcx, qword [rbp + 0x290]
call sub.kernel32.dll_CloseHandle_1
cmp byte [rbp + 0x28f], 0
jne 0x42d520
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x2b8]
call fcn.0042d150
mov rcx, qword [rbp + 0x2c0]
mov rdx, qword [rbp + 0x40]
call fcn.0040ef50
mov rax, qword [rbp + 0x2c0]
cmp qword [rax], 0
je 0x42d520
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov rax, qword [rbp + 0x2c0]
mov r8, qword [rax]
call fcn.0042cff0
mov rcx, qword [rbp + 0x2c0]
mov rdx, qword [rbp + 0x38]
call fcn.0040ef50
mov byte [rbp + 0x28f], 1
nop
lea rcx, [rbp + 0x38]
mov edx, 6
call fcn.0040ea00
movzx rax, byte [rbp + 0x28f]
lea rsp, [rbp + 0x2a0]
pop rbp
ret
Function at 0x42d5b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x48], rbp
mov qword [rbp + 0x80], rcx
mov qword [rbp + 0x88], rdx
mov byte [rbp + 0x67], 0
mov ecx, 6
xor edx, edx
call fcn.004399a0
test al, al
je 0x42d6c5
mov rcx, qword [rbp + 0x80]
xor edx, edx
call fcn.0042f710
test al, al
je 0x42d6c5
mov rcx, qword [rbp + 0x80]
call fcn.0042f300
test al, 0x20
je 0x42d6c5
mov rcx, qword [rbp + 0x80]
call fcn.00410730
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
mov dword [rbp + 0x5c], eax
cmp dword [rbp + 0x5c], 0xffffffff
je 0x42d6c5
mov eax, dword [rbp + 0x5c]
test eax, 0x400
je 0x42d6c5
mov eax, dword [rbp + 0x5c]
test eax, 0x10
je 0x42d652
mov dword [rbp + 0x60], 0x2000000
jmp 0x42d659
mov dword [rbp + 0x60], 0
mov rcx, qword [rbp + 0x80]
call fcn.00410730
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov eax, dword [rbp + 0x60]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0xffffffffffffffff
je 0x42d6c5
nop
mov rcx, rbp
mov rdx, qword [rbp + 0x68]
mov r8, qword [rbp + 0x88]
mov r9d, dword [rbp + 0x60]
call fcn.0042d2a0
mov byte [rbp + 0x67], al
nop
mov rcx, qword [rbp + 0x68]
call sub.kernel32.dll_CloseHandle_1
movzx rax, byte [rbp + 0x67]
lea rsp, [rbp + 0x70]
pop rbp
ret