joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e71d
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x45200c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x454348]
mov eax, dword [esi]
cmp byte [eax], 0xe9
jne 0x41e7d6
lea ecx, [ebp - 0xa0]
push ecx
push 0x40
push dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x41e7d6
push ebx
mov ebx, dword [esi + 8]
lea ecx, [ebp - 0x9c]
push edi
mov edi, dword [esi + 0xc]
mov edx, ebx
push edi
call fcn.0041da35
add esp, 4
xor ecx, ecx
test edi, edi
je 0x41e787
cmp byte [ebp + ecx - 0x9c], 0x90
jne 0x41e787
inc ecx
cmp ecx, edi
jb 0x41e778
lea eax, [ecx + 5]
cmp eax, edi
ja 0x41e7a6
mov al, byte [ebp + ecx - 0x9c]
cmp al, 0xe8
je 0x41e79d
cmp al, 0xe9
jne 0x41e7a6
sub ebx, dword [esi]
add dword [ebp + ecx - 0x9b], ebx
mov ecx, dword [esi]
lea edx, [ebp - 0x9c]
push edi
call fcn.0041da35
add esp, 4
lea eax, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
push dword [esi + 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor eax, eax
pop edi
inc eax
pop ebx
jmp 0x41e7d8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041ebed
leave
ret

Function at 0x431478
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x443b4c
push 0x443b44
push str.FlsAlloc
push 0x1e
call fcn.00431321
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4314ac
push dword [ebp + 8]
mov ecx, esi
call dword [0x43f230]
call esi
jmp 0x4314b2
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4314f6
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x443b5c
push 0x443b54
push str.FlsGetValue
push 0x20
call fcn.00431321
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43152d
push dword [ebp + 8]
mov ecx, esi
call dword [0x43f230]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x431ad4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x45200c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x431b1f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00431c73
test al, al
jne 0x431b19
sub edx, 2
cmp edx, edi
jne 0x431aff
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x431b41
lea eax, [edi + 2]
cmp edx, eax
je 0x431b41
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00431a20
add esp, 0x10
jmp 0x431c3b
push esi
lea ecx, [ebp - 0x255]
call fcn.00431c73
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x431b84
push dword [ebp - 0x25c]
jmp 0x431b31
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x431bc1
cmp word [ebp - 0x226], 0
je 0x431be2
cmp word [ebp - 0x226], ax
jne 0x431bc1
cmp word [ebp - 0x224], 0
je 0x431be2
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00431a20
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x431c2e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x431b9b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x431c16
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x431c3b
push 0x431850
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00439290
add esp, 0x10
jmp 0x431c0b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ebed
leave
ret
Function at 0x4013a0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x466aac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
mov eax, dword [0x4855a4]
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x164]
push 0x5c
mov ecx, esi
mov dword [esp + 0x160], 0
call fcn.0045bd8e
inc eax
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, esi
call fcn.0045bd16
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x160], 1
call fcn.0045cec5
lea ecx, [esp + 0x10]
mov byte [esp + 0x15c], 0
call fcn.0045cdd8
mov edx, dword [0x4855a4]
mov dword [esp + 8], edx
mov esi, dword [esi]
lea eax, [esp + 0x14]
push eax
push esi
mov byte [esp + 0x164], 2
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4014e4
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x10]
call fcn.0045cf15
mov edx, dword [esp + 0xc]
push 0x47d114
push edx
call fcn.0044cfd0
add esp, 8
test eax, eax
je 0x4014cc
mov eax, dword [esp + 0xc]
push 0x47d110
push eax
call fcn.0044cfd0
add esp, 8
test eax, eax
je 0x4014cc
lea ecx, [esp + 0x44]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
call fcn.0045d021
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x164], 3
call fcn.0045cec5
lea ecx, [esp + 0x14]
mov byte [esp + 0x160], 2
call fcn.0045cdd8
lea ecx, [esp + 0xc]
call fcn.0045d28e
lea ecx, [esp + 0xc]
push ecx
mov ecx, edi
call fcn.0045c719
lea edx, [esp + 0x18]
push edx
push esi
call ebp
test eax, eax
jne 0x401446
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
lea ecx, [esp + 8]
mov byte [esp + 0x15c], 0
call fcn.0045cdd8
lea ecx, [esp + 0xc]
mov dword [esp + 0x15c], 0xffffffff
call fcn.0045cdd8
mov ecx, dword [esp + 0x154]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x158
ret 4
Function at 0x4068c0
Capabilities:
Delete directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4677eb
push eax
mov dword fs:[0], esp
sub esp, 0x404
push ebx
push esi
push edi
mov ebx, ecx
call fcn.004318b0
test eax, eax
je 0x406982
push ebp
push 0
lea eax, [esp + 0x218]
push str.CInstall_::_CleanUpFilesAndRegistryAfterInstall_n
push eax
call fcn.0044cb10
mov edi, str.ENTRY:
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x114]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x114]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x214]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00431840
mov ecx, eax
call fcn.004318e0
lea eax, [esp + 0x114]
push eax
call fcn.00431840
mov ecx, eax
call fcn.00431c70
pop ebp
add ebx, 0x3dc
push 0x47dc7c
lea ecx, [esp + 0x10]
push ebx
push ecx
call fcn.0045d021
mov edx, dword [esp + 0xc]
mov dword [esp + 0x418], 0
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
call fcn.004318b0
test eax, eax
je 0x406a45
push 0
lea eax, [esp + 0x314]
push str.CInstall_::_CleanUpFilesAndRegistryAfterInstall_n
push eax
call fcn.0044cb10
mov edi, str.EXIT:
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x310]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00431840
mov ecx, eax
call fcn.00431c70
call fcn.00431840
mov ecx, eax
call fcn.004318f0
lea ecx, [esp + 0xc]
mov dword [esp + 0x418], 0xffffffff
call fcn.0045cdd8
mov ecx, dword [esp + 0x410]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x410
ret
Function at 0x408d30
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x467cf8
push eax
mov dword fs:[0], esp
push esi
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x10], 0
lea esi, [eax + 8]
mov ecx, esi
call fcn.0045cec5
lea edx, [esp + 0x1c]
lea ecx, [esi + 4]
push edx
call fcn.0045cec5
lea eax, [esp + 0x20]
lea ecx, [esi + 8]
push eax
call fcn.0045cec5
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esi + 0xc]
call fcn.0045cec5
lea edx, [esp + 0x28]
lea ecx, [esi + 0x10]
push edx
call fcn.0045cec5
lea eax, [esp + 0x2c]
lea ecx, [esi + 0x14]
push eax
call fcn.0045cec5
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esi + 0x18]
call fcn.0045cec5
lea edx, [esp + 0x34]
lea ecx, [esi + 0x1c]
push edx
call fcn.0045cec5
lea eax, [esp + 0x38]
lea ecx, [esi + 0x20]
push eax
call fcn.0045cec5
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esi + 0x24]
call fcn.0045cec5
lea edx, [esp + 0x40]
lea ecx, [esi + 0x28]
push edx
call fcn.0045cec5
mov eax, dword [esp + 0x44]
mov dword [esi + 0x2c], eax
lea ecx, [esp + 0x40]
mov dword [esp + 0xc], 0xa
call fcn.0045cdd8
lea ecx, [esp + 0x3c]
mov byte [esp + 0xc], 9
call fcn.0045cdd8
lea ecx, [esp + 0x38]
mov byte [esp + 0xc], 8
call fcn.0045cdd8
lea ecx, [esp + 0x34]
mov byte [esp + 0xc], 7
call fcn.0045cdd8
lea ecx, [esp + 0x30]
mov byte [esp + 0xc], 6
call fcn.0045cdd8
lea ecx, [esp + 0x2c]
mov byte [esp + 0xc], 5
call fcn.0045cdd8
lea ecx, [esp + 0x28]
mov byte [esp + 0xc], 4
call fcn.0045cdd8
lea ecx, [esp + 0x24]
mov byte [esp + 0xc], 3
call fcn.0045cdd8
lea ecx, [esp + 0x20]
mov byte [esp + 0xc], 2
call fcn.0045cdd8
lea ecx, [esp + 0x1c]
mov byte [esp + 0xc], 1
call fcn.0045cdd8
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], 0xffffffff
call fcn.0045cdd8
mov ecx, dword [esp + 4]
pop esi
mov dword fs:[0], ecx
add esp, 0xc
ret 0x34
Function at 0x40fb90
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [ecx + 8]
push esi
push edi
xor edi, edi
cmp eax, 0xffffffff
je 0x40fbe6
push 0x20019
push 1
push edi
add ecx, 0xc
push 1
push ecx
push eax
call fcn.004099e0
mov ecx, eax
call fcn.0040a4c0
mov esi, eax
cmp esi, 0xffffffff
je 0x40fbe6
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
push ecx
push edi
push edi
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40fbdf
mov edi, 1
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
ret 0xc

Function at 0x40fbf0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [ecx + 8]
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
xor edi, edi
cmp eax, 0xffffffff
je 0x40fc55
push 0x20019
push 2
push edi
add ecx, 0xc
push 1
push ecx
push eax
call fcn.004099e0
mov ecx, eax
call fcn.0040a4c0
mov esi, eax
cmp esi, 0xffffffff
je 0x40fc55
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push ebx
push eax
push edi
push edi
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40fc40
mov edi, 1
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x40fc55
mov eax, dword [ebx]
pop edi
mov dword [ebx], eax
pop esi
pop ebx
ret 0xc
xor eax, eax
pop edi
mov dword [ebx], eax
pop esi
pop ebx
ret 0xc

Function at 0x40fc60
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [ecx + 8]
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
xor edi, edi
cmp eax, 0xffffffff
je 0x40fceb
push 0x20019
push 2
push edi
add ecx, 0xc
push 1
push ecx
push eax
call fcn.004099e0
mov ecx, eax
call fcn.0040a4c0
mov esi, eax
cmp esi, 0xffffffff
je 0x40fceb
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push ebx
push eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40fcd7
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push ebp
push edx
push edi
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40fcd0
mov edi, 1
mov edx, dword [esp + 0x20]
push edx
call ebx
push esi
call ebx
test edi, edi
pop ebx
je 0x40fceb
mov eax, dword [ebp]
pop edi
mov dword [ebp], eax
pop esi
pop ebp
ret 0x10
xor eax, eax
pop edi
mov dword [ebp], eax
pop esi
pop ebp
ret 0x10

Function at 0x40fd00
Capabilities:
Set registry value

Disassembly:
mov eax, dword [ecx + 8]
push esi
push edi
xor edi, edi
cmp eax, 0xffffffff
je 0x40fd5a
push 0xf003f
push 2
push edi
add ecx, 0xc
push 1
push ecx
push eax
call fcn.004099e0
mov ecx, eax
call fcn.0040a4c0
mov esi, eax
cmp esi, 0xffffffff
je 0x40fd5a
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
push edx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40fd53
mov edi, 1
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
ret 0x10
Function at 0x40fd70
Capabilities:
Set registry value

Disassembly:
push ecx
mov eax, dword [ecx + 8]
push esi
push edi
xor edi, edi
cmp eax, 0xffffffff
je 0x40fdf7
push 0x20019
push 2
push edi
add ecx, 0xc
push 1
push ecx
push eax
call fcn.004099e0
mov ecx, eax
call fcn.0040a4c0
mov esi, eax
cmp esi, 0xffffffff
je 0x40fdf7
mov ecx, dword [esp + 0x10]
lea eax, [esp + 8]
push ebx
push eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40fdeb
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
push ecx
push edi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40fde4
mov edi, 1
mov ecx, dword [esp + 0xc]
push ecx
call ebx
push esi
call ebx
mov eax, edi
pop ebx
pop edi
pop esi
pop ecx
ret 0x14
mov eax, edi
pop edi
pop esi
pop ecx
ret 0x14
Function at 0x4114f0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x468a32
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x278
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x298]
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x184]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x184]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0xa
rep movsb byte es:[edi], byte [esi]
mov edi, str..
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
call fcn.0045c599
lea eax, [esp + 0x184]
lea ecx, [esp + 0x14]
push eax
mov dword [esp + 0x294], ebp
call fcn.0045ce46
mov ecx, dword [0x4855a4]
mov dword [esp + 0x18], ecx
push 0x5c
lea ecx, [esp + 0x18]
mov byte [esp + 0x294], 2
call fcn.0045bd8e
inc eax
lea edx, [esp + 0x1c]
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.0045bd16
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x294], 3
call fcn.0045cec5
lea ecx, [esp + 0x1c]
mov byte [esp + 0x290], 2
call fcn.0045cdd8
mov eax, dword [0x4855a4]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x44]
mov bl, 4
push ecx
push edx
mov byte [esp + 0x298], bl
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4116b1
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea eax, [esp + 0x70]
lea ecx, [esp + 0x10]
push eax
call fcn.0045cf15
mov ecx, dword [esp + 0x10]
push 0x47d114
push ecx
call fcn.0044cfd0
add esp, 8
test eax, eax
je 0x41169a
mov edx, dword [esp + 0x10]
push 0x47d110
push edx
call fcn.0044cfd0
add esp, 8
test eax, eax
je 0x41169a
lea eax, [esp + 0x70]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.0045d021
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x294], 5
call fcn.0045cec5
lea ecx, [esp + 0x20]
mov byte [esp + 0x290], bl
call fcn.0045cdd8
lea ecx, [esp + 0x10]
call fcn.0045d28e
lea eax, [esp + 0x10]
lea ecx, [esp + 0x24]
push eax
call fcn.0045c719
lea ecx, [esp + 0x44]
push ecx
push esi
call edi
test eax, eax
jne 0x411613
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x10]
mov byte [esp + 0x290], 2
call fcn.0045cdd8
lea ecx, [esp + 0x18]
mov byte [esp + 0x290], 1
call fcn.0045cdd8
lea ecx, [esp + 0x14]
mov byte [esp + 0x290], 0
call fcn.0045cdd8
mov eax, dword [esp + 0x28]
mov dword [esp + 0x290], 0xffffffff
test eax, eax
mov dword [esp + 0x40], eax
jne 0x411700
mov ebp, 1
lea ecx, [esp + 0x24]
call fcn.0045c60d
mov ecx, dword [esp + 0x288]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x284
ret 4
Function at 0x411730
Capabilities:
Delete directory

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x104
push ebx
push edi
mov edi, dword [esp + 0x110]
mov ebx, ecx
push 0x47d160
lea ecx, [edi + eax]
push ecx
call fcn.0044d1c0
add esp, 8
test eax, eax
je 0x41177e
push esi
mov esi, eax
sub esi, edi
lea edx, [esp + 0xc]
push esi
push edi
push edx
call fcn.0044d400
add esp, 0xc
mov byte [esp + esi + 0xc], 0
inc esi
mov ecx, ebx
push esi
push edi
call fcn.00411730
pop esi
lea eax, [esp + 8]
mov ecx, ebx
push eax
call fcn.004114f0
pop edi
pop ebx
test eax, eax
je 0x4117a3
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
add esp, 0x104
ret 8

Function at 0x4117b0
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x468a50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x4855a4]
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x20]
mov dword [esp + 0x18], ebp
push esi
call fcn.004113d0
test eax, eax
je 0x411888
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
cmp ebp, 1
jne 0x411813
push esi
mov ecx, 0x489428
call fcn.0045c6d6
jmp 0x411817
test ebp, ebp
je 0x411888
mov al, byte [esp + 0x24]
test al, 2
je 0x41182b
push 2
push esi
mov ecx, edi
call fcn.00411730
jmp 0x411888
test al, 1
je 0x411888
push esi
lea ecx, [esp + 0x10]
call fcn.0045cf15
push 0x5c
lea ecx, [esp + 0x10]
call fcn.0045bd8e
cmp eax, 0xffffffff
je 0x411888
lea ecx, [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.0045bd16
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 1
call fcn.0045cec5
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 0
call fcn.0045cdd8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.0045cdd8
mov ecx, dword [esp + 0x10]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4118b0
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x104
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x118]
mov ebx, ecx
push 0x47d160
xor ebp, ebp
lea ecx, [edi + eax]
push ecx
call fcn.0044d1c0
mov esi, eax
add esp, 8
test esi, esi
je 0x41197f
mov eax, dword [esp + 0x11c]
test eax, eax
jne 0x411916
lea edx, [esi + 1]
push 0x47d160
push edx
call fcn.0044d1c0
add esp, 8
test eax, eax
jne 0x411916
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret 8
sub esi, edi
lea eax, [esp + 0x10]
push esi
push edi
push eax
call fcn.0044d400
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + esi + 0x10], 0
push ecx
mov ecx, ebx
call fcn.00411410
test eax, eax
jne 0x411959
lea edx, [esp + 0x10]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x411959
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebp, 1
inc esi
mov ecx, ebx
push esi
push edi
call fcn.004118b0
test eax, eax
jne 0x41197a
test ebp, ebp
jne 0x41197a
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 8
mov ebp, 1
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 8

Function at 0x411a60
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
mov esi, ecx
push ebx
xor edi, edi
mov ebp, 1
call fcn.004113d0
test eax, eax
je 0x411ae6
mov al, byte [esp + 0x1c]
mov edi, dword [esp + 0x18]
test al, 0x20
je 0x411a96
push edi
push ebx
mov ecx, esi
call fcn.00411990
mov ebp, eax
test ebp, ebp
je 0x411aef
test byte [esp + 0x1c], 0x40
je 0x411aa8
push edi
push ebx
mov ecx, esi
call fcn.00411a10
mov ebp, eax
test ebp, ebp
je 0x411aef
push 0
push edi
mov ecx, esi
call fcn.004117b0
push 0
push edi
mov ecx, esi
call fcn.004118b0
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x411aef
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc