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

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x48], rbp
mov qword [rbp + 0x80], rcx
mov qword [rbp + 0x88], rdx
mov byte [rbp + 0x67], 0
mov ecx, 6
xor rdx, rdx
call fcn.0048b020
test al, al
je 0x47c2d7
mov rcx, qword [rbp + 0x80]
xor rdx, rdx
call fcn.0047e810
test al, al
je 0x47c2d7
mov rcx, qword [rbp + 0x80]
call fcn.0047e3e0
test al, 0x20
je 0x47c2d7
mov rcx, qword [rbp + 0x80]
call fcn.00411e10
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
mov dword [rbp + 0x5c], eax
cmp dword [rbp + 0x5c], 0xffffffff
je 0x47c2d7
mov eax, dword [rbp + 0x5c]
test eax, 0x400
je 0x47c2d7
mov eax, dword [rbp + 0x5c]
test eax, 0x10
je 0x47c264
mov dword [rbp + 0x60], 0x2000000
jmp 0x47c26b
mov dword [rbp + 0x60], 0
mov rcx, qword [rbp + 0x80]
call fcn.00411e10
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov eax, dword [rbp + 0x60]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0xffffffffffffffff
je 0x47c2d7
nop
mov rcx, rbp
mov rdx, qword [rbp + 0x68]
mov r8, qword [rbp + 0x88]
mov r9d, dword [rbp + 0x60]
call fcn.0047be80
mov byte [rbp + 0x67], al
nop
mov rcx, qword [rbp + 0x68]
call sub.kernel32.dll_CloseHandle
movzx rax, byte [rbp + 0x67]
lea rsp, [rbp + 0x70]
pop rbp
ret
Function at 0x47e3e0
Capabilities:
Get disk information

Disassembly:
push rbp
sub rsp, 0x90
mov rbp, rsp
mov qword [rbp + 0x48], rcx
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x88], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x68], 0
nop
lea rcx, [rbp + 0x70]
mov rdx, qword [0x0047e358]
mov r8d, 1
mov r9d, 0x104
call fcn.00413ce0
lea rcx, [rbp + 0x68]
mov rdx, qword [0x0047e398]
mov r8d, 1
mov r9d, 0x104
call fcn.00413ce0
movzx rax, byte [0x0047e68c]
mov byte [rbp + 0x47], al
mov rcx, qword [rbp + 0x48]
mov dl, 1
call fcn.0047e900
test al, al
jne 0x47e484
mov rcx, qword [rbp + 0x48]
mov dl, 1
call fcn.0047e810
test al, al
je 0x47e59c
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x48]
call fcn.0047f420
lea rcx, [rbp + 0x88]
mov rdx, qword [rbp + 0x58]
call fcn.0048b680
mov rcx, qword [rbp + 0x88]
call fcn.00411e10
mov rcx, rax
mov rdx, qword [rbp + 0x70]
mov r8d, 0x104
lea r9, [rbp + 0x84]
lea rax, [rbp + 0x7c]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x80]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x68]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 0x104
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x47e597
mov eax, dword [rbp + 0x80]
test eax, 1
je 0x47e50e
movzx rax, byte [rbp + 0x47]
or al, 1
mov byte [rbp + 0x47], al
mov eax, dword [rbp + 0x80]
test eax, 2
je 0x47e527
movzx rax, byte [rbp + 0x47]
or al, 2
mov byte [rbp + 0x47], al
mov eax, dword [rbp + 0x80]
test eax, 0x80
je 0x47e540
movzx rax, byte [rbp + 0x47]
or al, 0x20
mov byte [rbp + 0x47], al
mov rcx, qword [rbp + 0x88]
call fcn.00411e10
mov rcx, rax
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
test eax, eax
je 0x47e570
sub eax, 1
test eax, eax
je 0x47e57d
sub eax, 1
test eax, eax
je 0x47e58a
sub eax, 1
test eax, eax
jne 0x47e5c7
movzx rax, byte [rbp + 0x47]
or al, 0x10
mov byte [rbp + 0x47], al
jmp 0x47e5c7
movzx rax, byte [rbp + 0x47]
or al, 4
mov byte [rbp + 0x47], al
jmp 0x47e5c7
movzx rax, byte [rbp + 0x47]
or al, 8
mov byte [rbp + 0x47], al
jmp 0x47e5c7
call fcn.0048c1a0
lea rcx, [rbp + 0x50]
mov rdx, qword [0x00bb8898]
call fcn.004169f0
mov rcx, qword [0x00474390]
mov dl, 1
mov r8, qword [rbp + 0x50]
call fcn.00489490
mov rcx, rax
call fcn.0040f120
nop
lea rcx, [rbp + 0x50]
mov edx, 2
call fcn.00410160
lea rcx, [rbp + 0x68]
mov rdx, qword [0x0047e398]
call fcn.00413ec0
lea rcx, [rbp + 0x70]
mov rdx, qword [0x0047e358]
call fcn.00413ec0
lea rcx, [rbp + 0x88]
call fcn.00410080
movzx rax, byte [rbp + 0x47]
lea rsp, [rbp + 0x90]
pop rbp
ret
Function at 0x47e810
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.00411e10
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x47e8c2
mov ecx, eax
test ecx, 0x400
je 0x47e8b7
test sil, sil
jne 0x47e84f
mov al, 1
jmp 0x47e8ec
test eax, 0x10
je 0x47e85f
xor rax, rax
jmp 0x47e8ec
mov rcx, rbx
call fcn.00411e10
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 0x47e8aa
mov rcx, rax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x47e8ec
call sub.kernel32.dll_GetLastError
cmp eax, 0x20
sete al
jmp 0x47e8ec
test eax, 0x10
sete al
jmp 0x47e8ec
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x47e8e5
cmp eax, 3
je 0x47e8e5
cmp eax, 0x7b
je 0x47e8e5
mov rcx, rbp
mov rdx, rbx
call fcn.0047e7c0
test al, al
jne 0x47e8ea
xor rax, rax
jmp 0x47e8ec
mov al, 1
lea rsp, [rbp + 0x40]
pop rbx
pop rsi
pop rbp
ret

Function at 0x47e900
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.00411e10
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
mov r13d, eax
cmp r13d, 0xffffffff
je 0x47ea09
mov eax, r13d
test eax, 0x400
jne 0x47e94a
test r13d, 0x10
setne dil
jmp 0x47ea2f
test sil, sil
je 0x47e9aa
mov rcx, rbx
call fcn.00411e10
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 0x47ea2f
mov rcx, rax
call sub.kernel32.dll_CloseHandle
test r13d, 0x10
setne dil
jmp 0x47ea2f
test r13d, 0x10
je 0x47e9b8
mov dil, 1
jmp 0x47ea2f
mov rcx, rbx
call fcn.00411e10
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 0x47ea04
mov rcx, rax
call sub.kernel32.dll_CloseHandle
xor rdi, rdi
jmp 0x47ea2f
mov dil, 1
jmp 0x47ea2f
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x47ea27
cmp eax, 3
je 0x47ea27
cmp eax, 0x7b
je 0x47ea27
cmp eax, 0x35
je 0x47ea27
cmp eax, 0x15
jne 0x47ea2c
xor rdi, rdi
jmp 0x47ea2f
mov dil, 1
mov eax, edi
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop r13
ret
Function at 0x47ebc0
Capabilities:
Get file attributes

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov byte [rbp + 0x2f], dl
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x48], 0
nop
mov rcx, qword [rbp + 0x20]
call fcn.00411e10
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
mov dword [rbp + 0x28], eax
mov eax, dword [rbp + 0x28]
test eax, 0x400
je 0x47ec73
movzx rax, byte [rbp + 0x2f]
test al, al
je 0x47ec73
or eax, 0xffffffff
mov dword [rbp + 0x28], eax
mov rcx, qword [rbp + 0x20]
lea rdx, [rbp + 0x48]
call fcn.0047c1c0
test al, al
je 0x47ec73
mov rcx, qword [rbp + 0x48]
call fcn.0047f6c0
test al, al
je 0x47ec5f
lea rcx, [rbp + 0x30]
mov rdx, qword [rbp + 0x20]
call fcn.0047f330
lea rcx, [rbp + 0x38]
mov rdx, qword [rbp + 0x30]
call fcn.0048b680
lea rcx, [rbp + 0x48]
mov rdx, qword [rbp + 0x38]
mov r8, qword [rbp + 0x48]
call fcn.00412270
mov rcx, qword [rbp + 0x48]
call fcn.00411e10
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
mov dword [rbp + 0x28], eax
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.00410160
lea rcx, [rbp + 0x48]
call fcn.00410080
mov eax, dword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret

Function at 0x47ecf0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push rbp
sub rsp, 0x60
mov rbp, rsp
mov qword [rbp + 0x30], rcx
mov dword [rbp + 0x2c], edx
mov byte [rbp + 0x3f], r8b
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x50], 0
nop
xor rax, rax
mov dword [rbp + 0x28], eax
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x30]
call fcn.00410750
movzx rax, byte [rbp + 0x3f]
test al, al
je 0x47edaf
mov rcx, qword [rbp + 0x30]
call fcn.00411e10
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
test eax, 0x400
je 0x47edaf
mov rcx, qword [rbp + 0x30]
lea rdx, [rbp + 0x50]
call fcn.0047c1c0
test al, al
je 0x47edaf
mov rcx, qword [rbp + 0x50]
call fcn.0047f6c0
test al, al
je 0x47eda2
lea rcx, [rbp + 0x40]
mov rdx, qword [rbp + 0x30]
call fcn.0047f330
lea rcx, [rbp + 0x48]
mov rdx, qword [rbp + 0x40]
call fcn.0048b680
lea rcx, [rbp + 0x50]
mov rdx, qword [rbp + 0x48]
mov r8, qword [rbp + 0x50]
call fcn.00412270
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x50]
call fcn.00410750
mov rcx, qword [rbp + 0x58]
call fcn.00411e10
mov rcx, rax
mov edx, dword [rbp + 0x2c]
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x47edcf
call sub.kernel32.dll_GetLastError
mov dword [rbp + 0x28], eax
nop
lea rcx, [rbp + 0x40]
mov edx, 4
call fcn.00410160
mov eax, dword [rbp + 0x28]
lea rsp, [rbp + 0x60]
pop rbp
ret
Function at 0x47ee20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rbx
sub rsp, 0x58
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x48], 0
nop
xor rax, rax
mov byte [rbp + 0x2f], al
mov rcx, qword [rbp + 0x20]
call fcn.00411e10
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x47eed6
mov eax, ebx
test eax, 0x400
je 0x47eeca
mov rcx, qword [rbp + 0x20]
lea rdx, [rbp + 0x48]
call fcn.0047c1c0
test al, al
je 0x47eeca
mov rcx, qword [rbp + 0x48]
call fcn.0047f6c0
test al, al
je 0x47eeb7
lea rcx, [rbp + 0x30]
mov rdx, qword [rbp + 0x20]
call fcn.0047f330
lea rcx, [rbp + 0x38]
mov rdx, qword [rbp + 0x30]
call fcn.0048b680
lea rcx, [rbp + 0x48]
mov rdx, qword [rbp + 0x38]
mov r8, qword [rbp + 0x48]
call fcn.00412270
mov rcx, qword [rbp + 0x48]
call fcn.00411e10
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
test ebx, 1
setne al
mov byte [rbp + 0x2f], al
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.00410160
lea rcx, [rbp + 0x48]
call fcn.00410080
movzx rax, byte [rbp + 0x2f]
lea rsp, [rbp + 0x58]
pop rbx
pop rbp
ret

Function at 0x47f0b0
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.00411e10
mov rcx, rax
call sub.kernel32.dll_DeleteFileW
test eax, eax
setne sil
test sil, sil
jne 0x47f122
call sub.kernel32.dll_GetLastError
mov edi, eax
mov rcx, rbx
call fcn.00411e10
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x47f11b
mov ecx, eax
test ecx, 0x400
je 0x47f11b
test eax, 0x10
je 0x47f11b
mov rcx, rbx
call fcn.00411e10
mov rcx, rax
call sub.kernel32.dll_RemoveDirectoryW
test eax, eax
setne sil
jmp 0x47f122
mov ecx, edi
call sub.kernel32.dll_SetLastError
mov eax, esi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x47f750
Capabilities:
Create directory

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

