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

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14028a220]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14028a200]
test rbx, rbx
je 0x140047c84
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
or eax, eax
jne 0x140047c7b
test r12, r12
je 0x140047c7b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140047c60
lea rcx, [0x14028a220]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140047fc0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140284720]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x140048039
mov rcx, r10
call fcn.140047e90
test eax, eax
je 0x140048039
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x140048036
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
push rdx
nop
pop rax
cmp rcx, rdx
jb 0x14004802d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x140048039
add r8, 0x28
cmp r8, r9
jne 0x140048018
sub r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x401030
Capabilities:
Access peb ldr_data

Disassembly:
push rdi
push rsi
mov esi, ecx
push rbx
sub rsp, 0x20
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x18]
mov rbx, qword [rax + 0x10]
lea rdi, [rax + 0x10]
cmp rbx, rdi
je 0x401073
movzx edx, word [rbx + 0x58]
mov rcx, qword [rbx + 0x60]
call fcn.00401489
cmp eax, esi
jne 0x40106e
mov rax, qword [rbx + 0x30]
jmp 0x401075
mov rbx, qword [rbx]
jmp 0x401052
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x40107d
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x401097
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
je 0x401097
xor eax, eax
ret

Function at 0x401489
Capabilities:
Hash data using djb2

Disassembly:
xor r9d, r9d
test rcx, rcx
je 0x4014d8
mov r8, rcx
mov r9d, 0x1505
mov al, byte [r8]
test rdx, rdx
jne 0x4014a8
test al, al
jne 0x4014bc
jmp 0x4014d8
mov r10, r8
sub r10, rcx
cmp r10, rdx
jae 0x4014d8
test al, al
jne 0x4014bc
inc r8
jmp 0x4014c3
cmp al, 0x60
jbe 0x4014c3
sub eax, 0x20
mov r10d, r9d
movzx eax, al
inc r8
shl r10d, 5
add eax, r10d
add r9d, eax
jmp 0x40149a
mov eax, r9d
ret
Function at 0x140002650
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1300]
mov eax, 0x1400
call fcn.1400067d0
sub rsp, rax
mov rax, qword [0x140022018]
xor rax, rsp
mov qword [rbp + 0x12f0], rax
mov rsi, rcx
mov qword [rsp + 0x38], rcx
xor r12d, r12d
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r12w
lea r8d, [r12 + 0x3e]
lea rdx, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
lea rcx, [rsp + 0x40]
call fcn.1400024d0
nop
call fcn.1400061c8
mov edx, eax
mov r10d, 0xffffffff
mov dword [rbp + 0x12e4], r10d
mov dword [rsp + 0x64], eax
lea ecx, [r12 + 1]
nop dword [rax + rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rsp + rcx*4 + 0x64], edx
inc rcx
cmp rcx, 0x270
jb 0x1400026e0
mov dword [rsp + 0x60], 0x270
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x50]
lea rdx, [rdx + rax*2]
lea r9, [rsp + 0x40]
cmovae r9, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rax, 0xffffffffffffffff
mov r8d, 0x40
dec r8
shr rax, 1
cmp rax, r10
ja 0x140002743
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x20]
mov rcx, r9
call fcn.140001420
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], 7
mov word [rsi], r12w
mov r14d, 9
cmp qword [rsp + 0x50], r14
cmovb r14, qword [rsp + 0x50]
lea r15, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae r15, qword [rsp + 0x40]
cmp r14, 7
ja 0x1400027ba
mov qword [rsi + 0x10], r14
lea rbx, [r14 + r14]
mov r8, rbx
mov rdx, r15
mov rcx, rsi
call fcn.140008040
mov word [rbx + rsi], r12w
jmp 0x140002819
movabs rbx, 0x7ffffffffffffffe
cmp r14, rbx
ja 0x14000288b
mov rax, r14
or rax, 7
cmp rax, rbx
ja 0x1400027e8
mov rbx, rax
mov ecx, 0xa
cmp rax, rcx
cmovb rbx, rcx
lea rdx, [rbx + 1]
mov rcx, rsi
call fcn.1400022e0
mov rdi, rax
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], rbx
lea rbx, [r14 + r14]
mov r8, rbx
mov rdx, r15
mov rcx, rax
call fcn.140008040
mov word [rbx + rdi], r12w
mov qword [rsi], rdi
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140002857
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002852
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002885
call fcn.1400066a8
mov rax, rsi
mov rcx, qword [rbp + 0x12f0]
xor rcx, rsp
call fcn.140006840
lea r11, [rsp + 0x1400]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.14000b0bc
nop
call fcn.1400022a0
nop
int3
Function at 0x14000c9c0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000c7ec
Function at 0x408330
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 [0x009250a8], 0
je 0x4083e8
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rdi, rax
mov rcx, rsi
call fcn.004110b0
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 [0x008b70e8]
call fcn.004110b0
mov rcx, rsi
mov rdx, qword [0x008b70e8]
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.004110b0
mov rcx, rsi
mov rdx, rbx
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x4083fb
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 0x4096a0
Capabilities:
Get common file path
Set current directory

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x450
mov rbp, rsp
mov byte [rbp + 0x27], cl
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], 0
nop
xor esi, esi
movzx rax, byte [rbp + 0x27]
test al, al
je 0x409733
movzx rax, byte [rbp + 0x27]
movzx ax, al
add ax, 0x40
mov word [rbp + 0x448], ax
mov word [rbp + 0x44a], 0x3a
mov word [rbp + 0x44c], 0
mov ecx, 0x104
lea rdx, [rbp + 0x38]
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
cmp esi, 0x104
jbe 0x409727
lea rcx, [rbp + 0x30]
mov edx, esi
sub edx, 1
call fcn.00411ee0
mov rcx, qword [rbp + 0x30]
call fcn.00411c60
mov ecx, esi
mov rdx, rax
call sub.kernel32.dll_GetCurrentDirectoryW
lea rcx, [rbp + 0x448]
call sub.kernel32.dll_SetCurrentDirectoryW
mov ecx, 0x104
lea rdx, [rbp + 0x240]
call sub.kernel32.dll_GetCurrentDirectoryW
mov ebx, eax
cmp ebx, 0x104
ja 0x409766
mov rcx, qword [rbp + 0x28]
lea rdx, [rbp + 0x240]
mov r8d, 0x104
call fcn.00411d50
jmp 0x40978a
mov rcx, qword [rbp + 0x28]
mov edx, ebx
sub edx, 1
call fcn.00411ee0
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.00411c60
mov ecx, ebx
mov rdx, rax
call sub.kernel32.dll_GetCurrentDirectoryW
movzx rax, byte [rbp + 0x27]
test al, al
je 0x4097b7
cmp esi, 0x104
jbe 0x4097ae
mov rcx, qword [rbp + 0x30]
call fcn.00411c60
mov rcx, rax
call sub.kernel32.dll_SetCurrentDirectoryW
jmp 0x4097b7
lea rcx, [rbp + 0x38]
call sub.kernel32.dll_SetCurrentDirectoryW
nop
lea rcx, [rbp + 0x30]
call fcn.00410850
lea rsp, [rbp + 0x450]
pop rbx
pop rsi
pop rbp
ret
Function at 0x40e570
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.0040ebc0
mov esi, eax
test sil, sil
jne 0x40e724
test ebx, ebx
je 0x40e724
xor edi, edi
test r13d, r13d
jle 0x40e651
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov dword [rbp + 0x3c], 0
test r13d, r13d
jle 0x40e635
cmp ebx, 0xffffffff
je 0x40e5e3
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x40e5e3
xor esi, esi
jmp 0x40e724
mov rax, qword [rbp + 0x28]
cmp dword [rax], 1
jg 0x40e635
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0
jne 0x40e623
xor eax, eax
mov ecx, 1
mov rdx, qword [rbp + 0x28]
lock cmpxchg dword [rdx], ecx
test eax, eax
jne 0x40e623
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp 0x40e724
lea rcx, [rbp + 0x3c]
call fcn.0040e110
sub r13d, 1
test r13d, r13d
jg 0x40e5ca
nop
cmp ebx, 0xffffffff
je 0x40e651
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x40e64f
xor esi, esi
jmp 0x40e724
sub ebx, eax
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x40e58d
mov edx, ecx
add edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40e651
nop
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov rcx, qword [rbp + 0x28]
call fcn.0040e7d0
xor ecx, ecx
mov rdx, rax
mov r8d, ebx
mov rax, qword [0x009259a0]
call qword [rax + 0x20]
test eax, eax
sete sil
cmp ebx, 0xffffffff
je 0x40e6b4
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jae 0x40e6b2
sub ebx, eax
jmp 0x40e6b4
xor ebx, ebx
test sil, sil
je 0x40e6e5
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov eax, ecx
test eax, 1
jne 0x40e6e2
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 0x40e6b9
mov dil, 1
nop
jmp 0x40e702
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 0x40e6e5
mov dil, 1
test dil, dil
je 0x40e674
nop
test sil, sil
je 0x40e724
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 0x4102d0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x009250a8], 0
je 0x41036a
cmp word [0x009253b8], 0xd7b2
jne 0x410303
cmp dword [0x009253c0], 0
jbe 0x410303
lea rcx, [0x009253b0]
call qword [0x009253d8]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x008b99e8]
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, [0x004103a0]
call fcn.00411700
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x41038b
cmp byte [0x008b7064], 0
jne 0x41038b
xor ecx, ecx
lea rdx, [0x008b99e8]
lea r8, str.Error
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x410650
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 [0x008b7068], 0
je 0x410681
mov rcx, rsi
mov rdx, rdi
call qword [0x008b7068]
mov r13, rax
jmp 0x410696
mov ecx, 0x10
call fcn.00409310
mov r13, rax
mov qword [r13], rsi
mov qword [r13 + 8], rdi
mov byte [0x009250a9], 1
mov rcx, qword [rsp + 0x38]
mov edx, ebx
lea r8, [0x004105e0]
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 0x4106db
mov rcx, r13
call fcn.00409340
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x415d40
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x00929f08]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x00929f30], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x00929f00], al
cmp byte [0x00929f00], 0
je 0x415dde
lea rcx, [0x00415de4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x00415dfe]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00929ee8], rax
lea rcx, [0x00415de4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x00415e1c]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00929ef0], rax
lea rcx, [0x00415de4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x00415e3a]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00929ef8], rax
add rsp, 0x28
ret
Function at 0x416080
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.00410850
movzx rax, word [rbp + 0x56]
cmp word [0x008ba3e8], ax
ja 0x416156
movzx rax, word [rbp + 0x56]
cmp ax, word [0x008ba7e8]
mov word [rbp + 0x56], ax
ja 0x416156
mov eax, 0x40
xor ecx, ecx
cmp eax, ecx
jb 0x416155
mov edx, eax
add edx, ecx
shr edx, 1
mov r8d, edx
lea r9, [0x008ba3e8]
mov r10, r8
add r10, r10
movzx r11, word [rbp + 0x56]
cmp word [r9 + r10*8], r11w
jbe 0x416114
mov eax, edx
sub eax, 1
jmp 0x416151
lea rcx, [0x008ba3e8]
mov r9, r8
add r9, r9
movzx r10, word [rbp + 0x56]
cmp word [rcx + r9*8], r10w
jae 0x416134
mov ecx, edx
add ecx, 1
jmp 0x416151
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
lea rax, [0x008ba3f0]
add r8, r8
mov r8, qword [rax + r8*8]
call fcn.00415f30
jmp 0x416155
cmp eax, ecx
jae 0x4160ea
nop
mov rax, qword [rbp + 0x48]
cmp qword [rax], 0
jne 0x41622b
movzx rcx, word [rbp + 0x56]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x41622b
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.00411d50
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.00411d50
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.00411d50
mov rcx, qword [rbp + 0x48]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x00416278]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x00416288]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.004121b0
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.00410930
mov rax, qword [rbp + 0x48]
lea rsp, [rbp + 0x1d8]
pop rbx
pop rbp
ret
Function at 0x416480
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, [0x00929f08]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x00929f30], ax
jne 0x4164ea
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00929f32]
mov r8d, 0x55
call fcn.00411d50
lea rcx, [0x00929f08]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4165f3
lea rcx, [0x00929f08]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.00410850
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4165ae
cmp byte [0x00929f00], 0
je 0x416542
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.00416320
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.00410ec0
jmp 0x4165ae
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.00416080
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.00410ec0
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x4165ae
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x41658d
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00416638]
call fcn.00411fc0
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.00416080
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.00411fc0
lea rcx, [0x00929f08]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x00929f30], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.00411c60
lea rcx, [0x00929f32]
mov edx, 0xaa
mov r8, rax
call fcn.00415e70
lea rcx, [0x00929f08]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.00410930
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x416fa0
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.00410a20
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.00411d50
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x38]
call fcn.00412080
mov rcx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x28]
mov rdx, qword [rax]
call fcn.00416df0
test al, al
jne 0x41706a
mov word [rbp + 0x4c], 0
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.00411d50
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x30]
call fcn.00412080
mov rcx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x28]
mov rdx, qword [rax]
call fcn.00416df0
test al, al
jne 0x41706a
mov rcx, qword [rbp + 0x28]
call fcn.00410850
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.00410930
lea rcx, [rbp + 0x70]
call fcn.00410850
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x4170c0
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.00410a20
mov rcx, qword [rbp + 0x90]
call fcn.00410a20
nop
mov rcx, qword [rbp + 0x28]
call fcn.00410850
cmp qword [rbp + 0x90], 0
je 0x41727f
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
call fcn.00410f50
xor eax, eax
mov rcx, qword [rbp + 0x90]
test rcx, rcx
je 0x41716b
mov eax, dword [rcx - 4]
cmp eax, 1
jl 0x4171a4
mov rcx, qword [rbp + 0x90]
movsxd rdx, eax
cmp word [rcx + rdx*2 - 2], 0x2e
jne 0x41719d
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
mov r8d, 1
mov r9d, eax
call fcn.00412240
jmp 0x4171a4
sub eax, 1
test eax, eax
jne 0x417170
nop
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
call fcn.00416cf0
cmp qword [rbp + 0x68], 0
je 0x4171e2
mov rcx, rbp
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x68]
call fcn.00416e80
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
call fcn.00410ec0
jmp 0x41727e
call sub.kernel32.dll_GetUserDefaultUILanguage
lea rcx, [rbp + 0x48]
mov edx, eax
call fcn.00416480
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x48]
call fcn.00416e80
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x50]
call fcn.00410ec0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x417257
cmp byte [0x00929f00], 0
jne 0x417257
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.00416480
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x38]
call fcn.00416e80
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.00410ec0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x41727e
mov rcx, rbp
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x60]
call fcn.00416fa0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
call fcn.00410ec0
nop
lea rcx, [rbp + 0x30]
mov edx, 8
call fcn.00410930
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.00410930
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x419960
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 0x419980
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 0x4199a3
cmp eax, 1
jae 0x4199a8
cmp ecx, 5
jbe 0x4199b4
mov dword [0x00925a30], 0x7f
jmp 0x4199be
mov dword [0x00925a30], 0x409
add rsp, 0x28
ret
Function at 0x41ac00
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.0041abf0
mov ebx, eax
test ebx, ebx
je 0x41ac49
cmp dword [0x008bb298], 0xffffffff
jne 0x41ac23
mov ecx, 0xe2
call fcn.00410560
mov ecx, ebx
call fcn.0041abd0
test rax, rax
jne 0x41ac3b
mov ecx, 0xe2
call fcn.00410560
jmp 0x41ac49
mov ecx, dword [0x008bb298]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

Function at 0x41acb0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x0092b2d8], 0
je 0x41aceb
mov ecx, dword [0x008bb298]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x41acfe
call fcn.0041ac00
mov ecx, dword [0x008bb298]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x41acfe
mov rax, qword [0x0092b2d0]
jmp 0x41acfe
mov rax, qword gs:[0x58]
mov ecx, dword [0x008bb298]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

Function at 0x436c40
Capabilities:
Get disk information

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x460
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 0x436d52
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 0x436d38
lea rcx, [rbp + 0x40]
lea rdx, [rbp + 0x48]
mov r8d, 0x106
call fcn.00411d50
mov r13, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x40]
mov rdx, r13
mov r8d, 1
call fcn.00412450
test eax, eax
jle 0x436d38
xor esi, esi
mov rax, qword [rbp + 0x40]
test rax, rax
je 0x436cf0
mov esi, dword [rax - 4]
xor edi, edi
test r13, r13
je 0x436cfb
mov edi, dword [r13 - 4]
lea rcx, [rbp + 0x38]
mov rdx, rbx
call fcn.00411cf0
lea rcx, [rbp + 0x30]
mov rdx, qword [rbp + 0x28]
mov r8d, esi
add r8d, 1
mov r9d, edi
sub r9d, esi
call fcn.00412240
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x38]
mov r8, qword [rbp + 0x30]
call fcn.00412080
jmp 0x436d51
add rbx, 2
cmp word [rbx], 0
jne 0x436d34
add rbx, 4
test rbx, rbx
je 0x436d51
cmp word [rbx], 0
jne 0x436c93
nop
nop
lea rcx, [rbp + 0x30]
mov edx, 3
call fcn.00410930
mov rax, qword [rbp + 0x20]
lea rsp, [rbp + 0x460]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret