joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001880
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rsi
push rbp
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
mov rsi, rcx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor ecx, ecx
cmp rax, qword [0x140025ed0]
je 0x140001ac9
mov qword [rsp + 0x40], rcx
lea rdx, [rbp - 0x20]
mov qword [rsp + 0x50], rcx
mov r8d, 0x104
mov rcx, rax
mov qword [rsp + 0x208], rdi
mov qword [0x140025ed0], rax
mov qword [rsp + 0x58], 0xf
call qword [sym.imp.USER32.dll_GetWindowTextA]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx ecx, word [rsp + 0x6a]
movzx edx, word [rsp + 0x68]
movzx eax, word [rsp + 0x6c]
movzx r10d, word [rsp + 0x66]
movzx r9d, word [rsp + 0x62]
movzx r8d, word [rsp + 0x60]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x28], edx
lea rdx, str._.4d__.2d__.2d__.2d:_.2d:_.2d
mov dword [rsp + 0x20], r10d
call fcn.140004370
mov rdi, 0xffffffffffffffff
lea rax, [rsp + 0x70]
mov r8, rdi
nop
inc r8
cmp byte [rax + r8], 0
jne 0x140001940
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x200], rbx
lea rcx, [rsp + 0x40]
call fcn.140004190
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rax, rdx
sub rax, rcx
cmp rax, 0x14
jb 0x1400019ad
cmp rdx, 0x10
lea rax, [rcx + 0x14]
lea rbx, [rsp + 0x40]
mov qword [rsp + 0x50], rax
cmovae rbx, qword [rsp + 0x40]
lea rdx, str.________________
add rbx, rcx
mov r8d, 0x14
mov rcx, rbx
call fcn.140005410
mov byte [rbx + 0x14], 0
jmp 0x1400019ce
xor r8d, r8d
mov qword [rsp + 0x20], 0x14
lea r9, str.________________
lea rcx, [rsp + 0x40]
lea edx, [r8 + 0x14]
call fcn.140003c30
lea rax, [rbp - 0x20]
inc rdi
cmp byte [rax + rdi], 0
jne 0x1400019d2
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x140001a20
cmp rdx, 0x10
lea rax, [rcx + rdi]
lea rbx, [rsp + 0x40]
mov qword [rsp + 0x50], rax
cmovae rbx, qword [rsp + 0x40]
lea rdx, [rbp - 0x20]
add rbx, rcx
mov r8, rdi
mov rcx, rbx
call fcn.140005410
mov byte [rdi + rbx], 0
jmp 0x140001a39
lea r9, [rbp - 0x20]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
lea rcx, [rsp + 0x40]
mov rdx, rdi
call fcn.140003c30
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rax, rdx
mov rdi, qword [rsp + 0x208]
sub rax, rcx
cmp rax, 0xe
jb 0x140001a8d
cmp rdx, 0x10
lea rax, [rcx + 0xe]
lea rbx, [rsp + 0x40]
mov qword [rsp + 0x50], rax
cmovae rbx, qword [rsp + 0x40]
lea rdx, str.______________
add rbx, rcx
mov r8d, 0xe
mov rcx, rbx
call fcn.140005410
mov byte [rbx + 0xe], 0
jmp 0x140001aae
xor r8d, r8d
mov qword [rsp + 0x20], 0xe
lea r9, str.______________
lea rcx, [rsp + 0x40]
lea edx, [r8 + 0xe]
call fcn.140003c30
movups xmm0, xmmword [rsp + 0x40]
mov rbx, qword [rsp + 0x200]
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x140001ad8
mov qword [rsi], rcx
mov qword [rsi + 0x18], 0xf
mov qword [rsi + 0x10], rcx
mov rax, rsi
mov rsi, qword [rsp + 0x210]
add rsp, 0x1f0
pop rbp
ret
Function at 0x140002830
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x150
mov rdi, rcx
xor esi, esi
xor edx, edx
lea ecx, [rsi + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000287c
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
call sub.KERNEL32.dll_Process32First
mov rcx, rbx
test eax, eax
jne 0x140002880
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400028c4
lea rdx, [rsp + 0x20]
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x1400028b9
nop
lea rdx, [rsp + 0x4c]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1400028b5
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x140002890
jmp 0x1400028b9
mov esi, dword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140009300
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000912c
Function at 0x40b530
Capabilities:
Check for time delay via gettickcount

Disassembly:
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x30
mov qword [rsp + 0x28], rcx
mov ebx, edx
mov rax, qword [rsp + 0x28]
mov r13d, dword [rax + 0x18]
mov rcx, qword [rsp + 0x28]
call fcn.0040bad0
mov esi, eax
test sil, sil
jne 0x40b6f2
test ebx, ebx
je 0x40b6f2
xor rdi, rdi
test r13d, r13d
jle 0x40b60f
call sub.kernel32.dll_GetTickCount
mov r14d, eax
test r13d, r13d
jle 0x40b5ee
cmp ebx, 0xffffffff
je 0x40b59b
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x40b59b
xor rsi, rsi
jmp 0x40b6f2
mov rax, qword [rsp + 0x28]
cmp dword [rax], 1
jg 0x40b5ee
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0
jne 0x40b5e0
xor eax, eax
mov ecx, 1
mov rdx, qword [rsp + 0x28]
lock cmpxchg dword [rdx], ecx
test eax, eax
jne 0x40b5e0
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp 0x40b6f2
call fcn.0040bc60
sub r13d, 1
test r13d, r13d
jg 0x40b582
nop
cmp ebx, 0xffffffff
je 0x40b60f
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jb 0x40b60a
xor rsi, rsi
jmp 0x40b6f2
sub eax, r14d
sub ebx, eax
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x40b54b
mov edx, ecx
add edx, 2
mov eax, ecx
mov r8, qword [rsp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40b60f
nop
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov rcx, qword [rsp + 0x28]
call fcn.0040b7a0
xor rcx, rcx
mov rdx, rax
mov r8d, ebx
mov rax, qword [0x007ba9a0]
call qword [rax + 0x20]
test eax, eax
sete sil
cmp ebx, 0xffffffff
je 0x40b67c
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jae 0x40b679
sub eax, r14d
sub ebx, eax
jmp 0x40b67c
xor rbx, rbx
test sil, sil
je 0x40b6b0
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax]
mov eax, ecx
test eax, 1
jne 0x40b6ad
mov edx, ecx
sub edx, 2
or edx, 1
mov eax, ecx
mov r8, qword [rsp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40b681
mov dil, 1
nop
jmp 0x40b6cf
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax]
mov edx, ecx
sub edx, 2
mov eax, ecx
mov r8, qword [rsp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40b6b0
mov dil, 1
test dil, dil
je 0x40b634
nop
test sil, sil
je 0x40b6f2
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov eax, esi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop r13
pop r14
ret
Function at 0x40d3d0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x007ba0a8], 0
je 0x40d46e
cmp word [0x007ba3b8], 0xd7b2
jne 0x40d403
cmp dword [0x007ba3c0], 0
jbe 0x40d403
lea rcx, [0x007ba3b0]
call qword [0x007ba3d8]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x0076f840]
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, [0x0040d4a4]
call fcn.0040eb20
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x40d490
cmp byte [0x0076e052], 0
jne 0x40d490
xor rcx, rcx
lea rdx, [0x0076f840]
lea r8, str.Error
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40d760
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 [0x0076e058], 0
je 0x40d791
mov rcx, rsi
mov rdx, rdi
call qword [0x0076e058]
mov r13, rax
jmp 0x40d7a7
mov ecx, 0x10
call fcn.00408400
mov r13, rax
mov qword [r13], rsi
mov qword [r13 + 8], rdi
mov byte [0x007ba0a9], 1
mov rcx, qword [rsp + 0x38]
mov edx, ebx
lea r8, [0x0040d6f0]
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 0x40d7ec
mov rcx, r13
call fcn.00408430
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x411570
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x007bec90]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x007becb8], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x007bec88], al
cmp byte [0x007bec88], 0
je 0x41160f
lea rcx, [0x00411614]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0041162e]
call sub.kernel32.dll_GetProcAddress
mov qword [0x007bec70], rax
lea rcx, [0x00411614]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0041164c]
call sub.kernel32.dll_GetProcAddress
mov qword [0x007bec78], rax
lea rcx, [0x00411614]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0041166a]
call sub.kernel32.dll_GetProcAddress
mov qword [0x007bec80], rax
add rsp, 0x28
ret
Function at 0x4118a0
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.0040d970
movzx rax, word [rbp + 0x4e]
cmp word [0x0076ffe0], ax
ja 0x411988
movzx rax, word [rbp + 0x4e]
cmp ax, word [0x007703e0]
mov word [rbp + 0x4e], ax
ja 0x411988
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x411987
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
lea rdx, [0x0076ffe0]
mov r9d, eax
add r9, r9
movzx r10, word [rbp + 0x4e]
cmp word [rdx + r9*8], r10w
jbe 0x411941
mov ecx, eax
sub ecx, 1
jmp 0x411982
lea rdx, [0x0076ffe0]
mov r8d, eax
add r8, r8
movzx r9, word [rbp + 0x4e]
cmp word [rdx + r8*8], r9w
jae 0x411963
mov r8d, eax
add r8d, 1
jmp 0x411982
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x40]
lea r8, [0x0076ffe8]
mov eax, eax
add rax, rax
mov r8, qword [r8 + rax*8]
call fcn.00411740
jmp 0x411987
cmp ecx, r8d
jae 0x411910
nop
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
jne 0x411a6a
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x411a6a
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.0040f1f0
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.0040f1f0
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.0040f1f0
mov rcx, qword [rbp + 0x40]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x00411ac4]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x00411ad4]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.0040f670
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.0040da50
mov rax, qword [rbp + 0x40]
lea rsp, [rbp + 0x1d0]
pop rbp
ret
Function at 0x411ce0
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, [0x007bec90]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x007becb8], ax
jne 0x411d4b
mov rcx, qword [rbp + 0x28]
lea rdx, [0x007becba]
mov r8d, 0x55
call fcn.0040f1f0
lea rcx, [0x007bec90]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x411e57
lea rcx, [0x007bec90]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.0040d970
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x411e10
cmp byte [0x007bec88], 0
je 0x411da4
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.00411b70
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.0040dfc0
jmp 0x411e10
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.004118a0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040dfc0
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x411e10
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x411def
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00411ea4]
call fcn.0040f460
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.004118a0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.0040f460
lea rcx, [0x007bec90]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x007becb8], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.0040f0f0
lea rcx, [0x007becba]
mov rdx, rax
mov r8d, 0xaa
call sub.kernel32.dll_lstrcpynW
lea rcx, [0x007bec90]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.0040da50
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x412860
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.0040db00
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.0040f1f0
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x38]
call fcn.0040f550
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.00412680
test al, al
jne 0x41292e
mov word [rbp + 0x4c], 0
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.0040f1f0
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x30]
call fcn.0040f550
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.00412680
test al, al
jne 0x41292e
mov rcx, qword [rbp + 0x20]
call fcn.0040d970
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040da50
lea rcx, [rbp + 0x70]
call fcn.0040d970
mov rax, qword [rbp + 0x20]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x4129a0
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.0040db00
mov rcx, qword [rbp + 0x90]
call fcn.0040db00
nop
mov rcx, qword [rbp + 0x28]
call fcn.0040d970
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
call fcn.0040e040
xor rax, rax
cmp qword [rbp + 0x90], 0
je 0x412a43
mov rax, qword [rbp + 0x90]
mov eax, dword [rax - 4]
cmp eax, 1
jl 0x412a7d
mov rcx, qword [rbp + 0x90]
movsxd rdx, eax
cmp word [rcx + rdx*2 - 2], 0x2e
jne 0x412a76
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
mov r8d, 1
movsxd r9, eax
call fcn.0040f760
jmp 0x412a7d
sub eax, 1
test eax, eax
jne 0x412a48
nop
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
call fcn.00412570
cmp qword [rbp + 0x68], 0
je 0x412abb
mov rcx, rbp
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x68]
call fcn.00412720
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
call fcn.0040dfc0
jmp 0x412b57
call sub.kernel32.dll_GetUserDefaultUILanguage
lea rcx, [rbp + 0x48]
mov edx, eax
call fcn.00411ce0
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x48]
call fcn.00412720
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x50]
call fcn.0040dfc0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x412b30
cmp byte [0x007bec88], 0
jne 0x412b30
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.00411ce0
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x38]
call fcn.00412720
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040dfc0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x412b57
mov rcx, rbp
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x60]
call fcn.00412860
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
call fcn.0040dfc0
nop
lea rcx, [rbp + 0x30]
mov edx, 8
call fcn.0040da50
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.0040da50
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x413890
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 0x4138b0
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 0x4138d4
cmp eax, 1
jae 0x4138d9
cmp ecx, 5
jbe 0x4138e5
mov dword [0x007ba9b0], 0x7f
jmp 0x4138ef
mov dword [0x007ba9b0], 0x409
add rsp, 0x28
ret
Function at 0x415090
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.00415080
mov ebx, eax
test ebx, ebx
je 0x4150db
cmp dword [0x00770dc8], 0xffffffff
jne 0x4150b4
mov ecx, 0xe2
call fcn.0040d670
mov ecx, ebx
call fcn.00415060
test rax, rax
jne 0x4150cd
mov ecx, 0xe2
call fcn.0040d670
jmp 0x4150db
mov ecx, dword [0x00770dc8]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

Function at 0x4150f0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x007bed64], 0
je 0x41512b
mov ecx, dword [0x00770dc8]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x41513f
call fcn.00415090
mov ecx, dword [0x00770dc8]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x41513f
mov rax, qword [0x007bed98]
jmp 0x41513f
mov rax, qword gs:[0x58]
movsxd rcx, dword [0x00770dc8]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

Function at 0x4312a0
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.0040f0f0
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x431352
mov ecx, eax
test ecx, 0x400
je 0x431347
test sil, sil
jne 0x4312df
mov al, 1
jmp 0x43137c
test eax, 0x10
je 0x4312ef
xor rax, rax
jmp 0x43137c
mov rcx, rbx
call fcn.0040f0f0
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
cmp rax, 0xffffffffffffffff
je 0x43133a
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x43137c
call sub.kernel32.dll_GetLastError_2
cmp eax, 0x20
sete al
jmp 0x43137c
test eax, 0x10
sete al
jmp 0x43137c
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x431375
cmp eax, 3
je 0x431375
cmp eax, 0x7b
je 0x431375
mov rcx, rbp
mov rdx, rbx
call fcn.00431250
test al, al
jne 0x43137a
xor rax, rax
jmp 0x43137c
mov al, 1
lea rsp, [rbp + 0x40]
pop rbx
pop rsi
pop rbp
ret
Function at 0x431390
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.0040f0f0
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
mov r13d, eax
cmp r13d, 0xffffffff
je 0x431499
mov eax, r13d
test eax, 0x400
jne 0x4313da
test r13d, 0x10
setne dil
jmp 0x4314bf
test sil, sil
je 0x43143a
mov rcx, rbx
call fcn.0040f0f0
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
cmp rax, 0xffffffffffffffff
je 0x4314bf
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
test r13d, 0x10
setne dil
jmp 0x4314bf
test r13d, 0x10
je 0x431448
mov dil, 1
jmp 0x4314bf
mov rcx, rbx
call fcn.0040f0f0
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
cmp rax, 0xffffffffffffffff
je 0x431494
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
xor rdi, rdi
jmp 0x4314bf
mov dil, 1
jmp 0x4314bf
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x4314b7
cmp eax, 3
je 0x4314b7
cmp eax, 0x7b
je 0x4314b7
cmp eax, 0x35
je 0x4314b7
cmp eax, 0x15
jne 0x4314bc
xor rdi, rdi
jmp 0x4314bf
mov dil, 1
mov eax, edi
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x431950
Capabilities:
Create directory

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

Function at 0x4385b0
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 0x4385d7
movzx rax, word [rbp + 0x2c]
jmp 0x4385d9
mov eax, ebx
lea rsp, [rbp + 0x38]
pop rbx
pop rbp
ret
Function at 0x4398a0
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.00439640
mov ebx, eax
mov rax, qword [0x007b9518]
cmp byte [rax], 0
je 0x4399d8
mov rcx, qword [0x007b8bd8]
call fcn.00409b80
call fcn.00408740
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 [0x00439860]
mov r8d, 1
movsxd r9, esi
call fcn.00410dd0
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, [0x00439a78]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
jmp 0x439a1e
mov rcx, qword [0x007bed68]
call fcn.00411340
mov rcx, rax
mov rax, qword [0x007b8a68]
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 [0x00439860]
call fcn.00410fb0
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret

Function at 0x43b690
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.0040e040
lea rcx, [rbp + 0x48]
call fcn.0040e280
mov rcx, qword [rbp + 0x48]
call fcn.0040f0f0
mov rcx, rax
lea rdx, [rbp + 0x40]
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
je 0x43b741
mov ecx, dword [rbp + 0x44]
call fcn.00408400
mov qword [rbp + 0x58], rax
nop
mov rcx, qword [rbp + 0x48]
call fcn.0040f0f0
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 0x43b737
mov rcx, qword [rbp + 0x58]
lea rdx, [0x0043b7b4]
lea r8, [rbp + 0x38]
lea r9, [rbp + 0x34]
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x43b737
mov rax, qword [rbp + 0x38]
mov eax, dword [rax + 8]
mov dword [rbp + 0x54], eax
nop
mov rcx, qword [rbp + 0x58]
call fcn.00408430
nop
lea rcx, [rbp + 0x48]
call fcn.0040d970
mov eax, dword [rbp + 0x54]
lea rsp, [rbp + 0x60]
pop rbp
ret