Function at 0x487f60
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
test eax, eax
jle 0x487f87
movzx rax, word [rbp + 0x2c]
jmp 0x487f89
mov eax, ebx
lea rsp, [rbp + 0x38]
pop rbx
pop rbp
ret
Function at 0x489250
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.00488ff0
mov ebx, eax
mov rax, qword [0x00bb8318]
cmp byte [rax], 0
je 0x489388
mov rcx, qword [0x00bb6e58]
call fcn.0040b970
call fcn.00408c30
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
mov esi, eax
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00489210]
mov r8d, 1
movsxd r9, esi
call fcn.00413ce0
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
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
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
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x00489428]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x4893ce
mov rcx, qword [0x00bbdd68]
call fcn.00414250
mov rcx, rax
mov rax, qword [0x00bb6b60]
mov edx, dword [rax + 8]
lea r8, [rbp + 0x860]
mov r9d, 0x40
call sub.user32.dll_LoadStringW
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 [0x00489210]
call fcn.00413ec0
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret

Function at 0x48b040
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.00410750
lea rcx, [rbp + 0x48]
call fcn.004109e0
mov rcx, qword [rbp + 0x48]
call fcn.00411e10
mov rcx, rax
lea rdx, [rbp + 0x40]
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
je 0x48b0f1
mov ecx, dword [rbp + 0x44]
call fcn.004088f0
mov qword [rbp + 0x58], rax
nop
mov rcx, qword [rbp + 0x48]
call fcn.00411e10
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 0x48b0e7
mov rcx, qword [rbp + 0x58]
lea rdx, [0x0048b164]
lea r8, [rbp + 0x38]
lea r9, [rbp + 0x34]
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x48b0e7
mov rax, qword [rbp + 0x38]
mov eax, dword [rax + 8]
mov dword [rbp + 0x54], eax
nop
mov rcx, qword [rbp + 0x58]
call fcn.00408920
nop
lea rcx, [rbp + 0x48]
call fcn.00410080
mov eax, dword [rbp + 0x54]
lea rsp, [rbp + 0x60]
pop rbp
ret
Function at 0x48be20
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.004108c0
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.00416ac0
mov esi, eax
cmp esi, 0x104
jbe 0x48be7d
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.004088f0
mov rdi, rax
jmp 0x48be81
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.00416ac0
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 0x48bed7
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 0x48bebb
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x48bee9
mov rcx, rdi
call fcn.00408920
mov eax, ebx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret

Function at 0x48d420
Capabilities:
Query environment variable

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x828
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
mov rcx, rbx
call fcn.00410080
mov rcx, rsi
call fcn.00411e10
mov rcx, rax
lea rdx, [rbp + 0x20]
mov r8d, 0x400
call sub.kernel32.dll_GetEnvironmentVariableW
mov edi, eax
cmp edi, 0x400
jge 0x48d472
mov rcx, rbx
lea rdx, [rbp + 0x20]
mov r8d, edi
call fcn.00410340
jmp 0x48d4a0
mov rcx, rbx
mov edx, edi
sub edx, 1
call fcn.004120a0
mov rcx, rsi
call fcn.00411e10
mov rsi, rax
mov rcx, qword [rbx]
call fcn.00411e10
mov rcx, rsi
mov rdx, rax
mov r8d, edi
call sub.kernel32.dll_GetEnvironmentVariableW
mov rax, rbx
lea rsp, [rbp + 0x828]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x4ab340
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x28], rdx
mov rbx, r8
mov qword [rbp + 0x70], rcx
mov rcx, qword [rbp + 0x70]
call fcn.0042e9a0
test rax, rax
je 0x4ab422
cmp word [rax + 0x18], 0x20b
jne 0x4ab38c
lea rax, [rax + 0x90]
mov rcx, qword [rbp + 0x70]
mov edx, dword [rax]
lea rsi, [rcx + rdx]
mov r13d, dword [rax]
add r13d, dword [rax + 4]
jmp 0x4ab3a4
lea rax, [rax + 0x80]
mov rcx, qword [rbp + 0x70]
mov edx, dword [rax]
lea rsi, [rcx + rdx]
mov r13d, dword [rax]
add r13d, dword [rax + 4]
test rsi, rsi
je 0x4ab422
jmp 0x4ab41b
cmp dword [rsi + 0x10], r13d
jbe 0x4ab3bb
mov rcx, rbp
call fcn.004ab100
jmp 0x4ab421
cmp dword [rsi + 0x10], 0
je 0x4ab417
mov rax, qword [rbp + 0x70]
mov ecx, dword [rsi + 0x10]
lea rdi, [rax + rcx]
jmp 0x4ab411
mov rax, qword [rbp + 0x28]
cmp qword [rdi], rax
jne 0x4ab40d
mov rcx, rdi
mov edx, 8
mov r8d, 0x40
lea r9, [rbp + 0x3c]
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4ab40d
mov qword [rdi], rbx
mov rcx, rdi
mov edx, 8
mov r8d, dword [rbp + 0x3c]
lea r9, [rbp + 0x3c]
call sub.kernel32.dll_VirtualProtect
add rdi, 8
cmp qword [rdi], 0
jne 0x4ab3ce
add rsi, 0x14
cmp dword [rsi + 0xc], 0
jne 0x4ab3ab
nop
lea rsp, [rbp + 0x40]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x4afaa0
Capabilities:
Read file via mapping

