joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ba0a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x425d40], ebx
push esi
push edi
jne 0x41ba8a
push 0x420b98
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41bac5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x420b8c
push edi
call esi
test eax, eax
mov dword [0x425d40], eax
je 0x41bac5
push 0x420b7c
push edi
call esi
push 0x420b68
push edi
mov dword [0x425d44], eax
call esi
cmp dword [0x425ba4], 2
mov dword [0x425d48], eax
jne 0x41ba8a
push 0x420b4c
push edi
call esi
test eax, eax
mov dword [0x425d50], eax
je 0x41ba8a
push 0x420b34
push edi
call esi
mov dword [0x425d4c], eax
mov eax, dword [0x425d4c]
test eax, eax
je 0x41bacf
call eax
test eax, eax
je 0x41bab6
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x425d50]
test eax, eax
je 0x41bab6
test byte [ebp - 8], 1
jne 0x41bacf
cmp dword [0x425bb0], 4
jb 0x41bac9
or byte [ebp + 0x12], 0x20
jmp 0x41baee
xor eax, eax
jmp 0x41bafe
or byte [ebp + 0x12], 4
jmp 0x41baee
mov eax, dword [0x425d44]
test eax, eax
je 0x41baee
call eax
mov ebx, eax
test ebx, ebx
je 0x41baee
mov eax, dword [0x425d48]
test eax, eax
je 0x41baee
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x425d40]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41bf73
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x41c149
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x425ee0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x41c149
test cl, 0x48
je 0x41bfde
cmp byte [eax + 5], 0xa
je 0x41bfde
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41c030
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x41c018
call fcn.00418421
mov dword [eax], 9
call fcn.0041842a
mov dword [eax], esi
jmp 0x41c028
cmp eax, 0x6d
je 0x41c149
push eax
call fcn.00418433
pop ecx
or eax, 0xffffffff
jmp 0x41c14b
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x41c144
test eax, eax
je 0x41c057
cmp byte [ebx], 0xa
jne 0x41c057
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x41c060
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x41c13e
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x41c12e
cmp al, 0xd
je 0x41c092
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x41c120
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x41c0ac
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x41c0a7
add dword [ebp + 0x10], 2
jmp 0x41c100
mov dword [ebp + 0x10], eax
jmp 0x41c11c
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41c0d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41c11c
cmp dword [ebp - 0xc], 0
je 0x41c11c
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x41c0f5
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x41c100
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x41c11f
cmp ebx, dword [ebp + 0xc]
jne 0x41c105
cmp byte [ebp - 1], 0xa
jne 0x41c105
mov byte [ebx], 0xa
jmp 0x41c11f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041d6b8
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41c120
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x41c076
jmp 0x41c13e
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x41c13e
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x41c14b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41c3c1
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x42482c]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x41c3fd
xor eax, eax
jmp 0x41c567
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x425ee0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x41c43b
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.0041d6b8
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41c4d5
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x41c538
jmp 0x41c45f
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x41c49a
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41c48b
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x41c46b
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41c4f9
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x41c502
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x41c45d
jmp 0x41c502
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41c4f9
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x41c502
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x41c562
cmp dword [ebp - 0x68], eax
je 0x41c535
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x41c52a
call fcn.00418421
mov dword [eax], 9
call fcn.0041842a
mov dword [eax], esi
jmp 0x41c55d
push dword [ebp - 0x68]
call fcn.00418433
pop ecx
jmp 0x41c55d
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41c54a
cmp byte [edi], 0x1a
jne 0x41c54a
xor eax, eax
jmp 0x41c565
call fcn.00418421
mov dword [eax], 0x1c
call fcn.0041842a
and dword [eax], 0
or eax, 0xffffffff
jmp 0x41c565
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.004144ff
add ebp, 0x3a4
leave
ret
Function at 0x40236c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x44f4f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
push 0xc35
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x4023d2
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.00432b10
add esp, 0xc
push 0x400
lea eax, [ebp - 0x804]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x4023d2
add esi, 0x10
lea eax, [ebp - 0x804]
call fcn.00401338
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004328eb
leave
ret
Function at 0x402f7b
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
xor ebx, ebx
push 0x443dd8
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov byte [esi + 0x18], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0x1c], eax
je 0x403017
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RegCreateKeyExW
push eax
call edi
push str.RegQueryValueW
push dword [esi + 0x1c]
mov dword [esi], eax
call edi
push str.RegSetValueW
push dword [esi + 0x1c]
mov dword [esi + 4], eax
call edi
push str.RegQueryValueExW
push dword [esi + 0x1c]
mov dword [esi + 8], eax
call edi
push str.RegSetValueExW
push dword [esi + 0x1c]
mov dword [esi + 0xc], eax
call edi
push str.RegCloseKey
push dword [esi + 0x1c]
mov dword [esi + 0x10], eax
call edi
cmp dword [esi], ebx
mov dword [esi + 0x14], eax
pop edi
je 0x403017
cmp dword [esi + 4], ebx
je 0x403017
cmp dword [esi + 8], ebx
je 0x403017
cmp dword [esi + 0xc], ebx
je 0x403017
cmp dword [esi + 0x10], ebx
je 0x403017
cmp eax, ebx
je 0x403017
mov byte [esi + 0x18], 1
mov eax, esi
pop ebx
ret

Function at 0x404123
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push 0x44
mov esi, eax
xor ebx, ebx
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.00432b10
push 0x10
lea eax, [ebp - 0x14]
push ebx
push eax
mov dword [ebp - 0x5c], 0x44
call fcn.00432b10
add esp, 0x18
cmp dword [esi + 0x18], 8
mov dword [ebp - 0x30], 1
mov word [ebp - 0x2c], 5
jb 0x404169
mov esi, dword [esi + 4]
jmp 0x40416c
add esi, 4
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x40417a
mov eax, dword [eax + 4]
jmp 0x40417d
add eax, 4
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4041a9
cmp dword [ebp - 0x14], ebx
je 0x4041a5
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x4041ab
xor al, al
pop esi
pop ebx
leave
ret 4
Function at 0x404ff1
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x44f4f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp dword [eax + 0x18], 8
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edi
jb 0x40501a
mov eax, dword [eax + 4]
jmp 0x40501d
add eax, 4
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
cmp ebx, edi
jne 0x405032
xor al, al
jmp 0x40507a
cmp dword [ebp - 0x24], edi
jle 0x405066
mov eax, dword [ebx + edi*4]
lea ecx, [ebp - 0x20]
call fcn.0040118b
cmp dword [ebp - 0xc], 0
je 0x405054
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x28]
call fcn.004011dd
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401452
inc edi
cmp edi, dword [ebp - 0x24]
jl 0x405037
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x28]
call fcn.004011c7
test eax, eax
setne al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004328eb
leave
ret 4
Function at 0x4075ea
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x44f4f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x40760b
mov eax, dword [eax + 4]
jmp 0x40760e
add eax, 4
push 0x100
push 0x2b4
lea ecx, [ebp - 0x2b8]
push ecx
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x407635
mov eax, dword [ebp - 0x2b8]
mov dword [esi + 0x18], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004328eb
leave
ret 4
Function at 0x409c6a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x29c
mov eax, dword [0x44f4f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
push 0x27f4
mov dword [ebp - 0x25c], edi
call fcn.004050db
lea ecx, [ebp - 0x250]
call fcn.00410040
cmp dword [ebp - 0x238], 8
mov eax, dword [ebp - 0x24c]
jae 0x409cb2
lea eax, [ebp - 0x24c]
mov esi, dword [sym.imp.USER32.dll_SetWindowTextW]
push eax
push dword [edi + 4]
call esi
push 0x20a
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00432b10
add esp, 0xc
push 0x3ec
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
mov dword [ebp - 0x258], eax
je 0x409d2d
push eax
call ebx
test eax, eax
je 0x409d2d
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x258]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x409d2d
and word [ebp - 0x10], 0
lea esi, [edi + 0x298]
lea eax, [ebp - 0x218]
call fcn.00401338
jmp 0x409d56
push dword [ebp - 0x258]
call ebx
test eax, eax
je 0x409d56
lea eax, [edi + 0x298]
cmp dword [eax + 0x18], 8
jb 0x409d4a
mov eax, dword [eax + 4]
jmp 0x409d4d
add eax, 4
push eax
push dword [ebp - 0x258]
call esi
add edi, 0x298
lea ecx, [ebp - 0x278]
call fcn.0040c092
push 0xffffffffffffffff
push edi
xor ebx, ebx
call fcn.004016e9
push ebx
push 1
lea esi, [ebp - 0x278]
call fcn.00401452
push 0x444184
push edi
call fcn.0040c863
mov ebx, dword [ebp - 0x25c]
cmp byte [ebx + 0x90], 0
pop ecx
pop ecx
je 0x409e85
cmp dword [ebx + 0x88], 0
je 0x409e85
lea ecx, [ebx + 0x74]
mov eax, edi
call fcn.0040c6c4
test al, al
jne 0x409e85
lea esi, [ebp - 0x298]
call fcn.00402f7b
lea eax, [ebx + 0x324]
lea esi, [ebp - 0x234]
call fcn.00401aa6
call fcn.0040c906
push 0x25
push 0x3a
call fcn.0040c7e8
push 0x25
push 0x5c
call fcn.0040c7e8
mov ebx, str.SoftwareHaoZip_SFX
add esp, 0x10
mov eax, ebx
lea ecx, [ebp - 0x278]
call fcn.0040118b
lea eax, [ebp - 0x278]
lea esi, [ebp - 0x298]
call fcn.0040302a
push 0
push 1
lea esi, [ebp - 0x278]
mov byte [ebp - 0x251], al
call fcn.00401452
cmp byte [ebp - 0x251], 0
je 0x409e6b
mov eax, ebx
lea ecx, [ebp - 0x278]
call fcn.0040118b
lea eax, [ebp - 0x234]
push eax
mov ecx, edi
lea eax, [ebp - 0x278]
lea esi, [ebp - 0x298]
call fcn.00403160
push 0
push 1
lea esi, [ebp - 0x278]
call fcn.00401452
push 0
push 1
lea esi, [ebp - 0x234]
call fcn.00401452
lea eax, [ebp - 0x298]
call fcn.0040301b
push 0
push 1
lea esi, [ebp - 0x250]
call fcn.00401452
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004328eb
leave
ret
Function at 0x40bfef
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x44f4f8]
xor eax, ebp
mov dword [ebp + 0x394], eax
push esi
push edi
xor edi, edi
push 0x40e
lea eax, [ebp - 0x7a]
push edi
push eax
mov esi, ecx
mov word [ebp - 0x7c], di
call fcn.00432b10
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0x3a0]
mov dword [ebp - 0x80], edi
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x40c042
xor al, al
jmp 0x40c07b
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x40c063
cmp dword [ebp - 0x80], edi
je 0x40c03e
push dword [ebp - 0x80]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x40c03e
lea eax, [ebp - 0x7c]
call fcn.00401338
cmp dword [ebp - 0x80], edi
je 0x40c079
push dword [ebp - 0x80]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
mov ecx, dword [ebp + 0x394]
pop edi
xor ecx, ebp
pop esi
call fcn.004328eb
add ebp, 0x398
leave
ret

Function at 0x40c092
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x44f4f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 1
lea eax, [ebp - 0x24]
mov esi, ecx
push eax
xor eax, eax
mov ecx, edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], 0x25
call fcn.004013a6
cmp eax, 0xffffffff
mov eax, edi
jne 0x40c0d1
call fcn.00401aa6
mov eax, esi
jmp 0x40c16d
lea esi, [ebp - 0x20]
call fcn.00401aa6
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
mov dword [ebp - 0x2c], eax
jb 0x40c0e7
mov eax, dword [eax]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
push 0
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x40c0ff
mov eax, edi
jmp 0x40c155
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004325d1
cmp dword [edi + 0x18], 8
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x2c]
pop ecx
jb 0x40c125
mov eax, dword [eax]
lea ecx, [esi + 1]
push ecx
push dword [ebp - 0x24]
push eax
call ebx
test eax, eax
jbe 0x40c149
cmp eax, esi
ja 0x40c149
mov ecx, dword [ebp - 0x24]
and word [ecx + eax*2], 0
mov eax, ecx
lea esi, [ebp - 0x20]
call fcn.00401338
push dword [ebp - 0x24]
call fcn.004327dc
pop ecx
lea eax, [ebp - 0x20]
mov esi, dword [ebp - 0x28]
call fcn.00401aa6
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401452
mov eax, dword [ebp - 0x28]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004328eb
leave
ret
Function at 0x40d189
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44f4f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea esi, [ebp - 0x20]
call fcn.00401aa6
mov eax, esi
push 0x24
push eax
call fcn.0040d8e0
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x40d1be
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d1e8
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401452
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004328eb
leave
ret
xor bl, bl
jmp 0x40d1cc

Function at 0x40d1ec
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44f4f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea esi, [ebp - 0x20]
call fcn.00401aa6
mov eax, esi
push 0x24
push eax
call fcn.0040d8e0
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x40d221
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d24f
test al, 0x10
jne 0x40d24f
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401452
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004328eb
leave
ret
xor bl, bl
jmp 0x40d233

Function at 0x40d253
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44f4f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea esi, [ebp - 0x20]
call fcn.00401aa6
mov eax, esi
push 0x24
push eax
call fcn.0040d8e0
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x40d288
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d2b6
test al, 0x10
je 0x40d2b6
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401452
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004328eb
leave
ret
xor bl, bl
jmp 0x40d29a

Function at 0x40d2ba
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
cmp dword [edi + 0x18], 8
push esi
lea esi, [edi + 4]
jb 0x40d2c8
mov eax, dword [esi]
jmp 0x40d2ca
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d2e5
and eax, 0xfffffffe
push 0
push eax
mov eax, edi
call fcn.0040db68
pop ecx
pop ecx
cmp dword [edi + 0x18], 8
jb 0x40d2ed
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
pop esi
ret
Function at 0x40d2fc
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x44f4f8]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
lea esi, [esp + 0x20]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.00401aa6
mov eax, esi
push 0x10
push eax
call fcn.0040d8e0
pop ecx
pop ecx
lea eax, [esp + 0x58]
call fcn.0040d051
lea esi, [esp + 0x1c]
call fcn.0040d7bb
lea eax, [esp + 0x3c]
push 0x443df4
push eax
lea eax, [esp + 0x28]
call fcn.00401fb4
pop ecx
pop ecx
mov ecx, esi
push ecx
lea edx, [esp + 0x5c]
mov ecx, eax
call fcn.0040d7eb
push ebx
push 1
lea esi, [esp + 0x44]
mov byte [esp + 0x23], al
call fcn.00401452
cmp byte [esp + 0x1b], bl
je 0x40d47a
lea esi, [esp + 0x58]
call fcn.0040d13e
test al, al
jne 0x40d464
mov eax, esi
call fcn.0040d12b
test al, al
mov eax, esi
je 0x40d3c7
call fcn.0040d127
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x28]
call fcn.00401fe6
push eax
call fcn.0040d2fc
add esp, 0xc
jmp 0x40d3ea
call fcn.0040d127
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x28]
call fcn.00401fe6
pop ecx
pop ecx
lea edi, [esp + 0x3c]
call fcn.0040d2ba
movzx eax, al
cdq
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
jmp 0x40d458
lea esi, [esp + 0x58]
call fcn.0040d13e
test al, al
jne 0x40d464
mov eax, esi
call fcn.0040d12b
test al, al
mov eax, esi
je 0x40d42d
call fcn.0040d127
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x28]
call fcn.00401fe6
push eax
call fcn.0040d2fc
add esp, 0xc
jmp 0x40d450
call fcn.0040d127
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x28]
call fcn.00401fe6
pop ecx
pop ecx
lea edi, [esp + 0x3c]
call fcn.0040d2ba
movzx eax, al
cdq
add dword [esp + 0x10], eax
adc dword [esp + 0x14], edx
push ebx
push 1
lea esi, [esp + 0x44]
call fcn.00401452
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x5c]
call fcn.0040d858
test al, al
jne 0x40d3f4
lea eax, [esp + 0x1c]
call fcn.0040d8a9
lea eax, [esp + 0x20]
push 0x20
push eax
call fcn.0040d8e0
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
pop ecx
pop ecx
jae 0x40d4a0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d4bc
and eax, 0xfffffffe
push ebx
push eax
lea eax, [esp + 0x28]
call fcn.0040db68
pop ecx
pop ecx
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
jae 0x40d4cb
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40d4df
add dword [esp + 0x10], 1
adc dword [esp + 0x14], ebx
lea edi, [esp + 0x1c]
call fcn.0040d7d3
lea eax, [esp + 0x58]
call fcn.0040d07f
push ebx
push 1
lea esi, [esp + 0x28]
call fcn.00401452
mov ecx, dword [esp + 0xa4]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004328eb
mov esp, ebp
pop ebp
ret