joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005ec68
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14003baac
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14005ecf2
cmp byte [rbp - 0x21], r15b
je 0x14005eced
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14005ed28
call fcn.14004f010
test eax, eax
jne 0x14005ed14
cmp byte [rbp - 0x21], r15b
je 0x14005ed0c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14005ed28
cmp byte [rbp - 0x21], r15b
je 0x14005ed25
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140047da4
test eax, eax
jne 0x14005edc8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14003baac
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14005ed67
cmp byte [rbp - 0x21], r15b
je 0x14005ed9c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14005ed9c
call fcn.14004f010
test eax, eax
jne 0x14005ed88
cmp byte [rbp - 0x21], r15b
je 0x14005ed81
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14005ed9c
cmp byte [rbp - 0x21], r15b
je 0x14005ed99
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140047da4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14005edc8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14005edcb
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14005edd9
mov rcx, rdi
call fcn.14004dcf4
cmp byte [rbp + 0x3f], r15b
je 0x14005ede8
mov rcx, qword [rbp + 0x27]
call fcn.14004dcf4
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14005f2f4
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14005304c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14005304c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14005f444
cmp rax, 0xffffffffffffffff
je 0x14005f444
xor edi, edi
test rbp, rbp
jle 0x14005f3ef
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14004dc7c
mov rbx, rax
test rax, rax
jne 0x14005f37c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14005f3e5
mov edx, 0x8000
mov ecx, r14d
call fcn.14004bafc
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400513f8
cmp eax, 0xffffffff
je 0x14005f3c5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14005f38c
mov edx, r15d
mov ecx, r14d
call fcn.14004bafc
jmp 0x14005f3e5
cmp byte [rsi + 0x38], dil
je 0x14005f3dc
cmp dword [rsi + 0x34], 5
jne 0x14005f3dc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14005f3e5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14004dcf4
jmp 0x14005f458
jns 0x14005f458
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14005304c
cmp rax, 0xffffffffffffffff
jne 0x14005f410
cmp byte [rsi + 0x30], dil
je 0x14005f458
mov edi, dword [rsi + 0x2c]
jmp 0x14005f458
mov ecx, r14d
call fcn.1400588ec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14005f458
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14005f458
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14005f451
mov eax, dword [rsi + 0x2c]
jmp 0x14005f456
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14005304c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140065e88
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rax, r8
xor ecx, ecx
mov rdi, rdx
mov r8, r9
mov rdx, rax
mov qword [rbx], rcx
mov qword [rbx + 8], rcx
mov rcx, rbx
mov dword [rbx + 0x50], 0x6a09e667
mov dword [rbx + 0x54], 0xbb67ae85
mov dword [rbx + 0x58], 0x3c6ef372
mov dword [rbx + 0x5c], 0xa54ff53a
mov dword [rbx + 0x60], 0x510e527f
mov dword [rbx + 0x64], 0x9b05688c
mov dword [rbx + 0x68], 0x1f83d9ab
mov dword [rbx + 0x6c], 0x5be0cd19
call fcn.1400640e0
mov rdx, rdi
mov rcx, rbx
call fcn.140063e74
mov rbx, qword [rsp + 0x40]
mov rax, rdi
add rsp, 0x30
pop rdi
ret

Function at 0x140068ba0
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rsi, rcx
mov rdi, qword [rax + 0x18]
add rdi, 0x20
mov rbx, qword [rdi]
jmp 0x140068bdc
mov rcx, qword [rbx + 0x40]
mov rdx, rsi
call fcn.140037058
test rax, rax
jne 0x140068bf3
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x140068bc8
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rbx + 0x20]
jmp 0x140068be3

Function at 0x14006967c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
xor ebx, ebx
mov rsi, rcx
mov edi, dword [rax + rcx + 0x88]
add rdi, rcx
mov r14d, dword [rdi + 0x1c]
mov r15d, dword [rdi + 0x20]
add r14, rcx
mov r12d, dword [rdi + 0x24]
add r15, rcx
add r12, rcx
cmp dword [rdi + 0x18], ebx
jbe 0x1400696f1
movzx eax, word [r12 + rbx*2]
lea rdx, str.Main
mov ecx, dword [r15 + rbx*4]
add rcx, rsi
mov ebp, dword [r14 + rax*4]
add rbp, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x140069712
inc ebx
cmp ebx, dword [rdi + 0x18]
jb 0x1400696c6
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
mov rax, rbp
jmp 0x1400696f3
Function at 0x140001e8c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001ed6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001ed6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001ed6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001ed6
cmp dword [rcx + 0x84], 0xe
jbe 0x140001ed6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001ed8
xor al, al
add rsp, 0x28
ret
Function at 0x408240
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 [0x007970a8], 0
je 0x4082f8
mov ecx, 0xfffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov rdi, rax
mov rcx, rsi
call fcn.00410d20
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 [0x007460e0]
call fcn.00410d20
mov rcx, rsi
mov rdx, qword [0x007460e0]
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.00410d20
mov rcx, rsi
mov rdx, rbx
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.KERNEL32.DLL_WriteFile
jmp 0x40830b
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 0x40e070
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.0040e6c0
mov esi, eax
test sil, sil
jne 0x40e225
test ebx, ebx
je 0x40e225
xor edi, edi
test r13d, r13d
jle 0x40e151
call sub.KERNEL32.DLL_GetTickCount
mov r14d, eax
mov dword [rbp + 0x3c], 0
test r13d, r13d
jle 0x40e135
cmp ebx, 0xffffffff
je 0x40e0e3
call sub.KERNEL32.DLL_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x40e0e3
xor esi, esi
jmp 0x40e225
mov rax, qword [rbp + 0x28]
cmp dword [rax], 1
jg 0x40e135
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0
jne 0x40e123
xor eax, eax
mov ecx, 1
mov rdx, qword [rbp + 0x28]
lock cmpxchg dword [rdx], ecx
test eax, eax
jne 0x40e123
call sub.KERNEL32.DLL_GetCurrentThreadId
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp 0x40e225
lea rcx, [rbp + 0x3c]
call fcn.0040dc10
sub r13d, 1
test r13d, r13d
jg 0x40e0ca
nop
cmp ebx, 0xffffffff
je 0x40e151
call sub.KERNEL32.DLL_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x40e14f
xor esi, esi
jmp 0x40e225
sub ebx, eax
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x40e08d
mov edx, ecx
add edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40e151
nop
call sub.KERNEL32.DLL_GetTickCount
mov r14d, eax
mov rcx, qword [rbp + 0x28]
call fcn.0040e2d0
xor ecx, ecx
mov rdx, rax
mov r8d, ebx
mov rax, qword [0x007979a0]
call qword [rax + 0x20]
test eax, eax
sete sil
cmp ebx, 0xffffffff
je 0x40e1b4
call sub.KERNEL32.DLL_GetTickCount
sub eax, r14d
cmp eax, ebx
jae 0x40e1b2
sub ebx, eax
jmp 0x40e1b4
xor ebx, ebx
test sil, sil
je 0x40e1e6
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov eax, ecx
test eax, 1
jne 0x40e1e3
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 0x40e1b9
mov dil, 1
nop
jmp 0x40e203
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 0x40e1e6
mov dil, 1
test dil, dil
je 0x40e174
nop
test sil, sil
je 0x40e225
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 0x40ff40
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x007970a8], 0
je 0x40ffda
cmp word [0x007973b8], 0xd7b2
jne 0x40ff73
cmp dword [0x007973c0], 0
jbe 0x40ff73
lea rcx, [0x007973b0]
call qword [0x007973d8]
mov ecx, 0xfffffff5
call sub.KERNEL32.DLL_GetStdHandle
mov rcx, rax
lea rdx, [0x00748960]
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, [0x00410010]
call fcn.004113e0
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.KERNEL32.DLL_WriteFile
jmp 0x40fffb
cmp byte [0x0074605a], 0
jne 0x40fffb
xor ecx, ecx
lea rdx, [0x00748960]
lea r8, str.Error
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x4102c0
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 [0x00746060], 0
je 0x4102f1
mov rcx, rsi
mov rdx, rdi
call qword [0x00746060]
mov r13, rax
jmp 0x410306
mov ecx, 0x10
call fcn.00409260
mov r13, rax
mov qword [r13], rsi
mov qword [r13 + 8], rdi
mov byte [0x007970a9], 1
mov rcx, qword [rsp + 0x38]
mov edx, ebx
lea r8, [0x00410250]
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 0x41034b
mov rcx, r13
call fcn.00409290
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x415680
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x0079bf00]
call sub.KERNEL32.DLL_InitializeCriticalSection
mov word [0x0079bf28], 0x7f
call sub.KERNEL32.DLL_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x0079bef8], al
cmp byte [0x0079bef8], 0
je 0x41571f
lea rcx, [0x00415724]
call sub.KERNEL32.DLL_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0041573e]
call sub.KERNEL32.DLL_GetProcAddress
mov qword [0x0079bee0], rax
lea rcx, [0x00415724]
call sub.KERNEL32.DLL_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0041575c]
call sub.KERNEL32.DLL_GetProcAddress
mov qword [0x0079bee8], rax
lea rcx, [0x00415724]
call sub.KERNEL32.DLL_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0041577a]
call sub.KERNEL32.DLL_GetProcAddress
mov qword [0x0079bef0], rax
add rsp, 0x28
ret
Function at 0x4159c0
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.004104c0
movzx rax, word [rbp + 0x56]
cmp word [0x00749380], ax
ja 0x415a96
movzx rax, word [rbp + 0x56]
cmp ax, word [0x00749780]
mov word [rbp + 0x56], ax
ja 0x415a96
mov eax, 0x40
xor ecx, ecx
cmp eax, ecx
jb 0x415a95
mov edx, eax
add edx, ecx
shr edx, 1
mov r8d, edx
lea r9, [0x00749380]
mov r10, r8
add r10, r10
movzx r11, word [rbp + 0x56]
cmp word [r9 + r10*8], r11w
jbe 0x415a54
mov eax, edx
sub eax, 1
jmp 0x415a91
lea rcx, [0x00749380]
mov r9, r8
add r9, r9
movzx r10, word [rbp + 0x56]
cmp word [rcx + r9*8], r10w
jae 0x415a74
mov ecx, edx
add ecx, 1
jmp 0x415a91
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
lea rax, [0x00749388]
add r8, r8
mov r8, qword [rax + r8*8]
call fcn.00415870
jmp 0x415a95
cmp eax, ecx
jae 0x415a2a
nop
mov rax, qword [rbp + 0x48]
cmp qword [rax], 0
jne 0x415b6b
movzx rcx, word [rbp + 0x56]
movzx ecx, cx
mov edx, 2
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x415b6b
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.004119b0
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.004119b0
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.004119b0
mov rcx, qword [rbp + 0x48]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x00415bb8]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x00415bc8]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.00411e40
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.004105a0
mov rax, qword [rbp + 0x48]
lea rsp, [rbp + 0x1d8]
pop rbx
pop rbp
ret
Function at 0x415dc0
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, [0x0079bf00]
call sub.KERNEL32.DLL_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x0079bf28], ax
jne 0x415e2a
mov rcx, qword [rbp + 0x28]
lea rdx, [0x0079bf2a]
mov r8d, 0x55
call fcn.004119b0
lea rcx, [0x0079bf00]
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x415f33
lea rcx, [0x0079bf00]
call sub.KERNEL32.DLL_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.004104c0
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x415eee
cmp byte [0x0079bef8], 0
je 0x415e82
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.00415c60
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.00410b30
jmp 0x415eee
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.004159c0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.00410b30
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x415eee
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x415ecd
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00415f78]
call fcn.00411c40
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.004159c0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.00411c40
lea rcx, [0x0079bf00]
call sub.KERNEL32.DLL_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x0079bf28], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.004118c0
lea rcx, [0x0079bf2a]
mov edx, 0xaa
mov r8, rax
call fcn.004157b0
lea rcx, [0x0079bf00]
call sub.KERNEL32.DLL_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.004105a0
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x4168e0
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.00410690
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.004119b0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x38]
call fcn.00411d10
mov rcx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x28]
mov rdx, qword [rax]
call fcn.00416730
test al, al
jne 0x4169aa
mov word [rbp + 0x4c], 0
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.004119b0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x30]
call fcn.00411d10
mov rcx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x28]
mov rdx, qword [rax]
call fcn.00416730
test al, al
jne 0x4169aa
mov rcx, qword [rbp + 0x28]
call fcn.004104c0
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.004105a0
lea rcx, [rbp + 0x70]
call fcn.004104c0
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x416a00
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.00410690
mov rcx, qword [rbp + 0x90]
call fcn.00410690
nop
mov rcx, qword [rbp + 0x28]
call fcn.004104c0
cmp qword [rbp + 0x90], 0
je 0x416bbf
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
call fcn.00410bc0
xor eax, eax
mov rcx, qword [rbp + 0x90]
test rcx, rcx
je 0x416aab
mov eax, dword [rcx - 4]
cmp eax, 1
jl 0x416ae4
mov rcx, qword [rbp + 0x90]
movsxd rdx, eax
cmp word [rcx + rdx*2 - 2], 0x2e
jne 0x416add
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
mov r8d, 1
mov r9d, eax
call fcn.00411f30
jmp 0x416ae4
sub eax, 1
test eax, eax
jne 0x416ab0
nop
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
call fcn.00416630
cmp qword [rbp + 0x68], 0
je 0x416b22
mov rcx, rbp
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x68]
call fcn.004167c0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
call fcn.00410b30
jmp 0x416bbe
call sub.KERNEL32.DLL_GetUserDefaultUILanguage
lea rcx, [rbp + 0x48]
mov edx, eax
call fcn.00415dc0
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x48]
call fcn.004167c0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x50]
call fcn.00410b30
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x416b97
cmp byte [0x0079bef8], 0
jne 0x416b97
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.00415dc0
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x38]
call fcn.004167c0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.00410b30
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x416bbe
mov rcx, rbp
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x60]
call fcn.004168e0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
call fcn.00410b30
nop
lea rcx, [rbp + 0x30]
mov edx, 8
call fcn.004105a0
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.004105a0
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x4192d0
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 0x4192f0
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 0x419314
cmp eax, 1
jae 0x419319
cmp ecx, 5
jbe 0x419325
mov dword [0x00797a30], 0x7f
jmp 0x41932f
mov dword [0x00797a30], 0x409
add rsp, 0x28
ret
Function at 0x41a5b0
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.0041a5a0
mov ebx, eax
test ebx, ebx
je 0x41a5f9
cmp dword [0x0074a23c], 0xffffffff
jne 0x41a5d3
mov ecx, 0xe2
call fcn.004101d0
mov ecx, ebx
call fcn.0041a580
test rax, rax
jne 0x41a5eb
mov ecx, 0xe2
call fcn.004101d0
jmp 0x41a5f9
mov ecx, dword [0x0074a23c]
mov rdx, rax
call sub.KERNEL32.DLL_TlsSetValue
add rsp, 0x20
pop rbx
ret

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

Disassembly:
sub rsp, 0x28
lea rax, [0x280]
test rax, rax
je 0x41a67f
cmp dword [0x0074a23c], 0xffffffff
je 0x41a67f
mov ecx, dword [0x0074a23c]
call sub.KERNEL32.DLL_TlsGetValue
test rax, rax
je 0x41a67f
mov rcx, rax
call sub.KERNEL32.DLL_LocalFree
mov ecx, dword [0x0074a23c]
xor edx, edx
call sub.KERNEL32.DLL_TlsSetValue
add rsp, 0x28
ret

Function at 0x41a6c0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x0079d2d8], 0
je 0x41a6fb
mov ecx, dword [0x0074a23c]
call sub.KERNEL32.DLL_TlsGetValue
test rax, rax
jne 0x41a70e
call fcn.0041a5b0
mov ecx, dword [0x0074a23c]
call sub.KERNEL32.DLL_TlsGetValue
test rax, rax
jne 0x41a70e
mov rax, qword [0x0079d2d0]
jmp 0x41a70e
mov rax, qword gs:[0x58]
mov ecx, dword [0x0074a23c]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

Function at 0x4365b0
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 0x4366c2
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 0x4366a8
lea rcx, [rbp + 0x40]
lea rdx, [rbp + 0x48]
mov r8d, 0x106
call fcn.004119b0
mov r13, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x40]
mov rdx, r13
mov r8d, 1
call fcn.00412140
test eax, eax
jle 0x4366a8
xor esi, esi
mov rax, qword [rbp + 0x40]
test rax, rax
je 0x436660
mov esi, dword [rax - 4]
xor edi, edi
test r13, r13
je 0x43666b
mov edi, dword [r13 - 4]
lea rcx, [rbp + 0x38]
mov rdx, rbx
call fcn.00411950
lea rcx, [rbp + 0x30]
mov rdx, qword [rbp + 0x28]
mov r8d, esi
add r8d, 1
mov r9d, edi
sub r9d, esi
call fcn.00411f30
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x38]
mov r8, qword [rbp + 0x30]
call fcn.00411d10
jmp 0x4366c1
add rbx, 2
cmp word [rbx], 0
jne 0x4366a4
add rbx, 4
test rbx, rbx
je 0x4366c1
cmp word [rbx], 0
jne 0x436603
nop
nop
lea rcx, [rbp + 0x30]
mov edx, 3
call fcn.004105a0
mov rax, qword [rbp + 0x20]
lea rsp, [rbp + 0x460]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret