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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov eax, dword [0x63a1e8]
mov edi, dword [ebp + 8]
mov ebx, esp
xor eax, ebp
mov dword [esp + 0x48], eax
push 0x1df
push str..._.._base_files_file_util_win.cc
push str.DirectoryExists
push ebx
call fcn.004820c0
add esp, 0x10
lea esi, [esp + 0x10]
mov ecx, esi
push 0
push ebx
call fcn.004d05f0
cmp byte [edi + 0xb], 0
jns 0x4916ba
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
mov ecx, esi
setne al
and ebx, 0x10
shr ebx, 4
and bl, al
call fcn.004d06e0
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.005909f1
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4916f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x228
mov eax, dword [0x63a1e8]
lea esi, [ebp - 0x21a]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
xor ebx, ebx
cmp eax, 0x102
ja 0x491774
cmp word [ebp - 0x21a], 0
je 0x49173e
xor ebx, ebx
nop
cmp word [ebp + ebx*2 - 0x218], 0
lea ebx, [ebx + 1]
jne 0x491730
lea edi, [ebp - 0x234]
mov ecx, edi
push ebx
push esi
call fcn.0047f630
lea ebx, [ebp - 0x228]
mov ecx, edi
push ebx
call fcn.004815c0
mov ecx, dword [ebp + 8]
push ebx
call fcn.0047f730
mov ecx, ebx
call fcn.0047f6f0
mov ecx, edi
call fcn.0047f6f0
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005909f1
mov eax, ebx
add esp, 0x228
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x491790
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x218
mov eax, dword [0x63a1e8]
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x214]
xor eax, ebp
mov dword [ebp - 0xc], eax
push edi
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4917e9
cmp word [ebp - 0x214], 0
je 0x4917e9
xor eax, eax
nop dword [eax]
cmp word [ebp + eax*2 - 0x212], 0
lea eax, [eax + 1]
jne 0x4917d0
mov ecx, esi
push eax
push edi
call fcn.0047f630
jmp 0x491824
lea edi, [ebp - 0x220]
mov ecx, edi
call fcn.0047f5e0
push edi
call fcn.004916f0
add esp, 4
mov ecx, esi
test al, al
je 0x49180d
push edi
call fcn.0047f600
jmp 0x491819
push 3
push 0x5c746a
call fcn.0047f630
lea ecx, [ebp - 0x220]
call fcn.0047f6f0
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.005909f1
mov eax, esi
add esp, 0x218
pop esi
pop edi
pop ebp
ret
Function at 0x491840
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x98
mov eax, dword [0x63a1e8]
mov esi, dword [ebp + 8]
lea edi, [esp + 0x58]
xor eax, ebp
mov dword [esp + 0x90], eax
push 0x269
push str..._.._base_files_file_util_win.cc
push str.CreateDirectoryAndGetError
push edi
call fcn.004820c0
add esp, 0x10
lea ecx, [esp + 0x10]
push 0
push edi
call fcn.004d05f0
cmp byte [esi + 0xb], 0
mov ebx, esi
jns 0x491892
mov ebx, dword [esi]
mov edi, dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4918c4
mov bl, 1
test al, 0x10
jne 0x4919e1
test edi, edi
je 0x4918b5
mov dword [edi], 0xfffffff7
push 0x50
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x4919e1
lea eax, [esp + 4]
mov ecx, esi
push eax
call fcn.0047ffd0
movzx ecx, byte [esp + 0xf]
test cl, cl
mov eax, ecx
jns 0x4918df
mov eax, dword [esp + 8]
movzx edx, byte [esi + 0xb]
mov dword [esp], ebx
test dl, dl
js 0x4918f6
cmp eax, edx
mov edx, esi
jne 0x491933
test eax, eax
jne 0x491901
jmp 0x49191f
cmp eax, dword [esi + 4]
jne 0x491933
mov edx, dword [esi]
test eax, eax
je 0x49191f
test cl, cl
lea ecx, [esp + 4]
jns 0x49190d
mov ecx, dword [esp + 4]
xor edi, edi
nop
movzx ebx, word [ecx + edi*2]
cmp bx, word [edx + edi*2]
jne 0x491933
inc edi
cmp eax, edi
jne 0x491910
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x49192c
mov dword [eax], 0xfffffffc
push 2
jmp 0x4919d0
mov edi, dword [ebp + 0xc]
push edi
lea eax, [esp + 8]
push eax
call fcn.00491840
add esp, 8
test al, al
je 0x4919d6
push 0
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x4919d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov dword [esp], eax
jne 0x4919bd
lea edi, [esp + 0x48]
push 0x1df
push str..._.._base_files_file_util_win.cc
push str.DirectoryExists
push edi
call fcn.004820c0
add esp, 0x10
lea ecx, [esp + 0x58]
push 0
push edi
call fcn.004d05f0
cmp byte [esi + 0xb], 0
jns 0x49199e
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [esp + 0x58]
mov esi, eax
call fcn.004d06e0
mov edi, dword [ebp + 0xc]
cmp esi, 0xffffffff
je 0x4919bd
and esi, 0x10
jne 0x4919d8
mov esi, dword [esp]
test edi, edi
je 0x4919cf
push esi
call fcn.00492460
add esp, 4
mov dword [edi], eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
lea ecx, [esp + 4]
call fcn.0047f6f0
lea ecx, [esp + 0x10]
call fcn.004d06e0
mov ecx, dword [esp + 0x90]
xor ecx, ebp
call fcn.005909f1
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x491b00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov eax, dword [0x63a1e8]
mov esi, dword [ebp + 8]
lea edi, [esp + 8]
xor eax, ebp
mov dword [esp + 0x54], eax
push 0x35d
push str..._.._base_files_file_util_win.cc
push 0x5c7499
push edi
call fcn.004820c0
add esp, 0x10
lea ecx, [esp + 0x18]
push 0
push edi
call fcn.004d05f0
cmp byte [esi + 0xb], 0
jns 0x491b49
mov esi, dword [esi]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea esi, [esp + 8]
mov dword [esp + 8], 0
mov ecx, esi
push eax
call fcn.00408a4a
mov eax, dword [esp + 8]
mov edi, 0xffffffff
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x491bb5
mov edi, dword [ebp + 0x10]
lea ecx, [esp + 4]
push 0
push ecx
push edi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 4], edi
mov ecx, 0xffffffff
cmove ecx, edi
xor edi, edi
cmp eax, 1
mov eax, dword [esp + 8]
sbb edi, edi
or edi, ecx
inc eax
cmp eax, 2
jb 0x491be5
call fcn.004820f0
push eax
push dword [ebp + 4]
push esi
push dword [esp + 0x14]
call fcn.004961b0
add esp, 0x10
push dword [esp + 8]
call fcn.00496160
add esp, 4
mov dword [esp + 8], 0
lea ecx, [esp + 0x18]
call fcn.004d06e0
mov ecx, dword [esp + 0x54]
xor ecx, ebp
call fcn.005909f1
mov eax, edi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret

Function at 0x491c10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x260
mov eax, dword [0x63a1e8]
lea esi, [esp + 0x50]
xor eax, ebp
mov dword [esp + 0x258], eax
push 0x390
push str..._.._base_files_file_util_win.cc
push 0x5c74a3
push esi
call fcn.004820c0
add esp, 0x10
lea ecx, [esp + 0x18]
push 0
push esi
call fcn.004d05f0
mov word [esp + 0x50], 0
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
xor ebx, ebx
cmp eax, 0x103
ja 0x491cbb
cmp word [esp + 0x50], 0
je 0x491c8b
xor ebx, ebx
nop dword [eax]
cmp word [esp + ebx*2 + 0x52], 0
lea ebx, [ebx + 1]
jne 0x491c80
mov edi, esp
mov ecx, edi
push ebx
push esi
call fcn.0047f630
lea ebx, [esp + 0xc]
mov ecx, edi
push ebx
call fcn.004815c0
mov ecx, dword [ebp + 8]
push ebx
call fcn.0047f730
mov ecx, ebx
call fcn.0047f6f0
mov ecx, edi
call fcn.0047f6f0
mov bl, 1
lea ecx, [esp + 0x18]
call fcn.004d06e0
mov ecx, dword [esp + 0x258]
xor ecx, ebp
call fcn.005909f1
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x491ce0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov eax, dword [0x63a1e8]
mov edi, dword [ebp + 8]
mov ebx, esp
xor eax, ebp
mov dword [esp + 0x48], eax
push 0x3a0
push str..._.._base_files_file_util_win.cc
push 0x5c74b8
push ebx
call fcn.004820c0
add esp, 0x10
lea esi, [esp + 0x10]
mov ecx, esi
push 0
push ebx
call fcn.004d05f0
cmp byte [edi + 0xb], 0
jns 0x491d2a
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
mov ecx, esi
setne bl
call fcn.004d06e0
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.005909f1
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x491d60
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x258
mov eax, dword [0x63a1e8]
mov ebx, dword [ebp + 8]
lea esi, [esp + 0x48]
xor eax, ebp
mov dword [esp + 0x250], eax
push 0x3a5
push str..._.._base_files_file_util_win.cc
push str.GetMaximumPathComponentLength
push esi
call fcn.004820c0
add esp, 0x10
lea ecx, [esp + 0x10]
push 0
push esi
call fcn.004d05f0
lea edi, [esp + 4]
mov ecx, ebx
push edi
call fcn.004818f0
cmp byte [esp + 0xf], 0
mov eax, edi
jns 0x491dc1
mov eax, dword [esp + 4]
push 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov ecx, edi
mov ebx, eax
call fcn.0047f6f0
test ebx, ebx
je 0x491e33
mov dword [esp], 0
mov eax, esp
push 0
push 0
push 0
push eax
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x491e33
mov ecx, dword [ebp + 8]
lea edi, [esp + 4]
push edi
call fcn.004815c0
movzx ebx, byte [esp + 0xf]
test bl, bl
jns 0x491e16
mov ebx, dword [esp + 8]
mov ecx, edi
call fcn.0047f6f0
mov ecx, dword [esp]
mov esi, 0x102
xor eax, eax
sub esi, ebx
cmovs esi, eax
cmp ecx, esi
cmovle esi, ecx
jmp 0x491e38
mov esi, 0xffffffff
lea ecx, [esp + 0x10]
call fcn.004d06e0
mov ecx, dword [esp + 0x250]
xor ecx, ebp
call fcn.005909f1
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x491e60
Capabilities:
Check if file exists
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4f8
mov eax, ecx
mov ecx, dword [0x63a1e8]
lea esi, [ebp - 0x2a4]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
mov ecx, esi
mov dword [ebp - 0x504], edx
push edx
push 3
push 0
push eax
call fcn.00496f50
lea eax, [ebp - 0x500]
mov ecx, esi
push eax
call fcn.004971b0
movzx eax, byte [ebp - 0x4f5]
test al, al
jns 0x491eb1
mov eax, dword [ebp - 0x4fc]
test eax, eax
je 0x49201d
lea ebx, [ebp - 0x4f4]
xor edi, edi
jmp 0x491eda
test eax, eax
mov edi, esi
je 0x49201f
lea ecx, [ebp - 0x2a4]
push ebx
call fcn.00497130
mov eax, dword [ebp - 0x4f4]
test al, 1
je 0x491f3d
cmp byte [ebp + 8], 0
jne 0x491f1d
mov ecx, ebx
call fcn.00496ec0
test al, al
je 0x491f17
mov ecx, ebx
call fcn.00496ec0
xor esi, esi
test al, al
je 0x491fa0
jmp 0x491fd8
mov eax, dword [ebp - 0x4f4]
and eax, 0xfffffffe
cmp byte [ebp - 0x4f5], 0
lea ecx, [ebp - 0x500]
jns 0x491f35
mov ecx, dword [ebp - 0x500]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, ebx
call fcn.00496ec0
test al, al
je 0x491fa0
xor esi, esi
cmp byte [ebp + 8], 0
je 0x491fd8
mov edx, dword [ebp - 0x504]
lea ecx, [ebp - 0x500]
push 1
call fcn.00491e60
add esp, 4
mov esi, eax
test eax, eax
jne 0x491fd8
cmp byte [ebp - 0x4f5], 0
lea eax, [ebp - 0x500]
jns 0x491f85
mov eax, dword [ebp - 0x500]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
mov esi, 0
jne 0x491fd8
jmp 0x491fc2
cmp byte [ebp - 0x4f5], 0
lea eax, [ebp - 0x500]
jns 0x491fb5
mov eax, dword [ebp - 0x500]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
test eax, eax
jne 0x491fd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
and eax, 0xfffffffe
mov ecx, 0
cmp eax, 2
cmove esi, ecx
test edi, edi
mov ecx, ebx
cmovne esi, edi
call fcn.00413500
lea ecx, [ebp - 0x2a4]
push ebx
call fcn.004971b0
lea ecx, [ebp - 0x500]
push ebx
call fcn.0047f730
mov ecx, ebx
call fcn.0047f6f0
movzx eax, byte [ebp - 0x4f5]
test al, al
jns 0x491ed0
mov eax, dword [ebp - 0x4fc]
jmp 0x491ed0
xor esi, esi
lea ecx, [ebp - 0x500]
call fcn.0047f6f0
lea ecx, [ebp - 0x2a4]
call fcn.004970c0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005909f1
mov eax, esi
add esp, 0x4f8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x492110
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov eax, dword [0x63a1e8]
mov edi, dword [ebp + 0x14]
mov esi, ecx
lea ebx, [esp + 0x10]
xor eax, ebp
mov dword [esp + 0x68], eax
push 0x3e
push str..._.._base_files_file_win.cc
push str.Read
push ebx
call fcn.004820c0
add esp, 0x10
lea ecx, [esp + 0x30]
push 0
push ebx
call fcn.004d05f0
test edi, edi
js 0x4921b3
lea ecx, [esp + 0x28]
call fcn.004469f0
call fcn.004d0440
test al, al
je 0x492179
lea ecx, [esp + 0x28]
push 0
push edi
push esi
push str.File::Read
call fcn.004d04c0
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [esp + 0x20], 0
movaps xmmword [esp + 0x10], xmm0
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0xc]
push ebx
push eax
push edi
push dword [ebp + 0x10]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4921ba
mov ebx, dword [esp + 0xc]
jmp 0x4921ca
mov ebx, 0xffffffff
jmp 0x4921d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x26
setne bl
neg ebx
lea ecx, [esp + 0x28]
call fcn.004d04a0
lea ecx, [esp + 0x30]
call fcn.004d06e0
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.005909f1
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10

Function at 0x492200
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov eax, dword [0x63a1e8]
mov edi, dword [ebp + 0xc]
mov esi, ecx
lea ebx, [esp + 8]
xor eax, ebp
mov dword [esp + 0x50], eax
push 0x57
push str..._.._base_files_file_win.cc
push str.ReadAtCurrentPos
push ebx
call fcn.004820c0
add esp, 0x10
lea ecx, [esp + 0x18]
push 0
push ebx
call fcn.004d05f0
test edi, edi
js 0x492287
mov ebx, dword [ebp + 8]
lea ecx, [esp + 8]
call fcn.004469f0
call fcn.004d0440
test al, al
je 0x49226c
lea ecx, [esp + 8]
push 0
push edi
push esi
push str.File::ReadAtCurrentPos
call fcn.004d04c0
lea eax, [esp + 4]
push 0
push eax
push edi
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49228e
mov ebx, dword [esp + 4]
jmp 0x49229e
mov ebx, 0xffffffff
jmp 0x4922a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x26
setne bl
neg ebx
lea ecx, [esp + 8]
call fcn.004d04a0
lea ecx, [esp + 0x18]
call fcn.004d06e0
mov ecx, dword [esp + 0x50]
xor ecx, ebp
call fcn.005909f1
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x4922d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov eax, dword [0x63a1e8]
mov edi, dword [ebp + 0xc]
mov esi, ecx
lea ebx, [esp + 8]
xor eax, ebp
mov dword [esp + 0x50], eax
push 0x88
push str..._.._base_files_file_win.cc
push str.WriteAtCurrentPos
push ebx
call fcn.004820c0
add esp, 0x10
lea ecx, [esp + 0x18]
push 0
push ebx
call fcn.004d05f0
test edi, edi
js 0x492366
mov ebx, dword [ebp + 8]
lea ecx, [esp + 8]
call fcn.004469f0
call fcn.004d0440
test al, al
je 0x49233f
lea ecx, [esp + 8]
push 0
push edi
push esi
push str.File::WriteAtCurrentPos
call fcn.004d04c0
lea eax, [esp + 4]
push 0
push eax
push edi
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
lea ecx, [esp + 8]
sbb esi, esi
or esi, dword [esp + 4]
call fcn.004d04a0
jmp 0x49236b
mov esi, 0xffffffff
lea ecx, [esp + 0x18]
call fcn.004d06e0
mov ecx, dword [esp + 0x50]
xor ecx, ebp
call fcn.005909f1
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x492390
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov eax, dword [0x63a1e8]
mov esi, ecx
lea edi, [esp + 8]
xor eax, ebp
mov dword [esp + 0x54], eax
push 0x9c
push str..._.._base_files_file_win.cc
push str.GetLength
push edi
call fcn.004820c0
add esp, 0x10
lea ecx, [esp + 0x18]
push 0
push edi
call fcn.004d05f0
lea ecx, [esp + 8]
call fcn.004469f0
call fcn.004d0440
test al, al
je 0x4923f5
lea ecx, [esp + 8]
push 0
push 0
push esi
push str.File::GetLength
call fcn.004d04c0
mov eax, esp
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edi, dword [esp + 4]
xor esi, esi
cmp eax, 1
lea ecx, [esp + 8]
sbb esi, esi
or edi, esi
or esi, dword [esp]
call fcn.004d04a0
lea ecx, [esp + 0x18]
call fcn.004d06e0
mov ecx, dword [esp + 0x54]
xor ecx, ebp
call fcn.005909f1
mov eax, esi
mov edx, edi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret

Function at 0x4926e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00408a4a
Function at 0x4955c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x63a1e8]
mov ebx, 0x100000
mov edi, edx
xor eax, ebp
test ecx, ecx
cmovne ebx, ecx
mov dword [ebp - 0x10], eax
push 0xc
call fcn.00590936
add esp, 4
mov dword [eax], edi
mov edi, dword [ebp + 8]
mov esi, eax
test edi, edi
setne byte [eax + 4]
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
push 0
push 0x10000
push esi
push 0x4958a0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x49561e
test edi, edi
je 0x49564d
mov dword [edi], eax
jmp 0x495654
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x495637
mov edi, eax
cmp eax, 0x5af
je 0x495637
cmp edi, 0xe
jne 0x49566a
push ebx
call fcn.004e0fd0
add esp, 4
push esi
call fcn.005909b6
add esp, 4
xor ebx, ebx
jmp 0x495656
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005909f1
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [0x63e310]
mov edx, dword fs:[0x2c]
mov eax, dword [0x63cb50]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0x18]
jg 0x4956c5
lea ebx, [ebp - 0x1c]
push edi
push ebx
call fcn.00485d80
add esp, 8
movzx eax, byte [ebp - 0x11]
test al, al
jns 0x4956a2
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
push eax
push ebx
push dword [0x63cb4c]
call fcn.004e1030
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x495640
push dword [ebp - 0x1c]
call fcn.005909b6
jmp 0x49563d
push 0x63cb50
call fcn.00590a37
add esp, 4
cmp dword [0x63cb50], 0xffffffff
jne 0x495687
push 0x20
push str.create_thread_last_error
call fcn.004e1010
add esp, 8
mov dword [0x63cb4c], eax
push 0x63cb50
call fcn.00590aad
add esp, 4
jmp 0x495687
Function at 0x495e50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x10
mov edx, dword [0x63a1e8]
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x18]
lea edi, [ebp - 0x10]
xor edx, ebp
mov dword [ebp - 0xc], edx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x18], 0
push edx
push esi
push edi
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
jne 0x495eb8
mov eax, dword [ebp - 0x10]
mov esi, 0x3f4
add eax, 0xfffffffd
cmp eax, 1
ja 0x495eb8
cmp dword [ebp - 0x14], 4
jne 0x495eb8
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
xor esi, esi
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.005909f1
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebp
ret 8

