joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400eed10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x140129038]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x1400eed37
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400eed67
test eax, 0x410
sete sil
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.14008ec50
mov eax, esi
add rsp, 0x198
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140071d30
test al, al
jne 0x1400eed79
xor esi, esi
jmp 0x1400eed4b
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x75
mov r9d, 2
call fcn.1400dec80
lea rcx, [rsp + 0x60]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1400c0f40
mov rdi, rax
movzx eax, byte [rsi + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rsi]
cmovns rax, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
cmovs rcx, qword [rsi + 8]
mov qword [rdx + 8], rcx
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.14006aef0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x1400eedff
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
jmp 0x1400eee03
and r8d, 0x7f
mov rcx, rdi
mov rdx, rsi
call fcn.1400c0f40
cmp byte [rsp + 0x4f], 0
jns 0x1400eee1f
mov rcx, qword [rsp + 0x38]
call fcn.14008d7f8
lea rcx, [rsp + 0x50]
call fcn.1400ded00
jmp 0x1400eed75
Function at 0x1400eee30
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x140129038]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x1400eee57
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400eee6e
and eax, 0x410
cmp eax, 0x410
je 0x1400eeeb5
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1400eee7a
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dil, 1
test eax, eax
je 0x1400eeea3
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.14008ec50
mov eax, edi
add rsp, 0x198
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140071d30
test al, al
jne 0x1400eeed6
xor edi, edi
jmp 0x1400eee87
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.14008ec50
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp fcn.1400eef90
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x95
mov r9d, 2
call fcn.1400dec80
lea rcx, [rsp + 0x60]
lea rdx, str.DeleteFile
mov r8d, 0xb
call fcn.1400c0f40
mov rdi, rax
movzx eax, byte [rsi + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rsi]
cmovns rax, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
cmovs rcx, qword [rsi + 8]
mov qword [rdx + 8], rcx
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.14006aef0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x1400eef5c
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
jmp 0x1400eef60
and r8d, 0x7f
mov rcx, rdi
mov rdx, rsi
call fcn.1400c0f40
cmp byte [rsp + 0x4f], 0
jns 0x1400eef7c
mov rcx, qword [rsp + 0x38]
call fcn.14008d7f8
lea rcx, [rsp + 0x50]
call fcn.1400ded00
jmp 0x1400eeeb1
Function at 0x1400eef90
Capabilities:
Delete directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1a0
mov rdi, rcx
mov rax, qword [0x140129038]
xor rax, rsp
mov qword [rsp + 0x198], rax
cmp byte [rcx + 0x17], 0
jns 0x1400eefb8
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test eax, eax
jne 0x1400eefd2
mov ecx, 2
call fcn.140071d30
test al, al
jne 0x1400eeff4
test esi, esi
setne bl
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.14008ec50
mov eax, ebx
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rcx, [rsp + 0x58]
mov r8d, 0x30
mov r9d, 2
call fcn.1400dec80
lea rcx, [rsp + 0x68]
lea rdx, str.RemoveDirectory
mov r8d, 0x10
call fcn.1400c0f40
mov rbx, rax
movzx eax, byte [rdi + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rdi]
cmovns rax, rdi
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
cmovs rcx, qword [rdi + 8]
mov qword [rdx + 8], rcx
lea rdi, [rsp + 0x40]
mov rcx, rdi
call fcn.14006aef0
movzx r8d, byte [rdi + 0x17]
test r8b, r8b
jns 0x1400ef07a
mov r8, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
jmp 0x1400ef07e
and r8d, 0x7f
mov rcx, rbx
mov rdx, rdi
call fcn.1400c0f40
cmp byte [rsp + 0x57], 0
jns 0x1400ef09a
mov rcx, qword [rsp + 0x40]
call fcn.14008d7f8
lea rcx, [rsp + 0x58]
call fcn.1400ded00
jmp 0x1400eefd2
Function at 0x1400f5c90
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov r14, rdx
mov rsi, rcx
mov rax, qword [rcx + 8]
cmp rax, qword [rcx + 0x10]
je 0x1400f5cce
test rax, rax
je 0x1400f5d8b
mov rcx, qword [r14]
mov qword [rax], rcx
add rax, 8
mov qword [rsi + 8], rax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
sub rax, qword [rsi]
mov rbx, rax
sar rbx, 3
lea rcx, [rbx + 1]
mov rdx, rcx
shr rdx, 0x3d
jne 0x1400f5db7
movabs rdx, 0x1fffffffffffffff
lea rdi, [rsi + 0x18]
mov r15, rax
sar r15, 2
cmp r15, rcx
cmovbe r15, rcx
movabs rcx, 0x7ffffffffffffff8
cmp rax, rcx
cmovae r15, rdx
test r15, r15
jne 0x1400f5d7e
xor eax, eax
shl rbx, 3
add rbx, rax
je 0x1400f5d8b
lea r15, [rax + r15*8]
mov rax, qword [r14]
mov qword [rbx], rax
lea r14, [rbx + 8]
mov rdx, qword [rsi]
mov r8, qword [rsi + 8]
sub r8, rdx
sub rbx, r8
mov rcx, rbx
call fcn.1400906d0
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
mov qword [rsi], rbx
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], r15
test rdx, rdx
je 0x1400f5cc2
sub r8, rdx
sar r8, 3
mov rcx, rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.1400f62f0
mov rcx, rdi
mov rdx, r15
call fcn.1400f6870
jmp 0x1400f5d1d
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x23
call fcn.1400c1730
call fcn.1400a6050
int3

Function at 0x1400fa530
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x1400fa56c
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1400fa576
add rdi, rbx
sub rsi, rbx
jne 0x1400fa54a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400a6050
int3

Function at 0x1400fd660
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140129038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
add rsi, rdi
xor r15d, r15d
lea r14, [rsp + 0x2c]
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
cmp rdi, rsi
jae 0x1400fd6e8
mov dword [rsp + 0x2c], 0
mov r8d, esi
sub r8d, edi
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov rdx, rdi
mov r9, r14
call r12
test eax, eax
sete dl
mov ecx, dword [rsp + 0x2c]
test rcx, rcx
sete al
or al, dl
mov edx, 0
jne 0x1400fd6e1
mov rdx, rcx
add rdi, rdx
cmp al, 1
jne 0x1400fd6a2
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14008ec50
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x407a90
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 [0x008a50a8], 0
je 0x407b4b
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rdi, rax
mov rcx, rsi
call fcn.0040eed0
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 [0x008450c0]
call fcn.0040eed0
mov rcx, rsi
mov rdx, qword [0x008450c0]
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.0040eed0
mov rcx, rsi
mov rdx, rbx
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x407b60
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 0x40e130
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x008a50a8], 0
je 0x40e1ce
cmp word [0x008a53b8], 0xd7b2
jne 0x40e163
cmp dword [0x008a53c0], 0
jbe 0x40e163
lea rcx, [0x008a53b0]
call qword [0x008a53d8]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x00846a18]
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, [0x0040e204]
call fcn.0040f4b0
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x40e1f0
cmp byte [0x00845052], 0
jne 0x40e1f0
xor rcx, rcx
lea rdx, [0x00846a18]
lea r8, str.Error
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40e4d0
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 [0x00845058], 0
je 0x40e501
mov rcx, rsi
mov rdx, rdi
call qword [0x00845058]
mov r13, rax
jmp 0x40e517
mov ecx, 0x10
call fcn.00408d40
mov r13, rax
mov qword [r13], rsi
mov qword [r13 + 8], rdi
mov byte [0x008a50a9], 1
mov rcx, qword [rsp + 0x38]
mov edx, ebx
lea r8, [0x0040e460]
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 0x40e55c
mov rcx, r13
call fcn.00408d70
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x412550
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x008a9e70]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x008a9e98], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x008a9e68], al
cmp byte [0x008a9e68], 0
je 0x4125ef
lea rcx, [0x004125f4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0041260e]
call sub.kernel32.dll_GetProcAddress
mov qword [0x008a9e50], rax
lea rcx, [0x004125f4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0041262c]
call sub.kernel32.dll_GetProcAddress
mov qword [0x008a9e58], rax
lea rcx, [0x004125f4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0041264a]
call sub.kernel32.dll_GetProcAddress
mov qword [0x008a9e60], rax
add rsp, 0x28
ret
Function at 0x4139f0
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.0040e870
mov rcx, qword [rbp + 0x90]
call fcn.0040e870
nop
mov rcx, qword [rbp + 0x28]
call fcn.0040e6e0
cmp qword [rbp + 0x90], 0
je 0x413bb6
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
call fcn.0040edb0
xor rax, rax
cmp qword [rbp + 0x90], 0
je 0x413aa1
mov rax, qword [rbp + 0x90]
mov eax, dword [rax - 4]
cmp eax, 1
jl 0x413adb
mov rcx, qword [rbp + 0x90]
movsxd rdx, eax
cmp word [rcx + rdx*2 - 2], 0x2e
jne 0x413ad4
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
mov r8d, 1
mov r9d, eax
call fcn.004100b0
jmp 0x413adb
sub eax, 1
test eax, eax
jne 0x413aa6
nop
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
call fcn.004135c0
cmp qword [rbp + 0x68], 0
je 0x413b19
mov rcx, rbp
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x68]
call fcn.00413770
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
call fcn.0040ed30
jmp 0x413bb5
call sub.kernel32.dll_GetUserDefaultUILanguage
lea rcx, [rbp + 0x48]
mov edx, eax
call fcn.00412d10
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x48]
call fcn.00413770
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x50]
call fcn.0040ed30
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x413b8e
cmp byte [0x008a9e68], 0
jne 0x413b8e
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.00412d10
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x38]
call fcn.00413770
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040ed30
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x413bb5
mov rcx, rbp
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x60]
call fcn.004138b0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
call fcn.0040ed30
nop
lea rcx, [rbp + 0x30]
mov edx, 8
call fcn.0040e7c0
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.0040e7c0
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x414a30
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 0x414a50
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 0x414a74
cmp eax, 1
jae 0x414a79
cmp ecx, 5
jbe 0x414a85
mov dword [0x008a59b0], 0x7f
jmp 0x414a8f
mov dword [0x008a59b0], 0x409
add rsp, 0x28
ret
Function at 0x416320
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.00416310
mov ebx, eax
test ebx, ebx
je 0x41636b
cmp dword [0x00847f70], 0xffffffff
jne 0x416344
mov ecx, 0xe2
call fcn.0040e3e0
mov ecx, ebx
call fcn.004162f0
test rax, rax
jne 0x41635d
mov ecx, 0xe2
call fcn.0040e3e0
jmp 0x41636b
mov ecx, dword [0x00847f70]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

Function at 0x416380
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x008a9f44], 0
je 0x4163bb
mov ecx, dword [0x00847f70]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x4163ce
call fcn.00416320
mov ecx, dword [0x00847f70]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x4163ce
mov rax, qword [0x008a9f78]
jmp 0x4163ce
mov rax, qword gs:[0x58]
mov ecx, dword [0x00847f70]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

Function at 0x433410
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.0040fa70
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4334c2
mov ecx, eax
test ecx, 0x400
je 0x4334b7
test sil, sil
jne 0x43344f
mov al, 1
jmp 0x4334ec
test eax, 0x10
je 0x43345f
xor rax, rax
jmp 0x4334ec
mov rcx, rbx
call fcn.0040fa70
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 0x4334aa
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x4334ec
call sub.kernel32.dll_GetLastError_2
cmp eax, 0x20
sete al
jmp 0x4334ec
test eax, 0x10
sete al
jmp 0x4334ec
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x4334e5
cmp eax, 3
je 0x4334e5
cmp eax, 0x7b
je 0x4334e5
mov rcx, rbp
mov rdx, rbx
call fcn.004333c0
test al, al
jne 0x4334ea
xor rax, rax
jmp 0x4334ec
mov al, 1
lea rsp, [rbp + 0x40]
pop rbx
pop rsi
pop rbp
ret
Function at 0x433500
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.0040fa70
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
mov r13d, eax
cmp r13d, 0xffffffff
je 0x43360c
mov eax, r13d
test eax, 0x400
jne 0x43354a
test r13d, 0x10
setne dil
jmp 0x43363f
test sil, sil
je 0x4335aa
mov rcx, rbx
call fcn.0040fa70
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 0x43363f
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
test r13d, 0x10
setne dil
jmp 0x43363f
test r13d, 0x10
je 0x4335bb
mov dil, 1
jmp 0x43363f
mov rcx, rbx
call fcn.0040fa70
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 0x433607
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
xor rdi, rdi
jmp 0x43363f
mov dil, 1
jmp 0x43363f
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x433637
cmp eax, 3
je 0x433637
cmp eax, 0xa1
je 0x433637
cmp eax, 0x7b
je 0x433637
cmp eax, 0x35
je 0x433637
cmp eax, 0x15
je 0x433637
cmp eax, 0x43
jne 0x43363c
xor rdi, rdi
jmp 0x43363f
mov dil, 1
mov eax, edi
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x43a8d0
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 0x43a8f7
movzx rax, word [rbp + 0x2c]
jmp 0x43a8f9
mov eax, ebx
lea rsp, [rbp + 0x38]
pop rbx
pop rbp
ret
Function at 0x43c400
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.0043c1a0
mov ebx, eax
mov rax, qword [0x008a45e0]
cmp byte [rax], 0
je 0x43c538
mov rcx, qword [0x008a3af0]
call fcn.0040a860
call fcn.00409080
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 [0x0043c3c0]
mov r8d, 1
movsxd r9, esi
call fcn.00411940
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, [0x0043c5d8]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
jmp 0x43c57e
mov rcx, qword [0x008a9f48]
call fcn.00412320
mov rcx, rax
mov rax, qword [0x008a3960]
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 [0x0043c3c0]
call fcn.00411b20
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret

Function at 0x43e500
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.0040edb0
lea rcx, [rbp + 0x48]
call fcn.0040efe0
mov rcx, qword [rbp + 0x48]
call fcn.0040fa70
mov rcx, rax
lea rdx, [rbp + 0x40]
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
je 0x43e5b1
mov ecx, dword [rbp + 0x44]
call fcn.00408d40
mov qword [rbp + 0x58], rax
nop
mov rcx, qword [rbp + 0x48]
call fcn.0040fa70
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 0x43e5a7
mov rcx, qword [rbp + 0x58]
lea rdx, [0x0043e624]
lea r8, [rbp + 0x38]
lea r9, [rbp + 0x34]
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x43e5a7
mov rax, qword [rbp + 0x38]
mov eax, dword [rax + 8]
mov dword [rbp + 0x54], eax
nop
mov rcx, qword [rbp + 0x58]
call fcn.00408d70
nop
lea rcx, [rbp + 0x48]
call fcn.0040e6e0
mov eax, dword [rbp + 0x54]
lea rsp, [rbp + 0x60]
pop rbp
ret
Function at 0x43f310
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.0040eed0
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.00414a10
mov esi, eax
cmp esi, 0x104
jbe 0x43f36d
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.00408d40
mov rdi, rax
jmp 0x43f371
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.00414a10
mov rcx, rdi
call sub.user32.dll_CharUpperW
xor rbx, rbx
xor rax, rax
mov ecx, esi
sub ecx, 1
cmp eax, ecx
jg 0x43f3c4
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 0x43f3a8
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x43f3d6
mov rcx, rdi
call fcn.00408d70
mov eax, ebx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret

Function at 0x43f650
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x60], rcx
mov qword [rbp + 0x40], 0
mov rcx, qword [rbp + 0x60]
lea rdx, [0x0043f6f4]
mov r8d, 0xa
call sub.kernel32.dll_FindResourceW
mov qword [rbp + 0x38], rax
cmp qword [rbp + 0x38], 0
je 0x43f6ba
mov rcx, qword [rbp + 0x60]
mov rdx, qword [rbp + 0x38]
call sub.kernel32.dll_LoadResource
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
je 0x43f6ba
nop
mov rcx, qword [rbp + 0x48]
call sub.kernel32.dll_LockResource
mov qword [rbp + 0x40], rax
nop
mov rcx, qword [rbp + 0x48]
call sub.kernel32.dll_FreeResource
mov rax, qword [rbp + 0x40]
lea rsp, [rbp + 0x50]
pop rbp
ret