joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412290
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479214
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
mov eax, dword [0x4b0b90]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x34]
call fcn.00401760
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
call fcn.004018a0
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x4123b5
lea ecx, [ebp - 0x48]
call fcn.004146f0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00414730
lea ecx, [ebp - 0x48]
call fcn.00415700
push eax
lea ecx, [ebp - 0x48]
call fcn.00414760
push eax
push 0
mov ecx, dword [ebp + 8]
call fcn.004018a0
push eax
call sub.VERSION.dll_GetFileVersionInfoA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4123a9
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x50]
push eax
push 0x4905c0
lea ecx, [ebp - 0x48]
call fcn.00415700
push eax
call sub.VERSION.dll_VerQueryValueW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4123a9
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x5c], ecx
cmp dword [ebp - 0x58], 0x10005
jb 0x41239c
ja 0x412393
cmp dword [ebp - 0x5c], 0x32
jb 0x41239c
mov dword [ebp - 0x68], 1
jmp 0x4123a3
mov dword [ebp - 0x68], 0
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x14], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00414710
xor eax, eax
cmp dword [ebp - 0x14], 0
setne al
mov byte [ebp - 0x5d], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004017d0
mov al, byte [ebp - 0x5d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0045045c
mov esp, ebp
pop ebp
ret 4
Function at 0x4123f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479229
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x140
mov eax, dword [0x4b0b90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
mov dword [ebp - 0x144], ecx
mov byte [ebp - 0x11d], 0
mov byte [ebp - 0x11c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x11b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0
push 0x23
lea eax, [ebp - 0x11c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x4124ef
mov dword [ebp - 0x124], 0x8000ffff
lea ecx, [ebp - 0x140]
push ecx
mov ecx, 0x4b2370
call fcn.00408a90
mov ecx, eax
call fcn.00408780
mov dword [ebp - 0x148], eax
mov edx, dword [ebp - 0x148]
mov dword [ebp - 0x14c], edx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14c]
call fcn.004018a0
push eax
lea eax, [ebp - 0x11c]
push eax
push str._hsWildTangent_hsCacheHotSauce.hsdat
push 0x104
mov ecx, dword [ebp - 0x144]
add ecx, 0x6d6
push ecx
call fcn.00414590
add esp, 0x14
mov dword [ebp - 0x124], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x140]
call fcn.004017d0
cmp dword [ebp - 0x124], 0
jl 0x4124ef
mov byte [ebp - 0x11d], 1
mov al, byte [ebp - 0x11d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045045c
mov esp, ebp
pop ebp
ret
Function at 0x417ff0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
mov dword [ebp - 8], 0
mov byte [ebp - 1], 0
push 0x1af
push 0xf618
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4180bf
mov eax, dword [ebp - 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4180bf
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 0
je 0x4180bf
mov eax, dword [ebp - 0x14]
add eax, 1
push eax
call fcn.00469598
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x14]
add edx, 1
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00452330
add esp, 0xc
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x14]
mov byte [edx], 0
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
call fcn.00408ea0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.0046959d
add esp, 4
mov dword [ebp - 0x18], 0
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 4

Function at 0x4218b0
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov word [ebp - 0xc], ax
mov dword [ebp - 8], 0
mov byte [ebp - 1], 0
mov ecx, dword [ebp + 8]
call fcn.004018c0
add eax, 2
push eax
call fcn.00469598
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x421972
mov ecx, dword [ebp + 8]
call fcn.004018c0
add eax, 2
push eax
mov ecx, dword [ebp + 8]
call fcn.004018a0
push eax
mov edx, dword [ebp - 8]
push edx
call fcn.00452330
add esp, 0xc
mov ecx, dword [ebp + 8]
call fcn.004018c0
mov ecx, dword [ebp - 8]
mov byte [ecx + eax + 1], 0
mov dword [ebp - 0x24], 3
mov edx, dword [ebp - 8]
mov dword [ebp - 0x20], edx
mov word [ebp - 0x18], 0x414
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 1], al
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
push edx
call fcn.0046959d
add esp, 4
mov dword [ebp - 8], 0
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x4238f0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x423963
lea ecx, [ebp - 0xc]
push ecx
mov dx, word [ebp + 0x10]
push edx
mov ax, word [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
test eax, eax
je 0x423959
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x423959
lea eax, [ebp - 0x14]
push eax
push 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx ecx, word [ebp + 0x14]
and ecx, 0x27
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esp, ebp
pop ebp
ret

Function at 0x425b00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
call fcn.00425b40
movzx eax, al
test eax, eax
je 0x425b1a
jmp 0x425b39
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
push 0x425c00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 8]
mov dword [ecx + 8], eax
mov esp, ebp
pop ebp
ret

Function at 0x425b60
Capabilities:
Check for time delay via gettickcount
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 8], 0
jne 0x425b77
jmp 0x425bf9
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jae 0x425bb0
mov eax, dword [ebp - 8]
cmp dword [eax + 8], 0
jne 0x425ba6
jmp 0x425bf9
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x425b8d
mov ecx, dword [ebp - 8]
add ecx, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 8]
cmp dword [edx + 8], 0
je 0x425bec
push 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 8]
add edx, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esp, ebp
pop ebp
ret 4
Function at 0x42633a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push ebx
push edi
push 0x41
pop ecx
xor ebx, ebx
push 0x41
xor eax, eax
mov byte [ebp - 0x230], bl
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
pop ecx
mov byte [ebp - 0x128], bl
lea edi, [ebp - 0x127]
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push str.SoftwareWildTangentCDA_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x20], 0x104
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x42639d
xor eax, eax
jmp 0x42648f
push esi
push 5
pop eax
push ebx
push ebx
push eax
push ebx
mov dword [ebp - 0x10], eax
mov edi, str.FileName_d_d_d_d
lea eax, [ebp - 0x128]
push edi
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ebx
call fcn.00450ded
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0x18
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 4]
mov byte [ebp - 0x24], bl
call esi
test eax, eax
jne 0x426471
push dword [ebp - 4]
inc dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 8]
push 9
pop eax
cmp dword [ebp - 8], eax
mov dword [ebp - 4], ebx
jle 0x42642d
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], eax
mov dword [ebp - 8], ebx
jle 0x42642d
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ebx
jle 0x42642d
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
jg 0x426481
push dword [ebp - 8]
lea eax, [ebp - 0x128]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push edi
push eax
call fcn.00450ded
add esp, 0x18
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 4]
mov byte [ebp - 0x24], bl
call esi
test eax, eax
je 0x4263f2
cmp dword [ebp - 0x18], ebx
jne 0x426475
xor eax, eax
jmp 0x42648e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop edi
pop ebx
leave
ret
Function at 0x426806
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx]
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jbe 0x42682f
push ebx
push edi
movzx edi, byte [edx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x4b3b28]
inc edx
dec esi
jne 0x426817
pop edi
pop ebx
mov dword [ecx], eax
pop esi
ret 8

Function at 0x4268da
Capabilities:
Check for time delay via gettickcount
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x40], 0
je 0x426949
push ebx
push edi
push dword [esi + 0x94]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, eax
jmp 0x42690b
cmp dword [esi + 0x40], 0
je 0x426947
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
sub eax, ebx
cmp eax, dword [esp + 0x10]
jb 0x4268fd
lea edi, [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x40]
test eax, eax
je 0x42693c
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x40], 0
push edi
mov byte [esi + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
pop esi
ret 4

Function at 0x426a5a
Capabilities:
Clear file content

Disassembly:
push esi
push edi
push 0x14
mov esi, edx
push 0
push esi
mov edi, ecx
call fcn.0044fff0
and dword [esi + 4], 0
add esp, 0xc
mov dword [esi], 1
mov dword [esi + 8], 0x14
call fcn.004537f8
mov edx, esi
mov ecx, edi
mov dword [esi + 0xc], eax
call fcn.0042698e
test al, al
je 0x426a9c
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov al, 1
pop edi
pop esi
ret

Function at 0x426a9f
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0x10
push esi
push edi
jb 0x426aaf
mov eax, dword [ebx + 0x24]
jmp 0x426ab2
lea eax, [ebx + 0x24]
push 0
mov edi, 0x80
push edi
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x426b07
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x426b02
cmp dword [ebx + 0x38], 0x10
jb 0x426ae9
mov ecx, dword [ebx + 0x24]
jmp 0x426aec
lea ecx, [ebx + 0x24]
push edi
push 2
push 3
mov edx, 0xc0000000
call fcn.004336eb
mov esi, eax
cmp esi, 0xffffffff
jne 0x426b07
or eax, 0xffffffff
jmp 0x426b23
mov edx, dword [esp + 0x10]
mov ecx, esi
call fcn.0042694d
test al, al
jne 0x426b21
mov edx, dword [esp + 0x10]
mov ecx, esi
call fcn.00426a5a
mov eax, esi
pop edi
pop esi
pop ebx
ret 4
Function at 0x426b29
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
push 0xffffffffffffffff
push dword [edi]
mov dword [ebp - 8], edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.00426a9f
mov esi, eax
cmp esi, 0xffffffff
je 0x426c1d
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
sub dword [ebp - 0x18], eax
cmp edi, 0x100000
jbe 0x426c04
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, edi
jbe 0x426bf8
sub eax, edi
mov edi, eax
push edi
call fcn.00469598
cmp eax, ebx
pop ecx
mov dword [ebp + 0xc], eax
je 0x426bde
push ebx
push ebx
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x426bde
cmp dword [ebp - 4], edi
jne 0x426bde
lea edx, [ebp - 0x1c]
mov ecx, esi
mov dword [ebp - 0x14], 0x14
call fcn.0042698e
push ebx
lea eax, [ebp + 8]
push eax
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x426be8
lea edx, [ebp - 0x1c]
mov ecx, esi
call fcn.00426a5a
cmp dword [ebp + 0xc], ebx
je 0x426c11
push dword [ebp + 0xc]
call fcn.0046959d
pop ecx
jmp 0x426c11
lea edx, [ebp - 0x1c]
mov ecx, esi
call fcn.00426a5a
jmp 0x426c11
lea edx, [ebp - 0x1c]
mov ecx, esi
mov dword [ebp - 0x14], edi
call fcn.0042698e
push esi
mov bl, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 8]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 8
Function at 0x427977
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x14]
push 0
mov dword [ebp - 4], ecx
add ebx, 0x15
push ebx
mov ecx, esi
call fcn.004148a0
mov esi, dword [esi + 4]
push 0x14
push 0
push esi
call fcn.0044fff0
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 4]
push 0x14
pop edx
mov dword [esi + 4], edx
mov dword [esi], ebx
mov al, byte [eax + 0x60]
mov byte [esi + 0x10], al
cmp dword [edi + 0x18], 0x10
mov ecx, dword [edi + 0x14]
lea eax, [edi + 4]
mov dword [ebp + 8], eax
jb 0x4279cf
mov eax, dword [eax]
mov ebx, dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
mov eax, dword [ebx + 4]
add eax, edx
inc ecx
push ecx
push dword [ebp + 0xc]
push eax
call fcn.004509a0
add esp, 0xc
xor ecx, ecx
mov eax, dword [ebx + 4]
mov dl, byte [esi + 0x10]
lea eax, [ecx + eax + 0x14]
xor byte [eax], dl
inc ecx
cmp ecx, dword [edi + 0x14]
jbe 0x4279ea
cmp dword [edi + 0x18], 0x10
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp + 8]
jb 0x427a0a
mov ecx, dword [ecx]
lea edx, [eax + 1]
call fcn.00426835
pop edi
mov dword [esi + 8], eax
pop esi
pop ebx
leave
ret 0xc

