joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001132a
Capabilities:
Terminate process

Disassembly:
jmp 0x140016360
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400113e8
Capabilities:
Hide graphical window

Disassembly:
jmp 0x140016100
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
mov eax, 0x2dd8
call fcn.140011109
sub rsp, rax
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x9ee
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x2df8]
mov rax, qword [0x140023018]
xor rax, rbp
mov qword [rbp + 0x2da8], rax
lea rcx, [0x1400290fb]
call fcn.1400115a0
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov qword [rbp + 8], rax
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.USER32.dll_ShowWindow]
lea rax, [0x14001f4db]
mov qword [rbp + 0x28], rax
mov dword [rbp + 0x2774], 0
movsxd rax, dword [rbp + 0x2774]
mov rcx, qword [rbp + 0x28]
movsx eax, byte [rcx + rax]
test eax, eax
je 0x1400161ba
movsxd rax, dword [rbp + 0x2774]
movsxd rcx, dword [rbp + 0x2774]
mov rdx, qword [rbp + 0x28]
movzx eax, byte [rdx + rax]
mov byte [rbp + rcx + 0x50], al
mov eax, dword [rbp + 0x2774]
inc eax
mov dword [rbp + 0x2774], eax
jmp 0x14001617d
movsxd rax, dword [rbp + 0x2774]
mov qword [rbp + 0x2d98], rax
cmp qword [rbp + 0x2d98], 0x2710
jae 0x1400161d7
jmp 0x1400161dc
call fcn.140011429
mov rax, qword [rbp + 0x2d98]
mov byte [rbp + rax + 0x50], 0
lea rcx, [rbp + 0x50]
call fcn.14001110e
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001f1a0]
call fcn.1400114ba
mov rax, rdi
mov rcx, qword [rbp + 0x2da8]
xor rcx, rbp
call fcn.1400112c1
lea rsp, [rbp + 0x2db8]
pop rdi
pop rbp
ret

Function at 0x1400113fc
Capabilities:
Parse pe header

Disassembly:
jmp 0x140018d60
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140018d80
xor al, al
jmp 0x140018e01
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140018d93
xor al, al
jmp 0x140018e01
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140018dbd
xor al, al
jmp 0x140018e01
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140018dd1
xor al, al
jmp 0x140018e01
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140018de3
xor al, al
jmp 0x140018e01
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140018dff
xor al, al
jmp 0x140018e01
mov al, 1
add rsp, 0x38
ret
Function at 0x1400ee534
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400ee360
Function at 0x4079b0
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 [0x005b70a0], 0
je 0x407a6b
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rdi, rax
mov rcx, rsi
call fcn.0040eb80
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 [0x005910c0]
call fcn.0040eb80
mov rcx, rsi
mov rdx, qword [0x005910c0]
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.0040eb80
mov rcx, rsi
mov rdx, rbx
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x407a80
xor rcx, rcx
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 0x4092c0
Capabilities:
Accept command line arguments

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x38], 0
nop
xor rax, rax
mov dword [rbp + 0x2c], eax
call sub.kernel32.dll_GetCommandLineW
mov rcx, rax
lea rdx, [rbp + 0x38]
call fcn.004091d0
mov rcx, rax
lea rdx, [rbp + 0x38]
call fcn.004091d0
cmp qword [rbp + 0x38], 0
je 0x409306
mov ecx, dword [rbp + 0x2c]
add ecx, 1
mov dword [rbp + 0x2c], ecx
jmp 0x4092e8
nop
nop
lea rcx, [rbp + 0x38]
call fcn.0040e3b0
mov eax, dword [rbp + 0x2c]
lea rsp, [rbp + 0x40]
pop rbp
ret
Function at 0x40bf70
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.0040c5b0
mov esi, eax
test sil, sil
jne 0x40c132
test ebx, ebx
je 0x40c132
xor rdi, rdi
test r13d, r13d
jle 0x40c057
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov dword [rbp + 0x3c], 0
test r13d, r13d
jle 0x40c036
cmp ebx, 0xffffffff
je 0x40bfe3
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x40bfe3
xor rsi, rsi
jmp 0x40c132
mov rax, qword [rbp + 0x28]
cmp dword [rax], 1
jg 0x40c036
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0
jne 0x40c024
xor eax, eax
mov ecx, 1
mov rdx, qword [rbp + 0x28]
lock cmpxchg dword [rdx], ecx
test eax, eax
jne 0x40c024
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp 0x40c132
lea rcx, [rbp + 0x3c]
call fcn.0040bb20
sub r13d, 1
test r13d, r13d
jg 0x40bfca
nop
cmp ebx, 0xffffffff
je 0x40c057
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jb 0x40c052
xor rsi, rsi
jmp 0x40c132
sub eax, r14d
sub ebx, eax
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x40bf8d
mov edx, ecx
add edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40c057
nop
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov rcx, qword [rbp + 0x28]
call fcn.0040c1e0
xor rcx, rcx
mov rdx, rax
mov r8d, ebx
mov rax, qword [0x005b7998]
call qword [rax + 0x20]
test eax, eax
sete sil
cmp ebx, 0xffffffff
je 0x40c0c1
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jae 0x40c0be
sub eax, r14d
sub ebx, eax
jmp 0x40c0c1
xor rbx, rbx
test sil, sil
je 0x40c0f3
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov eax, ecx
test eax, 1
jne 0x40c0f0
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 0x40c0c6
mov dil, 1
nop
jmp 0x40c110
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 0x40c0f3
mov dil, 1
test dil, dil
je 0x40c07a
nop
test sil, sil
je 0x40c132
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 0x40de00
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x005b70a0], 0
je 0x40de9e
cmp word [0x005b73b0], 0xd7b2
jne 0x40de33
cmp dword [0x005b73b8], 0
jbe 0x40de33
lea rcx, [0x005b73a8]
call qword [0x005b73d0]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x00592958]
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, [0x0040ded4]
call fcn.0040f390
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x40dec0
cmp byte [0x00591052], 0
jne 0x40dec0
xor rcx, rcx
lea rdx, [0x00592958]
lea r8, str.Error
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40e1a0
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 [0x00591058], 0
je 0x40e1d1
mov rcx, rsi
mov rdx, rdi
call qword [0x00591058]
mov r13, rax
jmp 0x40e1e7
mov ecx, 0x10
call fcn.00408c40
mov r13, rax
mov qword [r13], rsi
mov qword [r13 + 8], rdi
mov byte [0x005b70a1], 1
mov rcx, qword [rsp + 0x38]
mov edx, ebx
lea r8, [0x0040e130]
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 0x40e22c
mov rcx, r13
call fcn.00408c70
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x411ed0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x005bbe68]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x005bbe90], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x005bbe60], al
cmp byte [0x005bbe60], 0
je 0x411f6f
lea rcx, [0x00411f74]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x00411f8e]
call sub.kernel32.dll_GetProcAddress
mov qword [0x005bbe48], rax
lea rcx, [0x00411f74]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x00411fac]
call sub.kernel32.dll_GetProcAddress
mov qword [0x005bbe50], rax
lea rcx, [0x00411f74]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x00411fca]
call sub.kernel32.dll_GetProcAddress
mov qword [0x005bbe58], rax
add rsp, 0x28
ret
Function at 0x412250
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.0040e3b0
movzx rax, word [rbp + 0x4e]
cmp word [0x00593040], ax
ja 0x412338
movzx rax, word [rbp + 0x4e]
cmp ax, word [0x00593440]
mov word [rbp + 0x4e], ax
ja 0x412338
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x412337
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
lea rdx, [0x00593040]
mov r9d, eax
add r9, r9
movzx r10, word [rbp + 0x4e]
cmp word [rdx + r9*8], r10w
jbe 0x4122f1
mov ecx, eax
sub ecx, 1
jmp 0x412332
lea rdx, [0x00593040]
mov r8d, eax
add r8, r8
movzx r9, word [rbp + 0x4e]
cmp word [rdx + r8*8], r9w
jae 0x412313
mov r8d, eax
add r8d, 1
jmp 0x412332
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x40]
lea r8, [0x00593048]
mov eax, eax
add rax, rax
mov r8, qword [r8 + rax*8]
call fcn.004120e0
jmp 0x412337
cmp ecx, r8d
jae 0x4122c0
nop
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
jne 0x41241a
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x41241a
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.0040faa0
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.0040faa0
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.0040faa0
mov rcx, qword [rbp + 0x40]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x00412474]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x00412484]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.0040ff20
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.0040e490
mov rax, qword [rbp + 0x40]
lea rsp, [rbp + 0x1d0]
pop rbp
ret
Function at 0x412690
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, [0x005bbe68]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x005bbe90], ax
jne 0x4126fb
mov rcx, qword [rbp + 0x28]
lea rdx, [0x005bbe92]
mov r8d, 0x55
call fcn.0040faa0
lea rcx, [0x005bbe68]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x412806
lea rcx, [0x005bbe68]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.0040e3b0
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4127c0
cmp byte [0x005bbe60], 0
je 0x412754
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.00412520
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.0040e9e0
jmp 0x4127c0
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.00412250
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040e9e0
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x4127c0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x41279f
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00412854]
call fcn.0040fd10
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.00412250
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.0040fd10
lea rcx, [0x005bbe68]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x005bbe90], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.0040f9d0
lea rcx, [0x005bbe92]
mov edx, 0xaa
mov r8, rax
call fcn.00412000
lea rcx, [0x005bbe68]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.0040e490
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x413230
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.0040e540
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.0040faa0
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x38]
call fcn.0040fe00
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.00413050
test al, al
jne 0x4132fe
mov word [rbp + 0x4c], 0
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.0040faa0
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x30]
call fcn.0040fe00
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.00413050
test al, al
jne 0x4132fe
mov rcx, qword [rbp + 0x20]
call fcn.0040e3b0
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040e490
lea rcx, [rbp + 0x70]
call fcn.0040e3b0
mov rax, qword [rbp + 0x20]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x413370
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.0040e540
mov rcx, qword [rbp + 0x90]
call fcn.0040e540
nop
mov rcx, qword [rbp + 0x28]
call fcn.0040e3b0
cmp qword [rbp + 0x90], 0
je 0x413536
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
call fcn.0040ea60
xor rax, rax
cmp qword [rbp + 0x90], 0
je 0x413421
mov rax, qword [rbp + 0x90]
mov eax, dword [rax - 4]
cmp eax, 1
jl 0x41345b
mov rcx, qword [rbp + 0x90]
movsxd rdx, eax
cmp word [rcx + rdx*2 - 2], 0x2e
jne 0x413454
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
mov r8d, 1
mov r9d, eax
call fcn.00410010
jmp 0x41345b
sub eax, 1
test eax, eax
jne 0x413426
nop
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
call fcn.00412f40
cmp qword [rbp + 0x68], 0
je 0x413499
mov rcx, rbp
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x68]
call fcn.004130f0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
call fcn.0040e9e0
jmp 0x413535
call sub.kernel32.dll_GetUserDefaultUILanguage
lea rcx, [rbp + 0x48]
mov edx, eax
call fcn.00412690
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x48]
call fcn.004130f0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x50]
call fcn.0040e9e0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x41350e
cmp byte [0x005bbe60], 0
jne 0x41350e
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.00412690
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x38]
call fcn.004130f0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040e9e0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x413535
mov rcx, rbp
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x60]
call fcn.00413230
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
call fcn.0040e9e0
nop
lea rcx, [rbp + 0x30]
mov edx, 8
call fcn.0040e490
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.0040e490
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x414180
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 0x4141a0
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 0x4141c4
cmp eax, 1
jae 0x4141c9
cmp ecx, 5
jbe 0x4141d5
mov dword [0x005b79a8], 0x7f
jmp 0x4141df
mov dword [0x005b79a8], 0x409
add rsp, 0x28
ret
Function at 0x415a70
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.00415a60
mov ebx, eax
test ebx, ebx
je 0x415abb
cmp dword [0x00593e00], 0xffffffff
jne 0x415a94
mov ecx, 0xe2
call fcn.0040e0b0
mov ecx, ebx
call fcn.00415a40
test rax, rax
jne 0x415aad
mov ecx, 0xe2
call fcn.0040e0b0
jmp 0x415abb
mov ecx, dword [0x00593e00]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

Function at 0x415ad0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x005bbf3c], 0
je 0x415b0b
mov ecx, dword [0x00593e00]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x415b1e
call fcn.00415a70
mov ecx, dword [0x00593e00]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x415b1e
mov rax, qword [0x005bbf70]
jmp 0x415b1e
mov rax, qword gs:[0x58]
mov ecx, dword [0x00593e00]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

Function at 0x42d3c0
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.0040f9d0
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42d472
mov ecx, eax
test ecx, 0x400
je 0x42d467
test sil, sil
jne 0x42d3ff
mov al, 1
jmp 0x42d49c
test eax, 0x10
je 0x42d40f
xor rax, rax
jmp 0x42d49c
mov rcx, rbx
call fcn.0040f9d0
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 0x42d45a
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x42d49c
call sub.kernel32.dll_GetLastError_2
cmp eax, 0x20
sete al
jmp 0x42d49c
test eax, 0x10
sete al
jmp 0x42d49c
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x42d495
cmp eax, 3
je 0x42d495
cmp eax, 0x7b
je 0x42d495
mov rcx, rbp
mov rdx, rbx
call fcn.0042d370
test al, al
jne 0x42d49a
xor rax, rax
jmp 0x42d49c
mov al, 1
lea rsp, [rbp + 0x40]
pop rbx
pop rsi
pop rbp
ret
Function at 0x42d4b0
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.0040f9d0
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
mov r13d, eax
cmp r13d, 0xffffffff
je 0x42d5bc
mov eax, r13d
test eax, 0x400
jne 0x42d4fa
test r13d, 0x10
setne dil
jmp 0x42d5ef
test sil, sil
je 0x42d55a
mov rcx, rbx
call fcn.0040f9d0
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 0x42d5ef
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
test r13d, 0x10
setne dil
jmp 0x42d5ef
test r13d, 0x10
je 0x42d56b
mov dil, 1
jmp 0x42d5ef
mov rcx, rbx
call fcn.0040f9d0
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 0x42d5b7
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
xor rdi, rdi
jmp 0x42d5ef
mov dil, 1
jmp 0x42d5ef
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x42d5e7
cmp eax, 3
je 0x42d5e7
cmp eax, 0xa1
je 0x42d5e7
cmp eax, 0x7b
je 0x42d5e7
cmp eax, 0x35
je 0x42d5e7
cmp eax, 0x15
je 0x42d5e7
cmp eax, 0x43
jne 0x42d5ec
xor rdi, rdi
jmp 0x42d5ef
mov dil, 1
mov eax, edi
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x42d8e0
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.0040f9d0
mov rcx, rax
call sub.kernel32.dll_DeleteFileW
test eax, eax
setne sil
test sil, sil
jne 0x42d952
call sub.kernel32.dll_GetLastError_2
mov edi, eax
mov rcx, rbx
call fcn.0040f9d0
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42d94b
mov ecx, eax
test ecx, 0x400
je 0x42d94b
test eax, 0x10
je 0x42d94b
mov rcx, rbx
call fcn.0040f9d0
mov rcx, rax
call sub.kernel32.dll_RemoveDirectoryW
test eax, eax
setne sil
jmp 0x42d952
mov ecx, edi
call sub.kernel32.dll_SetLastError
mov eax, esi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x42dd10
Capabilities:
Create directory

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

Function at 0x434760
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 0x434787
movzx rax, word [rbp + 0x2c]
jmp 0x434789
mov eax, ebx
lea rsp, [rbp + 0x38]
pop rbx
pop rbp
ret