joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ac40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x549820]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x45ada0
sub esp, 0x1c
mov eax, dword [esp + 0x20]
test byte [eax], al
lea ecx, [eax + 0x18]
mov dword [esp + 0x18], ecx
nop
mov dword [esp], ecx
call fcn.00409230
mov eax, dword [esp + 0x20]
movzx ecx, byte [eax + 0x1c]
test cl, cl
jne 0x45ad89
mov byte [eax + 0x1c], 1
inc dword [eax + 0x24]
inc dword [eax + 0x60]
mov dword [esp], eax
call fcn.0042e5b0
mov eax, dword [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], 0x72
mov byte [esp + 8], 0
call fcn.0042ec90
mov eax, dword [esp + 0xc]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x20]
mov dword [esp], ecx
mov dword [esp + 4], 0x77
mov byte [esp + 8], 0
call fcn.0042ec90
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x3c]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x10], edx
test ecx, ecx
je 0x45ad10
lea ecx, [eax + 0x28]
mov dword [esp], ecx
call fcn.0044ec30
mov eax, dword [0x5498f0]
test eax, eax
jne 0x45acf7
mov eax, dword [esp + 0x20]
jmp 0x45ad05
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x3c]
call fcn.0045de30
mov dword [edi], ecx
mov dword [eax + 0x3c], 0
mov edx, dword [esp + 0x10]
mov ecx, dword [eax + 0x78]
test ecx, ecx
je 0x45ad47
lea ecx, [eax + 0x64]
mov dword [esp], ecx
call fcn.0044ec30
mov eax, dword [0x5498f0]
test eax, eax
jne 0x45ad32
mov eax, dword [esp + 0x20]
jmp 0x45ad40
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x78]
call fcn.0045de30
mov dword [edi], ecx
mov dword [eax + 0x78], 0
nop
nop
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.00409430
mov eax, dword [esp + 0x14]
test eax, eax
je 0x45ad6d
mov dword [esp], eax
mov dword [esp + 4], 3
call fcn.0042ea70
mov eax, dword [esp + 0x10]
test eax, eax
je 0x45ad85
mov dword [esp], eax
mov dword [esp + 4], 3
call fcn.0042ea70
add esp, 0x1c
ret
lea eax, [0x4a24f8]
mov dword [esp], eax
mov dword [esp + 4], 0x24
call fcn.004340e0
nop
call fcn.0045ca30
jmp fcn.0045ac40
Function at 0x45dce0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movd xmm0, dword [esp + 8]
pinsrw xmm0, ebx, 4
pshufhw xmm0, xmm0, 0
movdqa xmm1, xmm0
pxor xmm0, xmmword [0x5499e0]
aesenc xmm0, xmm0
cmp ebx, 0x10
jb 0x45c46b
je 0x45c4be
cmp ebx, 0x20
jbe 0x45c4c4
cmp ebx, 0x40
jbe 0x45c50a
jmp 0x45c5ab
test ebx, ebx
je 0x45c4b4
add eax, 0x10
test ax, 0xff0
je 0x45c4a0
movdqu xmm1, xmmword [eax - 0x10]
add ebx, ebx
pand xmm1, xmmword [ebx*8 + 0x4bb420]
pxor xmm1, xmm0
aesenc xmm1, xmm1
aesenc xmm1, xmm1
aesenc xmm1, xmm1
movd dword [edx], xmm1
ret
movdqu xmm1, xmmword [eax + ebx - 0x20]
add ebx, ebx
pshufb xmm1, xmmword [ebx*8 + 0x4bb520]
jmp 0x45c488
aesenc xmm0, xmm0
movd dword [edx], xmm0
ret
movdqu xmm1, xmmword [eax]
jmp 0x45c488
pxor xmm1, xmmword [0x5499f0]
aesenc xmm1, xmm1
movdqu xmm2, xmmword [eax]
movdqu xmm3, xmmword [eax + ebx - 0x10]
pxor xmm2, xmm0
pxor xmm3, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
pxor xmm2, xmm3
movd dword [edx], xmm2
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0x5499f0]
pxor xmm2, xmmword [0x549a00]
pxor xmm3, xmmword [0x549a10]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax]
movdqu xmm5, xmmword [eax + 0x10]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
pxor xmm4, xmm0
pxor xmm5, xmm1
pxor xmm6, xmm2
pxor xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0x5499f0]
pxor xmm2, xmmword [0x549a00]
pxor xmm3, xmmword [0x549a10]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax + ebx - 0x40]
movdqu xmm5, xmmword [eax + ebx - 0x30]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
dec ebx
shr ebx, 6
movdqu xmm0, xmmword [eax]
movdqu xmm1, xmmword [eax + 0x10]
movdqu xmm2, xmmword [eax + 0x20]
movdqu xmm3, xmmword [eax + 0x30]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
add eax, 0x40
dec ebx
jne 0x45c60a
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
cmp byte [0x549706], 0
je 0x45dcfa
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0xc]
lea edx, [esp + 0x10]
jmp 0x45c430
jmp fcn.00407e40
Function at 0x45dd00
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov ecx, dword [0x549820]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x402edc
sub esp, 0x10
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.00407e40
mov eax, dword [esp + 0xc]
mov dword [esp + 0x1c], eax
add esp, 0x10
ret
call fcn.0045ca30
jmp 0x402ea0
cmp byte [0x549706], 0
je 0x45dd1b
mov eax, dword [esp + 4]
mov ebx, dword [eax + 4]
mov eax, dword [eax]
lea edx, [esp + 0xc]
jmp 0x45c430
jmp 0x402ea0

Function at 0x45eb70
Capabilities:
Allocate thread local storage

Disassembly:
mov ebp, esp
mov eax, dword [sym.imp.kernel32.dll_TlsAlloc]
call eax
mov esp, ebp
mov ecx, eax
cmp ecx, 0x40
jb 0x45eb8a
mov ecx, 0x14
jmp 0x45eb93
shl ecx, 2
add ecx, 0xe10
mov dword [0x549820], ecx
ret
Function at 0x4076ba
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x42600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], ecx
lea eax, [ebp - 0x20c]
mov esi, edx
push edi
push eax
call fcn.004095e0
add esp, 0xc
lea ecx, [ebp - 0x20c]
call fcn.004072a6
lea eax, [ebp - 0x20c]
push eax
push edi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ebx, eax
test ebx, ebx
jne 0x40774c
push ecx
push str.ReadSharedMemory__:
push ecx
mov edi, 0x82
mov ecx, esi
mov edx, edi
call fcn.00403b0e
lea ecx, [esi + 0x208]
mov edx, edi
push ecx
push str.Could_not_open_file_mapping_object.
push ecx
call fcn.00403b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x410], eax
xor eax, eax
jmp 0x407816
push 0x1e78
push edi
push edi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x4077a0
push ecx
push str.ReadSharedMemory__:
push ecx
mov edi, 0x82
mov ecx, esi
mov edx, edi
call fcn.00403b0e
lea ecx, [esi + 0x208]
mov edx, edi
push ecx
push str.Could_not_map_view_of_file.
push ecx
call fcn.00403b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [esi + 0x410], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x407745
mov eax, dword [ebp - 0x210]
test eax, eax
jne 0x4077bc
call fcn.0040d2f6
mov dword [eax], 0x16
call fcn.0040d22a
jmp 0x4077cb
push 0x1034
push edi
push eax
call fcn.00408df0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
push str.ReadSharedMemory__:
push ecx
mov edx, 0x82
mov ecx, esi
call fcn.00403b0e
lea eax, [ebp - 0x20c]
push eax
push str.succeeded._mapping_obj_name:__s
lea eax, [esi + 0x208]
push 0x104
push eax
call fcn.00406b07
and dword [esi + 0x410], 0
xor eax, eax
add esp, 0x10
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040797f
leave
ret

Function at 0x415d0a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0xffffffffffffffc6
inc ebp
in al, 0x2b
call fcn.004158be
push eax
push esi
push dword [ebp + 8]
call fcn.00415873
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.004158ae
mov bh, 0xb6
pop es
leave
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
push ecx
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.004158ae
jecxz 0x415d4c
daa
invalid
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x4be05fb
nop
nop
test eax, eax
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data_1
mov ebx, 0x42f314
nop
nop
mov ecx, 0x3cff5d4f
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x401c66
pop dword [ebp - 0x48]
mov eax, 0xc9071039
add eax, 0x37390c2d
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0xecfcada7
sub dword [ebp - 0x58], 0x9eaa685c
mov dword [ebp - 0x54], 0x392b80b9
sub dword [ebp - 0x54], 0x6f83474
mov dword [ebp - 0x50], 0xfa7b3d5f
sub dword [ebp - 0x50], 0xae2ef931
mov dword [ebp - 0x4c], 0xe914f8b6
sub dword [ebp - 0x4c], 0xe914f8b6
lea eax, [ebp - 0x58]
push eax
mov eax, 0x8451b82c
sub eax, 0x841187d8
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x5eb621d3
sub dword [ebp - 0x58], 0xea43b87d
mov dword [ebp - 0x54], 0x174d64a8
add dword [ebp - 0x54], 0x2a1efccd
mov dword [ebp - 0x50], 0x7d644cff
add dword [ebp - 0x50], 0xe60b1f6d
mov dword [ebp - 0x4c], 0xda752bc6
add dword [ebp - 0x4c], 0x258ad43a
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0xabe3063f
sub eax, 0xaba2d613
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x37006
push 0
call eax
mov ecx, 0x4b46ff76
add ecx, 0xb4b94a9f
xor edx, edx
add edx, eax
mov edi, 0xb29071c8
sub edi, 0xb25001c8
add edi, dword [ebp - 0x48]
mov esi, 0xc642c6de
sub esi, 0xdb6b66be
add dword [ebp - 0x24], edx
mov ebx, dword [edi]
add dword [ebp - 0x28], 0xa08dfc46
xor ebx, esi
xor dword [ebp - 0x28], edx
mov dword [edx], ebx
xor dword [ebp - 4], 0x9b789fe0
add edx, 4
add edi, 0xd7485749
sub edi, 0xd7485745
loop 0x401d8a
add eax, 0x11b27
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x48]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret
Function at 0x100010c0
Capabilities:
Encode data using xor

Disassembly:
or eax, 0xffffffff
xor ecx, ecx
test edx, edx
jbe 0x100010ee
push ebx
push ebp
push esi
mov esi, dword [0x101cf2a8]
movzx ebx, byte [ecx + edi]
mov ebp, eax
and ebp, 0xff
xor ebx, ebp
shr eax, 8
xor eax, dword [esi + ebx*4]
inc ecx
cmp ecx, edx
jb 0x100010d2
pop esi
pop ebp
pop ebx
not eax
ret
Function at 0x100027a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov esi, ecx
mov edi, edx
test eax, eax
jne 0x100027b8
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test esi, esi
je 0x100027c4
mov ecx, eax
sub ecx, ebp
cmp ecx, esi
ja 0x100027c8
sub eax, ebp
mov esi, eax
push esi
call fcn.1012fc96
add esp, 4
push 0
push 0
push ebp
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x100027eb
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov ebp, dword [esp + 0x14]
push 0
push ebp
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100027e4
mov eax, dword [esp + 0x1c]
cmp eax, 1
jne 0x1000281c
mov edi, dword [ebp]
mov edx, ebx
call fcn.10007b80
pop edi
pop esi
mov dword [ebp], eax
pop ebp
mov eax, ebx
pop ebx
ret
cmp eax, 2
jne 0x1000282e
mov edi, dword [ebp]
mov edx, ebx
call fcn.10007af0
mov dword [ebp], eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret
Function at 0x10002fd0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000307d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
lea ecx, [esp + 0x14]
mov ebx, eax
mov dword [esp + 0x4c], 0
call fcn.10006850
mov edi, dword [esp + 0x18]
add edi, 0xc00
lea ecx, [edi + 0x1000]
add esp, 4
cmp ebx, ecx
jb 0x10003076
push 3
xor ecx, ecx
mov edx, esi
call fcn.100030a0
mov edx, dword [ebp + 0x10]
add esp, 4
mov dword [edx], eax
test eax, eax
je 0x10003076
push 0
mov ecx, edi
mov edx, esi
call fcn.100030a0
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [ecx], eax
test eax, eax
je 0x10003076
push 1
mov ecx, edi
mov edx, esi
call fcn.100030a0
mov edx, dword [ebp + 0xc]
add esp, 4
mov dword [edx], eax
test eax, eax
jne 0x10003086
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100033a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x101cc040]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [0x101cea2c]
push esi
push 0
mov esi, ecx
mov ecx, dword [eax + edi*4]
push 0
push ecx
push esi
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1000342d
push 0
lea edx, [esp + 8]
push edx
push 0x20
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000342d
cmp dword [esp + 4], 0x20
jne 0x1000342d
mov edx, dword [0x101ce58c]
mov eax, dword [edx + edi*4]
lea edx, [esp + 8]
mov ecx, 0x20
sub edx, eax
mov esi, dword [edx + eax]
cmp esi, dword [eax]
jne 0x1000342d
sub ecx, 4
add eax, 4
cmp ecx, 4
jae 0x10003406
mov eax, 1
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.1012fc12
add esp, 0x28
ret
mov ecx, dword [esp + 0x28]
pop esi
xor ecx, esp
xor eax, eax
call fcn.1012fc12
add esp, 0x28
ret
Function at 0x10005de0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x88
mov eax, dword [0x101cc040]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x8c]
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x1c]
push ecx
push edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
ja 0x10005e35
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.1012fc12
add esp, 0x88
ret
push ebx
push ebp
push esi
call fcn.1012fc96
add esp, 4
mov ebx, eax
push ebx
push esi
push 0
push edi
mov dword [esp + 0x24], ebx
call sub.VERSION.dll_GetFileVersionInfoW
push esi
call fcn.1012fc96
add esp, 4
lea edx, [esp + 0x18]
push edx
mov ebp, eax
lea eax, [esp + 0x30]
push eax
push str.VarFileInfoTranslation
push ebx
call sub.VERSION.dll_VerQueryValueA
xor edi, edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edi
cmp esi, 0x7fffffff
ja 0x10005e90
mov eax, 0x101439c0
mov edx, esi
mov ecx, ebp
call fcn.100011c0
xor ecx, ecx
test dword [esp + 0x18], 0xfffffffc
mov dword [esp + 0x10], ecx
jbe 0x10005f8f
xor ebx, ebx
jmp 0x10005eb4
mov ecx, dword [esp + 0x10]
xor ebx, ebx
jmp 0x10005eb4
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 0x101cd100]
mov eax, dword [esp + 0x2c]
push edx
movzx edx, word [eax + ecx*4 + 2]
movzx eax, word [eax + ecx*4]
push edx
push eax
push str.StringFileInfo_04x_04x_s
mov ecx, 0x64
lea edi, [esp + 0x40]
call fcn.10001100
add esp, 0x10
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
mov eax, edi
push eax
push ecx
call sub.VERSION.dll_VerQueryValueA
cmp dword [esp + 0x20], 0
jbe 0x10005f35
cmp esi, 0x7fffffff
ja 0x10005f67
mov ecx, esi
mov eax, ebp
lea ebx, [ebx]
cmp byte [eax], 0
je 0x10005f1d
inc eax
sub ecx, 1
jne 0x10005f10
jmp 0x10005f35
test ecx, ecx
je 0x10005f35
mov eax, esi
sub eax, ecx
mov edx, esi
sub edx, eax
lea ecx, [eax + ebp]
mov eax, dword [esp + 0x1c]
call fcn.10002220
cmp esi, 0x7fffffff
ja 0x10005f67
mov ecx, esi
mov eax, ebp
cmp byte [eax], 0
je 0x10005f4e
inc eax
sub ecx, 1
jne 0x10005f41
jmp 0x10005f67
test ecx, ecx
je 0x10005f67
mov eax, esi
sub eax, ecx
mov edx, esi
sub edx, eax
lea ecx, [eax + ebp]
mov eax, 0x101439c0
call fcn.10002220
add ebx, 4
cmp ebx, 0x30
jb 0x10005eb0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
inc eax
shr edx, 2
mov dword [esp + 0x10], eax
cmp eax, edx
jb 0x10005ea8
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x28]
push ebp
push 0x10143150
mov ecx, esi
call fcn.10001100
push ebp
call fcn.1012fc21
push ebx
call fcn.1012fc21
mov ecx, dword [esp + 0xa4]
add esp, 0x10
pop ebp
pop ebx
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.1012fc12
add esp, 0x88
ret
Function at 0x10005fd0
Capabilities:
Get file version info

Disassembly:
sub esp, 0xec
mov eax, dword [0x101cc040]
xor eax, esp
mov dword [esp + 0xe8], eax
push ebx
push esi
push edi
lea eax, [esp + 0x24]
mov edi, ecx
push eax
xor ebx, ebx
push edi
mov dword [esp + 0x2c], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
ja 0x1000601a
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.1012fc12
add esp, 0xec
ret
push ebp
push esi
call fcn.1012fc96
add esp, 4
mov ebp, eax
push ebp
push esi
push ebx
push edi
mov dword [esp + 0x30], ebp
call sub.VERSION.dll_GetFileVersionInfoW
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x30]
push edx
push str.VarFileInfoTranslation
push ebp
call sub.VERSION.dll_VerQueryValueA
test dword [esp + 0x24], 0xfffffffc
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], 1
jbe 0x10006175
lea ebx, [ebx]
xor ebp, ebp
mov eax, dword [ebp*4 + 0x101cd100]
push eax
mov eax, dword [esp + 0x30]
movzx ecx, word [eax + ebx*4 + 2]
movzx edx, word [eax + ebx*4]
push ecx
push edx
push str.StringFileInfo_04x_04x_s
mov ecx, 0x64
lea edi, [esp + 0xa4]
call fcn.10001100
add esp, 0x10
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x20]
push ecx
mov edx, edi
push edx
push eax
call sub.VERSION.dll_VerQueryValueA
test ebp, ebp
jne 0x100060d0
cmp dword [esp + 0x10], ebp
ja 0x10006157
mov dword [esp + 0x14], ebp
jmp 0x10006157
cmp ebp, 1
je 0x100060de
cmp ebp, 2
jne 0x10006157
cmp dword [esp + 0x10], 0
jbe 0x10006157
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x30]
mov ecx, eax
mov edx, 0x64
sub esi, ecx
lea ecx, [edx + 0x7fffff9a]
test ecx, ecx
je 0x10006111
mov cl, byte [esi + eax]
test cl, cl
je 0x10006111
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x100060f6
jmp 0x10006115
test edx, edx
jne 0x10006116
dec eax
lea edx, [esp + 0x30]
mov byte [eax], 0
push str.Setup
push edx
mov eax, 0x64
call fcn.10007ce0
add esp, 8
test eax, eax
ja 0x1000614f
lea eax, [esp + 0x30]
push str.Install
push eax
mov eax, 0x64
call fcn.10007ce0
add esp, 8
test eax, eax
jbe 0x10006157
mov dword [esp + 0x18], 1
inc ebp
cmp ebp, 0xc
jb 0x10006072
mov ecx, dword [esp + 0x24]
inc ebx
shr ecx, 2
cmp ebx, ecx
jb 0x10006070
mov ebp, dword [esp + 0x20]
push ebp
call fcn.1012fc21
mov ecx, dword [esp + 0xfc]
mov eax, dword [esp + 0x18]
and eax, dword [esp + 0x1c]
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1012fc12
add esp, 0xec
ret
Function at 0x1012bad0
Capabilities:
Encode data using xor

Disassembly:
mov dl, byte [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
xor eax, eax
test ebp, ebp
jbe 0x1012bafc
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
sub edi, ecx
lea esi, [eax + ecx]
mov bl, byte [edi + esi]
xor bl, dl
xor bl, al
inc eax
mov byte [esi], bl
cmp eax, ebp
jb 0x1012bae8
pop edi
pop esi
pop ebx
mov eax, 1
pop ebp
ret
Function at 0x1012e610
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x1012e617
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x1012e6f4
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x10143c58]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x10143c58]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x10143c58]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x10143c58]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x10143c58]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x10143c58]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x10143c58]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x10143c58]
inc ecx
sub edx, 8
sub esi, 1
jne 0x1012e630
pop edi
test edx, edx
je 0x1012e71b
jmp 0x1012e700
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x10143c58]
inc ecx
sub edx, 1
jne 0x1012e700
not eax
pop esi
ret

Function at 0x1012e720
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x10143c58]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x10143c58]
mov dword [edx + 8], ecx
ret