joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a4fa0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4fa873
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004ee775
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004f3e0b
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004f5327
test eax, eax
je 0x4a50bc
mov ecx, dword [esp + 0x3c]
call fcn.004f3e38
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4a5080
push edi
mov ecx, esi
call fcn.004f149c
mov ecx, esi
call fcn.004a5260
cmp dword [esp + 0x38], 1
jne 0x4a50b5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004f15d7
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4a7210
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4a7243
push esi
call fcn.004b5580
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4a723c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4a72c9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4a72b2
mov eax, dword [esi + 8]
test eax, eax
je 0x4a7267
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4a72ae
cmp eax, 2
je 0x4a72b2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4a725a
cmp eax, 3
je 0x4a728d
cmp eax, 1
jne 0x4a725a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4a725a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4a725a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004a72f0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4a72d8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004a72f0
add esp, 4
pop esi
ret

Function at 0x4a7b50
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4a7b71
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4a7b71
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4a7b71
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4c2610
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x210
lea eax, [esp]
push eax
push 0x5cae04
push 1
push 0
push 0x5cae14
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x4c263e
xor eax, eax
add esp, 0x210
ret 8
mov eax, dword [esp]
mov edx, dword [esp + 0x214]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [esp]
lea edx, [esp + 4]
push edx
push 0x5cae64
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jge 0x4c2672
xor eax, eax
add esp, 0x210
ret 8
mov ecx, dword [esp + 0x218]
lea eax, [esp + 8]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
push 2
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, 1
add esp, 0x210
ret 8
Function at 0x4c3770
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x5e4864]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4c3783
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4c37c4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x5e490c]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4c37f6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4c37fa
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4c37eb
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x4c3818
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4c381c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x4c380d
xor ecx, ecx
mov eax, 0x5e4874
xor ebx, ebx
mov bl, byte [ecx + 0x5e491c]
cmp byte [esp + ebx + 0x14], 0
je 0x4c3847
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x5e4934]
cmp byte [esp + ebx + 0x14], 0
je 0x4c385e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x4c382e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4c37b7
lea edx, [esp + 0x84]
push edx
call fcn.004c38a0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4c80b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x612594]
xor edx, edx
cmp eax, edx
jne 0x4c80d6
xor eax, eax
mov byte [eax + 0x612494], al
inc eax
cmp eax, 0x100
jl 0x4c80be
mov dword [0x612594], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x612494
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4c8167
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4c813a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4c8108
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4c8170
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4c81c3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4c81aa
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ceb70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4facee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004cf490
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x5ca574
call fcn.004ecf05
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4cec03
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004ecf05
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4cebfc
push 0
mov ecx, eax
call fcn.004c5ce0
mov dword [esi + 0xc], eax
jmp 0x4cec05
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4cec05
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4ef56b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4ef5a3
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004ed61f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004ed5f7
jmp 0x4ef5af
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4f0c59
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4f0c9b
call fcn.004f6712
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4f0c9b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4f0c92
xor eax, eax
jmp 0x4f0ca3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004f0ca9
pop edi
pop esi
pop ebx
ret 4

Function at 0x4f6c42
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 0x4f6c70
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4f6c8e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004f6ba8
jmp 0x4f6c8e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4f6c8e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004f6ba8
test edi, edi
mov eax, edi
jne 0x4f6c78
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402d40
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, esi
lea eax, [ebp - 4]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or al, 9
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040622a
xor ebx, ebx
cmp eax, ebx
jne 0x402e23
test byte [ebp + 0x10], 2
je 0x402da1
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 8], ebx
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x402e08
lea eax, [ebp - 0x110]
push 0x105
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x402ddd
test edi, edi
jne 0x402e08
push dword [ebp + 0x10]
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 4]
call fcn.00402d40
test eax, eax
jne 0x402de6
lea eax, [ebp - 0x110]
push 0x105
push eax
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x402db6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004067cc
test eax, eax
jne 0x402e18
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x402e23
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x402e23
push 0
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x403208
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x403233
mov ecx, dword [0x7a2bd8]
push esi
add eax, ecx
push esi
push eax
mov dword [0x79e13c], eax
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.00403310
cmp eax, esi
jl 0x40330a
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.00405faf
test eax, eax
je 0x4032fa
push dword [ebp + 8]
add dword [0x79e13c], 4
call fcn.00403310
mov ebx, eax
cmp ebx, esi
jl 0x403308
cmp dword [ebp + 0x10], esi
jne 0x4032d6
cmp dword [ebp + 8], esi
jle 0x403308
mov esi, 0x792138
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x403298
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.00405faf
test eax, eax
je 0x4032fa
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00405fde
test eax, eax
je 0x4032d2
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x79e13c], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x403287
jmp 0x403308
push 0xfffffffffffffffe
jmp 0x4032fc
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x4032e1
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4032ff
push 0xfffffffffffffffd
pop eax
jmp 0x40330a
mov ebx, dword [ebp - 4]
add dword [0x79e13c], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x405a3d
Capabilities:
Create process on windows

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

Function at 0x405a80
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
ret 4

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405f12
mov edi, eax
cmp edi, 0xffffffff
je 0x405b5f
test byte [esp + 0x10], 1
push esi
je 0x405b41
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x405b47
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x405b50
xor eax, eax
inc eax
jmp 0x405b61
test byte [esp + 0x10], 4
jne 0x405b5f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405b66
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405e24
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405ba5
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x7a2c08], eax
jmp 0x405d2f
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405bbf
test eax, eax
je 0x405cdd
test bl, 2
je 0x405cdd
mov esi, 0x7a0198
push edi
push esi
call fcn.004063a4
cmp dword [ebp + 8], 0
je 0x405bde
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405be4
push edi
call fcn.00405d7d
cmp byte [edi], 0
jne 0x405bf2
cmp byte [0x7a0198], 0x5c
jne 0x405bfd
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x405cd3
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405d61
cmp byte [eax], 0
je 0x405c43
cmp byte [ebp - 0x1c], 0
je 0x405c43
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405c59
mov al, byte [esi + 1]
test al, al
je 0x405cb2
cmp al, 0x2e
jne 0x405c59
cmp byte [esi + 2], 0
je 0x405cb2
push esi
push ebx
call fcn.004063a4
test byte [ebp - 0x14c], 0x10
je 0x405c7e
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405cb2
push dword [ebp + 0xc]
push edi
call fcn.00405b66
jmp 0x405cb2
push dword [ebp - 4]
push edi
call fcn.00405b1e
test eax, eax
jne 0x405caa
cmp dword [ebp - 4], eax
je 0x405ca2
push edi
push 0xfffffffffffffff1
call fcn.004054e8
push 0
push edi
call fcn.0040617d
jmp 0x405cb2
inc dword [0x7a2c08]
jmp 0x405cb2
push edi
push 0xfffffffffffffff2
call fcn.004054e8
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405c21
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405cdd
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405d2f
cmp dword [ebp - 0xc], esi
jne 0x405cf1
inc dword [0x7a2c08]
jmp 0x405d2f
push edi
call fcn.00406737
test eax, eax
je 0x405d2f
push edi
call fcn.00405d36
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405b1e
test eax, eax
jne 0x405d27
cmp dword [ebp - 4], esi
je 0x405ce9
push edi
push 0xfffffffffffffff1
call fcn.004054e8
push esi
push edi
call fcn.0040617d
jmp 0x405d2f
push edi
push 0xffffffffffffffe5
call fcn.004054e8
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405e24
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x7a0598
push esi
call fcn.004063a4
push esi
call fcn.00405dcf
mov edi, eax
test edi, edi
jne 0x405e45
xor eax, eax
jmp 0x405e97
push edi
call fcn.0040669e
test byte [0x7a2b98], 0x80
je 0x405e5e
mov al, byte [edi]
test al, al
je 0x405e41
cmp al, 0x5c
je 0x405e41
sub edi, esi
jmp 0x405e76
call fcn.00406737
test eax, eax
je 0x405e70
test byte [eax], 0x10
je 0x405e41
push esi
call fcn.00405d7d
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405e62
call fcn.00405d36
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 0x405f12
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 0x405f31
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 0x405f37
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 0x405f66
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 [0x40a3ec]
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 0x405fab
test edi, edi
jne 0x405f71
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405fa5
Function at 0x40600d
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x7a0f20], 0x4c554e
mov edi, 0x400
mov ebp, 0x7a0f20
je 0x406059
push 1
push 0
push esi
call fcn.00405f37
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406178
cmp eax, edi
jg 0x406178
mov esi, 0x7a1320
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406178
cmp eax, edi
jg 0x406178
push esi
push ebp
push str._s_s_r_n
push 0x7a0b20
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x7a2b90]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406437
push 4
push 0xc0000000
push esi
call fcn.00405f37
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x406178
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 0x406171
push edi
push esi
push ebp
call fcn.00405faf
test eax, eax
je 0x406171
push str._Rename__r_n
push esi
call fcn.00405e9c
test eax, eax
jne 0x40610f
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406144
add eax, 0xa
push 0x40a3f0
push eax
call fcn.00405e9c
mov ebp, eax
test ebp, ebp
je 0x406140
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406131
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x40612b
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x406146
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x7a0b20
push eax
call fcn.00405ef2
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405fde
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
ret

Function at 0x40617d
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 0x4061a0
push dword [esp + 8]
push dword [esp + 8]
call fcn.0040600d
pop ecx
pop ecx
inc dword [0x7a2c10]
ret 8

Function at 0x40628b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x400
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040622a
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x4062fa
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and byte [esi + 0x3ff], 0
test edi, edi
pop edi
jne 0x4062fa
cmp dword [ebp + 0xc], 1
je 0x4062fd
cmp dword [ebp + 0xc], 2
je 0x4062fd
and byte [esi], 0
pop esi
leave
ret 0x14