joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f0e0
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x4292b4]
xor eax, esp
mov dword [esp + 0x94], eax
cmp byte [0x43e23d], 0
je 0x40f119
movzx eax, byte [0x43e23c]
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0040ffc4
add esp, 0x98
ret
push 0x94
lea eax, [esp + 4]
push 0
push eax
call fcn.00412050
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40f158
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0040ffc4
add esp, 0x98
ret
cmp dword [esp + 0x10], 2
jne 0x40f17f
cmp dword [esp + 4], 5
sete al
test al, al
mov byte [0x43e23c], al
je 0x40f184
cmp dword [esp + 8], 0
sete al
mov byte [0x43e23c], al
jmp 0x40f184
mov al, byte [0x43e23c]
mov ecx, dword [esp + 0x94]
xor ecx, esp
mov byte [0x43e23d], 1
movzx eax, al
call fcn.0040ffc4
add esp, 0x98
ret

Function at 0x40f1b0
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x4292b4]
xor eax, esp
mov dword [esp + 0x94], eax
cmp byte [0x43e23f], 0
jne 0x40f226
push 0x94
lea eax, [esp + 4]
push 0
push eax
call fcn.00412050
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40f20c
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0040ffc4
add esp, 0x98
ret
cmp dword [esp + 0x10], 2
jne 0x40f21f
cmp dword [esp + 4], 5
setae byte [0x43e23e]
mov byte [0x43e23f], 1
mov ecx, dword [esp + 0x94]
movzx eax, byte [0x43e23e]
xor ecx, esp
call fcn.0040ffc4
add esp, 0x98
ret

Function at 0x40f250
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x4292b4]
xor eax, esp
mov dword [esp + 0x94], eax
cmp byte [0x43e241], 0
jne 0x40f2c6
push 0x94
lea eax, [esp + 4]
push 0
push eax
call fcn.00412050
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40f2ac
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0040ffc4
add esp, 0x98
ret
cmp dword [esp + 0x10], 2
jne 0x40f2bf
cmp dword [esp + 4], 6
setae byte [0x43e240]
mov byte [0x43e241], 1
mov ecx, dword [esp + 0x94]
movzx eax, byte [0x43e240]
xor ecx, esp
call fcn.0040ffc4
add esp, 0x98
ret
Function at 0x40f4e0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
jne 0x40f4ed
xor eax, eax
pop ebp
ret
mov eax, dword [esp + 8]
push ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40f517
pop ebx
xor eax, eax
pop ebp
ret
push esi
push 0
push 0
push 0
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
test esi, esi
jne 0x40f53c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
xor eax, eax
pop ebp
ret
push edi
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x40f567
push 0x28
call fcn.00412048
add esp, 4
test eax, eax
jne 0x40f57a
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
ret
mov dword [ebp], edi
mov dword [eax + 8], edi
pop edi
mov dword [eax + 4], esi
pop esi
mov dword [eax], ebx
pop ebx
pop ebp
ret

Function at 0x40f670
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x4dc
mov eax, dword [0x4292b4]
xor eax, esp
mov dword [esp + 0x4d8], eax
mov eax, dword [esp + 0x4e0]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push ebp
push esi
push 0x168
lea ecx, [esp + 0x114]
push ecx
push eax
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x110]
push edx
lea eax, [esp + 0x27c]
push eax
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x423b34
lea ecx, [esp + 0x27c]
push ecx
call esi
push 0x168
lea edx, [esp + 0x114]
push edx
push edi
call ebx
lea eax, [esp + 0x110]
push eax
lea ecx, [esp + 0x27c]
push ecx
call esi
push 0x104
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0xc]
push eax
call fcn.0040e080
add esp, 4
push str.WININIT.INI
lea ecx, [esp + 0x10]
push ecx
call esi
lea edx, [esp + 0xc]
push edx
push 0x7fff
push 0x43e248
push str.Rename
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov esi, eax
lea eax, [esp + 0x278]
push eax
lea ecx, [esi + 0x43e248]
push ecx
call ebp
lea edx, [esp + 0x278]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov byte [eax + esi + 0x43e249], 0
lea eax, [esp + 0xc]
push eax
push 0x43e248
push str.Rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
mov ecx, dword [esp + 0x4e4]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040ffc4
add esp, 0x4dc
ret

Function at 0x40f790
Capabilities:
Move file

Disassembly:
push 5
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
ret
call fcn.0040eda0
test eax, eax
mov eax, dword [esp + 8]
je 0x40f7a6
mov ecx, dword [esp + 4]
jmp 0x40f660
push edi
mov edi, dword [esp + 8]
push eax
call fcn.0040f670
add esp, 4
pop edi
ret
Function at 0x40f840
Capabilities:
Shutdown system

Disassembly:
call fcn.0040eda0
test eax, eax
je 0x40f88b
push 0x423649
push str.SeShutdownPrivilege
mov eax, 1
call fcn.0040f7c0
add esp, 8
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x40f871
xor eax, eax
ret
push 0x423649
push str.SeShutdownPrivilege
xor eax, eax
call fcn.0040f7c0
add esp, 8
mov eax, 1
ret
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x40f86e
mov eax, 1
ret
Function at 0x40f8a0
Capabilities:
Create directory
Get common file path
Set current directory

Disassembly:
sub esp, 0x42c
mov eax, dword [0x4292b4]
xor eax, esp
mov dword [esp + 0x428], eax
mov eax, dword [esp + 0x438]
push ebx
push ebp
mov ebp, dword [esp + 0x438]
push esi
push edi
push ebp
lea ecx, [esp + 0x130]
push ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x12c]
push edx
call fcn.0040e0c0
add esp, 4
lea eax, [esp + 0x334]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov al, byte [esp + 0x12d]
cmp al, 0x3a
lea edi, [esp + 0x12c]
lea esi, [esp + 0x28]
jne 0x40f94c
cmp byte [esp + 0x12e], 0x5c
mov cl, byte [esp + 0x12c]
mov byte [esp + 0x28], cl
mov byte [esp + 0x29], al
lea esi, [esp + 0x2a]
lea edi, [esp + 0x12e]
jne 0x40f979
mov byte [esp + 0x2a], 0x5c
lea esi, [esp + 0x2b]
lea edi, [esp + 0x12f]
jmp 0x40f979
cmp byte [esp + 0x12c], 0x5c
jne 0x40f979
cmp al, 0x5c
mov byte [esp + 0x28], 0x5c
lea esi, [esp + 0x29]
lea edi, [esp + 0x12d]
jne 0x40f979
mov byte [esp + 0x29], al
lea esi, [esp + 0x2a]
lea edi, [esp + 0x12e]
xor ebx, ebx
push ebp
mov byte [esp + 0x17], bl
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 3
jle 0x40f99c
cmp byte [ebp], 0x5c
jne 0x40f99c
cmp byte [ebp + 1], 0x5c
jne 0x40f99c
mov byte [esp + 0x13], 1
mov ebp, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [edi], 0x5c
jne 0x40f9bc
lea edx, [esp + 0x12c]
push edi
push edx
call fcn.004118e0
add esp, 8
test eax, eax
je 0x40f9c6
mov al, byte [edi]
cmp al, bl
jne 0x40fa78
cmp byte [esp + 0x13], bl
je 0x40f9e4
mov al, byte [edi]
cmp al, bl
je 0x40fa85
mov byte [esi], al
add esi, 1
add edi, 1
mov byte [esp + 0x13], bl
jmp 0x40f9a2
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov byte [esi], bl
mov dword [esp + 0x1c], 0xc
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], 1
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edx, [esp + 0x28]
push edx
call ebp
mov esi, eax
cmp esi, ebx
je 0x40fa87
cmp byte [esp + 0x444], bl
je 0x40fa63
lea eax, [esp + 0x230]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x230]
push ecx
call fcn.0040e080
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x234]
push edx
push eax
call fcn.00405f60
add esp, 0xc
cmp byte [edi], bl
je 0x40fa87
cmp byte [edi + 1], bl
je 0x40fa87
add edi, 1
lea esi, [esp + 0x28]
jmp 0x40f9a2
mov byte [esi], al
add esi, 1
add edi, 1
jmp 0x40f9a2
xor esi, esi
lea ecx, [esp + 0x334]
push ecx
call ebp
cmp esi, ebx
je 0x40faa5
mov edx, dword [esp + 0x20]
push ebx
push edx
push 1
push 8
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov ecx, dword [esp + 0x438]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040ffc4
add esp, 0x42c
ret
Function at 0x40fd60
Capabilities:
Check os version

Disassembly:
sub esp, 0xa4
mov eax, dword [0x4292b4]
xor eax, esp
mov dword [esp + 0xa0], eax
cmp byte [0x446248], 0
jne 0x40fe3e
lea eax, [esp]
push eax
push str.IsWow64Process
push str.Kernel32
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.00411950
push 0x9c
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.00412050
add esp, 0x18
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40fde3
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.0040ffc4
add esp, 0xa4
ret
cmp dword [esp + 0x14], 2
push esi
jne 0x40fe36
cmp dword [esp + 0xc], 5
jne 0x40fe36
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x40fe2a
mov esi, dword [esp + 4]
test esi, esi
je 0x40fe36
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [esp + 4], 0
je 0x40fe36
cmp byte [esp + 0xa2], 1
jmp 0x40fe2d
cmp eax, 1
jne 0x40fe36
mov byte [0x446247], 1
mov byte [0x446248], 1
pop esi
mov ecx, dword [esp + 0xa0]
movzx eax, byte [0x446247]
xor ecx, esp
call fcn.0040ffc4
add esp, 0xa4
ret

Function at 0x40fe60
Capabilities:
Check os version

Disassembly:
sub esp, 0xa4
mov eax, dword [0x4292b4]
xor eax, esp
mov dword [esp + 0xa0], eax
cmp byte [0x44624a], 0
jne 0x40ff3a
lea eax, [esp]
push eax
push str.IsWow64Process
push str.Kernel32
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.00411950
push 0x9c
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.00412050
add esp, 0x18
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40fee3
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.0040ffc4
add esp, 0xa4
ret
mov eax, 2
cmp dword [esp + 0x14], eax
jne 0x40ff33
cmp dword [esp + 8], 5
jne 0x40ff33
cmp dword [esp + 0xc], eax
jne 0x40ff33
push esi
mov esi, dword [esp + 4]
test esi, esi
je 0x40ff32
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [esp + 4], 0
je 0x40ff2b
cmp byte [esp + 0xa2], 3
jne 0x40ff32
mov byte [0x446249], 1
pop esi
mov byte [0x44624a], 1
mov ecx, dword [esp + 0xa0]
movzx eax, byte [0x446249]
xor ecx, esp
call fcn.0040ffc4
add esp, 0xa4
ret

Function at 0x40ffc4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4292b4]
jne 0x40ffd5
test ecx, 0xffff0000
jne 0x40ffd5
ret
jmp fcn.0040ffda
Function at 0x410150
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4225ab
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4292b4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x2c]
test cl, 1
je 0x41018a
mov edi, 0x40000000
mov ebx, 2
jmp 0x4101a5
test cl, 2
je 0x41019b
mov edi, 0xc0000000
mov ebx, 3
jmp 0x4101a5
mov edi, 0x80000000
mov ebx, 1
mov eax, ecx
and eax, 0x100
mov esi, eax
neg esi
sbb esi, esi
add esi, 3
test ecx, 0x200
je 0x4101c9
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 5
mov esi, eax
mov ebp, dword [esp + 0x28]
push ebp
mov byte [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4101e7
test al, 0x10
jne 0x4101e7
mov byte [esp + 0x2c], 1
push 0
push 0x80
push esi
push 0
push ebx
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x410222
call fcn.00413bde
mov dword [eax], 0xd
or eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push 0x110
call fcn.00412a73
add esp, 4
mov dword [esp + 0x14], eax
xor ebx, ebx
mov dword [esp + 0x20], ebx
cmp eax, ebx
je 0x410255
mov dword [eax], ebx
mov dword [eax + 0x108], ebx
mov byte [eax + 0x10c], bl
mov byte [eax + 0x10d], bl
mov esi, eax
jmp 0x410257
xor esi, esi
mov dword [esp + 0x20], 0xffffffff
cmp byte [esp + 0x2c], 0
jne 0x41026d
mov byte [esi + 0x10c], 1
push 0x104
push ebp
lea eax, [esi + 4]
push eax
mov dword [esi], edi
mov dword [esi + 0x108], ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x446570
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x4102a1
mov ecx, dword [0x446674]
mov dword [esi + 0x108], ecx
mov edx, dword [esi + 0x108]
push ebx
push ebx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x410b00
Capabilities:
Delete file
Get common file path
Get file size
Read file on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0x4292b4]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebp
mov ebp, dword [esp + 0x21c]
push esi
push edi
mov edi, dword [esp + 0x220]
lea eax, [esp + 0x114]
push eax
push 0x104
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x423c20
lea edx, [esp + 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [esp + 0x10]
push eax
push edi
mov ecx, esi
call fcn.00410a70
test eax, eax
jne 0x410b74
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
jmp 0x410bee
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x410ba7
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
jmp 0x410bee
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x410bd2
push 0
lea ecx, [esp + 0x14]
push ecx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test ebp, ebp
je 0x410beb
mov dword [ebp], edi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0040ffc4
add esp, 0x210
ret 8

Function at 0x411520
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x422746
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4292b4]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 4], eax
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [esp + 0x10], ecx
mov edx, 0xf
mov dword [eax + 0x44], edx
mov dword [eax + 0x40], ecx
mov byte [eax + 0x30], cl
mov byte [esp + 0x10], 1
mov dword [eax + 0x60], edx
mov dword [eax + 0x5c], ecx
mov byte [eax + 0x4c], cl
mov byte [esp + 0x10], 2
mov dword [eax + 0x7c], edx
mov dword [eax + 0x78], ecx
mov byte [eax + 0x68], cl
mov byte [esp + 0x10], 3
mov dword [eax + 0x9c], edx
mov dword [eax + 0x98], ecx
mov byte [eax + 0x88], cl
mov byte [esp + 0x10], 4
mov dword [eax + 0xb8], edx
mov dword [eax + 0xb4], ecx
mov byte [eax + 0xa4], cl
mov byte [esp + 0x10], 5
mov dword [eax + 0xd4], edx
mov dword [eax + 0xd0], ecx
mov byte [eax + 0xc0], cl
mov byte [esp + 0x10], 6
mov dword [eax + 0xdc], ecx
mov dword [eax + 0xe0], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax], ecx
mov dword [esp + 0x10], 0xffffffff
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret
Function at 0x411930
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41194a
test al, 0x10
je 0x41194a
mov eax, 1
ret
xor eax, eax
ret
Function at 0x413b0b
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push 0x60
push 0x426950
call fcn.00416c34
and dword [ebp - 4], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov edi, 0x94
push edi
push 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x413976
push 0x12
call fcn.004138c6
pop ecx
jmp 0x413b00
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push esi
push 0
test eax, eax
jne 0x413994
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x413b00
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x28], eax
mov edi, dword [esi + 0xc]
and edi, 0x7fff
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp - 0x20]
cmp esi, 2
je 0x4139c6
or edi, 0x8000
mov ecx, dword [ebp - 0x24]
mov eax, ecx
shl eax, 8
mov edx, dword [ebp - 0x28]
add eax, edx
mov dword [0x446874], esi
mov dword [0x44687c], eax
mov dword [0x446880], ecx
mov dword [0x446884], edx
mov dword [0x446878], edi
call fcn.004138ea
mov dword [ebp - 0x20], eax
xor ebx, ebx
inc ebx
push ebx
call fcn.00416e81
pop ecx
test eax, eax
jne 0x413a0e
push 0x1c
call fcn.004138c6
pop ecx
call fcn.00415290
test eax, eax
jne 0x413a1f
push 0x10
call fcn.004138c6
pop ecx
call fcn.0041ac74
mov dword [ebp - 4], ebx
call fcn.0041aa34
test eax, eax
jge 0x413a38
push 0x1b
call fcn.00416edb
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x447fbc], eax
call fcn.0041a8ff
mov dword [0x4466b8], eax
call fcn.0041a846
test eax, eax
jge 0x413a5e
push 8
call fcn.00416edb
pop ecx
call fcn.0041a5d3
test eax, eax
jge 0x413a6f
push 9
call fcn.00416edb
pop ecx
push ebx
call fcn.00416ff7
pop ecx
test eax, eax
je 0x413a81
push eax
call fcn.00416edb
pop ecx
call fcn.0041a576
test byte [ebp - 0x44], bl
je 0x413a91
movzx ecx, word [ebp - 0x40]
jmp 0x413a94
push 0xa
pop ecx
push ecx
push eax
push 0
push 0x400000
call main
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], 0
jne 0x413ab1
push eax
call fcn.0041716b
call fcn.0041718d
jmp 0x413ae6
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
jmp 0x413b05
mov eax, 0xff
call fcn.00416c79
ret
call fcn.0040ff56
jmp 0x41392b
Function at 0x4171f7
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 + 0x429c28]
je 0x417212
inc edi
cmp edi, 0x17
jb 0x417203
cmp edi, 0x17
jae 0x417392
push ebp
push 3
call fcn.0041c136
cmp eax, 1
pop ecx
je 0x41735e
push 3
call fcn.0041c136
test eax, eax
pop ecx
jne 0x417246
cmp dword [0x429330], 1
je 0x41735e
cmp ebx, 0xfc
je 0x417391
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4468b8
push ebp
call fcn.00417775
add esp, 0xc
test eax, eax
je 0x41727c
push esi
push esi
push esi
push esi
push esi
call fcn.00412701
add esp, 0x14
push 0x104
mov esi, 0x4468d1
push esi
push 0
mov byte [0x4469d5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4172c0
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00417775
add esp, 0xc
test eax, eax
je 0x4172c0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00412701
add esp, 0x14
push esi
call fcn.00413fe0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x417305
push esi
call fcn.00413fe0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x446bcc
push 0x42439c
sub ecx, eax
push ecx
push eax
call fcn.0041b8e6
add esp, 0x14
test eax, eax
je 0x417305
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00412701
add esp, 0x14
jmp 0x417307
xor esi, esi
push 0x424398
push ebx
push ebp
call fcn.0041b82a
add esp, 0xc
test eax, eax
je 0x417327
push esi
push esi
push esi
push esi
push esi
call fcn.00412701
add esp, 0x14
push dword [edi*8 + 0x429c2c]
push ebx
push ebp
call fcn.0041b82a
add esp, 0xc
test eax, eax
je 0x417349
push esi
push esi
push esi
push esi
push esi
call fcn.00412701
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0041bf79
add esp, 0xc
jmp 0x417391
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x417391
cmp ebp, 0xffffffff
je 0x417391
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x429c2c]
push dword [esi]
call fcn.00413fe0
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 0x41bf79
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00414f32
xor ebx, ebx
cmp dword [0x446dd8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x41c04f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41c12f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x424e24
push edi
call esi
cmp eax, ebx
je 0x41c12f
push eax
call fcn.00414ec4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x446dd8], eax
call esi
push eax
call fcn.00414ec4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x446ddc], eax
call esi
push eax
call fcn.00414ec4
mov dword [0x446de0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00416f84
test eax, eax
pop ecx
pop ecx
je 0x41c01d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00412701
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x41c04f
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00414ec4
cmp eax, ebx
pop ecx
mov dword [0x446de8], eax
je 0x41c04f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00414ec4
pop ecx
mov dword [0x446de4], eax
mov eax, dword [0x446de4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x41c0d4
cmp dword [0x446de8], ecx
je 0x41c0d4
push eax
call fcn.00414f3b
push dword [0x446de8]
mov esi, eax
call fcn.00414f3b
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x41c0d4
cmp edi, ebx
je 0x41c0d4
call esi
cmp eax, ebx
je 0x41c0a1
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41c0a1
test byte [ebp - 0x18], 1
jne 0x41c0d4
lea eax, [ebp - 0x10]
push eax
call fcn.00416fbb
test eax, eax
pop ecx
je 0x41c0bc
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00412701
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x41c0cb
or dword [ebp + 0x10], 0x200000
jmp 0x41c10f
or dword [ebp + 0x10], 0x40000
jmp 0x41c10f
mov eax, dword [0x446ddc]
cmp eax, dword [ebp - 8]
je 0x41c10f
push eax
call fcn.00414f3b
cmp eax, ebx
pop ecx
je 0x41c10f
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41c10f
mov eax, dword [0x446de0]
cmp eax, dword [ebp - 8]
je 0x41c10f
push eax
call fcn.00414f3b
cmp eax, ebx
pop ecx
je 0x41c10f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x446dd8]
call fcn.00414f3b
cmp eax, ebx
pop ecx
je 0x41c12f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41c131
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret