joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180020150
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x180032680]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1800201a7
cmp word [rdx], r13w
jne 0x1800201a7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1800201ac
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1800202d1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1800202f2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1800201e5
mov rdx, r9
mov word [rbx], cx
jmp 0x18002020c
cmp r9, r8
jae 0x18002021c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1800201c6
jmp 0x1800202d1
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800202c6
cmp dword [rsp + 0x80], esi
je 0x1800202c6
lea r8, [0x180032680]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18002029e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18002026e
mov word [rbx], r13w
jmp 0x1800202ce
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x18002027b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1800202ce
cmp word [rsp + 0x70], r13w
jne 0x1800202ab
cmp rbx, r14
je 0x180020268
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180020c90
cmp word [rsp + 0x70], r13w
je 0x1800202d1
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x180032680]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1800202cb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1800202d1
Function at 0x180022830
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180022858
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180022858
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x40c9f0
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.0040cf90
mov esi, eax
test sil, sil
jne 0x40cbb2
test ebx, ebx
je 0x40cbb2
xor rdi, rdi
test r13d, r13d
jle 0x40cad7
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov dword [rbp + 0x3c], 0
test r13d, r13d
jle 0x40cab6
cmp ebx, 0xffffffff
je 0x40ca63
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x40ca63
xor rsi, rsi
jmp 0x40cbb2
mov rax, qword [rbp + 0x28]
cmp dword [rax], 1
jg 0x40cab6
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0
jne 0x40caa4
xor eax, eax
mov ecx, 1
mov rdx, qword [rbp + 0x28]
lock cmpxchg dword [rdx], ecx
test eax, eax
jne 0x40caa4
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp 0x40cbb2
lea rcx, [rbp + 0x3c]
call fcn.0040c5a0
sub r13d, 1
test r13d, r13d
jg 0x40ca4a
nop
cmp ebx, 0xffffffff
je 0x40cad7
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jb 0x40cad2
xor rsi, rsi
jmp 0x40cbb2
sub eax, r14d
sub ebx, eax
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x40ca0d
mov edx, ecx
add edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40cad7
nop
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov rcx, qword [rbp + 0x28]
call fcn.0040cc60
xor rcx, rcx
mov rdx, rax
mov r8d, ebx
mov rax, qword [0x0072c9a0]
call qword [rax + 0x20]
test eax, eax
sete sil
cmp ebx, 0xffffffff
je 0x40cb41
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jae 0x40cb3e
sub eax, r14d
sub ebx, eax
jmp 0x40cb41
xor rbx, rbx
test sil, sil
je 0x40cb73
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov eax, ecx
test eax, 1
jne 0x40cb70
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 0x40cb46
mov dil, 1
nop
jmp 0x40cb90
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 0x40cb73
mov dil, 1
test dil, dil
je 0x40cafa
nop
test sil, sil
je 0x40cbb2
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 0x40e940
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x0072c0a8], 0
je 0x40e9de
cmp word [0x0072c3b8], 0xd7b2
jne 0x40e973
cmp dword [0x0072c3c0], 0
jbe 0x40e973
lea rcx, [0x0072c3b0]
call qword [0x0072c3d8]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x006edaa8]
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, [0x0040ea14]
call fcn.0040ff70
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x40ea00
cmp byte [0x006ec052], 0
jne 0x40ea00
xor rcx, rcx
lea rdx, [0x006edaa8]
lea r8, str.Error
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40ece0
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 [0x006ec058], 0
je 0x40ed11
mov rcx, rsi
mov rdx, rdi
call qword [0x006ec058]
mov r13, rax
jmp 0x40ed27
mov ecx, 0x10
call fcn.004089b0
mov r13, rax
mov qword [r13], rsi
mov qword [r13 + 8], rdi
mov byte [0x0072c0a9], 1
mov rcx, qword [rsp + 0x38]
mov edx, ebx
lea r8, [0x0040ec70]
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 0x40ed6c
mov rcx, r13
call fcn.004089e0
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x4128c0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x00730e70]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x00730e98], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x00730e68], al
cmp byte [0x00730e68], 0
je 0x41295f
lea rcx, [0x00412964]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0041297e]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00730e50], rax
lea rcx, [0x00412964]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0041299c]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00730e58], rax
lea rcx, [0x00412964]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x004129ba]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00730e60], rax
add rsp, 0x28
ret
Function at 0x412c40
Capabilities:
Get geographical location

Disassembly:
push rbp
sub rsp, 0x1d0
mov rbp, rsp
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x40], rdx
mov word [rbp + 0x4e], r8w
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
call fcn.0040eef0
movzx rax, word [rbp + 0x4e]
cmp word [0x006ee1b0], ax
ja 0x412d28
movzx rax, word [rbp + 0x4e]
cmp ax, word [0x006ee5b0]
mov word [rbp + 0x4e], ax
ja 0x412d28
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x412d27
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
lea rdx, [0x006ee1b0]
mov r9d, eax
add r9, r9
movzx r10, word [rbp + 0x4e]
cmp word [rdx + r9*8], r10w
jbe 0x412ce1
mov ecx, eax
sub ecx, 1
jmp 0x412d22
lea rdx, [0x006ee1b0]
mov r8d, eax
add r8, r8
movzx r9, word [rbp + 0x4e]
cmp word [rdx + r8*8], r9w
jae 0x412d03
mov r8d, eax
add r8d, 1
jmp 0x412d22
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x40]
lea r8, [0x006ee1b8]
mov eax, eax
add rax, rax
mov r8, qword [r8 + rax*8]
call fcn.00412ad0
jmp 0x412d27
cmp ecx, r8d
jae 0x412cb0
nop
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
jne 0x412e0a
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x412e0a
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 0x59
lea r8, [rbp + 0x126]
mov r9d, 0x55
call sub.kernel32.dll_GetLocaleInfoW
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
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.00410770
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.00410770
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.00410770
mov rcx, qword [rbp + 0x40]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x00412e64]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x00412e74]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.00410bf0
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.0040efd0
mov rax, qword [rbp + 0x40]
lea rsp, [rbp + 0x1d0]
pop rbp
ret
Function at 0x413080
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, [0x00730e70]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x00730e98], ax
jne 0x4130eb
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00730e9a]
mov r8d, 0x55
call fcn.00410770
lea rcx, [0x00730e70]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4131f6
lea rcx, [0x00730e70]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.0040eef0
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4131b0
cmp byte [0x00730e68], 0
je 0x413144
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.00412f10
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.0040f520
jmp 0x4131b0
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.00412c40
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040f520
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x4131b0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x41318f
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00413244]
call fcn.004109e0
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.00412c40
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.004109e0
lea rcx, [0x00730e70]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x00730e98], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.00410670
lea rcx, [0x00730e9a]
mov edx, 0xaa
mov r8, rax
call fcn.004129f0
lea rcx, [0x00730e70]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.0040efd0
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x413c20
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x20], rdx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x70], r8
mov rcx, qword [rbp + 0x70]
call fcn.0040f080
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.00410770
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x38]
call fcn.00410ad0
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.00413a40
test al, al
jne 0x413cee
mov word [rbp + 0x4c], 0
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.00410770
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x30]
call fcn.00410ad0
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.00413a40
test al, al
jne 0x413cee
mov rcx, qword [rbp + 0x20]
call fcn.0040eef0
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040efd0
lea rcx, [rbp + 0x70]
call fcn.0040eef0
mov rax, qword [rbp + 0x20]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x413d60
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.0040f080
mov rcx, qword [rbp + 0x90]
call fcn.0040f080
nop
mov rcx, qword [rbp + 0x28]
call fcn.0040eef0
cmp qword [rbp + 0x90], 0
je 0x413f26
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
call fcn.0040f5a0
xor rax, rax
cmp qword [rbp + 0x90], 0
je 0x413e11
mov rax, qword [rbp + 0x90]
mov eax, dword [rax - 4]
cmp eax, 1
jl 0x413e4b
mov rcx, qword [rbp + 0x90]
movsxd rdx, eax
cmp word [rcx + rdx*2 - 2], 0x2e
jne 0x413e44
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
mov r8d, 1
mov r9d, eax
call fcn.00410ce0
jmp 0x413e4b
sub eax, 1
test eax, eax
jne 0x413e16
nop
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
call fcn.00413930
cmp qword [rbp + 0x68], 0
je 0x413e89
mov rcx, rbp
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x68]
call fcn.00413ae0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
call fcn.0040f520
jmp 0x413f25
call sub.kernel32.dll_GetUserDefaultUILanguage
lea rcx, [rbp + 0x48]
mov edx, eax
call fcn.00413080
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x48]
call fcn.00413ae0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x50]
call fcn.0040f520
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x413efe
cmp byte [0x00730e68], 0
jne 0x413efe
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.00413080
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x38]
call fcn.00413ae0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040f520
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x413f25
mov rcx, rbp
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x60]
call fcn.00413c20
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
call fcn.0040f520
nop
lea rcx, [rbp + 0x30]
mov edx, 8
call fcn.0040efd0
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.0040efd0
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x414ca0
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 0x414cc0
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 0x414ce4
cmp eax, 1
jae 0x414ce9
cmp ecx, 5
jbe 0x414cf5
mov dword [0x0072c9b0], 0x7f
jmp 0x414cff
mov dword [0x0072c9b0], 0x409
add rsp, 0x28
ret
Function at 0x4164b0
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.004164a0
mov ebx, eax
test ebx, ebx
je 0x4164fb
cmp dword [0x006eefa0], 0xffffffff
jne 0x4164d4
mov ecx, 0xe2
call fcn.0040ebf0
mov ecx, ebx
call fcn.00416480
test rax, rax
jne 0x4164ed
mov ecx, 0xe2
call fcn.0040ebf0
jmp 0x4164fb
mov ecx, dword [0x006eefa0]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

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

Disassembly:
sub rsp, 0x28
lea rax, [0x1f0]
test rax, rax
je 0x416590
cmp dword [0x006eefa0], 0xffffffff
je 0x416590
mov ecx, dword [0x006eefa0]
call sub.kernel32.dll_TlsGetValue
test rax, rax
je 0x416590
mov rcx, rax
call sub.kernel32.dll_LocalFree
mov ecx, dword [0x006eefa0]
xor rdx, rdx
call sub.kernel32.dll_TlsSetValue
add rsp, 0x28
ret

Function at 0x4165d0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x00730f44], 0
je 0x41660b
mov ecx, dword [0x006eefa0]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x41661f
call fcn.004164b0
mov ecx, dword [0x006eefa0]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x41661f
mov rax, qword [0x00730f80]
jmp 0x41661f
mov rax, qword gs:[0x58]
movsxd rcx, dword [0x006eefa0]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

Function at 0x4313f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x40
mov rbp, rsp
mov rbx, rcx
mov esi, edx
mov rcx, rbx
call fcn.00410670
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4314a2
mov ecx, eax
test ecx, 0x400
je 0x431497
test sil, sil
jne 0x43142f
mov al, 1
jmp 0x4314cc
test eax, 0x10
je 0x43143f
xor rax, rax
jmp 0x4314cc
mov rcx, rbx
call fcn.00410670
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW_1
cmp rax, 0xffffffffffffffff
je 0x43148a
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x4314cc
call sub.kernel32.dll_GetLastError_2
cmp eax, 0x20
sete al
jmp 0x4314cc
test eax, 0x10
sete al
jmp 0x4314cc
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x4314c5
cmp eax, 3
je 0x4314c5
cmp eax, 0x7b
je 0x4314c5
mov rcx, rbp
mov rdx, rbx
call fcn.004313a0
test al, al
jne 0x4314ca
xor rax, rax
jmp 0x4314cc
mov al, 1
lea rsp, [rbp + 0x40]
pop rbx
pop rsi
pop rbp
ret
Function at 0x4314e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
mov esi, edx
xor rdi, rdi
mov rcx, rbx
call fcn.00410670
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
mov r13d, eax
cmp r13d, 0xffffffff
je 0x4315ec
mov eax, r13d
test eax, 0x400
jne 0x43152a
test r13d, 0x10
setne dil
jmp 0x43161f
test sil, sil
je 0x43158a
mov rcx, rbx
call fcn.00410670
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x2000000
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW_1
cmp rax, 0xffffffffffffffff
je 0x43161f
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
test r13d, 0x10
setne dil
jmp 0x43161f
test r13d, 0x10
je 0x43159b
mov dil, 1
jmp 0x43161f
mov rcx, rbx
call fcn.00410670
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x2000000
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW_1
cmp rax, 0xffffffffffffffff
je 0x4315e7
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
xor rdi, rdi
jmp 0x43161f
mov dil, 1
jmp 0x43161f
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x431617
cmp eax, 3
je 0x431617
cmp eax, 0xa1
je 0x431617
cmp eax, 0x7b
je 0x431617
cmp eax, 0x35
je 0x431617
cmp eax, 0x15
je 0x431617
cmp eax, 0x43
jne 0x43161c
xor rdi, rdi
jmp 0x43161f
mov dil, 1
mov eax, edi
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x4317b0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, rbx
call fcn.00410670
mov rcx, rax
call sub.kernel32.dll_DeleteFileW
test eax, eax
setne sil
test sil, sil
jne 0x431822
call sub.kernel32.dll_GetLastError_2
mov edi, eax
mov rcx, rbx
call fcn.00410670
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x43181b
mov ecx, eax
test ecx, 0x400
je 0x43181b
test eax, 0x10
je 0x43181b
mov rcx, rbx
call fcn.00410670
mov rcx, rax
call sub.kernel32.dll_RemoveDirectoryW
test eax, eax
setne sil
jmp 0x431822
mov ecx, edi
call sub.kernel32.dll_SetLastError
mov eax, esi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x431b30
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
call fcn.00410670
mov rcx, rax
xor rdx, rdx
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x438670
Capabilities:
Get geographical location

Disassembly:
push rbp
push rbx
sub rsp, 0x38
mov rbp, rsp
mov ebx, r8d
lea r8, [rbp + 0x2c]
mov r9d, 2
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x438697
movzx rax, word [rbp + 0x2c]
jmp 0x438699
mov eax, ebx
lea rsp, [rbp + 0x38]
pop rbx
pop rbp
ret
Function at 0x439f70
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x8e0
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
lea r8, [rbp + 0x60]
mov r9d, 0x400
call fcn.00439d10
mov ebx, eax
mov rax, qword [0x0072b540]
cmp byte [rax], 0
je 0x43a0a8
mov rcx, qword [0x0072af00]
call fcn.0040a920
call fcn.00408cf0
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov esi, eax
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00439f30]
mov r8d, 1
movsxd r9, esi
call fcn.00412320
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
mov rdx, qword [rbp + 0x58]
mov r8d, esi
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
lea rdx, [0x0043a148]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
jmp 0x43a0ee
mov rcx, qword [0x00730f48]
call fcn.00412690
mov rcx, rax
mov rax, qword [0x0072adf8]
mov edx, dword [rax + 8]
lea r8, [rbp + 0x860]
mov r9d, 0x40
call sub.user32.dll_LoadStringW_1
xor rcx, rcx
lea rdx, [rbp + 0x60]
lea r8, [rbp + 0x860]
mov r9d, 0x2010
call sub.user32.dll_MessageBoxW
nop
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00439f30]
call fcn.00412500
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret

Function at 0x43c0b0
Capabilities:
Get file version info

Disassembly:
push rbp
sub rsp, 0x60
mov rbp, rsp
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x70], rcx
nop
mov dword [rbp + 0x54], 0xffffffff
lea rcx, [rbp + 0x48]
mov rdx, qword [rbp + 0x70]
call fcn.0040f5a0
lea rcx, [rbp + 0x48]
call fcn.0040f7f0
mov rcx, qword [rbp + 0x48]
call fcn.00410670
mov rcx, rax
lea rdx, [rbp + 0x40]
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
je 0x43c161
mov ecx, dword [rbp + 0x44]
call fcn.004089b0
mov qword [rbp + 0x58], rax
nop
mov rcx, qword [rbp + 0x48]
call fcn.00410670
mov rcx, rax
mov edx, dword [rbp + 0x40]
mov r8d, dword [rbp + 0x44]
mov r9, qword [rbp + 0x58]
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x43c157
mov rcx, qword [rbp + 0x58]
lea rdx, [0x0043c1d4]
lea r8, [rbp + 0x38]
lea r9, [rbp + 0x34]
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x43c157
mov rax, qword [rbp + 0x38]
mov eax, dword [rax + 8]
mov dword [rbp + 0x54], eax
nop
mov rcx, qword [rbp + 0x58]
call fcn.004089e0
nop
lea rcx, [rbp + 0x48]
call fcn.0040eef0
mov eax, dword [rbp + 0x54]
lea rsp, [rbp + 0x60]
pop rbp
ret