joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4097e4
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x40d3d2
call fcn.0040bdb7
mov esi, dword [ebp + 8]
xor eax, eax
xor edi, edi
xor ebx, ebx
mov word [esi], ax
mov dword [ebp - 4], edi
call fcn.00407c19
test eax, eax
je 0x40980f
call fcn.004097d5
mov ebx, eax
push 0x104
push esi
push ebx
push edi
push 0x40e2ec
call dword [sym.imp.SHELL32.dll_SHGetFolderPathEx]
mov esi, eax
cmp esi, edi
jge 0x40986a
push esi
push str.Error:_08x_in_SHGetFolderPathEx_FOLDERID_LocalAppDataLow__0__hToken__pPath__MAX_PATH_
call fcn.0040a1f5
pop ecx
pop ecx
push edi
push esi
call fcn.0040ca30
mov ecx, dword [ebp - 0x18]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x14], esi
call fcn.00409ec3
push eax
push esi
push 0x40fa3c
call fcn.0040a1f5
or dword [ebp - 4], 0xffffffff
add esp, 0xc
mov eax, 0x409863
ret
cmp ebx, edi
je 0x409875
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
cmp esi, edi
jge 0x409926
push dword [ebp + 8]
mov dword [ebp - 4], 2
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
cmp esi, edi
jge 0x4098d2
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__pPath_
jmp 0x40982e
or dword [ebp - 4], 0xffffffff
cmp esi, edi
jge 0x409926
push 1
push 0x1a
push dword [ebp + 8]
mov dword [ebp - 4], 4
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, eax
cmp esi, edi
jge 0x409926
push esi
push str.Error:_08x_in_SHGetSpecialFolderPathW_NULL__pPath__CSIDL_APPDATA__TRUE_
jmp 0x40982e
mov eax, esi
call fcn.0040be23
ret

