joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408610
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x40861f
pop dword [ebp - 0x40]
mov eax, 0x8b0e879b
sub eax, 0x8ace017c
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0xa1e00d4a
sub dword [ebp - 0x50], 0x538dc7ff
mov dword [ebp - 0x4c], 0xc1710d00
add dword [ebp - 0x4c], 0x70c23f45
mov dword [ebp - 0x48], 0xfb96f8bd
add dword [ebp - 0x48], 0x50b54b71
mov dword [ebp - 0x44], 0x1853948a
sub dword [ebp - 0x44], 0x1853948a
lea eax, [ebp - 0x50]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0xdd8570b4
add dword [ebp - 0x50], 0x96ecf8a2
mov dword [ebp - 0x4c], 0xa5e7054e
add dword [ebp - 0x4c], 0x9b855c27
mov dword [ebp - 0x48], 0x8904848d
add dword [ebp - 0x48], 0xda6ae7df
mov dword [ebp - 0x44], 0xaab7a0de
sub dword [ebp - 0x44], 0xaab7a0de
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0xacb258b2
add eax, 0x538ef79a
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x38f8d
push 0
call eax
mov ecx, 0x1d72ea36
sub ecx, 0x1d72a796
mov ebx, eax
mov esi, 0xe17874f2
add esi, 0x1ec97f0e
add esi, dword [ebp - 0x40]
mov edi, 0xb75ca5b
sub edi, 0x28236637
xor dword [ebp - 0x1c], ebx
mov edx, dword [esi]
mov dword [ebp - 0x2c], 0x94668ead
sub edx, edi
xor dword [ebp - 4], ecx
mov dword [ebx], edx
add ebx, 0x585a0dfb
add ebx, 0xa7a5f209
add esi, 4
loop 0x40873c
add eax, 0xfd53
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x9c7784c9
add ecx, 0x63c87b37
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x4015d0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x18]
push esi
test eax, eax
push edi
mov dword [esp + 8], 0
mov esi, 0x2001f
mov dword [esp + 0xc], 0
je 0x4015f7
mov esi, 0x2011f
mov edi, dword [esp + 0x14]
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push esi
push 0
push 0
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x401636
lea edx, [esp + 8]
push edx
push esi
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401670
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x40164d
push esi
call fcn.00417ba8
add esp, 4
lea eax, [eax + eax + 2]
jmp 0x40164f
xor eax, eax
mov ecx, dword [esp + 8]
push eax
mov eax, dword [esp + 0x1c]
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 8
ret 0x10

Function at 0x401680
Capabilities:
Set registry value

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x18]
push esi
test eax, eax
push edi
mov dword [esp + 8], 0
mov esi, 0x2001f
mov dword [esp + 0xc], 0
je 0x4016a7
mov esi, 0x2011f
mov edi, dword [esp + 0x14]
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push esi
push 0
push 0
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4016e6
lea edx, [esp + 8]
push edx
push esi
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40170c
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 8]
lea eax, [esp + 0x1c]
push 4
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 8
ret 0x10

Function at 0x401720
Capabilities:
Set registry value

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x1c]
push esi
test eax, eax
push edi
mov dword [esp + 8], 0
mov esi, 0x2001f
mov dword [esp + 0xc], 0
je 0x401747
mov esi, 0x2011f
mov edi, dword [esp + 0x14]
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push esi
push 0
push 0
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x401786
lea edx, [esp + 8]
push edx
push esi
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4017ac
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 8]
lea eax, [esp + 0x1c]
push 8
push eax
push 3
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 8
ret 0x14
Function at 0x4017c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
lea eax, [esp + 8]
push eax
xor esi, esi
push edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x4017fd
lea ecx, [esp + 8]
push ecx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40187d
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edx
lea eax, [esp + 0x14]
push 0
push eax
push 0
push edi
push ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0
call ebx
mov eax, dword [esp + 0x18]
cmp eax, 2
jb 0x401867
add eax, 2
mov dword [esp + 0x18], eax
shr eax, 1
lea edx, [eax + eax]
push edx
call fcn.004ade0f
mov esi, eax
add esp, 4
test esi, esi
je 0x401867
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push esi
push ecx
push 0
push edi
push edx
call ebx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, esi
pop edi
pop esi
add esp, 8
ret 8
mov eax, esi
pop edi
pop esi
add esp, 8
ret 8

Function at 0x401890
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 4]
mov dword [esp + 8], 0
push eax
push esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x4018d2
lea ecx, [esp + 4]
push ecx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40190e
lea edx, [esp + 0x14]
lea eax, [esp + 8]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
pop esi
add esp, 0xc
ret 8

Function at 0x401920
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
lea eax, [esp + 4]
mov dword [esp + 0xc], 0
push eax
push esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x40196a
lea ecx, [esp + 4]
push ecx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4019a6
lea edx, [esp + 0x18]
lea eax, [esp + 0xc]
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x30], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
fld qword [esp + 0xc]
pop esi
add esp, 0x10
ret 8
Function at 0x401a00
Capabilities:
Copy file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4c7118
push eax
mov eax, dword [0x4fbf40]
mov dword fs:[0], esp
sub esp, 8
test eax, eax
je 0x401a3a
push str.CopyFile_1_______
push str.cmdtest
push 0xf
push 0x4fbed4
call fcn.0040ae60
add esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x2c]
push edi
mov ecx, esi
call fcn.004ae25d
push str._NEW.txt
push str..txt
mov ecx, esi
call fcn.004aad5e
mov ebp, dword [esp + 0x28]
lea ecx, [esp + 0x14]
push ebp
call fcn.004ae194
push ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0
call fcn.004ae194
lea eax, [esp + 0x14]
push 0x4ea234
lea ecx, [esp + 0x34]
mov bl, 1
push eax
push ecx
mov byte [esp + 0x2c], bl
call fcn.004ae369
push edi
lea edx, [esp + 0x30]
push eax
push edx
mov byte [esp + 0x2c], 2
call fcn.004ae369
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 3
call fcn.004ae20d
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 2
call fcn.004ae0d4
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], bl
call fcn.004ae0d4
lea eax, [esp + 0x10]
push 0x4ea234
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.004ae369
push esi
lea edx, [esp + 0x30]
push eax
push edx
mov byte [esp + 0x2c], 4
call fcn.004ae303
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 5
call fcn.004ae20d
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 4
call fcn.004ae0d4
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], bl
call fcn.004ae0d4
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, eax
mov eax, dword [0x4fbf40]
test eax, eax
je 0x401b7e
mov esi, dword [esi]
lea ecx, [esp + 0x2c]
push esi
call fcn.0042ec40
mov eax, dword [eax]
push edi
push eax
push str.CopyFile_1______s___d_
push str.cmdtest
push 0xf
push 0x4fbed4
mov byte [esp + 0x38], 6
call fcn.0040ae60
add esp, 0x18
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], bl
call fcn.0042f5c0
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 0
call fcn.004ae0d4
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
call fcn.004ae0d4
mov ecx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x407590
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x664
push ebp
push esi
mov esi, dword [esp + 0x670]
xor ebp, ebp
cmp esi, ebp
je 0x407768
push esi
call fcn.00417ba8
add esp, 4
test eax, eax
je 0x407768
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x18]
push ebp
push eax
push esi
mov dword [esp + 0x24], ebp
call fcn.004049f0
add esp, 0x1c
test eax, eax
je 0x407768
mov eax, dword [esp + 8]
cmp eax, 0xffffffff
je 0x407768
test al, 1
je 0x4075fc
and al, 0xfe
push eax
push esi
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 8]
test al, 0x10
je 0x407741
push ebx
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x46e]
mov word [esp + 0x46c], bp
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x46c]
push esi
push ecx
stosw word es:[edi], ax
call fcn.00417c2c
lea edx, [esp + 0x474]
push 0x4eaba8
push edx
call fcn.00417c02
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x230]
mov dword [esp + 0x22c], ebp
add esp, 0x10
rep stosd dword es:[edi], eax
lea eax, [esp + 0x21c]
lea ecx, [esp + 0x46c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x407718
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea edx, [esp + 0x248]
push 0x4ea370
push edx
call ebp
test eax, eax
je 0x4076f8
lea eax, [esp + 0x248]
push 0x4ea36c
push eax
call ebp
test eax, eax
je 0x4076f8
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push esi
push ecx
stosw word es:[edi], ax
call fcn.00417c2c
lea edx, [esp + 0x1c]
push 0x4eabe0
push edx
call fcn.00417c02
lea eax, [esp + 0x258]
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.00417c02
lea edx, [esp + 0x2c]
push 0
push edx
call fcn.00407590
add esp, 0x20
lea eax, [esp + 0x21c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407681
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor ebp, ebp
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
cmp eax, ebp
pop ebx
jne 0x40776a
cmp dword [esp + 0x674], ebp
je 0x40776a
push 4
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
pop ebp
add esp, 0x664
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, ebp
jne 0x40776a
cmp dword [esp + 0x674], ebp
je 0x40776a
push 4
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
pop ebp
add esp, 0x664
ret
xor eax, eax
pop esi
pop ebp
add esp, 0x664
ret
Function at 0x407920
Capabilities:
Check for time delay via gettickcount
Check if file exists
Copy file
Get file attributes
Move file
Set file attributes

Disassembly:
sub esp, 0x204
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push ebp
mov ebp, dword [esp + 0x214]
push esi
push edi
push ebp
call ebx
cmp eax, 0xffffffff
jne 0x407955
mov eax, dword [esp + 0x220]
mov ecx, dword [esp + 0x218]
push eax
push ebp
push ecx
jmp 0x4079fb
test al, 1
je 0x40796b
and al, 0xfe
push eax
push ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 0x10]
test al, 0x10
je 0x4079ea
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push eax
push ebp
lea edx, [esp + 0x1c]
push str._s.bak_08X
push edx
call fcn.0041841f
add esp, 0x10
lea eax, [esp + 0x14]
xor esi, esi
push eax
call ebx
cmp eax, 0xffffffff
je 0x4079de
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
push eax
push ebp
lea ecx, [esp + 0x1c]
push str._s.bak_08X
push ecx
call fcn.0041841f
add esp, 0x10
lea edx, [esp + 0x14]
push edx
call ebx
inc esi
cmp esi, 0xa
jge 0x407a19
cmp eax, 0xffffffff
jne 0x4079ae
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov ecx, dword [esp + 0x220]
mov edx, dword [esp + 0x218]
push ecx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push ebp
mov esi, eax
call fcn.00408d20
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x204
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x204
ret
Function at 0x407c40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4c75d2
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
mov esi, dword [esp + 0x170]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x407e53
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x407e53
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x407e53
test al, 0x10
je 0x407e53
push esi
lea ecx, [esp + 0x10]
call fcn.004ae142
push 0x5c
lea ecx, [esp + 0x10]
mov dword [esp + 0x170], ebx
call fcn.004ab63b
mov ecx, 0x4f
xor eax, eax
lea edi, [esp + 0x28]
mov dword [esp + 0x24], ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push 0x4eaba4
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.004ae369
mov eax, dword [eax]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.004ae0d4
cmp edi, 0xffffffff
mov ebx, 1
je 0x407e3b
mov esi, dword [esp + 0x178]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea eax, [esp + 0x54]
push 0x4eabdc
push eax
call ebp
test eax, eax
je 0x407e1f
lea ecx, [esp + 0x54]
push 0x4eabd8
push ecx
call ebp
test eax, eax
je 0x407e1f
lea edx, [esp + 0x54]
lea ecx, [esp + 0x14]
push edx
call fcn.004ae142
mov al, byte [esp + 0x28]
mov byte [esp + 0x170], bl
test al, 0x10
push 0x4ea234
je 0x407db2
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.004ae369
lea edx, [esp + 0x14]
mov byte [esp + 0x170], 2
push edx
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.004ae303
mov eax, dword [eax]
push esi
push eax
mov byte [esp + 0x178], 3
call fcn.00407c40
add esp, 8
lea ecx, [esp + 0x24]
mov byte [esp + 0x170], 2
call fcn.004ae0d4
mov byte [esp + 0x170], bl
lea ecx, [esp + 0x18]
jmp 0x407e09
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.004ae369
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push eax
push edx
mov byte [esp + 0x17c], 4
call fcn.004ae303
mov ecx, dword [esi + 8]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x178], 5
call fcn.004ace68
lea ecx, [esp + 0x1c]
mov byte [esp + 0x170], 4
call fcn.004ae0d4
mov byte [esp + 0x170], bl
lea ecx, [esp + 0x20]
call fcn.004ae0d4
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 0
call fcn.004ae0d4
lea eax, [esp + 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407d0f
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
lea ecx, [esp + 0xc]
mov dword [esp + 0x16c], 0xffffffff
call fcn.004ae0d4
mov eax, ebx
jmp 0x407e55
xor eax, eax
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret
Function at 0x407e70
Capabilities:
Get graphical window text

Disassembly:
call fcn.00440fa0
test eax, eax
je 0x407e8f
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
ret
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
xor ebp, ebp
test edi, edi
je 0x407f10
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x407f10
lea ecx, [esi + esi]
xor eax, eax
mov edx, ecx
push esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call fcn.004ade0f
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x407f10
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
push ebx
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ebp, eax
test ebp, ebp
je 0x407f10
push esi
mov esi, dword [esp + 0x1c]
push esi
push 0xffffffffffffffff
push ebx
xor ebp, ebp
call fcn.00409fa0
add esp, 0x10
test eax, eax
je 0x407f10
push esi
call fcn.00417ba8
add esp, 4
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret

Function at 0x407f70
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
xor ecx, ecx
xor edi, edi
xor eax, eax
mov esi, 0x200
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
jmp 0x407f9a
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp eax, 1
jne 0x407fa6
mov esi, 0x400
jmp 0x407ff4
cmp eax, 2
jne 0x407ff4
xor eax, eax
lea edx, [esp + 0x38]
mov dword [esp + 0x1c], eax
push ecx
mov dword [esp + 0x24], eax
push edx
mov dword [esp + 0x2c], eax
push 0x18
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x38], eax
lea eax, [esp + 0x24]
push eax
push ecx
push ecx
push 0x70000
push ebp
mov dword [esp + 0x58], ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x408054
mov esi, dword [esp + 0x2c]
cmp esi, 0x200
jb 0x408054
push esi
call fcn.004ade0f
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebx]
lea eax, [esp + 0x18]
push eax
push esi
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
test edi, edi
jne 0x40804a
mov edx, dword [ebx]
push edx
call fcn.004ade38
mov eax, dword [esp + 0x14]
add esp, 4
inc eax
mov dword [ebx], edi
cmp eax, 3
mov dword [esp + 0x10], eax
jl 0x407f94
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x408fb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4c767c
push eax
mov dword fs:[0], esp
sub esp, 0x150
push ebx
push esi
mov esi, dword [esp + 0x168]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x409192
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x409192
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x409192
test al, 0x10
je 0x409192
push ebp
push esi
lea ecx, [esp + 0x18]
call fcn.004ae142
push 0x5c
lea ecx, [esp + 0x18]
mov dword [esp + 0x16c], ebx
call fcn.004ab63b
mov ecx, 0x4f
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x20], ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push 0x4eaba4
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.004ae369
mov eax, dword [eax]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [esp + 0x10]
mov ebp, eax
call fcn.004ae0d4
cmp ebp, 0xffffffff
je 0x409176
mov esi, dword [esp + 0x178]
mov edi, dword [esp + 0x174]
mov bl, 2
lea eax, [esp + 0x4c]
push 0x4eabdc
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x409149
lea ecx, [esp + 0x4c]
push 0x4eabd8
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x409149
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x10]
push edx
call fcn.004ae142
mov al, byte [esp + 0x20]
mov byte [esp + 0x168], 1
test al, 0x10
je 0x40912e
lea eax, [esp + 0x14]
push 0x4ea234
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.004ae369
lea edx, [esp + 0x10]
mov byte [esp + 0x168], bl
push edx
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004ae303
mov eax, dword [eax]
push esi
push edi
push eax
mov byte [esp + 0x174], 3
call fcn.00408fb0
add esp, 0xc
lea ecx, [esp + 0x18]
mov byte [esp + 0x168], bl
call fcn.004ae0d4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x168], 1
call fcn.004ae0d4
jmp 0x409130
inc dword [edi]
test esi, esi
je 0x409138
cmp esi, dword [edi]
jbe 0x40915e
lea ecx, [esp + 0x10]
mov byte [esp + 0x168], 0
call fcn.004ae0d4
lea ecx, [esp + 0x20]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40916f
jmp 0x40907d
lea ecx, [esp + 0x10]
mov byte [esp + 0x168], 0
call fcn.004ae0d4
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x14]
mov dword [esp + 0x168], 0xffffffff
call fcn.004ae0d4
mov eax, 1
pop ebp
jmp 0x409194
xor eax, eax
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x15c
ret