Disassembly:
push rbp
sub rsp, 0xd0
mov rbp, rsp
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x58], rbp
nop
mov byte [rbp + 0xc7], 0
call fcn.004af990
mov qword [rbp + 0xc8], rax
nop
cmp qword [0x00b2f238], 0
jne 0x4afcca
lea rcx, [rbp + 0xa0]
lea rdx, [rbp + 0x78]
call fcn.004aab30
call sub.kernel32.dll_GetCurrentProcessId
lea rcx, [rbp + 0x48]
mov edx, eax
mov r8d, 1
mov r9b, 0x30
call fcn.00425ad0
lea rcx, [rbp + 0x50]
lea rdx, [0x004afd84]
mov r8, qword [rbp + 0x48]
call fcn.00410f60
mov rcx, qword [rbp + 0x50]
call fcn.00411320
mov ecx, 6
xor rdx, rdx
mov r8, rax
call sub.kernel32.dll_OpenFileMappingA
mov qword [rbp + 0xb8], rax
cmp qword [rbp + 0xb8], 0
sete al
mov byte [rbp + 0x77], al
cmp byte [rbp + 0x77], 0
je 0x4afbca
call sub.kernel32.dll_GetCurrentProcessId
lea rcx, [rbp + 0x38]
mov edx, eax
mov r8d, 1
mov r9b, 0x30
call fcn.00425ad0
lea rcx, [rbp + 0x40]
lea rdx, [0x004afd84]
mov r8, qword [rbp + 0x38]
call fcn.00410f60
mov rcx, qword [rbp + 0x40]
call fcn.00411320
or rcx, 0xffffffffffffffff
lea rdx, [rbp + 0xa0]
mov r8d, 4
xor r9, r9
mov dword [rsp + 0x20], 8
mov qword [rsp + 0x28], rax
call sub.kernel32.dll_CreateFileMappingA
mov qword [rbp + 0xb8], rax
cmp qword [rbp + 0xb8], 0
jne 0x4afbfa
mov qword [rbp + 0x68], 0
xor rcx, rcx
lea rdx, [0x004afd9a]
lea r8, [0x004afdc3]
xor r9, r9
call sub.user32.dll_MessageBoxA
jmp 0x4afcaf
cmp byte [rbp + 0x77], 0
je 0x4afc7e
mov rcx, qword [rbp + 0xb8]
mov edx, 0xf001f
xor r8, r8
xor r9, r9
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_MapViewOfFile
mov qword [rbp + 0x68], rax
xor rcx, rcx
mov edx, 0x44
mov r8d, 0x1000
mov r9d, 4
call sub.kernel32.dll_VirtualAlloc
mov rcx, qword [rbp + 0x68]
mov qword [rcx], rax
mov rax, qword [rbp + 0x68]
mov rcx, qword [rax]
mov edx, 0x44
call fcn.00421ad0
mov rax, qword [rbp + 0x68]
mov rax, qword [rax]
mov rcx, qword [rbp + 0xb8]
mov qword [rax + 4], rcx
mov rax, qword [rbp + 0x68]
mov rax, qword [rax]
lea rcx, [rax + 0xc]
call sub.kernel32.dll_InitializeCriticalSection
jmp 0x4afcaf
mov rcx, qword [rbp + 0xb8]
mov edx, 0xf001f
xor r8, r8
xor r9, r9
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_MapViewOfFile
mov qword [rbp + 0x68], rax
mov rcx, qword [rbp + 0xb8]
call sub.kernel32.dll_CloseHandle
cmp qword [rbp + 0x68], 0
je 0x4afcca
mov rcx, qword [rbp + 0x68]
call fcn.00503030
mov rax, qword [rbp + 0x68]
mov qword [0x00b2f238], rax
cmp qword [0x00b2f238], 0
je 0x4afce8
mov rax, qword [0x00b2f238]
mov rax, qword [rax]
add dword [rax], 1
mov byte [rbp + 0xc7], 1
nop
mov rcx, qword [rbp + 0xc8]
call fcn.004afa80
nop
lea rcx, [rbp + 0x38]
mov edx, 4
call fcn.00410190
movzx rax, byte [rbp + 0xc7]
lea rsp, [rbp + 0xd0]
pop rbp
ret
Function at 0x4f52e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x60], rcx
mov qword [rbp + 0x68], rdx
mov dword [rbp + 0x70], r8d
mov qword [rbp + 0x78], r9
nop
mov byte [rbp + 0x4f], 0
lea rcx, [rbp + 0x40]
call fcn.004100d0
lea rcx, [0x00bc37d0]
call sub.kernel32.dll_EnterCriticalSection
nop
lea rcx, [rbp + 0x40]
mov rdx, qword [rbp + 0x60]
mov r8d, dword [rbp + 0x70]
xor r9, r9
call fcn.004103f0
lea rcx, [rbp + 0x38]
mov rdx, qword [rbp + 0x68]
mov r8d, dword [rbp + 0x70]
xor r9, r9
call fcn.004103f0
mov rcx, qword [rbp + 0x40]
call fcn.004108b0
cmp eax, dword [rbp + 0x70]
jne 0x4f5481
mov rcx, qword [rbp + 0x38]
call fcn.004108b0
cmp eax, dword [rbp + 0x70]
jne 0x4f5481
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x38]
call fcn.004112d0
test eax, eax
je 0x4f5481
mov rcx, qword [rbp + 0x60]
movsxd rdx, dword [rbp + 0x70]
mov r8d, 0x40
lea r9, [rbp + 0x34]
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4f5481
mov rcx, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
movsxd r8, dword [rbp + 0x70]
call fcn.00408cc0
mov rcx, qword [rbp + 0x60]
movsxd rdx, dword [rbp + 0x70]
mov r8d, dword [rbp + 0x34]
lea r9, [rbp + 0x34]
call sub.kernel32.dll_VirtualProtect
mov rcx, qword [0x00bc37f8]
call fcn.00413940
mov dword [rbp + 0x30], eax
lea rcx, [0x00bc37f8]
mov rdx, qword [0x004f52a0]
mov r8d, 1
mov r9d, dword [rbp + 0x30]
add r9d, 1
movsxd r9, r9d
call fcn.00413ce0
mov rax, qword [0x00bc37f8]
movsxd rcx, dword [rbp + 0x30]
add rcx, rcx
add rcx, rcx
mov rdx, qword [rbp + 0x60]
mov qword [rax + rcx*8], rdx
mov rax, qword [0x00bc37f8]
movsxd rcx, dword [rbp + 0x30]
add rcx, rcx
add rcx, rcx
lea rcx, [rax + rcx*8 + 8]
mov rdx, qword [rbp + 0x40]
call fcn.004107e0
mov rax, qword [0x00bc37f8]
movsxd rcx, dword [rbp + 0x30]
add rcx, rcx
add rcx, rcx
lea rcx, [rax + rcx*8 + 0x10]
mov rdx, qword [rbp + 0x38]
call fcn.004107e0
mov rax, qword [0x00bc37f8]
movsxd rcx, dword [rbp + 0x30]
add rcx, rcx
add rcx, rcx
mov rdx, qword [rbp + 0x78]
mov qword [rax + rcx*8 + 0x18], rdx
mov byte [rbp + 0x4f], 1
jmp 0x4f5481
lea rcx, [0x00bc37d0]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 2
call fcn.00410190
movzx rax, byte [rbp + 0x4f]
lea rsp, [rbp + 0x50]
pop rbp
ret