joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4076a8
Capabilities:
Delete registry value

Disassembly:
push 0x424
mov eax, 0x58b686
call fcn.0055f097
push 0x208
xor esi, esi
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.00561510
lea eax, [ebp - 0x218]
push 0x58f9c4
push eax
call fcn.0056f7c8
lea eax, [ebp - 0x218]
push 0x590704
push eax
call fcn.00564c0b
add esp, 0x1c
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x430]
push eax
call fcn.0041afbf
lea ecx, [ebp - 0x430]
mov dword [ebp - 4], esi
call fcn.0041340c
test eax, eax
jne 0x4077b2
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x428]
push eax
mov ebx, 0xf003f
push ebx
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.WS2_32.dll_accept
call edi
test eax, eax
jne 0x4077b2
lea eax, [ebp - 0x424]
push eax
push ebx
push esi
push 0x58fd94
push dword [ebp - 0x428]
call edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4077a7
push 0x208
lea eax, [ebp - 0x420]
push esi
push eax
call fcn.00561510
push 0x58fda0
push 0x58f9c4
lea eax, [ebp - 0x420]
push 0x58f960
push eax
call fcn.00402c17
add esp, 0x1c
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x424]
call edi
push dword [ebp - 0x428]
call edi
xor esi, esi
inc esi
lea ecx, [ebp - 0x430]
call fcn.0041afd4
mov eax, esi
call fcn.0055f052
ret

Function at 0x407fe1
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
push edi
push str.kernel32.dll
mov esi, ecx
call ebx
mov dword [esi], eax
test eax, eax
je 0x408062
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNativeSystemInfo
push eax
call edi
push str.IsWow64Process
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.Wow64DisableWow64FsRedirection
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.Wow64RevertWow64FsRedirection
push dword [esi]
mov dword [esi + 0x18], eax
call edi
push str.GetSystemWow64DirectoryW
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push str.advapi32.dll
mov dword [esi + 0x10], eax
call ebx
mov dword [esi + 4], eax
test eax, eax
je 0x408062
mov ebx, str.Wow64RevertWow64FsRedirection
push ebx
push eax
call edi
push ebx
push dword [esi + 4]
mov dword [esi + 0x20], eax
call edi
mov dword [esi + 0x1c], eax
xor eax, eax
inc eax
jmp 0x408064
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x4084e5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.0055f140
mov eax, dword [0x617a54]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2008], eax
call fcn.004083e5
test eax, eax
je 0x408616
push esi
push edi
xor edi, edi
push edi
call fcn.0056f687
mov dword [ebp - 0x2014], eax
lea eax, [ebp - 0x2014]
push eax
mov dword [ebp - 0x2010], edx
call fcn.005717d6
pop ecx
pop ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push dword [ebp - 0x2008]
mov ecx, dword [esi + 0x10]
push eax
push dword [esi]
mov eax, dword [esi + 0x14]
inc ecx
push dword [esi + 4]
add eax, 0x76c
push dword [esi + 8]
push dword [esi + 0xc]
push ecx
push eax
lea eax, [ebp - 0x2004]
push str.__d__d__d__d__d__d___d_:_s
push eax
call fcn.004081a2
push ebx
call fcn.0040954c
xor ecx, ecx
inc ecx
test al, al
push 0x5908e4
push ebx
cmovne edi, ecx
call fcn.00571198
mov esi, eax
add esp, 0x34
test esi, esi
je 0x408614
test edi, edi
jne 0x4085b7
push esi
push 2
lea eax, [ebp - 0x200c]
mov dword [ebp - 0x200c], 0xfeff
push 1
push eax
call fcn.005714f4
add esp, 0x10
lea eax, [ebp - 0x2004]
push eax
call fcn.00564b19
push esi
add eax, eax
push eax
lea eax, [ebp - 0x2004]
push 1
push eax
call fcn.005714f4
push esi
push 2
lea eax, [ebp - 0x2008]
mov dword [ebp - 0x2008], 0xd
push 1
push eax
call fcn.005714f4
push esi
push 2
lea eax, [ebp - 0x2008]
mov dword [ebp - 0x2008], 0xa
push 1
push eax
call fcn.005714f4
push esi
call fcn.0057123c
add esp, 0x38
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0055f02c
leave
ret
Function at 0x4093d4
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xe4
mov eax, 0x58b9bc
call fcn.0055f097
mov esi, dword [ebp + 8]
mov dword [ebp - 0xe8], esi
mov edi, 0x58f4c4
lea ecx, [ebp - 0x28]
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call fcn.00401302
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 1
call fcn.0041b03f
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call fcn.0040954c
pop ecx
test al, al
je 0x409517
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
push ebx
cmovae eax, dword [ebp + 0xc]
push 0x80
push 4
push ebx
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40945e
push edi
mov ecx, esi
call fcn.00401302
jmp 0x409534
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xec], eax
inc eax
push eax
mov dword [ebp - 0xe8], eax
call fcn.0055f128
mov edi, eax
pop ecx
test edi, edi
jne 0x409488
push 0x58f4c4
jmp 0x409452
push dword [ebp - 0xe8]
push 0
push edi
call fcn.00561510
add esp, 0xc
lea eax, [ebp - 0xf0]
push 0
push eax
push dword [ebp - 0xec]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xec]
lea ecx, [ebp - 0xe4]
push edi
call fcn.0041b9f9
push edi
call fcn.0055f131
pop ecx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xe4]
call fcn.0041b24a
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.0040efcd
pop ecx
pop ecx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.004035d7
cmp dword [ebp - 0x30], 0
jbe 0x40950d
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00403df9
lea ecx, [ebp - 0x40]
call fcn.004014e8
xor ebx, ebx
mov byte [ebp - 0xe8], bl
lea eax, [ebp - 0x28]
push dword [ebp - 0xe8]
mov ecx, esi
mov dword [esi + 0x10], ebx
push eax
mov dword [esi + 0x14], ebx
call fcn.004035af
lea ecx, [ebp - 0x28]
call fcn.004014e8
lea ecx, [ebp + 0xc]
call fcn.004014e8
mov eax, esi
call fcn.0055f052
ret
Function at 0x409e17
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
je 0x409ec2
push ebx
push esi
push edi
xor ebx, ebx
push str.b69749abbfffc7f6494ec5c0eb4c7d2c
mov dword [ebp - 4], ebx
call fcn.00564b40
mov edi, dword [ebp + 0xc]
push edi
mov dword [ebp - 8], eax
call fcn.0055f128
push edi
push dword [ebp + 8]
mov esi, eax
push esi
call fcn.00560600
add esp, 0x14
mov edx, ebx
test edi, edi
je 0x409e72
mov ecx, ebx
mov al, byte [ecx + str.b69749abbfffc7f6494ec5c0eb4c7d2c]
xor byte [edx + esi], al
inc ecx
xor eax, eax
cmp ecx, dword [ebp - 8]
cmovge ecx, eax
inc edx
cmp edx, edi
jb 0x409e5b
cmp edi, 1
jle 0x409e94
cmp byte [esi], 0x37
jne 0x409e94
mov al, byte [esi + 1]
cmp al, 0x7a
je 0x409e87
cmp al, 0x5a
jne 0x409e94
lea eax, [ebp - 4]
push eax
push edi
push esi
call fcn.005591c0
mov ebx, eax
push esi
call fcn.0055f131
pop ecx
test ebx, ebx
je 0x409eb2
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x409eb2
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
jmp 0x409ebf
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a750
Capabilities:
Set registry value

Disassembly:
push 0x2c
mov eax, 0x58bc51
call fcn.0055f063
xor esi, esi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
call fcn.00407f60
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], esi
call fcn.00407f94
test eax, eax
mov edi, 0xf013f
lea eax, [ebp - 0x10]
push eax
jne 0x40a789
mov edi, 0xf003f
push edi
push esi
push str.SoftWare
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a7f9
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push edi
push esi
push esi
push esi
push 0x58f9c4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40a7c6
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40a7f9
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 0xc]
push 1
push esi
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x10]
call esi
lea ecx, [ebp - 0x38]
call fcn.00407f73
call fcn.0055f03d
ret 8
Function at 0x40acad
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x30
mov eax, 0x58bd15
call fcn.0055f063
xor esi, esi
mov dword [ebp - 0x18], 0x104
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
call fcn.00407f60
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], esi
call fcn.00407f94
test eax, eax
mov edi, 0xf013f
lea eax, [ebp - 0x10]
push eax
jne 0x40aced
mov edi, 0xf003f
push edi
push esi
push str.SoftWare
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ad4f
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push edi
push esi
push esi
push esi
push 0x58f9c4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40ad2a
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40ad4f
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x10]
call esi
lea ecx, [ebp - 0x3c]
call fcn.00407f73
call fcn.0055f03d
ret 8

Function at 0x40ae9c
Capabilities:
Read .ini file

Disassembly:
push 0x838
mov eax, 0x58bd3b
call fcn.0055f097
mov edi, ecx
mov ecx, dword [ebp + 0xc]
lea eax, [edi + 0x8c]
cmp dword [eax + 0x14], 8
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x844], ecx
jb 0x40aec7
mov eax, dword [eax]
push eax
push dword [ebp + 0x10]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
cmp esi, dword [ebp + 0x10]
jne 0x40af84
push 0x58f4c4
lea ecx, [ebp - 0x828]
call fcn.00401302
and dword [ebp - 4], 0
lea eax, [ebp - 0x810]
push 0x800
push 0
push eax
call fcn.00561510
push dword [ebp + 0x10]
lea eax, [ebp - 0x810]
push 0x590ba0
push eax
call fcn.00402c17
add esp, 0x18
lea eax, [ebp - 0x810]
cmp byte [edi + 5], 0
mov ecx, edi
push eax
push dword [ebp - 0x844]
lea eax, [ebp - 0x840]
push ebx
push eax
je 0x40af40
call fcn.0040adcd
jmp 0x40af45
call fcn.0040ae79
push eax
lea ecx, [ebp - 0x828]
call fcn.00402e2f
lea ecx, [ebp - 0x840]
call fcn.004014e8
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
cmovae eax, dword [ebp - 0x828]
push eax
call fcn.00570a34
pop ecx
lea ecx, [ebp - 0x828]
mov esi, eax
call fcn.004014e8
mov eax, esi
call fcn.0055f052
ret 0xc
Function at 0x40af8e
Capabilities:
Read .ini file

Disassembly:
push 0x82c
mov eax, 0x58bd85
call fcn.0055f097
mov edi, ecx
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x830], eax
mov eax, dword [ebp + 0x10]
push 0x800
mov dword [ebp - 0x82c], eax
lea eax, [ebp - 0x810]
push ecx
mov dword [ebp - 0x838], esi
push eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x834], ecx
call fcn.00561510
lea eax, [edi + 0x8c]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x40afeb
mov eax, dword [eax]
push eax
push 0x400
lea eax, [ebp - 0x810]
push eax
push ebx
push dword [ebp - 0x82c]
push dword [ebp - 0x830]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x810]
mov ecx, esi
push eax
call fcn.00401302
and dword [ebp - 4], 0
mov eax, esi
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x834], 1
jb 0x40b031
mov eax, dword [esi]
push ebx
push eax
call fcn.00564bcb
pop ecx
pop ecx
test eax, eax
jne 0x40b079
cmp byte [edi + 5], 0
lea eax, [ebp - 0x828]
push ebx
push dword [ebp - 0x82c]
mov ecx, edi
push dword [ebp - 0x830]
push eax
je 0x40b061
call fcn.0040adcd
jmp 0x40b066
call fcn.0040ae79
push eax
mov ecx, esi
call fcn.00402e2f
lea ecx, [ebp - 0x828]
call fcn.004014e8
mov eax, esi
call fcn.0055f052
ret 0x10
Function at 0x40c1af
Capabilities:
Read .ini file

Disassembly:
push 0x23c
mov eax, 0x58be7f
call fcn.0055f097
mov ebx, ecx
call fcn.0040aca1
mov esi, eax
push esi
call fcn.00564b19
pop ecx
push eax
lea edi, [ebx + 0xd4]
push esi
mov ecx, edi
call fcn.00401589
mov esi, str.BKPDFReader.ini
push esi
call fcn.00564b19
pop ecx
push eax
push esi
mov ecx, edi
call fcn.0040255e
push str.BKpdf
push 0x59076c
push str.BKApp
lea eax, [ebp - 0x230]
mov ecx, ebx
push eax
call fcn.0040af8e
lea esi, [ebx + 0xec]
push eax
mov ecx, esi
call fcn.00402e2f
lea ecx, [ebp - 0x230]
call fcn.004014e8
push str.BKpdf
mov ecx, esi
call fcn.00403ae7
test al, al
je 0x40c297
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00561510
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x40c256
mov edi, dword [edi]
push edi
push 0x104
lea eax, [ebp - 0x218]
mov edi, str.BKpdf
push eax
push edi
push 0x59076c
push str.BKApp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x218]
push eax
call fcn.00564b19
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00401589
jmp 0x40c29c
mov edi, str.BKpdf
push edi
mov ecx, esi
call fcn.00403ae7
test al, al
je 0x40c35c
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00561510
and dword [ebp - 0x220], 0
lea eax, [ebx + 0x5c]
and dword [ebp - 0x21c], 0
lea ecx, [ebp - 0x230]
add esp, 0xc
push eax
call fcn.00401cdd
and dword [ebp - 4], 0
push str.BKPDFReader.ini
call fcn.00564b19
pop ecx
push eax
push str.BKPDFReader.ini
lea ecx, [ebp - 0x230]
call fcn.0040255e
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push edi
push 0x59076c
push str.BKApp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x218]
push eax
call fcn.00564b19
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00401589
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.004014e8
push edi
mov ecx, esi
call fcn.00403ae7
test al, al
je 0x40c394
push edi
push 0x59076c
push str.BKApp
lea eax, [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.0040ae56
push eax
mov ecx, esi
call fcn.00402e2f
lea ecx, [ebp - 0x248]
call fcn.004014e8
call fcn.0055f052
ret

Function at 0x40d2f5
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.00564b19
mov dword [ebp - 4], eax
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0055f128
push dword [ebp + 8]
mov esi, eax
push esi
call fcn.0056f7c8
mov eax, dword [ebp - 4]
xor ebx, ebx
add esp, 0x10
xor edi, edi
inc ebx
test eax, eax
js 0x40d370
push 0x5c
pop ecx
cmp word [esi + edi*2], cx
jne 0x40d367
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.0040954c
pop ecx
test al, al
jne 0x40d35d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40d36e
mov eax, dword [ebp - 4]
push 0x5c
pop ecx
mov word [esi + edi*2], cx
inc edi
cmp edi, eax
jle 0x40d339
jmp 0x40d370
xor ebx, ebx
push esi
call fcn.0055f131
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x40d37e
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push 0x2b8
mov eax, 0x58bf17
call fcn.0055f097
mov esi, dword [ebp + 8]
push esi
call fcn.00564b19
pop ecx
cmp eax, 3
jb 0x40d581
push esi
call fcn.0040954c
pop ecx
test al, al
je 0x40d581
push esi
lea ecx, [ebp - 0x28]
call fcn.00401302
lea eax, [ebp - 0x28]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.0040ea16
mov ebx, 0x58f93c
pop ecx
test eax, eax
jne 0x40d3e1
push ebx
call fcn.00564b19
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.0040255e
xor eax, eax
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
call fcn.00401cdd
mov esi, 0x58f934
mov byte [ebp - 4], 2
push esi
call fcn.00564b19
pop ecx
push eax
push esi
lea ecx, [ebp - 0x70]
call fcn.0040255e
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x2c0]
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40d53c
lea eax, [ebp - 0x2c0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40d53c
push 0x2e
pop eax
cmp word [ebp - 0x294], ax
je 0x40d445
cmp word [ebp - 0x292], 0
je 0x40d445
cmp word [ebp - 0x292], ax
jne 0x40d484
cmp word [ebp - 0x290], 0
je 0x40d445
test byte [ebp - 0x2c0], 0x10
lea eax, [ebp - 0x28]
push eax
je 0x40d4f4
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
call fcn.00401cdd
lea eax, [ebp - 0x294]
mov byte [ebp - 4], 3
push eax
call fcn.00564b19
pop ecx
push eax
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040255e
push ebx
call fcn.00564b19
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x40]
call fcn.0040255e
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.0040d37e
pop ecx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.004014e8
jmp 0x40d445
lea ecx, [ebp - 0x58]
call fcn.00403df9
lea eax, [ebp - 0x294]
push eax
call fcn.00564b19
pop ecx
push eax
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x58]
call fcn.0040255e
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00401302
call fcn.0040e3a2
add esp, 0x18
jmp 0x40d445
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x20
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x70]
call fcn.004014e8
lea ecx, [ebp - 0x58]
call fcn.004014e8
lea ecx, [ebp - 0x28]
call fcn.004014e8
call fcn.0055f052
ret
Function at 0x40df27
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x617a54]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov bl, byte [0x618ec8]
test bl, bl
jne 0x40dfbe
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00561510
add esp, 0xc
lea eax, [ebp - 0x20c]
xor ebx, ebx
inc ebx
push ebx
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40dfb8
lea eax, [ebp - 0x20c]
push eax
call fcn.00570c11
lea eax, [ebp - 0x20c]
mov dword [esp], 0x590c54
push eax
call fcn.0056166a
pop ecx
pop ecx
test eax, eax
jne 0x40dfb0
lea eax, [ebp - 0x20c]
push str.documents_and_settingslocalservice
push eax
call fcn.0056166a
pop ecx
pop ecx
test eax, eax
je 0x40dfb8
mov byte [0x618ec8], bl
jmp 0x40dfbe
mov bl, byte [0x618ec8]
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0055f02c
leave
ret

Function at 0x40dfcd
Capabilities:
Get common file path

Disassembly:
push 0x138
mov eax, 0x58bfe8
call fcn.0055f097
mov al, byte [0x618ec9]
test al, al
jne 0x40e07e
push 0x104
xor esi, esi
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.00561510
add esp, 0xc
lea eax, [ebp - 0x114]
xor edi, edi
inc edi
push edi
push 0x1a
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x40e079
push str.config_systemprofile
lea ecx, [ebp - 0x144]
call fcn.004012d3
lea eax, [ebp - 0x114]
mov dword [ebp - 4], esi
push eax
lea ecx, [ebp - 0x12c]
call fcn.004012d3
push esi
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x12c]
call fcn.0040e3eb
movzx ecx, byte [0x618ec9]
cmp eax, 0xffffffff
cmovne ecx, edi
mov byte [0x618ec9], cl
lea ecx, [ebp - 0x12c]
call fcn.004035d7
lea ecx, [ebp - 0x144]
call fcn.004035d7
mov al, byte [0x618ec9]
call fcn.0055f052
ret
Function at 0x411755
Capabilities:
Get disk information
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa38
mov eax, dword [0x617a54]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x58f4c4
mov dword [ebp - 0xa38], ebx
push edi
call fcn.00564b19
pop ecx
push eax
push edi
mov ecx, ebx
call fcn.00401589
push 0x20a
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00561510
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x105
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x41196c
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
call ebx
mov esi, eax
test esi, esi
je 0x41196c
xor ecx, ecx
lea eax, [esi + 1]
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0055f128
mov edi, eax
pop ecx
test edi, edi
je 0x41196c
lea ecx, [esi*2 + 2]
push ecx
push 0
push edi
call fcn.00561510
add esp, 0xc
push edi
push esi
call ebx
test eax, eax
je 0x411965
mov eax, dword [0x5923e8]
mov ebx, 0x208
mov dword [ebp - 0xc], eax
mov ax, word [0x5923ec]
push ebx
mov word [ebp - 8], ax
call fcn.0055f128
mov esi, eax
pop ecx
test esi, esi
je 0x411965
push ebx
push 0
push esi
call fcn.00561510
movzx eax, word [edi]
add esp, 0xc
mov ebx, edi
push 0x104
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x4118ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x41194f
push esi
call fcn.0055f131
push 2
call fcn.0055f128
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41194f
push 2
push 0
push esi
call fcn.00561510
add esp, 0xc
lea eax, [ebp - 0xc]
push 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x41194f
push esi
call fcn.00564b19
push eax
mov dword [ebp - 0xa34], eax
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.0057323b
add esp, 0x10
test eax, eax
je 0x4118e6
movzx eax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4118ce
movzx eax, word [ebx]
test ax, ax
je 0x41194f
jmp 0x41184b
push 0x800
lea eax, [ebp - 0xa18]
push 0
push eax
call fcn.00561510
mov eax, dword [ebp - 0xa34]
lea ecx, [ebp - 0x218]
lea eax, [ecx + eax*2]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x58f960
lea eax, [ebp - 0xa18]
push 0x400
push eax
call fcn.00412066
add esp, 0x20
lea eax, [ebp - 0xa18]
lea ecx, [ebp - 0xa30]
push eax
call fcn.00401302
mov ecx, dword [ebp - 0xa38]
push eax
call fcn.00402e2f
lea ecx, [ebp - 0xa30]
call fcn.004014e8
push edi
call fcn.0055f131
pop ecx
test esi, esi
je 0x411961
push esi
call fcn.0055f131
pop ecx
mov al, 1
jmp 0x41196e
push edi
call fcn.0055f131
pop ecx
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055f02c
leave
ret