joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ac48
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x484c64]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ebx
push edi
xor ebx, ebx
xor eax, eax
cmp ecx, ebx
lea edi, [ebp - 0x14]
mov dword [ebp - 0x18], ebx
stosd dword es:[edi], eax
lea edi, [ebp - 0x2c]
mov dword [ebp - 0x30], ebx
stosd dword es:[edi], eax
lea edi, [ebp - 0x34]
mov dword [ebp - 0x38], ebx
stosd dword es:[edi], eax
jne 0x41ac85
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
jmp 0x41ad1d
mov al, byte [ecx]
mov byte [ebp - 0x10], al
xor eax, eax
mov byte [ebp - 0xf], bl
lea edi, [ebp - 0xe]
stosd dword es:[edi], eax
push 0x467d30
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push 0xa
push eax
call fcn.004486ac
lea eax, [ebp - 0x10]
push eax
push str.Checking_space_of_drive_:__s_n
push 0x80
push 0x4866f8
call fcn.00401000
add esp, 0x1c
call fcn.0041bef1
test eax, eax
jne 0x41acea
call fcn.004298ba
mov eax, dword [0x496e74]
cmp eax, ebx
je 0x41ac7a
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
call eax
jmp 0x41ac7a
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov eax, dword [ebp - 0x20]
imul eax, dword [ebp - 0x24]
imul eax, dword [ebp - 0x1c]
xor edx, edx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00447b4c
leave
ret

Function at 0x41ae16
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
call fcn.0041beb7
test eax, eax
je 0x41ae30
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 0x41ae73
push edi
push str.Could_not_get_temp_path_____hr_d
push 0x400
push 0x4866f8
call fcn.00401000
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x41ae85
push dword [ebp + 0xc]
call fcn.0040ab20
push dword [ebp + 0xc]
call fcn.0044aa00
pop ecx
pop ecx
pop edi
pop ebp
ret
Function at 0x41bd11
Capabilities:
Check os version

Disassembly:
cmp dword [0x496998], 0
jne 0x41bda5
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov edi, 0x496998
push edi
mov dword [0x496998], 0x9c
call esi
test eax, eax
jne 0x41bd49
push edi
mov dword [0x496998], 0x94
call esi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x41bd81
push str.IsWow64Process
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x41bd7a
push 0x496994
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x49699c], 5
pop edi
pop esi
jne 0x41bda5
cmp dword [0x4969a0], 2
jne 0x41bda5
xor eax, eax
inc eax
cmp byte [0x496a32], al
jne 0x41bda5
mov dword [0x4969a0], eax
ret