Function at 0x495ed0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x100c
call fcn.00590e80
mov edx, dword [0x63a1e8]
mov eax, dword [ebp + 8]
lea ebx, [ebp - 0x810]
lea esi, [ebp - 0x1014]
xor edx, ebp
mov dword [ebp - 0x10], edx
lea edx, [ebp - 0x1018]
mov dword [ebp - 0x1014], 1
mov dword [ebp - 0x1018], 0x800
push edx
push ebx
push esi
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
jne 0x495f7b
mov eax, dword [ebp - 0x1014]
mov edi, dword [ebp + 0xc]
cmp eax, 2
je 0x495f45
mov esi, 0x3f4
cmp eax, 1
jne 0x495f7b
mov ecx, edi
push ebx
jmp 0x495f74
lea eax, [ebp - 0x1010]
push 0x400
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1018], eax
dec eax
mov esi, 0xea
cmp eax, 0x3ff
ja 0x495f7b
mov ecx, edi
lea eax, [ebp - 0x1010]
push eax
call fcn.00478ea0
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005909f1
mov eax, esi
add esp, 0x100c
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x495fa0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push eax
mov edx, dword [0x63a1e8]
mov eax, dword [ebp + 8]
xor edx, ebp
mov dword [ebp - 8], edx
lea edx, [ebp + 0xc]
push 4
push edx
push 4
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 8]
mov esi, eax
xor ecx, ebp
call fcn.005909f1
mov eax, esi
add esp, 4
pop esi
pop ebp
ret 8
Function at 0x496300
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x160
mov eax, dword [0x63a1e8]
xor eax, ebp
mov dword [esp + 0x158], eax
mov ecx, dword [0x63e310]
mov edx, dword fs:[0x2c]
mov eax, dword [0x63cb58]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0x18]
jg 0x496355
mov ecx, dword [esp + 0x158]
xor ecx, ebp
call fcn.005909f1
mov eax, 0x63cb54
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x63cb58
call fcn.00590a37
add esp, 4
cmp dword [0x63cb58], 0xffffffff
jne 0x49633a
lea eax, [esp + 0x40]
push 0x118
push 0
push eax
call fcn.00594d60
add esp, 0xc
lea edi, [esp + 0x3c]
mov dword [esp + 0x3c], 0x11c
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push 0
push 0
push dword [esp + 0x50]
push dword [esp + 0x50]
call dword [sym.imp.KERNEL32.dll_GetProductInfo]
push 0x50
call fcn.00590936
add esp, 4
mov ecx, dword [0x63e310]
mov edx, dword fs:[0x2c]
mov esi, eax
mov eax, dword [0x63cb98]
mov ebx, dword [esp + 0xc]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0x18]
jg 0x496404
mov ecx, esi
push ebx
push 0x63cb74
push edi
call fcn.004965a0
mov dword [0x63cb54], esi
push 0x63cb58
call fcn.00590aad
add esp, 4
jmp 0x49633a
push 0x63cb98
call fcn.00590a37
add esp, 4
cmp dword [0x63cb98], 0xffffffff
jne 0x4963de
xorps xmm0, xmm0
lea eax, [esp + 0x10]
mov dword [esp + 0x30], 0
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x10], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movsd xmm1, qword [esp + 0x20]
mov eax, dword [esp + 0x30]
movsd xmm0, qword [esp + 0x28]
movsd xmm2, qword [esp + 0x10]
movsd qword [0x63cb84], xmm1
movsd xmm1, qword [esp + 0x18]
mov dword [0x63cb94], eax
movsd qword [0x63cb8c], xmm0
movsd qword [0x63cb74], xmm2
movsd qword [0x63cb7c], xmm1
push 0x63cb98
call fcn.00590aad
add esp, 4
jmp 0x4963de
Function at 0x4964a0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov eax, dword [0x63a1e8]
xor eax, ebp
mov dword [esp + 0x30], eax
mov ecx, dword [0x63e310]
mov edx, dword fs:[0x2c]
mov eax, dword [0x63cb98]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0x18]
jg 0x496514
movzx eax, word [0x63cb74]
cmp eax, 0xc
ja case.0x4964e0.1
xor esi, esi
jmp dword [eax*4 + 0x5c7d78]
mov esi, 2
jmp case.0x4964e0.0
mov esi, 4
jmp case.0x4964e0.0
mov esi, 1
jmp case.0x4964e0.0
mov esi, 3
mov ecx, dword [esp + 0x30]
xor ecx, ebp
call fcn.005909f1
mov eax, esi
lea esp, [ebp - 4]
pop esi
pop ebp
ret
push 0x63cb98
call fcn.00590a37
add esp, 4
cmp dword [0x63cb98], 0xffffffff
jne 0x4964d2
xorps xmm0, xmm0
mov eax, esp
mov dword [esp + 0x20], 0
movaps xmmword [esp + 0x10], xmm0
movaps xmmword [esp], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movsd xmm1, qword [esp + 0x10]
mov eax, dword [esp + 0x20]
movsd xmm0, qword [esp + 0x18]
movsd xmm2, qword [esp]
movsd qword [0x63cb84], xmm1
movsd xmm1, qword [esp + 8]
mov dword [0x63cb94], eax
movsd qword [0x63cb8c], xmm0
movsd qword [0x63cb74], xmm2
movsd qword [0x63cb7c], xmm1
push 0x63cb98
call fcn.00590aad
add esp, 4
jmp 0x4964d2