Function at 0x427ca2
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
mov esi, ecx
call ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.004270b9
push 0
push 1
lea ecx, [ebp - 0x24]
call fcn.00401c80
and dword [ebp - 4], 0
call fcn.0042b39f
test al, al
je 0x427cf1
lea eax, [ebp - 4]
push eax
mov ecx, esi
call fcn.00427a1c
test al, al
je 0x427d45
cmp dword [ebp - 4], 0
jne 0x427cfa
cmp byte [esi + 0x85], 0
jne 0x427d45
lea edi, [esi + 0x90]
cmp dword [edi], 0xffffffff
je 0x427d0e
call ebx
sub eax, dword [ebp - 8]
cmp eax, dword [edi]
jae 0x427d45
cmp byte [esi + 0x84], 0
je 0x427d45
cmp dword [ebp - 4], 0
je 0x427d25
mov eax, dword [esi + 0x88]
jmp 0x427d2b
mov eax, dword [esi + 0x8c]
push eax
push dword [esi + 0x94]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x427d45
cmp byte [esi + 0x84], 0
jne 0x427ccf
lea edi, [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x40]
test eax, eax
je 0x427d61
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x40], 0
push edi
mov byte [esi + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x427fd9
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x47a80e
call fcn.0045381c
sub esp, 0x164
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], esi
push esi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x20], 0xf
call fcn.00401b50
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 4], esi
jb 0x428015
mov eax, dword [eax + 4]
jmp 0x428018
add eax, 4
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [ebp + 0x10]
xor ebx, ebx
inc ebx
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], bl
mov dword [ebp + 0xc], 0xff
mov dword [ebp - 0x18], ebx
jb 0x42804c
mov eax, dword [eax + 4]
jmp 0x42804f
add eax, 4
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x170]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push esi
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, esi
je 0x428081
mov dword [ebp - 0x1c], str.Unable_to_get_the_value_from_the_registry
push 0x4a59a0
lea eax, [ebp - 0x1c]
jmp 0x428103
lea eax, [ebp - 0x170]
push eax
lea ecx, [ebp - 0x38]
call fcn.00401a80
push dword [ebp - 0x14]
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x38]
push eax
call fcn.00408e50
push esi
push ebx
lea ecx, [ebp - 0x38]
call fcn.00401c80
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
push eax
call fcn.00450d6b
int3

Function at 0x42810f
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x47a820
call fcn.0045381c
sub esp, 0x128
push edi
xor edi, edi
mov dword [ebp - 0x10], edi
push edi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x1c], 0xf
call fcn.00401b50
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 4], edi
jb 0x428146
mov eax, dword [eax + 4]
jmp 0x428149
add eax, 4
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 0x18], 0xff
mov dword [ebp - 0x10], 1
jb 0x42817b
mov eax, dword [eax + 4]
jmp 0x42817e
add eax, 4
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x134]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push edi
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
lea ecx, [ebp - 0x34]
je 0x4281a6
push 0x491bb6
jmp 0x4281ad
lea eax, [ebp - 0x134]
push eax
call fcn.00401a80
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x34]
push eax
call fcn.00408e50
push edi
push 1
lea ecx, [ebp - 0x34]
call fcn.00401c80
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x4281e4
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
and dword [ebp - 4], 0
push esi
push edi
mov esi, ecx
call fcn.00427f41
test al, al
mov edi, 0x491bb6
je 0x428256
cmp dword [esi + 0x3c], 0x10
jb 0x42820e
mov esi, dword [esi + 0x28]
jmp 0x428211
add esi, 0x28
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 0x10
jb 0x42821f
mov eax, dword [eax + 4]
jmp 0x428222
add eax, 4
push esi
push 0xff
lea ecx, [ebp - 0x104]
push ecx
push edi
push eax
push str.SKUInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x104]
push eax
call fcn.00450ce0
test eax, eax
pop ecx
jle 0x428256
lea eax, [ebp - 0x104]
push eax
jmp 0x428257
push edi
mov ecx, dword [ebp + 8]
call fcn.00401790
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret 8