joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dd4e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x4139d4]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x415848]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
jae 0x40dede
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x415860]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x18], ebx
je 0x40dede
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], edi
jne 0x40ddad
xor eax, eax
jmp 0x40def2
test al, 0x20
je 0x40ddbe
push 2
push edi
push edi
push ecx
call fcn.0040efc9
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40de7a
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp + 8], edi
jbe 0x40deb2
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
cmp ecx, dword [ebp + 0x10]
jae 0x40de14
mov edx, dword [ebp - 8]
inc dword [ebp - 8]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x40de05
inc dword [ebp - 0x14]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x18]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x40ddea
mov edi, eax
lea eax, [ebp - 0x41c]
sub edi, eax
push 0
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40de54
mov eax, dword [ebp - 0x10]
add dword [ebp - 0xc], eax
cmp eax, edi
jl 0x40de5d
mov eax, dword [ebp - 8]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x40ddde
jmp 0x40de5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 0xc]
cmp eax, edi
jne 0x40ded9
cmp dword [ebp + 8], edi
je 0x40deb2
push 5
pop eax
cmp dword [ebp + 8], eax
jne 0x40dea7
mov dword [0x4143f0], eax
jmp 0x40dee5
push edi
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40de9c
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], edi
mov dword [ebp - 0xc], eax
jmp 0x40de5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x40de5f
push dword [ebp + 8]
call fcn.0040da88
pop ecx
jmp 0x40deef
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40dec7
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x40dda6
mov dword [0x4143ec], 0x1c
mov dword [0x4143f0], edi
jmp 0x40deef
sub eax, dword [ebp - 0x14]
jmp 0x40def2
and dword [0x4143f0], 0
mov dword [0x4143ec], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.0040e564
leave
ret
Function at 0x40ea13
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x414594], ebx
push esi
push edi
jne 0x40ea93
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40eace
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41134c
push edi
call esi
test eax, eax
mov dword [0x414594], eax
je 0x40eace
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x414598], eax
call esi
cmp dword [0x4143f8], 2
mov dword [0x41459c], eax
jne 0x40ea93
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4145a4], eax
je 0x40ea93
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4145a0], eax
mov eax, dword [0x4145a0]
test eax, eax
je 0x40ead8
call eax
test eax, eax
je 0x40eabf
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4145a4]
test eax, eax
je 0x40eabf
test byte [ebp - 8], 1
jne 0x40ead8
cmp dword [0x414404], 4
jb 0x40ead2
or byte [ebp + 0x12], 0x20
jmp 0x40eaf7
xor eax, eax
jmp 0x40eb07
or byte [ebp + 0x12], 4
jmp 0x40eaf7
mov eax, dword [0x414598]
test eax, eax
je 0x40eaf7
call eax
mov ebx, eax
test ebx, ebx
je 0x40eaf7
mov eax, dword [0x41459c]
test eax, eax
je 0x40eaf7
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x414594]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f0c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x415848]
push edi
jae 0x40f287
mov eax, esi
sar eax, 5
lea ebx, [eax*4 + 0x415860]
mov eax, dword [ebx]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x40f287
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov edi, dword [ebp + 0xc]
mov ecx, edi
je 0x40f166
test dl, 2
jne 0x40f166
test dl, 0x48
je 0x40f130
mov al, byte [eax + 5]
cmp al, 0xa
je 0x40f130
dec dword [ebp + 0x10]
mov byte [edi], al
mov eax, dword [ebx]
lea ecx, [edi + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [ebx]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40f179
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x40f161
mov dword [0x4143f0], ecx
jmp 0x40f28e
cmp eax, 0x6d
jne 0x40f16d
xor eax, eax
jmp 0x40f29b
push eax
call fcn.0040da88
pop ecx
jmp 0x40f298
mov eax, dword [ebx]
mov edx, dword [ebp - 0x10]
add dword [ebp - 0xc], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x40f282
test edx, edx
je 0x40f19c
cmp byte [edi], 0xa
jne 0x40f19c
or al, 4
jmp 0x40f19e
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x40f27c
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x40f26c
cmp al, 0xd
je 0x40f1d2
mov byte [edi], al
inc edi
inc dword [ebp - 8]
jmp 0x40f25e
dec ecx
cmp dword [ebp - 8], ecx
jae 0x40f1ec
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x40f1e7
add dword [ebp - 8], 2
jmp 0x40f240
mov dword [ebp - 8], eax
jmp 0x40f25a
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40f214
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40f25a
cmp dword [ebp - 0x10], 0
je 0x40f25a
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x48
je 0x40f235
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x40f240
mov byte [edi], 0xd
mov ecx, dword [ebx]
mov byte [ecx + esi + 5], al
jmp 0x40f25d
cmp edi, dword [ebp + 0xc]
jne 0x40f245
cmp byte [ebp - 1], 0xa
jne 0x40f245
mov byte [edi], 0xa
jmp 0x40f25d
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00409ff9
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x40f25e
mov byte [edi], 0xd
inc edi
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x40f1b6
jmp 0x40f27c
mov eax, dword [ebx]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x40f27c
or al, 2
mov byte [esi], al
sub edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 0xc]
jmp 0x40f29b
and dword [0x4143f0], 0
mov dword [0x4143ec], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f4b9
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00409dd0
mov eax, dword [0x4139d4]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x415848]
mov dword [ebp - 4], eax
jae 0x40f5f9
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x415860]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x40f5f9
push 1
push esi
push ebx
call fcn.00409ff9
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40f603
push 2
push esi
push ebx
call fcn.00409ff9
add esp, 0xc
cmp eax, 0xffffffff
je 0x40f603
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x40f5a6
push 0x1000
lea eax, [ebp - 0x1008]
push esi
push eax
call fcn.0040d810
push 0x8000
push ebx
call fcn.0040f615
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x40f565
mov eax, edi
push eax
lea eax, [ebp - 0x1008]
push eax
push ebx
call fcn.0040dd4e
add esp, 0xc
cmp eax, 0xffffffff
je 0x40f583
sub edi, eax
test edi, edi
jg 0x40f55a
jmp 0x40f599
cmp dword [0x4143f0], 5
jne 0x40f596
mov dword [0x4143ec], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.0040f615
pop ecx
pop ecx
jmp 0x40f5e6
jge 0x40f5e6
push 0
push dword [ebp + 0xc]
push ebx
call fcn.00409ff9
push ebx
call fcn.0040dc75
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x40f5e6
mov dword [0x4143ec], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4143f0], eax
push 0
push dword [ebp - 8]
push ebx
call fcn.00409ff9
add esp, 0xc
mov eax, esi
pop edi
jmp 0x40f606
mov dword [0x4143ec], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.0040e564
leave
ret
Function at 0x402383
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x44f4e8]
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 0x4023e9
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.00432b70
add esp, 0xc
push 0x400
lea eax, [ebp - 0x804]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x4023e9
add esi, 0x10
lea eax, [ebp - 0x804]
call fcn.0040134f
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004327cb
leave
ret
Function at 0x402f92
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 0x40302e
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 0x40302e
cmp dword [esi + 4], ebx
je 0x40302e
cmp dword [esi + 8], ebx
je 0x40302e
cmp dword [esi + 0xc], ebx
je 0x40302e
cmp dword [esi + 0x10], ebx
je 0x40302e
cmp eax, ebx
je 0x40302e
mov byte [esi + 0x18], 1
mov eax, esi
pop ebx
ret

Function at 0x40414b
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.00432b70
push 0x10
lea eax, [ebp - 0x14]
push ebx
push eax
mov dword [ebp - 0x5c], 0x44
call fcn.00432b70
add esp, 0x18
cmp dword [esi + 0x18], 8
mov dword [ebp - 0x30], 1
mov word [ebp - 0x2c], 5
jb 0x404191
mov esi, dword [esi + 4]
jmp 0x404194
add esi, 4
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x4041a2
mov eax, dword [eax + 4]
jmp 0x4041a5
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 0x4041d1
cmp dword [ebp - 0x14], ebx
je 0x4041cd
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x4041d3
xor al, al
pop esi
pop ebx
leave
ret 4
Function at 0x405019
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x44f4e8]
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 0x405042
mov eax, dword [eax + 4]
jmp 0x405045
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 0x40505a
xor al, al
jmp 0x4050a2
cmp dword [ebp - 0x24], edi
jle 0x40508e
mov eax, dword [ebx + edi*4]
lea ecx, [ebp - 0x20]
call fcn.00401183
cmp dword [ebp - 0xc], 0
je 0x40507c
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x28]
call fcn.004011f4
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401469
inc edi
cmp edi, dword [ebp - 0x24]
jl 0x40505f
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x28]
call fcn.004011bf
test eax, eax
setne al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004327cb
leave
ret 4
Function at 0x407656
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x44f4e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x407677
mov eax, dword [eax + 4]
jmp 0x40767a
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 0x4076a1
mov eax, dword [ebp - 0x2b8]
mov dword [esi + 0x18], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004327cb
leave
ret 4
Function at 0x409cb9
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x29c
mov eax, dword [0x44f4e8]
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.00405103
lea ecx, [ebp - 0x250]
call fcn.00410027
cmp dword [ebp - 0x238], 8
mov eax, dword [ebp - 0x24c]
jae 0x409d01
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.00432b70
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 0x409d7c
push eax
call ebx
test eax, eax
je 0x409d7c
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x258]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x409d7c
and word [ebp - 0x10], 0
lea esi, [edi + 0x298]
lea eax, [ebp - 0x218]
call fcn.0040134f
jmp 0x409da5
push dword [ebp - 0x258]
call ebx
test eax, eax
je 0x409da5
lea eax, [edi + 0x298]
cmp dword [eax + 0x18], 8
jb 0x409d99
mov eax, dword [eax + 4]
jmp 0x409d9c
add eax, 4
push eax
push dword [ebp - 0x258]
call esi
add edi, 0x298
lea ecx, [ebp - 0x278]
call fcn.0040c0de
push 0xffffffffffffffff
push edi
xor ebx, ebx
call fcn.00401700
push ebx
push 1
lea esi, [ebp - 0x278]
call fcn.00401469
push 0x444184
push edi
call fcn.0040c8af
mov ebx, dword [ebp - 0x25c]
cmp byte [ebx + 0x90], 0
pop ecx
pop ecx
je 0x409ed4
cmp dword [ebx + 0x88], 0
je 0x409ed4
lea ecx, [ebx + 0x74]
mov eax, edi
call fcn.0040c710
test al, al
jne 0x409ed4
lea esi, [ebp - 0x298]
call fcn.00402f92
lea eax, [ebx + 0x324]
lea esi, [ebp - 0x234]
call fcn.00401abd
call fcn.0040c952
push 0x25
push 0x3a
call fcn.0040c834
push 0x25
push 0x5c
call fcn.0040c834
mov ebx, str.SoftwareHaoZip_SFX
add esp, 0x10
mov eax, ebx
lea ecx, [ebp - 0x278]
call fcn.00401183
lea eax, [ebp - 0x278]
lea esi, [ebp - 0x298]
call fcn.00403041
push 0
push 1
lea esi, [ebp - 0x278]
mov byte [ebp - 0x251], al
call fcn.00401469
cmp byte [ebp - 0x251], 0
je 0x409eba
mov eax, ebx
lea ecx, [ebp - 0x278]
call fcn.00401183
lea eax, [ebp - 0x234]
push eax
mov ecx, edi
lea eax, [ebp - 0x278]
lea esi, [ebp - 0x298]
call fcn.00403177
push 0
push 1
lea esi, [ebp - 0x278]
call fcn.00401469
push 0
push 1
lea esi, [ebp - 0x234]
call fcn.00401469
lea eax, [ebp - 0x298]
call fcn.00403032
push 0
push 1
lea esi, [ebp - 0x250]
call fcn.00401469
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004327cb
leave
ret
Function at 0x40c03b
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x44f4e8]
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.00432b70
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 0x40c08e
xor al, al
jmp 0x40c0c7
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x40c0af
cmp dword [ebp - 0x80], edi
je 0x40c08a
push dword [ebp - 0x80]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x40c08a
lea eax, [ebp - 0x7c]
call fcn.0040134f
cmp dword [ebp - 0x80], edi
je 0x40c0c5
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.004327cb
add ebp, 0x398
leave
ret

Function at 0x40c0de
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x44f4e8]
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.004013bd
cmp eax, 0xffffffff
mov eax, edi
jne 0x40c11d
call fcn.00401abd
mov eax, esi
jmp 0x40c1b9
lea esi, [ebp - 0x20]
call fcn.00401abd
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
mov dword [ebp - 0x2c], eax
jb 0x40c133
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 0x40c14b
mov eax, edi
jmp 0x40c1a1
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00432629
cmp dword [edi + 0x18], 8
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x2c]
pop ecx
jb 0x40c171
mov eax, dword [eax]
lea ecx, [esi + 1]
push ecx
push dword [ebp - 0x24]
push eax
call ebx
test eax, eax
jbe 0x40c195
cmp eax, esi
ja 0x40c195
mov ecx, dword [ebp - 0x24]
and word [ecx + eax*2], 0
mov eax, ecx
lea esi, [ebp - 0x20]
call fcn.0040134f
push dword [ebp - 0x24]
call fcn.004326b5
pop ecx
lea eax, [ebp - 0x20]
mov esi, dword [ebp - 0x28]
call fcn.00401abd
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401469
mov eax, dword [ebp - 0x28]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004327cb
leave
ret
Function at 0x40d3d3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44f4e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea esi, [ebp - 0x20]
call fcn.00401abd
mov eax, esi
push 0x24
push eax
call fcn.0040d09d
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x40d408
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d432
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401469
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004327cb
leave
ret
xor bl, bl
jmp 0x40d416

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44f4e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea esi, [ebp - 0x20]
call fcn.00401abd
mov eax, esi
push 0x24
push eax
call fcn.0040d09d
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x40d46b
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d499
test al, 0x10
jne 0x40d499
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401469
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004327cb
leave
ret
xor bl, bl
jmp 0x40d47d

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44f4e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea esi, [ebp - 0x20]
call fcn.00401abd
mov eax, esi
push 0x24
push eax
call fcn.0040d09d
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x40d4d2
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d500
test al, 0x10
je 0x40d500
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401469
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004327cb
leave
ret
xor bl, bl
jmp 0x40d4e4

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

Disassembly:
cmp dword [edi + 0x18], 8
push esi
lea esi, [edi + 4]
jb 0x40d512
mov eax, dword [esi]
jmp 0x40d514
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d52f
and eax, 0xfffffffe
push 0
push eax
mov eax, edi
call fcn.0040db94
pop ecx
pop ecx
cmp dword [edi + 0x18], 8
jb 0x40d537
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 0x40d546
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 [0x44f4e8]
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.00401abd
mov eax, esi
push 0x10
push eax
call fcn.0040d09d
pop ecx
pop ecx
lea eax, [esp + 0x58]
call fcn.0040d29b
lea esi, [esp + 0x1c]
call fcn.0040eab0
lea eax, [esp + 0x3c]
push 0x443df4
push eax
lea eax, [esp + 0x28]
call fcn.00401fcb
pop ecx
pop ecx
mov ecx, esi
push ecx
lea edx, [esp + 0x5c]
mov ecx, eax
call fcn.0040da15
push ebx
push 1
lea esi, [esp + 0x44]
mov byte [esp + 0x23], al
call fcn.00401469
cmp byte [esp + 0x1b], bl
je 0x40d6c4
lea esi, [esp + 0x58]
call fcn.0040d388
test al, al
jne 0x40d6ae
mov eax, esi
call fcn.0040d375
test al, al
mov eax, esi
je 0x40d611
call fcn.0040d371
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x28]
call fcn.00401ffd
push eax
call fcn.0040d546
add esp, 0xc
jmp 0x40d634
call fcn.0040d371
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x28]
call fcn.00401ffd
pop ecx
pop ecx
lea edi, [esp + 0x3c]
call fcn.0040d504
movzx eax, al
cdq
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
jmp 0x40d6a2
lea esi, [esp + 0x58]
call fcn.0040d388
test al, al
jne 0x40d6ae
mov eax, esi
call fcn.0040d375
test al, al
mov eax, esi
je 0x40d677
call fcn.0040d371
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x28]
call fcn.00401ffd
push eax
call fcn.0040d546
add esp, 0xc
jmp 0x40d69a
call fcn.0040d371
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x28]
call fcn.00401ffd
pop ecx
pop ecx
lea edi, [esp + 0x3c]
call fcn.0040d504
movzx eax, al
cdq
add dword [esp + 0x10], eax
adc dword [esp + 0x14], edx
push ebx
push 1
lea esi, [esp + 0x44]
call fcn.00401469
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x5c]
call fcn.0040da82
test al, al
jne 0x40d63e
lea eax, [esp + 0x1c]
call fcn.0040dad3
lea eax, [esp + 0x20]
push 0x20
push eax
call fcn.0040d09d
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
pop ecx
pop ecx
jae 0x40d6ea
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d706
and eax, 0xfffffffe
push ebx
push eax
lea eax, [esp + 0x28]
call fcn.0040db94
pop ecx
pop ecx
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
jae 0x40d715
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40d729
add dword [esp + 0x10], 1
adc dword [esp + 0x14], ebx
lea edi, [esp + 0x1c]
call fcn.0040d9fd
lea eax, [esp + 0x58]
call fcn.0040d2c9
push ebx
push 1
lea esi, [esp + 0x28]
call fcn.00401469
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.004327cb
mov esp, ebp
pop ebp
ret