joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4068e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4720b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.004652b4
mov dword [esp + 0x1c], 0
mov dword [esi], method.CWnd.virtual_0
lea edi, [esi + 0x68]
call fcn.004684ee
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x1c], 1
lea ebp, [esi + 0x6c]
call fcn.004684ee
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp], eax
mov dword [esi + 0xb4], 0
mov dword [esi + 0xb0], vtable.CFont.0
mov dword [esi + 0xbc], 0
mov dword [esi + 0xb8], 0x474b64
lea ecx, [esi + 0xc8]
mov byte [esp + 0x1c], 4
call fcn.004633d5
mov byte [esp + 0x1c], 5
call fcn.004684ee
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x15c], eax
mov ecx, esi
mov byte [esp + 0x1c], 6
call fcn.00403c80
mov eax, dword [esp + 0x2c]
mov dword [esi + 0xc0], eax
mov dword [esi + 0xc4], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x134], eax
mov eax, dword [esp + 0x34]
test eax, eax
mov edx, eax
jne 0x4069c9
mov edx, 0x474f1a
test edx, edx
jne 0x4069d1
xor eax, eax
jmp 0x4069eb
mov eax, edx
lea ecx, [eax + 1]
mov dword [esp + 0xc], ecx
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4069e0
sub eax, dword [esp + 0xc]
push eax
push edx
mov ecx, edi
call fcn.00404b50
mov edx, dword [esp + 0x38]
test edx, edx
jne 0x406a09
mov edx, 0x474f1a
test edx, edx
jne 0x406a09
xor eax, eax
jmp 0x406a19
mov eax, edx
lea edi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406a10
sub eax, edi
push eax
push edx
mov ecx, ebp
call fcn.00404b50
mov edx, dword [esp + 0x3c]
test edx, edx
jne 0x406a37
mov edx, 0x474f1a
test edx, edx
jne 0x406a37
xor eax, eax
jmp 0x406a49
mov eax, edx
lea ebp, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406a40
sub eax, ebp
push eax
push edx
lea ecx, [esi + 0x15c]
call fcn.00404b50
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push eax
push ecx
mov ecx, esi
call fcn.00406480
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret 0x1c
Function at 0x407c20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4723b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.00407b90
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00404210
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x407cb2
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4085c0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x47249b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
mov eax, dword [0x493ea0]
mov ecx, dword [ecx + 0x1c]
push 1
mov dword [esp + 0x10c], eax
push 5
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.shell32.dll_SHGetSpecialFolderPathA]
push str.My_Converted_Files
lea edx, [esp + 8]
push edx
call dword [sym.imp.kernel32.dll_lstrcat]
call fcn.0046eb29
mov eax, dword [eax + 4]
lea ecx, [esp + 4]
push ecx
push str.OutputDir
push 0x474f1a
lea edx, [esp + 0xc]
push edx
mov ecx, eax
call fcn.0046ef3c
push eax
mov ecx, 0x4a14c8
mov dword [esp + 0x118], 0
call fcn.00404e20
mov eax, dword [esp]
add eax, 0xfffffff0
mov dword [esp + 0x114], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40866b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [0x4a14c8]
push eax
call dword [sym.imp.shlwapi.dll_PathFileExistsA]
test eax, eax
jne 0x408689
mov ecx, dword [0x4a14c8]
push eax
push ecx
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
call fcn.0046eb29
mov eax, dword [eax + 4]
push 0
push str.SplitPPT
push 0x474f1a
mov ecx, eax
call fcn.0046eed3
mov dword [0x4a14b4], eax
call fcn.0046eb29
mov eax, dword [eax + 4]
push 1
push str.GenHTML
push 0x474f1a
mov ecx, eax
call fcn.0046eed3
mov dword [0x4a14b8], eax
call fcn.0046eb29
mov eax, dword [eax + 4]
push 0
push str.NoBrand
push 0x474f1a
mov ecx, eax
call fcn.0046eed3
mov dword [0x4a14bc], eax
call fcn.0046eb29
mov eax, dword [eax + 4]
push 0
push str.NoPrint
push 0x474f1a
mov ecx, eax
call fcn.0046eed3
mov dword [0x4a14c0], eax
call fcn.0046eb29
mov eax, dword [eax + 4]
push 1
push str.OpenDest
push 0x474f1a
mov ecx, eax
call fcn.0046eed3
mov dword [0x4a14c4], eax
call fcn.0046eb29
mov eax, dword [eax + 4]
push 1
push str.ControlType
push 0x474f1a
mov ecx, eax
call fcn.0046eed3
mov dword [0x4a14cc], eax
call fcn.0046eb29
mov eax, dword [eax + 4]
push 0
push str.AutoplayMode
push 0x474f1a
mov ecx, eax
call fcn.0046eed3
mov dword [0x4a14d0], eax
call fcn.0046eb29
mov eax, dword [eax + 4]
push 0
push str.BlankEnd
push 0x474f1a
mov ecx, eax
call fcn.0046eed3
mov dword [0x4a14d4], eax
call fcn.0046eb29
mov eax, dword [eax + 4]
push 0x280
push str.Width
push 0x474f1a
mov ecx, eax
call fcn.0046eed3
mov dword [0x4a14d8], eax
call fcn.0046eb29
mov eax, dword [eax + 4]
push 0x1e0
push str.Height
push 0x474f1a
mov ecx, eax
call fcn.0046eed3
mov dword [0x4a14dc], eax
call fcn.0046eb29
mov eax, dword [eax + 4]
push 0x4b
push str.JpgQlt
push 0x474f1a
mov ecx, eax
call fcn.0046eed3
mov dword [0x4a14e0], eax
call fcn.0046eb29
mov eax, dword [eax + 4]
push 0
push str.BgColor
push 0x474f1a
mov ecx, eax
call fcn.0046eed3
mov ecx, dword [esp + 0x10c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x108]
mov dword [0x4a14e4], eax
call fcn.00410507
add esp, 0x118
ret
Function at 0x40a2d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x493ea0]
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x114]
push esi
mov dword [esp + 0x110], eax
lea eax, [esp + 4]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40a344
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.advapi32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x120]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.kernel32.dll_lstrcpy]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
mov eax, esi
pop esi
call fcn.00410507
add esp, 0x110
ret 0xc

Function at 0x40aeb0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x472838
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x80]
test eax, eax
jne 0x40afd5
push ebx
mov ebx, dword [sym.imp.user32.dll_LoadCursorA]
push 0x7f89
push 0
call ebx
test eax, eax
mov dword [ebp + 0x80], eax
jne 0x40afd4
push esi
call fcn.004684ee
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
mov eax, dword [esi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, 0x104
or eax, ecx
mov dword [esp + 0x18], 0
jge 0x40af39
push 0x104
lea ecx, [esp + 0x10]
call fcn.00402aa0
mov esi, dword [esp + 0xc]
push 0x104
push esi
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
test esi, esi
jne 0x40af4d
xor eax, eax
jmp 0x40af61
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40af52
sub eax, edx
js 0x40afe5
cmp eax, dword [esi - 8]
jg 0x40afe5
push edi
push 0xd
mov dword [esi - 0xc], eax
push str.winhlp32.exe
lea ecx, [esp + 0x18]
mov byte [eax + esi], 0
call fcn.00404d90
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40afa9
push 0x6a
push esi
call ebx
test eax, eax
je 0x40afa9
push eax
call dword [sym.imp.user32.dll_CopyIcon]
mov dword [ebp + 0x80], eax
push esi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
jg 0x40afd3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop esi
pop ebx
mov ecx, dword [esp + 8]
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret
push 0x80070057
call fcn.00401410
int3
Function at 0x40b430
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
push edi
mov edi, dword [esp + 0x24]
push 0x1c
lea eax, [esp + 8]
push eax
push edi
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
jne 0x40b44f
pop edi
add esp, 0x1c
ret
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push esi
mov esi, dword [esp + 0xc]
push ecx
push edx
push esi
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40b46f
pop esi
pop edi
add esp, 0x1c
ret
mov eax, dword [esi + 0x3c]
movzx ecx, word [eax + esi + 0x14]
add eax, esi
push ebx
push ebp
movzx ebp, word [eax + 6]
sub edi, esi
xor ebx, ebx
test ebp, ebp
lea ecx, [ecx + eax + 0x18]
jbe 0x40b4b0
lea eax, [ecx + 0x10]
mov edi, edi
mov ecx, dword [eax]
mov edx, dword [eax - 8]
cmp ecx, edx
mov esi, dword [eax - 4]
ja 0x40b49e
mov ecx, edx
cmp edi, esi
jb 0x40b4a8
add ecx, esi
cmp edi, ecx
jbe 0x40b4ba
inc ebx
add eax, 0x28
cmp ebx, ebp
jb 0x40b490
pop ebp
pop ebx
pop esi
xor eax, eax
pop edi
add esp, 0x1c
ret
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
inc ebx
pop ebp
mov dword [edx], ebx
sub edi, esi
pop ebx
mov dword [eax], edi
pop esi
mov eax, 1
pop edi
add esp, 0x1c
ret

Function at 0x40b4e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x408
mov eax, dword [0x493ea0]
mov ecx, dword [esp + 0x40c]
mov dword [esp + 0x404], eax
push esi
lea eax, [esp + 0x414]
push eax
push ecx
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.user32.dll_wvsprintfA]
mov edx, dword [0x4a1170]
push 0
mov esi, eax
lea eax, [esp + 8]
push eax
push esi
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.kernel32.dll_WriteFile]
mov ecx, dword [esp + 0x408]
mov eax, esi
pop esi
call fcn.00410507
add esp, 0x408
ret
Function at 0x41189b
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004111d0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x411936
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4a3624]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x411936
cmp eax, 1
je 0x411957
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x411936
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x411903
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x411932
xor eax, eax
inc eax
jmp 0x411976
cmp edi, eax
jae 0x41193a
xor eax, eax
jmp 0x411976
cmp eax, esi
jae 0x411941
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov eax, dword [0x4a3624]
jmp 0x41195a
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411ad2
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x47aa18
call fcn.004128a4
mov edi, 0x94
mov eax, edi
call fcn.004111d0
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 [0x4a3624], ecx
mov eax, dword [esi + 4]
mov dword [0x4a3630], eax
mov edx, dword [esi + 8]
mov dword [0x4a3634], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4a3628], esi
cmp ecx, 2
je 0x411b32
or esi, 0x8000
mov dword [0x4a3628], esi
shl eax, 8
add eax, edx
mov dword [0x4a362c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.kernel32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x411b6d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x411b6d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x411b85
cmp eax, 0x20b
je 0x411b72
mov dword [ebp - 0x1c], esi
jmp 0x411b99
cmp dword [ecx + 0x84], 0xe
jbe 0x411b6d
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x411b93
cmp dword [ecx + 0x74], 0xe
jbe 0x411b6d
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00415447
pop ecx
test eax, eax
jne 0x411bad
push 0x1c
call fcn.00411aae
pop ecx
call fcn.00413952
test eax, eax
jne 0x411bbe
push 0x10
call fcn.00411aae
pop ecx
call fcn.00417420
mov dword [ebp - 4], esi
call fcn.00417222
test eax, eax
jge 0x411bd7
push 0x1b
call fcn.00411a89
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x4a6870], eax
call fcn.00417100
mov dword [0x4a3610], eax
call fcn.0041705e
test eax, eax
jge 0x411bfd
push 8
call fcn.00411a89
pop ecx
call fcn.00416e2b
test eax, eax
jge 0x411c0e
push 9
call fcn.00411a89
pop ecx
push 1
call fcn.00412616
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x411c24
push eax
call fcn.00411a89
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
call fcn.00416dce
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x411c45
movzx eax, word [ebp - 0x40]
jmp 0x411c48
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0045b8f8
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x411c66
push edi
call fcn.00412743
call fcn.00412765
jmp 0x411c98
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004128df
ret
Function at 0x412680
Capabilities:
Terminate process

Disassembly:
push 8
push 0x47aa88
call fcn.004128a4
push 8
call fcn.004155eb
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4a3664], esi
jne 0x4126b4
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov dword [0x4a3660], esi
mov al, byte [ebp + 0x10]
mov byte [0x4a365c], al
cmp dword [ebp + 0xc], edi
jne 0x4126fe
cmp dword [0x4a6868], edi
je 0x4126ee
mov eax, dword [0x4a6864]
sub eax, 4
mov dword [0x4a6864], eax
cmp eax, dword [0x4a6868]
jb 0x4126ee
mov eax, dword [eax]
cmp eax, edi
je 0x4126cf
call eax
jmp 0x4126cf
push 0x48e0d4
mov eax, 0x48e0cc
call fcn.004125fe
pop ecx
push 0x48e0e0
mov eax, 0x48e0d8
call fcn.004125fe
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x41272f
cmp dword [ebp + 0x10], edi
jne 0x41273d
mov dword [0x4a3664], esi
push dword [ebp + 8]
call fcn.004125bc
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x41273c
push 8
call fcn.00415536
pop ecx
ret
call fcn.004128df
ret
Function at 0x416891
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 0x4168bf
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 0x4168c6
cmp ebx, dword [eax + 4]
jae 0x4168c6
xor eax, eax
jmp 0x416ab6
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4168d7
xor eax, eax
inc eax
jmp 0x416ab5
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4168ed
cmp ecx, edx
jae 0x416a32
cmp dword [eax + 4], 0
je 0x4168f6
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4168de
cmp dword [ebp + 8], 0
je 0x416918
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x416a32
cmp eax, esi
jae 0x416a32
mov eax, dword [0x4a37e8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x41693d
cmp dword [esi*4 + 0x4a37f0], edi
je 0x416a36
inc esi
cmp esi, eax
jl 0x41692b
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x416ab2
cmp dword [ebp - 8], 0x1000000
jne 0x416ab2
test byte [ebp - 0xc], 0xcc
je 0x4169bb
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x416ab2
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x416ab2
cmp word [eax + 0x18], 0x10b
jne 0x416ab2
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x416ab2
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4169bb
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4169bb
test byte [ecx + 0x27], 0x80
jne 0x416a32
push 1
push 0x4a3830
call dword [sym.imp.kernel32.dll_InterlockedExchange]
test eax, eax
jne 0x4168cf
mov ecx, dword [0x4a37e8]
test ecx, ecx
mov edx, ecx
jle 0x4169ef
lea eax, [ecx*4 + 0x4a37ec]
cmp dword [eax], edi
je 0x4169ef
dec edx
sub eax, 4
test edx, edx
jg 0x4169e3
test edx, edx
jne 0x416a20
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4169fc
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x416a14
lea eax, [edx*4 + 0x4a37f0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x416a02
cmp ecx, 0x10
jge 0x416a20
inc ecx
mov dword [0x4a37e8], ecx
push 0
push 0x4a3830
call dword [sym.imp.kernel32.dll_InterlockedExchange]
jmp 0x4168cf
xor eax, eax
jmp 0x416ab5
test esi, esi
jle 0x4168cf
mov ebx, dword [sym.imp.kernel32.dll_InterlockedExchange]
push 1
push 0x4a3830
call ebx
test eax, eax
jne 0x4168cf
cmp dword [esi*4 + 0x4a37f0], edi
je 0x416a8c
mov eax, dword [0x4a37e8]
lea esi, [eax - 1]
test esi, esi
jl 0x416a7a
cmp dword [esi*4 + 0x4a37f0], edi
je 0x416a76
dec esi
jns 0x416a6a
test esi, esi
jge 0x416a8a
cmp eax, 0x10
jge 0x416a85
inc eax
mov dword [0x4a37e8], eax
lea esi, [eax - 1]
jmp 0x416a8c
je 0x416aa4
xor ecx, ecx
test esi, esi
jl 0x416aa4
lea eax, [ecx*4 + 0x4a37f0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x416a92
push 0
push 0x4a3830
call ebx
jmp 0x4168cf
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x416aba
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x493ea0]
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 + 0x494468]
je 0x416aef
inc eax
cmp eax, 0x13
jb 0x416ae0
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x494468]
jne 0x416c15
mov eax, dword [0x4a3618]
cmp eax, 1
je 0x416bed
cmp eax, edx
jne 0x416b1f
cmp dword [0x493ed4], 1
je 0x416bed
cmp ecx, 0xfc
je 0x416c15
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 0x416b55
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00418380
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00412110
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x416b89
mov eax, edi
push eax
call fcn.00412110
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x47ab64
push edi
call fcn.00413650
add esp, 0x10
push edi
call fcn.00412110
push dword [esi + 0x49446c]
mov ebx, eax
call fcn.00412110
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004111d0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00418380
push edi
push ebx
call fcn.00418390
push 0x47ab60
push ebx
call fcn.00418390
push dword [esi + 0x49446c]
push ebx
call fcn.00418390
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00419550
add esp, 0x2c
jmp 0x416c15
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x49446c]
push dword [esi]
call fcn.00412110
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.00410507
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x417222
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x48
push ebx
mov ebx, 0x480
push ebx
call fcn.00411889
test eax, eax
pop ecx
jne 0x41723e
or eax, 0xffffffff
jmp 0x41741b
mov dword [0x4a6500], eax
mov dword [0x4a64e4], 0x20
lea ecx, [eax + 0x480]
jmp 0x417273
or dword [eax], 0xffffffff
and dword [eax + 8], 0
mov byte [eax + 4], 0
mov byte [eax + 5], 0xa
mov ecx, dword [0x4a6500]
add eax, 0x24
add ecx, 0x480
cmp eax, ecx
jb 0x417255
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
cmp word [esp + 0x46], 0
je 0x41737a
mov eax, dword [esp + 0x48]
test eax, eax
je 0x41737a
mov edi, dword [eax]
lea ebp, [eax + 4]
lea eax, [edi + ebp]
mov dword [esp + 0x10], eax
mov eax, 0x800
cmp edi, eax
jl 0x4172b4
mov edi, eax
cmp dword [0x4a64e4], edi
jge 0x41730a
mov esi, 0x4a6504
push ebx
call fcn.00411889
test eax, eax
pop ecx
je 0x417304
add dword [0x4a64e4], 0x20
mov dword [esi], eax
lea ecx, [eax + 0x480]
jmp 0x4172f3
or dword [eax], 0xffffffff
and dword [eax + 8], 0
mov byte [eax + 4], 0
mov byte [eax + 5], 0xa
mov ecx, dword [esi]
add eax, 0x24
add ecx, ebx
cmp eax, ecx
jb 0x4172dd
add esi, 4
cmp dword [0x4a64e4], edi
jl 0x4172c1
jmp 0x41730a
mov edi, dword [0x4a64e4]
xor ebx, ebx
test edi, edi
jle 0x41737a
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x41736f
mov cl, byte [ebp]
test cl, 1
je 0x41736f
test cl, 8
jne 0x417333
push eax
call dword [sym.imp.kernel32.dll_GetFileType]
test eax, eax
je 0x41736f
mov ecx, ebx
mov eax, ebx
and eax, 0x1f
lea eax, [eax + eax*8]
sar ecx, 5
mov ecx, dword [ecx*4 + 0x4a6500]
lea esi, [ecx + eax*4]
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [esi], eax
mov al, byte [ebp]
mov byte [esi + 4], al
lea eax, [esi + 0xc]
push 0xfa0
push eax
call fcn.0041a4e5
test eax, eax
pop ecx
pop ecx
je 0x41739a
inc dword [esi + 8]
add dword [esp + 0x10], 4
inc ebx
inc ebp
cmp ebx, edi
jl 0x417310
xor ebx, ebx
mov ecx, dword [0x4a6500]
lea eax, [ebx + ebx*8]
lea esi, [ecx + eax*4]
cmp dword [esi], 0xffffffff
jne 0x4173fc
test ebx, ebx
mov byte [esi + 4], 0x81
jne 0x41739f
push 0xfffffffffffffff6
pop eax
jmp 0x4173a9
or eax, 0xffffffff
jmp 0x417418
mov eax, ebx
dec eax
neg eax
sbb eax, eax
add eax, 0xfffffff5
push eax
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov edi, eax
cmp edi, 0xffffffff
je 0x4173f6
push edi
call dword [sym.imp.kernel32.dll_GetFileType]
test eax, eax
je 0x4173f6
and eax, 0xff
cmp eax, 2
mov dword [esi], edi
jne 0x4173d4
or byte [esi + 4], 0x40
jmp 0x4173dd
cmp eax, 3
jne 0x4173dd
or byte [esi + 4], 8
lea eax, [esi + 0xc]
push 0xfa0
push eax
call fcn.0041a4e5
test eax, eax
pop ecx
pop ecx
je 0x41739a
inc dword [esi + 8]
jmp 0x417400
or byte [esi + 4], 0x40
jmp 0x417400
or byte [esi + 4], 0x80
inc ebx
cmp ebx, 3
jl 0x41737c
push dword [0x4a64e4]
call dword [sym.imp.kernel32.dll_LockResource]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret