joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4026f0
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x43100c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, dword [eax]
mov edi, ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x38], edi
test ebx, ebx
jne 0x40273e
push ebx
push 0x42e35b
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], 0xf
mov byte [edi], bl
call fcn.00413e60
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00414dac
mov esp, ebp
pop ebp
ret
mov eax, ebx
xor esi, esi
and eax, 3
jne 0x402755
cmp byte [ebx + edx - 1], 0x3d
je 0x402755
xor ecx, ecx
mov dword [ebp - 0x24], ecx
jmp 0x40276f
mov ecx, 1
mov dword [ebp - 0x24], ecx
cmp eax, 2
ja 0x40276d
cmp byte [ebx + edx - 2], 0x3d
jne 0x40276d
xor eax, eax
jmp 0x40276f
mov eax, ecx
sub ebx, ecx
mov dword [ebp - 0x30], eax
and ebx, 0xfffffffc
mov dword [ebp - 0x10], esi
mov ecx, ebx
mov dword [ebp - 0x3c], ebx
shr ecx, 2
push 0
mov dword [ebp - 0xc], 0xf
mov byte [ebp - 0x20], 0
lea eax, [eax + ecx*2]
add eax, ecx
lea ecx, [ebp - 0x20]
add eax, dword [ebp - 0x24]
push eax
call fcn.00413d20
cmp dword [ebp - 0xc], 0x10
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
test ebx, ebx
je 0x40282b
mov edx, dword [ebp - 0x28]
lea eax, [ebx - 1]
mov ebx, dword [ebp - 0x2c]
add edx, 2
shr eax, 2
inc eax
mov dword [ebp - 0x34], eax
mov edi, eax
nop word [eax + eax]
movzx eax, byte [edx - 2]
lea edx, [edx + 4]
mov ecx, dword [eax*4 + 0x42ef58]
movzx eax, byte [edx - 5]
shl ecx, 6
or ecx, dword [eax*4 + 0x42ef58]
movzx eax, byte [edx - 4]
shl ecx, 6
or ecx, dword [eax*4 + 0x42ef58]
movzx eax, byte [edx - 3]
shl ecx, 6
or ecx, dword [eax*4 + 0x42ef58]
mov eax, ecx
sar eax, 0x10
mov byte [ebx + esi], al
mov eax, ecx
sar eax, 8
mov byte [ebx + esi + 1], al
mov byte [ebx + esi + 2], cl
add esi, 3
sub edi, 1
jne 0x4027d0
mov edi, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x3c]
cmp dword [ebp - 0x24], 0
je 0x40287a
add ebx, dword [ebp - 0x28]
movzx eax, byte [ebx]
movzx ecx, byte [ebx + 1]
mov edx, dword [eax*4 + 0x42ef58]
shl edx, 6
or edx, dword [ecx*4 + 0x42ef58]
mov ecx, dword [ebp - 0x2c]
shl edx, 0xc
mov eax, edx
sar eax, 0x10
cmp dword [ebp - 0x30], 0
mov byte [ecx + esi], al
je 0x40287a
movzx eax, byte [ebx + 2]
sar edx, 8
mov eax, dword [eax*4 + 0x42ef58]
shl eax, 6
sar eax, 8
or al, dl
mov byte [ecx + esi + 1], al
movups xmm0, xmmword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov eax, edi
xor ecx, ebp
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x10]
movq qword [edi + 0x10], xmm0
pop edi
pop esi
pop ebx
call fcn.00414dac
mov esp, ebp
pop ebp
ret
Function at 0x401a4d
Capabilities:
Access the windows event log
Clear file content
Clear windows event logs
Get common file path
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push esi
push edi
xor esi, esi
xor edi, edi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp edi, 0x45bc085
jg 0x401a76
inc edi
cmp edi, 0x323bbf1
jl 0x401a5c
cmp dword [0x287343c], 0x400
jne 0x401ab6
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push esi
call dword [sym.imp.USER32.dll_ShowCursor]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
push esi
call fcn.00401ec1
push esi
call fcn.00402063
push esi
call fcn.00402072
add esp, 0xc
xor edi, edi
cmp edi, 0xd036
jge 0x401ad5
push esi
call dword [sym.imp.USER32.dll_GetCaretPos]
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetCharABCWidthsI]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalCompact]
cmp edi, 0xd2ced2
jg 0x401afb
inc edi
cmp edi, 0x263ff
jl 0x401ab8
mov eax, dword [0x485574]
mov dword [0x287343c], eax
call fcn.004017c2
mov edi, 0x3078f
cmp dword [0x287343c], 0x51f
jne 0x401b29
push esi
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
dec edi
jne 0x401b0f
pop edi
xor eax, eax
pop esi
leave
ret 0x10
Function at 0x4041ab
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x46b310]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403163
and dword [ebp - 0x14], 0
cmp dword [0x4900e4], 0
mov dword [ebp - 0x18], eax
jne 0x40425e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x404306
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x404306
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4900e4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4900e8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4900ec], eax
call edi
push eax
call esi
mov dword [0x4900f4], eax
test eax, eax
je 0x40425e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4900f0], eax
mov eax, dword [0x4900f0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4042b7
cmp dword [0x4900f4], ecx
je 0x4042b7
push eax
call esi
push dword [0x4900f4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4042b7
test ebx, ebx
je 0x4042b7
call edi
test eax, eax
je 0x4042ae
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4042ae
test byte [ebp - 8], 1
jne 0x4042b7
or dword [ebp + 0x10], 0x200000
jmp 0x4042ea
mov eax, dword [0x4900e8]
cmp eax, dword [ebp - 0x18]
je 0x4042ea
push eax
call esi
test eax, eax
je 0x4042ea
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4042ea
mov eax, dword [0x4900ec]
cmp eax, dword [ebp - 0x18]
je 0x4042ea
push eax
call esi
test eax, eax
je 0x4042ea
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4900e4]
call esi
test eax, eax
je 0x404306
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x404308
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404516
leave
ret

Function at 0x404516
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46b310]
jne 0x404520
repz ret
jmp fcn.004053e6
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x418004]
jne 0x40100a
repz ret
jmp fcn.00401628

Function at 0x406369
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004031b4
and dword [ebp - 4], 0
cmp dword [0x419ee0], 0
mov ebx, eax
jne 0x40641a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4064cb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4064cb
push eax
call fcn.00403142
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x419ee0], eax
call esi
push eax
call fcn.00403142
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x419ee4], eax
call esi
push eax
call fcn.00403142
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x419ee8], eax
call esi
push eax
call fcn.00403142
pop ecx
mov dword [0x419ef0], eax
test eax, eax
je 0x40641a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403142
pop ecx
mov dword [0x419eec], eax
mov eax, dword [0x419eec]
cmp eax, ebx
je 0x406472
cmp dword [0x419ef0], ebx
je 0x406472
push eax
call fcn.004031bd
push dword [0x419ef0]
mov esi, eax
call fcn.004031bd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x406472
test edi, edi
je 0x406472
call esi
test eax, eax
je 0x406469
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406469
test byte [ebp - 0xc], 1
jne 0x406472
or dword [ebp + 0x10], 0x200000
jmp 0x4064ab
mov eax, dword [0x419ee4]
cmp eax, ebx
je 0x4064ab
push eax
call fcn.004031bd
pop ecx
test eax, eax
je 0x4064ab
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4064ab
mov eax, dword [0x419ee8]
cmp eax, ebx
je 0x4064ab
push eax
call fcn.004031bd
pop ecx
test eax, eax
je 0x4064ab
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x419ee0]
call fcn.004031bd
pop ecx
test eax, eax
je 0x4064cb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4064cd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40141e
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x110
lea eax, [esp]
push ebp
push esi
mov esi, dword [esp + 0x124]
push edi
mov edi, dword [esp + 0x128]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or eax, 9
push eax
push dword [esp + 0x12c]
push dword [esp + 0x12c]
call fcn.00405fb7
test eax, eax
jne 0x401527
xor ebp, ebp
test byte [esp + 0x128], 2
je 0x401493
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ebp
push eax
lea eax, [esp + 0x28]
push eax
push ebp
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x401503
push 0x105
lea eax, [esp + 0x18]
push eax
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x4014ce
test edi, edi
jne 0x401503
push dword [esp + 0x128]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call fcn.0040141e
test eax, eax
jne 0x4014d8
push 0x105
lea eax, [esp + 0x18]
push eax
push edi
push dword [esp + 0x18]
call ebp
test eax, eax
je 0x4014a6
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00406552
test eax, eax
jne 0x401514
push dword [esp + 0x124]
push dword [esp + 0x124]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x401527
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x401527
push 0
push esi
push dword [esp + 0x12c]
push dword [esp + 0x12c]
call eax
pop edi
pop esi
pop ebp
add esp, 0x110
ret 0xc
Function at 0x402f57
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x50
mov ecx, dword [esp + 0x54]
mov eax, 0x795e00
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x6c]
mov ebx, 0x8000
test edi, edi
cmovne ebx, dword [esp + 0x70]
xor esi, esi
test edi, edi
cmovne eax, edi
mov dword [esp + 0x10], eax
test ecx, ecx
js 0x402f93
mov eax, dword [0x7a2c98]
add eax, ecx
push eax
call fcn.00402f40
push 4
lea eax, [esp + 0x70]
push eax
push dword [0x40a010]
call fcn.004065b4
test eax, eax
je 0x403151
mov eax, dword [esp + 0x6c]
test eax, eax
jns 0x4030f9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [0x40b560], esi
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x6c]
and eax, 0x7fffffff
mov byte [0x40b548], 0xb
mov ecx, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x6c], ecx
jbe 0x4030f1
mov ebp, 0x4000
cmp ecx, ebp
cmovl ebp, ecx
push ebp
push 0x791e00
call fcn.00402f2a
test eax, eax
je 0x403151
sub dword [esp + 0x6c], ebp
mov dword [0x40b53c], ebp
mov ebp, dword [esp + 0x10]
mov dword [0x40b538], 0x791e00
push 0x40b538
mov dword [0x40b540], ebp
mov dword [0x40b544], ebx
call fcn.00406aa3
mov dword [esp + 0x1c], eax
test eax, eax
js 0x4030f5
mov eax, dword [0x40b540]
sub eax, ebp
mov dword [esp + 0x64], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x7a2d34], 1
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x18], eax
je 0x4030ad
sub eax, dword [esp + 0x70]
cmp eax, 0xc8
ja 0x403071
test ecx, ecx
jne 0x4030ad
mov eax, dword [esp + 0x14]
push eax
push 0x64
sub eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [esp + 0x24]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push 0
call fcn.004059f0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x64]
test eax, eax
je 0x4030e9
test edi, edi
jne 0x4030ce
push eax
push ebp
push dword [esp + 0x70]
call fcn.00406673
test eax, eax
je 0x403139
mov eax, dword [esp + 0x64]
jmp 0x4030da
mov ebp, dword [0x40b540]
sub ebx, eax
mov dword [esp + 0x10], ebp
add esi, eax
cmp dword [esp + 0x1c], 4
jne 0x40301e
jmp 0x4030f1
test ecx, ecx
jg 0x402fe9
mov eax, esi
jmp 0x403154
push 0xfffffffffffffffc
jmp 0x403153
test edi, edi
jne 0x40313d
test eax, eax
jle 0x4030f1
mov ebp, 0x791e00
cmp eax, ebx
mov edi, ebx
cmovl edi, eax
push edi
push ebp
call fcn.00402f2a
test eax, eax
je 0x403151
push edi
push ebp
push dword [esp + 0x70]
call fcn.00406673
test eax, eax
je 0x403139
mov eax, dword [esp + 0x6c]
add esi, edi
sub eax, edi
mov dword [esp + 0x6c], eax
test eax, eax
jg 0x403106
jmp 0x4030f1
push 0xfffffffffffffffe
jmp 0x403153
mov esi, dword [esp + 0x70]
cmp eax, esi
cmovl esi, eax
push esi
push edi
call fcn.00402f2a
test eax, eax
jne 0x4030f1
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0x10
Function at 0x40315e
Capabilities:
Hide graphical window

Disassembly:
cmp dword [esp + 4], 0
je 0x40317d
mov eax, dword [0x40b530]
test eax, eax
je 0x403175
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [0x40b530], 0
ret
cmp dword [0x40b530], 0
je 0x40318e
push 0
call fcn.00405f24
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x7a2c40]
jbe 0x4031c1
push 0
push 0x403424
push 0
push 0x6f
push dword [0x7a2434]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push 5
push eax
mov dword [0x40b530], eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x405b18
Capabilities:
Create directory

Disassembly:
push esi
xor esi, esi
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x405b32
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop esi
ret 4

Function at 0x405b38
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
push 4
pop eax
mov word [ebp - 0x1e], ax
mov eax, 0x408548
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov word [ebp - 0x20], 1
mov dword [ebp - 0x10], 0x408538
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x405ba6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x405bb0
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
je 0x405baa
xor eax, eax
jmp 0x405bb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret 4
Function at 0x405eb7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
lea eax, [ebp - 0x120]
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
ja 0x405ef1
test eax, eax
je 0x405ef1
lea eax, [ebp + eax - 0x120]
cmp byte [eax - 1], 0x5c
je 0x405ef7
mov ecx, 0x408298
jmp 0x405efc
lea eax, [ebp - 0x120]
mov ecx, 0x408299
push dword [ebp + 8]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x405f52
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x405f75
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405fe5
pop ecx
pop ecx
inc dword [0x7a2d10]
ret 8

Function at 0x405fe5
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebx, 0x400
mov dword [0x7a1288], 0x4c554e
mov ebp, 0x7a1288
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
je 0x406031
push 1
push 0
push esi
call fcn.00406587
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebp
push esi
call edi
test eax, eax
je 0x406111
cmp eax, ebx
jg 0x406111
push ebx
mov esi, 0x7a0e88
push esi
push dword [esp + 0x1c]
call edi
test eax, eax
je 0x406111
cmp eax, ebx
jg 0x406111
push esi
push ebp
push str._s_s_r_n
push 0x7a0a88
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x7a2c50]
add esp, 0x10
mov ebp, eax
push dword [ecx + 0x128]
push esi
call fcn.00405bb4
push 4
push 0xc0000000
push esi
call fcn.00406587
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406111
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [ebp + 0xa]
add ecx, esi
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x40610a
push esi
push edi
push ebx
call fcn.004065b4
test eax, eax
je 0x40610a
push str._Rename__r_n
push edi
call fcn.00406793
test eax, eax
jne 0x406116
push str._Rename__r_n
lea eax, [edi + esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esi, 0xa
mov ecx, esi
push ebp
push 0x7a0a88
lea eax, [ecx + edi]
push eax
call fcn.00406305
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esi + ebp]
push eax
push edi
push ebx
call fcn.00406673
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x40870c
add eax, 0xa
push eax
call fcn.00406793
mov ecx, eax
test ecx, ecx
je 0x4060db
lea edx, [edi + esi]
jmp 0x406135
mov al, byte [edx]
mov byte [edx + ebp], al
dec edx
cmp edx, ecx
ja 0x40612f
sub ecx, edi
inc ecx
jmp 0x4060dd
Function at 0x4061e0
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call fcn.004067fa
mov edi, eax
cmp edi, 0xffffffff
je 0x406223
test byte [ebp + 0xc], 1
push dword [ebp + 8]
je 0x406204
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x40620a
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x406213
xor eax, eax
inc eax
jmp 0x406225
test byte [ebp + 0xc], 4
jne 0x406223
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop ebp
ret 8

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

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov ebx, 0x7a0688
push ebx
call fcn.00406777
push ebx
call fcn.00406822
mov esi, eax
test esi, esi
je 0x4062fe
push esi
call fcn.0040695a
test byte [0x7a2c4c], 0x80
je 0x4062c4
mov al, byte [esi]
test al, al
je 0x4062fe
cmp al, 0x5c
je 0x4062fe
sub esi, ebx
jmp 0x4062dc
call fcn.0040622a
test eax, eax
je 0x4062d6
test byte [eax], 0x10
je 0x4062fe
push ebx
call fcn.0040692f
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
cmp eax, esi
jg 0x4062c8
call fcn.004061b3
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4062fe
xor eax, eax
inc eax
jmp 0x406300
xor eax, eax
pop esi
pop ebx
ret 4

Function at 0x406327
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x7a0240], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x7a0240
xor eax, eax
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x406366
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x40636a
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x150
push ebx
mov ebx, dword [esp + 0x15c]
push esi
mov esi, dword [esp + 0x15c]
push edi
mov edi, ebx
push esi
and edi, 4
call fcn.0040628e
mov dword [esp + 0x18], eax
test bl, 8
je 0x4063ac
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x7a2d08], eax
jmp 0x406546
push ebp
mov ebp, ebx
and ebp, 1
mov dword [esp + 0x18], ebp
je 0x4063c9
test eax, eax
je 0x406535
test bl, 2
je 0x4064ff
push esi
push 0x7a0288
call fcn.00406777
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x4063ec
push str..
push 0x7a0288
call ebp
jmp 0x4063f2
push esi
call fcn.0040692f
cmp byte [esi], 0
jne 0x406400
cmp byte [0x7a0288], 0x5c
jne 0x406408
push 0x408298
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebp, [esi + eax]
lea eax, [esp + 0x20]
mov dword [esp + 0x10], ebp
push eax
push 0x7a0288
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x4064ed
lea ebp, [esp + 0x4c]
push 0x3f
mov eax, ebp
push eax
call fcn.00406251
cmp byte [eax], 0
je 0x40645a
cmp byte [esp + 0x150], 0
lea eax, [esp + 0x150]
cmove eax, ebp
mov ebp, eax
cmp byte [ebp], 0x2e
jne 0x406471
mov al, byte [ebp + 1]
test al, al
je 0x4064c8
cmp al, 0x2e
jne 0x406471
cmp byte [ebp + 2], 0
je 0x4064c8
push ebp
mov ebp, dword [esp + 0x14]
push ebp
call fcn.00406777
test byte [esp + 0x20], 0x10
je 0x406495
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x4064cc
push ebx
push esi
call fcn.0040636a
jmp 0x4064cc
push edi
push esi
call fcn.004061e0
test eax, eax
jne 0x4064be
test edi, edi
je 0x4064b6
push esi
push 0xfffffffffffffff1
call fcn.004059f0
push 0
push esi
call fcn.00405f52
jmp 0x4064cc
inc dword [0x7a2d08]
jmp 0x4064cc
push esi
push 0xfffffffffffffff2
call fcn.004059f0
jmp 0x4064cc
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406433
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x18], 0
je 0x406545
cmp dword [esp + 0x1c], 0
mov byte [ebp - 1], 0
je 0x406535
push esi
call fcn.0040622a
test eax, eax
je 0x406545
push esi
call fcn.004061b3
mov eax, edi
or eax, 1
push eax
push esi
call fcn.004061e0
test eax, eax
jne 0x40653d
test edi, edi
je 0x406535
push esi
push 0xfffffffffffffff1
call fcn.004059f0
push 0
push esi
call fcn.00405f52
jmp 0x406545
inc dword [0x7a2d08]
jmp 0x406545
push esi
push 0xffffffffffffffe5
call fcn.004059f0
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x150
ret 8

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
push eax
push dword [esp + 0x14]
push ecx
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc