joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4076f4
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x220
mov eax, 0x4393a0
call fcn.004385bc
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
and dword [ebp - 0x228], 0
push 0x20a
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x21c]
push 0
push eax
mov dword [ebp - 0x22c], esi
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov dword [esi + 0x14], 7
add esp, 0xc
mov dword [esi + 0x10], edx
cmp dword [esi + 0x14], 8
jb 0x40774e
mov eax, dword [esi]
jmp 0x407750
mov eax, esi
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x220]
mov dword [ebp - 4], edx
push eax
push 0x20019
push edx
push ebx
push dword [ebp - 0x224]
mov dword [ebp - 0x228], 1
mov dword [ebp - 0x220], edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4077cd
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0x104
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push edi
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4077c1
lea eax, [ebp - 0x21c]
mov ecx, esi
push eax
call fcn.004041b8
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
call fcn.00438566
ret 0x10

Function at 0x4077d7
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x220
mov eax, 0x4393ea
call fcn.004385bc
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 0x20a
push ebx
push eax
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x224], ebx
call sub.VCRUNTIME140.dll_memset
mov dword [esi + 0x14], 7
add esp, 0xc
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], ebx
jb 0x407823
mov eax, dword [esi]
jmp 0x407825
mov eax, esi
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x220]
mov dword [ebp - 4], ebx
push eax
push 0x20019
push ebx
push edi
push SysStringLen
mov dword [ebp - 0x224], 1
mov dword [ebp - 0x220], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4078a3
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0x104
push eax
lea eax, [ebp - 0x21c]
push eax
push ebx
push ebx
push str.InstallPath
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407897
lea eax, [ebp - 0x21c]
mov ecx, esi
push eax
call fcn.004041b8
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
call fcn.00438566
ret 0xc
Function at 0x407d2a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x45b010]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20]
xor esi, esi
push eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], esi
call fcn.00405a51
cmp dword [eax + 0x14], 8
jb 0x407d59
mov eax, dword [eax]
lea ecx, [ebp - 0x24]
push ecx
push 0x20019
push esi
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
lea ecx, [ebp - 0x20]
push esi
neg ebx
push 1
sbb bl, bl
call fcn.004069d5
add bl, 1
je 0x407dc3
push 4
pop ebx
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], ebx
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x28], esi
push eax
lea eax, [ebp - 0x28]
push eax
push esi
push str.SupplyId
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407dba
cmp dword [ebp - 0x28], ebx
jne 0x407dba
mov eax, dword [ebp - 0x2c]
xor esi, esi
mov dword [edi], eax
inc esi
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00431fdc
mov esp, ebp
pop ebp
ret 4

Function at 0x407dd8
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x24c
mov eax, 0x43941d
call fcn.004385bc
mov esi, ecx
mov ebx, dword [ebp + 8]
xor ecx, ecx
mov edi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], ecx
mov word [ebp - 0x230], ax
push 0x208
push ecx
lea eax, [ebp - 0x218]
mov dword [ebp - 4], ecx
push eax
mov dword [ebp - 0x24c], ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x248]
mov ecx, esi
push eax
call fcn.00405a51
cmp dword [eax + 0x14], 8
jb 0x407e44
mov eax, dword [eax]
lea ecx, [ebp - 0x24c]
push ecx
push 0x20019
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 0
push 1
lea ecx, [ebp - 0x248]
mov esi, eax
call fcn.004069d5
test esi, esi
je 0x407e88
lea eax, [ebp - 0x230]
mov ecx, ebx
push eax
call fcn.004056a1
push 0
jmp 0x407f21
xor esi, esi
mov dword [ebp - 0x254], 0x208
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x250], esi
jb 0x407ea2
mov edi, dword [edi]
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x250]
push eax
push esi
push edi
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407f00
cmp dword [ebp - 0x250], 1
jne 0x407f00
cmp word [ebp - 0x218], si
jne 0x407edf
mov eax, esi
jmp 0x407eed
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00405894
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x230]
mov dword [ebp - 0x24c], esi
push eax
mov ecx, ebx
call fcn.004056a1
push esi
push 1
lea ecx, [ebp - 0x230]
call fcn.004069d5
mov eax, ebx
call fcn.00438566
ret 8
Function at 0x408035
Capabilities:
Read .ini file

Disassembly:
push 0x244
mov eax, 0x439485
call fcn.004385bc
mov esi, ecx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x21c]
mov edi, dword [ebp + 0x14]
and dword [ebp - 0x250], 0
push 0x208
push 0
push eax
call sub.VCRUNTIME140.dll_memset
pop ecx
pop ecx
lea eax, [ebp - 0x24c]
mov ecx, esi
push eax
call fcn.00408572
add esi, 0x2cc
cmp dword [esi + 0x14], 8
jb 0x408084
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x40808c
mov edi, dword [edi]
cmp dword [eax + 0x14], 8
jb 0x408094
mov eax, dword [eax]
push esi
push 0x104
lea ecx, [ebp - 0x21c]
mov esi, str.KeyName
push ecx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor edi, edi
lea ecx, [ebp - 0x24c]
push edi
push 1
call fcn.004069d5
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x234]
call fcn.00405907
push str.Title
push esi
mov dword [ebp - 4], edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x40811d
call fcn.004040eb
mov ecx, eax
call fcn.00407f38
test al, al
je 0x40811d
mov esi, 0x444378
cmp word [0x444378], di
jne 0x408108
mov eax, edi
jmp 0x408110
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
push eax
push esi
lea ecx, [ebp - 0x234]
call fcn.00405894
lea eax, [ebp - 0x234]
mov ecx, ebx
push eax
call fcn.004056a1
push edi
push 1
lea ecx, [ebp - 0x234]
call fcn.004069d5
mov eax, ebx
call fcn.00438566
ret 0x10

Function at 0x408143
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x45b010]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
push ecx
lea eax, [esp + 8]
mov esi, ecx
push eax
call fcn.00408572
add esi, 0x2cc
cmp dword [esi + 0x14], 8
jb 0x408173
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x40817b
mov eax, dword [eax]
push esi
push 0
push str.VMIndexBase
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0
push 1
lea ecx, [esp + 0xc]
mov esi, eax
call fcn.004069d5
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00431fdc
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4081ad
Capabilities:
Check if file exists

Disassembly:
push 0x270
mov eax, 0x4394ce
call fcn.004385bc
mov edi, ecx
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x103
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x21c]
push eax
call ebx
lea eax, [ebp - 0x21c]
lea esi, [edi + 0x2cc]
push eax
mov ecx, esi
call fcn.004041b8
push ecx
mov edx, esi
lea ecx, [ebp - 0x24c]
call fcn.004043bb
and dword [ebp - 4], 0
lea ecx, [ebp - 0x234]
mov edx, eax
mov dword [esp], str.Config.ini
call fcn.00405830
pop ecx
push eax
mov ecx, esi
call fcn.00405576
push 0
push 1
lea ecx, [ebp - 0x234]
call fcn.004069d5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24c]
push 0
push 1
call fcn.004069d5
cmp dword [esi + 0x14], 8
jb 0x408266
mov eax, dword [esi]
jmp 0x408268
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4082dd
lea eax, [ebp - 0x21c]
push eax
call ebx
lea eax, [ebp - 0x21c]
mov ecx, esi
push eax
call fcn.004041b8
push ecx
mov edx, esi
lea ecx, [ebp - 0x234]
call fcn.004043bb
xor ebx, ebx
lea ecx, [ebp - 0x24c]
inc ebx
mov edx, eax
mov dword [ebp - 4], ebx
mov dword [esp], str.Config.ini
call fcn.00405830
pop ecx
push eax
mov ecx, esi
call fcn.00405576
push 0
push ebx
lea ecx, [ebp - 0x24c]
call fcn.004069d5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
push 0
push ebx
call fcn.004069d5
jmp 0x4082e0
xor ebx, ebx
inc ebx
push 0x444394
lea ecx, [ebp - 0x264]
call fcn.00405907
lea eax, [ebp - 0x264]
mov dword [ebp - 4], 2
push eax
push ecx
push ecx
lea eax, [ebp - 0x27c]
mov ecx, edi
push eax
call fcn.00408035
push eax
lea ecx, [edi + 0x2b4]
call fcn.00405576
push 0
push ebx
lea ecx, [ebp - 0x27c]
call fcn.004069d5
push 0
push ebx
lea ecx, [ebp - 0x264]
call fcn.004069d5
call fcn.00438566
ret 4

Function at 0x4084bf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x45b010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
jne 0x4084e1
xor eax, eax
xor edx, edx
jmp 0x408560
push ebx
push 0x42
xor ebx, ebx
lea eax, [ebp - 0x48]
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 0x58], xmm0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x4c]
push eax
push 0x20019
push ebx
push esi
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408559
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0x40
push eax
lea eax, [ebp - 0x48]
push eax
push ebx
push ebx
push str.Version
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408550
lea eax, [ebp - 0x48]
mov ecx, edi
push eax
call fcn.004041b8
lea eax, [ebp - 0x58]
push eax
push edi
call fcn.004083c9
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x54]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00431fdc
mov esp, ebp
pop ebp
ret 8
Function at 0x408572
Capabilities:
Read .ini file

Disassembly:
push 0x45c
mov eax, 0x439501
call fcn.004385bc
mov esi, ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x44c]
xor ebx, ebx
push str.Product
mov dword [ebp - 0x468], ebx
call fcn.00405907
push str.Engine
push str.Product
mov dword [ebp - 4], ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x4085cb
cmp dword [esi + 0x318], ebx
jne 0x4085cb
cmp dword [esi + 0x31c], ebx
je 0x4086c6
push 0x20a
lea eax, [ebp - 0x224]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [esi + 0x318], ebx
je 0x40860b
push dword [esi + 0x10]
lea eax, [ebp - 0x224]
push str.Product
push str._s__d
push 0x104
push eax
call fcn.0040e39f
add esp, 0x14
jmp 0x408656
cmp dword [esi + 0x31c], ebx
je 0x408656
lea eax, [ebp - 0x464]
mov ecx, esi
push eax
call fcn.0040e382
cmp dword [eax + 0x14], 8
jb 0x408629
mov eax, dword [eax]
push eax
push str.Product
push str._s__s
lea eax, [ebp - 0x224]
push 0x104
push eax
call fcn.0040e39f
add esp, 0x14
lea ecx, [ebp - 0x464]
push ebx
push 1
call fcn.004069d5
push 0x20a
lea eax, [ebp - 0x434]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esi, 0x2cc
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x408679
mov esi, dword [esi]
push esi
push 0x104
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
je 0x4086c6
cmp word [ebp - 0x224], 0
jne 0x4086a5
mov eax, ebx
jmp 0x4086b3
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x44c]
call fcn.00405894
lea eax, [ebp - 0x44c]
mov ecx, edi
push eax
call fcn.004056a1
push ebx
push 1
lea ecx, [ebp - 0x44c]
call fcn.004069d5
mov eax, edi
call fcn.00438566
ret 8
Function at 0x40ee8b
Capabilities:
Check if file exists
Create directory

Disassembly:
push 4
mov eax, 0x438e0c
call fcn.00438588
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.00405c47
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0040ee64
mov esi, dword [ebp - 0x10]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
call edi
test eax, eax
jne 0x40eecc
push eax
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push esi
call edi
lea ecx, [esi - 0x10]
mov edi, eax
call fcn.00406620
mov eax, edi
call fcn.00438551
ret

Function at 0x40f554
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x45b010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x44]
push 0x40
push ebx
push eax
mov si, cx
mov dword [ebp - 0x54], ebx
call sub.VCRUNTIME140.dll_memset
movzx eax, si
push eax
lea eax, [ebp - 0x44]
push str.__c:
push eax
call fcn.0040f8af
add esp, 0x18
lea eax, [ebp - 0x44]
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40f5b1
xor al, al
jmp 0x40f614
push 0x229
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
lea eax, [ebp - 0x50]
push 0xc
push ebx
push eax
mov dword [esi + 4], 0x228
call dword [sym.imp.VCRUNTIME140.dll_memset]
add esp, 0x10
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x54]
mov dword [ebp - 0x50], ebx
push ebx
push eax
push 0x228
push esi
push 0xc
lea eax, [ebp - 0x50]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40f603
cmp dword [esi + 0x1c], 7
sete bl
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00431fdc
mov esp, ebp
pop ebp
ret
Function at 0x40f625
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x45b010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
movzx eax, cx
push eax
lea eax, [ebp - 0x44]
push str._c:_test.tmp
push eax
call fcn.0040f8af
add esp, 0xc
lea eax, [ebp - 0x44]
xor edi, edi
push edi
push 0x4000000
push 2
push edi
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40f6d8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x50]
push eax
push 4
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x50], edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x40f6d1
push edi
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x40f6d1
push edi
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], edi
push eax
push 4
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x40f6d1
mov ecx, dword [ebp - 0x48]
cmp ecx, dword [ebp - 0x4c]
jne 0x40f6d1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x40f6da
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00431fdc
mov esp, ebp
pop ebp
ret

Function at 0x40f79e
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x45b010]
xor eax, esp
mov dword [esp + 0x28], eax
and dword [esp + 0x1c], 0
xor eax, eax
push ebx
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x14], ebx
and dword [esp + 0x20], 0
push 0x43
mov dword [esp + 0x18], eax
mov eax, dword [0x445b4c]
mov dword [esp + 0x28], ebx
pop ebx
mov dword [esp + 0x2c], eax
mov ax, word [0x445b50]
push 2
pop edi
mov word [esp + 0x30], ax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edx, eax
mov esi, ebx
mov dword [esp + 0x10], edx
xor eax, eax
mov ecx, edi
inc eax
shl eax, cl
inc edi
test edx, eax
je 0x40f87b
lea eax, [esp + 0x2c]
mov word [esp + 0x2c], si
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x40f877
mov ecx, esi
call fcn.0040f554
test al, al
jne 0x40f877
mov ecx, esi
call fcn.0040f625
test al, al
je 0x40f877
xor eax, eax
push eax
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x40f877
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x1c], eax
jb 0x40f877
ja 0x40f864
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x18], eax
jbe 0x40f877
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
movzx ebx, si
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x10]
inc esi
cmp si, 0x5a
jbe 0x40f7f7
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x2c]
push eax
mov word [esp + 0x30], bx
call fcn.00405907
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00431fdc
mov esp, ebp
pop ebp
ret
Function at 0x40fe50
Capabilities:
Check for time delay via gettickcount
Delete file
Move file

Disassembly:
push 0x34
mov eax, 0x43a2d7
call fcn.004385bc
cmp dword [0x45e978], 0
je 0x40ffe2
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x45ec34]
cmp eax, 0x927c0
jb 0x40ffe2
mov eax, 0x400000
cmp dword [0x45e968], eax
jg 0x40ffe2
mov ebx, 0x800000
mov ecx, 0x45e968
lock xadd dword [ecx], ebx
cmp ebx, eax
je 0x40fecf
test ebx, ebx
je 0x40fecf
cmp ebx, eax
jle 0x40feb7
mov eax, 0xff800000
jmp 0x40ffde
lea eax, [ebx - 1]
cmp eax, 0x3ffffe
ja 0x40ffe2
mov eax, 0xffc00000
jmp 0x40ffde
call esi
cmp dword [0x45b030], 0xffffffff
mov dword [0x45ec34], eax
je 0x40ffd2
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x34]
xor esi, esi
push eax
push esi
mov edi, 0x45e980
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
mov eax, dword [0x45b030]
cmp dword [ebp - 0x18], esi
jb 0x40ffd2
ja 0x40ff19
cmp dword [ebp - 0x14], eax
jb 0x40ffd2
push edi
lea ecx, [ebp - 0x38]
call fcn.00406958
mov edi, str..old
mov dword [ebp - 4], esi
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
push eax
push edi
lea ecx, [ebp - 0x38]
call fcn.00404eb5
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [0x45e978]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x38]
mov dword [0x45e978], esi
push 0x45e980
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
sub esp, 0xc
mov byte [ebp - 4], 1
push 2
push ecx
push 0x40000000
push 0x45e980
lea ecx, [ebp - 0x40]
call fcn.00410817
test eax, eax
js 0x40ffbd
sub esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.0041075f
cmp byte [0x45e97c], 0
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x40], esi
mov dword [0x45e978], eax
je 0x40ffc7
push str.NewFile
push esi
push esi
call fcn.00410271
add esp, 0xc
jmp 0x40ffc0
mov esi, dword [ebp - 0x40]
test esi, esi
je 0x40ffc7
push esi
call edi
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx - 0x10]
call fcn.00406620
mov eax, 0xff800000
mov ecx, 0x45e968
sub eax, ebx
lock xadd dword [ecx], eax
call fcn.00438566
ret
Function at 0x40ffe8
Capabilities:
Delete file
Move file

Disassembly:
push 0x3c
mov eax, 0x43a31c
call fcn.004385bc
mov edi, ecx
mov dword [ebp - 0x40], edi
xor eax, eax
inc eax
lock xadd dword [0x45e96c], eax
inc eax
cmp eax, 1
jne 0x410167
xor ebx, ebx
mov dword [0x45b030], 0x400000
mov byte [ebp - 0x39], bl
call fcn.0040638e
push eax
lea ecx, [ebp - 0x48]
call fcn.004061a7
mov dword [ebp - 4], ebx
test edi, edi
jne 0x41005f
lea ecx, [ebp - 0x40]
call fcn.0040fd1b
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.00405ca0
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x40]
lea ecx, [ecx - 0x10]
call fcn.00406620
mov esi, dword [ebp - 0x48]
mov edi, esi
mov dword [ebp - 0x40], esi
jmp 0x410062
mov esi, dword [ebp - 0x48]
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
push edi
push 0x445d24
push 0x104
push 0x45e980
call fcn.0040e39f
add esp, 0x14
lea edi, [ebp - 0x38]
xor eax, eax
push 9
pop ecx
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x40]
lea eax, [ebp - 0x38]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
cmp dword [ebp - 0x1c], ebx
ja 0x4100a8
cmp dword [ebp - 0x18], 0x400000
jb 0x4100f3
push edi
lea ecx, [ebp - 0x40]
call fcn.00406958
push 2
pop eax
push str..old
mov byte [ebp - 4], al
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
push eax
push str..old
lea ecx, [ebp - 0x40]
call fcn.00404eb5
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x40]
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [ebp - 0x40]
mov byte [ebp - 0x39], 1
lea ecx, [ecx - 0x10]
call fcn.00406620
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
sub esp, 0xc
mov byte [ebp - 4], 3
cmp byte [ebp - 0x39], 0
push 4
pop eax
push 2
pop ecx
cmovne eax, ecx
push eax
push ecx
push 0x40000000
push edi
lea ecx, [ebp - 0x44]
call fcn.00410817
test eax, eax
js 0x410151
sub esp, 0xc
lea ecx, [ebp - 0x44]
call fcn.0041075f
cmp byte [0x45e97c], 0
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x44], ebx
mov dword [0x45e978], eax
je 0x41015f
push str.BEGAIN_n
push ebx
push ebx
call fcn.00410271
add esp, 0xc
jmp 0x410154
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x41015f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi - 0x10]
call fcn.00406620
call fcn.00438566
ret