joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004b3b8
Capabilities:
Encode data using xor

Disassembly:
test r9, r9
je 0x14004b47e
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rbx, r9
mov r15d, 4
mov rdi, r8
mov rsi, rdx
mov r14, rcx
cmp rbx, r15
jb 0x14004b449
mov rbp, rbx
shr rbp, 2
imul rax, rbp, 0xfffffffffffffffc
add rbx, rax
mov r8, r15
lea rcx, [rsp + 0x20]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov r8, r15
lea rcx, [rsp + 0x68]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x68]
lea rdx, [rsp + 0x24]
xor eax, dword [rsp + 0x20]
mov r8, r15
mov rcx, r14
mov dword [rsp + 0x24], eax
call sub.VCRUNTIME140.dll_memcpy
add r14, r15
add rsi, r15
add rdi, r15
sub rbp, 1
jne 0x14004b3fe
test rbx, rbx
je 0x14004b466
sub rsi, rdi
sub r14, rdi
mov al, byte [rsi + rdi]
xor al, byte [rdi]
mov byte [r14 + rdi], al
inc rdi
sub rbx, 1
jne 0x14004b454
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x14004b480
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x14004b52d
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rbx, r8
mov r14d, 4
mov rsi, rdx
mov rdi, rcx
cmp rbx, r14
jb 0x14004b505
mov rbp, rbx
shr rbp, 2
imul rax, rbp, 0xfffffffffffffffc
add rbx, rax
mov r8, r14
lea rcx, [rsp + 0x68]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov r8, r14
lea rcx, [rsp + 0x60]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x60]
lea rdx, [rsp + 0x20]
xor eax, dword [rsp + 0x68]
mov r8, r14
mov rcx, rdi
mov dword [rsp + 0x20], eax
call sub.VCRUNTIME140.dll_memcpy
add rdi, r14
add rsi, r14
sub rbp, 1
jne 0x14004b4bd
test rbx, rbx
je 0x14004b51b
sub rsi, rdi
mov al, byte [rsi + rdi]
xor byte [rdi], al
inc rdi
sub rbx, 1
jne 0x14004b50d
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x14005146c
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movdqu xmm1, xmmword [rcx]
mov r9d, 4
shl edx, 2
mov r8, rcx
movdqu xmm0, xmmword [rcx + rdx*4]
movdqu xmmword [rcx], xmm0
movdqu xmmword [rcx + rdx*4], xmm1
add edx, 0xfffffffc
cmp edx, r9d
jbe 0x1400514bb
aesimc xmm0, xmmword [r8 + rdx*4]
mov ecx, r9d
add r9d, 4
aesimc xmm1, xmmword [r8 + rcx*4]
movdqu xmmword [r8 + rcx*4], xmm0
movdqu xmmword [r8 + rdx*4], xmm1
add edx, 0xfffffffc
cmp r9d, edx
jb 0x140051492
mov eax, r9d
aesimc xmm0, xmmword [r8 + rax*4]
movdqu xmmword [r8 + rax*4], xmm0
ret

Function at 0x1400529e4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140052a2e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140052a2e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140052a2e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140052a2e
cmp dword [rcx + 0x84], 0xe
jbe 0x140052a2e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140052a30
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 [0x005fc0a0], 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 [0x005cc0c0]
call fcn.0040f060
mov rcx, rsi
mov rdx, qword [0x005cc0c0]
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.00410070
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 [0x005fc998]
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 [0x005fc0a0], 0
je 0x40e36e
cmp word [0x005fc3b0], 0xd7b2
jne 0x40e303
cmp dword [0x005fc3b8], 0
jbe 0x40e303
lea rcx, [0x005fc3a8]
call qword [0x005fc3d0]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x005cd970]
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.0040f730
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 [0x005cc052], 0
jne 0x40e38f
xor ecx, ecx
lea rdx, [0x005cd970]
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 [0x005cc058], 0
je 0x40e6b1
mov rcx, rsi
mov rdx, rdi
call qword [0x005cc058]
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 [0x005fc0a1], 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 0x4129c0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x00600ef8]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x00600f20], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x00600ef0], al
cmp byte [0x00600ef0], 0
je 0x412a5f
lea rcx, [0x00412a64]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x00412a7e]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00600ed8], rax
lea rcx, [0x00412a64]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x00412a9c]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00600ee0], rax
lea rcx, [0x00412a64]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x00412aba]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00600ee8], rax
add rsp, 0x28
ret
Function at 0x412d00
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 [0x005ce080], ax
ja 0x412dec
movzx rax, word [rbp + 0x56]
cmp ax, word [0x005ce480]
mov word [rbp + 0x56], ax
ja 0x412dec
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x412deb
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
mov edx, eax
lea r9, [0x005ce080]
mov r10, rdx
add r10, r10
movzx r11, word [rbp + 0x56]
cmp word [r9 + r10*8], r11w
jbe 0x412da4
mov ecx, eax
sub ecx, 1
jmp 0x412de6
lea r8, [0x005ce080]
mov r9, rdx
add r9, r9
movzx r10, word [rbp + 0x56]
cmp word [r8 + r9*8], r10w
jae 0x412dc6
mov r8d, eax
add r8d, 1
jmp 0x412de6
mov rcx, qword [rbp + 0x40]
mov rax, qword [rbp + 0x48]
lea r8, [0x005ce088]
add rdx, rdx
mov r8, qword [r8 + rdx*8]
mov rdx, rax
call fcn.00412bb0
jmp 0x412deb
cmp ecx, r8d
jae 0x412d71
nop
mov rax, qword [rbp + 0x48]
cmp qword [rax], 0
jne 0x412eca
movzx rcx, word [rbp + 0x56]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x412eca
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.00410070
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.00410070
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.00410070
mov rcx, qword [rbp + 0x48]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x00412f1c]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x00412f2c]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.004104e0
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 0x413130
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, [0x00600ef8]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x00600f20], ax
jne 0x41319b
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00600f22]
mov r8d, 0x55
call fcn.00410070
lea rcx, [0x00600ef8]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4132a6
lea rcx, [0x00600ef8]
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 0x413260
cmp byte [0x00600ef0], 0
je 0x4131f4
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.00412fc0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.0040eeb0
jmp 0x413260
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.00412d00
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 0x413260
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x41323f
mov rcx, qword [rbp + 0x28]
lea rdx, [0x004132ec]
call fcn.004102e0
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.00412d00
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.004102e0
lea rcx, [0x00600ef8]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x00600f20], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.0040ff70
lea rcx, [0x00600f22]
mov edx, 0xaa
mov r8, rax
call fcn.00412af0
lea rcx, [0x00600ef8]
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 0x413c50
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.0040ea10
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.00410070
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x38]
call fcn.004103b0
mov rcx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x28]
mov rdx, qword [rax]
call fcn.00413aa0
test al, al
jne 0x413d1e
mov word [rbp + 0x4c], 0
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.00410070
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x30]
call fcn.004103b0
mov rcx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x28]
mov rdx, qword [rax]
call fcn.00413aa0
test al, al
jne 0x413d1e
mov rcx, qword [rbp + 0x28]
call fcn.0040e880
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040e960
lea rcx, [rbp + 0x70]
call fcn.0040e880
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x413d70
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 0x413f30
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
call fcn.0040ef30
xor eax, eax
mov rcx, qword [rbp + 0x90]
test rcx, rcx
je 0x413e1b
mov eax, dword [rcx - 4]
cmp eax, 1
jl 0x413e55
mov rcx, qword [rbp + 0x90]
movsxd rdx, eax
cmp word [rcx + rdx*2 - 2], 0x2e
jne 0x413e4e
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
mov r8d, 1
mov r9d, eax
call fcn.004105d0
jmp 0x413e55
sub eax, 1
test eax, eax
jne 0x413e20
nop
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
call fcn.004139a0
cmp qword [rbp + 0x68], 0
je 0x413e93
mov rcx, rbp
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x68]
call fcn.00413b30
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
call fcn.0040eeb0
jmp 0x413f2f
call sub.kernel32.dll_GetUserDefaultUILanguage
lea rcx, [rbp + 0x48]
mov edx, eax
call fcn.00413130
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x48]
call fcn.00413b30
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x50]
call fcn.0040eeb0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x413f08
cmp byte [0x00600ef0], 0
jne 0x413f08
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.00413130
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x38]
call fcn.00413b30
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040eeb0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x413f2f
mov rcx, rbp
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x60]
call fcn.00413c50
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 0x416510
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 0x416530
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 0x416554
cmp eax, 1
jae 0x416559
cmp ecx, 5
jbe 0x416565
mov dword [0x005fca28], 0x7f
jmp 0x41656f
mov dword [0x005fca28], 0x409
add rsp, 0x28
ret
Function at 0x417d70
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.00417d60
mov ebx, eax
test ebx, ebx
je 0x417dbb
cmp dword [0x005cf178], 0xffffffff
jne 0x417d94
mov ecx, 0xe2
call fcn.0040e560
mov ecx, ebx
call fcn.00417d40
test rax, rax
jne 0x417dad
mov ecx, 0xe2
call fcn.0040e560
jmp 0x417dbb
mov ecx, dword [0x005cf178]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

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

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

Function at 0x417e90
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x00602268], 0
je 0x417ecb
mov ecx, dword [0x005cf178]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x417ede
call fcn.00417d70
mov ecx, dword [0x005cf178]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x417ede
mov rax, qword [0x006022a8]
jmp 0x417ede
mov rax, qword gs:[0x58]
mov ecx, dword [0x005cf178]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

Function at 0x42c890
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 0x42c9a4
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 0x42c98a
lea rcx, [rbp + 0x40]
lea rdx, [rbp + 0x48]
mov r8d, 0x106
call fcn.00410070
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x28]
mov r8d, 1
call fcn.00410760
test eax, eax
jle 0x42c98a
xor esi, esi
mov rax, qword [rbp + 0x40]
test rax, rax
je 0x42c93f
mov esi, dword [rax - 4]
xor edi, edi
mov rax, qword [rbp + 0x28]
test rax, rax
je 0x42c94d
mov edi, dword [rax - 4]
lea rcx, [rbp + 0x38]
mov rdx, rbx
call fcn.00410010
lea rcx, [rbp + 0x30]
mov rdx, qword [rbp + 0x28]
mov r8d, esi
add r8d, 1
mov r9d, edi
sub r9d, esi
call fcn.004105d0
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x38]
mov r8, qword [rbp + 0x30]
call fcn.004103b0
jmp 0x42c9a3
add rbx, 2
cmp word [rbx], 0
jne 0x42c986
add rbx, 4
test rbx, rbx
je 0x42c9a3
cmp word [rbx], 0
jne 0x42c8e2
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 0x42cb40
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.0040e880
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 0x42cc57
cmp dword [rbp + 0x288], 0
jne 0x42cc57
mov ecx, 6
xor edx, edx
call fcn.00438fa0
test al, al
je 0x42cc57
mov rcx, qword [rbp + 0x2b8]
lea rdx, [rbp + 0x78]
mov r8d, 0x104
mov r9d, 2
call sub.kernel32.dll_GetFinalPathNameByHandleW
test eax, eax
jbe 0x42cc57
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x78]
mov r8d, 0x106
call fcn.00410070
mov rcx, rbp
lea rdx, [rbp + 0x60]
mov r8, qword [rbp + 0x58]
call fcn.0042c890
mov rcx, qword [rbp + 0x2c0]
mov rdx, qword [rbp + 0x60]
call fcn.0040eeb0
mov byte [rbp + 0x28f], 1
jmp 0x42cdc1
cmp dword [rbp + 0x284], 0
jne 0x42cc6d
cmp dword [rbp + 0x288], 0
je 0x42cd5a
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 0x42cd5a
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 0x42cd4d
nop
call sub.kernel32.dll_GetCurrentProcess
mov rcx, rax
mov rdx, qword [rbp + 0x298]
lea r8, [rbp + 0x78]
mov r9d, 0x104
call fcn.0041c560
test eax, eax
jbe 0x42cd40
lea rcx, [rbp + 0x48]
lea rdx, [rbp + 0x78]
mov r8d, 0x106
call fcn.00410070
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x48]
call fcn.0042c890
mov rcx, qword [rbp + 0x2c0]
mov rdx, qword [rbp + 0x50]
call fcn.0040eeb0
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 0x42cdc0
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x2b8]
call fcn.0042c9f0
mov rcx, qword [rbp + 0x2c0]
mov rdx, qword [rbp + 0x40]
call fcn.0040eeb0
mov rax, qword [rbp + 0x2c0]
cmp qword [rax], 0
je 0x42cdc0
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov rax, qword [rbp + 0x2c0]
mov r8, qword [rax]
call fcn.0042c890
mov rcx, qword [rbp + 0x2c0]
mov rdx, qword [rbp + 0x38]
call fcn.0040eeb0
mov byte [rbp + 0x28f], 1
nop
lea rcx, [rbp + 0x38]
mov edx, 6
call fcn.0040e960
movzx rax, byte [rbp + 0x28f]
lea rsp, [rbp + 0x2a0]
pop rbp
ret