Function at 0x409c73
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x41517c]
xor eax, ebp
mov dword [ebp + 0x9c], eax
mov eax, dword [ebp + 0xa8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.00407756
mov ebx, eax
cmp ebx, esi
je 0x409ce6
lea ecx, [ebp - 0x74]
call fcn.0040773b
mov eax, ebx
mov ecx, dword [ebp + 0x9c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bcaf
add ebp, 0xa0
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x409cfe
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
call fcn.00409c73
cmp eax, esi
jne 0x409d30
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x68], 0x100
call ebx
test eax, eax
je 0x409cee
lea ecx, [ebp - 0x74]
call fcn.0040773b
push dword [ebp - 0x78]
mov ecx, edi
call fcn.004076cc
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.0040773b
mov eax, esi
jmp 0x409ccc
Function at 0x40a083
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x41517c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, 0x3ff
push esi
lea eax, [ebp - 0x823]
push 0
push eax
mov byte [ebp - 0x824], 0
call sub.MSVCR100.dll_memset
push edi
push ebx
push 0xffffffffffffffff
lea eax, [ebp - 0x824]
push 0x400
push eax
call dword [sym.imp.MSVCR100.dll__vsnprintf_s]
add esp, 0x20
test eax, eax
jns 0x40a0de
mov byte [ebp - 0x425], 0
push 7
xor eax, eax
mov byte [ebp - 0x24], 0
pop ecx
lea edi, [ebp - 0x23]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.0040a004
push 0x4104f8
lea eax, [ebp - 0x24]
push 0x20
push eax
call dword [sym.imp.MSVCR100.dll_strcat_s]
push esi
lea eax, [ebp - 0x423]
push 0
push eax
mov byte [ebp - 0x424], 0
call sub.MSVCR100.dll_memset
mov eax, ebx
add esp, 0x20
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a129
sub eax, edi
cmp eax, 6
jbe 0x40a152
lea eax, [ebx + eax - 6]
push str.__08x_
push eax
call dword [sym.imp.MSVCR100.dll__mbscmp]
pop ecx
pop ecx
test eax, eax
jne 0x40a152
xor ebx, ebx
inc ebx
jmp 0x40a154
xor ebx, ebx
lea eax, [ebp - 0x24]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a15a
sub eax, edx
mov edi, eax
mov eax, str.Error:
test ebx, ebx
jne 0x40a173
mov eax, 0x41040e
lea ecx, [ebp - 0x824]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.P:_04d_T:_04d__s_s
push 0xffffffffffffffff
sub esi, edi
lea eax, [ebp + edi - 0x424]
push esi
push eax
call dword [sym.imp.MSVCR100.dll__snprintf_s]
add esp, 0x20
test eax, eax
jns 0x40a1af
mov dword [ebp - 0x29], 0x2e2e2e
push edi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x424]
push eax
call sub.MSVCR100.dll_memcpy
lea edi, [ebp - 0x424]
add esp, 0xc
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40a1ca
lea eax, [ebp - 0x424]
mov esi, 0x410524
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bcaf
leave
ret
Function at 0x40a2b7
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x179c]
mov eax, 0x181c
call fcn.0040bcd0
mov eax, dword [0x41517c]
xor eax, ebp
mov dword [ebp + 0x1798], eax
mov eax, dword [ebp + 0x17a4]
push ebx
push esi
push edi
xor ebx, ebx
mov edi, 0x7ff
push edi
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0xf99]
push ebx
push eax
mov dword [ebp - 0x70], ebx
mov byte [ebp + 0xf98], bl
call sub.MSVCR100.dll_memset
push edi
lea eax, [ebp - 0x67]
push ebx
push eax
mov byte [ebp - 0x68], bl
call sub.MSVCR100.dll_memset
add esp, 0x18
lea eax, [ebp - 0x7c]
push eax
push 0x20019
push ebx
push 0x4106c8
lea esi, [edi + 1]
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x6c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a417
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0xf98]
push eax
push ebx
jmp 0x40a406
lea eax, [ebp + 0xf98]
push eax
push 0x4106f4
push 0x410720
lea eax, [ebp - 0x68]
push esi
push eax
call dword [sym.imp.MSVCR100.dll_sprintf_s]
add esp, 0x14
lea eax, [ebp - 0x78]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x68]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a3ee
push edi
lea eax, [ebp + 0x799]
push ebx
push eax
mov byte [ebp + 0x798], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x798]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push 0x410728
push dword [ebp - 0x78]
mov dword [ebp - 0x6c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40a3ee
cmp dword [ebp - 0x6c], ebx
jbe 0x40a3ee
mov eax, dword [ebp + 0x17a8]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x74]
lea eax, [ebp - 0x80]
push eax
push ebx
push 0x410734
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
inc dword [ebp - 0x70]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0xf98]
push eax
push dword [ebp - 0x70]
mov dword [ebp - 0x6c], esi
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x40a34e
mov eax, dword [ebp - 0x74]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40a41d
sub eax, edx
xor ecx, ecx
cmp ecx, eax
mov ecx, dword [ebp + 0x1798]
pop edi
sbb eax, eax
pop esi
xor ecx, ebp
neg eax
pop ebx
call fcn.0040bcaf
add ebp, 0x179c
leave
ret
Function at 0x40a446
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push esi
push dword [ebp + 8]
xor esi, esi
inc esi
mov dword [ebp - 8], esi
call dword [sym.imp.MSVCR100.dll_getenv]
pop ecx
test eax, eax
je 0x40a47b
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
neg eax
sbb eax, eax
inc eax
jmp 0x40a4c9
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push dword [0x415110]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40a49f
xor eax, eax
jmp 0x40a4c9
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40a4be
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x40a60f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
call fcn.0040a4cc
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + 1]
lea eax, [ebp - 4]
push eax
push 0x20006
push edi
push dword [0x415110]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40a650
xor eax, eax
pop edi
pop esi
leave
ret
push esi
push dword [ebp + 0xc]
push 1
push edi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40a674
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x40a64c
xor edi, edi
inc edi
jmp 0x40a667
Function at 0x40b2e0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1f9c]
mov eax, 0x201c
call fcn.0040bcd0
mov eax, dword [0x41517c]
xor eax, ebp
mov dword [ebp + 0x1f98], eax
mov eax, dword [ebp + 0x1fa4]
push ebx
push esi
push edi
xor ebx, ebx
mov edi, 0x7ff
push edi
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x1799]
push ebx
mov dword [ebp - 0x78], ebx
push eax
mov dword [ebp - 0x70], ebx
mov byte [ebp + 0x1798], bl
call sub.MSVCR100.dll_memset
push edi
lea eax, [ebp + 0x799]
push ebx
push eax
mov byte [ebp + 0x798], bl
call sub.MSVCR100.dll_memset
add esp, 0x18
lea eax, [ebp - 0x80]
push eax
push 0x20019
push ebx
push 0x410a6c
lea esi, [edi + 1]
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x6c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b44a
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x1798]
push eax
push ebx
jmp 0x40b439
lea eax, [ebp + 0x1798]
push eax
push str.SOFTWAREJavaSoftJava_Runtime_Environment
push str._s_s
lea eax, [ebp + 0x798]
push esi
push eax
call dword [sym.imp.MSVCR100.dll_sprintf_s]
add esp, 0x14
lea eax, [ebp - 0x7c]
push eax
push 0x20019
push ebx
lea eax, [ebp + 0x798]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b421
push edi
lea eax, [ebp + 0xf99]
push ebx
push eax
mov byte [ebp + 0xf98], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0xf98]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push str.RuntimeLib
push dword [ebp - 0x7c]
mov dword [ebp - 0x6c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40b421
cmp dword [ebp - 0x6c], ebx
jbe 0x40b421
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push 0x410ad8
push dword [ebp - 0x7c]
mov dword [ebp - 0x6c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
inc dword [ebp - 0x70]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x1798]
push eax
push dword [ebp - 0x70]
mov dword [ebp - 0x6c], esi
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x40b380
mov ecx, dword [ebp - 0x74]
lea eax, [ebp - 0x68]
push eax
call fcn.00409d3e
mov ecx, dword [ebp + 0x1f98]
mov eax, dword [ebp - 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bcaf
add ebp, 0x1f9c
leave
ret

Function at 0x40bcaf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41517c]
jne 0x40bcb9
repz ret
jmp fcn.0040c1fb
Function at 0x402a36
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x423f30]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402aca
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a87
cmp dword [ebp + 0x10], ebx
jne 0x402abe
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a36
test eax, eax
jne 0x402a99
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a6e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405cfb
cmp eax, ebx
je 0x402ad1
push ebx
push dword [0x423f30]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402aca
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x423f30], ebx
jne 0x402ac7
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ac7
jmp 0x402aca
Function at 0x402e5b
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x402e78
mov dword [ebp - 8], RegEnumValueA
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402e87
mov ebx, 0x40f020
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402e9c
mov ecx, dword [0x423ed8]
add ecx, eax
push ecx
call fcn.00403080
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.0040304e
test eax, eax
je 0x402ff9
test byte [ebp + 0x17], 0x80
je 0x402fe2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40af90
mov dword [ebp - 0xc], eax
call fcn.00405dd5
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x403044
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402eec
mov esi, dword [ebp + 0x14]
mov edi, 0x40b020
push esi
push edi
call fcn.0040304e
test eax, eax
je 0x402ff9
sub dword [ebp + 0x14], esi
mov dword [0x40afa8], edi
mov dword [0x40afac], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40af90
mov dword [0x40afb0], ebx
mov dword [0x40afb4], eax
call fcn.00405df5
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x402fda
mov esi, dword [0x40afb0]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x423f34], 1
mov edi, eax
je 0x402f8e
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x402f5b
cmp dword [ebp + 0x14], 0
jne 0x402f8e
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.00404d7b
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x402fcf
cmp dword [ebp + 0x10], eax
jne 0x402fb7
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402fde
cmp dword [ebp - 0x10], esi
jne 0x402fde
add dword [ebp - 4], esi
jmp 0x402fc3
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x40afb0]
cmp dword [ebp - 0x14], 1
jne 0x402f0f
jmp 0x403044
cmp dword [ebp + 0x14], eax
jg 0x402edf
jmp 0x403044
push 0xfffffffffffffffc
jmp 0x402ffb
push 0xfffffffffffffffe
jmp 0x402ffb
test edi, edi
je 0x403039
cmp dword [ebp + 0x14], esi
jge 0x402fee
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.0040304e
test eax, eax
jne 0x403041
push 0xfffffffffffffffd
pop eax
jmp 0x403047
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x403009
mov esi, dword [ebp + 0x14]
mov edi, 0x40b020
push esi
push edi
call fcn.0040304e
test eax, eax
je 0x402ff9
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402fde
cmp esi, dword [ebp + 0x10]
jne 0x402fde
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x402ffe
jmp 0x403044
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40523d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x422480], 0x44
push eax
xor eax, eax
push 0x422480
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405278
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405302
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.004055b1
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x405336
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423f08], eax
jmp 0x4054ca
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x405354
test eax, eax
je 0x405475
test byte [ebp + 0xc], 2
je 0x405475
mov esi, 0x421480
push edi
push esi
call fcn.004059dd
test ebx, ebx
je 0x405371
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405377
push edi
call fcn.00405517
cmp byte [edi], 0
jne 0x405385
cmp byte [0x421480], 0x5c
jne 0x405390
push 0x409010
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x40546b
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.004054fb
cmp byte [eax], 0
je 0x4053d6
cmp byte [ebp - 0x18], 0
je 0x4053d6
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x4053ec
mov al, byte [esi + 1]
test al, al
je 0x40544a
cmp al, 0x2e
jne 0x4053ec
cmp byte [esi + 2], 0
je 0x40544a
push esi
push ebx
call fcn.004059dd
test byte [ebp - 0x148], 0x10
je 0x405411
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40544a
push dword [ebp + 0xc]
push edi
call fcn.00405302
jmp 0x40544a
push edi
call fcn.00405695
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405442
test byte [ebp + 0xc], 4
je 0x40543a
push edi
push 0xfffffffffffffff1
call fcn.00404d7b
push 0
push edi
call fcn.0040572b
jmp 0x40544a
inc dword [0x423f08]
jmp 0x40544a
push edi
push 0xfffffffffffffff2
call fcn.00404d7b
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4053b4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x405475
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x4054ca
cmp dword [ebp - 8], esi
jne 0x40548a
inc dword [0x423f08]
jmp 0x4054ca
push edi
call fcn.00405cd4
test eax, eax
je 0x4054ca
push edi
call fcn.004054d0
push edi
call fcn.00405695
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4054c2
test byte [ebp + 0xc], 4
je 0x405482
push edi
push 0xfffffffffffffff1
call fcn.00404d7b
push esi
push edi
call fcn.0040572b
jmp 0x4054ca
push edi
push 0xffffffffffffffe5
call fcn.00404d7b
pop edi
pop esi
leave
ret 8
Function at 0x4055b1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421880
push esi
call fcn.004059dd
push esi
call fcn.00405564
mov edi, eax
test edi, edi
jne 0x4055d2
xor eax, eax
jmp 0x405624
push edi
call fcn.00405c3b
test byte [0x423e98], 0x80
je 0x4055eb
mov al, byte [edi]
test al, al
je 0x4055ce
cmp al, 0x5c
je 0x4055ce
sub edi, esi
jmp 0x405603
call fcn.00405cd4
test eax, eax
je 0x4055fd
test byte [eax], 0x10
je 0x4055ce
push esi
call fcn.00405517
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x4055ef
call fcn.004054d0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405695
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4056b1
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x4056b4
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x4056e3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405727
test edi, edi
jne 0x4056ee
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405721
Function at 0x40572b
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405cfb
test eax, eax
mov esi, dword [esp + 0x18]
je 0x40574f
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405888
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x422608], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x422608
je 0x405793
push 1
push 0
push esi
call fcn.004056b4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x40588e
cmp eax, edi
jg 0x40588e
mov esi, 0x422080
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x40588e
cmp eax, edi
jg 0x40588e
push esi
push ebp
push str._s_s_r_n
push 0x421c80
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x423e90]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004059ff
push 4
push 0xc0000000
push esi
call fcn.004056b4
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405888
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405881
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405881
cmp edi, dword [esp + 0x18]
jne 0x405881
push str._Rename__r_n
push esi
call fcn.00405629
test eax, eax
jne 0x405895
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.004059dd
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x421c80
push eax
call fcn.00405675
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x423f10]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409330
push eax
call fcn.00405629
test eax, eax
je 0x40584c
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x4058bc
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x4058b1
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x40584e