Function at 0x41cf9c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
push dword [esp + 0x14]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
movzx eax, ax
push eax
push 6
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x41cff8
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41cff8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x41cff8
mov ebx, eax
xor ecx, ecx
movzx eax, word [ebx]
inc ebx
inc ebx
test ax, ax
je 0x41cff2
cmp ecx, edi
movzx esi, ax
je 0x41cffe
lea ebx, [ebx + esi*2]
inc ecx
cmp ecx, 0x10
jl 0x41cfde
xor eax, eax
pop edi
pop esi
pop ebx
ret
xor ecx, ecx
push 2
lea edi, [esi + 1]
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042abfd
pop ecx
mov edi, eax
test edi, edi
je 0x41d032
push esi
push ebx
lea eax, [esi + 1]
push eax
push edi
call fcn.0044c485
add esp, 0x10
and word [edi + esi*2], 0
mov eax, edi
jmp 0x41cffa
Function at 0x4208fb
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push str.CCPU_constructor
mov esi, ecx
push 0x80
push 0x4866f8
mov dword [esi], vtable.CCPU.0
call fcn.00401000
add esp, 0xc
xor ebx, ebx
xor ecx, ecx
lea eax, [esi + 0x14]
mov byte [esi + ecx + 0xc], bl
mov dword [eax - 4], ebx
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
inc ecx
add eax, 0x10
cmp ecx, 2
jl 0x420929
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x10]
mov dword [esi + 8], eax
mov dword [esi + 4], ebx
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x420b68
Capabilities:
Create thread
Get system information on windows
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
mov ebx, ecx
cmp byte [ebx + 0xd], 0
jne 0x420b7e
push 1
call fcn.00420961
test byte [ebx + 0x2c], 4
jne 0x420b93
mov ecx, ebx
call fcn.00420a16
test al, al
je 0x420c27
push esi
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
test eax, eax
je 0x420c26
xor ecx, ecx
test esi, esi
mov dword [ebp - 4], ecx
jbe 0x420c26
push edi
xor esi, esi
inc esi
shl esi, cl
test dword [ebp - 8], esi
je 0x420c13
lea ecx, [ebp - 0xc]
push ecx
push 4
push ebx
xor eax, eax
push 0x420b5c
push eax
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
je 0x420c13
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
test eax, eax
je 0x420c13
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx + 4], 1
ja 0x420c25
mov ecx, dword [ebp - 4]
inc ecx
cmp ecx, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
jb 0x420bc7
pop edi
pop esi
mov eax, dword [ebx + 4]
pop ebx
leave
ret
Function at 0x421a31
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 0x421a80
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041c9fd
push eax
push str.GetFileVersionInfoSize_failed_with__s_n
push 0x80
push 0x4866f8
call fcn.00401000
add esp, 0x14
xor eax, eax
xor edx, edx
jmp 0x421b42
push eax
call fcn.0042abfd
cmp eax, esi
pop ecx
mov dword [ebp - 4], eax
jne 0x421aa1
push str.Can_not_allocate_memory._n
push 0x4866f8
call fcn.00419d26
pop ecx
pop ecx
jmp 0x421a77
push eax
push dword [ebp - 8]
push esi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x421ad8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041c9fd
push eax
push str.GetFileVersionInfo_failed_with__s_n
push 0x4866f8
call fcn.00419d26
push dword [ebp - 4]
call fcn.0042abf8
jmp 0x421a74
push ebx
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x46853c
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x421b18
cmp dword [ebp - 0xc], esi
je 0x421b18
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.0042abf8
pop ecx
mov eax, edi
mov edx, esi
pop edi
jmp 0x421b41
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041c9fd
push eax
push str.VerQueryValue_failed_with__s_n
push 0x4866f8
call fcn.00419d26
push ebx
call fcn.0042abf8
add esp, 0x14
xor eax, eax
xor edx, edx
pop ebx
pop esi
leave
ret
Function at 0x424530
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x140
lea ebp, [esp - 4]
mov eax, dword [0x484c64]
xor eax, ebp
mov dword [ebp + 0x140], eax
push 0x54
mov eax, 0x46318a
call fcn.0044ba5a
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 [0x496c88], bl
mov dword [ebp - 0x18], eax
mov esi, 0x496c88
jne 0x42459c
cmp edi, ebx
je 0x4245b1
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [0x496c88], bl
je 0x4245b1
cmp edi, ebx
je 0x4245b1
push esi
call fcn.0044aa00
push eax
push edi
push esi
call fcn.00448a08
add esp, 0x10
call fcn.0041bed5
test eax, eax
je 0x42470d
cmp edi, ebx
je 0x4245d4
push edi
call fcn.00403600
test eax, eax
pop ecx
mov dword [ebp - 0x1c], 1
jne 0x4245d7
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x14], ebx
mov esi, 0xffdc
je 0x424612
cmp dword [ebp - 0x10], ebx
je 0x424612
cmp dword [ebp - 0x18], ebx
je 0x424612
push dword [ebp - 0x14]
call fcn.0044aa00
push dword [ebp - 0x10]
add esi, 0xfffffffa
sub esi, eax
call fcn.0044aa00
push dword [ebp - 0x18]
sub esi, eax
call fcn.0044aa00
sub esi, eax
add esp, 0xc
sub esi, 3
cmp edi, ebx
je 0x4246f9
cmp dword [ebp - 0x1c], ebx
je 0x424644
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x424667
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x424667
cmp dword [ebp + 0x1c], ebx
jne 0x424667
cmp dword [ebp + 0x20], esi
jae 0x424667
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 0x42471d
cmp dword [0x496d8c], ebx
je 0x4246f9
push edi
lea ecx, [ebp - 0x60]
call fcn.00402f00
mov ecx, dword [0x496d8c]
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 4], ebx
call fcn.0042219e
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.00401c10
mov eax, dword [0x496d8c]
mov ecx, dword [eax + 4]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00421bb0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x20]
call fcn.00421b45
test al, al
jne 0x4246f9
push edi
lea ecx, [ebp - 0x44]
call fcn.00402f00
mov ecx, dword [0x496d8c]
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 4], esi
call fcn.004244e0
or dword [ebp - 4], 0xffffffff
push ebx
push esi
lea ecx, [ebp - 0x44]
call fcn.00401c10
push edi
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.004222cb
add esp, 0x10
jmp 0x42471d
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.00447b4c
add ebp, 0x144
leave
ret
Function at 0x428abe
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 0x428b5f
call fcn.00428405
lea esi, [edi + 0x188]
mov eax, dword [esi + 4]
push esi
push dword [eax]
lea ecx, [ebp - 0x18]
call fcn.0040b6c0
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.0040b6c0
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 0x428b47
lea ecx, [ebp - 8]
call fcn.004064c0
push dword [ebp + 8]
mov ecx, eax
call fcn.0040b780
test eax, eax
je 0x428b6b
lea ecx, [ebp - 8]
call fcn.00406460
lea ecx, [ebp - 0x18]
call fcn.00406460
push esi
push dword [esi + 4]
lea ecx, [ebp - 0x10]
call fcn.0040b6c0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.00408740
test al, al
je 0x428b1d
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
pop edi
pop esi
leave
ret 4
lea ecx, [ebp - 0x18]
call fcn.004064c0
cmp dword [eax + 0x18], 0x10
jb 0x428b7e
mov eax, dword [eax + 4]
jmp 0x428b81
add eax, 4
push 0x10
push 0
push eax
call fcn.0044d279
add esp, 0xc
jmp 0x428b65
Function at 0x42f514
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x42f54d
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.0042f4d7
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00401ab0
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x4310f8
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 0x43113b
call fcn.00432c90
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 0x43113b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x431156
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00430caf
test ebx, ebx
mov esi, eax
je 0x431154
test edi, edi
je 0x431154
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x438471
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x4384b7
call fcn.00432c90
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4384b7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x4384fa
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x4384e3
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4384e3
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4384f7
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x439765
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 0x439793
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4397b1
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004396cf
jmp 0x4397b1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4397b1
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004396cf
test edi, edi
mov eax, edi
jne 0x43979b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x498a50]
test ecx, ecx
je 0x439874
jmp 0x439764
ret 8
Function at 0x447b4c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x484c64]
jne 0x447b56
repz ret
jmp fcn.004524bc

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x4596c7
call fcn.0044d721
mov dword [eax], esi
call fcn.0044d70e
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00448b66
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4596a3
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4596f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0044d734
pop ecx
call fcn.0044d70e
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x45971d
test al, 1
je 0x45971d
test byte [esp + 0xc], 2
je 0x45971d
call fcn.0044d721
mov dword [eax], 5
call fcn.0044d70e
mov dword [eax], 0xd
jmp 0x4596ed
xor eax, eax
pop esi
ret
Function at 0x45be7a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00451f00
xor ebx, ebx
cmp dword [0x4997f4], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x45bf4f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x45beba
xor eax, eax
jmp 0x45c013
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x474f48
push edi
call esi
cmp eax, ebx
je 0x45beb3
push eax
call fcn.00451e9d
mov dword [esp], 0x474f38
push edi
mov dword [0x4997f4], eax
call esi
push eax
call fcn.00451e9d
mov dword [esp], 0x474f24
push edi
mov dword [0x4997f8], eax
call esi
push eax
call fcn.00451e9d
mov dword [0x4997fc], eax
lea eax, [ebp - 8]
push eax
call fcn.004492c5
test eax, eax
pop ecx
pop ecx
je 0x45bf1d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00448a6a
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x45bf4f
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00451e9d
cmp eax, ebx
pop ecx
mov dword [0x499804], eax
je 0x45bf4f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00451e9d
pop ecx
mov dword [0x499800], eax
mov eax, dword [0x499800]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x45bfc8
cmp dword [0x499804], esi
je 0x45bfc8
push eax
call fcn.00451f09
pop ecx
call eax
cmp eax, ebx
je 0x45bf95
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x499804]
call fcn.00451f09
pop ecx
call eax
test eax, eax
je 0x45bf95
test byte [ebp - 0x18], 1
jne 0x45bfc8
lea eax, [ebp - 0xc]
push eax
call fcn.004492fc
test eax, eax
pop ecx
je 0x45bfb0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00448a6a
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x45bfbf
or dword [ebp + 0x10], 0x200000
jmp 0x45bff9
or dword [ebp + 0x10], 0x40000
jmp 0x45bff9
mov eax, dword [0x4997f8]
cmp eax, esi
je 0x45bff9
push eax
call fcn.00451f09
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x45bff9
mov eax, dword [0x4997fc]
cmp eax, esi
je 0x45bff9
push dword [ebp - 4]
push eax
call fcn.00451f09
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 [0x4997f4]
call fcn.00451f09
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x460058
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x484c64]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0045ffed
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.00447ba0
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 0x4600a7
cmp dword [ebp - 0x1c], 5
jb 0x4600bf
jmp 0x4600bb
cmp dword [ebp - 0x10], 1
jne 0x4600bf
cmp dword [ebp - 0x1c], 4
ja 0x4600bb
jne 0x4600bf
cmp dword [ebp - 0x18], 0
jbe 0x4600bf
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x475878
call fcn.0045fec1
test eax, eax
jge 0x4600e0
mov byte [0x496834], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00447b4c
add ebp, 0x78
leave
ret
Function at 0x408983
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x4085d8
call fcn.0040899d
xor dword [esi], edi
dec ecx
inc esi
cmp esi, ebx
jne fcn.00408983
mov eax, 0xaf08dc1f
add ecx, eax
ret
Function at 0x403194
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4031d0
movzx eax, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x4031f0
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004056f8
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x403498
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00405488
test esi, esi
jne 0x4034ce
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405578
jmp 0x4034ec
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040339c
mov edi, eax
test esi, esi
je 0x4034ec
cmp dword [ebx], 0
je 0x4034ec
dec esi
jmp 0x4034d5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40435c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x504020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4043f4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4043d4
xor eax, eax
push ebp
push 0x4043cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x404410
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4043d4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x504020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x504020], ax
mov esp, ebp
pop ebp
ret

Function at 0x405234
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x50f04c], 0
je 0x405295
cmp word [0x50f220], 0xd7b2
jne 0x40525d
cmp dword [0x50f228], 0
jbe 0x40525d
mov eax, 0x50f21c
call dword [0x50f238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x504784
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4052bc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x50402c], 0
jne 0x4052b1
push 0
push 0x50477c
push 0x504784
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40540c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x504034], 0
je 0x405432
mov edx, esi
mov eax, ebx
call dword [0x504034]
jmp 0x405441
mov eax, 8
call fcn.00402f80
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x50f04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4053d4
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc