joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405ad9
Capabilities:
Set current directory

Disassembly:
sub esp, 0x108
mov eax, dword [0x44bd40]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push edi
xor edi, edi
push edi
mov esi, ecx
call fcn.00403990
test eax, eax
je 0x405b28
push str.Entering_MSI_Update_Plug_In_n
push 2
push 0x44d160
call fcn.00401110
push str.CMSIUpdatePlugIn::InitInstance___n
push 0x44d160
call fcn.00406f12
add esp, 0x14
push str.BOTH
lea ecx, [esi + 0x244]
call fcn.00410cfa
test eax, eax
je 0x405b41
push str.MSI_Update_Plug_In__SkipIfReinstall__true___exiting_with_ERROR_SUCCESS_n
push 4
push 0x44d160
call fcn.00401110
add esp, 0xc
push 0
mov ecx, esi
call fcn.004057e0
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00421e14
add esp, 0x108
ret
mov ecx, esi
call fcn.0041814c
mov ecx, esi
call fcn.00405830
test eax, eax
je 0x405b1f
lea edi, [esi + 0x248]
push str.FixME
mov ecx, edi
call fcn.004023d0
mov dword [esi + 0x3fc], eax
test eax, eax
mov eax, 0x43d194
jne 0x405b79
mov eax, str.was_NOT
push ebx
push eax
push str.FixME__s_specified_on_the_command_line._n
push 0x20
push 0x44d160
call fcn.00401110
add esp, 0x10
push str.stop
mov ecx, edi
call fcn.004023d0
test eax, eax
mov ebx, 1
je 0x405bbe
push str._stop_was_specified_on_the_command_line.
push 0x20
push 0x44d160
mov dword [esi + 0x400], ebx
call fcn.00401110
add esp, 0xc
push str.start
mov ecx, edi
call fcn.004023d0
test eax, eax
je 0x405be8
push str._start_was_specified_on_the_command_line.
push 0x20
push 0x44d160
mov dword [esi + 0x404], ebx
call fcn.00401110
add esp, 0xc
push str.restart
mov ecx, edi
call fcn.004023d0
test eax, eax
je 0x405c1e
push str._restart_was_specified_on_the_command_line.
push 0x20
push 0x44d160
mov dword [esi + 0x408], ebx
mov dword [esi + 0x400], ebx
mov dword [esi + 0x404], ebx
call fcn.00401110
add esp, 0xc
push 0x103
lea eax, [esp + 0x11]
push 0
push eax
mov byte [esp + 0x18], 0
call fcn.00421e30
lea ecx, [esp + 0x18]
push 0x104
push ecx
call fcn.0040f2e9
add esp, 0x14
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [esp + 0xc]
push eax
push str.CMSIUpdatePlugIn::InitInstance___current_path_set_to__s_n
push 0x44d160
call fcn.00406f12
mov ecx, dword [esp + 0x11c]
add esp, 0xc
mov eax, ebx
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.00421e14
add esp, 0x108
ret
Function at 0x40aa07
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x44bd40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.00421e30
add esp, 0xc
push 0
lea eax, [ebp - 0x108]
push eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
pop esi
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421e14
leave
ret

Function at 0x40ad25
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, esi
mov dword [ebp - 8], eax
jne 0x40ad74
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041244b
push eax
push str.GetFileVersionInfoSize_failed_with__s_n
push 0x80
push 0x44d160
call fcn.00401110
add esp, 0x14
xor eax, eax
xor edx, edx
jmp 0x40ae36
push eax
call fcn.0041615a
cmp eax, esi
pop ecx
mov dword [ebp - 4], eax
jne 0x40ad95
push str.Can_not_allocate_memory._n
push 0x44d160
call fcn.00406a88
pop ecx
pop ecx
jmp 0x40ad6b
push eax
push dword [ebp - 8]
push esi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x40adcc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041244b
push eax
push str.GetFileVersionInfo_failed_with__s_n
push 0x44d160
call fcn.00406a88
push dword [ebp - 4]
call fcn.0041615f
jmp 0x40ad68
push ebx
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x43c560
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40ae0c
cmp dword [ebp - 0xc], esi
je 0x40ae0c
mov eax, dword [ebp - 4]
mov esi, dword [eax + 8]
mov eax, dword [eax + 0xc]
push edi
xor edi, edi
xor ecx, ecx
push ebx
or edi, eax
or esi, ecx
call fcn.0041615f
pop ecx
mov eax, edi
mov edx, esi
pop edi
jmp 0x40ae35
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041244b
push eax
push str.VerQueryValue_failed_with__s_n
push 0x44d160
call fcn.00406a88
push ebx
call fcn.0041615f
add esp, 0x14
xor eax, eax
xor edx, edx
pop ebx
pop esi
leave
ret
Function at 0x40d8a6
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x140
lea ebp, [esp - 4]
mov eax, dword [0x44bd40]
xor eax, ebp
mov dword [ebp + 0x140], eax
push 0x54
mov eax, 0x439a4c
call fcn.0042501a
mov eax, dword [ebp + 0x14c]
mov edi, dword [ebp + 0x158]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x150]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x154]
xor ebx, ebx
cmp byte [0x45d2c8], bl
mov dword [ebp - 0x18], eax
mov esi, 0x45d2c8
jne 0x40d912
cmp edi, ebx
je 0x40d927
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [0x45d2c8], bl
je 0x40d927
cmp edi, ebx
je 0x40d927
push esi
call fcn.00423fc0
push eax
push edi
push esi
call fcn.00422c32
add esp, 0x10
call fcn.004118e7
test eax, eax
je 0x40da83
cmp edi, ebx
je 0x40d94a
push edi
call fcn.0040aa07
test eax, eax
pop ecx
mov dword [ebp - 0x1c], 1
jne 0x40d94d
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x14], ebx
mov esi, 0xffdc
je 0x40d988
cmp dword [ebp - 0x10], ebx
je 0x40d988
cmp dword [ebp - 0x18], ebx
je 0x40d988
push dword [ebp - 0x14]
call fcn.00423fc0
push dword [ebp - 0x10]
add esi, 0xfffffffa
sub esi, eax
call fcn.00423fc0
push dword [ebp - 0x18]
sub esi, eax
call fcn.00423fc0
sub esi, eax
add esp, 0xc
sub esi, 3
cmp edi, ebx
je 0x40da6f
cmp dword [ebp - 0x1c], ebx
je 0x40d9ba
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x40d9dd
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x40d9dd
cmp dword [ebp + 0x1c], ebx
jne 0x40d9dd
cmp dword [ebp + 0x20], esi
jae 0x40d9dd
push edi
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push edi
push ebx
push ebx
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, esi
jmp 0x40da93
cmp dword [0x45d3cc], ebx
je 0x40da6f
push edi
lea ecx, [ebp - 0x60]
call fcn.004033c0
mov ecx, dword [0x45d3cc]
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 4], ebx
call fcn.0040b431
mov ecx, dword [eax]
mov eax, dword [eax + 4]
or dword [ebp - 4], 0xffffffff
xor esi, esi
push ebx
mov dword [ebp - 0x20], ecx
inc esi
push esi
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x1c], eax
call fcn.00401ec0
mov eax, dword [0x45d3cc]
mov ecx, dword [eax + 4]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00411bb8
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x20]
call fcn.004119f7
test al, al
jne 0x40da6f
push edi
lea ecx, [ebp - 0x44]
call fcn.004033c0
mov ecx, dword [0x45d3cc]
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 4], esi
call fcn.0040d856
or dword [ebp - 4], 0xffffffff
push ebx
push esi
lea ecx, [ebp - 0x44]
call fcn.00401ec0
push edi
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.0040b5b3
add esp, 0x10
jmp 0x40da93
push edi
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x140]
xor ecx, ebp
call fcn.00421e14
add ebp, 0x144
leave
ret
Function at 0x40f39a
Capabilities:
Compare security identifiers

Disassembly:
push ebp
lea ebp, [esp - 0x124]
sub esp, 0x1a4
mov eax, dword [0x44bd40]
xor eax, ebp
mov dword [ebp + 0x120], eax
call fcn.004118e7
test eax, eax
je 0x40f3c6
xor eax, eax
inc eax
jmp 0x40f512
lea eax, [ebp - 0x60]
push ebx
xor ebx, ebx
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x7c]
push eax
push 8
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x6c], ebx
mov byte [ebp - 0x68], bl
mov byte [ebp - 0x67], bl
mov byte [ebp - 0x66], bl
mov byte [ebp - 0x65], bl
mov byte [ebp - 0x64], bl
mov byte [ebp - 0x63], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40f511
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x6c]
push ebx
push 2
push dword [ebp - 0x7c]
call esi
test eax, eax
jne 0x40f42f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x40f42f
xor eax, eax
jmp 0x40f510
push edi
push dword [ebp - 0x6c]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x6c]
push edi
push 2
push dword [ebp - 0x7c]
call esi
test eax, eax
je 0x40f527
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x40f527
cmp dword [edi], ebx
mov dword [ebp - 0x74], ebx
jbe 0x40f4f7
lea esi, [edi + 4]
push dword [esi]
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x40f4ea
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0xa0]
push eax
mov dword [ebp - 0x6c], 0x80
push dword [esi]
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidA]
test eax, eax
jne 0x40f4e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x534
jne 0x40f527
push str.NONE_MAPPED
lea eax, [ebp + 0xa0]
push 0x80
push eax
call fcn.00421daf
add esp, 0xc
mov dword [ebp - 0x78], 1
inc dword [ebp - 0x74]
mov eax, dword [ebp - 0x74]
add esi, 8
cmp eax, dword [edi]
jb 0x40f483
cmp dword [ebp - 0x70], ebx
je 0x40f505
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x78]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x120]
xor ecx, ebp
call fcn.00421e14
add ebp, 0x124
leave
ret
xor eax, eax
jmp 0x40f50f
Function at 0x40f65b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
call fcn.004118c9
test eax, eax
je 0x40f675
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
pop ebp
ret
push edi
push dword [ebp + 0xc]
push str.HPInstallerTemp
push 0
push 0
push 0x8023
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirA]
mov edi, eax
test edi, edi
je 0x40f6b8
push edi
push str.Could_not_get_temp_path_____hr_d
push 0x400
push 0x44d160
call fcn.00401110
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x40f6ca
push dword [ebp + 0xc]
call fcn.004010d0
push dword [ebp + 0xc]
call fcn.00423fc0
pop ecx
pop ecx
pop edi
pop ebp
ret

Function at 0x40f6cd
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x44bd40]
xor eax, ebp
mov dword [ebp + 0x84], eax
push esi
mov esi, dword [ebp + 0x90]
test esi, esi
jne 0x40f70c
push str.Trying_to_create_folder_with_pFolder__NULL___
push 8
push 0x44d160
call fcn.00401110
add esp, 0xc
jmp 0x40f7be
push esi
call fcn.00423fc0
test eax, eax
pop ecx
jne 0x40f71e
push str.Trying_to_create_folder_with_pFolder_______
jmp 0x40f6f8
push esi
call fcn.0040aa07
test eax, eax
pop ecx
je 0x40f731
xor eax, eax
inc eax
jmp 0x40f7c0
push 0x103
lea eax, [ebp - 0x7f]
push 0
push eax
mov byte [ebp - 0x80], 0
call fcn.00421e30
push 0x104
lea eax, [ebp - 0x80]
push eax
push esi
call fcn.0040f577
lea eax, [ebp - 0x80]
push eax
call fcn.0040f6cd
add esp, 0x1c
test eax, eax
je 0x40f7a6
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40f788
push esi
push str.Created_folder__s
push 0x20
push 0x44d160
call fcn.00401110
add esp, 0x10
jmp 0x40f729
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.CreateDirectory___s__failed.__error0x_x_n
push 8
push 0x44d160
call fcn.00401110
add esp, 0x14
jmp 0x40f7be
lea eax, [ebp - 0x80]
push eax
push str.CreateDirectory___s__failed.
push 8
push 0x44d160
call fcn.00401110
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp + 0x84]
xor ecx, ebp
pop esi
call fcn.00421e14
add ebp, 0x88
leave
ret
Function at 0x41174b
Capabilities:
Check os version

Disassembly:
cmp dword [0x45d538], 0
jne 0x4117df
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov edi, 0x45d538
push edi
mov dword [0x45d538], 0x9c
call esi
test eax, eax
jne 0x411783
push edi
mov dword [0x45d538], 0x94
call esi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4117bb
push str.IsWow64Process
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4117b4
push 0x45d534
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x45d53c], 5
pop edi
pop esi
jne 0x4117df
cmp dword [0x45d540], 2
jne 0x4117df
xor eax, eax
inc eax
cmp byte [0x45d5d2], al
jne 0x4117df
mov dword [0x45d540], eax
ret
Function at 0x414021
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 8], 0
push esi
push edi
mov edi, ecx
je 0x4140c2
call fcn.00413968
lea esi, [edi + 0x188]
mov eax, dword [esi + 4]
push esi
push dword [eax]
lea ecx, [ebp - 0x18]
call fcn.00401950
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
lea eax, [edi + 0x17c]
push eax
mov eax, dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0x10]
call fcn.00401950
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
push esi
push dword [esi + 4]
mov dword [ebp - 0x14], eax
jmp 0x4140aa
lea ecx, [ebp - 8]
call fcn.00401600
push dword [ebp + 8]
mov ecx, eax
call fcn.00401aa0
test eax, eax
je 0x4140ce
lea ecx, [ebp - 8]
call fcn.00401630
lea ecx, [ebp - 0x18]
call fcn.00401630
push esi
push dword [esi + 4]
lea ecx, [ebp - 0x10]
call fcn.00401950
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.00401270
test al, al
je 0x414080
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
pop edi
pop esi
leave
ret 4
lea ecx, [ebp - 0x18]
call fcn.00401600
cmp dword [eax + 0x18], 0x10
jb 0x4140e1
mov eax, dword [eax + 4]
jmp 0x4140e4
add eax, 4
push 0x10
push 0
push eax
call fcn.00426dbc
add esp, 0xc
jmp 0x4140c8
Function at 0x41a7db
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 0x41a809
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41a827
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041a745
jmp 0x41a827
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41a827
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0041a745
test edi, edi
mov eax, edi
jne 0x41a811
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x45da88]
test ecx, ecx
je 0x41a8ea
jmp 0x41a7da
ret 8

Function at 0x421e14
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44bd40]
jne 0x421e1e
repz ret
jmp fcn.0042933b

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x431a93
call fcn.004271f7
mov dword [eax], esi
call fcn.004271e4
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00422e88
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x431a6f
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x431ac2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042720a
pop ecx
call fcn.004271e4
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x431ae9
test al, 1
je 0x431ae9
test byte [esp + 0xc], 2
je 0x431ae9
call fcn.004271f7
mov dword [eax], 5
call fcn.004271e4
mov dword [eax], 0xd
jmp 0x431ab9
xor eax, eax
pop esi
ret
Function at 0x434d78
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0042b76f
xor ebx, ebx
cmp dword [0x4601f4], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x434e4d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x434db8
xor eax, eax
jmp 0x434f11
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4441c0
push edi
call esi
cmp eax, ebx
je 0x434db1
push eax
call fcn.0042b70c
mov dword [esp], 0x4441b0
push edi
mov dword [0x4601f4], eax
call esi
push eax
call fcn.0042b70c
mov dword [esp], 0x44419c
push edi
mov dword [0x4601f8], eax
call esi
push eax
call fcn.0042b70c
mov dword [0x4601fc], eax
lea eax, [ebp - 8]
push eax
call fcn.004232a5
test eax, eax
pop ecx
pop ecx
je 0x434e1b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00422d8c
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x434e4d
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0042b70c
cmp eax, ebx
pop ecx
mov dword [0x460204], eax
je 0x434e4d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042b70c
pop ecx
mov dword [0x460200], eax
mov eax, dword [0x460200]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x434ec6
cmp dword [0x460204], esi
je 0x434ec6
push eax
call fcn.0042b778
pop ecx
call eax
cmp eax, ebx
je 0x434e93
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x460204]
call fcn.0042b778
pop ecx
call eax
test eax, eax
je 0x434e93
test byte [ebp - 0x18], 1
jne 0x434ec6
lea eax, [ebp - 0xc]
push eax
call fcn.004232dc
test eax, eax
pop ecx
je 0x434eae
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00422d8c
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x434ebd
or dword [ebp + 0x10], 0x200000
jmp 0x434ef7
or dword [ebp + 0x10], 0x40000
jmp 0x434ef7
mov eax, dword [0x4601f8]
cmp eax, esi
je 0x434ef7
push eax
call fcn.0042b778
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x434ef7
mov eax, dword [0x4601fc]
cmp eax, esi
je 0x434ef7
push dword [ebp - 4]
push eax
call fcn.0042b778
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4601f4]
call fcn.0042b778
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4385f1
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x44bd40]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00438586
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.00421e30
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 0x438640
cmp dword [ebp - 0x1c], 5
jb 0x438658
jmp 0x438654
cmp dword [ebp - 0x10], 1
jne 0x438658
cmp dword [ebp - 0x1c], 4
ja 0x438654
jne 0x438658
cmp dword [ebp - 0x18], 0
jbe 0x438658
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x444264
call fcn.0043845a
test eax, eax
jge 0x438679
mov byte [0x45d2a4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00421e14
add ebp, 0x78
leave
ret
Function at 0x10022270
Capabilities:
Check for trap flag exception

Disassembly:
lea esp, [esp - 4]
pushfd
push eax
aad 0xa
push edx
mov edx, 0x4768
rol dl, 1
daa
push ebx
xor bx, ax
sahf
cmp edx, ebx
xor dx, dx
mov ax, 0x4889
push ecx
mov cx, 0xc990
div cx
aaa
shl dh, 3
xor dx, dx
mov ax, 0x9192
mov cx, 0x6951
div cx
mov eax, dword [esp + 0xc]
bswap ebx
not bl
bsf edx, ecx
neg dh
cmp ax, ax
shl dl, 2
push edx
pop ecx
push ecx
nop
bsf ecx, edx
mov ebx, dword [esp + 0x14]
push ebx
popfd
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0xc]
bswap ebx
mov ebx, dword [esp + 8]
lea esp, [esp + 0x18]
mov dword [esp], ebx
xor eax, eax
or ecx, 0x100
push edi
lea ebx, [ebx]
mov ebx, ecx
shr ebx, 7
mov edi, ecx
shr edi, 8
movzx edi, word [esi + edi*2]
and ebx, 1
neg ebx
sar ebx, 4
shr edi, 4
jmp 0x1002231f
add eax, dword [edx + edi*4]
add ecx, ecx
cmp ecx, 0x10000
jb 0x100222ed
pop edi
pop ebx
ret
and ebx, 0x7f
xor edi, ebx
jmp 0x1002230b

Function at 0x10022330
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 4]
pushfd
push ebx
shr bx, 4
push ecx
not ecx
push eax
das
push edx
shl cl, 4
bswap ebx
xadd eax, ecx
ror bx, 3
aam 0xa
bswap ecx
pop eax
push edx
shl dl, 0
bsf eax, edx
bt ebx, 1
aas
stc
bsf eax, edx
das
aam 0xa
neg cx
mov ecx, dword [esp + 8]
nop
neg dh
xchg edx, eax
xor edx, eax
mov eax, dword [esp + 4]
xor edx, ebx
mov ebx, dword [esp + 0x10]
push ebx
popfd
mov ebx, dword [esp + 0xc]
mov edx, dword [esp]
lea esp, [esp + 0x14]
mov dword [esp], ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
mov edx, 0x100
xor eax, eax
jmp 0x1002239d
push edi
or ecx, edx
add esi, esi
mov edi, edx
and edi, esi
add edi, edx
mov ebx, ecx
shr ebx, 8
add ebx, edi
mov edi, dword [ebp + 8]
movzx edi, word [edi + ebx*2]
mov ebx, ecx
shr ebx, 7
and ebx, 1
neg ebx
shr edi, 4
sar ebx, 4
and ebx, 0x7f
xor edi, ebx
mov ebx, dword [ebp + 0xc]
add eax, dword [ebx + edi*4]
add ecx, ecx
mov edi, ecx
xor edi, esi
not edi
and edx, edi
cmp ecx, 0x10000
jb 0x100223a0
pop edi
pop esi
mov ebx, dword [esp]
pushfd
push ecx
xor ecx, 0xb0
push ebx
or ecx, ebx
push eax
bswap eax
xchg bx, cx
daa
neg ebx
bswap ebx
das
bswap ebx
push edx
xor edx, edx
mov eax, 0xb041
mov ecx, 0x5613
div ecx
mov edx, dword [esp]
pop eax
das
sub bx, bx
neg cx
mov ecx, dword [esp + 8]
not bx
mov ebx, dword [esp + 4]
aas
inc eax
aas
mov eax, dword [esp + 0xc]
push eax
popfd
mov eax, dword [esp]
lea esp, [esp + 0x10]
lea esp, [esp + 4]
pop ebp
ret