joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a5e5c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4c628c]
cmp dword [eax + 0x30], 0
je 0x4a5f06
cmp dword [ebx + 0x94], 0
jne 0x4a5f00
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4a5dec
call sub.USER32.DLL_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4a5f00
push 3
mov eax, dword [esp + 4]
push eax
call sub.USER32.DLL_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_GetWindowLongA
test al, 8
je 0x4a5ec6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4a5f00
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00461b8c
push eax
call sub.USER32.DLL_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4a5ed5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4a69e4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4a6a19
push 0x100
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.USER32.DLL_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004830dc
jmp 0x4a6a26
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00483040
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4a7a34
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4a7a75
mov eax, esi
call fcn.004b4a70
test al, al
je 0x4a7a75
mov eax, dword [ebx + 0x84]
call fcn.004b476c
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x4a7a75
push 0
mov eax, dword [ebx + 0x84]
call fcn.004b476c
push eax
call sub.USER32.DLL_ShowWindow
pop esi
pop ebx
ret
Function at 0x4abc44
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x4c6330], 0
je 0x4abd93
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4c5394]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x4abd93
mov eax, dword [0x4c6334]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4c6330]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4abd62
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x4c6330]
call fcn.00461b8c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4abd5a
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x4abd5a
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x4abd5a
mov eax, dword [ebp - 0x14]
call fcn.004b476c
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x4abd5a
push ebp
call fcn.004abc00
pop ecx
test al, al
jne 0x4abd5a
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x4abd16
mov eax, dword [ebp - 0x14]
call fcn.004b3300
dec eax
jle 0x4abd5a
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.004825d4
cmp byte [ebp - 1], 0
je 0x4abd5a
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.USER32.DLL_PtInRect
test eax, eax
je 0x4abd5a
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4c6334]
call fcn.004ab3c8
inc edi
dec ebx
jne 0x4abca9
mov eax, dword [0x4c6334]
cmp dword [eax + 8], 0
jle 0x4abd7a
mov eax, dword [0x4c6334]
call fcn.004ab458
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4abd93
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004aba68
pop ecx
test al, al
jne 0x4abd93
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4af35c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x4af3a8
mov eax, esi
call fcn.0049df80
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4af3a8
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x4af3a8
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x4af4e7
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x4af3e8
cmp eax, 0x108
ja 0x4af3e8
mov eax, esi
call fcn.0049df80
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4af4de
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x4af4e7
jmp 0x4af4de
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x4af4c7
cmp eax, 0x20a
ja 0x4af4c7
test byte [esi + 0x50], 0x80
jne 0x4af41a
sub eax, 0x203
je 0x4af417
sub eax, 3
je 0x4af417
sub eax, 3
jne 0x4af41a
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x4af42e
dec eax
je 0x4af443
dec eax
je 0x4af460
dec eax
je 0x4af443
jmp 0x4af467
mov ecx, ebx
mov eax, dword [0x4c5394]
mov eax, dword [eax]
mov edx, esi
call fcn.004a78ec
jmp 0x4af4de
cmp byte [esi + 0x5d], 1
jne 0x4af459
mov eax, esi
mov si, 0xffed
call fcn.004825d4
jmp 0x4af4e7
or word [esi + 0x54], 1
jmp 0x4af4de
and word [esi + 0x54], 0xfffe
jmp 0x4af4de
mov eax, dword [0x4c62ec]
cmp byte [eax + 0x20], 0
je 0x4af4de
mov eax, dword [0x4c62ec]
cmp dword [eax + 0x1c], 0
je 0x4af4de
mov eax, dword [ebx]
mov edx, dword [0x4c62ec]
cmp eax, dword [edx + 0x1c]
jne 0x4af4de
lea eax, [ebp - 0x114]
push eax
call sub.USER32.DLL_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.0049dec4
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.004825d4
jmp 0x4af4e7
cmp eax, 0xb00b
jne 0x4af4de
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.004adc7c
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b299c
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x4b29b8
cmp dword [esi + 4], 0
je 0x4b29e5
test byte [ebx + 0x55], 1
jne 0x4b29d7
mov eax, ebx
call fcn.004b15f4
test eax, eax
jne 0x4b29d7
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4b2af5
mov edx, esi
mov eax, ebx
call fcn.004b24bc
jmp 0x4b2af5
push 0
call sub.USER32.DLL_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.GDI32.DLL_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.USER32.DLL_ReleaseDC
push 0
call sub.GDI32.DLL_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4b2aee
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004b476c
push eax
call sub.USER32.DLL_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.004af290
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004b299c
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.GDI32.DLL_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004b476c
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b2af5
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.GDI32.DLL_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b8e48
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4c5174]
cmp byte [eax + 0xc], 0
je 0x4b8fb5
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b8fae
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4c6340], 0
jne 0x4b8e9c
push 0x4b8fbc
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x4b8fc4
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4c6340], eax
cmp dword [0x4c4958], 0
jne 0x4b8f97
push 0x4b8fd4
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x4c4958], eax
cmp dword [0x4c4958], 0
je 0x4b8f97
push 0x4b8fe0
mov eax, dword [0x4c4958]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4c6344], eax
push 0x4b8ff0
mov eax, dword [0x4c4958]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4c6348], eax
push 0x4b9004
mov eax, dword [0x4c4958]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4c634c], eax
push 0x4b901c
mov eax, dword [0x4c4958]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4c6350], eax
push 0x4b9034
mov eax, dword [0x4c4958]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4c6354], eax
push 0x4b9048
mov eax, dword [0x4c4958]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4c6358], eax
push 0x4b9060
mov eax, dword [0x4c4958]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4c635c], eax
push 0x4b9078
mov eax, dword [0x4c4958]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4c6360], eax
push 0x4b9094
mov eax, dword [0x4c4958]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4c6364], eax
push 0x4b90a0
mov eax, dword [0x4c4958]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4c6368], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b8fb5
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x55bc50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x156000]
push edi
jmp 0x55bc6a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x55bc71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55bc60
mov eax, 1
add ebx, ebx
jne 0x55bc83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x55bc94
jne 0x55bcb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55bcb3
dec eax
add ebx, ebx
jne 0x55bca0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x55bc78
add ebx, ebx
jne 0x55bcaf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x55bd05
xor ecx, ecx
sub eax, 3
jb 0x55bccb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x55bd3a
sar eax, 1
mov ebp, eax
jmp 0x55bcd6
add ebx, ebx
jne 0x55bcd6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55bca4
inc ecx
add ebx, ebx
jne 0x55bce4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55bca4
add ebx, ebx
jne 0x55bcf1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x55bce6
jne 0x55bd02
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x55bce6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x55bd24
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x55bd16
jmp 0x55bc66
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x55bd24
add edi, ecx
jmp 0x55bc66
pop esi
mov edi, esi
mov ecx, 0x255
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x55bd42
cmp byte [edi], 1
jne 0x55bd42
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x55bd47
lea edi, [esi + 0x159000]
mov eax, dword [edi]
or eax, eax
je 0x55bdbf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x172984]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x172a38]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x55bd74
mov ecx, edi
jns 0x55bda3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x172a3c]
or eax, eax
je 0x55bdb9
mov dword [ebx], eax
add ebx, 4
jmp 0x55bd91
call dword [esi + 0x172a4c]
mov ebp, dword [esi + 0x172a40]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x55bdf3
sub esp, 0xffffff80
jmp 0x40354b
Function at 0x402ec4
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 0x402ee1
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402ef0
mov ebx, 0x40f0f0
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402f05
mov ecx, dword [0x424378]
add ecx, eax
push ecx
call fcn.004030f3
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004030c1
test eax, eax
je 0x40306c
test byte [ebp + 0x17], 0x80
je 0x403055
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40b020
mov dword [ebp - 0xc], eax
call fcn.00405d82
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x4030b7
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402f55
mov esi, dword [ebp + 0x14]
mov edi, 0x40b0f0
push esi
push edi
call fcn.004030c1
test eax, eax
je 0x40306c
sub dword [ebp + 0x14], esi
mov dword [0x40b038], edi
mov dword [0x40b03c], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40b020
mov dword [0x40b040], ebx
mov dword [0x40b044], eax
call fcn.00405da2
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x40304d
mov esi, dword [0x40b040]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x409298], 1
mov edi, eax
je 0x402ff7
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x402fc4
cmp dword [ebp + 0x14], 0
jne 0x402ff7
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.00404d53
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x403042
cmp dword [ebp + 0x10], eax
jne 0x403020
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 0x403051
cmp dword [ebp - 0x10], esi
jne 0x403051
add dword [ebp - 4], esi
jmp 0x403036
sub dword [ebp - 8], esi
add dword [ebp - 4], esi
cmp dword [ebp - 8], 1
mov ebx, dword [0x40b040]
jl 0x4030b7
cmp dword [ebp - 0x14], 1
jne 0x402f78
jmp 0x4030b7
cmp dword [ebp + 0x14], eax
jg 0x402f48
jmp 0x4030b7
push 0xfffffffffffffffc
jmp 0x40306e
push 0xfffffffffffffffe
jmp 0x40306e
test edi, edi
je 0x4030ac
cmp dword [ebp + 0x14], esi
jge 0x403061
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004030c1
test eax, eax
jne 0x4030b4
push 0xfffffffffffffffd
pop eax
jmp 0x4030ba
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x40307c
mov esi, dword [ebp + 0x14]
mov edi, 0x40b0f0
push esi
push edi
call fcn.004030c1
test eax, eax
je 0x40306c
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 0x403051
cmp esi, dword [ebp + 0x10]
jne 0x403051
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403071
jmp 0x4030b7
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405238
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x422938], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x40525c
test al, 0x10
jne 0x40525f
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x422938
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40528a
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x4052f2
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00405591
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x405326
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4243a8], eax
jmp 0x4054ab
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x405344
test eax, eax
je 0x40545c
test byte [ebp + 0xc], 2
je 0x40545c
mov esi, 0x421938
push edi
push esi
call fcn.004059a4
test ebx, ebx
je 0x405361
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405367
push edi
call fcn.004054f8
push 0x40900c
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 0x405452
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.004054dc
cmp byte [eax], 0
je 0x4053b8
cmp byte [ebp - 0x18], 0
je 0x4053b8
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x4053ce
mov al, byte [esi + 1]
test al, al
je 0x405431
cmp al, 0x2e
jne 0x4053ce
cmp byte [esi + 2], 0
je 0x405431
push esi
push ebx
call fcn.004059a4
mov eax, dword [ebp - 0x148]
test al, 0x10
je 0x4053f4
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405431
push dword [ebp + 0xc]
push edi
call fcn.004052f2
jmp 0x405431
and al, 0xfe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405429
test byte [ebp + 0xc], 4
je 0x405421
push edi
push 0xfffffffffffffff1
call fcn.00404d53
push 0
push edi
call fcn.004056ec
jmp 0x405431
inc dword [0x4243a8]
jmp 0x405431
push edi
push 0xfffffffffffffff2
call fcn.00404d53
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405396
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x40545c
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x4054ab
cmp dword [ebp - 8], esi
jne 0x405471
inc dword [0x4243a8]
jmp 0x4054ab
push edi
call fcn.00405c79
test eax, eax
je 0x4054ab
push edi
call fcn.004054b1
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4054a3
test byte [ebp + 0xc], 4
je 0x405469
push edi
push 0xfffffffffffffff1
call fcn.00404d53
push esi
push edi
call fcn.004056ec
jmp 0x4054ab
push edi
push 0xffffffffffffffe5
call fcn.00404d53
pop edi
pop esi
leave
ret 8
Function at 0x405591
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421d38
push esi
call fcn.004059a4
push esi
call fcn.00405544
mov edi, eax
test edi, edi
jne 0x4055b2
xor eax, eax
jmp 0x405604
push edi
call fcn.00405be0
test byte [0x424330], 0x80
je 0x4055cb
mov al, byte [edi]
test al, al
je 0x4055ae
cmp al, 0x5c
je 0x4055ae
sub edi, esi
jmp 0x4055e3
call fcn.00405c79
test eax, eax
je 0x4055dd
test byte [eax], 0x10
je 0x4055ae
push esi
call fcn.004054f8
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x4055cf
call fcn.004054b1
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 0x405675
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 0x4056a4
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 0x4056e8
test edi, edi
jne 0x4056af
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4056e2
Function at 0x4056ec
Capabilities:
Get common file path
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push str.MoveFileExA
push str.KERNEL32.dll
call fcn.00405cb7
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405718
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x40585e
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x422ac0], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x422ac0
je 0x40575c
push 1
push 0
push esi
call fcn.00405675
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405864
cmp eax, edi
jg 0x405864
mov esi, 0x422538
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405864
cmp eax, edi
jg 0x405864
push esi
push ebp
push str._s_s_r_n
push 0x422138
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call sub.KERNEL32.dll_lstrcatA
xor eax, eax
push eax
push 0x8000080
push 4
push eax
push eax
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40585e
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 0x405857
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 0x405857
cmp edi, dword [esp + 0x18]
jne 0x405857
push str._Rename__r_n
push esi
call fcn.00405609
test eax, eax
jne 0x40586b
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.004059a4
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x422138
push eax
call fcn.00405655
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 [0x4243b0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409300
push eax
call fcn.00405609
test eax, eax
je 0x405822
inc eax
lea edx, [esi + edi]
cmp eax, edx
mov ecx, eax
jae 0x405894
mov dl, byte [ecx]
mov byte [ecx + ebx], dl
inc ecx
lea edx, [esi + edi]
cmp ecx, edx
jb 0x405887
sub eax, esi
jmp 0x405824