joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b1d0
Capabilities:
Check os version
Shutdown system

Disassembly:
sub esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x40b1eb
push 0
push 0xd
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0x14
ret
push esi
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
jne 0x40b21a
push 0
push str.Important
push str.Can_not_auto_Shut_Down_your_computer__Please_Shut_Down_computer_manual
push 0
call esi
lea ecx, [esp + 0xc]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp + 4]
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
push 0
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40b26e
push 0
push str.Important
push str.Can_not_auto_Shut_Down_your_computer__Please_Shut_Down_computer_manual
push 0
call esi
cmp dword [0x452450], 1
jne 0x40b2d8
cmp dword [0x455c6c], 6
jne 0x40b2b7
push 0
push str.X:WindowsSystem32wpeinit.exe
call fcn.0042d422
add esp, 8
test eax, eax
jne 0x40b2b7
push eax
push str.X:WindowsSystem32wpeutil.exe
call fcn.0042d422
add esp, 8
test eax, eax
jne 0x40b2b7
push str.X:WindowsSystem32wpeutil.exe_Shutdown
call fcn.004249fa
add esp, 4
pop esi
add esp, 0x14
ret
push 0
push 0xc
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x40b334
push eax
push str.Important
push str.Can_not_auto_Shut_Down_your_computer__Please_Shut_Down_computer_manual
push eax
call esi
pop esi
add esp, 0x14
ret
cmp dword [0x455c6c], 6
jne 0x40b318
push 0
push str.X:WindowsSystem32wpeinit.exe
call fcn.0042d422
add esp, 8
test eax, eax
jne 0x40b318
push eax
push str.X:WindowsSystem32wpeutil.exe
call fcn.0042d422
add esp, 8
test eax, eax
jne 0x40b318
push str.X:WindowsSystem32wpeutil.exe_Reboot
call fcn.004249fa
add esp, 4
pop esi
add esp, 0x14
ret
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x40b334
push eax
push str.Important
push str.Can_not_auto_reboot_your_computer__Please_reboot_computer_manual
push eax
call esi
pop esi
add esp, 0x14
ret

Function at 0x40c0d0
Capabilities:
Write file on windows

Disassembly:
cmp dword [0x454e8c], 1
jne 0x40c120
mov eax, dword [0x454f34]
push esi
push edi
push 0x443244
push eax
call fcn.0042562a
mov edx, dword [esp + 0x14]
mov esi, eax
mov eax, edx
add esp, 8
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40c100
push esi
sub eax, edi
push eax
push 1
push edx
call fcn.0042579c
push esi
call fcn.004251e6
add esp, 0x14
pop edi
pop esi
ret
Function at 0x40d720
Capabilities:
Set registry value

Disassembly:
sub esp, 0x24
mov eax, dword [0x45302c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, dword [esp + 0x30]
push ebp
mov ebp, dword [esp + 0x30]
push esi
push edi
lea eax, [esp + 0x10]
push eax
mov ecx, 7
mov esi, str.SoftwareInsydeInsydeFlash
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
push 0x20006
xor esi, esi
push esi
lea ecx, [esp + 0x20]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40d7a3
push esi
lea edx, [esp + 0x14]
push edx
push esi
push 0xf003f
push esi
push esi
push esi
lea eax, [esp + 0x30]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40d7a3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00424179
add esp, 0x24
ret
test ebx, ebx
je 0x40d7bd
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40d7b0
sub eax, edx
mov esi, eax
mov ecx, dword [esp + 0x10]
push esi
push ebx
push 1
push 0
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00424179
add esp, 0x24
ret

Function at 0x40d800
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x12c
mov eax, dword [0x45302c]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
mov ebx, dword [esp + 0x134]
push esi
push edi
lea eax, [esp + 0xc]
push eax
push 0x20019
mov ecx, 7
mov esi, str.SoftwareInsydeInsydeFlash
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
push 0
lea ecx, [esp + 0x24]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d88a
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push ebx
push edx
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40d8a9
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x140]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.00424179
add esp, 0x12c
ret
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x40d8c0
mov cl, byte [esp + eax + 0x34]
mov byte [eax + 0x454f38], cl
add eax, 1
test cl, cl
jne 0x40d8c0
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 0x454f38
call fcn.00424179
add esp, 0x12c
ret
Function at 0x40de50
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [0x455d00]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
push eax
push 0x1869f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebx, eax
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40de8c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dea8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x40f960
Capabilities:
Access peb ldr_data
Get number of processors
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x43d940
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x45302c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov dword [esp + 0x10], 0
push 0x64
mov dword [esp + 0x20], 1
call fcn.0041313e
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
add esp, 4
mov esi, eax
mov eax, dword [0x455d00]
push eax
push 0x64
push esi
push 0
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
mov esi, dword [esp + 0x28]
mov ecx, esi
call fcn.00404d70
lea eax, [edi - 0x10]
mov byte [esp + 0x1c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f9e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fa0c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret
Function at 0x417586
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4175bf
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00417549
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0040b8d0
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x4190e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x419123
call fcn.0041b289
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x419123
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41913e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00418c97
test ebx, ebx
mov esi, eax
je 0x41913c
test edi, edi
je 0x41913c
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x419b80
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x43e74e
call fcn.004264ab
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x419ba5
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x419bf1
call fcn.00419bf9
push eax
lea ecx, [ebp - 0x10]
call fcn.004011f0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041316d
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401020
mov eax, esi
call fcn.0042654a
ret 8
Function at 0x41c8b9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x41c8cf
mov edi, dword [esi + 0xc]
jmp 0x41c90f
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41c8e8
call fcn.00413683
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x41c8fd
call fcn.00413683
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x41c90f
call fcn.00413683
call fcn.0041b289
cmp dword [eax + 0x3c], 0
je 0x41c924
push edi
mov ecx, ebx
call fcn.0041b785
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0041c7d3
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x41c942
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x41c94e
mov edi, eax
mov dword [ebx + 0x5c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x41d468
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x43eb89
call fcn.004264de
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.0041b289
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x41d4b3
call fcn.0041b289
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x41d4c4
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x41d4d1
or eax, 0xffffffff
jmp 0x41d62d
mov ecx, esi
call fcn.0041cfba
mov dword [ebp - 0x14], eax
call fcn.00416587
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x41d54f
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x41d54f
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41d54f
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00415139
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x41d54f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x41d54f
mov ecx, ebx
call fcn.00419a81
test eax, eax
je 0x41d54f
push 0
mov ecx, ebx
call fcn.00419a9c
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.00417fc3
push dword [ebp - 0x14]
call fcn.004164df
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0041d270
xor edi, edi
cmp eax, edi
je 0x41d5ac
test byte [esi + 0x3c], 0x10
je 0x41d596
push 4
pop edi
mov ecx, esi
call fcn.00419968
test ax, 0x100
je 0x41d58c
push 5
pop edi
push edi
mov ecx, esi
call fcn.004160a7
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x41d5ac
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00419b03
or dword [ebp - 4], 0xffffffff
jmp 0x41d5d7
cmp dword [ebp - 0x28], edi
je 0x41d5e5
push 1
mov ecx, ebx
call fcn.00419a9c
cmp dword [ebp - 0x2c], edi
je 0x41d5f5
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x41d60e
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x41d60e
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0041cff4
cmp dword [esi + 0x58], edi
je 0x41d62a
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0042654a
ret
Function at 0x41e339
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x45302c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x41e379
push 0x446918
push 4
push eax
call fcn.00427ef2
push eax
call fcn.00406ae0
add esp, 0x10
jmp 0x41e38b
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x41e3f9
push edi
call fcn.0042664a
mov edi, dword [eax]
call fcn.0042664a
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.004245cd
add esp, 0x18
mov ebx, eax
call fcn.0042664a
cmp dword [eax], 0
je 0x41e3d9
call fcn.0042664a
push dword [eax]
call fcn.0041323f
pop ecx
jmp 0x41e3e0
call fcn.0042664a
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x41e3f9
cmp ebx, esi
jae 0x41e3f9
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x41e3fb
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00424179
leave
ret
Function at 0x420559
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x420587
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4205a5
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004204c3
jmp 0x4205a5
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4205a5
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004204c3
test edi, edi
mov eax, edi
jne 0x42058f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x457888]
test ecx, ecx
je 0x420668
jmp 0x420558
ret 8

Function at 0x424179
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45302c]
jne 0x424183
repz ret
jmp fcn.0042b9fc
Function at 0x42d39b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x42d3c8
call fcn.0042665d
mov dword [eax], esi
call fcn.0042664a
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004297f2
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x42d3a4
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42d3f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00426670
pop ecx
call fcn.0042664a
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x42d41e
test al, 1
je 0x42d41e
test byte [esp + 0xc], 2
je 0x42d41e
call fcn.0042665d
mov dword [eax], 5
call fcn.0042664a
mov dword [eax], 0xd
jmp 0x42d3ee
xor eax, eax
pop esi
ret

Function at 0x42e390
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 + 0x453c18]
je 0x42e3ab
inc edi
cmp edi, 0x17
jb 0x42e39c
cmp edi, 0x17
jae 0x42e52b
push ebp
push 3
call fcn.00435142
cmp eax, 1
pop ecx
je 0x42e4f7
push 3
call fcn.00435142
test eax, eax
pop ecx
jne 0x42e3df
cmp dword [0x4532d0], 1
je 0x42e4f7
cmp ebx, 0xfc
je 0x42e52a
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x458028
push ebp
call fcn.00427ef2
add esp, 0xc
test eax, eax
je 0x42e415
push esi
push esi
push esi
push esi
push esi
call fcn.004296f6
add esp, 0x14
push 0x104
mov esi, 0x458041
push esi
push 0
mov byte [0x458145], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42e459
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00427ef2
add esp, 0xc
test eax, eax
je 0x42e459
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004296f6
add esp, 0x14
push esi
call fcn.00426420
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x42e49e
push esi
call fcn.00426420
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x45833c
push 0x447734
sub ecx, eax
push ecx
push eax
call fcn.00426699
add esp, 0x14
test eax, eax
je 0x42e49e
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004296f6
add esp, 0x14
jmp 0x42e4a0
xor esi, esi
push 0x447730
push ebx
push ebp
call fcn.00428336
add esp, 0xc
test eax, eax
je 0x42e4c0
push esi
push esi
push esi
push esi
push esi
call fcn.004296f6
add esp, 0x14
push dword [edi*8 + 0x453c1c]
push ebx
push ebp
call fcn.00428336
add esp, 0xc
test eax, eax
je 0x42e4e2
push esi
push esi
push esi
push esi
push esi
call fcn.004296f6
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00434f85
add esp, 0xc
jmp 0x42e52a
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x42e52a
cmp ebp, 0xffffffff
je 0x42e52a
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x453c1c]
push dword [esi]
call fcn.00426420
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 0x434f85
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0042b439
xor ebx, ebx
cmp dword [0x4585a8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x43505b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43513b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x448900
push edi
call esi
cmp eax, ebx
je 0x43513b
push eax
call fcn.0042b3cb
mov dword [esp], 0x4488f0
push edi
mov dword [0x4585a8], eax
call esi
push eax
call fcn.0042b3cb
mov dword [esp], 0x4488dc
push edi
mov dword [0x4585ac], eax
call esi
push eax
call fcn.0042b3cb
mov dword [0x4585b0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00428000
test eax, eax
pop ecx
pop ecx
je 0x435029
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004296f6
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x43505b
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0042b3cb
cmp eax, ebx
pop ecx
mov dword [0x4585b8], eax
je 0x43505b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042b3cb
pop ecx
mov dword [0x4585b4], eax
mov eax, dword [0x4585b4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4350e0
cmp dword [0x4585b8], ecx
je 0x4350e0
push eax
call fcn.0042b442
push dword [0x4585b8]
mov esi, eax
call fcn.0042b442
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4350e0
cmp edi, ebx
je 0x4350e0
call esi
cmp eax, ebx
je 0x4350ad
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4350ad
test byte [ebp - 0x18], 1
jne 0x4350e0
lea eax, [ebp - 0x10]
push eax
call fcn.00428073
test eax, eax
pop ecx
je 0x4350c8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004296f6
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4350d7
or dword [ebp + 0x10], 0x200000
jmp 0x43511b
or dword [ebp + 0x10], 0x40000
jmp 0x43511b
mov eax, dword [0x4585ac]
cmp eax, dword [ebp - 8]
je 0x43511b
push eax
call fcn.0042b442
cmp eax, ebx
pop ecx
je 0x43511b
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43511b
mov eax, dword [0x4585b0]
cmp eax, dword [ebp - 8]
je 0x43511b
push eax
call fcn.0042b442
cmp eax, ebx
pop ecx
je 0x43511b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4585a8]
call fcn.0042b442
cmp eax, ebx
pop ecx
je 0x43513b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43513d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43ad80
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x45302c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0043ad15
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.00424980
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 0x43adcf
cmp dword [ebp - 0x1c], 5
jb 0x43ade7
jmp 0x43ade3
cmp dword [ebp - 0x10], 1
jne 0x43ade7
cmp dword [ebp - 0x1c], 4
ja 0x43ade3
jne 0x43ade7
cmp dword [ebp - 0x18], 0
jbe 0x43ade7
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x448970
call fcn.0043abe9
test eax, eax
jge 0x43ae08
mov byte [0x454470], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00424179
add ebp, 0x78
leave
ret