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

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x452ef8
movzx edx, byte [rax]
nop
test edx, edx
jne 0x452dbc
test r8b, r8b
jne 0x452dbc
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
bt edx, 7
jae 0x452dcf
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x452eb8
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
cmp rbx, r8
jb 0x452ea6
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rcx
sar rcx, 0x3f
and r8, rcx
lea rsi, [rax + r8]
test rbx, rbx
jbe 0x452e9c
movzx r8d, byte [rax + r8]
bt r8d, 7
jae 0x452e23
xor eax, eax
xor ecx, ecx
xor r8d, r8d
jmp 0x452e66
mov eax, 1
cmp rax, rbx
ja 0x452e55
add qword [rdi], r8
sub rdx, rax
sub rbx, rax
mov rcx, rdx
neg rdx
sar rdx, 0x3f
and rax, rdx
add rax, rsi
mov edi, 1
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov rcx, rbx
call fcn.00465340
lea r8d, [rcx + 7]
mov ecx, eax
mov eax, r10d
cmp rax, rbx
jae 0x452e94
movzx r9d, byte [rax + rsi]
lea r10d, [rax + 1]
mov r11d, r9d
and r9d, 0x7f
mov eax, ecx
mov ecx, r8d
shl r9d, cl
or eax, r9d
test r11b, 0x80
jne 0x452e5d
mov r8d, eax
mov eax, r10d
jmp 0x452e28
mov rcx, rbx
call fcn.00465280
xor eax, eax
mov rcx, rax
call fcn.00465280
mov eax, r8d
mov rcx, rbx
call fcn.00465340
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x452eee
movzx r10d, byte [rdx + rax]
inc edx
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
or r8d, r10d
test r11b, 0x80
jne 0x452eb1
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x452dd5
mov eax, edx
mov rcx, rbx
call fcn.00465280
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.00465280
nop
int3
Function at 0x45aba0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x45ac5b
sub rsp, 0x60
mov qword [rsp + 0x58], rbp
lea rbp, [rsp + 0x58]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rdx, [0x0045aca0]
mov qword [rsp + 0x10], rdx
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x18], rdx
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rdi
lea rax, [rsp + 8]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.00462a60
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.00462ba0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.0045aba0
Function at 0x464d20
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x008fc200]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x008fbd43], 0
je 0x464d56
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x008fc560]
aesenc xmm0, xmmword [0x008fc570]
aesenc xmm0, xmmword [0x008fc580]
movq rax, xmm0
ret
jmp 0x40a080
Function at 0x1404d7ded
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], 0xffffffffdb89b469
push r12
pushfq
movabs r12, 0x5fba58c6404d6e24
xor r12w, 0x6068
and r12b, 0x6c
push 0x2e84153a
mov r12, qword [rsp + 0x10]
and byte [rsp], 0x92
mov word [rsp], 0x389b
xor dword [rsp], 0x35d3079
setle byte [rsp]
mov dword [rsp], 0x5c8a64bd
push qword [rsp + 8]
popfq
lea rsp, [rsp + 0x20]
call fcn.140ac8069
xor dword [rdi + 0x70c1cbe9], ebx
cmc
push rcx
cmp al, 0xae
jg 0x1404d7e06
hlt
xor byte [rsi + 0x5b], bl
out dx, eax
retf

Function at 0x14052ab96
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
not esi
mov rsi, qword [rsp + 0x30]
not word [rsp + 0x28]
sete byte [rsp + 0x28]
Function at 0x408120
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 [0x007e60a8], 0
je 0x4081db
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rdi, rax
mov rcx, rsi
call fcn.00411b80
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 [0x007930c0]
call fcn.00411b80
mov rcx, rsi
mov rdx, qword [0x007930c0]
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.00411b80
mov rcx, rsi
mov rdx, rbx
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x4081ef
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 0x4094d0
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 0x409522
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 0x409541
lea rcx, [rbp + 0x24]
call sub.kernel32.dll_SetCurrentDirectoryW
mov rcx, rsi
lea rdx, [rbp + 0x22e]
mov r8d, 0x105
call fcn.004128c0
lea rsp, [rbp + 0x440]
pop rbx
pop rsi
pop rbp
ret
Function at 0x40eee0
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.0040f520
mov esi, eax
test sil, sil
jne 0x40f096
test ebx, ebx
je 0x40f096
xor edi, edi
test r13d, r13d
jle 0x40efc2
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov dword [rbp + 0x3c], 0
test r13d, r13d
jle 0x40efa6
cmp ebx, 0xffffffff
je 0x40ef53
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x40ef53
xor esi, esi
jmp 0x40f096
mov rax, qword [rbp + 0x28]
cmp dword [rax], 1
jg 0x40efa6
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0
jne 0x40ef94
xor eax, eax
mov ecx, 1
mov rdx, qword [rbp + 0x28]
lock cmpxchg dword [rdx], ecx
test eax, eax
jne 0x40ef94
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp 0x40f096
lea rcx, [rbp + 0x3c]
call fcn.0040ea80
sub r13d, 1
test r13d, r13d
jg 0x40ef3a
nop
cmp ebx, 0xffffffff
je 0x40efc2
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x40efc0
xor esi, esi
jmp 0x40f096
sub ebx, eax
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x40eefd
mov edx, ecx
add edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40efc2
nop
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov rcx, qword [rbp + 0x28]
call fcn.0040f140
xor ecx, ecx
mov rdx, rax
mov r8d, ebx
mov rax, qword [0x007e69a0]
call qword [rax + 0x20]
test eax, eax
sete sil
cmp ebx, 0xffffffff
je 0x40f025
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jae 0x40f023
sub ebx, eax
jmp 0x40f025
xor ebx, ebx
test sil, sil
je 0x40f057
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov eax, ecx
test eax, 1
jne 0x40f054
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 0x40f02a
mov dil, 1
nop
jmp 0x40f074
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 0x40f057
mov dil, 1
test dil, dil
je 0x40efe5
nop
test sil, sil
je 0x40f096
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 0x410de0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x007e60a8], 0
je 0x410e7e
cmp word [0x007e63b8], 0xd7b2
jne 0x410e13
cmp dword [0x007e63c0], 0
jbe 0x410e13
lea rcx, [0x007e63b0]
call qword [0x007e63d8]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x00795664]
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, [0x00410eb4]
call fcn.004121e0
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x410e9f
cmp byte [0x00793052], 0
jne 0x410e9f
xor ecx, ecx
lea rdx, [0x00795664]
lea r8, str.Error
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x411160
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 [0x00793058], 0
je 0x411191
mov rcx, rsi
mov rdx, rdi
call qword [0x00793058]
mov r13, rax
jmp 0x4111a7
mov ecx, 0x10
call fcn.00409160
mov r13, rax
mov qword [r13], rsi
mov qword [r13 + 8], rdi
mov byte [0x007e60a9], 1
mov rcx, qword [rsp + 0x38]
mov edx, ebx
lea r8, [0x004110f0]
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 0x4111ec
mov rcx, r13
call fcn.00409190
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x415530
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x007eaf00]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x007eaf28], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x007eaef8], al
cmp byte [0x007eaef8], 0
je 0x4155cf
lea rcx, [0x004155d4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x004155ee]
call sub.kernel32.dll_GetProcAddress
mov qword [0x007eaee0], rax
lea rcx, [0x004155d4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0041560c]
call sub.kernel32.dll_GetProcAddress
mov qword [0x007eaee8], rax
lea rcx, [0x004155d4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0041562a]
call sub.kernel32.dll_GetProcAddress
mov qword [0x007eaef0], rax
add rsp, 0x28
ret
Function at 0x415870
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.00411360
movzx rax, word [rbp + 0x56]
cmp word [0x00795da8], ax
ja 0x41595c
movzx rax, word [rbp + 0x56]
cmp ax, word [0x007961a8]
mov word [rbp + 0x56], ax
ja 0x41595c
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x41595b
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
mov edx, eax
lea r9, [0x00795da8]
mov r10, rdx
add r10, r10
movzx r11, word [rbp + 0x56]
cmp word [r9 + r10*8], r11w
jbe 0x415914
mov ecx, eax
sub ecx, 1
jmp 0x415956
lea r8, [0x00795da8]
mov r9, rdx
add r9, r9
movzx r10, word [rbp + 0x56]
cmp word [r8 + r9*8], r10w
jae 0x415936
mov r8d, eax
add r8d, 1
jmp 0x415956
mov rcx, qword [rbp + 0x40]
mov rax, qword [rbp + 0x48]
lea r8, [0x00795db0]
add rdx, rdx
mov r8, qword [r8 + rdx*8]
mov rdx, rax
call fcn.00415720
jmp 0x41595b
cmp ecx, r8d
jae 0x4158e1
nop
mov rax, qword [rbp + 0x48]
cmp qword [rax], 0
jne 0x415a3a
movzx rcx, word [rbp + 0x56]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x415a3a
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.004128c0
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.004128c0
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.004128c0
mov rcx, qword [rbp + 0x48]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x00415a8c]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x00415a9c]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.00412d30
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.00411440
mov rax, qword [rbp + 0x48]
lea rsp, [rbp + 0x1d8]
pop rbx
pop rbp
ret
Function at 0x415ca0
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, [0x007eaf00]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x007eaf28], ax
jne 0x415d0b
mov rcx, qword [rbp + 0x28]
lea rdx, [0x007eaf2a]
mov r8d, 0x55
call fcn.004128c0
lea rcx, [0x007eaf00]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x415e16
lea rcx, [0x007eaf00]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.00411360
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x415dd0
cmp byte [0x007eaef8], 0
je 0x415d64
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.00415b30
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.00411990
jmp 0x415dd0
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.00415870
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.00411990
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x415dd0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x415daf
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00415e5c]
call fcn.00412b30
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.00415870
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.00412b30
lea rcx, [0x007eaf00]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x007eaf28], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.004127c0
lea rcx, [0x007eaf2a]
mov edx, 0xaa
mov r8, rax
call fcn.00415660
lea rcx, [0x007eaf00]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.00411440
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x4167c0
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.004114f0
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.004128c0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x38]
call fcn.00412c00
mov rcx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x28]
mov rdx, qword [rax]
call fcn.00416610
test al, al
jne 0x41688e
mov word [rbp + 0x4c], 0
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.004128c0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x30]
call fcn.00412c00
mov rcx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x28]
mov rdx, qword [rax]
call fcn.00416610
test al, al
jne 0x41688e
mov rcx, qword [rbp + 0x28]
call fcn.00411360
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.00411440
lea rcx, [rbp + 0x70]
call fcn.00411360
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x4168e0
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.004114f0
mov rcx, qword [rbp + 0x90]
call fcn.004114f0
nop
mov rcx, qword [rbp + 0x28]
call fcn.00411360
cmp qword [rbp + 0x90], 0
je 0x416aa0
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
call fcn.00411a10
xor eax, eax
mov rcx, qword [rbp + 0x90]
test rcx, rcx
je 0x41698b
mov eax, dword [rcx - 4]
cmp eax, 1
jl 0x4169c5
mov rcx, qword [rbp + 0x90]
movsxd rdx, eax
cmp word [rcx + rdx*2 - 2], 0x2e
jne 0x4169be
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
mov r8d, 1
mov r9d, eax
call fcn.00412e20
jmp 0x4169c5
sub eax, 1
test eax, eax
jne 0x416990
nop
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
call fcn.00416510
cmp qword [rbp + 0x68], 0
je 0x416a03
mov rcx, rbp
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x68]
call fcn.004166a0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
call fcn.00411990
jmp 0x416a9f
call sub.kernel32.dll_GetUserDefaultUILanguage
lea rcx, [rbp + 0x48]
mov edx, eax
call fcn.00415ca0
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x48]
call fcn.004166a0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x50]
call fcn.00411990
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x416a78
cmp byte [0x007eaef8], 0
jne 0x416a78
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.00415ca0
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x38]
call fcn.004166a0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.00411990
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x416a9f
mov rcx, rbp
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x60]
call fcn.004167c0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
call fcn.00411990
nop
lea rcx, [rbp + 0x30]
mov edx, 8
call fcn.00411440
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.00411440
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x419290
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 0x4192b0
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 0x4192d4
cmp eax, 1
jae 0x4192d9
cmp ecx, 5
jbe 0x4192e5
mov dword [0x007e6a30], 0x7f
jmp 0x4192ef
mov dword [0x007e6a30], 0x409
add rsp, 0x28
ret
Function at 0x41aaf0
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.0041aae0
mov ebx, eax
test ebx, ebx
je 0x41ab3b
cmp dword [0x00796f0c], 0xffffffff
jne 0x41ab14
mov ecx, 0xe2
call fcn.00411070
mov ecx, ebx
call fcn.0041aac0
test rax, rax
jne 0x41ab2d
mov ecx, 0xe2
call fcn.00411070
jmp 0x41ab3b
mov ecx, dword [0x00796f0c]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

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

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

Function at 0x41ac10
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x007ec270], 0
je 0x41ac4b
mov ecx, dword [0x00796f0c]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x41ac5e
call fcn.0041aaf0
mov ecx, dword [0x00796f0c]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x41ac5e
mov rax, qword [0x007ec2b0]
jmp 0x41ac5e
mov rax, qword gs:[0x58]
mov ecx, dword [0x00796f0c]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

Function at 0x4355d0
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 0x4356e4
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 0x4356ca
lea rcx, [rbp + 0x40]
lea rdx, [rbp + 0x48]
mov r8d, 0x106
call fcn.004128c0
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x28]
mov r8d, 1
call fcn.004130e0
test eax, eax
jle 0x4356ca
xor esi, esi
mov rax, qword [rbp + 0x40]
test rax, rax
je 0x43567f
mov esi, dword [rax - 4]
xor edi, edi
mov rax, qword [rbp + 0x28]
test rax, rax
je 0x43568d
mov edi, dword [rax - 4]
lea rcx, [rbp + 0x38]
mov rdx, rbx
call fcn.00412860
lea rcx, [rbp + 0x30]
mov rdx, qword [rbp + 0x28]
mov r8d, esi
add r8d, 1
mov r9d, edi
sub r9d, esi
call fcn.00412e20
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x38]
mov r8, qword [rbp + 0x30]
call fcn.00412c00
jmp 0x4356e3
add rbx, 2
cmp word [rbx], 0
jne 0x4356c6
add rbx, 4
test rbx, rbx
je 0x4356e3
cmp word [rbx], 0
jne 0x435622
nop
nop
lea rcx, [rbp + 0x30]
mov edx, 3
call fcn.00411440
mov rax, qword [rbp + 0x20]
lea rsp, [rbp + 0x468]
pop rbx
pop rsi
pop rdi
pop rbp
ret