joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004210
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rsi
push rdi
push r12
push r13
push r14
push r15
mov r14, qword [rsp + 0x58]
xor r15d, r15d
mov r11, qword [rsp + 0x70]
mov r13, rdx
mov rax, qword [rsp + 0x60]
mov qword [r14], r8
mov qword [r11], rax
mov rdi, qword [r14]
cmp rdi, r9
je 0x1400043a3
mov r12, qword [rsp + 0x68]
lea r8d, [r15 + 1]
mov rsi, qword [r11]
mov r9d, 0x3ff
mov r10d, 0x2400
mov ebx, 0x2800
cmp rsi, r12
je 0x1400043a3
movzx edx, word [r13]
xor bpl, bpl
movzx ecx, word [rdi]
cmp r8w, dx
jae 0x1400042a9
lea eax, [r10 + rcx]
cmp ax, r9w
ja 0x1400043c7
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x1400042bf
mov eax, ecx
add cx, bx
cmp cx, r9w
ja 0x1400042bf
shl eax, 0xa
mov bpl, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x1400042d2
movzx r9d, al
mov r10d, r15d
mov ebx, r15d
jmp 0x14000431d
mov r9d, eax
cmp eax, 0x800
jae 0x1400042ec
shr r9d, 6
mov r10d, r8d
or r9b, 0xc0
mov ebx, r8d
jmp 0x14000431d
cmp eax, 0x10000
jae 0x140004306
shr r9d, 0xc
mov r10d, 2
or r9b, 0xe0
mov ebx, r10d
jmp 0x14000431d
shr r9d, 0x12
mov r10d, 3
movzx ebx, bpl
or r9b, 0xf0
xor ebx, 1
add ebx, ebx
lea r8d, [rbx + 1]
mov rdx, r12
sub rdx, rsi
mov ecx, r8d
cmp rdx, rcx
jl 0x1400043a3
lea rcx, [rdi + 2]
mov qword [r14], rcx
test bpl, bpl
jne 0x140004341
cmp r10d, 3
jae 0x14000434d
mov rcx, qword [r11]
mov r8d, ebx
mov byte [rcx], r9b
inc qword [r11]
mov r9, qword [r11]
test r8d, r8d
jle 0x14000437e
lea ecx, [r10 + r10*2]
add ecx, ecx
nop dword [rax + rax]
sub ecx, 6
mov edx, eax
shr edx, cl
dec r8d
and dl, 0x3f
or dl, 0x80
mov byte [r9], dl
inc qword [r11]
mov r9, qword [r11]
test r8d, r8d
jg 0x140004360
shr eax, 0xa
mov r8d, 1
test bpl, bpl
mov ecx, r8d
cmovne ecx, eax
mov word [r13], cx
mov rdi, qword [r14]
cmp rdi, qword [rsp + 0x50]
jne 0x14000425e
mov rax, qword [rsp + 0x48]
cmp rax, qword [r14]
sete r15b
mov eax, r15d
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
mov eax, 2
jmp 0x1400043b2

Function at 0x140005f64
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140017850], eax
call fcn.14000d6d0
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140017850], 0
jne case.default.0x14000d9da
mov ecx, 1
call fcn.14000d6d0
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
lahf
enter 0x2d51, 0xffffffffffffffd2
mov dl, 0xb6
xchg edx, eax
rcr al, cl
jno 0x140025d6f
adc dword [rbx], eax
sub eax, 0x37bdb0f0
invalid
loopne 0x140025d73
int1
sub esp, ebp
in al, dx
mov edi, 0x5aa1c33b
leave
push rdx
out dx, al
invalid
Function at 0x140001edc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001f26
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001f26
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001f26
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001f26
cmp dword [rcx + 0x84], 0xe
jbe 0x140001f26
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001f28
xor al, al
add rsp, 0x28
ret
Function at 0x408010
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 [0x005fb0a0], 0
je 0x4080cb
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rdi, rax
mov rcx, rsi
call fcn.0040f060
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 [0x005cb0c0]
call fcn.0040f060
mov rcx, rsi
mov rdx, qword [0x005cb0c0]
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.0040f060
mov rcx, rsi
mov rdx, rbx
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x4080df
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 0x4093c0
Capabilities:
Get common file path
Set current directory

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x440
mov rbp, rsp
mov ebx, ecx
mov rsi, rdx
test bl, bl
je 0x409412
movzx ax, bl
add ax, 0x40
mov word [rbp + 0x438], ax
mov word [rbp + 0x43a], 0x3a
mov word [rbp + 0x43c], 0
mov ecx, 0x105
lea rdx, [rbp + 0x24]
call sub.kernel32.dll_GetCurrentDirectoryW
lea rcx, [rbp + 0x438]
call sub.kernel32.dll_SetCurrentDirectoryW
mov ecx, 0x105
lea rdx, [rbp + 0x22e]
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x409431
lea rcx, [rbp + 0x24]
call sub.kernel32.dll_SetCurrentDirectoryW
mov rcx, rsi
lea rdx, [rbp + 0x22e]
mov r8d, 0x105
call fcn.004102c0
lea rsp, [rbp + 0x440]
pop rbx
pop rsi
pop rbp
ret
Function at 0x40c3e0
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.0040ca20
mov esi, eax
test sil, sil
jne 0x40c596
test ebx, ebx
je 0x40c596
xor edi, edi
test r13d, r13d
jle 0x40c4c2
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov dword [rbp + 0x3c], 0
test r13d, r13d
jle 0x40c4a6
cmp ebx, 0xffffffff
je 0x40c453
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x40c453
xor esi, esi
jmp 0x40c596
mov rax, qword [rbp + 0x28]
cmp dword [rax], 1
jg 0x40c4a6
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0
jne 0x40c494
xor eax, eax
mov ecx, 1
mov rdx, qword [rbp + 0x28]
lock cmpxchg dword [rdx], ecx
test eax, eax
jne 0x40c494
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp 0x40c596
lea rcx, [rbp + 0x3c]
call fcn.0040bf80
sub r13d, 1
test r13d, r13d
jg 0x40c43a
nop
cmp ebx, 0xffffffff
je 0x40c4c2
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x40c4c0
xor esi, esi
jmp 0x40c596
sub ebx, eax
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x40c3fd
mov edx, ecx
add edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40c4c2
nop
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov rcx, qword [rbp + 0x28]
call fcn.0040c640
xor ecx, ecx
mov rdx, rax
mov r8d, ebx
mov rax, qword [0x005fb998]
call qword [rax + 0x20]
test eax, eax
sete sil
cmp ebx, 0xffffffff
je 0x40c525
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jae 0x40c523
sub ebx, eax
jmp 0x40c525
xor ebx, ebx
test sil, sil
je 0x40c557
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov eax, ecx
test eax, 1
jne 0x40c554
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 0x40c52a
mov dil, 1
nop
jmp 0x40c574
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 0x40c557
mov dil, 1
test dil, dil
je 0x40c4e5
nop
test sil, sil
je 0x40c596
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 0x40e2d0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x005fb0a0], 0
je 0x40e36e
cmp word [0x005fb3b0], 0xd7b2
jne 0x40e303
cmp dword [0x005fb3b8], 0
jbe 0x40e303
lea rcx, [0x005fb3a8]
call qword [0x005fb3d0]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x005cc970]
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, [0x0040e3a4]
call fcn.0040fa00
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x40e38f
cmp byte [0x005cb052], 0
jne 0x40e38f
xor ecx, ecx
lea rdx, [0x005cc970]
lea r8, str.Error
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40e680
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 [0x005cb058], 0
je 0x40e6b1
mov rcx, rsi
mov rdx, rdi
call qword [0x005cb058]
mov r13, rax
jmp 0x40e6c7
mov ecx, 0x10
call fcn.00409050
mov r13, rax
mov qword [r13], rsi
mov qword [r13 + 8], rdi
mov byte [0x005fb0a1], 1
mov rcx, qword [rsp + 0x38]
mov edx, ebx
lea r8, [0x0040e610]
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 0x40e70c
mov rcx, r13
call fcn.00409080
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x412c10
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x005ffef8]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x005fff20], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x005ffef0], al
cmp byte [0x005ffef0], 0
je 0x412caf
lea rcx, [0x00412cb4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x00412cce]
call sub.kernel32.dll_GetProcAddress
mov qword [0x005ffed8], rax
lea rcx, [0x00412cb4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x00412cec]
call sub.kernel32.dll_GetProcAddress
mov qword [0x005ffee0], rax
lea rcx, [0x00412cb4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x00412d0a]
call sub.kernel32.dll_GetProcAddress
mov qword [0x005ffee8], rax
add rsp, 0x28
ret
Function at 0x412f50
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.0040e880
movzx rax, word [rbp + 0x56]
cmp word [0x005cd0b8], ax
ja 0x41303c
movzx rax, word [rbp + 0x56]
cmp ax, word [0x005cd4b8]
mov word [rbp + 0x56], ax
ja 0x41303c
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x41303b
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
mov edx, eax
lea r9, [0x005cd0b8]
mov r10, rdx
add r10, r10
movzx r11, word [rbp + 0x56]
cmp word [r9 + r10*8], r11w
jbe 0x412ff4
mov ecx, eax
sub ecx, 1
jmp 0x413036
lea r8, [0x005cd0b8]
mov r9, rdx
add r9, r9
movzx r10, word [rbp + 0x56]
cmp word [r8 + r9*8], r10w
jae 0x413016
mov r8d, eax
add r8d, 1
jmp 0x413036
mov rcx, qword [rbp + 0x40]
mov rax, qword [rbp + 0x48]
lea r8, [0x005cd0c0]
add rdx, rdx
mov r8, qword [r8 + rdx*8]
mov rdx, rax
call fcn.00412e00
jmp 0x41303b
cmp ecx, r8d
jae 0x412fc1
nop
mov rax, qword [rbp + 0x48]
cmp qword [rax], 0
jne 0x41311a
movzx rcx, word [rbp + 0x56]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x41311a
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.004102c0
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.004102c0
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.004102c0
mov rcx, qword [rbp + 0x48]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x0041316c]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x0041317c]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.00410730
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.0040e960
mov rax, qword [rbp + 0x48]
lea rsp, [rbp + 0x1d8]
pop rbx
pop rbp
ret
Function at 0x413380
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, [0x005ffef8]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x005fff20], ax
jne 0x4133eb
mov rcx, qword [rbp + 0x28]
lea rdx, [0x005fff22]
mov r8d, 0x55
call fcn.004102c0
lea rcx, [0x005ffef8]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4134f6
lea rcx, [0x005ffef8]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.0040e880
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4134b0
cmp byte [0x005ffef0], 0
je 0x413444
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.00413210
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.0040eeb0
jmp 0x4134b0
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.00412f50
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040eeb0
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x4134b0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x41348f
mov rcx, qword [rbp + 0x28]
lea rdx, [0x0041353c]
call fcn.00410530
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.00412f50
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.00410530
lea rcx, [0x005ffef8]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x005fff20], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.004101c0
lea rcx, [0x005fff22]
mov edx, 0xaa
mov r8, rax
call fcn.00412d40
lea rcx, [0x005ffef8]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.0040e960
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x413fc0
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.0040ea10
mov rcx, qword [rbp + 0x90]
call fcn.0040ea10
nop
mov rcx, qword [rbp + 0x28]
call fcn.0040e880
cmp qword [rbp + 0x90], 0
je 0x414180
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
call fcn.0040ef30
xor eax, eax
mov rcx, qword [rbp + 0x90]
test rcx, rcx
je 0x41406b
mov eax, dword [rcx - 4]
cmp eax, 1
jl 0x4140a5
mov rcx, qword [rbp + 0x90]
movsxd rdx, eax
cmp word [rcx + rdx*2 - 2], 0x2e
jne 0x41409e
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
mov r8d, 1
mov r9d, eax
call fcn.00410820
jmp 0x4140a5
sub eax, 1
test eax, eax
jne 0x414070
nop
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
call fcn.00413bf0
cmp qword [rbp + 0x68], 0
je 0x4140e3
mov rcx, rbp
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x68]
call fcn.00413d80
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
call fcn.0040eeb0
jmp 0x41417f
call sub.kernel32.dll_GetUserDefaultUILanguage
lea rcx, [rbp + 0x48]
mov edx, eax
call fcn.00413380
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x48]
call fcn.00413d80
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x50]
call fcn.0040eeb0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x414158
cmp byte [0x005ffef0], 0
jne 0x414158
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.00413380
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x38]
call fcn.00413d80
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040eeb0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x41417f
mov rcx, rbp
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x60]
call fcn.00413ea0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
call fcn.0040eeb0
nop
lea rcx, [rbp + 0x30]
mov edx, 8
call fcn.0040e960
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.0040e960
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x416760
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 0x416780
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 0x4167a4
cmp eax, 1
jae 0x4167a9
cmp ecx, 5
jbe 0x4167b5
mov dword [0x005fba28], 0x7f
jmp 0x4167bf
mov dword [0x005fba28], 0x409
add rsp, 0x28
ret
Function at 0x417fc0
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.00417fb0
mov ebx, eax
test ebx, ebx
je 0x41800b
cmp dword [0x005ce1b0], 0xffffffff
jne 0x417fe4
mov ecx, 0xe2
call fcn.0040e560
mov ecx, ebx
call fcn.00417f90
test rax, rax
jne 0x417ffd
mov ecx, 0xe2
call fcn.0040e560
jmp 0x41800b
mov ecx, dword [0x005ce1b0]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

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

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

Function at 0x4180e0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x00601268], 0
je 0x41811b
mov ecx, dword [0x005ce1b0]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x41812e
call fcn.00417fc0
mov ecx, dword [0x005ce1b0]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x41812e
mov rax, qword [0x006012a8]
jmp 0x41812e
mov rax, qword gs:[0x58]
mov ecx, dword [0x005ce1b0]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

Function at 0x42cb70
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 0x42cc84
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 0x42cc6a
lea rcx, [rbp + 0x40]
lea rdx, [rbp + 0x48]
mov r8d, 0x106
call fcn.004102c0
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x28]
mov r8d, 1
call fcn.004109b0
test eax, eax
jle 0x42cc6a
xor esi, esi
mov rax, qword [rbp + 0x40]
test rax, rax
je 0x42cc1f
mov esi, dword [rax - 4]
xor edi, edi
mov rax, qword [rbp + 0x28]
test rax, rax
je 0x42cc2d
mov edi, dword [rax - 4]
lea rcx, [rbp + 0x38]
mov rdx, rbx
call fcn.00410260
lea rcx, [rbp + 0x30]
mov rdx, qword [rbp + 0x28]
mov r8d, esi
add r8d, 1
mov r9d, edi
sub r9d, esi
call fcn.00410820
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x38]
mov r8, qword [rbp + 0x30]
call fcn.00410600
jmp 0x42cc83
add rbx, 2
cmp word [rbx], 0
jne 0x42cc66
add rbx, 4
test rbx, rbx
je 0x42cc83
cmp word [rbx], 0
jne 0x42cbc2
nop
nop
lea rcx, [rbp + 0x30]
mov edx, 3
call fcn.0040e960
mov rax, qword [rbp + 0x20]
lea rsp, [rbp + 0x468]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x42ee80
Capabilities:
Get disk information

Disassembly:
push rbp
push rbx
sub rsp, 0x98
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x88], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x68], 0
nop
lea rcx, [rbp + 0x70]
mov rdx, qword [0x0042ee00]
mov r8d, 1
mov r9d, 0x104
call fcn.00412240
lea rcx, [rbp + 0x68]
mov rdx, qword [0x0042ee40]
mov r8d, 1
mov r9d, 0x104
call fcn.00412240
movzx rax, byte [0x0042f100]
mov byte [rbp + 0x4f], al
mov rcx, qword [rbp + 0x40]
mov dl, 1
call fcn.0042f370
test al, al
jne 0x42ef25
mov rcx, qword [rbp + 0x40]
mov dl, 1
call fcn.0042f290
test al, al
je 0x42f034
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x40]
call fcn.0042fa00
lea rcx, [rbp + 0x88]
mov rdx, qword [rbp + 0x58]
call fcn.00439980
mov rcx, qword [rbp + 0x88]
call fcn.004101c0
mov rbx, rax
mov rcx, rbx
mov rdx, qword [rbp + 0x70]
mov r8d, 0x104
lea r9, [rbp + 0x84]
lea rax, [rbp + 0x7c]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x80]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x68]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 0x104
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x42f02f
mov eax, dword [rbp + 0x80]
test eax, 1
je 0x42efb2
movzx rax, byte [rbp + 0x4f]
or al, 1
mov byte [rbp + 0x4f], al
mov eax, dword [rbp + 0x80]
test eax, 2
je 0x42efcb
movzx rax, byte [rbp + 0x4f]
or al, 2
mov byte [rbp + 0x4f], al
mov eax, dword [rbp + 0x80]
test eax, 0x80
je 0x42efe4
movzx rax, byte [rbp + 0x4f]
or al, 0x20
mov byte [rbp + 0x4f], al
mov rcx, rbx
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
test eax, eax
je 0x42f008
sub eax, 1
test eax, eax
je 0x42f015
sub eax, 1
test eax, eax
je 0x42f022
sub eax, 1
test eax, eax
jne 0x42f05f
movzx rax, byte [rbp + 0x4f]
or al, 0x10
mov byte [rbp + 0x4f], al
jmp 0x42f05f
movzx rax, byte [rbp + 0x4f]
or al, 4
mov byte [rbp + 0x4f], al
jmp 0x42f05f
movzx rax, byte [rbp + 0x4f]
or al, 8
mov byte [rbp + 0x4f], al
jmp 0x42f05f
call fcn.0043abd0
lea rcx, [rbp + 0x50]
mov rdx, qword [0x005fa1d0]
call fcn.00416670
mov rcx, qword [0x00423e60]
mov dl, 1
mov r8, qword [rbp + 0x50]
call fcn.00437790
mov rcx, rax
call fcn.0040d980
nop
lea rcx, [rbp + 0x50]
mov edx, 2
call fcn.0040e960
lea rcx, [rbp + 0x68]
mov rdx, qword [0x0042ee40]
call fcn.00412410
lea rcx, [rbp + 0x70]
mov rdx, qword [0x0042ee00]
call fcn.00412410
lea rcx, [rbp + 0x88]
call fcn.0040e880
movzx rax, byte [rbp + 0x4f]
lea rsp, [rbp + 0x98]
pop rbx
pop rbp
ret