joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f26b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x45f27f
push 1
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x45f2b3
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.004623a1
test al, al
jne 0x45f2e6
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.0045c5c2
lea eax, [ebp - 0x4c]
push 0x48dc88
push eax
call fcn.004472fc
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45f2e6
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00456d18
lea eax, [ebp - 0x48]
push 0x48cae8
push eax
call fcn.004472fc
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x45f2ee
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x45f304
mov dword [ebp + 0xc], 1
lea eax, [ebp + 0xc]
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x45f339
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00456d18
lea eax, [ebp - 0x48]
push 0x48cae8
push eax
call fcn.004472fc
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8

Function at 0x45f341
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x45f357
mov eax, 0x1ed
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x45f38b
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.004623a1
test al, al
jne 0x45f3be
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.0045c5c2
lea eax, [ebp - 0x4c]
push 0x48dc88
push eax
call fcn.004472fc
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45f3be
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00456d18
lea eax, [ebp - 0x48]
push 0x48cae8
push eax
call fcn.004472fc
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x45f3c6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x45f3dc
mov eax, 0x28e
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x45f410
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.004623a1
test al, al
jne 0x45f443
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.0045c5c2
lea eax, [ebp - 0x4c]
push 0x48dc88
push eax
call fcn.004472fc
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45f443
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00456d18
lea eax, [ebp - 0x48]
push 0x48cae8
push eax
call fcn.004472fc
mov eax, dword [ebp + 8]
pop esi
leave
ret 8
Function at 0x45f44b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x45f45e
xor eax, eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x45f492
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.004623a1
test al, al
jne 0x45f4c5
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.0045c5c2
lea eax, [ebp - 0x4c]
push 0x48dc88
push eax
call fcn.004472fc
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45f4c5
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00456d18
lea eax, [ebp - 0x48]
push 0x48cae8
push eax
call fcn.004472fc
mov eax, dword [ebp + 8]
pop esi
leave
ret 8
Function at 0x460308
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [ecx + 8]
test eax, eax
jne 0x460314
mov eax, 0x47e608
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret

Function at 0x4607b3
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x47c163
call fcn.004461a8
sub esp, 0x138
and byte [ebp - 0x144], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x143]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
stosb byte es:[edi], al
push 1
lea eax, [ebp - 0x10]
pop ebx
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x460890
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x18], 0x104
mov eax, str.CommonFilesDir
je 0x46081d
mov eax, str.ProgramFilesDir
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x144]
push ecx
push esi
push esi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp + 0xf]
push 0
push eax
lea eax, [ebp - 0x144]
mov edi, 0x480bc8
mov esi, 0x480bc0
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x20], esi
call fcn.00416b08
push 0x49454c
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00458cb0
lea ecx, [ebp - 0x40]
call fcn.004603f8
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x40]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403b7a
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x40]
jmp 0x4608df
lea eax, [ebp + 0xf]
push 0
push eax
lea eax, [ebp - 0x144]
mov edi, 0x480bc8
mov esi, 0x480bc0
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x20], esi
call fcn.00416b08
push 0x49454c
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00458cb0
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403b7a
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x40]
call fcn.00401f6c
cmp dword [ebp - 0x10], 0
je 0x4608f8
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4608f8
push dword [ebp - 0x10]
call eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x46147c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x461492
mov dword [ebp + 0xc], 4
lea eax, [ebp + 0xc]
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4614c7
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00456d18
lea eax, [ebp - 0x48]
push 0x48cae8
push eax
call fcn.004472fc
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8
Function at 0x4614cf
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x4614e5
mov dword [ebp + 0xc], 1
lea eax, [ebp + 0xc]
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x46151a
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00456d18
lea eax, [ebp - 0x48]
push 0x48cae8
push eax
call fcn.004472fc
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8

Function at 0x461522
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x461536
push 4
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x46156a
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.004623a1
test al, al
jne 0x46159d
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.0045c5c2
lea eax, [ebp - 0x4c]
push 0x48dc88
push eax
call fcn.004472fc
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x46159d
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00456d18
lea eax, [ebp - 0x48]
push 0x48cae8
push eax
call fcn.004472fc
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x461e59
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
push ebx
push edi
mov edi, ecx
call fcn.0040b0e5
xor ebx, ebx
cmp eax, 1
jne 0x461ef6
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x461ee3
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
push ebx
push ebx
push str.ProxyEnable
mov dword [ebp - 8], 4
push dword [ebp - 4]
call esi
test eax, eax
je 0x461eba
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x824
push eax
lea eax, [ebp - 0x830]
push eax
push ebx
push ebx
push str.AutoConfigURL
push dword [ebp - 4]
call esi
test eax, eax
pop esi
je 0x461ee3
mov byte [ebp - 0x830], bl
cmp dword [ebp - 4], ebx
je 0x461ef6
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x461ef6
push dword [ebp - 4]
call eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00461935
add esp, 0x14
xor ecx, ecx
cmp eax, ebx
mov dword [edi + 4], eax
setne cl
pop edi
mov al, cl
pop ebx
leave
ret 0x14
Function at 0x462641
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call edi
sub eax, dword [esi + 0x74]
cmp eax, 0x7530
jbe 0x462679
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x70]
mov dword [esi + 0x5c], eax
mov dword [esi + 0x64], ecx
mov ecx, dword [esi + 0x6c]
xor eax, eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x60], ecx
mov dword [esi + 0x6c], eax
call edi
mov dword [esi + 0x74], eax
mov edi, dword [esi + 0x64]
test edi, edi
jne 0x462685
mov eax, dword [esi + 0x5c]
jmp 0x4626ce
push ebx
push ebp
push 0xa
xor eax, eax
pop ecx
xor ebp, ebp
test eax, eax
jne 0x4626cc
or eax, 0xffffffff
xor edx, edx
div ecx
mov ebx, dword [esi + 0x5c]
cmp ebx, eax
jbe 0x4626aa
shr ebx, 1
shr edi, 1
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x64], edi
mov eax, dword [esi + 0x5c]
mov edi, dword [esi + 0x64]
imul eax, ecx
xor edx, edx
div edi
xor edx, edx
imul eax, eax, 0x3e8
div ecx
lea ecx, [ecx + ecx*4]
inc ebp
shl ecx, 1
cmp ebp, 3
jb 0x46268e
pop ebp
pop ebx
pop edi
pop esi
ret

Function at 0x462bc3
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 8]
mov esi, ecx
push eax
push 0x20000013
push dword [esi + 4]
mov dword [ebp - 4], 4
call fcn.00461b11
add esp, 0x14
test eax, eax
je 0x462c01
mov eax, dword [ebp - 8]
cmp eax, 0xc8
jb 0x462c05
cmp eax, 0x12c
jae 0x462c05
mov al, 1
jmp 0x462c1b
add eax, 0xd3c0
or eax, 0x80040000
push eax
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
pop esi
leave
ret

Function at 0x463186
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x463c3e
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
lea eax, [ebp - 4]
push edi
xor ebx, ebx
push eax
push ebx
push 8
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x463ca5
call esi
cmp eax, 0x3f0
jne 0x463c98
lea eax, [ebp - 4]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call esi
cmp eax, 0x78
jne 0x463ca1
push 1
jmp 0x463cc4
cmp eax, ebx
je 0x463cc3
lea eax, [ebp - 8]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push ebx
push ebx
push 2
push dword [ebp - 4]
call edi
test eax, eax
jne 0x463cc3
call esi
cmp eax, 0x7a
je 0x463cd3
push ebx
push dword [ebp - 4]
call fcn.00463c2f
pop ecx
pop ecx
jmp 0x463dca
push dword [ebp - 8]
call fcn.004461c7
mov esi, eax
pop ecx
lea eax, [ebp - 8]
cmp esi, ebx
push eax
push dword [ebp - 8]
setne byte [ebp - 0x20]
push esi
push 2
push dword [ebp - 4]
call edi
test eax, eax
jne 0x463d19
push ebx
push dword [ebp - 4]
call fcn.00463c2f
cmp byte [ebp - 0x20], bl
pop ecx
pop ecx
mov byte [ebp + 0xb], al
je 0x463d11
push esi
call fcn.004454c4
pop ecx
mov al, byte [ebp + 0xb]
jmp 0x463dca
lea eax, [ebp - 0x10]
push eax
mov al, byte [ebp + 8]
neg al
push ebx
push ebx
sbb eax, eax
push ebx
and al, 0xfd
push ebx
push ebx
add eax, 0x223
push ebx
push eax
push 0x20
lea eax, [ebp - 0x18]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x463d63
push ebx
push dword [ebp - 4]
call fcn.00463c2f
cmp byte [ebp - 0x20], bl
pop ecx
pop ecx
mov byte [ebp + 0xb], al
je 0x463d5e
push esi
call fcn.004454c4
pop ecx
mov al, byte [ebp + 0xb]
jmp 0x463dca
xor edi, edi
cmp dword [esi], ebx
mov byte [ebp - 0xc], bl
jbe 0x463da2
lea eax, [esi + 4]
mov dword [ebp + 8], eax
push dword [ebp - 0x10]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x463d8f
add dword [ebp + 8], 8
inc edi
cmp edi, dword [esi]
jb 0x463d72
jmp 0x463da2
cmp byte [ebp + 0xc], bl
je 0x463d9e
test byte [esi + edi*8 + 8], 0x10
mov byte [ebp - 0xc], bl
jne 0x463da2
mov byte [ebp - 0xc], 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.00463c2f
cmp byte [ebp - 0x20], bl
pop ecx
pop ecx
mov byte [ebp + 0xb], al
je 0x463dc7
push esi
call fcn.004454c4
pop ecx
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x463e3c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push ebx
push eax
mov ebx, ecx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
mov dword [ebp - 4], eax
je 0x463e8e
push eax
call fcn.004461c7
pop ecx
mov dword [ebx + 0x40], eax
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x463e8e
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x49454c
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x463e92
xor al, al
jmp 0x463ef3
push esi
push edi
mov edi, ebx
lea eax, [ebx + 4]
neg edi
sbb edi, edi
mov esi, dword [ebp - 0xc]
push 0xd
and edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueW
pop edi
pop esi
test eax, eax
je 0x463ef1
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [ebx + 0x3c], eax
shl eax, 2
push eax
call fcn.004461c7
mov dword [ebx + 0x38], eax
xor eax, eax
cmp dword [ebx + 0x3c], eax
pop ecx
jbe 0x463ef1
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 0x3c]
jb 0x463edf
mov al, 1
pop ebx
leave
ret 4

Function at 0x467a9f
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x467b71
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [ebx + 1]
push eax
call fcn.004461c7
pop ecx
mov dword [ebp - 4], eax
lea ecx, [ebp + 8]
push 0
push ecx
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp ebx, dword [ebp + 8]
jne 0x467b71
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 0x30]
lea ecx, [esi + 0x28]
push dword [ecx + 4]
call fcn.004682d4
push dword [esi + 0x20]
lea ecx, [esi + 0x18]
push dword [ecx + 4]
call fcn.0046827e
mov edi, 0x49cc48
push edi
call fcn.00446510
pop ecx
push eax
push edi
mov ecx, esi
call fcn.004458f5
mov edi, dword [ebp - 4]
mov ecx, esi
and byte [edi + ebx], 0
mov dword [esi + 0x38], edi
call fcn.004675c3
push eax
push 0
mov ecx, esi
call fcn.00467738
test eax, eax
je 0x467b71
mov ecx, esi
call fcn.004675c3
push eax
push 9
mov ecx, esi
call fcn.00467738
test eax, eax
je 0x467b71
push esi
mov ecx, esi
call fcn.00467a13
test eax, eax
jne 0x467b75
xor eax, eax
jmp 0x467b7f
push edi
call fcn.004454c4
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x467ca4
Capabilities:
Delete registry key

Disassembly:
mov eax, 0x47cb04
call fcn.004461a8
sub esp, 0x5c
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x18], ecx
mov esi, dword [eax + 0x2c]
mov eax, dword [eax + 0x30]
cmp esi, eax
je 0x467d95
push ebx
push edi
xor edi, edi
mov dword [ebp - 0x14], edi
mov eax, dword [esi + 4]
mov dword [ebp - 4], edi
cmp eax, edi
jne 0x467cdc
mov eax, 0x47fcec
lea ecx, [ebp - 0xd]
push 1
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.00401764
mov eax, dword [eax + 8]
mov byte [ebp - 4], 1
cmp eax, edi
jne 0x467cfb
mov eax, 0x47e5b8
mov ecx, dword [ebp + 0xc]
push 0xf003f
push eax
mov ecx, dword [ecx]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00417d10
test eax, eax
setne bl
and byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00401bc7
test bl, bl
jne 0x467d72
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.00467ca4
cmp dword [esi + 0x14], edi
jne 0x467d72
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x467d42
mov eax, 0x47fcec
lea ecx, [ebp - 0xe]
push 1
push ecx
push eax
lea ecx, [ebp - 0x68]
call fcn.00401764
mov eax, dword [eax + 8]
cmp eax, edi
jne 0x467d5d
mov eax, 0x47e5b8
mov ecx, dword [ebp + 0xc]
push eax
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x68]
call fcn.00401bc7
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], edi
je 0x467d84
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
add esi, 0x38
cmp esi, dword [eax + 0x30]
jne 0x467cc8
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x469f42
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov esi, ecx
cmp edi, ebx
je 0x469f65
push 1
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [edi], eax
lea edi, [esi + 0x74]
push edi
push ebx
push ebx
push ebx
push 2
push dword [esi + 0x10]
call fcn.00469213
add esp, 0x18
test eax, eax
je 0x46a00a
push dword [edi]
call fcn.004461c7
pop ecx
cmp eax, ebx
setne cl
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
mov byte [ebp - 0xc], cl
push eax
lea ecx, [esi + 0x6c]
call fcn.0045e064
cmp byte [ebp - 0xc], bl
je 0x469fae
push dword [ebp - 8]
call fcn.004454c4
pop ecx
mov eax, dword [esi + 0x70]
push edi
push eax
push ebx
push ebx
push 2
push dword [esi + 0x10]
call fcn.00469213
add esp, 0x18
test eax, eax
je 0x46a00a
lea eax, [ebp - 4]
push ebx
push eax
push 4
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
push edi
push dword [edi]
push dword [esi + 0x70]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test byte [ebp + 0x10], 1
jne 0x46a017
mov eax, dword [esi + 0xc]
push ebx
push dword [ebp + 8]
push 1
push 1
push 0x10001
push eax
call fcn.00469463
add esp, 0x18
test eax, eax
jne 0x46a017
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x7c], eax
xor al, al
jmp 0x46a031
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x46a02f
push 1
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub eax, dword [esi]
mov dword [esi], eax
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x46bd10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
push eax
push 0x20019
push 0
push str.SOFTWAREInstallShield15.0Professional
push SysReAllocStringLen
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46bd9a
mov esi, dword [esp + 4]
lea ecx, [esp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 0x10], eax
lea edx, [esp + 8]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
push 0
push str.DoVerboseLogging
push esi
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46bd8f
mov ecx, dword [esp + 8]
push ebx
cmp ecx, 1
sete bl
test esi, esi
je 0x46bd87
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop esi
add esp, 0x10
ret
test esi, esi
je 0x46bd9a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop esi
add esp, 0x10
ret
Function at 0x403594
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4e8008], 0x8088405
inc edx
mov dword [ebx + 0x4e8008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41c674
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41c6a5
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41c68d
add dl, dl
jne 0x41c6b0
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41c701
xor eax, eax
add dl, dl
jne 0x41c6bd
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41c79e
add dl, dl
jne 0x41c6cc
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c6d7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c6e2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c6ed
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41c6f7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41c69c
mov eax, 1
add dl, dl
jne 0x41c70f
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c71a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41c706
sub eax, ebx
mov ebx, 1
jne 0x41c74d
mov ecx, 1
add dl, dl
jne 0x41c733
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41c73e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41c72a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41c69c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41c764
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41c76f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41c75b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41c69c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41c7bf
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41c69c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret