joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455cd4
Capabilities:
Get geographical location

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
push 0
push dword [edi + 4]
push 0xe
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.0044a5b4
add esp, 0x10
mov dword [edi + 4], eax
push esi
push eax
push 0xe
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
xor ebx, ebx
test eax, eax
setne bl
push 0
push dword [edi]
push 0xf
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.0044a5b4
add esp, 0x10
mov dword [edi], eax
test edi, edi
je 0x455d47
push esi
push eax
push 0xf
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
xor ecx, ecx
test eax, eax
setne cl
jmp 0x455d56
sub esp, 0xc
push 0xe
call sub.KERNEL32.DLL_SetLastError
add esp, 0xc
xor ecx, ecx
and ecx, ebx
mov dword [esp + 8], ecx
push 0
push dword [edi + 8]
push 0x10
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.0044a5b4
add esp, 0x10
mov dword [edi + 8], eax
push esi
push eax
push 0x10
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
xor ebx, ebx
test eax, eax
setne bl
push 0
push dword [edi + 0xc]
push 0x50
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.0044a5b4
add esp, 0x10
mov dword [edi + 0xc], eax
push esi
push eax
push 0x50
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
xor ecx, ecx
test eax, eax
setne cl
and ecx, ebx
mov ebx, ebp
mov ebp, ecx
push 0
push dword [edi + 0x10]
push 0x51
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.0044a5b4
add esp, 0x10
mov dword [edi + 0x10], eax
push esi
push eax
push 0x51
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoA
xor ebx, ebx
test eax, eax
setne bl
and ebx, ebp
and ebx, dword [esp + 8]
sub esp, 0xc
push 4
call fcn.0044a5b4
add esp, 0x10
mov esi, eax
test esi, esi
je 0x455e40
push 4
push esi
push 0x11
push dword [esp + 0x2c]
call sub.KERNEL32.DLL_GetLocaleInfoA
sub esp, 0xc
test eax, eax
je 0x455e4f
push esi
call fcn.00456e68
add esp, 0x10
mov word [edi + 0x14], ax
sub esp, 0xc
push esi
call fcn.0044a5c4
add esp, 0x10
mov eax, 1
jmp 0x455e5a
sub esp, 0xc
push 0xe
call sub.KERNEL32.DLL_SetLastError
add esp, 0xc
jmp 0x455e58
push esi
call fcn.0044a5c4
add esp, 0x10
xor eax, eax
and ebx, eax
mov eax, ebx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4596f4
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push dword [esp + 0x4c]
call sub.KERNEL32.DLL_CreateFileA
add esp, 4
mov edi, eax
test edi, edi
je 0x4597ba
sub esp, 0xc
lea eax, [esp + 0x14]
push eax
call sub.KERNEL32.DLL_GetLocalTime
add esp, 0xc
movzx eax, word [esp + 0xa]
mov dword [esp + 0x18], eax
movzx ecx, word [esp + 0xe]
movzx edx, word [esp + 8]
movzx ebp, word [esp + 0x10]
movzx eax, word [esp + 0x12]
movzx esi, word [esp + 0x14]
movzx ebx, word [esp + 0x16]
sub esp, 0xc
push ebx
push esi
push eax
push ebp
push edx
push ecx
push dword [esp + 0x3c]
push str._02d__02d__04d__02d:_02d:_02d._03d
push 0x4823ec
call sub.USER32.DLL_wsprintfA
add esp, 0x24
push 0x4823ec
call fcn.0044d2c0
add esp, 4
push 0
lea ebx, [esp + 0x18]
push ebx
push eax
push 0x4823ec
push edi
call sub.KERNEL32.DLL_WriteFile
mov esi, dword [esp + 0x40]
push esi
call fcn.0044d2c0
add esp, 4
push 0
push ebx
push eax
push esi
push edi
call sub.KERNEL32.DLL_WriteFile
push edi
call sub.KERNEL32.DLL_CloseHandle
add esp, 0xc
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4597ec
Capabilities:
Write file on windows

Disassembly:
push ebx
push edi
push esi
sub esp, 0x90
mov edi, dword [esp + 0xa0]
mov eax, dword [0x48240c]
test eax, eax
mov ecx, dword [0x482408]
jne 0x4598b1
test ecx, ecx
jne 0x4598b1
cmp dword [0x46a168], 0
je 0x4598e7
sub esp, 4
lea esi, [esp + 0x14]
push 0x80
push esi
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
sub esp, 4
push 0x5c
push esi
call fcn.00459574
add esp, 0x10
test eax, eax
jne 0x45985c
sub esp, 8
push 0x3a
push esi
call fcn.00459574
add esp, 0x10
test eax, eax
je 0x45985f
inc eax
mov esi, eax
mov dword [esp + 0xc], 0
call sub.KERNEL32.DLL_GetVersion
mov ecx, 0x12010
test eax, eax
jns 0x4598a2
call fcn.00460740
sub esp, 4
lea ecx, [esp + 0x10]
push ecx
push 0x45997c
push eax
call sub.USER32.DLL_EnumThreadWindows
add esp, 4
cmp dword [esp + 0xc], 0
mov eax, 0x11010
mov ecx, 0x12010
cmove ecx, eax
push ecx
push esi
push edi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x459934
cmp ecx, 0xffffffff
je 0x459934
test ecx, ecx
je 0x4598c8
sub esp, 0xc
push edi
call ecx
add esp, 0x10
mov eax, dword [0x48240c]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x459934
cmp byte [eax], 0
je 0x459934
sub esp, 8
push edi
push eax
call fcn.004596f4
add esp, 0xa0
jmp 0x45993a
sub esp, 0xc
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
add esp, 0xc
mov esi, eax
sub esp, 0xc
lea ebx, [esp + 0x1c]
push 0
push ebx
push 2
push 0x469fc0
push esi
call sub.KERNEL32.DLL_WriteFile
push edi
call fcn.0044d2c0
add esp, 4
push 0
push ebx
push eax
push edi
push esi
call sub.KERNEL32.DLL_WriteFile
push 0
push ebx
push 2
push 0x469fc0
push esi
call sub.KERNEL32.DLL_WriteFile
add esp, 0xc
add esp, 0x90
pop esi
pop edi
pop ebx
ret
Function at 0x45a7bc
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [0x48a430]
test eax, eax
je 0x45a7f1
mov ecx, dword [eax]
test ecx, ecx
je 0x45a854
add eax, 4
xor edi, edi
nop
cmp byte [ecx], 1
sbb edi, 0
inc edi
mov ecx, dword [eax]
add eax, 4
test ecx, ecx
jne 0x45a7dc
jmp 0x45a880
mov esi, dword [0x48a468]
test esi, esi
jne 0x45a81e
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov esi, eax
mov dword [0x48a468], esi
test esi, esi
jne 0x45a81e
mov dword [esp], str.GetEnvironmentStrings_failed
call fcn.0045995c
mov esi, dword [0x48a468]
mov dword [esp], esi
call fcn.0044d2c0
test eax, eax
je 0x45a858
xor ebx, ebx
xor edi, edi
mov ebp, esi
nop word cs:[eax + eax]
lea ebx, [eax + ebx + 1]
inc edi
lea ebp, [ebp + eax + 1]
mov dword [esp], ebp
call fcn.0044d2c0
test eax, eax
jne 0x45a83c
inc ebx
jmp 0x45a85f
xor edi, edi
jmp 0x45a880
mov ebx, 1
xor edi, edi
mov dword [esp], ebx
call fcn.0044a5b4
mov dword [0x48a42c], eax
test eax, eax
je 0x45a8d9
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0044cf90
lea eax, [edi + 4]
mov dword [0x48a434], eax
add edi, 5
mov dword [esp], edi
mov dword [esp + 4], 4
call fcn.0044a598
mov esi, eax
test esi, esi
je 0x45a8d9
mov edi, dword [0x48a430]
test edi, edi
je 0x45a8dd
mov edx, dword [edi]
test edx, edx
je 0x45a916
lea eax, [edi + 4]
xor ecx, ecx
nop word [eax + eax]
cmp byte [edx], 0
je 0x45a8cc
mov edx, dword [eax - 4]
mov dword [esi + ecx*4], edx
jmp 0x45a8cd
dec ecx
inc ecx
mov edx, dword [eax]
add eax, 4
test edx, edx
jne 0x45a8bc
jmp 0x45a912
xor eax, eax
jmp 0x45a929
mov ebx, dword [0x48a42c]
mov dword [esp], ebx
call fcn.0044d2c0
test eax, eax
je 0x45a91e
mov ebp, esi
nop word cs:[eax + eax]
mov dword [ebp], ebx
lea ebx, [ebx + eax + 1]
mov dword [esp], ebx
call fcn.0044d2c0
add ebp, 4
test eax, eax
jne 0x45a8fc
test edi, edi
je 0x45a91e
mov dword [esp], edi
call fcn.0044a5c4
mov dword [0x48a430], esi
mov eax, 1
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x45aff4
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov ebp, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
mov dword [esp + 4], 1
mov dword [esp + 8], esi
cmp ebx, 1
jne 0x45b055
mov eax, dword [0x48a4ac]
lea ecx, [eax + 1]
mov dword [0x48a4ac], ecx
test eax, eax
jne 0x45b055
call sub.KERNEL32.DLL_GetEnvironmentStringsW
mov dword [0x48a46c], eax
sub esp, 0xc
push dword [esi + 0x44]
call fcn.0044e4e8
add esp, 8
lea eax, [esp + 0xc]
push 0
push eax
call fcn.0045adcc
add esp, 0x10
push ebp
push ebx
push edi
push dword [esi + 0x18]
call fcn.0045b940
mov esi, eax
test ebx, ebx
jne 0x45b0a8
dec dword [0x48a4ac]
jne 0x45b0a8
sub esp, 0xc
push edi
call fcn.00459bac
add esp, 8
lea eax, [esp + 0xc]
push 1
push eax
call fcn.0045adcc
add esp, 0x10
mov eax, dword [0x48a46c]
test eax, eax
je 0x45b0a8
sub esp, 0xc
push eax
call sub.KERNEL32.DLL_FreeEnvironmentStringsW
add esp, 0xc
mov dword [0x48a46c], 0
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x45b5d8
Capabilities:
Create thread

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, edx
mov ebx, ecx
cmp edi, 0xf
jg 0x45b601
test edi, edi
je 0x45b601
call fcn.004597c4
mov dword [eax], 0x13
mov eax, 0xffffffff
jmp 0x45b687
call fcn.0045b2a4
mov esi, eax
test esi, esi
je 0x45b655
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov dword [esi + 4], ebp
mov dword [esi + 0x14], ebx
mov dword [esi + 0x58], eax
sub esp, 8
lea eax, [esp + 0x10]
push eax
push ecx
push esi
push 0x45b778
push edi
push edx
call sub.KERNEL32.DLL_CreateThread
add esp, 8
test eax, eax
je 0x45b667
mov ecx, dword [esp + 0x2c]
mov dword [esi + 8], eax
test ecx, ecx
je 0x45b687
mov edx, dword [esp + 8]
mov dword [ecx], edx
jmp 0x45b687
call fcn.004597c4
mov dword [eax], 8
mov eax, 0xffffffff
jmp 0x45b687
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x718
jne 0x45b682
sub esp, 0xc
push 0x59
call fcn.0044f12c
add esp, 0x10
jmp 0x45b687
call fcn.0044f1cc
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x45b7a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push edi
push esi
sub esp, 0x64
mov esi, dword [esp + 0x70]
mov dword [esp], 0x48a4bc
call sub.KERNEL32.DLL_EnterCriticalSection
sub esp, 4
mov eax, dword [0x48d96c]
cmp eax, 0x232
jl 0x45b80a
mov eax, dword [esp + 0x74]
mov byte [esp + 0x24], 0
mov dword [esp + 0x20], 0x20726f72
mov dword [esp + 0x1c], 0x72652065
mov dword [esp + 0x18], 0x726f6870
mov dword [esp + 0x14], 0x616d6553
mov dword [esp + 4], eax
lea edi, [esp + 0x14]
mov dword [esp], edi
call fcn.0044d174
mov dword [esp], edi
call fcn.0045995c
mov eax, dword [0x48d96c]
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x48a4bc]
mov dword [esp], eax
call sub.KERNEL32.DLL_InitializeCriticalSection
sub esp, 4
mov eax, dword [0x48d96c]
lea ecx, [eax + 1]
mov dword [0x48d96c], ecx
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x48a4bc]
mov dword [esi], eax
mov dword [esp], 0x48a4bc
call sub.KERNEL32.DLL_LeaveCriticalSection
add esp, 0x60
pop esi
pop edi
ret

Function at 0x45b850
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push esi
sub esp, 0x58
mov eax, dword [esp + 0x60]
mov byte [esp + 0x18], 0
mov dword [esp + 0x14], 0x20726f72
mov dword [esp + 0x10], 0x72652065
mov dword [esp + 0xc], 0x726f6870
mov dword [esp + 8], 0x616d6553
mov dword [esp + 4], eax
lea esi, [esp + 8]
mov dword [esp], esi
call fcn.0044d174
mov dword [esp], esi
call fcn.0045995c
add esp, 0x58
pop esi
ret

Function at 0x45fd8c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x48dd9c]
mov dword [esp], eax
call fcn.004608ba
sub esp, 4
mov esi, eax
test esi, esi
je 0x45fdf3
xor edi, edi
nop
cmp edi, 3
ja 0x45fdf3
inc edi
xor ebx, ebx
xor eax, eax
nop word [eax + eax]
cmp byte [ebx*8 + 0x48dda0], 0
je 0x45fde9
mov ecx, dword [ebx*8 + 0x48dda4]
test ecx, ecx
je 0x45fde9
mov edx, dword [esi + ebx*4]
test edx, edx
je 0x45fde9
mov dword [esi + ebx*4], 0
mov dword [esp], edx
call ecx
mov eax, 1
inc ebx
cmp ebx, 0x32
jne 0x45fdbc
test eax, eax
jne 0x45fdac
add esp, 0x10
pop esi
pop edi
pop ebx
ret
Function at 0x404ce9
Capabilities:
Shutdown system

Disassembly:
push ebp
push ebx
mov edx, 9
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x404cf0
lea eax, [esp + 0x20]
push eax
push 0x28
call sub.KERNEL32.dll_GetCurrentProcess
push eax
call sub.ADVAPI32.DLL_OpenProcessToken
lea ebp, [esp]
lea eax, [ebp + 4]
push eax
push str.SeShutdownPrivilege
push 0
call sub.ADVAPI32.DLL_LookupPrivilegeValueW
mov dword [ebp], 1
mov dword [ebp + 0xc], 2
push 0
push 0
push 0
lea eax, [esp + 0xc]
push eax
push 0
push dword [esp + 0x34]
call sub.ADVAPI32.DLL_AdjustTokenPrivileges
push 0
push dword [esp + 0x34]
call sub.USER32.DLL_ExitWindowsEx
xor eax, eax
add esp, 0x24
pop ebx
pop ebp
ret 4

Function at 0x406176
Capabilities:
Get common file path

Disassembly:
xor eax, eax
push eax
push eax
mov eax, dword [esp + 0x10]
mov dword [0x46bdcc], eax
mov eax, dword [0x46bdcc]
push eax
push eax
push 0x104
call fcn.00428df0
add dword [0x46bdcc], 2
lea eax, [esp + 4]
push eax
call fcn.004299b0
lea eax, [esp + 4]
push eax
push 0x1a
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
mov eax, dword [esp]
push eax
push dword [esp + 8]
call sub.SHELL32.DLL_SHGetPathFromIDListW
cmp byte [esp + 0xc], 0
je 0x406224
mov eax, dword [0x46bdcc]
push eax
push eax
push 1
push dword [esp + 0xc]
call fcn.00428c10
add dword [0x46bdcc], 2
mov edx, 0x43956a
pop ecx
mov dword [0x46bdcc], ecx
add ecx, dword [0x465cec]
call fcn.00429a30
jne 0x406224
mov edx, dword [esp]
push dword [0x46bdcc]
call fcn.00429950
mov edx, 0x43956a
call fcn.00429950
lea eax, [esp + 4]
push eax
call fcn.004299b0
mov edx, dword [esp]
push dword [0x46bdcc]
call fcn.00429950
pop eax
add eax, dword [0x465cec]
jmp 0x40624b
push dword [esp]
call fcn.00429a70
add esp, 8
ret 4

Function at 0x406259
Capabilities:
Get common file path

Disassembly:
xor eax, eax
push eax
push eax
mov eax, dword [esp + 0x10]
mov dword [0x46bdcc], eax
mov eax, dword [0x46bdcc]
push eax
push eax
push 0x104
call fcn.00428df0
add dword [0x46bdcc], 2
lea eax, [esp + 4]
push eax
call fcn.004299b0
lea eax, [esp + 4]
push eax
push 0x23
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
mov eax, dword [esp]
push eax
push dword [esp + 8]
call sub.SHELL32.DLL_SHGetPathFromIDListW
cmp byte [esp + 0xc], 0
je 0x406307
mov eax, dword [0x46bdcc]
push eax
push eax
push 1
push dword [esp + 0xc]
call fcn.00428c10
add dword [0x46bdcc], 2
mov edx, 0x43956a
pop ecx
mov dword [0x46bdcc], ecx
add ecx, dword [0x465cec]
call fcn.00429a30
jne 0x406307
mov edx, dword [esp]
push dword [0x46bdcc]
call fcn.00429950
mov edx, 0x43956a
call fcn.00429950
lea eax, [esp + 4]
push eax
call fcn.004299b0
mov edx, dword [esp]
push dword [0x46bdcc]
call fcn.00429950
pop eax
add eax, dword [0x465cec]
jmp 0x40632e
push dword [esp]
call fcn.00429a70
add esp, 8
ret 4
Function at 0x40633c
Capabilities:
Get common file path

Disassembly:
xor eax, eax
push eax
push eax
mov eax, dword [esp + 0x10]
mov dword [0x46bdcc], eax
mov eax, dword [0x46bdcc]
push eax
push eax
push 0x104
call fcn.00428df0
add dword [0x46bdcc], 2
lea eax, [esp + 4]
push eax
call fcn.004299b0
lea eax, [esp + 4]
push eax
push 0
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
mov eax, dword [esp]
push eax
push dword [esp + 8]
call sub.SHELL32.DLL_SHGetPathFromIDListW
cmp byte [esp + 0xc], 0
je 0x4063ea
mov eax, dword [0x46bdcc]
push eax
push eax
push 1
push dword [esp + 0xc]
call fcn.00428c10
add dword [0x46bdcc], 2
mov edx, 0x43956a
pop ecx
mov dword [0x46bdcc], ecx
add ecx, dword [0x465cec]
call fcn.00429a30
jne 0x4063ea
mov edx, dword [esp]
push dword [0x46bdcc]
call fcn.00429950
mov edx, 0x43956a
call fcn.00429950
lea eax, [esp + 4]
push eax
call fcn.004299b0
mov edx, dword [esp]
push dword [0x46bdcc]
call fcn.00429950
pop eax
add eax, dword [0x465cec]
jmp 0x406411
push dword [esp]
call fcn.00429a70
add esp, 8
ret 4

Function at 0x40641f
Capabilities:
Get common file path

Disassembly:
xor eax, eax
push eax
push eax
mov eax, dword [esp + 0x10]
mov dword [0x46bdcc], eax
mov eax, dword [0x46bdcc]
push eax
push eax
push 0x104
call fcn.00428df0
add dword [0x46bdcc], 2
lea eax, [esp + 4]
push eax
call fcn.004299b0
lea eax, [esp + 4]
push eax
push 0x19
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
mov eax, dword [esp]
push eax
push dword [esp + 8]
call sub.SHELL32.DLL_SHGetPathFromIDListW
cmp byte [esp + 0xc], 0
je 0x4064cd
mov eax, dword [0x46bdcc]
push eax
push eax
push 1
push dword [esp + 0xc]
call fcn.00428c10
add dword [0x46bdcc], 2
mov edx, 0x43956a
pop ecx
mov dword [0x46bdcc], ecx
add ecx, dword [0x465cec]
call fcn.00429a30
jne 0x4064cd
mov edx, dword [esp]
push dword [0x46bdcc]
call fcn.00429950
mov edx, 0x43956a
call fcn.00429950
lea eax, [esp + 4]
push eax
call fcn.004299b0
mov edx, dword [esp]
push dword [0x46bdcc]
call fcn.00429950
pop eax
add eax, dword [0x465cec]
jmp 0x4064f4
push dword [esp]
call fcn.00429a70
add esp, 8
ret 4
Function at 0x406502
Capabilities:
Get disk size

Disassembly:
push ebp
push ebx
push edi
mov edx, 0xb
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40650a
mov eax, dword [esp + 0x40]
mov dword [0x46bdcc], eax
mov edx, dword [esp + 0x3c]
lea ecx, [esp]
call fcn.0040a000
push 1
call sub.KERNEL32.dll_SetErrorMode
mov eax, dword [0x46bdcc]
push eax
push eax
push 3
push dword [esp + 0xc]
call fcn.00428e40
lea eax, [esp + 4]
push eax
call fcn.004299b0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.KERNEL32.dll_GetDiskFreeSpaceExW
mov ebx, eax
and ebx, ebx
jne 0x40657e
mov dword [esp + 0x1c], 0
jmp 0x40659a
lea ebp, [esp + 0x14]
mov ebx, dword [ebp]
sar ebx, 0x14
and ebx, 0xfff
mov edi, dword [ebp + 4]
shl edi, 0xc
or ebx, edi
mov dword [esp + 0x1c], ebx
push 0
call sub.KERNEL32.dll_SetErrorMode
mov ebx, dword [esp + 0x1c]
and ebx, ebx
jne 0x4065c8
mov edx, 0x43a3c2
push dword [0x46bdcc]
call fcn.00429950
pop eax
add eax, dword [0x465cec]
jmp 0x4066ae
mov ebx, dword [esp + 0x1c]
cmp ebx, 0x400
jle 0x406649
fild dword [esp + 0x1c]
fdiv dword [0x43a81c]
fstp dword [esp + 0x20]
mov edx, 0x43a512
lea ecx, [esp + 0x24]
call fcn.0040a008
mov eax, dword [0x46bdcc]
push eax
push eax
push 1
mov eax, dword [0x46bdcc]
push eax
push eax
push 1
push dword [esp + 0x38]
call fcn.00428eb0
mov edx, dword [0x465cec]
add dword [esp], edx
call fcn.00428c10
add dword [0x46bdcc], 2
mov edx, 0x4392c0
pop ecx
mov dword [0x46bdcc], ecx
add ecx, dword [0x465cec]
call fcn.00429a30
jne 0x406647
mov dword [esp + 0x28], 1
jmp 0x40666e
push dword [esp + 0x1c]
fild dword [esp]
fstp dword [esp]
pop eax
mov dword [esp + 0x20], eax
mov edx, 0x439f8a
lea ecx, [esp + 0x24]
call fcn.0040a008
mov dword [esp + 0x28], 0
mov eax, dword [0x46bdcc]
push eax
push eax
push dword [esp + 0x30]
push dword [esp + 0x2c]
call fcn.00428eb0
mov edx, 0x4391b2
call fcn.00429950
mov edx, dword [esp + 0x28]
call fcn.00429950
pop eax
add eax, dword [0x465cec]
jmp 0x4066ae
push dword [esp]
call fcn.00429a70
push dword [esp + 0x24]
call fcn.00429a70
add esp, 0x2c
pop edi
pop ebx
pop ebp
ret 4

Function at 0x4066c8
Capabilities:
Get common file path

Disassembly:
xor eax, eax
push eax
push eax
mov eax, dword [esp + 0x10]
mov dword [0x46bdcc], eax
mov eax, dword [0x46bdcc]
push eax
push eax
push 0x104
call fcn.00428df0
add dword [0x46bdcc], 2
lea eax, [esp + 4]
push eax
call fcn.004299b0
lea eax, [esp + 4]
push eax
push 5
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
mov eax, dword [esp]
push eax
push dword [esp + 8]
call sub.SHELL32.DLL_SHGetPathFromIDListW
cmp byte [esp + 0xc], 0
je 0x406776
mov eax, dword [0x46bdcc]
push eax
push eax
push 1
push dword [esp + 0xc]
call fcn.00428c10
add dword [0x46bdcc], 2
mov edx, 0x43956a
pop ecx
mov dword [0x46bdcc], ecx
add ecx, dword [0x465cec]
call fcn.00429a30
jne 0x406776
mov edx, dword [esp]
push dword [0x46bdcc]
call fcn.00429950
mov edx, 0x43956a
call fcn.00429950
lea eax, [esp + 4]
push eax
call fcn.004299b0
mov edx, dword [esp]
push dword [0x46bdcc]
call fcn.00429950
pop eax
add eax, dword [0x465cec]
jmp 0x40679d
push dword [esp]
call fcn.00429a70
add esp, 8
ret 4
Function at 0x4067ab
Capabilities:
Get common file path

Disassembly:
xor eax, eax
push eax
push eax
mov eax, dword [esp + 0x10]
mov dword [0x46bdcc], eax
mov eax, dword [0x46bdcc]
push eax
push eax
push 0x104
call fcn.00428df0
add dword [0x46bdcc], 2
lea eax, [esp + 4]
push eax
call fcn.004299b0
lea eax, [esp + 4]
push eax
push 0x2e
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
mov eax, dword [esp]
push eax
push dword [esp + 8]
call sub.SHELL32.DLL_SHGetPathFromIDListW
cmp byte [esp + 0xc], 0
je 0x406859
mov eax, dword [0x46bdcc]
push eax
push eax
push 1
push dword [esp + 0xc]
call fcn.00428c10
add dword [0x46bdcc], 2
mov edx, 0x43956a
pop ecx
mov dword [0x46bdcc], ecx
add ecx, dword [0x465cec]
call fcn.00429a30
jne 0x406859
mov edx, dword [esp]
push dword [0x46bdcc]
call fcn.00429950
mov edx, 0x43956a
call fcn.00429950
lea eax, [esp + 4]
push eax
call fcn.004299b0
mov edx, dword [esp]
push dword [0x46bdcc]
call fcn.00429950
pop eax
add eax, dword [0x465cec]
jmp 0x406880
push dword [esp]
call fcn.00429a70
add esp, 8
ret 4

Function at 0x40688e
Capabilities:
Get common file path

Disassembly:
xor eax, eax
push eax
push eax
mov eax, dword [esp + 0x10]
mov dword [0x46bdcc], eax
mov eax, dword [0x46bdcc]
push eax
push eax
push 0x104
call fcn.00428df0
add dword [0x46bdcc], 2
lea eax, [esp + 4]
push eax
call fcn.004299b0
lea eax, [esp + 4]
push eax
push 0x14
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
mov eax, dword [esp]
push eax
push dword [esp + 8]
call sub.SHELL32.DLL_SHGetPathFromIDListW
cmp byte [esp + 0xc], 0
je 0x40693c
mov eax, dword [0x46bdcc]
push eax
push eax
push 1
push dword [esp + 0xc]
call fcn.00428c10
add dword [0x46bdcc], 2
mov edx, 0x43956a
pop ecx
mov dword [0x46bdcc], ecx
add ecx, dword [0x465cec]
call fcn.00429a30
jne 0x40693c
mov edx, dword [esp]
push dword [0x46bdcc]
call fcn.00429950
mov edx, 0x43956a
call fcn.00429950
lea eax, [esp + 4]
push eax
call fcn.004299b0
mov edx, dword [esp]
push dword [0x46bdcc]
call fcn.00429950
pop eax
add eax, dword [0x465cec]
jmp 0x406963
push dword [esp]
call fcn.00429a70
add esp, 8
ret 4

Function at 0x406a48
Capabilities:
Get common file path

Disassembly:
xor eax, eax
push eax
push eax
mov eax, dword [esp + 0x10]
mov dword [0x46bdcc], eax
mov eax, dword [0x46bdcc]
push eax
push eax
push 0x104
call fcn.00428df0
add dword [0x46bdcc], 2
lea eax, [esp + 4]
push eax
call fcn.004299b0
lea eax, [esp + 4]
push eax
push 2
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
mov eax, dword [esp]
push eax
push dword [esp + 8]
call sub.SHELL32.DLL_SHGetPathFromIDListW
cmp byte [esp + 0xc], 0
je 0x406af6
mov eax, dword [0x46bdcc]
push eax
push eax
push 1
push dword [esp + 0xc]
call fcn.00428c10
add dword [0x46bdcc], 2
mov edx, 0x43956a
pop ecx
mov dword [0x46bdcc], ecx
add ecx, dword [0x465cec]
call fcn.00429a30
jne 0x406af6
mov edx, dword [esp]
push dword [0x46bdcc]
call fcn.00429950
mov edx, 0x43956a
call fcn.00429950
lea eax, [esp + 4]
push eax
call fcn.004299b0
mov edx, dword [esp]
push dword [0x46bdcc]
call fcn.00429950
pop eax
add eax, dword [0x465cec]
jmp 0x406b1d
push dword [esp]
call fcn.00429a70
add esp, 8
ret 4