joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4020c0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x41d548]
xor eax, esp
mov dword [esp + 0x118], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x12c]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 0xc]
mov esi, eax
test esi, esi
jne 0x40212e
test ecx, ecx
je 0x402120
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0xc], ecx
je 0x40213c
test ecx, ecx
je 0x4021e1
push ecx
jmp 0x4021db
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x38]
push edx
push 0
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x4021ae
jmp 0x402170
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.004020c0
mov edi, eax
test edi, edi
jne 0x4021fd
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x402170
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4021c5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4021e1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00408590
add esp, 0x11c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40220c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x4021e3

Function at 0x402900
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [esi + 0x30], eax
jne 0x40291c
pop esi
pop ecx
ret
push edi
lea eax, [esp + 8]
push eax
push 0
push esi
push 0x402350
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x402944
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x404fd0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 8
push esi
push edi
push eax
lea ecx, [esp + 0x20]
call fcn.00404f20
mov ecx, dword [esp + 0x1c]
push str._REGSERVER
push ecx
call fcn.00408522
add esp, 8
test eax, eax
je 0x4050a9
mov edx, dword [esp + 0x1c]
push str._UNREGSERVER
push edx
call fcn.00408522
add esp, 8
test eax, eax
je 0x4050a9
push 0
mov edi, 1
call fcn.004069a0
add esp, 4
call fcn.00406bd0
mov eax, str.AAC_Encode_License_Verification
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x405043
lea ecx, [esp + 8]
push ecx
sub eax, edx
push eax
push str.AAC_Encode_License_Verification
push str.com.apple.aacencoder
push str.com.apple.quicktimeplayer
call fcn.00406c10
mov eax, str.AMR_Encode_License_Verification
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x405073
sub eax, edx
lea edx, [esp + 0xc]
push edx
push eax
push str.AMR_Encode_License_Verification
push str.1D07EB75_3D5E_4DA6_B749_D497C92B06D8
push str.com.apple.quicktimeplayer
call fcn.00406c10
add esp, 0x14
cmp byte [0x41e840], 0
je 0x4050ad
or esi, 0xffffffff
jmp 0x4050e6
xor edi, edi
jmp 0x40509b
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea ecx, [esp + 8]
push ecx
push eax
mov ecx, 0x41e888
call fcn.00404df0
cmp al, 1
jne 0x4050e0
mov edx, dword [esp + 0x20]
push edx
mov ecx, 0x41e888
call fcn.00404360
jmp 0x4050e4
mov eax, dword [esp + 8]
mov esi, eax
test edi, edi
je 0x4050f4
call fcn.00406bf0
call fcn.00406aa0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405114
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov eax, esi
pop esi
add esp, 8
ret 0x10

Function at 0x406780
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
test ebx, ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
je 0x406793
mov dword [ebx], 0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4067a1
mov dword [eax], 0
lea eax, [esp + 0xc]
push eax
push ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x406807
push edi
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
push esi
push 0
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4067ff
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push edx
push 0x4188f4
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4067ff
test ebx, ebx
mov ecx, dword [esp + 0xc]
je 0x4067f2
mov eax, dword [ecx + 8]
mov dword [ebx], eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4067ff
mov ecx, dword [ecx + 0xc]
mov dword [eax], ecx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x4069a0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x104
mov eax, dword [0x41d548]
xor eax, esp
mov dword [esp + 0x100], eax
push esi
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0xc]
push str.QTMLInitTermMutex_lx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
test edi, edi
je 0x4069ee
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x41e8d0], esi
jle 0x4069ff
add dword [0x41e8d0], 1
jmp 0x406a44
call fcn.004071c0
push str.QuickTime.qts
call fcn.00407530
add esp, 4
test eax, eax
mov dword [0x41e8d4], eax
jne 0x406a70
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xfffff7d3
mov eax, dword [0x41e8d4]
test eax, eax
je 0x406a3f
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x41e8d4], 0
call fcn.00406980
test edi, edi
je 0x406a56
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x108]
pop edi
mov ax, si
pop esi
xor ecx, esp
call fcn.00408590
add esp, 0x104
ret
call fcn.00406920
movzx esi, ax
test si, si
jne 0x406a25
mov edx, dword [esp + 0x110]
push edx
call fcn.00406740
movzx esi, ax
add esp, 4
test si, si
jne 0x406a25
add dword [0x41e8d0], 1
jmp 0x406a44

Function at 0x406aa0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x104
mov eax, dword [0x41d548]
xor eax, esp
mov dword [esp + 0x100], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 8]
push str.QTMLInitTermMutex_lx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x406aed
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x41e8d0]
test eax, eax
jg 0x406b02
mov dword [0x41e8d0], 0
jmp 0x406b2a
sub eax, 1
test eax, eax
mov dword [0x41e8d0], eax
jg 0x406b2a
call fcn.00406750
call fcn.00406980
mov edx, dword [0x41e8d4]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.004071d0
test esi, esi
je 0x406b3c
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x104]
pop esi
xor ecx, esp
call fcn.00408590
add esp, 0x104
ret
Function at 0x406d90
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x14]
lea ecx, [esp + 4]
push ecx
push 1
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 0
mov dword [esp + 0x2c], eax
mov byte [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406e37
mov eax, dword [esp + 4]
test eax, eax
je 0x406e46
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406e37
cmp byte [esi], al
je 0x406e37
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406df1
sub eax, edx
cmp byte [eax + esi - 1], 0x5c
je 0x406e37
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406e08
sub eax, edx
cmp byte [eax + esi - 1], 0x2f
je 0x406e37
add esi, 0xffffffff
lea ecx, [ecx]
mov al, byte [esi + 1]
add esi, 1
test al, al
jne 0x406e20
mov ax, word [0x4188f4]
push edi
mov edi, esi
mov word [edi], ax
pop edi
mov eax, dword [esp + 4]
test eax, eax
je 0x406e46
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
ret
Function at 0x406ef0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x10]
xor eax, eax
test ebp, ebp
mov dword [esp + 0x10], 0
je 0x40701d
push esi
push str.AppleApplicationSupportSDK
call fcn.00409915
add esp, 4
test eax, eax
je 0x406f51
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x406f21
mov edx, dword [esp + 0x18]
sub ecx, esi
add edx, 0xfffffffc
cmp ecx, edx
jae 0x406f51
push eax
push str._s_bin
push ebp
call fcn.00409819
add esp, 0xc
pop esi
mov eax, 1
pop ebp
add esp, 8
ret
push ebx
push edi
push str.SoftwareApple_Inc.Apple_Application_Support
push reloc.OLEAUT32.dll_SysReAllocString
lea esi, [esp + 0x18]
mov edi, 0x20019
xor ebx, ebx
call fcn.00406d50
add esp, 8
test eax, eax
jne 0x406fb8
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
push ecx
push ebp
push ebx
push ebx
push str.InstallDir
push edx
mov dword [esp + 0x34], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406fa1
cmp dword [esp + 0x1c], ebx
lea esi, [ebx + 1]
jne 0x406fa3
mov esi, ebx
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
add esp, 8
ret
push str.SoftwareApple_Inc.Apple_Software_Support
push reloc.OLEAUT32.dll_SysReAllocString
lea esi, [esp + 0x18]
xor ebx, ebx
call fcn.00406d50
add esp, 8
test eax, eax
jne 0x407018
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x1c]
push edx
push ebp
push eax
push eax
mov eax, dword [esp + 0x20]
push str.InstallDir
push eax
mov dword [esp + 0x34], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407001
cmp dword [esp + 0x1c], ebx
lea esi, [ebx + 1]
jne 0x407003
mov esi, ebx
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
add esp, 8
ret
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
add esp, 8
ret
Function at 0x4070b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x41d548]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
xor ebx, ebx
push 0x103
lea eax, [esp + 0x11]
push ebx
push eax
mov byte [esp + 0x18], bl
call fcn.00408f30
add esp, 0xc
push str.QTCF.dll
mov dword [esp + 8], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x4071a0
push esi
push edi
push str.SoftwareApple_Computer__Inc.QuickTime
push reloc.OLEAUT32.dll_SysReAllocString
lea esi, [esp + 0x18]
mov edi, 0x20019
call fcn.00406d50
add esp, 8
test eax, eax
jne 0x40719e
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
push eax
push eax
mov eax, dword [esp + 0x20]
push str.QTSysDir
push eax
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407193
cmp dword [esp + 0xc], ebx
je 0x407193
lea eax, [esp + 0x14]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407150
sub eax, edx
push str.PATH
mov esi, eax
call fcn.00409915
lea esi, [esp + esi + 0x17]
add esp, 4
cmp byte [esi], 0x5c
jne 0x407175
mov byte [esi], bl
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.004099a0
add esp, 8
test eax, eax
jne 0x407193
lea ebx, [esp + 0x14]
mov byte [esi], 0x5c
call fcn.00406e50
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [esp + 0x110]
pop ebx
xor ecx, esp
call fcn.00408590
add esp, 0x110
ret
Function at 0x4071e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x41d548]
xor eax, esp
mov dword [esp + 0x104], eax
mov ecx, dword [esp + 0x114]
push esi
mov esi, dword [esp + 0x110]
xor eax, eax
test esi, esi
je 0x407364
test ecx, ecx
mov byte [esi], al
je 0x407215
mov dword [ecx], eax
push ebx
push edi
push str.QuickTime.qts
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov ebx, dword [esp + 0x11c]
je 0x407281
push 0x104
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x407281
lea eax, [esp + 0xc]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407250
sub eax, edx
lea edi, [eax - 0xd]
test edi, edi
jbe 0x407281
lea edx, [edi + 1]
cmp ebx, edx
jbe 0x407281
push edi
lea eax, [esp + 0x10]
push eax
push esi
call fcn.00409ad0
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x407308
cmp byte [esi], 0
jne 0x40730d
push ebx
push esi
push str.QTSysDir
push str.SoftwareApple_Computer__Inc.QuickTime
call fcn.00406d90
add esp, 0x10
cmp byte [esi], 0
je 0x4072b2
push 0
push esi
call fcn.00409aad
add esp, 8
test eax, eax
je 0x4072b5
mov byte [esi], 0
cmp byte [esi], 0
jne 0x40730d
push ebx
push esi
push str.QuickTime.qts_folder
push str.SoftwareApple_Computer__Inc.QuickTime
call fcn.00406d90
add esp, 0x10
cmp byte [esi], 0
je 0x4072e2
push 0
push esi
call fcn.00409aad
add esp, 8
test eax, eax
je 0x4072e5
mov byte [esi], 0
cmp byte [esi], 0
jne 0x40730d
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x407305
push 0
push esi
call fcn.00409aad
add esp, 8
test eax, eax
je 0x407308
mov byte [esi], 0
cmp byte [esi], 0
je 0x40735b
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407312
sub eax, edx
cmp byte [eax + esi - 1], 0x5c
je 0x40735b
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407330
sub eax, edx
cmp byte [eax + esi - 1], 0x2f
je 0x40735b
mov edi, esi
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x407347
mov cx, word [0x4188f4]
mov word [edi], cx
xor eax, eax
cmp byte [esi], al
pop edi
setne al
pop ebx
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.00408590
add esp, 0x108
ret
Function at 0x4073b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x41d548]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
mov ebx, dword [esp + 0x214]
push esi
mov esi, dword [esp + 0x21c]
push esi
push ebx
push str.QTExtDir
push str.SoftwareApple_Computer__Inc.QuickTime
call fcn.00406d90
add esp, 0x10
cmp byte [ebx], 0
jne 0x4074ff
add esi, 0xfffffff6
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x10c]
push esi
push ecx
call fcn.00407380
add esp, 8
cmp byte [esp + 0x10c], 0
je 0x4074ff
lea eax, [esp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407426
sub eax, edx
cmp byte [esp + eax + 7], 0x5c
je 0x407475
lea eax, [esp + 8]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407440
sub eax, edx
cmp byte [esp + eax + 7], 0x2f
je 0x407475
push edi
lea edi, [esp + 0xc]
add edi, 0xffffffff
lea ebx, [ebx]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x407460
mov dx, word [0x4188f4]
mov word [edi], dx
pop edi
lea eax, [esp + 0x10c]
mov edx, ebx
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x407482
lea edx, [esp + 0x10c]
lea ecx, [esp + 8]
lea esp, [esp]
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4074c0
test al, al
je 0x4074bc
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4074c0
add ecx, 2
add edx, 2
test al, al
jne 0x4074a0
xor eax, eax
jmp 0x4074c5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4074ff
mov eax, ebx
add eax, 0xffffffff
mov edi, edi
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x4074d0
mov edx, dword [str.QuickTime_]
mov dword [eax], edx
mov ecx, dword [0x418a84]
mov dword [eax + 4], ecx
mov dx, word [0x418a88]
mov word [eax + 8], dx
mov cl, byte [0x418a8a]
mov byte [eax + 0xa], cl
mov eax, ebx
pop esi
lea edx, [eax + 1]
pop ebx
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407506
mov ecx, dword [esp + 0x208]
xor ecx, esp
sub eax, edx
call fcn.00408590
add esp, 0x20c
ret

Function at 0x407932
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x41d548]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00407871
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00408f30
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x407981
cmp dword [ebp - 0x1c], 5
jb 0x407999
jmp 0x407995
cmp dword [ebp - 0x10], 1
jne 0x407999
cmp dword [ebp - 0x1c], 4
ja 0x407995
jne 0x407999
cmp dword [ebp - 0x18], 0
jbe 0x407999
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x418ad8
call fcn.004012f0
test eax, eax
jge 0x4079ba
mov byte [0x41e840], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00408590
add ebp, 0x78
leave
ret

Function at 0x408590
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41d548]
jne 0x40859a
repz ret
jmp fcn.0040d175
Function at 0x409a26
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x409a53
call fcn.0040b0f8
mov dword [eax], esi
call fcn.0040b0e5
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0040b5cb
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x409a2f
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x409a82
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040b10b
pop ecx
call fcn.0040b0e5
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x409aa9
test al, 1
je 0x409aa9
test byte [esp + 0xc], 2
je 0x409aa9
call fcn.0040b0f8
mov dword [eax], 5
call fcn.0040b0e5
mov dword [eax], 0xd
jmp 0x409a79
xor eax, eax
pop esi
ret

Function at 0x40aed1
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x41d6c8]
je 0x40aeec
inc edi
cmp edi, 0x17
jb 0x40aedd
cmp edi, 0x17
jae 0x40b06c
push ebp
push 3
call fcn.0041160a
cmp eax, 1
pop ecx
je 0x40b038
push 3
call fcn.0041160a
test eax, eax
pop ecx
jne 0x40af20
cmp dword [0x41d58c], 1
je 0x40b038
cmp ebx, 0xfc
je 0x40b06b
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x41eb60
push ebp
call fcn.00407ede
add esp, 0xc
test eax, eax
je 0x40af56
push esi
push esi
push esi
push esi
push esi
call fcn.0040b4cf
add esp, 0x14
push 0x104
mov esi, 0x41eb79
push esi
push 0
mov byte [0x41ec7d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40af9a
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00407ede
add esp, 0xc
test eax, eax
je 0x40af9a
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040b4cf
add esp, 0x14
push esi
call fcn.004100c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40afdf
push esi
call fcn.004100c0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x41ee74
push 0x419134
sub ecx, eax
push ecx
push eax
call fcn.004110a7
add esp, 0x14
test eax, eax
je 0x40afdf
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040b4cf
add esp, 0x14
jmp 0x40afe1
xor esi, esi
push 0x419130
push ebx
push ebp
call fcn.00408078
add esp, 0xc
test eax, eax
je 0x40b001
push esi
push esi
push esi
push esi
push esi
call fcn.0040b4cf
add esp, 0x14
push dword [edi*8 + 0x41d6cc]
push ebx
push ebp
call fcn.00408078
add esp, 0xc
test eax, eax
je 0x40b023
push esi
push esi
push esi
push esi
push esi
call fcn.0040b4cf
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0041144d
add esp, 0xc
jmp 0x40b06b
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40b06b
cmp ebp, 0xffffffff
je 0x40b06b
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x41d6cc]
push dword [esi]
call fcn.004100c0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x41144d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040c418
xor ebx, ebx
cmp dword [0x41f340], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x411523
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x411603
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x411603
push eax
call fcn.0040c3aa
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41f340], eax
call esi
push eax
call fcn.0040c3aa
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41f344], eax
call esi
push eax
call fcn.0040c3aa
mov dword [0x41f348], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040ac5e
test eax, eax
pop ecx
pop ecx
je 0x4114f1
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040b4cf
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x411523
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040c3aa
cmp eax, ebx
pop ecx
mov dword [0x41f350], eax
je 0x411523
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040c3aa
pop ecx
mov dword [0x41f34c], eax
mov eax, dword [0x41f34c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4115a8
cmp dword [0x41f350], ecx
je 0x4115a8
push eax
call fcn.0040c421
push dword [0x41f350]
mov esi, eax
call fcn.0040c421
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4115a8
cmp edi, ebx
je 0x4115a8
call esi
cmp eax, ebx
je 0x411575
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x411575
test byte [ebp - 0x18], 1
jne 0x4115a8
lea eax, [ebp - 0x10]
push eax
call fcn.0040ac95
test eax, eax
pop ecx
je 0x411590
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040b4cf
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x41159f
or dword [ebp + 0x10], 0x200000
jmp 0x4115e3
or dword [ebp + 0x10], 0x40000
jmp 0x4115e3
mov eax, dword [0x41f344]
cmp eax, dword [ebp - 8]
je 0x4115e3
push eax
call fcn.0040c421
cmp eax, ebx
pop ecx
je 0x4115e3
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4115e3
mov eax, dword [0x41f348]
cmp eax, dword [ebp - 8]
je 0x4115e3
push eax
call fcn.0040c421
cmp eax, ebx
pop ecx
je 0x4115e3
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41f340]
call fcn.0040c421
cmp eax, ebx
pop ecx
je 0x411603
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x411605
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret