joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462f90
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x462fa3
xor eax, eax
pop esi
add esp, 8
ret
push esi
call fcn.00464f90
add esp, 4
test eax, eax
jne 0x462fb5
pop esi
add esp, 8
ret
mov eax, dword [esi]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push edi
mov dword [esp + 0x10], 0
jne 0x46302c
mov eax, dword [esp + 0x1c]
mov edi, dword [esi + 4]
cmp eax, ebx
mov dword [esp + 0x10], ebx
jle 0x46305e
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x463018
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x462fe8
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
pop edi
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
pop ebp
pop ebx
pop esi
add esp, 8
ret
cmp eax, 2
jne 0x46305e
mov eax, dword [esp + 0x1c]
mov esi, dword [esi + 4]
cmp eax, ebx
mov dword [esp + 0x10], ebx
jle 0x46305e
lea edi, [esp + 0x2c]
lea ebx, [eax - 1]
mov eax, dword [edi]
mov edx, dword [esi]
mov ecx, dword [eax + 4]
add eax, 8
push ecx
push eax
mov ecx, esi
call dword [edx + 0x24]
add edi, 0xc
dec ebx
jne 0x463047
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret

Function at 0x463560
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x4635a1.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x4635a1.2
jmp dword [eax*4 + 0x46362c]
mov word [esp + 0x48], di
jmp 0x4635da
mov word [esp + 0x48], 2
jmp 0x4635da
mov word [esp + 0x48], 3
jmp 0x4635da
mov word [esp + 0x48], 4
jmp 0x4635da
mov word [esp + 0x48], 7
jmp 0x4635da
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x463624
cmp dword [esp + 0x70], edi
je 0x463610
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret
Function at 0x463650
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x1c]
push ebp
push esi
push edi
push eax
call fcn.00464d90
mov esi, dword [esp + 0x38]
mov ebp, eax
xor edx, edx
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [esp + 0xc], edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ebp, edx
mov dword [esp + 0x18], edx
je 0x463737
cmp ecx, edx
je 0x463737
inc ecx
push ebx
push ecx
call fcn.00471ec7
mov ebx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov edx, ecx
mov esi, edi
mov edi, ebx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00466330
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4636cd
mov byte [esi], 0
inc esi
lea eax, [esp + 0x18]
push eax
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x463725
lea ecx, [esp + 0x20]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push edx
push eax
push 0
mov edi, 4
push esi
push ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46371a
cmp dword [esp + 0x14], edi
jne 0x46371a
mov dword [esp + 0x1c], 1
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.00471ef0
mov eax, dword [esp + 0x20]
add esp, 4
test eax, eax
pop ebx
jne 0x463743
mov eax, dword [esp + 0x48]
test eax, eax
mov eax, dword [esp + 0x40]
jne 0x463747
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
add esp, 0x14
ret
Function at 0x463990
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x144
push ebx
mov ebx, dword [esp + 0x14c]
push ebp
mov ebp, dword [esp + 0x15c]
push esi
push edi
mov esi, dword [ebp]
mov dword [esp + 0x10], 0
test ebx, ebx
je 0x463a1b
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x463a1b
test esi, esi
je 0x4639d5
cmp esi, 0xffffffff
je 0x4639d5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp], esi
je 0x463a61
mov eax, dword [esp + 0x160]
test eax, eax
je 0x463a04
mov ecx, dword [esp + 0x14]
and ecx, 0x10
cmp cl, 0x10
je 0x463a1b
jmp 0x463a13
mov edx, dword [esp + 0x15c]
mov eax, dword [esp + 0x14]
test edx, eax
je 0x463a1b
mov dword [esp + 0x10], 1
test esi, esi
je 0x463a61
cmp esi, 0xffffffff
je 0x463a61
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x463a98
mov eax, dword [esp + 0x160]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
lea eax, [esp + 0x14]
push eax
push esi
je 0x463a6e
call edi
test eax, eax
je 0x463a61
mov ecx, dword [esp + 0x14]
and ecx, 0x10
cmp cl, 0x10
jne 0x463a98
lea edx, [esp + 0x14]
push edx
push esi
call edi
test eax, eax
jne 0x463a49
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x144
ret
call edi
test eax, eax
je 0x463a61
mov ebx, dword [esp + 0x15c]
test dword [esp + 0x14], ebx
jne 0x463a98
lea ecx, [esp + 0x14]
push ecx
push esi
call edi
test eax, eax
jne 0x463a7b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00461f40
mov edx, eax
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret

Function at 0x464110
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push edi
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x464160
push esi
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x464155
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.00464d00
add esp, 8
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, edi
pop esi
pop edi
ret
mov eax, edi
pop edi
ret
Function at 0x4641b0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0x10]
xor ebp, ebp
test esi, esi
je 0x464233
push ebp
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x464233
push ebx
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x464226
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ebp, 1
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
mov eax, ebp
pop esi
pop ebp
ret
mov eax, ebp
pop esi
pop ebp
ret

Function at 0x476485
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4764b3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4764d1
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004763eb
jmp 0x4764d1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4764d1
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004763eb
test edi, edi
mov eax, edi
jne 0x4764bb
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x42249b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4224da
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4224da
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4224da
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4224da
cmp dword [ecx + 0x74], 0xe
jbe 0x4224da
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x429c3b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x429cd8
push ebx
push esi
call fcn.00429c04
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00429b98
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x429c85
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x429cd7
push edi
push eax
call fcn.004286d0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x429ca5
call fcn.0042871e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x429cd6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00429b98
add esp, 0x20
test eax, eax
jne 0x429cc4
push edi
call fcn.0042871e
jmp 0x429ccc
push ebx
call fcn.0042871e
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x42aee7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4338b0
push 0x4338a8
push str.FlsAlloc
push 0x1f
call fcn.0042ada6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42af1b
push dword [ebp + 8]
mov ecx, esi
call dword [0x431144]
call esi
jmp 0x42af21
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42af65
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4338c0
push 0x4338b8
push str.FlsGetValue
push 0x21
call fcn.0042ada6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42af9c
push dword [ebp + 8]
mov ecx, esi
call dword [0x431144]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42afa4
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4338c8
push 0x4338c0
push str.FlsSetValue
push 0x22
call fcn.0042ada6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42afde
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x431144]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4302b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4302dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4302dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402eb9
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 [0x425c30]
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 0x402f4d
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402f0a
cmp dword [ebp + 0x10], ebx
jne 0x402f41
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402eb9
test eax, eax
jne 0x402f1c
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402ef1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00406775
cmp eax, ebx
je 0x402f54
push ebx
push dword [0x425c30]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402f4d
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 [0x425c30], ebx
jne 0x402f4a
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402f4a
jmp 0x402f4d
Function at 0x40339b
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
xor esi, esi
push edi
cmp eax, esi
jl 0x4033c7
mov ecx, dword [0x425bd8]
push esi
add eax, ecx
push esi
push eax
mov dword [0x418124], eax
push dword [0x40a698]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.004034b6
cmp eax, esi
jl 0x4034b0
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a698]
call fcn.00405fa6
test eax, eax
je 0x40349c
push dword [ebp + 8]
add dword [0x418124], 4
call fcn.004034b6
cmp eax, esi
mov dword [ebp - 8], eax
jl 0x4034b0
cmp dword [ebp + 0x10], esi
jne 0x403478
cmp dword [ebp + 8], esi
jle 0x4034ad
mov esi, 0x414120
cmp dword [ebp + 8], 0x4000
mov edi, dword [ebp + 8]
jl 0x40342d
mov edi, 0x4000
push edi
push esi
push dword [0x40a698]
mov dword [ebp - 4], edi
call fcn.00405fa6
test eax, eax
je 0x40349c
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403474
cmp dword [ebp + 0x14], edi
jne 0x403474
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x418124], eax
cmp dword [ebp + 8], 0
jg 0x40341c
jmp 0x4034ad
push 0xfffffffffffffffe
jmp 0x40349e
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403483
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a698]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4034a1
push 0xfffffffffffffffd
pop eax
jmp 0x4034b0
mov eax, dword [ebp - 4]
add dword [0x418124], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 0x10
Function at 0x4034b6
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x418124]
sub esi, dword [0x40c090]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x425b8c], eax
jle 0x403620
push dword [0x420134]
call fcn.00403648
push ebx
push ebx
push dword [0x40c090]
push dword [0x40a698]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x420130], esi
mov dword [0x418120], ebx
mov ebp, 0x40c120
mov eax, dword [0x418128]
mov edi, 0x4000
sub eax, dword [0x420134]
cmp eax, edi
jg 0x40352b
mov edi, eax
mov esi, 0x414120
push edi
push esi
call fcn.00403632
test eax, eax
je 0x403612
add dword [0x420134], edi
mov dword [0x40c0b0], esi
mov dword [0x40c0b4], edi
cmp dword [0x425b90], ebx
je 0x403582
cmp dword [0x425c20], ebx
jne 0x403582
mov eax, dword [0x420130]
push ebx
sub eax, dword [0x418124]
sub eax, dword [esp + 0x1c]
add eax, dword [0x40c090]
mov dword [0x418120], eax
call fcn.00403056
pop ecx
mov ecx, 0x40c098
mov dword [0x40c0b8], ebp
mov dword [0x40c0bc], 0x8000
call fcn.00406875
test eax, eax
jl 0x40361b
mov esi, dword [0x40c0b8]
sub esi, ebp
je 0x4035dc
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x40a698]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403617
cmp esi, dword [esp + 0x10]
jne 0x403617
add dword [0x40c090], esi
cmp dword [0x40c0b4], ebx
jne 0x403551
jmp 0x4035e8
cmp dword [0x40c0b4], ebx
jne 0x40361b
cmp edi, ebx
je 0x40361b
mov eax, dword [0x418124]
mov ecx, eax
sub ecx, dword [0x40c090]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x403515
push ebx
push ebx
push eax
push dword [0x40a698]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x403620
or eax, 0xffffffff
jmp 0x40362a
push 0xfffffffffffffffe
jmp 0x40361d
push 0xfffffffffffffffd
pop eax
jmp 0x40362a
push 1
call fcn.00403056
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x4059fb
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x422d78], 0x44
push eax
xor eax, eax
push 0x422d78
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 0x405a36
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405ac0
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405f09
mov edi, eax
cmp edi, 0xffffffff
je 0x405b01
test byte [esp + 0x10], 1
push esi
je 0x405ae3
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x405ae9
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x405af2
xor eax, eax
inc eax
jmp 0x405b03
test byte [esp + 0x10], 4
jne 0x405b01
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405e1b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x422978
push esi
call fcn.0040629d
push esi
call fcn.00405dc6
mov edi, eax
test edi, edi
jne 0x405e3c
xor eax, eax
jmp 0x405e8e
push edi
call fcn.00406508
test byte [0x425b98], 0x80
je 0x405e55
mov al, byte [edi]
test al, al
je 0x405e38
cmp al, 0x5c
je 0x405e38
sub edi, esi
jmp 0x405e6d
call fcn.0040674e
test eax, eax
je 0x405e67
test byte [eax], 0x10
je 0x405e38
push esi
call fcn.00405d74
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405e59
call fcn.00405d2d
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 0x405f09
Capabilities:
Check if file exists
Get file attributes
Set file attributes

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

Function at 0x405f2e
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 0x405f5d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40ab6c]
dec edi
mov dword [ebp + 8], eax
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 0x405fa2
test edi, edi
jne 0x405f68
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405f9c
Function at 0x405fd5
Capabilities:
Get file size
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, 0x423300
push 0x40ab88
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
mov ebx, 0x400
je 0x406024
push 1
push 0
push esi
call fcn.00405f2e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
push esi
call ebp
test eax, eax
je 0x40614b
cmp eax, ebx
jg 0x40614b
mov esi, 0x423700
push ebx
push esi
push dword [esp + 0x20]
call ebp
test eax, eax
je 0x40614b
cmp eax, ebx
jg 0x40614b
push esi
push edi
push str._s_s_r_n
push 0x422f00
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x425b90]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004062bf
push 4
push 0xc0000000
push esi
call fcn.00405f2e
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
je 0x40614b
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 0x406144
push edi
push esi
push ebp
call fcn.00405fa6
test eax, eax
je 0x406144
push str._Rename__r_n
push esi
call fcn.00405e93
test eax, eax
jne 0x4060da
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x40610f
add eax, 0xa
push 0x40ab70
push eax
call fcn.00405e93
mov ebp, eax
test ebp, ebp
je 0x40610b
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4060fc
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4060f6
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x1c]
jmp 0x406111
mov ebp, dword [esp + 0x1c]
mov eax, edi
push ebx
add eax, esi
push 0x422f00
push eax
call fcn.00405ee9
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
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]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x406184
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 0x4061f5
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 0x4061e4
cmp dword [ebp + 0x14], 1
je 0x4061e6
cmp dword [ebp + 0x14], 2
je 0x4061e6
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