joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5adf28
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov esi, ecx
mov edi, edx
mov ebx, eax
mov eax, esi
call fcn.00404cd4
cmp ebx, 0xffffffff
je 0x5adf8f
push esp
push edi
push ebx
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.0041ad4c
test al, al
je 0x5adf8f
mov eax, 0x104
call fcn.0040d104
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x5adf7d
mov edx, esi
mov eax, dword [esp + 4]
call fcn.0040d0f0
mov eax, dword [esp]
push eax
call sub.ole32.dll_CoTaskMemFree_2
mov eax, dword [esp + 4]
call fcn.0040d160
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x5ae47c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405184
xor eax, eax
push ebp
push 0x5ae5ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404cd4
cmp dword [ebp - 4], 0
je 0x5ae597
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
call fcn.00405194
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5ae597
mov eax, dword [ebp - 8]
call fcn.00402e64
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x5ae590
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push esi
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x5ae5bc
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
mov eax, dword [ebp - 0x14]
mov esi, dword [eax + 8]
shr esi, 0x10
mov dx, word [eax + 8]
and dx, 0xffff
mov word [ebp - 0x1a], dx
mov edx, dword [eax + 0xc]
shr edx, 0x10
mov word [ebp - 0x1c], dx
mov di, word [eax + 0xc]
and di, 0xffff
push ebx
movzx eax, si
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0
movzx eax, word [ebp - 0x1a]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0
movzx eax, word [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0
movzx eax, di
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x3c]
mov ecx, 3
mov eax, 0x5ae5c8
call fcn.0040d608
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ae597
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.00402e94
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ae5b4
lea eax, [ebp - 4]
call fcn.00404cd4
ret
Function at 0x5ae86c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5ae9e3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00404cd4
lea eax, [ebp - 0x24]
mov edx, ebx
call fcn.00404d6c
mov dword [ebp - 0x20], 0xff
mov eax, dword [ebp - 4]
call fcn.00404f94
test eax, eax
jle 0x5ae9c8
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
call fcn.00405194
mov ebx, eax
push ebx
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jbe 0x5ae9bd
mov eax, dword [ebp - 0x18]
call fcn.00402e64
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5ae9b6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push ebx
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x5ae99d
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x5ae9f0
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x5ae974
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004083f8
movzx eax, ax
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0xb
lea edx, [ebp - 0x40]
mov ecx, 2
mov eax, 0x5aea14
call fcn.0040d608
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
call fcn.00404d6c
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x24]
call fcn.00405194
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x5ae99d
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.0040d0f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ae9bd
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.00402e94
ret
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.005ae47c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ae9ea
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00404cf8
ret

Function at 0x5aea90
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5aeb06
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x5d5500], 0
je 0x5aeaeb
lea eax, [ebp - 4]
push eax
mov edx, esi
mov ecx, edi
mov eax, ebx
call fcn.0040d608
mov eax, dword [ebp - 4]
call fcn.00405194
push eax
call sub.kernel32.dll_OutputDebugStringA
lea eax, [ebp - 8]
push eax
mov edx, esi
mov ecx, edi
mov eax, ebx
call fcn.0040d608
mov eax, dword [ebp - 8]
call fcn.005aeb90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5aeb0d
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404cf8
ret
Function at 0x5aed10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5aedb2
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x5aed65
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, 0x105
call fcn.00405320
push 0x105
mov eax, dword [ebp - 8]
call fcn.00405194
push eax
call sub.kernel32.dll_GetSystemDirectoryA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5aed6f
mov eax, dword [ebp - 8]
call fcn.00405194
mov edx, dword [ebp - 4]
call fcn.0040d0f0
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00410f5c
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00404d28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5aedb9
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404cf8
ret

Function at 0x5aedc0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5aee2c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x3c]
mov edx, 0x3c
call fcn.0040840c
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
mov eax, 0x5aee40
mov dword [ebp - 0x30], eax
mov eax, ebx
call fcn.00405194
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], 1
mov eax, esi
call fcn.00405194
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
call sub.shell32.dll_ShellExecuteExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5aee36
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5af8bc
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, eax
mov byte [ebp - 1], 0
mov eax, 0x5af950
call fcn.005af810
mov eax, dword [ebx]
push eax
push 0xffffffffffffffff
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x5af940
xor eax, eax
push ebp
push 0x5af939
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetExitCodeProcess
cmp dword [ebp - 0xc], 0x103
jne 0x5af922
push 1
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_TerminateProcess
test eax, eax
je 0x5af922
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5af940
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
ret
mov al, byte [ebp - 1]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5b0690
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov byte [ebp - 1], cl
mov ebx, edx
mov esi, eax
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.0040362c
mov dword [ebp - 0x4c], 0x44
mov dword [ebp - 0x20], 1
cmp byte [ebp - 1], 0
je 0x5b06cb
mov word [ebp - 0x1c], 1
jmp 0x5b06d1
mov word [ebp - 0x1c], 0
xor eax, eax
push ebp
push 0x5b078c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0x30
push 0
push 0
push 0
mov eax, esi
call fcn.00405194
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x5b072b
mov dword [ebp - 0x6c], esi
mov byte [ebp - 0x68], 0xb
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0
lea edx, [ebp - 0x6c]
mov ecx, 1
mov eax, 0x5b07b0
call fcn.005aea90
test bl, bl
jne 0x5b0733
mov bl, 1
jmp 0x5b0770
push 0xffffffffffffffff
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov dword [ebp - 0x6c], esi
mov byte [ebp - 0x68], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0
lea edx, [ebp - 0x6c]
mov ecx, 1
mov eax, 0x5b07d4
call fcn.005aea90
mov bl, 1
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5b079f
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5b1b20
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7e8
push ebx
push esi
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5b1c0e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x5b1c1c
call sub.user32.dll_FindWindowA
mov esi, eax
test esi, esi
je 0x5b1bf8
push esi
call sub.user32.dll_IsWindow
test eax, eax
je 0x5b1bf8
test bl, bl
je 0x5b1b85
push 1
push esi
call sub.user32.dll_ShowWindow
push esi
call sub.user32.dll_SetForegroundWindow
push 0
push 0
push 0x495
push esi
call sub.user32.dll_PostMessageA
lea eax, [ebp - 0x818]
mov edx, 0x804
call fcn.0040840c
call sub.kernel32.dll_GetCommandLineA_1
mov edx, eax
lea eax, [ebp - 4]
call fcn.00404ecc
mov eax, dword [ebp - 4]
call fcn.00404f94
push eax
mov eax, dword [ebp - 4]
call fcn.00405194
mov edx, eax
lea eax, [ebp - 0x818]
pop ecx
call fcn.00408404
mov dword [ebp - 0x14], 0xbb9
mov dword [ebp - 0x10], 0x804
lea eax, [ebp - 0x818]
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x7d0
push 2
lea eax, [ebp - 0x14]
push eax
push 0
push 0x4a
push esi
call sub.user32.dll_SendMessageTimeoutA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b1c15
lea eax, [ebp - 4]
call fcn.00404cd4
ret
Function at 0x4012e0
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8abc
call fcn.004017b0
push edi
mov eax, dword [0x42a060]
mov dword [ebp - 0x28], eax
mov ecx, dword [0x42a064]
mov dword [ebp - 0x24], ecx
mov edx, dword [0x42a068]
mov dword [ebp - 0x20], edx
mov eax, dword [0x42a06c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x8abc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x8aa4], 0
mov dword [ebp - 0x8ab8], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x8aac], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x8ab4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x8ab0], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x8aa8], 0
mov dword [ebp - 0x18], 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0x8aa0], 0
mov ecx, 0x2298
xor eax, eax
lea edi, [ebp - 0x8a9c]
rep stosd dword es:[edi], eax
push 2
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [ebp - 0x8aa4], 0
push 0
push 0
call dword [sym.imp.WINMM.dll_auxSetVolume]
mov dword [ebp - 8], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
cmp dword [ebp - 8], 0
jb 0x401430
push 0
call sub.WinSCard.dll_SCardReleaseContext
push 0x8a64
lea ecx, [ebp - 0x8aa0]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0
call fcn.00401440
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401957
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x42a078
call fcn.004035b0
mov edi, 0x94
mov eax, edi
call fcn.004017b0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x491cc4], ecx
mov eax, dword [esi + 4]
mov dword [0x491cd0], eax
mov edx, dword [esi + 8]
mov dword [0x491cd4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x491cc8], esi
cmp ecx, 2
je 0x4019b7
or esi, 0x8000
mov dword [0x491cc8], esi
shl eax, 8
add eax, edx
mov dword [0x491ccc], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4019f2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4019f2
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x401a0a
cmp eax, 0x20b
je 0x4019f7
mov dword [ebp - 0x1c], esi
jmp 0x401a1e
cmp dword [ecx + 0x84], 0xe
jbe 0x4019f2
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x401a18
cmp dword [ecx + 0x74], 0xe
jbe 0x4019f2
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0040355e
pop ecx
test eax, eax
jne 0x401a4a
cmp dword [0x491cb4], 1
jne 0x401a37
call fcn.00402d13
push 0x1c
call fcn.00402b9c
push 0xff
call fcn.00401c9b
pop ecx
pop ecx
call fcn.004034bc
mov dword [ebp - 4], esi
call fcn.00403311
test eax, eax
jge 0x401a63
push 0x1b
call fcn.00401932
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x493290], eax
call fcn.004031ef
mov dword [0x491cac], eax
call fcn.0040314d
test eax, eax
jge 0x401a89
push 8
call fcn.00401932
pop ecx
call fcn.00402f1a
test eax, eax
jge 0x401a9a
push 9
call fcn.00401932
pop ecx
push 1
call fcn.00401ccb
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x401ab0
push eax
call fcn.00401932
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00402ebd
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x401ad1
movzx eax, word [ebp - 0x40]
jmp 0x401ad4
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004012e0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x401af2
push edi
call fcn.00401df6
call fcn.00401e18
jmp 0x401b24
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004035eb
ret
Function at 0x401d35
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x491d04], esi
push edi
jne 0x401d55
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x491d00], esi
mov byte [0x491cfc], al
jne 0x401dbb
mov ecx, dword [0x493288]
test ecx, ecx
je 0x401d9c
mov eax, dword [0x493284]
sub eax, 4
cmp eax, ecx
jmp 0x401d95
mov eax, dword [eax]
test eax, eax
je 0x401d87
call eax
mov eax, dword [0x493284]
sub eax, 4
cmp eax, dword [0x493288]
mov dword [0x493284], eax
jae 0x401d7f
mov eax, 0x42c020
mov esi, 0x42c028
cmp eax, esi
mov edi, eax
jae 0x401dbb
mov eax, dword [edi]
test eax, eax
je 0x401db4
call eax
add edi, 4
cmp edi, esi
jb 0x401dac
mov eax, 0x42c02c
mov esi, 0x42c030
cmp eax, esi
mov edi, eax
jae 0x401dda
mov eax, dword [edi]
test eax, eax
je 0x401dd3
call eax
add edi, 4
cmp edi, esi
jb 0x401dcb
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x401df4
push dword [ebp + 8]
mov dword [0x491d04], 1
call fcn.00401c9b
pop ebp
ret

Function at 0x402b9c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x48f994]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x48f590]
je 0x402bd1
inc eax
cmp eax, 0x13
jb 0x402bc2
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x48f590]
jne 0x402cf7
mov eax, dword [0x491cb4]
cmp eax, 1
je 0x402ccf
cmp eax, edx
jne 0x402c01
cmp dword [0x48f448], 1
je 0x402ccf
cmp ecx, 0xfc
je 0x402cf7
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402c37
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00404490
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00404400
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x402c6b
mov eax, edi
push eax
call fcn.00404400
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x42a598
push edi
call fcn.00404a40
add esp, 0x10
push edi
call fcn.00404400
push dword [esi + 0x48f594]
mov ebx, eax
call fcn.00404400
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004017b0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00404490
push edi
push ebx
call fcn.004044a0
push 0x42a578
push ebx
call fcn.004044a0
push dword [esi + 0x48f594]
push ebx
call fcn.004044a0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00404943
add esp, 0x2c
jmp 0x402cf7
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x48f594]
push dword [esi]
call fcn.00404400
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00404935
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x404943
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x491e60], ebx
push esi
push edi
jne 0x4049c3
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4049fe
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x491e60], eax
je 0x4049fe
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x491e64], eax
call esi
cmp dword [0x491cc4], 2
mov dword [0x491e68], eax
jne 0x4049c3
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x491e70], eax
je 0x4049c3
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x491e6c], eax
mov eax, dword [0x491e6c]
test eax, eax
je 0x404a08
call eax
test eax, eax
je 0x4049ef
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x491e70]
test eax, eax
je 0x4049ef
test byte [ebp - 8], 1
jne 0x404a08
cmp dword [0x491cd0], 4
jb 0x404a02
or byte [ebp + 0x12], 0x20
jmp 0x404a27
xor eax, eax
jmp 0x404a37
or byte [ebp + 0x12], 4
jmp 0x404a27
mov eax, dword [0x491e64]
test eax, eax
je 0x404a27
call eax
mov ebx, eax
test ebx, ebx
je 0x404a27
mov eax, dword [0x491e68]
test eax, eax
je 0x404a27
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x491e60]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405f1e
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 0x405f4c
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 0x405f53
cmp ebx, dword [eax + 4]
jae 0x405f53
xor eax, eax
jmp 0x406143
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x405f64
xor eax, eax
inc eax
jmp 0x406142
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x405f7a
cmp ecx, edx
jae 0x4060bf
cmp dword [eax + 4], 0
je 0x405f83
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x405f6b
cmp dword [ebp + 8], 0
je 0x405fa5
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4060bf
cmp eax, esi
jae 0x4060bf
mov eax, dword [0x491e78]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x405fca
cmp dword [esi*4 + 0x491e80], edi
je 0x4060c3
inc esi
cmp esi, eax
jl 0x405fb8
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40613f
cmp dword [ebp - 8], 0x1000000
jne 0x40613f
test byte [ebp - 0xc], 0xcc
je 0x406048
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40613f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40613f
cmp word [eax + 0x18], 0x10b
jne 0x40613f
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40613f
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x406048
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x406048
test byte [ecx + 0x27], 0x80
jne 0x4060bf
push 1
push 0x491ec0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x405f5c
mov ecx, dword [0x491e78]
test ecx, ecx
mov edx, ecx
jle 0x40607c
lea eax, [ecx*4 + 0x491e7c]
cmp dword [eax], edi
je 0x40607c
dec edx
sub eax, 4
test edx, edx
jg 0x406070
test edx, edx
jne 0x4060ad
push 0xf
pop ebx
cmp ecx, ebx
jg 0x406089
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4060a1
lea eax, [edx*4 + 0x491e80]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40608f
cmp ecx, 0x10
jge 0x4060ad
inc ecx
mov dword [0x491e78], ecx
push 0
push 0x491ec0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x405f5c
xor eax, eax
jmp 0x406142
test esi, esi
jle 0x405f5c
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x491ec0
call ebx
test eax, eax
jne 0x405f5c
cmp dword [esi*4 + 0x491e80], edi
je 0x406119
mov eax, dword [0x491e78]
lea esi, [eax - 1]
test esi, esi
jl 0x406107
cmp dword [esi*4 + 0x491e80], edi
je 0x406103
dec esi
jns 0x4060f7
test esi, esi
jge 0x406117
cmp eax, 0x10
jge 0x406112
inc eax
mov dword [0x491e78], eax
lea esi, [eax - 1]
jmp 0x406119
je 0x406131
xor ecx, ecx
test esi, esi
jl 0x406131
lea eax, [ecx*4 + 0x491e80]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40611f
push 0
push 0x491ec0
call ebx
jmp 0x405f5c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret