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

Disassembly:
push 0xffffffffffffffff
push 0x42f29b
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x43e0a0]
xor eax, esp
mov dword [esp + 0x230], eax
push esi
push edi
mov eax, dword [0x43e0a0]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0xc], vtable.KFileVersionInfo.0
push 0x104
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x250], edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [esp + 0x34]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, di
jne 0x403a71
mov ecx, dword [str.dxdiag.exe]
mov edx, dword [0x43694c]
mov dword [eax], ecx
mov ecx, dword [0x436950]
mov dword [eax + 4], edx
mov edx, dword [0x436954]
mov dword [eax + 8], ecx
mov ecx, dword [0x436958]
mov dword [eax + 0xc], edx
mov edx, dword [0x43695c]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
lea eax, [esp + 0x34]
push edi
push eax
call fcn.00417124
add esp, 8
cmp eax, 0xffffffff
jne 0x403ae5
push str.KClientEnvironment::_GetDxdiagVersion
push 0x255
push str.nRetCode____1
push str.KGLOG_PROCESS_ERROR__s__at_line__d_in__s_n
push 7
call fcn.004077c0
add esp, 0x14
jmp 0x403b53
lea ecx, [esp + 0x34]
push ecx
lea esi, [esp + 0x10]
call fcn.00406780
test eax, eax
jne 0x403b17
push str.KClientEnvironment::_GetDxdiagVersion
push 0x258
push str.nRetCode
push str.KGLOG_PROCESS_ERROR__s__at_line__d_in__s_n
push 7
call fcn.004077c0
add esp, 0x14
jmp 0x403b53
lea esi, [esp + 0xc]
call fcn.00406700
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403b23
sub eax, edx
sar eax, 1
mov edi, eax
push edi
lea esi, [esp + 0x10]
call fcn.00406700
push eax
push ebx
call fcn.00416872
mov word [ebx + edi*2], 0
add esp, 0xc
mov edi, 1
mov dword [esp + 0x248], 0xffffffff
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0xc], vtable.KFileVersionInfo.0
je 0x403b77
push eax
call fcn.004086fd
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00416863
add esp, 0x240
ret
Function at 0x403ca0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x220
mov eax, dword [0x43e0a0]
xor eax, esp
mov dword [esp + 0x218], eax
push esi
lea eax, [esp + 8]
push eax
push 1
xor esi, esi
push esi
push str.SoftwareMicrosoftDirectX
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 0x104
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x403cff
push str.KClientEnvironment::_GetDxVersionInRegister
push 0x288
push str.nRetCode__ERROR_SUCCESS
push str.KGLOG_PROCESS_ERROR__s__at_line__d_in__s_n
push 7
call fcn.004077c0
add esp, 0x14
jmp 0x403d7b
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0
push str.Version
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x403d41
push str.KClientEnvironment::_GetDxVersionInRegister
push 0x28b
push str._nRetCode
push str.KGLOG_PROCESS_ERROR__s__at_line__d_in__s_n
push 7
call fcn.004077c0
add esp, 0x14
jmp 0x403d7b
lea eax, [esp + 0x10]
lea edx, [eax + 2]
jmp 0x403d50
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403d50
sub eax, edx
sar eax, 1
mov esi, eax
push esi
lea ecx, [esp + 0x14]
push ecx
push edi
call fcn.00416872
mov word [edi + esi*2], 0
add esp, 0xc
mov esi, 1
mov eax, dword [esp + 8]
test eax, eax
je 0x403d8a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x21c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00416863
add esp, 0x220
ret

Function at 0x404720
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404739
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404774
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x404770
lea ebx, [ebx]
cmp esi, eax
jae 0x404774
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404760
cmp esi, eax
jb 0x40477a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x406470
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x42f498
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x43e0a0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor edi, edi
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
call fcn.00406050
mov eax, str.BenchmarkResult.ini
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4064c7
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x10]
call fcn.00406540
push 0xffffffffffffffff
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push edi
mov ecx, esi
mov word [esi + 4], di
call fcn.00406050
cmp dword [esp + 0x24], 8
jb 0x40650c
mov eax, dword [esp + 0x10]
push eax
call fcn.004086fd
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret

Function at 0x406780
Capabilities:
Get file version info

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push ebx
push ebp
xor ebp, ebp
push edi
push ebp
lea ebx, [esi + 8]
push eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
mov dword [esi + 4], ebp
mov word [ebx], bp
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, ebp
je 0x406810
push edi
call fcn.00408702
add esp, 4
cmp eax, ebp
mov dword [esi + 4], eax
je 0x406810
mov ecx, dword [esp + 0x18]
push eax
push edi
push ebp
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x406810
mov ecx, dword [esi + 4]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
push str.VarFileInfoTranslation
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x406810
mov eax, dword [esp + 0xc]
movzx edx, word [eax + 2]
movzx eax, word [eax]
push edx
push eax
push str._04x_04x
push 0x10
push ebx
call fcn.00416bb5
add esp, 0x14
pop edi
lea eax, [ebp + 1]
pop ebp
pop ebx
add esp, 8
ret 4
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x406823
push eax
call fcn.004086fd
add esp, 4
mov dword [esi + 4], ebp
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
Function at 0x4068f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x21c
mov eax, dword [0x43e0a0]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [esp + 0x220]
push ebx
xor ebx, ebx
test eax, eax
mov dword [esp + 4], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ebx
jne 0x40693e
push str.KG_IsAutoUpdateEnabled
push 0x5d
push str.cszVersionType
push str.KGLOG_PROCESS_ERROR__s__at_line__d_in__s_n
push 7
call fcn.004077c0
add esp, 0x14
jmp 0x406a39
cmp word [eax], bx
jne 0x406963
push str.KG_IsAutoUpdateEnabled
push 0x5e
push str.cszVersionType_0_
push str.KGLOG_PROCESS_ERROR__s__at_line__d_in__s_n
push 7
call fcn.004077c0
add esp, 0x14
jmp 0x406a39
test esi, esi
jne 0x406987
push str.KG_IsAutoUpdateEnabled
push 0x5f
push str.pnRetEnableFlag
push str.KGLOG_PROCESS_ERROR__s__at_line__d_in__s_n
push 7
call fcn.004077c0
add esp, 0x14
jmp 0x406a39
push eax
push str.SOFTWAREKingsoftJX3_s
lea eax, [esp + 0x18]
push 0x104
push eax
mov dword [esi], ebx
call fcn.00416bb5
add esp, 0x10
test eax, eax
jg 0x4069c2
push str.KG_IsAutoUpdateEnabled
push 0x66
push str.nRetCode___0
push str.KGLOG_PROCESS_ERROR__s__at_line__d_in__s_n
push 7
call fcn.004077c0
add esp, 0x14
jmp 0x406a39
cmp eax, 0x104
jb 0x4069e6
push str.KG_IsAutoUpdateEnabled
push 0x67
push str.nRetCode____countof_szSubKey_
push str.KGLOG_PROCESS_ERROR__s__at_line__d_in__s_n
push 7
call fcn.004077c0
add esp, 0x14
jmp 0x406a39
lea ecx, [esp + 4]
push ecx
mov ebx, 1
push ebx
push 0
lea edx, [esp + 0x1c]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406a39
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push str.ScheduleJobFlag
push edx
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406a39
cmp dword [esp + 0xc], ebx
jb 0x406a39
mov dword [esi], ebx
mov eax, dword [esp + 4]
test eax, eax
je 0x406a48
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x21c]
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00416863
add esp, 0x21c
ret
Function at 0x407020
Capabilities:
Set registry value

Disassembly:
sub esp, 0x220
mov eax, dword [0x43e0a0]
xor eax, esp
mov dword [esp + 0x21c], eax
mov eax, dword [esp + 0x224]
push esi
push edi
push eax
push str.SOFTWAREKingsoftJX3_s
lea eax, [esp + 0x20]
xor edi, edi
push 0x104
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call fcn.00416bb5
mov esi, eax
add esp, 0x10
cmp esi, edi
jg 0x40707e
push str._SetScheduleJobRegisterFlag
push 0x12e
push str.nRetCode___0
jmp 0x4070cf
cmp esi, 0x104
jb 0x407097
push str._SetScheduleJobRegisterFlag
push 0x12f
push str.nRetCode____countof_szSubKey_
jmp 0x4070cf
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push edi
push 0x20006
push edi
push edi
push edi
lea eax, [esp + 0x34]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, edi
je 0x407107
push str._SetScheduleJobRegisterFlag
push 0x135
push str.nRetCode__ERROR_SUCCESS
push str.KGLOG_PROCESS_ERROR__s__at_line__d_in__s_n
push 7
call fcn.004077c0
add esp, 0x14
push esi
push str.Failed_to_set_register_flag_for_schedule_job__Error_code:__d
push 7
call fcn.004077c0
add esp, 0xc
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.00416863
add esp, 0x220
ret
mov edx, dword [esp + 0xc]
push 4
lea ecx, [esp + 0x18]
push ecx
push 4
push edi
push str.ScheduleJobFlag
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp esi, edi
je 0x407133
push str._SetScheduleJobRegisterFlag
push 0x13b
jmp 0x4070ca
mov ecx, dword [esp + 0x224]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.00416863
add esp, 0x220
ret
Function at 0x407b00
Capabilities:
Read .ini file

Disassembly:
push esi
xor esi, esi
cmp byte [eax + 0x208], 0
jne 0x407b1a
push str.KIniOperator::GetInteger
push 0x4a
push str.m_bInit
jmp 0x407b4e
test edx, edx
jne 0x407b2c
push str.KIniOperator::GetInteger
push 0x4b
push str.cpszSection
jmp 0x407b4e
test ecx, ecx
jne 0x407b3e
push str.KIniOperator::GetInteger
push 0x4c
push str.cpszKeyName
jmp 0x407b4e
test edi, edi
jne 0x407b63
push str.KIniOperator::GetInteger
push 0x4d
push str.pnValue
push str.KGLOG_PROCESS_ERROR__s__at_line__d_in__s_n
push 7
call fcn.004077c0
add esp, 0x14
mov eax, esi
pop esi
ret 4
push eax
mov eax, dword [esp + 0xc]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [edi], eax
mov eax, 1
pop esi
ret 4

Function at 0x4092b3
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x43e0a0]
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 - 0xc]
jne 0x4092f0
push 0x430c50
push 4
push eax
call fcn.0041ae98
push eax
call fcn.00404330
add esp, 0x10
jmp 0x409302
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40936d
push edi
call fcn.00417aef
mov edi, dword [eax]
call fcn.00417aef
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.004174e9
add esp, 0x18
mov ebx, eax
call fcn.00417aef
cmp dword [eax], 0
je 0x40934d
call fcn.00417aef
push dword [eax]
call fcn.0040925d
pop ecx
jmp 0x409354
call fcn.00417aef
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x40936d
cmp ebx, esi
jae 0x40936d
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x40936f
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00416863
leave
ret
Function at 0x40b163
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x42ebb5
call fcn.0041aaed
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.00411071
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x40b1ae
call fcn.00411071
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x40b1bf
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x40b1cc
or eax, 0xffffffff
jmp 0x40b328
mov ecx, esi
call fcn.0040ac88
mov dword [ebp - 0x14], eax
call fcn.0040dd33
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x40b24a
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x40b24a
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40b24a
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00408d4c
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x40b24a
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x40b24a
mov ecx, ebx
call fcn.0040b5d7
test eax, eax
je 0x40b24a
push 0
mov ecx, ebx
call fcn.0040b5f2
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0040f668
push dword [ebp - 0x14]
call fcn.0040dc8b
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0040af6b
xor edi, edi
cmp eax, edi
je 0x40b2a7
test byte [esi + 0x3c], 0x10
je 0x40b291
push 4
pop edi
mov ecx, esi
call fcn.0040b517
test ax, 0x100
je 0x40b287
push 5
pop edi
push edi
mov ecx, esi
call fcn.0040d821
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x40b2a7
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0040b659
or dword [ebp - 4], 0xffffffff
jmp 0x40b2d2
cmp dword [ebp - 0x28], edi
je 0x40b2e0
push 1
mov ecx, ebx
call fcn.0040b5f2
cmp dword [ebp - 0x2c], edi
je 0x40b2f0
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x40b309
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x40b309
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.0040acc2
cmp dword [esi + 0x58], edi
je 0x40b325
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0041ab59
ret
Function at 0x410782
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 0x4107c5
call fcn.00411071
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4107c5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4107e0
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0041033c
test ebx, ebx
mov esi, eax
je 0x4107de
test edi, edi
je 0x4107de
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4133a7
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 0x4133d5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4133f3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00413311
jmp 0x4133f3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4133f3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00413311
test edi, edi
mov eax, edi
jne 0x4133dd
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4442d8]
test ecx, ecx
je 0x4134b6
jmp 0x4133a6
ret 8

Function at 0x416863
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43e0a0]
jne 0x41686d
repz ret
jmp fcn.0041d872

Function at 0x41709d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x4170ca
call fcn.00417b02
mov dword [eax], esi
call fcn.00417aef
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0041cdde
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4170a6
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4170f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00417b15
pop ecx
call fcn.00417aef
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x417120
test al, 1
je 0x417120
test byte [esp + 0xc], 2
je 0x417120
call fcn.00417b02
mov dword [eax], 5
call fcn.00417aef
mov dword [eax], 0xd
jmp 0x4170f0
xor eax, eax
pop esi
ret
Function at 0x41b942
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 + 0x43e0d0]
je 0x41b95d
inc edi
cmp edi, 0x17
jb 0x41b94e
cmp edi, 0x17
jae 0x41badd
push ebp
push 3
call fcn.004276e9
cmp eax, 1
pop ecx
je 0x41baa9
push 3
call fcn.004276e9
test eax, eax
pop ecx
jne 0x41b991
cmp dword [0x43dc88], 1
je 0x41baa9
cmp ebx, 0xfc
je 0x41badc
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x444398
push ebp
call fcn.0042064c
add esp, 0xc
test eax, eax
je 0x41b9c7
push esi
push esi
push esi
push esi
push esi
call fcn.0041cce2
add esp, 0x14
push 0x104
mov esi, 0x4443b1
push esi
push 0
mov byte [0x4444b5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41ba0b
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0042064c
add esp, 0xc
test eax, eax
je 0x41ba0b
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0041cce2
add esp, 0x14
push esi
call fcn.004206c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41ba50
push esi
call fcn.004206c0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4446ac
push 0x432dc4
sub ecx, eax
push ecx
push eax
call fcn.00421e50
add esp, 0x14
test eax, eax
je 0x41ba50
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0041cce2
add esp, 0x14
jmp 0x41ba52
xor esi, esi
push 0x432dc0
push ebx
push ebp
call fcn.00427678
add esp, 0xc
test eax, eax
je 0x41ba72
push esi
push esi
push esi
push esi
push esi
call fcn.0041cce2
add esp, 0x14
push dword [edi*8 + 0x43e0d4]
push ebx
push ebp
call fcn.00427678
add esp, 0xc
test eax, eax
je 0x41ba94
push esi
push esi
push esi
push esi
push esi
call fcn.0041cce2
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004274bb
add esp, 0xc
jmp 0x41badc
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x41badc
cmp ebp, 0xffffffff
je 0x41badc
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x43e0d4]
push dword [esi]
call fcn.004206c0
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 0x4274bb
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0041c506
xor ebx, ebx
cmp dword [0x444e98], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x427591
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x427671
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x427671
push eax
call fcn.0041c498
mov dword [esp], 0x433400
push edi
mov dword [0x444e98], eax
call esi
push eax
call fcn.0041c498
mov dword [esp], 0x4333ec
push edi
mov dword [0x444e9c], eax
call esi
push eax
call fcn.0041c498
mov dword [0x444ea0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0041ac25
test eax, eax
pop ecx
pop ecx
je 0x42755f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041cce2
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x427591
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0041c498
cmp eax, ebx
pop ecx
mov dword [0x444ea8], eax
je 0x427591
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041c498
pop ecx
mov dword [0x444ea4], eax
mov eax, dword [0x444ea4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x427616
cmp dword [0x444ea8], ecx
je 0x427616
push eax
call fcn.0041c50f
push dword [0x444ea8]
mov esi, eax
call fcn.0041c50f
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x427616
cmp edi, ebx
je 0x427616
call esi
cmp eax, ebx
je 0x4275e3
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4275e3
test byte [ebp - 0x18], 1
jne 0x427616
lea eax, [ebp - 0x10]
push eax
call fcn.0041ac5c
test eax, eax
pop ecx
je 0x4275fe
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041cce2
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x42760d
or dword [ebp + 0x10], 0x200000
jmp 0x427651
or dword [ebp + 0x10], 0x40000
jmp 0x427651
mov eax, dword [0x444e9c]
cmp eax, dword [ebp - 8]
je 0x427651
push eax
call fcn.0041c50f
cmp eax, ebx
pop ecx
je 0x427651
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x427651
mov eax, dword [0x444ea0]
cmp eax, dword [ebp - 8]
je 0x427651
push eax
call fcn.0041c50f
cmp eax, ebx
pop ecx
je 0x427651
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x444e98]
call fcn.0041c50f
cmp eax, ebx
pop ecx
je 0x427671
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x427673
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42e646
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x43e0a0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0042e5db
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.004193c0
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 0x42e695
cmp dword [ebp - 0x1c], 5
jb 0x42e6ad
jmp 0x42e6a9
cmp dword [ebp - 0x10], 1
jne 0x42e6ad
cmp dword [ebp - 0x1c], 4
ja 0x42e6a9
jne 0x42e6ad
cmp dword [ebp - 0x18], 0
jbe 0x42e6ad
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4345ac
call fcn.0042e4af
test eax, eax
jge 0x42e6ce
mov byte [0x445c84], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00416863
add ebp, 0x78
leave
ret