joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c300
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.00409260
movzx rax, word [rbp + 0x4e]
cmp word [0x0045fbe0], ax
ja 0x40c3e8
movzx rax, word [rbp + 0x4e]
cmp ax, word [0x0045ffe0]
mov word [rbp + 0x4e], ax
ja 0x40c3e8
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x40c3e7
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
lea rdx, [0x0045fbe0]
mov r9d, eax
add r9, r9
movzx r10, word [rbp + 0x4e]
cmp word [rdx + r9*8], r10w
jbe 0x40c3a1
mov ecx, eax
sub ecx, 1
jmp 0x40c3e2
lea rdx, [0x0045fbe0]
mov r8d, eax
add r8, r8
movzx r9, word [rbp + 0x4e]
cmp word [rdx + r8*8], r9w
jae 0x40c3c3
mov r8d, eax
add r8d, 1
jmp 0x40c3e2
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x40]
lea r8, [0x0045fbe8]
mov eax, eax
add rax, rax
mov r8, qword [r8 + rax*8]
call fcn.0040c1a0
jmp 0x40c3e7
cmp ecx, r8d
jae 0x40c370
nop
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
jne 0x40c4ca
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c4ca
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.0040a750
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.0040a750
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.0040a750
mov rcx, qword [rbp + 0x40]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x0040c524]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x0040c534]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.0040ab40
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.00409340
mov rax, qword [rbp + 0x40]
lea rsp, [rbp + 0x1d0]
pop rbp
ret
Function at 0x40c740
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, [0x00470c80]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x00470ca8], ax
jne 0x40c7ab
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00470caa]
mov r8d, 0x55
call fcn.0040a750
lea rcx, [0x00470c80]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40c8b6
lea rcx, [0x00470c80]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.00409260
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c870
cmp byte [0x00470c78], 0
je 0x40c804
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.0040c5d0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.00409840
jmp 0x40c870
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.0040c300
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.00409840
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x40c870
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x40c84f
mov rcx, qword [rbp + 0x28]
lea rdx, [0x0040c904]
call fcn.0040a930
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.0040c300
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.0040a930
lea rcx, [0x00470c80]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x00470ca8], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.0040a680
lea rcx, [0x00470caa]
mov edx, 0xaa
mov r8, rax
call fcn.0040c0c0
lea rcx, [0x00470c80]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.00409340
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x40d2e0
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.004093f0
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.0040a750
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x38]
call fcn.0040aa20
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.0040d100
test al, al
jne 0x40d3ae
mov word [rbp + 0x4c], 0
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.0040a750
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x30]
call fcn.0040aa20
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.0040d100
test al, al
jne 0x40d3ae
mov rcx, qword [rbp + 0x20]
call fcn.00409260
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.00409340
lea rcx, [rbp + 0x70]
call fcn.00409260
mov rax, qword [rbp + 0x20]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x40d420
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.004093f0
mov rcx, qword [rbp + 0x90]
call fcn.004093f0
nop
mov rcx, qword [rbp + 0x28]
call fcn.00409260
cmp qword [rbp + 0x90], 0
je 0x40d5e6
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
call fcn.004098c0
xor rax, rax
cmp qword [rbp + 0x90], 0
je 0x40d4d1
mov rax, qword [rbp + 0x90]
mov eax, dword [rax - 4]
cmp eax, 1
jl 0x40d50b
mov rcx, qword [rbp + 0x90]
movsxd rdx, eax
cmp word [rcx + rdx*2 - 2], 0x2e
jne 0x40d504
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
mov r8d, 1
mov r9d, eax
call fcn.0040ac30
jmp 0x40d50b
sub eax, 1
test eax, eax
jne 0x40d4d6
nop
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
call fcn.0040cff0
cmp qword [rbp + 0x68], 0
je 0x40d549
mov rcx, rbp
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x68]
call fcn.0040d1a0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
call fcn.00409840
jmp 0x40d5e5
call sub.kernel32.dll_GetUserDefaultUILanguage
lea rcx, [rbp + 0x48]
mov edx, eax
call fcn.0040c740
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x48]
call fcn.0040d1a0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x50]
call fcn.00409840
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x40d5be
cmp byte [0x00470c78], 0
jne 0x40d5be
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.0040c740
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x38]
call fcn.0040d1a0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.00409840
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x40d5e5
mov rcx, rbp
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x60]
call fcn.0040d2e0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
call fcn.00409840
nop
lea rcx, [rbp + 0x30]
mov edx, 8
call fcn.00409340
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.00409340
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x40df80
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 0x40dfa0
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 0x40dfc4
cmp eax, 1
jae 0x40dfc9
cmp ecx, 5
jbe 0x40dfd5
mov dword [0x0046c9a0], 0x7f
jmp 0x40dfdf
mov dword [0x0046c9a0], 0x409
add rsp, 0x28
ret
Function at 0x40e280
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.0040e270
mov ebx, eax
test ebx, ebx
je 0x40e2cb
cmp dword [0x00460414], 0xffffffff
jne 0x40e2a4
mov ecx, 0xe2
call fcn.00409050
mov ecx, ebx
call fcn.0040e250
test rax, rax
jne 0x40e2bd
mov ecx, 0xe2
call fcn.00409050
jmp 0x40e2cb
mov ecx, dword [0x00460414]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

Function at 0x40e2e0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x00470d54], 0
je 0x40e31b
mov ecx, dword [0x00460414]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40e32f
call fcn.0040e280
mov ecx, dword [0x00460414]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40e32f
mov rax, qword [0x00470d88]
jmp 0x40e32f
mov rax, qword gs:[0x58]
movsxd rcx, dword [0x00460414]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

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

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbp, rsp
mov rbx, rcx
mov esi, edx
xor rdi, rdi
mov rcx, rbx
call fcn.0040a680
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
mov r13d, eax
cmp r13d, 0xffffffff
je 0x41c190
mov eax, r13d
test eax, 0x400
jne 0x41c0ce
test r13d, 0x10
setne dil
jmp 0x41c1c3
test sil, sil
je 0x41c12e
mov rcx, rbx
call fcn.0040a680
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 0x41c1c3
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
test r13d, 0x10
setne dil
jmp 0x41c1c3
test r13d, 0x10
je 0x41c13f
mov dil, 1
jmp 0x41c1c3
mov rcx, rbx
call fcn.0040a680
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 0x41c18b
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
xor rdi, rdi
jmp 0x41c1c3
mov dil, 1
jmp 0x41c1c3
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x41c1bb
cmp eax, 3
je 0x41c1bb
cmp eax, 0xa1
je 0x41c1bb
cmp eax, 0x7b
je 0x41c1bb
cmp eax, 0x35
je 0x41c1bb
cmp eax, 0x15
je 0x41c1bb
cmp eax, 0x43
jne 0x41c1c0
xor rdi, rdi
jmp 0x41c1c3
mov dil, 1
mov eax, edi
lea rsp, [rbp + 0x40]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x41ebc0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x30
mov rbp, rsp
movdqa xmmword [rbp + 0x20], xmm6
mov rbx, rdx
movapd xmm6, xmm2
mov rcx, rbx
mov edx, 0xa
xor r8, r8
call fcn.00405d60
movsd xmm0, qword [0x0041ec80]
comisd xmm0, xmm6
jbe 0x41ebf9
mov byte [rbx + 9], 0x80
movapd xmm0, xmm6
call fcn.00405c10
call fcn.00405b20
mov rcx, rax
xor r8, r8
jmp 0x41ec61
mov r9d, 0x64
mov rax, rcx
cqo
idiv r9
mov r9, rdx
movsxd r10, r8d
mov r11d, 0xa
mov eax, r9d
cdq
idiv r11d
mov r11, rdx
mov esi, 0xa
mov eax, r9d
cdq
idiv esi
shl eax, 4
add r11b, al
mov byte [rbx + r10], r11b
mov r9d, 0x64
mov rax, rcx
cqo
idiv r9
mov rcx, rax
add r8d, 1
test rcx, rcx
jle 0x41ec6c
cmp r8d, 9
jl 0x41ec0f
mov rax, rbx
movdqa xmm6, xmmword [rbp + 0x20]
lea rsp, [rbp + 0x30]
pop rbx
pop rsi
pop rbp
ret

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

Function at 0x4241d0
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.00423f70
mov ebx, eax
mov rax, qword [0x0046b5f0]
cmp byte [rax], 0
je 0x424308
mov rcx, qword [0x0046b3b0]
call fcn.00405cd0
call fcn.00405510
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 [0x00424190]
mov r8d, 1
movsxd r9, esi
call fcn.0040bbf0
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, [0x004243a8]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
jmp 0x42434e
mov rcx, qword [0x00470d58]
call fcn.0040bd60
mov rcx, rax
mov rax, qword [0x0046b358]
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 [0x00424190]
call fcn.0040bc30
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret
Function at 0x4262b0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x240
mov rbp, rsp
mov rbx, rcx
mov rcx, rbx
call fcn.00409a30
mov r13d, eax
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call fcn.0040df60
mov esi, eax
cmp esi, 0x104
jbe 0x42630d
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.004051d0
mov rdi, rax
jmp 0x426311
lea rdi, [rbp + 0x38]
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], esi
call fcn.0040df60
mov rax, rdi
mov rcx, rax
call sub.user32.dll_CharUpperW
xor rbx, rbx
xor rax, rax
mov ecx, esi
sub ecx, 1
cmp eax, ecx
jg 0x426367
add ecx, 1
mov edx, ebx
shl edx, 5
shr ebx, 0x1b
or edx, ebx
mov ebx, edx
movsxd rdx, eax
movzx edx, word [rdi + rdx*2]
xor ebx, edx
add eax, 1
cmp eax, ecx
jne 0x42634b
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x426379
mov rcx, rdi
call fcn.00405200
mov eax, ebx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret

Function at 0x428070
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
call sub.kernel32.dll_GetCommandLineW_1
mov rsi, rax
xor rax, rax
movzx rcx, word [rsi]
sub cx, 1
cmp cx, 0xffff
je 0x4280b4
cmp cx, 0x20
jb 0x4280a3
sub cx, 0x21
test cx, cx
jne 0x4280ae
jmp 0x4280a9
test al, al
je 0x4280b4
jmp 0x4280ae
test al, al
sete al
add rsi, 2
jmp 0x428084
nop
jmp 0x4280bb
add rsi, 2
movzx rcx, word [rsi]
lea rdx, [0x004280e4]
call fcn.0041ad90
test al, al
jne 0x4280b7
mov rcx, rbx
mov rdx, rsi
call fcn.0040a720
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret

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

Disassembly:
sub rsp, 0x28
call fcn.0040a680
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42821e
test eax, 0x10
je 0x428223
xor rax, rax
jmp 0x428225
mov al, 1
add rsp, 0x28
ret

Function at 0x4285a0
Capabilities:
Encrypt data using rc6

Disassembly:
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rcx, qword [0x004752c8]
lea rdx, [rsp + 0x20]
mov r8d, 0x40
call fcn.004055a0
mov dword [0x0047520c], 0xb7e15163
mov ebx, 1
lea rax, [0x0047520c]
movsxd rcx, ebx
lea rdx, [0x00475208]
movsxd r8, ebx
mov edx, dword [rdx + r8*4]
add edx, 0x9e3779b9
mov dword [rax + rcx*4], edx
add ebx, 1
cmp ebx, 0x2c
jne 0x4285d3
nop
xor rbx, rbx
xor rsi, rsi
xor r13, r13
xor r14, r14
mov edi, 1
lea rax, [0x0047520c]
movsxd rcx, ebx
mov ecx, dword [rax + rcx*4]
add ecx, r13d
add ecx, r14d
mov edx, 3
call fcn.004283f0
mov r13d, eax
lea rax, [0x0047520c]
movsxd rcx, ebx
mov dword [rax + rcx*4], r13d
movsxd rax, esi
mov ecx, dword [rsp + rax*4 + 0x20]
add ecx, r13d
add ecx, r14d
mov edx, r13d
add edx, r14d
call fcn.004283f0
mov r14d, eax
movsxd rax, esi
mov dword [rsp + rax*4 + 0x20], r14d
mov eax, ebx
add eax, 1
mov ecx, 0x2c
cdq
idiv ecx
mov rbx, rdx
mov eax, esi
add eax, 1
mov ecx, 0x10
cdq
idiv ecx
mov rsi, rdx
add edi, 1
cmp edi, 0x85
jne 0x42860f
nop
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop r13
pop r14
ret
Function at 0x454bb0
Capabilities:
Parse pe header

Disassembly:
push rsi
push rbx
mov rax, rcx
movsxd r10, dword [rax + 0x3c]
lea rcx, [rcx + r10]
cmp word [rax], 0x5a4d
jne 0x454bcc
cmp dword [rcx], 0x4550
je 0x454bd4
mov eax, 1
jmp 0x454c28
lea rax, [rcx + 0x108]
xor r10, r10
xor r11, r11
xor rbx, rbx
movzx esi, word [rcx + 6]
sub esi, 1
cmp ebx, esi
jg 0x454c0f
add esi, 1
cmp dword [rax + 0x14], r10d
jbe 0x454c04
mov r10d, dword [rax + 0x14]
mov r11d, dword [rax + 0x14]
add r11d, dword [rax + 0x10]
add rax, 0x28
add ebx, 1
cmp ebx, esi
jne 0x454bf2
nop
mov dword [rdx], r11d
lea rax, [rcx + 0xa8]
mov ecx, dword [rax]
mov dword [r8], ecx
mov eax, dword [rax + 4]
mov dword [r9], eax
xor rax, rax
pop rbx
pop rsi
ret
Function at 0x454c30
Capabilities:
Get file size
Read file via mapping

Disassembly:
push rbp
push rbx
sub rsp, 0x68
mov rbp, rsp
mov qword [rbp + 0x38], rbp
mov qword [rbp + 0x80], rcx
mov byte [rbp + 0x88], dl
mov qword [rbp + 0x90], r8
mov dword [rbp + 0x98], r9d
cmp byte [rbp + 0x88], 0
je 0x454c7c
mov rcx, qword [rbp + 0x80]
movzx rdx, byte [rbp + 0x88]
call fcn.00406e70
mov qword [rbp + 0x80], rax
nop
cmp qword [rbp + 0x90], 0
jbe 0x454e9a
cmp dword [rbp + 0xa0], 0
jne 0x454ca9
mov rcx, qword [rbp + 0x90]
xor rdx, rdx
call sub.kernel32.dll_GetFileSize
mov dword [rbp + 0xa0], eax
mov rcx, qword [rbp + 0x90]
xor rdx, rdx
mov r8d, 2
xor r9, r9
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
call sub.kernel32.dll_CreateFileMappingW
mov rcx, qword [rbp + 0x80]
mov qword [rcx + 0x28], rax
mov rax, qword [rbp + 0x80]
cmp qword [rax + 0x28], 0
jne 0x454d15
mov rcx, qword [rbp + 0x80]
call fcn.00454350
mov rcx, qword [0x00453628]
mov dl, 1
lea r8, [0x00454f2c]
call fcn.004243d0
mov rcx, rax
call fcn.004084c0
mov rax, qword [rbp + 0x80]
mov rcx, qword [rax + 0x28]
mov edx, 4
xor r8, r8
xor r9, r9
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_MapViewOfFile
mov rcx, qword [rbp + 0x80]
mov qword [rcx + 8], rax
mov rax, qword [rbp + 0x80]
cmp qword [rax + 8], 0
jne 0x454d7c
mov rcx, qword [rbp + 0x80]
call fcn.00454350
mov rcx, qword [0x00453628]
mov dl, 1
lea r8, [0x00454f54]
call fcn.004243d0
mov rcx, rax
call fcn.004084c0
mov rax, qword [rbp + 0x80]
mov rcx, qword [rax + 8]
lea rdx, [rbp + 0x54]
lea r8, [rbp + 0x50]
lea r9, [rbp + 0x4c]
call fcn.00454bb0
test eax, eax
jne 0x454dab
cmp dword [rbp + 0x50], 0
jbe 0x454dab
mov eax, dword [rbp + 0x50]
mov dword [rbp + 0xa0], eax
mov dword [rbp + 0x58], 0xffffffff
mov eax, dword [rbp + 0x98]
mov ecx, dword [rbp + 0xa0]
sub ecx, 5
mov dword [rbp + 0x5c], eax
cmp dword [rbp + 0x5c], ecx
jg 0x454dfa
add ecx, 1
mov rax, qword [rbp + 0x80]
mov rax, qword [rax + 8]
movsxd rdx, dword [rbp + 0x5c]
mov eax, dword [rax + rdx]
add eax, 1
cmp eax, 0x4034b51
jne 0x454df1
mov eax, dword [rbp + 0x5c]
mov dword [rbp + 0x58], eax
jmp 0x454dfa
add dword [rbp + 0x5c], 1
cmp dword [rbp + 0x5c], ecx
jne 0x454dcc
nop
cmp dword [rbp + 0x58], 0
jge 0x454e4a
mov eax, dword [rbp + 0x98]
mov ecx, dword [rbp + 0xa0]
sub ecx, 5
mov dword [rbp + 0x5c], eax
cmp dword [rbp + 0x5c], ecx
jg 0x454e49
add ecx, 1
mov rax, qword [rbp + 0x80]
mov rax, qword [rax + 8]
movsxd rdx, dword [rbp + 0x5c]
mov eax, dword [rax + rdx]
add eax, 1
cmp eax, 0x6054b51
jne 0x454e40
mov eax, dword [rbp + 0x5c]
mov dword [rbp + 0x58], eax
jmp 0x454e49
add dword [rbp + 0x5c], 1
cmp dword [rbp + 0x5c], ecx
jne 0x454e1b
nop
cmp dword [rbp + 0x58], 0
jge 0x454e79
mov rcx, qword [rbp + 0x80]
call fcn.00454350
mov rcx, qword [0x00453628]
mov dl, 1
lea r8, [0x00454f80]
call fcn.004243d0
mov rcx, rax
call fcn.004084c0
mov rcx, qword [rbp + 0x80]
xor rdx, rdx
mov rax, qword [rbp + 0x80]
mov r8, qword [rax + 8]
mov r9d, dword [rbp + 0xa0]
call fcn.004543d0
cmp byte [rbp + 0x88], 0
je 0x454ef5
mov rcx, qword [rbp + 0x80]
call fcn.00406eb0
mov qword [rbp + 0x80], rax
jmp 0x454ef5
mov rax, qword [rbp + 0x80]
lea rsp, [rbp + 0x68]
pop rbx
pop rbp
ret
Function at 0x4564d0
Capabilities:
Get common file path

Disassembly:
push rbp
mov eax, 0xfa0
sub rax, 0x1000
mov byte [rsp + rax], al
cmp rax, 0xffffffffffffbfa0
ja 0x4564d7
sub rsp, 0x4060
mov rbp, rsp
mov qword [rbp + 0x30], rcx
mov dword [rbp + 0x3c], edx
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x58], 0
nop
mov eax, 1
movsxd rcx, eax
mov word [rbp + rcx*2 + 0x5e], 0x20
add eax, 1
cmp eax, 0x2001
jne 0x456521
nop
mov eax, dword [rbp + 0x3c]
sub eax, 1
cmp eax, 0xffffffff
je 0x456553
test eax, eax
je 0x456585
sub eax, 1
test eax, eax
jne 0x4565de
jmp 0x4565c5
mov ecx, 0x2000
lea rdx, [rbp + 0x60]
call sub.kernel32.dll_GetTempPathW
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x60]
mov r8d, 0x2000
call fcn.004094d0
mov rcx, qword [rbp + 0x30]
mov rdx, qword [rbp + 0x58]
call fcn.0041b260
jmp 0x4565de
xor rcx, rcx
mov edx, 0x1c
xor r8, r8
xor r9, r9
lea rax, [rbp + 0x60]
mov qword [rsp + 0x20], rax
call sub.SHFolder.dll_SHGetFolderPathW
lea rcx, [rbp + 0x50]
lea rdx, [rbp + 0x60]
mov r8d, 0x2000
call fcn.004094d0
mov rcx, qword [rbp + 0x30]
mov rdx, qword [rbp + 0x50]
call fcn.0041b260
jmp 0x4565de
lea rcx, [rbp + 0x48]
xor rdx, rdx
call fcn.00405850
mov rcx, qword [rbp + 0x30]
mov rdx, qword [rbp + 0x48]
call fcn.0041c260
lea rcx, [rbp + 0x40]
mov rax, qword [rbp + 0x30]
mov rdx, qword [rax]
call fcn.00425e80
mov rcx, qword [rbp + 0x30]
mov rdx, qword [rbp + 0x40]
call fcn.00409840
nop
lea rcx, [rbp + 0x40]
mov edx, 4
call fcn.00409340
mov rax, qword [rbp + 0x30]
lea rsp, [rbp + 0x4060]
pop rbp
ret