joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4287e8
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ecx]
sub esp, 0x10
push 0x10
pop eax
cmp edx, eax
je 0x428800
cmp edx, 0x20
jne 0x4289c8
push ebx
push edi
shr edx, 2
push 4
mov ebx, edx
pop edi
mov dword [ebp - 4], ebx
cmp ebx, edi
jge 0x428813
mov edx, edi
push esi
mov esi, dword [ebp + 8]
lea edx, [edx*4 + 0x1c]
mov dword [ebp - 0xc], edx
test esi, esi
je 0x4289c5
mov dword [esi], eax
add esi, edi
mov dword [esi], edx
add esi, edi
xor edx, edx
test ebx, ebx
jle 0x428863
lea eax, [ecx + 5]
movzx ecx, byte [eax - 1]
movzx edi, byte [eax]
shl ecx, 8
or ecx, edi
movzx edi, byte [eax + 1]
shl ecx, 8
or ecx, edi
movzx edi, byte [eax + 2]
shl ecx, 8
or ecx, edi
mov dword [esi + edx*4], ecx
inc edx
add eax, 4
cmp edx, ebx
jl 0x42883a
mov ecx, dword [esi + edx*4 - 4]
mov edi, 0xff
cmp ebx, dword [ebp - 0xc]
jge 0x428947
and dword [ebp + 8], 0
mov dword [ebp - 8], esi
mov eax, ebx
cdq
idiv dword [ebp - 4]
test edx, edx
jne 0x4288e3
mov eax, ecx
shr eax, 0x10
and eax, edi
movzx eax, byte [eax + 0x48fe88]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
cdq
idiv dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov edi, 0xff
movzx eax, byte [eax + 0x48fe68]
xor edx, eax
mov eax, ecx
shr eax, 8
and eax, edi
movzx eax, byte [eax + 0x48fe88]
shl edx, 8
xor edx, eax
mov eax, ecx
and eax, edi
movzx eax, byte [eax + 0x48fe88]
shl edx, 8
shr ecx, 0x18
movzx ecx, byte [ecx + 0x48fe88]
xor edx, eax
shl edx, 8
xor ecx, edx
jmp 0x42892e
cmp dword [ebp - 4], 6
jle 0x42892e
cmp edx, 4
jne 0x42892e
mov eax, ecx
shr eax, 0x10
mov edx, ecx
shr edx, 0x18
movzx edx, byte [edx + 0x48fe88]
and eax, edi
movzx eax, byte [eax + 0x48fe88]
shl edx, 8
xor eax, edx
mov edx, ecx
shr edx, 8
and edx, edi
movzx edx, byte [edx + 0x48fe88]
shl eax, 8
and ecx, edi
movzx ecx, byte [ecx + 0x48fe88]
xor eax, edx
shl eax, 8
xor ecx, eax
mov eax, dword [ebp - 8]
xor ecx, dword [eax]
add dword [ebp - 8], 4
mov dword [esi + ebx*4], ecx
inc ebx
inc dword [ebp + 8]
cmp ebx, dword [ebp - 0xc]
jl 0x42887c
and dword [ebp + 8], 0
dec ebx
js 0x4289c5
mov eax, dword [ebp - 0xc]
lea eax, [esi + eax*4]
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 4
mov ecx, dword [esi + ebx*4]
jl 0x4289b4
cmp ebx, 4
jl 0x4289b4
mov eax, ecx
shr eax, 0x10
and eax, edi
movzx eax, byte [eax + 0x48fe88]
mov eax, dword [eax*4 + 0x491488]
mov edx, ecx
shr edx, 8
and edx, edi
movzx edx, byte [edx + 0x48fe88]
xor eax, dword [edx*4 + 0x491888]
mov edx, ecx
shr edx, 0x18
movzx edx, byte [edx + 0x48fe88]
xor eax, dword [edx*4 + 0x491088]
and ecx, edi
movzx ecx, byte [ecx + 0x48fe88]
xor eax, dword [ecx*4 + 0x491c88]
jmp 0x4289b6
mov eax, ecx
mov ecx, dword [ebp - 0xc]
inc dword [ebp + 8]
add dword [ebp - 0xc], 4
dec ebx
mov dword [ecx], eax
jns 0x428957
pop esi
pop edi
pop ebx
leave
ret 4
Function at 0x429138
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x42927a
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x42927a
xor edx, edx
push 3
pop ecx
mov eax, ebx
div ecx
mov esi, dword [ebp + 0xc]
xor ecx, ecx
test edx, edx
setne cl
mov dword [ebp - 0xc], edx
add ecx, eax
shl ecx, 2
mov dword [ebp - 8], ecx
test esi, esi
jne 0x429180
mov eax, ecx
jmp 0x42927c
xor ecx, ecx
test eax, eax
je 0x4291f3
add edi, 2
mov dword [ebp - 4], eax
movzx eax, byte [edi - 2]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], al
movzx eax, byte [edi - 2]
movzx edx, byte [edi - 1]
and eax, 3
shl eax, 4
shr edx, 4
or eax, edx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 1], al
movzx eax, byte [edi - 1]
movzx edx, byte [edi]
and eax, 0xf
shl eax, 2
shr edx, 6
or eax, edx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 2], al
movzx eax, byte [edi]
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 3], al
add ecx, 4
add edi, 3
dec dword [ebp - 4]
jne 0x42918c
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
dec eax
je 0x429246
dec eax
jne 0x429275
lea edx, [edi + ebx]
movzx eax, byte [edx - 2]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], al
movzx eax, byte [edx - 2]
movzx edi, byte [edx - 1]
and eax, 3
shl eax, 4
shr edi, 4
or eax, edi
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 1], al
movzx eax, byte [edx - 1]
and eax, 0xf
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
lea ecx, [ecx + esi + 2]
mov byte [ecx], al
mov byte [ecx + 1], 0x3d
jmp 0x429275
lea edx, [edi + ebx - 1]
movzx eax, byte [edx]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], al
movzx eax, byte [edx]
and eax, 3
shl eax, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 1], al
lea ecx, [ecx + esi + 2]
mov word [ecx], 0x3d3d
mov eax, dword [ebp - 8]
jmp 0x42927c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42b907
Capabilities:
Check if file exists
Get common file path

Disassembly:
push 4
mov eax, 0x489241
call fcn.00468a6e
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
xor esi, esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42b9fb
push 0x48c308
push str.GetWinSpecialFoldersFromReg
push str.Support
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0043c592
add esp, 0x14
push str.True
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00417a23
test eax, eax
jne 0x42b95f
inc esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.00417891
cmp esi, ebx
je 0x42b9fb
mov eax, dword [ebp + 0x14]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
mov edi, ecx
push edi
call fcn.00468ca0
mov esi, eax
pop ecx
cmp esi, ebx
je 0x42b9a2
push edi
push ebx
push esi
call fcn.00466c70
add esp, 0xc
jmp 0x42b9a4
xor esi, esi
push 0xa
push ebx
push dword [ebp + 0x14]
or ecx, 0xffffffff
push esi
push dword [ebp + 0xc]
call fcn.0042b307
mov edi, eax
add esp, 0x14
cmp edi, ebx
je 0x42b9d2
push edi
push str._KFuncAux::GetSpecialFolders__GetWinSpecialFoldersFromReg_Failed:_0x_08x.
push 0x4c1dc0
call fcn.00448b55
add esp, 0xc
push dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
call fcn.0046b79d
push esi
call fcn.00468bd4
mov ecx, dword [ebp + 8]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.00417891
xor eax, eax
cmp edi, ebx
sete al
jmp 0x42ba18
push ebx
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00417891
mov eax, esi
call fcn.00468b46
ret

Function at 0x42bc7c
Capabilities:
Check if file exists
Copy file
Move file

Disassembly:
push 4
mov eax, 0x48781d
call fcn.00468a6e
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42bc9c
xor eax, eax
jmp 0x42bd52
mov ebx, dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
xor edi, edi
push edi
push ebx
push dword [ebp + 8]
call esi
test eax, eax
jne 0x42bd4f
cmp dword [ebp + 0x10], edi
je 0x42bc95
push 0x4c1160
lea ecx, [ebp - 0x10]
call fcn.004237f4
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push ebx
lea eax, [ebp - 0x10]
push str._s_d__x
push eax
call fcn.0041915d
push dword [ebp - 0x10]
push ebx
call fcn.00469890
add esp, 0x18
push edi
test eax, eax
jne 0x42bd1e
push ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x42bd0d
push 4
push edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x42bd0d
inc edi
mov esi, edi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00417891
mov eax, esi
jmp 0x42bd52
push dword [ebp - 0x10]
push dword [ebp + 8]
call esi
test eax, eax
je 0x42bd4b
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 4
push edi
push ebx
call esi
test eax, eax
je 0x42bd4b
push 4
push ebx
push dword [ebp - 0x10]
call esi
test eax, eax
je 0x42bd4b
xor esi, esi
inc esi
jmp 0x42bd0f
xor esi, esi
jmp 0x42bd0f
xor eax, eax
inc eax
call fcn.00468b46
ret
Function at 0x42bf05
Capabilities:
Create process on windows
Get common file path

Disassembly:
push 0x254
mov eax, 0x484df7
call fcn.00468ad7
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x220], eax
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
xor ebx, ebx
cmp eax, ebx
je 0x42c120
cmp dword [ebp + 0x14], ebx
jne 0x42bf3f
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
je 0x42c120
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.00466c70
add esp, 0xc
mov edi, 0x104
push edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str._regsvr32.exe
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.0046b5ac
add esp, 0xc
push 0x492628
lea ecx, [ebp - 0x21c]
call fcn.0042bda8
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
jne 0x42bfb6
mov edi, 0x492620
push edi
call fcn.00468f76
pop ecx
push eax
push edi
lea ecx, [ebp - 0x21c]
call fcn.00417d0b
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
je 0x42c016
cmp dword [ebp + 0x14], ebx
jne 0x42bfdb
mov edi, 0x492618
push edi
call fcn.00468f76
pop ecx
push eax
push edi
lea ecx, [ebp - 0x21c]
call fcn.00417d0b
push esi
lea eax, [ebp - 0x224]
push str.__i:
push eax
call fcn.00425dd1
add esp, 0xc
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp - 0x21c]
push eax
mov byte [ebp - 4], 1
call fcn.00417d0b
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.00417891
push dword [ebp - 0x220]
lea eax, [ebp - 0x224]
push 0x492604
push eax
call fcn.00425dd1
push 0x48faac
push eax
lea eax, [ebp - 0x220]
push eax
mov byte [ebp - 4], 2
call fcn.00417e8f
add esp, 0x18
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp - 0x21c]
push eax
mov byte [ebp - 4], 3
call fcn.00417d0b
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.00417891
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.00417891
push 0x38
lea eax, [ebp - 0x25c]
push ebx
push eax
call fcn.00466c70
lea eax, [ebp - 0x218]
mov dword [ebp - 0x250], eax
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x24c], eax
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
mov dword [ebp - 0x260], 0x3c
mov dword [ebp - 0x25c], 0x440
mov dword [ebp - 0x244], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x42c0f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x42c0e0
and eax, 0xffff
or eax, 0x80070000
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00417891
mov eax, esi
jmp 0x42c125
push 0xffffffffffffffff
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.00417891
xor eax, eax
jmp 0x42c125
mov eax, 0x80070057
call fcn.00468b5a
ret
Function at 0x42c12b
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x34
mov eax, 0x484e2f
call fcn.00468ad7
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
mov esi, 0x400
xor ecx, ecx
push 2
pop edx
xor ebx, ebx
mov eax, esi
mul edx
seto cl
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], esi
neg ecx
or ecx, eax
push ecx
call fcn.00468ca0
mov dword [ebp - 0x30], eax
mov dword [esp], 0x800
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00466c70
add esp, 0xc
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x38], esi
jb 0x42c18d
mov eax, dword [edi]
jmp 0x42c18f
mov eax, edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp 0x42c1e9
add dword [ebp - 0x34], 0x800
mov eax, dword [ebp - 0x34]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00468ca0
pop ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.0042b751
push ebx
call fcn.00468bd4
mov eax, dword [ebp - 0x34]
add eax, eax
push eax
push ebx
push dword [ebp - 0x30]
call fcn.00466c70
mov eax, dword [ebp - 0x34]
add esp, 0x10
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x38], eax
jb 0x42c1e7
mov eax, dword [edi]
jmp 0x42c1e9
mov eax, edi
lea ecx, [ebp - 0x38]
push ecx
push dword [ebp - 0x30]
push ebx
push ebx
push eax
push dword [ebp - 0x40]
call esi
cmp eax, 0xea
je 0x42c197
push dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
call fcn.00424491
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 1
jb 0x42c216
mov eax, dword [eax]
mov ecx, dword [ebp - 0x3c]
push eax
call fcn.00418067
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0041f501
push dword [ebp - 0x30]
call fcn.00468bd4
mov eax, dword [ebp - 0x3c]
pop ecx
call fcn.00468b5a
ret
Function at 0x42f1ac
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 0xc]
push edi
push dword [ebp + 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x42f222
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x42f1f3
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42f1f3
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x42f1f7
xor eax, eax
jmp 0x42f221
mov ecx, dword [ebp + 0x10]
push esi
push eax
lea eax, [esi + 1]
push eax
call fcn.00423997
push eax
call fcn.00466900
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push esi
call fcn.004237c7
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
inc eax
pop esi
pop edi
pop ebp
ret

Function at 0x42f622
Capabilities:
Get file size
Read file on windows

Disassembly:
push 8
mov eax, 0x4852e2
call fcn.00468a6e
mov esi, ecx
mov eax, dword [esi]
xor edi, edi
mov dword [ebp - 0x14], edi
cmp dword [eax - 0xc], edi
je 0x42f6f4
push 0x4c1160
lea ecx, [ebp - 0x10]
call fcn.004237f4
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
mov dword [ebp - 4], edi
push dword [esi]
push str._s_d._s
push eax
call fcn.0041915d
add esp, 0x14
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42f6e9
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, edi
je 0x42f6e2
mov ecx, dword [ebp + 0xc]
lea eax, [esi + 0xa]
push eax
mov dword [ebp + 0x10], edi
call fcn.00423997
push edi
lea ecx, [ebp + 0x10]
push ecx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x14], eax
cmp eax, edi
je 0x42f6d9
cmp dword [ebp + 0x10], esi
jne 0x42f6d9
mov ecx, dword [ebp + 0xc]
push esi
call fcn.004237c7
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00417891
xor eax, eax
inc eax
jmp 0x42f6f7
mov ecx, dword [ebp + 0xc]
push edi
call fcn.0042360a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00417891
mov eax, dword [ebp - 0x14]
call fcn.00468b46
ret 0xc

Function at 0x4322e1
Capabilities:
Hide graphical window

Disassembly:
push esi
push dword [ecx + 0x10]
push dword [ecx + 0xc]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x432308
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x432308
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret
Function at 0x43698e
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4369d9
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x4369d2
cmp dword [ebp + 8], 0x1b
jne 0x4369ba
push 0
push 2
jmp 0x4369c4
cmp dword [ebp + 8], 0xd
jne 0x4369d2
push 0
push 1
push 0x111
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
and dword [esi + 0x300], 0
pop esi
pop ebp
ret 0xc
Function at 0x436ca6
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor esi, esi
push edi
mov edi, ecx
mov dword [ebp - 8], esi
cmp dword [ebp + 8], esi
jne 0x436ce1
mov eax, dword [0x4c1944]
cmp eax, esi
je 0x436ccc
mov eax, dword [eax + 4]
mov dword [ebp + 8], eax
jmp 0x436ccf
mov dword [ebp + 8], esi
cmp dword [ebp + 8], esi
jne 0x436ce1
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [ebp + 8], eax
cmp eax, esi
je 0x436d0a
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp + 8], eax
je 0x436d0a
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x436d0a
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 8], 1
push dword [ebp + 0xc]
mov ecx, edi
push dword [ebp + 8]
mov dword [edi + 0x2fc], esi
call fcn.00433ffd
mov ebx, eax
mov dword [ebp - 0xc], ebx
cmp ebx, esi
jne 0x436d38
push 1
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x436e1c
push ebx
call fcn.0042d984
pop ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0xc], esi
jne 0x436d52
push dword [ebp + 8]
lea ecx, [edi + 4]
call fcn.0042d6c0
cmp dword [edi + 0x2f8], esi
je 0x436dbe
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
push esi
push esi
push 0x2001
mov dword [ebp + 0xc], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x43
push esi
push esi
push esi
push esi
push esi
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebp + 0xc]
mov ebx, dword [sym.imp.USER32.dll_AttachThreadInput]
cmp dword [ebp - 4], eax
je 0x436da6
push 1
push dword [ebp - 4]
push eax
call ebx
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
je 0x436dbe
push esi
push eax
push dword [ebp + 0xc]
call ebx
mov ecx, edi
call fcn.00441d36
push 0x97
push esi
push esi
push esi
push esi
push esi
push dword [edi + 4]
mov dword [edi + 0x2fc], esi
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [ebp - 8], esi
je 0x436e07
push 1
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp + 8], esi
je 0x436e07
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [edi + 4]
jne 0x436e07
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetActiveWindow]
push dword [ebp - 0x10]
call fcn.0042d984
pop ecx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [edi + 0x28]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x437d1e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [esi + 0x278], ebx
je 0x437d4e
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [esi + 0x278], ebx
mov eax, dword [esi + 0x26c]
cmp eax, ebx
je 0x437e1a
push eax
call fcn.0043067a
mov edi, eax
pop ecx
cmp edi, ebx
je 0x437dcf
push 2
push ebx
push edi
mov ecx, esi
call fcn.00437875
mov eax, dword [esi + 0x26c]
cmp eax, dword [esi + 0x268]
jne 0x437dcf
movzx eax, word [ebp + 0x10]
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebp + 8]
mov ecx, edi
push 0x202
call fcn.0042dd08
mov eax, dword [edi + 0x40]
cmp eax, ebx
je 0x437dbe
cmp word [eax], bx
je 0x437dbe
push 1
push ebx
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x437dcf
mov eax, dword [edi + 0x10]
cmp eax, ebx
je 0x437dcf
mov dword [ebp - 4], 1
mov dword [ebp - 8], eax
mov dword [esi + 0x26c], ebx
cmp dword [ebp - 4], ebx
je 0x437e1a
mov eax, dword [esi + 4]
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
push dword [esi + 4]
mov dword [ebp - 0xc], eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x18]
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x43c070
Capabilities:
Delete file

Disassembly:
push 8
mov eax, 0x4860c8
call fcn.00468a6e
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jne 0x43c089
xor eax, eax
jmp 0x43c0fa
push eax
push dword [0x4c1a40]
lea eax, [ebp - 0x14]
push eax
call fcn.0042bc31
add esp, 0xc
push dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
and dword [ebp - 4], 0
call esi
push str..new
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.00417e8f
add esp, 0xc
push dword [eax]
call esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00417891
push 0x493894
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.00417e8f
add esp, 0xc
push dword [eax]
call esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00417891
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00417891
xor eax, eax
inc eax
call fcn.00468b46
ret
Function at 0x43c592
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4bfcf0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
and dword [ebp - 0x218], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x210], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x214], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00466c70
add esp, 0xc
push edi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
push dword [ebp - 0x210]
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.00418067
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00466576
leave
ret

Function at 0x43cf8a
Capabilities:
Delete file
Move file

Disassembly:
push 0
mov eax, 0x486334
call fcn.00468a6e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebp + 0xc]
mov dword [esi], eax
test eax, eax
jne 0x43d003
push 0x4c1160
lea ecx, [ebp + 0xc]
call fcn.004237f4
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push dword [ebp + 8]
lea eax, [ebp + 0xc]
push str._s_d__x
push eax
call fcn.0041915d
mov edi, dword [ebp + 0xc]
push edi
push dword [ebp + 8]
call fcn.00469890
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x43cff6
push 4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [esi], eax
test eax, eax
jne 0x43cffb
mov eax, dword [ebp + 0x10]
inc dword [eax]
lea ecx, [edi - 0x10]
call fcn.00417891
call fcn.00468b46
ret