joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4783d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x8018
call fcn.00493660
push ebx
push ebp
mov ebp, dword [esp + 0x8028]
push esi
push edi
mov edi, dword [esp + 0x802c]
mov esi, ecx
test edi, edi
je 0x4783f9
mov ecx, edi
call fcn.00414350
cmp dword [esp + 0x8038], 0
jne 0x47840e
mov dword [esp + 0x8038], 0x1f4
cmp dword [esp + 0x803c], 1
jge 0x478423
mov dword [esp + 0x803c], 0x32
cmp ebp, 1
jge 0x47842d
mov ebp, 1
test esi, esi
je 0x4785fa
mov ebx, dword [sym.imp.USER32.dll_SendMessageTimeoutA]
lea eax, [esp + 0x20]
push eax
push 0x7d0
push 2
push 0
push 0
push 0x406
push esi
call ebx
test eax, eax
je 0x4785fa
cmp ebp, dword [esp + 0x20]
jg 0x4785fa
push 0x8000
xor eax, eax
mov ecx, esi
lea edi, [esp + 0x1c]
call fcn.004751d0
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
test edi, edi
je 0x4785f3
dec ebp
mov byte [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x24], eax
jmp 0x4784a0
lea ecx, [esp + 0x14]
push ecx
push 0x7d0
push 2
push 0
push ebp
push 0x403
push esi
call ebx
test eax, eax
je 0x478517
mov edx, 0x7fff
cmp word [esp + 0x14], dx
ja 0x47856e
lea eax, [esp + 0x14]
push eax
push 0x7d0
push 2
push edi
push ebp
push 0x402
push esi
call ebx
test eax, eax
je 0x478517
movzx ecx, word [esp + 0x14]
mov eax, dword [esp + 0x18]
push 0
inc ecx
push ecx
lea edx, [esp + 0x30]
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x478569
mov edx, dword [esp + 0x8034]
lea eax, [esp + 0x28]
call fcn.00477900
test al, al
jne 0x478594
cmp dword [esp + 0x802c], 0
jne 0x478578
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4785c7
mov edi, dword [esp + 0x8038]
test edi, edi
js 0x47854e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x24]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x4785ac
mov edx, dword [esp + 0x803c]
push 1
push edx
call fcn.004013c0
mov edi, dword [esp + 0x24]
add esp, 8
jmp 0x4784a0
mov byte [esp + 0x28], 0
cmp dword [esp + 0x802c], 0
je 0x4785c7
mov eax, dword [esp + 0x802c]
push 1
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x34]
push edx
push eax
call fcn.00476c10
mov esi, eax
jmp 0x4785cc
mov eax, dword [0x4acad0]
push 1
push 0
push 0xffffffffffffffff
push 0x49a8c8
push eax
call fcn.00476c10
jmp 0x47856e
mov ecx, dword [0x4acad0]
push 1
push 0
push 0xffffffffffffffff
push 0x49bec0
push ecx
call fcn.00476c10
mov edi, dword [esp + 0x1c]
mov esi, 1
push 0x8000
push 0
push edi
mov edi, dword [esp + 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8018
ret
mov edi, dword [esp + 0x802c]
mov eax, 0x49bec0
test edi, edi
jne 0x478608
mov eax, 0x49c180
mov ecx, dword [0x4a8978]
test byte [ecx + 0xe0], 1
jne 0x478635
mov edx, dword [0x4acad0]
push 1
push 0
push 0xffffffffffffffff
push eax
push edx
call fcn.00476c10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8018
ret
mov ecx, dword [0x4ad5dc]
push 0x49a8ad
push 0
push eax
call fcn.0042ed70
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8018
ret
Function at 0x479160
Capabilities:
Get graphical window text

Disassembly:
push ecx
mov ecx, dword [esi + 0xc50]
test ecx, ecx
je 0x479217
mov eax, dword [esi]
test eax, eax
je 0x479217
push edi
test al, 1
jne 0x479189
mov eax, dword [esi + 0x80c]
cmp byte [eax], 0
je 0x4791a2
push 0x7fff
lea edi, [esi + 0xc58]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jne 0x4791a2
mov byte [edi], al
test byte [esi], 4
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
je 0x4791bd
mov edx, dword [esi + 0xc50]
lea ecx, [esi + 0xc54]
push ecx
push edx
call edi
test byte [esi], 0x20
je 0x4791f8
mov ecx, dword [esi + 0xc50]
lea eax, [esp + 4]
push eax
push ecx
call edi
test eax, eax
je 0x4791f8
movzx edx, byte [esi + 0xc28]
mov ecx, dword [esp + 4]
push edx
lea eax, [esi + 0x8d58]
call fcn.0044f610
add esp, 4
test eax, eax
jne 0x4791f8
mov byte [esi + 0x8d58], al
test byte [esi], 8
pop edi
je 0x479217
mov ecx, dword [esi + 0xc50]
push 0x101
lea eax, [esi + 0x8c57]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClassNameA]
pop ecx
ret

Function at 0x479960
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x8e5c
call fcn.00493660
mov eax, dword [esp + 0x8e60]
mov eax, dword [eax + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x479a0d
mov dword [esp + 0xc44], eax
lea eax, [esp + 4]
push eax
push 0x47a0e0
mov dword [esp + 0xc], ebx
mov dword [esp + 0x818], 0x49a8ad
mov byte [esp + 0xc35], bl
mov dword [esp + 0xc38], ebx
mov dword [esp + 0xc3c], ebx
mov dword [esp + 0xc40], ebx
mov dword [esp + 0xc44], ebx
mov dword [esp + 0xc48], ebx
mov dword [esp + 0xc58], ebx
mov dword [esp + 0xc5c], ebx
mov byte [esp + 0xc50], cl
mov dword [esp + 0xc54], edx
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [esp + 0xc34], ebx
je 0x479a0d
mov ecx, dword [0x4a8978]
mov eax, dword [ecx + 0x54]
cmp eax, 0xffffffff
jle 0x479a0d
push 1
push eax
call fcn.004013c0
add esp, 8
mov eax, 1
pop ebx
add esp, 0x8e5c
ret 4
Function at 0x479a20
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
cmp dword [edi + 8], 0
jne 0x479a3c
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov eax, dword [0x4a8978]
push eax
push esi
mov ecx, edi
call fcn.00479ee0
cmp byte [edi], 0
mov dword [esp + 0x10], eax
je 0x479a73
test eax, eax
jne 0x479a77
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push edi
call fcn.00479b30
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
test eax, eax
jne 0x479af6
test esi, esi
je 0x479af6
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
push 1
push 0x8000012f
mov ebx, eax
call fcn.004013c0
mov edi, dword [sym.imp.USER32.dll_IsWindow]
add esp, 8
push esi
call edi
test eax, eax
je 0x479ad5
mov edi, edi
call ebp
lea ecx, [ebx + 0x1f4]
sub ecx, eax
cmp ecx, 5
jle 0x479ad5
push 1
push 0x8000012f
call fcn.004013c0
add esp, 8
push esi
call edi
test eax, eax
jne 0x479ab0
mov edx, dword [0x4a8978]
mov eax, dword [edx + 0x54]
cmp eax, 0xffffffff
jle 0x479aee
push 1
push eax
call fcn.004013c0
add esp, 8
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
cmp byte [edi], 0
je 0x479b10
mov ecx, dword [esp + 0x1c]
push 0
push ecx
push edi
call fcn.00479b30
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov edx, dword [esp + 0x1c]
push edx
mov ecx, edi
call fcn.00479cb0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x479cb0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x8e68
call fcn.00493660
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 8], ebx
je 0x479e30
xor cl, cl
mov eax, edi
call fcn.00479e50
test eax, eax
jne 0x479ce5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8e68
ret 4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebp, eax
mov eax, dword [0x4a8978]
push eax
push ebp
mov ecx, edi
call fcn.00479ee0
test eax, eax
je 0x479d08
xor eax, eax
mov dword [0x4ad248], eax
jmp 0x479d0d
mov eax, dword [0x4ad248]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x824], 0x49a8ad
mov dword [esp + 0xc44], ebx
mov dword [esp + 0xc48], ebx
mov dword [esp + 0xc4c], ebx
mov dword [esp + 0xc64], ebx
mov dword [esp + 0xc68], ebx
cmp byte [esp + 0x8e7c], bl
je 0x479d53
mov byte [esp + 0xc41], bl
cmp eax, ebx
je 0x479d5b
mov byte [esp + 0xc41], 1
mov ecx, dword [0x4ad244]
mov edx, dword [edi + 8]
mov esi, dword [sym.imp.USER32.dll_EnumWindows]
mov dword [esp + 0xc54], eax
lea eax, [esp + 0x18]
push eax
push 0x479fb0
mov dword [esp + 0xc58], ecx
mov dword [esp + 0xc60], edx
call esi
mov eax, dword [esp + 0xc48]
cmp eax, ebx
je 0x479e08
lea ecx, [esp + 0x10]
push ecx
push 0x478a90
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
call esi
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x479dc5
mov edx, dword [esp + 0xc48]
call fcn.00479670
mov dword [esp + 0xc48], esi
mov eax, dword [esp + 0xc48]
call fcn.00477ab0
mov edx, dword [esp + 0xc48]
call fcn.00479670
mov edx, dword [0x4a8978]
mov eax, dword [edx + 0x54]
cmp eax, 0xffffffff
jle 0x479e30
push 1
push eax
call fcn.004013c0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8e68
ret 4
mov eax, dword [0x4ad248]
cmp eax, ebx
je 0x479e30
cmp eax, 1
setg al
mov dword [0x4ad248], ebx
cmp al, bl
je 0x479e30
mov edx, ebp
call fcn.00479670
push ebx
mov ecx, edi
call fcn.00479cb0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x8e68
ret 4
Function at 0x48e214
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a7df0]
jne 0x48e21e
repz ret
jmp fcn.004928a7

Function at 0x4908f4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a7df0]
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.0048af72
and dword [ebp - 0x14], 0
cmp dword [0x4aab14], 0
mov dword [ebp - 0x18], eax
jne 0x4909a7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x490a4f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x490a4f
mov esi, dword [fcn.00486ae0]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4aab14], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4aab18], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4aab1c], eax
call edi
push eax
call esi
mov dword [0x4aab24], eax
test eax, eax
je 0x4909a7
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4aab20], eax
mov eax, dword [0x4aab20]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.00486ae4]
cmp eax, ecx
je 0x490a00
cmp dword [0x4aab24], ecx
je 0x490a00
push eax
call esi
push dword [0x4aab24]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x490a00
test ebx, ebx
je 0x490a00
call edi
test eax, eax
je 0x4909f7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4909f7
test byte [ebp - 8], 1
jne 0x490a00
or dword [ebp + 0x10], 0x200000
jmp 0x490a33
mov eax, dword [0x4aab18]
cmp eax, dword [ebp - 0x18]
je 0x490a33
push eax
call esi
test eax, eax
je 0x490a33
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x490a33
mov eax, dword [0x4aab1c]
cmp eax, dword [ebp - 0x18]
je 0x490a33
push eax
call esi
test eax, eax
je 0x490a33
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4aab14]
call esi
test eax, eax
je 0x490a4f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x490a51
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048e214
leave
ret
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x433006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x3a570d2e
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..rsrc
nop
nop
nop
cmp eax, 0
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x7d1e3522
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x402a4c
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 [0x42ecf0]
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 0x402ae0
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a9d
cmp dword [ebp + 0x10], ebx
jne 0x402ad4
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a4c
test eax, eax
jne 0x402aaf
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a84
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 4
call fcn.00405f2d
cmp eax, ebx
je 0x402ae7
push ebx
push dword [0x42ecf0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402ae0
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 [0x42ecf0], ebx
jne 0x402add
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402add
jmp 0x402ae0
Function at 0x40534f
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x407310
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x407300
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4053a0
xor eax, eax
jmp 0x4053c7
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x4053c7
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
jne 0x40539c
call esi
pop esi
leave
ret 4

Function at 0x405401
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x42c0c8], 0x44
push eax
xor eax, eax
push 0x42c0c8
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 0x40543c
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x4054c6
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.00405775
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x4054fa
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42ecc8], eax
jmp 0x40568e
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x405518
test eax, eax
je 0x405639
test byte [ebp + 0xc], 2
je 0x405639
mov esi, 0x42b0c8
push edi
push esi
call fcn.00405ba1
test ebx, ebx
je 0x405535
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x40553b
push edi
call fcn.004056db
cmp byte [edi], 0
jne 0x405549
cmp byte [0x42b0c8], 0x5c
jne 0x405554
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 0x40562f
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.004056bf
cmp byte [eax], 0
je 0x40559a
cmp byte [ebp - 0x18], 0
je 0x40559a
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x4055b0
mov al, byte [esi + 1]
test al, al
je 0x40560e
cmp al, 0x2e
jne 0x4055b0
cmp byte [esi + 2], 0
je 0x40560e
push esi
push ebx
call fcn.00405ba1
test byte [ebp - 0x148], 0x10
je 0x4055d5
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40560e
push dword [ebp + 0xc]
push edi
call fcn.004054c6
jmp 0x40560e
push edi
call fcn.00405859
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405606
test byte [ebp + 0xc], 4
je 0x4055fe
push edi
push 0xfffffffffffffff1
call fcn.00404e8d
push 0
push edi
call fcn.004058ef
jmp 0x40560e
inc dword [0x42ecc8]
jmp 0x40560e
push edi
push 0xfffffffffffffff2
call fcn.00404e8d
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405578
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x405639
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x40568e
cmp dword [ebp - 8], esi
jne 0x40564e
inc dword [0x42ecc8]
jmp 0x40568e
push edi
call fcn.00405e9c
test eax, eax
je 0x40568e
push edi
call fcn.00405694
push edi
call fcn.00405859
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405686
test byte [ebp + 0xc], 4
je 0x405646
push edi
push 0xfffffffffffffff1
call fcn.00404e8d
push esi
push edi
call fcn.004058ef
jmp 0x40568e
push edi
push 0xffffffffffffffe5
call fcn.00404e8d
pop edi
pop esi
leave
ret 8
Function at 0x405775
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42b4c8
push esi
call fcn.00405ba1
push esi
call fcn.00405728
mov edi, eax
test edi, edi
jne 0x405796
xor eax, eax
jmp 0x4057e8
push edi
call fcn.00405e03
test byte [0x42ec58], 0x80
je 0x4057af
mov al, byte [edi]
test al, al
je 0x405792
cmp al, 0x5c
je 0x405792
sub edi, esi
jmp 0x4057c7
call fcn.00405e9c
test eax, eax
je 0x4057c1
test byte [eax], 0x10
je 0x405792
push esi
call fcn.004056db
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x4057b3
call fcn.00405694
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 0x405859
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 0x405875
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x405878
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 0x4058a7
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 0x4058eb
test edi, edi
jne 0x4058b2
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4058e5
Function at 0x4058ef
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 2
call fcn.00405f2d
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405913
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405a4c
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x42c250], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x42c250
je 0x405957
push 1
push 0
push esi
call fcn.00405878
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405a52
cmp eax, edi
jg 0x405a52
mov esi, 0x42bcc8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405a52
cmp eax, edi
jg 0x405a52
push esi
push ebp
push str._s_s_r_n
push 0x42b8c8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42ec50]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405bc3
push 4
push 0xc0000000
push esi
call fcn.00405878
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405a4c
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 0x405a45
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 0x405a45
cmp edi, dword [esp + 0x18]
jne 0x405a45
push str._Rename__r_n
push esi
call fcn.004057ed
test eax, eax
jne 0x405a59
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405ba1
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x42b8c8
push eax
call fcn.00405839
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 [0x42ecd0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409404
push eax
call fcn.004057ed
test eax, eax
je 0x405a10
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405a80
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405a75
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405a12
Function at 0x405a88
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405af9
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405ae8
cmp dword [ebp + 0x14], 1
je 0x405aea
cmp dword [ebp + 0x14], 2
je 0x405aea
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14