joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407240
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x330
lea eax, [esp + 0x12c]
push esi
mov esi, dword [esp + 0x338]
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x104
push eax
push 0x418
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [esp + 0x134]
push ecx
call fcn.00406fa0
add esp, 4
test eax, eax
jne 0x4072ba
mov eax, dword [0x42843c]
lea edx, [esp + 0x34]
push 0xff
push edx
push 0x12
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [esp + 0x34]
push eax
push 0x41b
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x330
ret
movsx ecx, byte [esp + 0x134]
push ebx
push ecx
call fcn.00414280
mov ebx, eax
mov eax, dword [esp + 0x348]
add esp, 4
sub ebx, 0x61
test eax, eax
je 0x4072e3
call fcn.00406f20
jmp 0x407305
lea eax, [ebx + ebx*2]
mov cl, bl
shl eax, 2
add cl, 0x61
lea edx, [eax + 0x426cca]
lea eax, [eax + 0x426cc8]
push edx
push eax
push ecx
call fcn.00406eb0
add esp, 0xc
lea edx, [ebx + 0x41]
lea eax, [esp + 0xc]
push edx
push 0x42244c
push eax
call fcn.00413130
lea ecx, [esp + 0x18]
add esp, 0xc
mov dword [esp + 0x10], ecx
lea eax, [ebx + ebx*2]
xor ecx, ecx
lea edx, [esp + 0x18]
mov cx, word [eax*4 + 0x426cc8]
push 0xa
push edx
push ecx
call fcn.004150a0
mov eax, dword [0x42843c]
add esp, 0xc
lea ecx, [esp + 0x38]
lea edx, [esp + 0x18]
push 0xff
push ecx
push 0x17
push eax
mov dword [esp + 0x24], edx
call dword [sym.imp.USER32.dll_LoadStringA]
lea edx, [esp + 0x10]
lea eax, [esp + 0x23c]
push edx
push 0xff
push eax
push 0
lea ecx, [esp + 0x48]
push 0
push ecx
push 0x2400
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea edx, [esp + 0x23c]
push edx
push 0x41b
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop ebx
pop edi
pop esi
add esp, 0x330
ret
Function at 0x408820
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x21c
lea eax, [esp + 8]
push ebx
push ebp
push esi
push edi
xor edi, edi
push eax
push 0x20019
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionSharedDlls
push 0x80000002
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40885a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push ecx
push edx
mov edx, dword [esp + 0x20]
push 0
lea eax, [esp + 0x20]
push 0
lea ecx, [esp + 0x34]
push eax
push ecx
mov ebp, 8
push 0
push edx
mov dword [esp + 0x34], 0x208
mov dword [esp + 0x30], ebp
call ebx
cmp eax, 0x103
je 0x4088df
test eax, eax
jne 0x4088f7
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add ecx, eax
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
lea esi, [esi + ecx + 0x10]
push eax
mov eax, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x34]
inc edi
push ecx
push edx
push edi
push eax
mov dword [esp + 0x34], 0x208
mov dword [esp + 0x30], ebp
call ebx
cmp eax, 0x103
jne 0x408899
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x21c
ret

Function at 0x4099b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [0x42843c]
push ebx
push ebp
push esi
push edi
and ecx, 0xffff
push 0xc8
push ecx
push eax
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x4099dd
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
mov ecx, dword [0x42843c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4099f6
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x409a0a
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
mov eax, dword [esi]
mov edi, dword [esp + 0x18]
push eax
mov dword [edi], eax
call fcn.00413940
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x409a28
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
push ebx
push esi
call fcn.00409860
mov eax, dword [esp + 0x28]
add esp, 8
test eax, eax
je 0x409a67
cmp word [ebx], 0x4d42
je 0x409a62
push ebx
call fcn.004138a0
mov edx, dword [esp + 0x20]
mov dword [edi], 0
add esp, 4
mov eax, dword [edx]
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
mov ebp, 0xe
mov ecx, dword [edi]
sub ecx, ebp
push ecx
call fcn.00413940
mov edx, dword [esp + 0x20]
add esp, 4
test eax, eax
mov dword [edx], eax
jne 0x409a90
push ebx
call fcn.004138a0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
mov ecx, dword [edi]
mov edi, eax
sub ecx, ebp
lea esi, [ebp + ebx]
mov eax, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004138a0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
Function at 0x409b60
Capabilities:
Create process on windows

Disassembly:
mov edx, dword [esp + 0xc]
sub esp, 0x180
mov ecx, 0x11
xor eax, eax
push esi
push edi
mov edi, edx
mov esi, dword [esp + 0x190]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x198]
mov ecx, dword [esp + 0x18c]
push eax
push edx
push 0
push 0
push 0x20
push 0
push 0
push 0
push esi
push ecx
mov dword [edx], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, eax
test edi, edi
jne 0x409bf5
mov eax, dword [0x42843c]
lea edx, [esp + 8]
push 0x80
push edx
push 0x20
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [esp + 8]
push esi
lea ecx, [esp + 0x8c]
push eax
push ecx
call fcn.00413130
add esp, 0xc
lea edx, [esp + 0x88]
push 0x2000
push 0x4284e4
push edx
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, edi
pop edi
pop esi
add esp, 0x180
ret 0x10
Function at 0x40a9c0
Capabilities:
Shutdown system

Disassembly:
mov eax, dword [0x429028]
sub esp, 0x114
test eax, eax
push esi
mov esi, ecx
je 0x40aa2e
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
je 0x40aa3c
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
lea edx, [esp + 0x10]
push 0
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
jne 0x40aa3c
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x40aa75
mov edx, dword [esi + 0x3c]
lea ecx, [esp + 0x18]
push 0xff
push ecx
push 0x23
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
add esi, 0xe4
push 0x2030
lea eax, [esp + 0x1c]
push esi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop esi
add esp, 0x114
ret
mov eax, 1
pop esi
add esp, 0x114
ret

Function at 0x40b0c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x104
mov edx, dword [esp + 0x108]
mov eax, dword [esp + 0x114]
push ebx
push ebp
push esi
push edi
test edx, edx
mov ebx, ecx
mov dword [esp + 0x10], eax
jne 0x40b0e7
mov edx, 0x80000002
mov edi, dword [esp + 0x11c]
lea ebp, [esp + 0x14]
test edi, edi
jne 0x40b0fb
mov edi, 0x428f1c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebx]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jne 0x40b145
push ebx
push 0x2001f
lea ecx, [esp + 0x1c]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40b145
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 0x18
mov eax, dword [esp + 0x128]
lea edx, [esp + 0x12c]
push edx
mov edx, dword [esp + 0x124]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [ebx]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor ecx, ecx
pop edi
test eax, eax
sete cl
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x104
ret 0x18
Function at 0x40b190
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x104
test edx, edx
push ebx
push ebp
push esi
push edi
mov ebx, ecx
jne 0x40b1a9
mov edx, 0x80000002
mov edi, dword [esp + 0x11c]
lea ebp, [esp + 0x14]
test edi, edi
jne 0x40b1bd
mov edi, 0x428f1c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebx]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jne 0x40b212
lea ecx, [esp + 0x10]
lea eax, [esp + 0x14]
push ecx
push ebx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40b212
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 0x18
mov ecx, dword [esp + 0x12c]
mov edx, dword [esp + 0x128]
mov eax, dword [esp + 0x124]
push ecx
mov ecx, dword [esp + 0x124]
push edx
mov edx, dword [ebx]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40b250
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 0x18
mov eax, dword [ebx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret 0x18

Function at 0x40b270
Capabilities:
Delete registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x104
test edx, edx
push ebx
push ebp
push esi
push edi
mov ebx, ecx
jne 0x40b289
mov edx, 0x80000002
mov edi, dword [esp + 0x11c]
lea ebp, [esp + 0x14]
test edi, edi
jne 0x40b29d
mov edi, 0x428f1c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebx]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jne 0x40b2f2
lea ecx, [esp + 0x10]
lea eax, [esp + 0x14]
push ecx
push ebx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40b2f2
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 0xc
mov ecx, dword [esp + 0x120]
mov edx, dword [ebx]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x40b316
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 0xc
mov eax, dword [ebx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret 0xc
Function at 0x40c730
Capabilities:
Create process on windows
Delete file
Get common file path
Resume thread
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x850
lea eax, [esp + 0x364]
push esi
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x40c91d
lea ecx, [esp + 0x60]
lea edx, [esp + 0x36c]
push ecx
push 0
push 0x422cb8
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x40c91d
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x268]
push 0
lea edx, [esp + 0x168]
push ecx
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x6c]
push eax
push ecx
call fcn.00414010
add esp, 0x14
lea edx, [esp + 0x268]
lea eax, [esp + 0x164]
lea ecx, [esp + 8]
push str..BAT
push edx
push eax
lea edx, [esp + 0x6c]
push ecx
push edx
call fcn.00414bb0
add esp, 0x14
lea eax, [esp + 0x60]
push 0
push 0x8000080
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40c91d
lea ecx, [esp + 0x164]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x164]
lea eax, [esp + 0x268]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x268]
push 0x5c
push ecx
call fcn.00414b80
add esp, 8
mov byte [eax], 0
lea edx, [esp + 0x60]
lea eax, [esp + 0x164]
push edx
lea ecx, [esp + 0x168]
push eax
push ecx
lea edx, [esp + 0x47c]
push str.:Repeat_r_ndel___s__r_nif_exist___s__goto_Repeat_r_ndel___s__r_n
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [esp + 8]
lea ecx, [esp + 0x470]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x478]
push eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x60]
rep stosd dword es:[edi], eax
mov word [esp + 0x4c], ax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0x4220bc
push 0
push 0x44
push 0
push 0
push 0
push edx
push 0
mov dword [esp + 0x44], 0x44
mov dword [esp + 0x70], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40c91d
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0xfffffffffffffff1
push eax
call edi
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call edi
push 0x80
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov ecx, dword [esp + 0xc]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esp + 0x10]
push eax
call esi
pop edi
pop esi
add esp, 0x850
ret
Function at 0x40cd40
Capabilities:
Get common file path
Get file version info

Disassembly:
sub esp, 0x110
lea eax, [esp + 0xc]
push ebx
push esi
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0x18]
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x5c
je 0x40cdaa
mov edi, 0x4220bc
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Kernel32.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jne 0x40cdfa
xor ax, ax
pop edi
pop esi
pop ebx
add esp, 0x110
ret
push edi
call fcn.00413940
mov esi, eax
add esp, 4
test esi, esi
jne 0x40ce16
xor ax, ax
pop edi
pop esi
pop ebx
add esp, 0x110
ret
push esi
push edi
lea edx, [esp + 0x20]
push 0
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x40ce3e
push esi
call fcn.004138a0
add esp, 4
xor ax, ax
pop edi
pop esi
pop ebx
add esp, 0x110
ret
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
push ecx
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x40ce6d
push esi
call fcn.004138a0
add esp, 4
xor ax, ax
pop edi
pop esi
pop ebx
add esp, 0x110
ret
mov edx, dword [esp + 0xc]
push esi
mov di, word [edx]
call fcn.004138a0
add esp, 4
mov ax, di
pop edi
pop esi
pop ebx
add esp, 0x110
ret
Function at 0x40ce90
Capabilities:
Get file version info

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x18]
push esi
lea ecx, [esp + 0x14]
push edi
push ecx
mov dword [ebp], 0
push ebx
mov dword [eax], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jne 0x40cec5
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push edi
call fcn.00413940
mov esi, eax
add esp, 4
test esi, esi
jne 0x40ceda
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push esi
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x40cef9
push esi
call fcn.004138a0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
lea edx, [esp + 0x10]
lea eax, [esp + 0x20]
push edx
push eax
push 0x4220bc
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x40cf23
push esi
call fcn.004138a0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x20]
push esi
mov ecx, dword [eax + 0xc]
mov dword [ebp], ecx
mov edx, dword [eax + 8]
mov eax, dword [esp + 0x20]
mov dword [eax], edx
call fcn.004138a0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x40cf50
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
xor eax, eax
push ebx
push esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
push edi
lea eax, [esp + 0x14]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0x14]
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x5c
je 0x40cfc4
mov edi, 0x4220bc
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.ole32.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.0040ce90
add esp, 0xc
test eax, eax
je 0x40d03c
mov eax, dword [esp + 0x10]
mov ecx, eax
shr ecx, 0x10
cmp ecx, 4
jb 0x40d03c
cmp ax, 0x47
jb 0x40d03c
mov edx, dword [esp + 0xc]
shr edx, 0x10
cmp edx, 0x9d0
jb 0x40d03c
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x10c
ret
Function at 0x40e9b0
Capabilities:
Get file version info

Disassembly:
mov eax, 0x140c
call fcn.00414de0
push esi
push edi
mov edi, dword [esp + 0x1418]
lea eax, [esp + 0x10]
push eax
push edi
mov esi, 0x1400
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
jne 0x40e9e0
pop edi
pop esi
add esp, 0x140c
ret
cmp eax, 0x1400
jae 0x40e9e9
mov esi, eax
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push esi
push edx
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x40ea07
pop edi
pop esi
add esp, 0x140c
ret
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
lea edx, [esp + 0x1c]
push str.VarFileInfoTranslation
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x40ea2d
pop edi
pop esi
add esp, 0x140c
ret
mov eax, dword [esp + 8]
test eax, eax
jbe 0x40ea46
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x141c]
mov cx, word [eax]
mov word [edx], cx
pop edi
mov eax, 1
pop esi
add esp, 0x140c
ret
Function at 0x40f780
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x98
push ebx
mov ebx, dword [esp + 0xa0]
push ebp
push esi
test ebx, ebx
push edi
je 0x40f9bf
mov al, byte [ebx + 0x7f]
test al, al
jne 0x40f9bf
mov al, byte [ebx + 0x94]
test al, al
jne 0x40f9bf
mov edi, dword [esp + 0xb0]
test edi, edi
je 0x40f9bf
mov ebp, dword [esp + 0xb4]
test ebp, ebp
je 0x40f9bf
mov eax, dword [esp + 0xb8]
test eax, eax
je 0x40f9bf
mov ecx, 0x7f
mov eax, ecx
mov dl, byte [ecx + ebx]
add ecx, 0x11
mov byte [esp + eax + 0x10], dl
dec eax
and ecx, 0x7f
test eax, eax
jge 0x40f7e6
mov eax, 0x7d
mov cl, byte [esp + eax + 0x10]
mov dl, byte [esp + eax + 0x11]
xor dl, cl
mov byte [esp + eax + 0x11], dl
mov edx, eax
dec eax
test edx, edx
jg 0x40f7fd
mov eax, dword [esp + 0xbc]
test eax, eax
je 0x40f829
mov cl, byte [esp + 0x10]
and cl, 0x1f
add cl, 0x40
mov byte [eax], cl
movsx edx, byte [esp + 0x12]
movsx eax, byte [esp + 0x11]
shl edx, 4
lea ecx, [esp + 0x1f]
lea eax, [edx + eax - 0x6b5]
test eax, eax
je 0x40f9af
cmp eax, 0x34
jg 0x40f9af
xor edx, edx
lea esi, [eax - 1]
test eax, eax
jle 0x40f875
mov al, byte [ecx]
mov byte [edi], al
inc edi
inc ecx
cmp al, 0x20
jl 0x40f9cf
movsx eax, al
add edx, eax
mov eax, esi
dec esi
test eax, eax
jg 0x40f85b
movsx eax, byte [esp + 0x16]
movsx esi, byte [esp + 0x15]
shl eax, 4
and edx, 0xff
mov byte [edi], 0
lea eax, [eax + esi - 0x6b5]
cmp eax, edx
je 0x40f8a6
mov eax, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
movsx edx, byte [esp + 0x14]
movsx eax, byte [esp + 0x13]
shl edx, 4
lea eax, [edx + eax - 0x6b5]
test eax, eax
je 0x40f99f
cmp eax, 0x34
jg 0x40f99f
xor edx, edx
lea esi, [eax - 1]
test eax, eax
jle 0x40f8fd
mov al, byte [ecx]
mov byte [ebp], al
inc ebp
inc ecx
cmp al, 0x20
jl 0x40f8ed
movsx eax, al
add edx, eax
mov eax, esi
dec esi
test eax, eax
jg 0x40f8d4
jmp 0x40f8fd
mov eax, 9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
movsx eax, byte [esp + 0x18]
movsx esi, byte [esp + 0x17]
shl eax, 4
and edx, 0xff
mov byte [ebp], 0
lea eax, [eax + esi - 0x6b5]
cmp eax, edx
je 0x40f92f
mov eax, 0xa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
lea edx, [esp + 0x8f]
mov esi, str.LtRrBceHabCT_AhlenN
cmp ecx, edx
jae 0x40f95e
cmp byte [esi], 0
jne 0x40f949
mov esi, str.LtRrBceHabCT_AhlenN
mov dl, byte [esi]
mov al, byte [ecx]
inc esi
inc ecx
cmp al, dl
jne 0x40f98f
lea eax, [esp + 0x8f]
cmp ecx, eax
jb 0x40f93f
mov ecx, dword [esp + 0xb8]
lea esi, [ebx + 0x80]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub eax, 0x14
neg eax
sbb eax, eax
and eax, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
mov eax, 6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
mov eax, 5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
add esp, 0x98
ret
Function at 0x411a50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 0x422e0c
push eax
or esi, 0xffffffff
call fcn.00415080
mov edi, eax
add esp, 8
test edi, edi
jne 0x411a73
or eax, 0xffffffff
pop edi
pop esi
ret
mov al, byte [edi + 0xc]
push ebx
mov bl, 0x10
test bl, al
jne 0x411ac6
push ebp
push edi
push 0x400
push 1
push 0x4290b0
call fcn.00414ec0
add esp, 0x10
xor ecx, ecx
test eax, eax
jbe 0x411ac0
mov dl, byte [ecx + 0x4290b0]
mov ebp, esi
and edx, 0xff
and ebp, 0xff
xor edx, ebp
shr esi, 8
mov edx, dword [edx*4 + 0x422ee0]
xor esi, edx
inc ecx
cmp ecx, eax
jb 0x411a99
test byte [edi + 0xc], bl
je 0x411a7e
pop ebp
push edi
call fcn.00414e10
add esp, 4
mov eax, esi
not eax
pop ebx
pop edi
pop esi
ret