joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417233
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x445aa8
call fcn.004205a0
sub esp, 0x114
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esi
push 0x2001f
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [ebx]
call fcn.004171f5
mov edi, eax
cmp edi, esi
je 0x41727d
cmp dword [ebp - 0x10], esi
je 0x417276
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x41731a
lea eax, [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x4172ee
lea eax, [ebp - 0x120]
lea ecx, [ebp - 0x10]
push eax
call fcn.00417233
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x4172db
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
push eax
push esi
push dword [ebp - 0x10]
jmp 0x4172a0
cmp dword [ebp - 0x10], esi
je 0x4172e9
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
jmp 0x41731a
cmp dword [ebp - 0x10], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x417301
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 0x10], esi
mov ebx, eax
je 0x417318
push dword [ebp - 0x10]
call edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x41732b
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x445ad4
call fcn.004205a0
sub esp, 0x40
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
push 0x20019
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00401eea
push eax
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
call fcn.004171f5
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x4173f0
push esi
push edi
mov dword [ebp - 0x14], ebx
mov esi, 0x105
lea eax, [ebp + 0xb]
push ebx
push eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0x4494d8
mov dword [ebp - 0x2c], 0x4494d0
call fcn.00401a27
lea eax, [ebp - 0x24]
push esi
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 2
call fcn.0040171f
mov edi, eax
mov ecx, dword [edi]
mov byte [ebp - 4], 3
call fcn.00401eea
push esi
push eax
push dword [ebp - 0x14]
mov dword [edi + 8], eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [ebp - 0x24]
mov edi, eax
mov byte [ebp - 4], 2
call fcn.00401974
cmp edi, ebx
jne 0x4173db
mov ecx, dword [ebp + 0x34]
lea eax, [ebp - 0x4c]
push eax
call fcn.00410603
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.00401291
inc dword [ebp - 0x14]
cmp edi, ebx
je 0x417373
pop edi
pop esi
mov eax, dword [ebp - 0x18]
cmp eax, ebx
mov dword [0x458994], eax
sete byte [ebp + 0xb]
cmp dword [ebp - 0x10], ebx
je 0x41740f
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401291
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp + 0xb]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x41742b
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x445b27
call fcn.004205a0
sub esp, 0x4c
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0xd]
push ebx
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 3
mov dword [ebp - 0x58], 0x4494d8
mov dword [ebp - 0x38], 0x4494d0
call fcn.00401a27
mov dword [ebp - 0x14], ebx
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 5
call fcn.00401eea
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push ecx
push 0x20019
push ebx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x417499
lea ecx, [ebp - 0x14]
call fcn.00417593
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
cmp eax, ebx
push edi
mov esi, eax
jne 0x417512
mov esi, dword [ebp - 0x14]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x24]
push ebx
push eax
push ebx
lea ecx, [ebp + 0x38]
call fcn.00401eea
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push esi
call edi
mov esi, eax
cmp esi, ebx
jne 0x417512
push dword [ebp + 0xc]
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x58]
push eax
call fcn.0040171f
mov esi, eax
mov ecx, dword [esi]
mov byte [ebp - 4], 6
call fcn.00401eea
lea ecx, [ebp + 0x38]
mov dword [ebp - 0x18], eax
mov dword [esi + 8], eax
call fcn.00401eea
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x1c], ebx
push ecx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x18]
push ecx
push ebx
push eax
push dword [ebp - 0x14]
call edi
lea ecx, [ebp - 0x30]
mov esi, eax
mov byte [ebp - 4], 5
call fcn.00401974
cmp esi, ebx
mov dword [0x458994], esi
pop edi
lea eax, [ebp - 0x58]
je 0x417523
lea eax, [ebp + 0x60]
mov esi, dword [ebp + 8]
push ebx
push eax
mov ecx, esi
mov dword [esi], 0x4494d8
mov dword [esi + 0x20], 0x4494d0
call fcn.00401a9c
mov dword [ebp - 0x20], 1
cmp dword [ebp - 0x14], ebx
je 0x417554
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.00401291
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.00401291
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 1
call fcn.00401291
lea ecx, [ebp + 0x60]
mov byte [ebp - 4], bl
call fcn.00401291
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4175aa
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x445b4c
call fcn.004205a0
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
push 0x20019
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.00401eea
push eax
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
call fcn.004171f5
cmp eax, ebx
jne 0x41760b
lea ecx, [ebp + 0x34]
call fcn.00401eea
lea ecx, [ebp + 8]
mov dword [ebp - 0x14], ebx
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push ebx
push eax
mov dword [ebp + 8], 4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, dword [ebp - 0x18]
cmp eax, ebx
mov dword [0x458994], eax
je 0x41761a
mov esi, dword [ebp + 0x5c]
cmp dword [ebp - 0x10], ebx
je 0x41762b
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call fcn.00401291
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x34]
call fcn.00401291
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4183e8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x4183fc
push 1
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x418430
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.0041e0fb
test al, al
jne 0x418463
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.0040da9c
lea eax, [ebp - 0x4c]
push 0x44d398
push eax
call fcn.00420f48
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x418463
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.0040ada6
lea eax, [ebp - 0x48]
push 0x44cc60
push eax
call fcn.00420f48
mov eax, dword [ebp + 8]
pop esi
leave
ret 8
Function at 0x419593
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x445ea3
call fcn.004205a0
sub esp, 0x138
and byte [ebp - 0x144], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x143]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
stosb byte es:[edi], al
push 1
lea eax, [ebp - 0x10]
pop ebx
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x419670
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x18], 0x104
mov eax, str.CommonFilesDir
je 0x4195fd
mov eax, str.ProgramFilesDir
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x144]
push ecx
push esi
push esi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp + 0xf]
push 0
push eax
lea eax, [ebp - 0x144]
mov edi, 0x449500
mov esi, 0x4494f8
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x20], esi
call fcn.00404716
push 0x453344
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00403c36
lea ecx, [ebp - 0x40]
call fcn.004191d8
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x40]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00401a9c
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x40]
jmp 0x4196bf
lea eax, [ebp + 0xf]
push 0
push eax
lea eax, [ebp - 0x144]
mov edi, 0x449500
mov esi, 0x4494f8
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x20], esi
call fcn.00404716
push 0x453344
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00403c36
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00401a9c
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x40]
call fcn.00401291
cmp dword [ebp - 0x10], 0
je 0x4196d8
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4196d8
push dword [ebp - 0x10]
call eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x419d00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x419d16
mov dword [ebp + 0xc], 4
lea eax, [ebp + 0xc]
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x419d4b
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.0040ada6
lea eax, [ebp - 0x48]
push 0x44cc60
push eax
call fcn.00420f48
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8
Function at 0x419d53
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x419d69
mov dword [ebp + 0xc], 1
lea eax, [ebp + 0xc]
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x419d9e
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.0040ada6
lea eax, [ebp - 0x48]
push 0x44cc60
push eax
call fcn.00420f48
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8
Function at 0x41d33d
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
lea eax, [ebp - 4]
push edi
xor ebx, ebx
push eax
push ebx
push 8
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41d3a4
call esi
cmp eax, 0x3f0
jne 0x41d397
lea eax, [ebp - 4]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call esi
cmp eax, 0x78
jne 0x41d3a0
push 1
jmp 0x41d3c3
cmp eax, ebx
je 0x41d3c2
lea eax, [ebp - 8]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push ebx
push ebx
push 2
push dword [ebp - 4]
call edi
test eax, eax
jne 0x41d3c2
call esi
cmp eax, 0x7a
je 0x41d3d2
push ebx
push dword [ebp - 4]
call fcn.0041d32e
pop ecx
pop ecx
jmp 0x41d4c9
push dword [ebp - 8]
call fcn.00420d90
mov esi, eax
pop ecx
lea eax, [ebp - 8]
cmp esi, ebx
push eax
push dword [ebp - 8]
setne byte [ebp - 0x20]
push esi
push 2
push dword [ebp - 4]
call edi
test eax, eax
jne 0x41d418
push ebx
push dword [ebp - 4]
call fcn.0041d32e
cmp byte [ebp - 0x20], bl
pop ecx
pop ecx
mov byte [ebp + 0xb], al
je 0x41d410
push esi
call fcn.0041fd63
pop ecx
mov al, byte [ebp + 0xb]
jmp 0x41d4c9
lea eax, [ebp - 0x10]
push eax
mov al, byte [ebp + 8]
neg al
push ebx
push ebx
sbb eax, eax
push ebx
and al, 0xfd
push ebx
push ebx
add eax, 0x223
push ebx
push eax
push 0x20
lea eax, [ebp - 0x18]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x41d462
push ebx
push dword [ebp - 4]
call fcn.0041d32e
cmp byte [ebp - 0x20], bl
pop ecx
pop ecx
mov byte [ebp + 0xb], al
je 0x41d45d
push esi
call fcn.0041fd63
pop ecx
mov al, byte [ebp + 0xb]
jmp 0x41d4c9
xor edi, edi
cmp dword [esi], ebx
mov byte [ebp - 0xc], bl
jbe 0x41d4a1
lea eax, [esi + 4]
mov dword [ebp + 8], eax
push dword [ebp - 0x10]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x41d48e
add dword [ebp + 8], 8
inc edi
cmp edi, dword [esi]
jb 0x41d471
jmp 0x41d4a1
cmp byte [ebp + 0xc], bl
je 0x41d49d
test byte [esi + edi*8 + 8], 0x10
mov byte [ebp - 0xc], bl
jne 0x41d4a1
mov byte [ebp - 0xc], 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.0041d32e
cmp byte [ebp - 0x20], bl
pop ecx
pop ecx
mov byte [ebp + 0xb], al
je 0x41d4c6
push esi
call fcn.0041fd63
pop ecx
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41dbd9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
push ebx
push edi
mov edi, ecx
call fcn.0040a942
xor ebx, ebx
cmp eax, 1
jne 0x41dc76
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x41dc63
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
push ebx
push str.ProxyEnable
mov dword [ebp - 8], 4
push dword [ebp - 4]
call esi
test eax, eax
je 0x41dc3a
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x824
push eax
lea eax, [ebp - 0x830]
push eax
push ebx
push ebx
push str.AutoConfigURL
push dword [ebp - 4]
call esi
test eax, eax
pop esi
je 0x41dc63
mov byte [ebp - 0x830], bl
cmp dword [ebp - 4], ebx
je 0x41dc76
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x41dc76
push dword [ebp - 4]
call eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041d885
add esp, 0x14
xor ecx, ecx
cmp eax, ebx
mov dword [edi + 4], eax
setne cl
pop edi
mov al, cl
pop ebx
leave
ret 0x14
Function at 0x41e39b
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call edi
sub eax, dword [esi + 0x74]
cmp eax, 0x7530
jbe 0x41e3d3
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x70]
mov dword [esi + 0x5c], eax
mov dword [esi + 0x64], ecx
mov ecx, dword [esi + 0x6c]
xor eax, eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x60], ecx
mov dword [esi + 0x6c], eax
call edi
mov dword [esi + 0x74], eax
mov edi, dword [esi + 0x64]
test edi, edi
jne 0x41e3df
mov eax, dword [esi + 0x5c]
jmp 0x41e428
push ebx
push ebp
push 0xa
xor eax, eax
pop ecx
xor ebp, ebp
test eax, eax
jne 0x41e426
or eax, 0xffffffff
xor edx, edx
div ecx
mov ebx, dword [esi + 0x5c]
cmp ebx, eax
jbe 0x41e404
shr ebx, 1
shr edi, 1
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x64], edi
mov eax, dword [esi + 0x5c]
mov edi, dword [esi + 0x64]
imul eax, ecx
xor edx, edx
div edi
xor edx, edx
imul eax, eax, 0x3e8
div ecx
lea ecx, [ecx + ecx*4]
inc ebp
shl ecx, 1
cmp ebp, 3
jb 0x41e3e8
pop ebp
pop ebx
pop edi
pop esi
ret

Function at 0x41e8e5
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 8]
mov esi, ecx
push eax
push 0x20000013
push dword [esi + 4]
mov dword [ebp - 4], 4
call fcn.0041d9c9
add esp, 0x14
test eax, eax
je 0x41e923
mov eax, dword [ebp - 8]
cmp eax, 0xc8
jb 0x41e927
cmp eax, 0x12c
jae 0x41e927
mov al, 1
jmp 0x41e93d
add eax, 0xd3c0
or eax, 0x80040000
push eax
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
pop esi
leave
ret
Function at 0x41eae9
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, 0x4466d7
call fcn.004205a0
sub esp, 0x1dc
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
call fcn.0041ed92
test al, 0x10
pop ecx
je 0x41ec6b
push 1
lea eax, [ebp + 8]
pop ebx
push 0x4546c4
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.0041ed19
add esp, 0xc
lea ecx, [ebp - 0x1e8]
mov byte [ebp - 4], bl
push ecx
mov ecx, eax
call fcn.00404afe
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov dword [ebp - 0x10], edi
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.00401291
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
cmp edi, 0xffffffff
je 0x41ec12
test ebx, ebx
je 0x41ec07
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea eax, [ebp - 0x1bc]
push 0x45469c
push eax
call ebx
test eax, eax
je 0x41ebf2
lea eax, [ebp - 0x1bc]
push 0x454698
push eax
call ebx
test eax, eax
je 0x41ebf2
lea eax, [ebp - 0x11]
push 0
push eax
lea eax, [ebp - 0x1bc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x449500
mov dword [ebp - 0x20], 0x4494f8
call fcn.00404716
sub esp, 0x28
lea ecx, [ebp - 0x40]
mov eax, esp
mov dword [ebp - 0x18], esp
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
mov byte [ebp - 4], 4
call fcn.0041eca0
add esp, 0xc
call fcn.0041eae9
add esp, 0x28
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00401291
lea eax, [ebp - 0x1e8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov ebx, eax
jmp 0x41eb6c
test esi, esi
je 0x41ec12
push edi
call esi
or dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00404afe
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x41ec41
lea eax, [ebp + 8]
push 1
push eax
lea ecx, [ebp - 0x60]
call fcn.0040ada6
lea eax, [ebp - 0x60]
push 0x44cc60
push eax
call fcn.00420f48
cmp dword [ebp - 0x10], 0xffffffff
je 0x41ec50
test esi, esi
je 0x41ec50
push dword [ebp - 0x10]
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401291
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
lea ecx, [ebp + 8]
call fcn.00404afe
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x41ec50
lea eax, [ebp + 8]
push 1
push eax
lea ecx, [ebp - 0xa8]
call fcn.0040ada6
lea eax, [ebp - 0xa8]
push 0x44cc60
push eax
call fcn.00420f48

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov ecx, dword [ebp + 8]
call fcn.00404afe
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41edc7
push 1
lea ecx, [ebp - 0x48]
push dword [ebp + 8]
call fcn.0040ada6
lea eax, [ebp - 0x48]
push 0x44cc60
push eax
call fcn.00420f48
leave
ret
Function at 0x41f17b
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push ebx
push eax
mov ebx, ecx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 4], eax
je 0x41f1cd
push eax
call fcn.00420d90
pop ecx
mov dword [ebx + 0x40], eax
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x41f1cd
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4534c0
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x41f1d1
xor al, al
jmp 0x41f232
push esi
push edi
mov edi, ebx
lea eax, [ebx + 4]
neg edi
sbb edi, edi
mov esi, dword [ebp - 0xc]
push 0xd
and edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
pop edi
pop esi
test eax, eax
je 0x41f230
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [ebx + 0x3c], eax
shl eax, 2
push eax
call fcn.00420d90
mov dword [ebx + 0x38], eax
xor eax, eax
cmp dword [ebx + 0x3c], eax
pop ecx
jbe 0x41f230
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 0x3c]
jb 0x41f21e
mov al, 1
pop ebx
leave
ret 4

Function at 0x4273b6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x457ce8
cmp edx, dword [eax]
je 0x4273d8
add eax, 8
inc ecx
cmp eax, 0x457d78
jl 0x4273c9
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x457ce8]
jne 0x427506
mov eax, dword [0x458b1c]
cmp eax, 1
je 0x4274e0
test eax, eax
jne 0x427409
cmp dword [0x455574], 1
je 0x4274e0
cmp edx, 0xfc
je 0x427506
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x427440
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00421870
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004215d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x427483
lea eax, [ebp - 0x1a4]
push eax
call fcn.004215d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x44a7b4
push edi
call fcn.004223a0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00421870
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00421880
lea eax, [ebp - 0xa0]
push 0x44a794
push eax
call fcn.00421880
push dword [esi + 0x457cec]
lea eax, [ebp - 0xa0]
push eax
call fcn.00421880
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00428f00
add esp, 0x2c
pop edi
jmp 0x427506
lea eax, [ebp + 8]
lea esi, [esi + 0x457cec]
push 0
push eax
push dword [esi]
call fcn.004215d0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret