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

Disassembly:
sub esp, 0x410
mov eax, dword [0x469524]
xor eax, esp
mov dword [esp + 0x40c], eax
call fcn.0042121c
test eax, eax
jne 0x411517
push 0x80004005
call fcn.0040ad10
mov edx, dword [eax]
push esi
mov ecx, eax
mov eax, dword [edx + 0xc]
push edi
call eax
push 0x3ff
lea ecx, [esp + 0x19]
mov esi, eax
push 0
push ecx
add esi, 0x10
mov byte [esp + 0x20], 0
call fcn.0043de70
mov eax, dword [esp + 0x428]
add esp, 0xc
lea edx, [esp + 8]
push edx
push 0xf003f
xor edi, edi
push edi
push eax
push SysReAllocStringLen
mov dword [esp + 0x20], 0x400
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4115a1
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x424]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push edi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
mov eax, dword [esp + 8]
neg edi
sbb edi, edi
push eax
inc edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4115bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x41c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4115e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x420]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411603
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x414]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0043a8ec
add esp, 0x410
ret
Function at 0x411620
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x452452
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x469524]
xor eax, esp
mov dword [esp + 0x414], eax
mov eax, dword [0x469524]
xor eax, esp
push eax
lea eax, [esp + 0x41c]
mov dword fs:[0], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov dword [esp + 0x424], 2
call fcn.0042121c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x411688
push 0x80004005
call fcn.0040ad10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
push 0x3ff
lea ecx, [esp + 0x1d]
push 0
push ecx
mov dword [esp + 0x18], 1
mov byte [esp + 0x24], 0
call fcn.0043de70
mov eax, dword [esp + 0x438]
add esp, 0xc
lea edx, [esp + 4]
push edx
push 0xf003f
push 0
push eax
push esi
mov dword [esp + 0x1c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x411720
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x434]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x1c]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x18]
push eax
push 0x45aab8
push edi
call fcn.0040a6f0
mov ecx, dword [esp + 0x10]
add esp, 0xc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x424], 1
mov eax, dword [esp + 0x42c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41174b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x424], 0
mov eax, dword [esp + 0x430]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411776
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x41c]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.0043a8ec
add esp, 0x424
ret
Function at 0x4117a0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x451da0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x469524]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov dword [esp + 0x18], 2
call fcn.0042121c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4117e6
push 0x80004005
call fcn.0040ad10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 3
call fcn.00409f40
mov eax, dword [esp + 0x20]
lea edx, [esp + 8]
push edx
push 0xf003f
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [esp + 0xc]
test eax, eax
jne 0x411849
mov eax, dword [esi - 0xc]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 8]
push eax
push esi
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 8]
push eax
jmp 0x41188b
mov edx, dword [esp + 0x20]
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x411891
mov eax, dword [esi - 0xc]
mov ecx, dword [esp + 8]
push eax
mov eax, dword [esp + 0x28]
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov byte [esp + 0x18], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4118b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x18], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4118d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x18], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4118fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411924
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x411940
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push 0xf003f
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x411980
mov ecx, dword [esp + 8]
push 0
lea eax, [esp + 4]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4119a4
mov eax, dword [esp + 0xc]
mov ecx, dword [esp]
push 4
lea edx, [esp + 0x14]
push edx
push 4
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4119c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4119e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop ecx
ret

Function at 0x4119f0
Capabilities:
Delete registry value

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push 0xf003f
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x411a25
mov eax, dword [esp + 0xc]
mov ecx, dword [esp]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411a45
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411a65
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop ecx
ret
Function at 0x412780
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x452393
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x469524]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
push esi
mov eax, dword [0x469524]
xor eax, esp
push eax
lea eax, [esp + 0x11c]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x124], ebx
mov dword [esp + 0xc], ebx
call fcn.0042121c
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4127e0
push 0x80004005
call fcn.0040ad10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov byte [esp + 0x124], 1
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [esp + 0x14], ebx
je 0x412825
push str.SoftwareWow6432NodeMicrosoftWindowsCurrentVersionUninstall
push 0x45aab8
lea edx, [esp + 0x18]
push edx
jmp 0x412834
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push 0x45aab8
lea eax, [esp + 0x18]
push eax
call fcn.0040a6f0
mov esi, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push 0xf003f
push ebx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4128a8
push 0xff
lea edx, [esp + 0x1d]
push ebx
push edx
mov byte [esp + 0x24], bl
call fcn.0043de70
mov eax, dword [esp + 0x138]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea eax, [esp + 0x2c]
push 0x100
push eax
call fcn.0043c348
mov edx, dword [esp + 0x28]
add esp, 0x1c
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x124], bl
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4128cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x124], 0xffffffff
mov eax, dword [esp + 0x12c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4128f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x11c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0043a8ec
add esp, 0x11c
ret

Function at 0x415730
Capabilities:
Get common file path

Disassembly:
sub esp, 0x804
mov eax, dword [0x469524]
xor eax, esp
mov dword [esp + 0x800], eax
push 0x7ff
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call fcn.0043de70
add esp, 0xc
push 0
push 0x1c
lea ecx, [esp + 8]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edx, [esp]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea eax, [esp]
push eax
push 0x45aab8
push esi
call fcn.0040a6f0
mov ecx, dword [esp + 0x80c]
add esp, 0xc
xor ecx, esp
call fcn.0043a8ec
add esp, 0x804
ret
Function at 0x4157a0
Capabilities:
Get common file path
Get program files directory

Disassembly:
sub esp, 0x804
mov eax, dword [0x469524]
xor eax, esp
mov dword [esp + 0x800], eax
push esi
push 0x7ff
lea eax, [esp + 9]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x10], 0
call fcn.0043de70
add esp, 0xc
push 0
push 0x26
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edx, [esp + 4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea eax, [esp + 4]
push eax
push 0x45aab8
add esi, 4
push esi
call fcn.0040a6f0
mov ecx, dword [esp + 0x810]
add esp, 0xc
pop esi
xor ecx, esp
call fcn.0043a8ec
add esp, 0x804
ret
Function at 0x415b20
Capabilities:
Download url
Receive data

Disassembly:
push 0xffffffffffffffff
push 0x452b10
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x469524]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov dword [esp + 0x18], 2
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x415c8d
mov eax, dword [esp + 0x24]
cmp dword [eax - 0xc], 0
je 0x415c8d
mov edx, dword [esp + 0x28]
cmp dword [edx - 0xc], 0
je 0x415c8d
push 0
push 0
push eax
push ecx
push 0
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
jl 0x415c7f
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
mov eax, dword [esp + 0x24]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x10], esp
mov esi, esp
push eax
call fcn.00409fe0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00416ea0
add esp, 4
test eax, eax
je 0x415bf5
mov ecx, dword [esp + 0x2c]
push ecx
push ecx
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.0040a050
push ecx
lea eax, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
mov byte [esp + 0x28], 3
call fcn.0040a050
mov byte [esp + 0x24], 2
call fcn.00415820
mov byte [esp + 0x18], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415c1a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x18], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415c3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415c67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret 0x10
mov byte [esp + 0x18], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
jmp 0x415c95
mov byte [esp + 0x18], 1
lea eax, [ecx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415cae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x18], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415cd3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415cfb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret 0x10
Function at 0x416250
Capabilities:
Get common file path

Disassembly:
sub esp, 0x408
mov eax, dword [0x469524]
xor eax, esp
mov dword [esp + 0x404], eax
push 0x3ff
lea eax, [esp + 9]
push 0
push eax
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 0
call fcn.0043de70
mov edx, dword [esp + 0x418]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 0
push 0
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [esp + 4]
push eax
mov ecx, esi
call fcn.0040a430
mov ecx, dword [esp + 0x404]
xor ecx, esp
mov eax, esi
call fcn.0043a8ec
add esp, 0x408
ret

Function at 0x416f50
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x451bf8
mov eax, dword fs:[0]
push eax
sub esp, 0x404
mov eax, dword [0x469524]
xor eax, esp
mov dword [esp + 0x400], eax
push esi
mov eax, dword [0x469524]
xor eax, esp
push eax
lea eax, [esp + 0x40c]
mov dword fs:[0], eax
push 0x3ff
lea eax, [esp + 0xd]
push 0
mov dword [esp + 0x41c], 0
push eax
mov byte [esp + 0x14], 0
call fcn.0043de70
mov edx, dword [esp + 0x428]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
add esp, 0xc
or ecx, eax
jge 0x416fd7
push 0
lea ecx, [esp + 0x420]
call fcn.0040a5c0
mov edx, dword [esp + 0x41c]
push edx
lea ecx, [esp + 0xc]
push 0x400
push ecx
call fcn.0043c79b
add esp, 0xc
lea edx, [esp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov esi, eax
mov dword [esp + 0x414], 0xffffffff
mov eax, dword [esp + 0x41c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417025
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x40c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.0043a8ec
add esp, 0x410
ret
Function at 0x417050
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x452a78
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push edi
mov eax, dword [0x469524]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push esi
call fcn.0040a430
call fcn.00416ea0
add esp, 4
test eax, eax
je 0x4171c3
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call ebp
push 0x3e8
call edi
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push esi
call fcn.0040a430
call fcn.00416ea0
add esp, 4
test eax, eax
je 0x4170ef
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push esi
call fcn.0040a430
call fcn.00417aa0
add esp, 4
push 0x3e8
call edi
push esi
call ebp
push 0x3e8
call edi
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push esi
call fcn.0040a430
call fcn.00416ea0
add esp, 4
test eax, eax
je 0x417192
call fcn.0042121c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x417126
push 0x80004005
call fcn.0040ad10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push esi
lea ecx, [esp + 0x18]
push str._s.temp
push ecx
mov dword [esp + 0x2c], 0
call fcn.0040a6f0
mov ebx, dword [esp + 0x20]
add esp, 0xc
push ebx
call ebp
push 0x3e8
call edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 0x3e8
call edi
lea eax, [ebx - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x417192
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push esi
call fcn.0040a430
call fcn.00416ea0
xor ecx, ecx
add esp, 4
test eax, eax
sete cl
mov eax, ecx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x417630
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0xffffffffffffffff
push 0x4520f6
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x469524]
xor eax, esp
mov dword [esp + 0x150], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x469524]
xor eax, esp
push eax
lea eax, [esp + 0x16c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x17c]
mov dword [esp + 0x1c], edi
call fcn.0042121c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x417690
push 0x80004005
call fcn.0040ad10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push edi
lea ecx, [esp + 0x18]
push str._s.
push ecx
mov dword [esp + 0x180], 0
call fcn.0040a6f0
mov eax, dword [esp + 0x20]
add esp, 0xc
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x417807
call fcn.0042121c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4176f5
push 0x80004005
call fcn.0040ad10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x174], 1
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x417724
mov edi, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push 0x45bc50
lea ecx, [esp + 0x54]
push ecx
call esi
test eax, eax
je 0x41774e
push 0x45bc54
lea edx, [esp + 0x54]
push edx
call esi
test eax, eax
je 0x41774e
xor esi, esi
jmp 0x417753
mov esi, 1
lea eax, [esp + 0x50]
push eax
push edi
lea ecx, [esp + 0x28]
push str._s_s
push ecx
call fcn.0040a6f0
mov edi, dword [esp + 0x30]
add esp, 0x10
test byte [esp + 0x24], 0x10
je 0x417785
test esi, esi
jne 0x4177ae
push edi
call fcn.00417630
add esp, 4
jmp 0x4177ae
test esi, esi
jne 0x4177ae
mov esi, 5
mov edi, edi
push edi
dec esi
call ebx
test eax, eax
jne 0x4177ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4177ae
push 0x384
call ebp
test esi, esi
jne 0x417790
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x417720
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0x3e8
call ebp
lea eax, [edi - 0x10]
mov byte [esp + 0x174], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417807
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x174], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417832
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x16c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.0043a8ec
add esp, 0x164
ret