joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427b60
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Move file

Disassembly:
sub esp, 0x20c
lea eax, [esp + 4]
push ebx
push ebp
push esi
push edi
push 0x104
push eax
call fcn.00427cc0
add esp, 8
test eax, eax
jne 0x427b8b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
mov ecx, 0x104
lea eax, [esp + 0x14]
cmp byte [eax], 0
je 0x427b9f
inc eax
dec ecx
jne 0x427b94
jmp 0x427bcf
test ecx, ecx
je 0x427bcf
lea edx, [esp + 0x10]
test edx, edx
je 0x427bb4
mov eax, 0x104
sub eax, ecx
jmp 0x427bb8
mov eax, dword [esp + 0x10]
mov ecx, 0x104
push 0x44a228
sub ecx, eax
lea edx, [esp + eax + 0x18]
push ecx
push edx
call fcn.004054a0
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
push 0x104
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0x11c]
dec ecx
push eax
push 0
lea ebp, [esp + ecx + 0x20]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x118]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll__mbsrchr]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x427c1c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20c
ret
inc ebx
mov edi, 0x46cf18
mov ecx, dword [edi]
mov esi, 0x104
mov eax, ebp
mov dl, byte [ecx]
test dl, dl
je 0x427c3a
mov byte [eax], dl
inc eax
inc ecx
dec esi
jne 0x427c2b
jmp 0x427c3e
test esi, esi
jne 0x427c3f
dec eax
lea edx, [esp + 0x14]
mov byte [eax], 0
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x427c0f
mov ecx, dword [edi]
mov esi, 0x104
mov eax, ebx
mov dl, byte [ecx]
test dl, dl
je 0x427c6a
mov byte [eax], dl
inc eax
inc ecx
dec esi
jne 0x427c5b
jmp 0x427c6e
test esi, esi
jne 0x427c6f
dec eax
mov byte [eax], 0
lea eax, [esp + 0x118]
push 0
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x427c0f
push 4
lea edx, [esp + 0x11c]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
add edi, 4
cmp edi, 0x46cf34
jb 0x427c22
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20c
ret
Function at 0x427d00
Capabilities:
Check if file exists
Get file attributes
Link many functions at runtime

Disassembly:
sub esp, 0x208
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
jne 0x427eda
call fcn.00427b60
test eax, eax
jne 0x427d27
pop edi
pop esi
add esp, 0x208
ret
mov al, byte [0x47c558]
mov ecx, 0x40
mov byte [esp + 0x10c], al
xor eax, eax
lea edi, [esp + 0x10d]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x110]
push ecx
push 0
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x10c]
push 0x5c
push edx
call dword [sym.imp.MSVCRT.dll__mbsrchr]
add esp, 8
test eax, eax
jne 0x427d7b
pop edi
pop esi
add esp, 0x208
ret
mov byte [eax], 0
lea eax, [esp + 0x10c]
push 0x46d030
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [esp + 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x427daf
pop edi
xor eax, eax
pop esi
add esp, 0x208
ret
lea edx, [esp + 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 4], eax
jne 0x427dcd
pop edi
pop esi
add esp, 0x208
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x46d028
push eax
call edi
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
push 0x46d020
push eax
call edi
mov ecx, dword [esi + 4]
push 0x46d014
push ecx
mov dword [esi + 0xc], eax
call edi
mov edx, dword [esi + 4]
push 0x46d008
push edx
mov dword [esi + 0x10], eax
call edi
mov dword [esi + 0x14], eax
mov eax, dword [esi + 4]
push 0x46cffc
push eax
call edi
mov ecx, dword [esi + 4]
push 0x46cfec
push ecx
mov dword [esi + 0x18], eax
call edi
mov edx, dword [esi + 4]
push 0x46cfe4
push edx
mov dword [esi + 0x1c], eax
call edi
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
push 0x46cfd8
push eax
call edi
mov ecx, dword [esi + 4]
push 0x46cfcc
push ecx
mov dword [esi + 0x24], eax
call edi
mov edx, dword [esi + 4]
push 0x46cfc0
push edx
mov dword [esi + 0x28], eax
call edi
mov dword [esi + 0x40], eax
mov eax, dword [esi + 4]
push 0x46cfac
push eax
call edi
mov ecx, dword [esi + 4]
push 0x46cfa0
push ecx
mov dword [esi + 0x44], eax
call edi
mov edx, dword [esi + 4]
push 0x46cf8c
push edx
mov dword [esi + 0x48], eax
call edi
mov dword [esi + 0x50], eax
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 8], 0x104
test eax, eax
je 0x427eda
lea ecx, [esp + 8]
push ecx
call eax
add esp, 4
test eax, eax
je 0x427eda
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov dword [esi + 0x2c], edx
mov edx, dword [esp + 0x44]
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0x38], ecx
mov ecx, dword [esp + 0x54]
mov dword [esi + 0x3c], edx
mov dword [esi + 0x30], eax
mov dword [esi + 0x4c], ecx
pop edi
mov eax, 1
pop esi
add esp, 0x208
ret
Function at 0x4281e0
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443fa8
push 0x43e794
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42822d
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 3
push 0
push 3
push connect
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x428262
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x20], eax
cmp eax, 0x19000
jbe 0x42828f
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
test edi, edi
jne 0x4282c7
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
mov dword [ebp - 0x24], esi
push edi
call ebx
test esi, esi
jne 0x4282fa
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], 0
mov dword [ebp - 0x3c], esi
mov edi, dword [esi + 0x3c]
add edi, esi
mov dword [ebp - 0x38], edi
xor ecx, ecx
mov cx, word [edi + 0x14]
lea eax, [ecx + edi + 0x18]
mov dword [ebp - 0x34], eax
cmp dword [eax + 0x24], 0xe0000060
je 0x42837b
push 8
push 0x46d0e0
push eax
call dword [sym.imp.ntdll.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x42837b
mov edi, dword [edi + 0x80]
mov dword [ebp - 0x40], edi
push edi
push esi
call fcn.004283f0
add esp, 8
mov dword [ebp - 0x44], eax
lea edi, [eax + esi]
mov dword [ebp - 0x30], edi
mov ebx, dword [sym.imp.ntdll.dll__stricmp]
mov eax, dword [edi + 0xc]
test eax, eax
je 0x4283a9
push eax
push esi
call fcn.004283f0
mov dword [ebp - 0x44], eax
push 0x46d0d4
add eax, esi
push eax
call ebx
add esp, 0x10
test eax, eax
jne 0x4283a1
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
add edi, 0x14
mov dword [ebp - 0x30], edi
jmp 0x428359
mov dword [ebp - 4], 0xffffffff
jmp 0x4283c5
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4283f0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443fb8
push 0x43e794
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov edx, dword [eax + 0x3c]
add edx, eax
mov dword [ebp - 0x24], edx
xor eax, eax
mov ax, word [edx + 0x14]
lea edi, [eax + edx + 0x18]
mov dword [ebp - 0x20], edi
mov esi, dword [ebp + 0xc]
cmp esi, dword [edi + 0xc]
jae 0x428458
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x1c], ecx
xor eax, eax
mov ax, word [edx + 6]
cmp ecx, eax
jae 0x4284b9
lea ebx, [ecx + 1]
cmp ebx, eax
jne 0x428471
mov eax, dword [edx + 0x50]
jmp 0x428478
lea eax, [ecx + ecx*4]
mov eax, dword [edi + eax*8 + 0x34]
mov dword [ebp - 0x2c], eax
lea ecx, [ecx + ecx*4]
lea eax, [edi + ecx*8]
mov ecx, dword [eax + 0xc]
cmp esi, ecx
jb 0x4284ac
cmp esi, dword [ebp - 0x2c]
jae 0x4284ac
mov eax, dword [eax + 0x14]
sub eax, ecx
add eax, esi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, ebx
jmp 0x428458
or eax, 0xffffffff
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x428920
Capabilities:
Get common file path

Disassembly:
sub esp, 0x558
lea eax, [esp + 8]
push esi
push 0
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x428b04
mov ecx, 0x104
lea eax, [esp + 0xc]
cmp byte [eax], 0
je 0x428954
inc eax
dec ecx
jne 0x428949
jmp 0x428998
test ecx, ecx
je 0x428998
lea edx, [esp + 8]
test edx, edx
je 0x428969
mov eax, 0x104
sub eax, ecx
jmp 0x42896d
mov eax, dword [esp + 8]
mov edx, 0x104
sub edx, eax
lea eax, [esp + eax + 0xc]
je 0x428998
mov esi, 0x46d158
sub esi, eax
mov cl, byte [esi + eax]
test cl, cl
je 0x428990
mov byte [eax], cl
inc eax
dec edx
jne 0x428981
jmp 0x428994
test edx, edx
jne 0x428995
dec eax
mov byte [eax], 0
lea eax, [esp + 0x214]
lea ecx, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x428b04
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x214]
cmp eax, 0xffffffff
je 0x428b04
test al, 0x10
jne 0x428b04
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea edx, [esp + 4]
push edx
push 0x444914
push 1
push 0
push 0x444924
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x428afe
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push edx
push 0x444934
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jge 0x428a2f
mov eax, dword [esp + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
pop esi
add esp, 0x558
ret 8
lea edx, [esp + 0xc]
push 0x104
lea eax, [esp + 0x358]
push edx
push eax
call dword [sym.imp.ntdll.dll_mbstowcs]
mov eax, dword [esp + 0x14]
add esp, 0xc
lea edx, [esp + 0x354]
mov ecx, dword [eax]
push 1
push edx
push eax
call dword [ecx + 0x14]
test eax, eax
jne 0x428aea
mov eax, dword [esp + 4]
push 2
push 0
lea edx, [esp + 0x118]
mov ecx, dword [eax]
push 0x104
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x428aea
mov ecx, dword [esp + 0x564]
cmp ecx, 0x7fffffff
ja 0x428ac1
mov eax, dword [esp + 0x560]
mov esi, ecx
test ecx, ecx
je 0x428ac1
lea edx, [esp + 0x110]
sub edx, eax
mov cl, byte [edx + eax]
test cl, cl
je 0x428ab9
mov byte [eax], cl
inc eax
dec esi
jne 0x428aaa
jmp 0x428abd
test esi, esi
jne 0x428abe
dec eax
mov byte [eax], 0
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
pop esi
add esp, 0x558
ret 8
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
pop esi
add esp, 0x558
ret 8
Function at 0x428b30
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
sub esp, 0x104
lea eax, [esp]
push edi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 4]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll__mbsrchr]
mov edi, eax
add esp, 8
test edi, edi
jne 0x428b67
pop edi
add esp, 0x104
ret
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
inc edi
mov ebx, 0x46cf18
mov ecx, dword [ebx]
mov esi, 0x104
mov eax, edi
mov dl, byte [ecx]
test dl, dl
je 0x428b8e
mov byte [eax], dl
inc eax
inc ecx
dec esi
jne 0x428b7f
jmp 0x428b92
test esi, esi
jne 0x428b93
dec eax
lea edx, [esp + 0x10]
mov byte [eax], 0
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x428bcc
lea eax, [esp + 0x10]
push 0x80
push eax
call ebp
push 4
lea ecx, [esp + 0x14]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add ebx, 4
cmp ebx, 0x46cf34
jb 0x428b76
mov edx, 0x46d16c
mov esi, 0x104
mov eax, edi
sub edx, edi
mov cl, byte [edx + eax]
test cl, cl
je 0x428bf4
mov byte [eax], cl
inc eax
dec esi
jne 0x428be5
jmp 0x428bf8
test esi, esi
jne 0x428bf9
dec eax
mov byte [eax], 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x428c32
lea ecx, [esp + 0x10]
push 0x80
push ecx
call ebp
push 4
lea edx, [esp + 0x14]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
pop ebp
pop ebx
mov eax, 1
pop edi
add esp, 0x104
ret

Function at 0x428c50
Capabilities:
Write file on windows

Disassembly:
push ebp
push esi
xor ebp, ebp
call fcn.00427a50
mov esi, eax
test esi, esi
jne 0x428c64
pop esi
pop ebp
ret 4
mov eax, dword [esp + 0xc]
push ebx
push 0x44aa7c
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x428cad
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ebx
dec ecx
push 1
push ecx
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
test eax, eax
pop edi
jbe 0x428ca3
mov ebp, 1
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop ebx
mov eax, ebp
pop esi
pop ebp
ret 4
Function at 0x42a130
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push edi
push 0x104
push eax
call esi
lea ecx, [esp + 0x114]
push 0x104
push ecx
call esi
mov esi, dword [sym.imp.MSVCRT.dll__mbschr]
lea edx, [esp + 0x10]
push 0x5c
push edx
call esi
add esp, 8
test eax, eax
jne 0x42a17e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov byte [eax], 0
lea eax, [esp + 0x114]
push 0x5c
push eax
call esi
mov esi, eax
add esp, 8
test esi, esi
jne 0x42a1a3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov ebx, dword [esp + 0x220]
mov edi, dword [esp + 0x21c]
mov byte [esi], 0
inc esi
lea ecx, [esp + 0x10]
push esi
push ecx
push 0x46d41c
push ebx
push edi
call fcn.00407080
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
add esp, 0x14
push edi
call ebp
test eax, eax
je 0x42a1e9
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x208
ret 8
lea edx, [esp + 0x10]
push esi
push edx
push 0x46d404
push ebx
push edi
call fcn.00407080
add esp, 0x14
push edi
call ebp
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x208
ret 8

Function at 0x42a220
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, dword [esp + 0x110]
test eax, eax
je 0x42a24d
lea ecx, [esp]
push 0x46d43c
push ecx
jmp 0x42a257
lea edx, [esp]
push 0x46d430
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov ecx, dword [esp + 0x10c]
push esi
cmp ecx, 0x7fffffff
ja 0x42a2a8
mov eax, dword [esp + 0x10c]
mov esi, ecx
test ecx, ecx
je 0x42a2a8
lea edx, [esp + 4]
sub edx, eax
mov cl, byte [edx + eax]
test cl, cl
je 0x42a2a0
mov byte [eax], cl
inc eax
dec esi
jne 0x42a280
dec eax
pop esi
mov byte [eax], 0
mov eax, 1
add esp, 0x104
ret 0xc
test esi, esi
jne 0x42a2a5
dec eax
mov byte [eax], 0
mov eax, 1
pop esi
add esp, 0x104
ret 0xc
Function at 0x42a2c0
Capabilities:
Get common file path
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444098
push 0x43e794
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
xor ecx, ecx
cmp dword [ebp + 0xc], eax
sete cl
push ecx
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00415170
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x1c], esi
mov edi, dword [esi + 0x3c]
add edi, esi
mov dword [ebp - 0x2c], edi
cmp word [esi], 0x5a4d
jne 0x42a3ab
cmp dword [edi], 0x4550
jne 0x42a3ab
mov eax, dword [edi + 0x80]
push eax
push esi
call fcn.00415560
add esp, 8
add eax, esi
mov dword [ebp - 0x24], eax
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x42a3ab
push ecx
push esi
call fcn.00415560
add esp, 8
mov ebx, eax
add ebx, esi
mov dword [ebp - 0x30], ebx
push 0x104
lea edx, [ebp - 0x134]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push ebx
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 1
lea ecx, [ebp - 0x134]
push ecx
call fcn.004295d0
add esp, 8
test eax, eax
je 0x42a3ab
mov dword [ebp - 0x20], 1
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x42a3ab
add dword [edi + 0x80], 0x14
add dword [edi + 0x84], 0xffffffec
mov dword [ebp - 4], 0xffffffff
jmp 0x42a3c7
test esi, esi
je 0x42a3d4
push esi
call fcn.00415210
add esp, 4
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x42a7b0
Capabilities:
Get common file path

Disassembly:
mov al, byte [0x47f8c4]
test al, al
jne 0x42a800
push esi
push edi
push 0x104
push 0x47f8c4
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x46d484
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x47f8c4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, 0x47f8c4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret
mov eax, 0x47f8c4
ret
Function at 0x42ae70
Capabilities:
Parse pe header
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x13c
push ebx
mov ebx, dword [esp + 0x144]
push ebp
push esi
push edi
push 0x2e
push ebx
call dword [sym.imp.MSVCRT.dll__mbsrchr]
mov esi, eax
add esp, 8
test esi, esi
je 0x42afd4
mov edi, dword [sym.imp.MSVCRT.dll__mbsicmp]
push str..exe
push esi
call edi
add esp, 8
test eax, eax
je 0x42aece
push 0x46d608
push esi
call edi
add esp, 8
test eax, eax
je 0x42aece
push 0x46d600
push esi
call edi
add esp, 8
test eax, eax
jne 0x42afd4
mov eax, dword [esp + 0x154]
push 0
neg eax
sbb eax, eax
push 0
and eax, 0x40000000
push 3
push 0
or eax, 0x80000000
push 1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x42afd4
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x1c]
push 0x40
push edx
push esi
call ebx
test eax, eax
je 0x42afcd
cmp word [esp + 0x14], 0x5a4d
jne 0x42afcd
mov eax, dword [esp + 0x50]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push eax
push esi
call ebp
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x5c]
push 0xf8
push edx
push esi
call ebx
test eax, eax
je 0x42afcd
cmp dword [esp + 0x54], 0x4550
jne 0x42afcd
mov eax, dword [esp + 0x5a]
test ax, ax
je 0x42afcd
and eax, 0xffff
lea eax, [eax + eax*4]
shl eax, 3
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
test edi, edi
je 0x42afcd
mov eax, dword [esp + 0x5a]
mov edx, dword [esp + 0x68]
and eax, 0xffff
and edx, 0xffff
push 0
push 0
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x58]
shl ecx, 3
mov dword [esp + 0x18], ecx
lea ecx, [edx + eax + 0x18]
push ecx
push esi
call ebp
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x10]
push 0
push edx
push eax
push edi
push esi
call ebx
test eax, eax
jne 0x42afe3
push edi
call fcn.0043fa08
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x13c
ret 8
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0xa4]
mov eax, dword [esp + 0x88]
push ecx
push edx
lea ecx, [esp + 0x62]
push eax
push ecx
push edi
push esi
xor ebx, ebx
call fcn.00415700
cmp eax, dword [esp + 0x7c]
je 0x42b047
mov ecx, dword [esp + 0x154]
mov ebx, 1
test ecx, ecx
je 0x42b047
mov edx, dword [esp + 0x50]
push 0
push 0
push edx
push esi
mov dword [esp + 0x8c], eax
call ebp
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x5c]
push 0xf8
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call fcn.0043fa08
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x13c
ret 8