joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a9d0
Capabilities:
Shutdown system

Disassembly:
mov eax, dword [0x429048]
sub esp, 0x114
test eax, eax
push esi
mov esi, ecx
je 0x40aa3e
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 0x40aa4c
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 0x40aa4c
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x40aa85
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 0x40b0d0
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 0x40b0f7
mov edx, 0x80000002
mov edi, dword [esp + 0x11c]
lea ebp, [esp + 0x14]
test edi, edi
jne 0x40b10b
mov edi, 0x428f3c
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 0x40b155
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 0x40b155
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 0x40b1a0
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 0x40b1b9
mov edx, 0x80000002
mov edi, dword [esp + 0x11c]
lea ebp, [esp + 0x14]
test edi, edi
jne 0x40b1cd
mov edi, 0x428f3c
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 0x40b222
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 0x40b222
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 0x40b260
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 0x40b280
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 0x40b299
mov edx, 0x80000002
mov edi, dword [esp + 0x11c]
lea ebp, [esp + 0x14]
test edi, edi
jne 0x40b2ad
mov edi, 0x428f3c
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 0x40b302
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 0x40b302
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 0x40b326
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 0x40c740
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 0x40c92d
lea ecx, [esp + 0x60]
lea edx, [esp + 0x36c]
push ecx
push 0
push 0x422ccc
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x40c92d
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.00414020
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.00414bc0
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 0x40c92d
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.00414b90
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 0x40c92d
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 0x40cd50
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 0x40cdba
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 0x40ce0a
xor ax, ax
pop edi
pop esi
pop ebx
add esp, 0x110
ret
push edi
call fcn.00413950
mov esi, eax
add esp, 4
test esi, esi
jne 0x40ce26
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 0x40ce4e
push esi
call fcn.004138b0
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 0x40ce7d
push esi
call fcn.004138b0
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.004138b0
add esp, 4
mov ax, di
pop edi
pop esi
pop ebx
add esp, 0x110
ret
Function at 0x40cea0
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 0x40ced5
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push edi
call fcn.00413950
mov esi, eax
add esp, 4
test esi, esi
jne 0x40ceea
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 0x40cf09
push esi
call fcn.004138b0
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 0x40cf33
push esi
call fcn.004138b0
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.004138b0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x40cf60
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 0x40cfd4
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.0040cea0
add esp, 0xc
test eax, eax
je 0x40d04c
mov eax, dword [esp + 0x10]
mov ecx, eax
shr ecx, 0x10
cmp ecx, 4
jb 0x40d04c
cmp ax, 0x47
jb 0x40d04c
mov edx, dword [esp + 0xc]
shr edx, 0x10
cmp edx, 0x9d0
jb 0x40d04c
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 0x40e9c0
Capabilities:
Get file version info

Disassembly:
mov eax, 0x140c
call fcn.00414df0
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 0x40e9f0
pop edi
pop esi
add esp, 0x140c
ret
cmp eax, 0x1400
jae 0x40e9f9
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 0x40ea17
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 0x40ea3d
pop edi
pop esi
add esp, 0x140c
ret
mov eax, dword [esp + 8]
test eax, eax
jbe 0x40ea56
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 0x40f790
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 0x40f9cf
mov al, byte [ebx + 0x7f]
test al, al
jne 0x40f9cf
mov al, byte [ebx + 0x94]
test al, al
jne 0x40f9cf
mov edi, dword [esp + 0xb0]
test edi, edi
je 0x40f9cf
mov ebp, dword [esp + 0xb4]
test ebp, ebp
je 0x40f9cf
mov eax, dword [esp + 0xb8]
test eax, eax
je 0x40f9cf
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 0x40f7f6
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 0x40f80d
mov eax, dword [esp + 0xbc]
test eax, eax
je 0x40f839
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 0x40f9bf
cmp eax, 0x34
jg 0x40f9bf
xor edx, edx
lea esi, [eax - 1]
test eax, eax
jle 0x40f885
mov al, byte [ecx]
mov byte [edi], al
inc edi
inc ecx
cmp al, 0x20
jl 0x40f9df
movsx eax, al
add edx, eax
mov eax, esi
dec esi
test eax, eax
jg 0x40f86b
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 0x40f8b6
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 0x40f9af
cmp eax, 0x34
jg 0x40f9af
xor edx, edx
lea esi, [eax - 1]
test eax, eax
jle 0x40f90d
mov al, byte [ecx]
mov byte [ebp], al
inc ebp
inc ecx
cmp al, 0x20
jl 0x40f8fd
movsx eax, al
add edx, eax
mov eax, esi
dec esi
test eax, eax
jg 0x40f8e4
jmp 0x40f90d
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 0x40f93f
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 0x40f96e
cmp byte [esi], 0
jne 0x40f959
mov esi, str.LtRrBceHabCT_AhlenN
mov dl, byte [esi]
mov al, byte [ecx]
inc esi
inc ecx
cmp al, dl
jne 0x40f99f
lea eax, [esp + 0x8f]
cmp ecx, eax
jb 0x40f94f
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 0x411a60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 0x422e20
push eax
or esi, 0xffffffff
call fcn.00415090
mov edi, eax
add esp, 8
test edi, edi
jne 0x411a83
or eax, 0xffffffff
pop edi
pop esi
ret
mov al, byte [edi + 0xc]
push ebx
mov bl, 0x10
test bl, al
jne 0x411ad6
push ebp
push edi
push 0x400
push 1
push 0x4290d0
call fcn.00414ed0
add esp, 0x10
xor ecx, ecx
test eax, eax
jbe 0x411ad0
mov dl, byte [ecx + 0x4290d0]
mov ebp, esi
and edx, 0xff
and ebp, 0xff
xor edx, ebp
shr esi, 8
mov edx, dword [edx*4 + 0x422ef8]
xor esi, edx
inc ecx
cmp ecx, eax
jb 0x411aa9
test byte [edi + 0xc], bl
je 0x411a8e
pop ebp
push edi
call fcn.00414e20
add esp, 4
mov eax, esi
not eax
pop ebx
pop edi
pop esi
ret
Function at 0x412c30
Capabilities:
Get common file path
Get file version info

Disassembly:
sub esp, 0x214
lea eax, [esp + 0xc]
push ebx
push ebp
push esi
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0x4220bc
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
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
mov ebx, dword [esp + 0x22c]
and ecx, 3
lea edx, [esp + 0x20]
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x124]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x4220bc
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x120]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x120]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
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
push eax
and ecx, 3
lea eax, [esp + 0x20]
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.004136d0
add esp, 8
cmp eax, 0xffffffff
je 0x412d31
lea ebx, [esp + 0x1c]
jmp 0x412d53
lea ecx, [esp + 0x120]
push 0
push ecx
call fcn.004136d0
add esp, 8
cmp eax, 0xffffffff
je 0x412e0e
lea ebx, [esp + 0x120]
mov ebp, dword [esp + 0x22c]
test ebp, ebp
jne 0x412d79
mov eax, dword [esp + 0x230]
test eax, eax
jne 0x412d79
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret
lea edx, [esp + 0x18]
push edx
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x412ddf
push esi
call fcn.00413950
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x412dc8
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x4220bc
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x412dc8
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 8]
mov ebx, dword [eax + 0xc]
jmp 0x412dd0
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
test edi, edi
je 0x412de7
push edi
call fcn.004138b0
add esp, 4
jmp 0x412de7
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
test esi, esi
jne 0x412def
test ebx, ebx
je 0x412e0e
cmp esi, ebp
jb 0x412e0e
jne 0x412dfe
cmp ebx, dword [esp + 0x230]
jb 0x412e0e
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x214
ret
Function at 0x412e20
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x114
mov edx, dword [esp + 0x120]
lea ecx, [esp + 0x10]
push ebx
push ebp
push esi
push edi
push eax
mov eax, dword [esp + 0x130]
push 0x104
push ecx
push str.Default_String
push edx
push eax
xor esi, esi
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x412f53
mov al, byte [esp + 0x20]
cmp al, 0x30
je 0x412f39
test al, al
lea ecx, [esp + 0x20]
je 0x412e81
cmp al, 0x2e
jne 0x412e79
inc esi
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x412e74
cmp esi, 3
jne 0x412f53
lea esi, [esp + 0x20]
cmp dword [0x4237e4], 1
jle 0x412ea7
movsx ecx, byte [esi]
push 8
push ecx
call fcn.00415370
add esp, 8
jmp 0x412eb5
movsx edx, byte [esi]
mov eax, dword [str.________________________________H]
mov al, byte [eax + edx*2]
and eax, 8
test eax, eax
je 0x412ebc
inc esi
jmp 0x412e8e
xor edi, edi
lea ebx, [esp + 0x10]
mov al, byte [esi]
mov ecx, esi
cmp al, 0x2e
je 0x412ed6
test al, al
je 0x412ed6
mov al, byte [esi + 1]
inc esi
cmp al, 0x2e
jne 0x412eca
mov byte [esi], 0
push ecx
inc esi
call fcn.00413000
add esp, 4
test edi, edi
je 0x412eec
cmp edi, 2
jne 0x412ef1
mov ebp, eax
shl ebp, 0x10
cmp edi, 1
je 0x412efb
cmp edi, 3
jne 0x412efd
mov ebp, eax
mov dword [ebx], ebp
inc edi
add ebx, 4
cmp edi, 3
jbe 0x412ec2
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x134]
add ecx, edx
mov edx, dword [esp + 0x1c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x138]
add ecx, edx
mov dword [eax], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
mov ecx, dword [esp + 0x134]
mov edx, dword [esp + 0x138]
mov dword [ecx], 0
mov dword [edx], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4136f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00416e50
add esp, 4
or eax, 0xffffffff
ret
test al, 1
je 0x413718
test byte [esp + 8], 2
je 0x413718
call fcn.00416ed0
mov dword [eax], 0xd
call fcn.00416ee0
mov dword [eax], 5
or eax, 0xffffffff
ret
xor eax, eax
ret