joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401d7190
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
mov r11, qword [rcx]
mov rsi, rdx
mov r10, qword [rcx + 8]
mov rbx, rcx
mov r9, qword [rcx + 0x10]
mov rdi, qword [rcx + 0x18]
mov rax, qword [rcx + 0x20]
shl r11, 0x38
cmp dword [rcx + 0x30], 0
je 0x1401d740e
test r8, r8
je 0x1401d740e
mov r14d, dword [rcx + 0x2c]
cmp r8, r14
jne 0x1401d740e
mov ecx, dword [rcx + 0x28]
dec ecx
cmp ecx, 6
ja case.default.0x1401d71fd
lea r8, [0x140000000]
mov edx, dword [r8 + rcx*4 + 0x1d7428]
add rdx, r8
jmp rdx
movzx ecx, byte [rbx + 0x3e]
shl rcx, 0x30
or r11, rcx
movzx ecx, byte [rbx + 0x3d]
shl rcx, 0x28
or r11, rcx
movzx ecx, byte [rbx + 0x3c]
shl rcx, 0x20
or r11, rcx
movzx ecx, byte [rbx + 0x3b]
shl rcx, 0x18
or r11, rcx
movzx ecx, byte [rbx + 0x3a]
shl rcx, 0x10
or r11, rcx
movzx ecx, byte [rbx + 0x39]
shl rcx, 8
or r11, rcx
movzx ecx, byte [rbx + 0x38]
or r11, rcx
xor rax, r11
cmp dword [rbx + 0x30], 0
jbe 0x1401d72a6
mov r8d, dword [rbx + 0x30]
nop word [rax + rax]
add rdi, rax
add r10, r9
ror r9, 0x33
xor r9, r10
ror rax, 0x30
xor rax, rdi
ror r10, 0x20
add rdi, r9
add r10, rax
mov rdx, rdi
ror r9, 0x2f
mov rcx, rdi
shr rdx, 0x20
xor r9, rdi
ror rax, 0x2b
shl rcx, 0x20
mov rdi, rdx
or rdi, rcx
xor rax, r10
sub r8, 1
jne 0x1401d7260
xor r10, r11
mov ecx, 0xff
cmp r14d, 0x10
mov r8d, 0xee
cmovne r8d, ecx
mov ecx, dword [rbx + 0x34]
xor r8, rdi
test ecx, ecx
je 0x1401d7316
mov r11d, ecx
nop dword [rax]
add r8, rax
add r10, r9
ror r9, 0x33
xor r9, r10
ror rax, 0x30
xor rax, r8
ror r10, 0x20
add r8, r9
add r10, rax
mov rdx, r8
ror r9, 0x2f
mov rcx, r8
shr rdx, 0x20
xor r9, r8
ror rax, 0x2b
shl rcx, 0x20
mov r8, rdx
or r8, rcx
xor rax, r10
sub r11, 1
jne 0x1401d72d0
mov rdx, rax
xor rdx, r8
xor rdx, r9
xor rdx, r10
mov ecx, edx
mov byte [rsi], dl
shr ecx, 8
mov byte [rsi + 1], cl
mov ecx, edx
shr ecx, 0x10
mov byte [rsi + 2], cl
mov ecx, edx
shr ecx, 0x18
shr rdx, 0x20
mov byte [rsi + 3], cl
mov ecx, edx
shr ecx, 8
mov byte [rsi + 5], cl
mov ecx, edx
mov byte [rsi + 4], dl
shr ecx, 0x10
shr edx, 0x18
mov byte [rsi + 6], cl
mov byte [rsi + 7], dl
cmp dword [rbx + 0x2c], 8
je 0x1401d7407
mov ecx, dword [rbx + 0x34]
xor r9, 0xdd
test ecx, ecx
je 0x1401d73c6
mov r11d, ecx
nop dword [rax]
nop dword [rax + rax]
add r8, rax
add r10, r9
ror r9, 0x33
xor r9, r10
ror rax, 0x30
xor rax, r8
ror r10, 0x20
add r8, r9
add r10, rax
mov rdx, r8
ror r9, 0x2f
mov rcx, r8
shr rdx, 0x20
xor r9, r8
ror rax, 0x2b
shl rcx, 0x20
mov r8, rdx
or r8, rcx
xor rax, r10
sub r11, 1
jne 0x1401d7380
xor rax, r8
xor rax, r9
xor rax, r10
mov ecx, eax
mov byte [rsi + 8], al
shr ecx, 8
mov byte [rsi + 9], cl
mov ecx, eax
shr ecx, 0x10
mov byte [rsi + 0xa], cl
mov ecx, eax
shr ecx, 0x18
shr rax, 0x20
mov byte [rsi + 0xb], cl
mov ecx, eax
shr ecx, 8
mov byte [rsi + 0xd], cl
mov ecx, eax
shr ecx, 0x10
mov byte [rsi + 0xc], al
shr eax, 0x18
mov byte [rsi + 0xf], al
mov byte [rsi + 0xe], cl
mov eax, 1
jmp 0x1401d7410
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov r14, qword [rsp + 0x20]
ret
Function at 0x1401e56e0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
mov eax, 0x68
call fcn.1401e62f0
sub rsp, rax
mov rax, qword [0x140340320]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [rcx + 0x3c]
mov rdi, r9
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test eax, eax
je 0x1401e5813
movups xmm0, xmmword [rcx + 0x10]
mov r15, qword [rcx + 0x20]
lea rbx, [rcx + 0x10]
dec eax
mov dword [rsp + 0x28], 1
mov dword [rcx + 0x3c], eax
xor r9d, r9d
mov eax, dword [rbx + 8]
xor r8d, r8d
and al, 0x7f
mov dword [rsp + 0x30], edi
movups xmmword [rsp + 0x48], xmm0
and byte [rsp + 0x54], 0x7f
xor edx, edx
mov byte [rsp + 0x50], al
mov rcx, r15
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call fcn.14007cee0
test eax, eax
je 0x1401e5813
mov eax, dword [rsp + 0x30]
lea r8, [rsp + 0x30]
mov r9, r14
mov dword [rsp + 0x20], eax
mov rdx, rbp
mov rcx, r15
call fcn.14007db80
test eax, eax
je 0x1401e5813
mov r9, rdi
lea rdx, [rsp + 0x38]
mov r8, rbp
mov rcx, rsi
call fcn.1401e5e10
test eax, eax
je 0x1401e5813
lea rax, [rbx + 0xf]
xor r8d, r8d
lea rcx, [rsp + 0x38]
cmp rcx, rax
ja 0x1401e57e9
lea rax, [rsp + 0x47]
cmp rax, rbx
jb 0x1401e57e9
lea rcx, [rsp + 0x38]
mov eax, r8d
sub rbx, rcx
nop
lea rdx, [rsp + 0x38]
add rdx, rax
inc rax
movzx ecx, byte [rbx + rdx]
xor byte [rdx], cl
cmp rax, 0x10
jl 0x1401e57d0
jmp 0x1401e57fc
movdqu xmm1, xmmword [rsp + 0x38]
movdqu xmm0, xmmword [rbx]
xorps xmm1, xmm0
movdqu xmmword [rsp + 0x38], xmm1
mov rax, qword [rsp + 0x38]
or rax, qword [rsp + 0x40]
je 0x1401e582f
mov rdx, rdi
mov rcx, rbp
call fcn.1400358e0
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401e6380
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov dword [rsi + 0x38], r8d
mov eax, edi
jmp 0x1401e5815

Function at 0x1401e7980
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov ebx, ecx
mov dword [rsp + 0x60], 0
xor ecx, ecx
mov dword [rsp + 0x68], 2
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401e79e2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401e79e2
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
jne 0x1401e79e2
mov eax, 0x20b
cmp word [rdx + 0x18], ax
jne 0x1401e79e2
cmp dword [rdx + 0x84], 0xe
jbe 0x1401e79e2
cmp dword [rdx + 0xf8], 0
je 0x1401e79e2
mov ecx, ebx
call fcn.1401e7840
lea rax, [rsp + 0x68]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [0x140342b30]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.1401e76b0
cmp dword [rsp + 0x60], 0
jne 0x1401e7a25
mov ecx, ebx
call fcn.1401e77f0
int3
add rsp, 0x40
pop rbx
ret
Function at 0x1401e7a70
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
xor eax, eax
mov ebx, ecx
xor ecx, ecx
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x68], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401e7acc
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401e7acc
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401e7acc
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401e7acc
cmp dword [rcx + 0x84], 0xe
jbe 0x1401e7acc
cmp dword [rcx + 0xf8], 0
je 0x1401e7acc
mov ecx, ebx
call fcn.1401e7840
lea rax, [rsp + 0x68]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [0x140342b30]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.1401e76b0
cmp dword [rsp + 0x60], 0
jne 0x1401e7b0f
mov ecx, ebx
call fcn.1401e77f0
int3
add rsp, 0x40
pop rbx
ret

Function at 0x1401ec250
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x4f0]
sub rsp, 0x5f0
mov rax, qword [0x140340320]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1401ec28c
mov ecx, 5
int 0x29
mov ecx, 2
call fcn.1401e6ed0
xorps xmm0, xmm0
lea rcx, [rbp + 0x10]
xor eax, eax
xor edx, edx
mov r8d, 0x4d0
mov qword [rbp], rax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rcx, [rbp + 0x10]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rbp + 0x108]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x1401ec348
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], 0
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov rax, qword [rbp + 0x4f8]
mov qword [rbp + 0x108], rax
lea rax, [rbp + 0x4f8]
add rax, 8
mov dword [rsp + 0x70], 0xc0000417
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x4f8]
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x74], 1
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x1401ec3b0
test ebx, ebx
jne 0x1401ec3b0
mov ecx, 2
call fcn.1401e6ed0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp + 0x4e0]
xor rcx, rsp
call fcn.1401e6380
mov rbx, qword [rsp + 0x600]
add rsp, 0x5f0
pop rbp
ret
Function at 0x1401f2410
Capabilities:
Get disk information

Disassembly:
push rbp
sub rsp, 0x250
mov rax, qword [0x140340320]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x14031bbc0]
mov rbp, rcx
call sub.msvcrt.dll_wcspbrk
test rax, rax
je 0x1401f256b
mov qword [rsp + 0x268], rbx
xor ebx, ebx
mov qword [rsp + 0x270], rsi
mov qword [rsp + 0x278], rdi
call sub.msvcrt.dll__errno
mov esi, dword [rax]
call sub.msvcrt.dll__errno
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], ebx
call sub.msvcrt.dll__wfullpath
mov rdi, rax
test rax, rax
je 0x1401f248f
call sub.msvcrt.dll__errno
mov dword [rax], esi
jmp 0x1401f24c0
call sub.msvcrt.dll__errno
cmp dword [rax], 0x22
jne 0x1401f2549
call sub.msvcrt.dll__errno
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], esi
call sub.msvcrt.dll__wfullpath
mov rbx, rax
mov rdi, rax
test rax, rax
je 0x1401f2549
mov rax, 0xffffffffffffffff
mov rcx, rax
nop word [rax + rax]
inc rcx
cmp word [rdi + rcx*2], 0
jne 0x1401f24d0
cmp rcx, 3
je 0x1401f25bf
inc rax
cmp word [rdi + rax*2], 0
jne 0x1401f24e4
cmp rax, 5
jb 0x1401f2549
movzx eax, word [rdi]
cmp ax, 0x5c
je 0x1401f2503
cmp ax, 0x2f
jne 0x1401f2549
movzx eax, word [rdi + 2]
cmp ax, 0x5c
je 0x1401f2513
cmp ax, 0x2f
jne 0x1401f2549
movzx eax, word [rdi + 4]
cmp ax, 0x5c
je 0x1401f2549
cmp ax, 0x2f
je 0x1401f2549
movzx eax, word [rdi + 6]
lea rcx, [rdi + 6]
test ax, ax
je 0x1401f2549
cmp ax, 0x5c
je 0x1401f2584
cmp ax, 0x2f
je 0x1401f2584
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x1401f2530
mov rcx, rbx
call fcn.1401e76a4
xor al, al
mov rsi, qword [rsp + 0x270]
mov rbx, qword [rsp + 0x268]
mov rdi, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1401e6380
add rsp, 0x250
pop rbp
ret
cmp word [rcx], 0
je 0x1401f2549
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
je 0x1401f2549
cmp ax, 0x5c
je 0x1401f25b2
cmp ax, 0x2f
je 0x1401f25b2
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x1401f2597
jmp 0x1401f25bf
cmp word [rcx], 0
je 0x1401f25bf
cmp word [rcx + 2], 0
jne 0x1401f2549
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov rcx, rbx
cmp eax, 1
jbe 0x1401f254c
call fcn.1401e76a4
mov al, 1
jmp 0x1401f2553
Function at 0x407b20
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 [0x0089d0a8], 0
je 0x407bdb
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rdi, rax
mov rcx, rsi
call fcn.0040fd80
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 [0x0083e0c8]
call fcn.0040fd80
mov rcx, rsi
mov rdx, qword [0x0083e0c8]
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.0040fd80
mov rcx, rsi
mov rdx, rbx
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x407bf0
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 0x40efd0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x0089d0a8], 0
je 0x40f06e
cmp word [0x0089d3b8], 0xd7b2
jne 0x40f003
cmp dword [0x0089d3c0], 0
jbe 0x40f003
lea rcx, [0x0089d3b0]
call qword [0x0089d3d8]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x0083fba8]
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, [0x0040f0a4]
call fcn.00410370
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x40f090
cmp byte [0x0083e052], 0
jne 0x40f090
xor rcx, rcx
lea rdx, [0x0083fba8]
lea r8, str.Error
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40f370
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 [0x0083e058], 0
je 0x40f3a1
mov rcx, rsi
mov rdx, rdi
call qword [0x0083e058]
mov r13, rax
jmp 0x40f3b7
mov ecx, 0x10
call fcn.00408dd0
mov r13, rax
mov qword [r13], rsi
mov qword [r13 + 8], rdi
mov byte [0x0089d0a9], 1
mov rcx, qword [rsp + 0x38]
mov edx, ebx
lea r8, [0x0040f300]
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 0x40f3fc
mov rcx, r13
call fcn.00408e00
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x413440
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x008a1e70]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x008a1e98], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x008a1e68], al
cmp byte [0x008a1e68], 0
je 0x4134df
lea rcx, [0x004134e4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x004134fe]
call sub.kernel32.dll_GetProcAddress
mov qword [0x008a1e50], rax
lea rcx, [0x004134e4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0041351c]
call sub.kernel32.dll_GetProcAddress
mov qword [0x008a1e58], rax
lea rcx, [0x004134e4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0041353a]
call sub.kernel32.dll_GetProcAddress
mov qword [0x008a1e60], rax
add rsp, 0x28
ret
Function at 0x4148e0
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.0040f710
mov rcx, qword [rbp + 0x90]
call fcn.0040f710
nop
mov rcx, qword [rbp + 0x28]
call fcn.0040f580
cmp qword [rbp + 0x90], 0
je 0x414aa6
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
call fcn.0040fc50
xor rax, rax
cmp qword [rbp + 0x90], 0
je 0x414991
mov rax, qword [rbp + 0x90]
mov eax, dword [rax - 4]
cmp eax, 1
jl 0x4149cb
mov rcx, qword [rbp + 0x90]
movsxd rdx, eax
cmp word [rcx + rdx*2 - 2], 0x2e
jne 0x4149c4
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
mov r8d, 1
mov r9d, eax
call fcn.00410fa0
jmp 0x4149cb
sub eax, 1
test eax, eax
jne 0x414996
nop
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
call fcn.004144b0
cmp qword [rbp + 0x68], 0
je 0x414a09
mov rcx, rbp
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x68]
call fcn.00414660
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
call fcn.0040fbd0
jmp 0x414aa5
call sub.kernel32.dll_GetUserDefaultUILanguage
lea rcx, [rbp + 0x48]
mov edx, eax
call fcn.00413c00
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x48]
call fcn.00414660
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x50]
call fcn.0040fbd0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x414a7e
cmp byte [0x008a1e68], 0
jne 0x414a7e
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.00413c00
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x38]
call fcn.00414660
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040fbd0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x414aa5
mov rcx, rbp
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x60]
call fcn.004147a0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
call fcn.0040fbd0
nop
lea rcx, [rbp + 0x30]
mov edx, 8
call fcn.0040f660
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.0040f660
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x415920
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 0x415940
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 0x415964
cmp eax, 1
jae 0x415969
cmp ecx, 5
jbe 0x415975
mov dword [0x0089d9b0], 0x7f
jmp 0x41597f
mov dword [0x0089d9b0], 0x409
add rsp, 0x28
ret
Function at 0x417210
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.00417200
mov ebx, eax
test ebx, ebx
je 0x41725b
cmp dword [0x00841118], 0xffffffff
jne 0x417234
mov ecx, 0xe2
call fcn.0040f280
mov ecx, ebx
call fcn.004171e0
test rax, rax
jne 0x41724d
mov ecx, 0xe2
call fcn.0040f280
jmp 0x41725b
mov ecx, dword [0x00841118]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

Function at 0x417270
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x008a1f44], 0
je 0x4172ab
mov ecx, dword [0x00841118]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x4172be
call fcn.00417210
mov ecx, dword [0x00841118]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x4172be
mov rax, qword [0x008a1f78]
jmp 0x4172be
mov rax, qword gs:[0x58]
mov ecx, dword [0x00841118]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

Function at 0x434300
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.00410930
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4343b2
mov ecx, eax
test ecx, 0x400
je 0x4343a7
test sil, sil
jne 0x43433f
mov al, 1
jmp 0x4343dc
test eax, 0x10
je 0x43434f
xor rax, rax
jmp 0x4343dc
mov rcx, rbx
call fcn.00410930
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 0x43439a
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x4343dc
call sub.kernel32.dll_GetLastError_2
cmp eax, 0x20
sete al
jmp 0x4343dc
test eax, 0x10
sete al
jmp 0x4343dc
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x4343d5
cmp eax, 3
je 0x4343d5
cmp eax, 0x7b
je 0x4343d5
mov rcx, rbp
mov rdx, rbx
call fcn.004342b0
test al, al
jne 0x4343da
xor rax, rax
jmp 0x4343dc
mov al, 1
lea rsp, [rbp + 0x40]
pop rbx
pop rsi
pop rbp
ret
Function at 0x4343f0
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.00410930
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
mov r13d, eax
cmp r13d, 0xffffffff
je 0x4344fc
mov eax, r13d
test eax, 0x400
jne 0x43443a
test r13d, 0x10
setne dil
jmp 0x43452f
test sil, sil
je 0x43449a
mov rcx, rbx
call fcn.00410930
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 0x43452f
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
test r13d, 0x10
setne dil
jmp 0x43452f
test r13d, 0x10
je 0x4344ab
mov dil, 1
jmp 0x43452f
mov rcx, rbx
call fcn.00410930
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 0x4344f7
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
xor rdi, rdi
jmp 0x43452f
mov dil, 1
jmp 0x43452f
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x434527
cmp eax, 3
je 0x434527
cmp eax, 0xa1
je 0x434527
cmp eax, 0x7b
je 0x434527
cmp eax, 0x35
je 0x434527
cmp eax, 0x15
je 0x434527
cmp eax, 0x43
jne 0x43452c
xor rdi, rdi
jmp 0x43452f
mov dil, 1
mov eax, edi
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x43b7c0
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 0x43b7e7
movzx rax, word [rbp + 0x2c]
jmp 0x43b7e9
mov eax, ebx
lea rsp, [rbp + 0x38]
pop rbx
pop rbp
ret
Function at 0x43d2f0
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.0043d090
mov ebx, eax
mov rax, qword [0x0089c7e0]
cmp byte [rax], 0
je 0x43d428
mov rcx, qword [0x0089bda8]
call fcn.0040ade0
call fcn.00409110
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 [0x0043d2b0]
mov r8d, 1
movsxd r9, esi
call fcn.00412830
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, [0x0043d4c8]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
jmp 0x43d46e
mov rcx, qword [0x008a1f48]
call fcn.00413210
mov rcx, rax
mov rax, qword [0x0089bc30]
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 [0x0043d2b0]
call fcn.00412a10
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret

Function at 0x43f3f0
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.0040fc50
lea rcx, [rbp + 0x48]
call fcn.0040fea0
mov rcx, qword [rbp + 0x48]
call fcn.00410930
mov rcx, rax
lea rdx, [rbp + 0x40]
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
je 0x43f4a1
mov ecx, dword [rbp + 0x44]
call fcn.00408dd0
mov qword [rbp + 0x58], rax
nop
mov rcx, qword [rbp + 0x48]
call fcn.00410930
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 0x43f497
mov rcx, qword [rbp + 0x58]
lea rdx, [0x0043f514]
lea r8, [rbp + 0x38]
lea r9, [rbp + 0x34]
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x43f497
mov rax, qword [rbp + 0x38]
mov eax, dword [rax + 8]
mov dword [rbp + 0x54], eax
nop
mov rcx, qword [rbp + 0x58]
call fcn.00408e00
nop
lea rcx, [rbp + 0x48]
call fcn.0040f580
mov eax, dword [rbp + 0x54]
lea rsp, [rbp + 0x60]
pop rbp
ret