joyce8/EMBER2024-capa huggingface dataset:
Function at 0x15192870
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1013000]
push edi
or ebp, 0xffffffff
jmp 0x15192892
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x15192899
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x15192888
mov eax, 1
add ebx, ebx
jne 0x151928ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x151928bc
jne 0x151928db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x151928db
dec eax
add ebx, ebx
jne 0x151928c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x151928a0
add ebx, ebx
jne 0x151928d7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1519292d
xor ecx, ecx
sub eax, 3
jb 0x151928f3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x15192962
sar eax, 1
mov ebp, eax
jmp 0x151928fe
add ebx, ebx
jne 0x151928fe
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x151928cc
inc ecx
add ebx, ebx
jne 0x1519290c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x151928cc
add ebx, ebx
jne 0x15192919
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1519290e
jne 0x1519292a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1519290e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1519294c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1519293e
jmp 0x1519288e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1519294c
add edi, ecx
jmp 0x1519288e
pop esi
mov edi, esi
mov ecx, 0x725e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1519296a
cmp byte [edi], 0x2a
jne 0x1519296a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x1519296f
lea edi, [esi + 0x204f000]
mov eax, dword [edi]
or eax, eax
je 0x151929e7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2052334]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2052474]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1519299c
mov ecx, edi
jns 0x151929cb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2052478]
or eax, eax
je 0x151929e1
mov dword [ebx], eax
add ebx, 4
jmp 0x151929b9
call dword [esi + 0x2052488]
mov ebp, dword [esi + 0x205247c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x24f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x15192a1b
sub esp, 0xffffff80
jmp 0x1326179c
Function at 0x10004cd0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, edx
test esi, esi
not eax
je 0x10004d02
lea esp, [esp]
test cl, 3
je 0x10004d02
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x2f5a460]
add ecx, 1
sub esi, 1
jne 0x10004ce0
cmp esi, 0x20
push ebx
push edi
jb 0x10004eec
mov edi, esi
shr edi, 5
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x2f5a860]
xor edx, dword [ebx*4 + 0x2f5ac60]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x2f5a460]
add ecx, 4
xor edx, dword [eax*4 + 0x2f5b060]
add ecx, 4
xor edx, dword [ecx - 8]
add ecx, 4
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x2f5a860]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x2f5ac60]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x2f5a460]
add ecx, 4
xor eax, dword [edx*4 + 0x2f5b060]
add ecx, 4
xor eax, dword [ecx - 0x10]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x2f5a860]
xor edx, dword [ebx*4 + 0x2f5ac60]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x2f5a460]
xor edx, dword [eax*4 + 0x2f5b060]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x2f5a860]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x2f5ac60]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x2f5a460]
xor eax, dword [edx*4 + 0x2f5b060]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x2f5a860]
xor edx, dword [ebx*4 + 0x2f5ac60]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x2f5a460]
xor edx, dword [eax*4 + 0x2f5b060]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x2f5a860]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x2f5ac60]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x2f5a460]
and edx, 0xff
xor eax, dword [edx*4 + 0x2f5b060]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x2f5a860]
xor edx, dword [ebx*4 + 0x2f5ac60]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x2f5a460]
add ecx, 4
xor edx, dword [eax*4 + 0x2f5b060]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x2f5a860]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x2f5ac60]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x2f5a460]
and edx, 0xff
xor eax, dword [edx*4 + 0x2f5b060]
sub edi, 1
jne 0x10004d12
cmp esi, 4
jb 0x10004f39
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x2f5a860]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x2f5ac60]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x2f5a460]
and eax, 0xff
xor edi, dword [eax*4 + 0x2f5b060]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x10004ef6
test esi, esi
pop edi
pop ebx
je 0x10004f5d
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x2f5a460]
add ecx, 1
sub esi, 1
jne 0x10004f40
not eax
pop esi
ret
Function at 0x41fb94
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi]
mov ecx, dword [esi + 4]
test eax, eax
jle 0x41fbef
push edi
mov edi, dword [ebp + 0x10]
sub dword [ebp + 0xc], edi
mov dword [ebp + 8], eax
mov edi, edi
inc bl
lea edi, [edi + 1]
movzx ebx, bl
mov dl, byte [esi + ebx + 8]
add cl, dl
movzx ecx, cl
mov al, byte [esi + ecx + 8]
mov byte [esi + ebx + 8], al
add al, dl
movzx eax, al
mov byte [esi + ecx + 8], dl
movzx edx, byte [eax + esi + 8]
mov eax, dword [ebp + 0xc]
xor dl, byte [eax + edi - 1]
sub dword [ebp + 8], 1
mov byte [edi - 1], dl
jne 0x41fbb4
mov eax, dword [ebp + 0x14]
pop edi
mov dword [esi], ebx
mov dword [esi + 4], ecx
pop esi
pop ebx
pop ebp
ret
Function at 0x429c73
Capabilities:
Execute anti-debugging instructions

Disassembly:
pushfd
add ebp, 0x71
popfd
lea ebp, [ebp - 0x71]
add dword [esp], 0xfffff9aa
xchg dword [esp], eax
push ecx
mov ecx, dword [esp + 4]
lea ecx, [ecx + 0x14]
xchg dword [esp + 4], ecx
mov dword [esp + 4], ecx
mov ecx, dword [esp]
lea esp, [esp + 4]
xchg dword [esp + 4], eax
push ebp
mov ebp, esp
leave
xchg dword [esp], eax
push esi
mov esi, dword [esp + 4]
lea esi, [esi + 0x1a]
xchg dword [esp + 4], esi
mov dword [esp + 4], esi
mov esi, dword [esp]
lea esp, [esp + 4]
popfd
push ebp
mov ebp, esp
leave
jmp 0x42c888
push ebx
mov ebx, dword [esp + 4]
lea ebx, [ebx + 0x7d]
xchg dword [esp + 4], ebx
mov dword [esp + 4], ebx
mov ebx, dword [esp]
lea esp, [esp + 4]
popfd
lea esi, [esi]
jmp loc.0041b1a0
call fcn.0042de84
aam 0xad
adc eax, 0xadd40000
or ecx, ebx
loope 0x42c88a
shl edx, 0xfe
loopne 0x42c867
xchg dword [edx], ebp
retf
Function at 0x10003939
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, 0x5e23074
call fcn.1001dc04
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x1184]
mov dword [ebp - 4], 0x28
call fcn.1000ca19
lea ecx, [esi + 0x1114]
mov byte [ebp - 4], 0x27
call fcn.1000ca19
lea ecx, [esi + 0x10a4]
mov byte [ebp - 4], 0x26
call fcn.1000ca19
cmp dword [esi + 0x109c], 0xffffffff
lea ecx, [esi + 0x109c]
mov byte [ebp - 4], 0x25
je 0x10003992
call fcn.10003bd5
lea ecx, [esi + 0x105c]
mov byte [ebp - 4], 0x24
call fcn.1000d0a9
lea ecx, [esi + 0x101c]
mov byte [ebp - 4], 0x23
call fcn.1000d0a9
lea ecx, [esi + 0xfac]
mov byte [ebp - 4], 0x22
call fcn.1000ca19
lea ecx, [esi + 0xf7c]
mov byte [ebp - 4], 0x21
call fcn.1000cf16
lea ecx, [esi + 0xf58]
mov byte [ebp - 4], 0x20
call fcn.1000cf16
lea ecx, [esi + 0xf34]
mov byte [ebp - 4], 0x1f
call fcn.1000cf16
lea ecx, [esi + 0xf10]
mov byte [ebp - 4], 0x1e
call fcn.1000cf16
lea ecx, [esi + 0xeec]
mov byte [ebp - 4], 0x1d
call fcn.1000cf16
lea ecx, [esi + 0xec8]
mov byte [ebp - 4], 0x1c
call fcn.1000cf16
lea ecx, [esi + 0xea4]
mov byte [ebp - 4], 0x1b
call fcn.1000cf16
lea ecx, [esi + 0xe80]
mov byte [ebp - 4], 0x1a
call fcn.1000cf16
lea ecx, [esi + 0xe5c]
mov byte [ebp - 4], 0x19
call fcn.1000cf16
lea ecx, [esi + 0xe34]
mov byte [ebp - 4], 0x18
call fcn.1000cf16
lea ecx, [esi + 0xe10]
mov byte [ebp - 4], 0x17
call fcn.1000cf16
lea ecx, [esi + 0xde4]
mov byte [ebp - 4], 0x16
call fcn.1000d080
lea ecx, [esi + 0xdc0]
mov byte [ebp - 4], 0x15
call fcn.1000cf16
lea ecx, [esi + 0xd9c]
mov byte [ebp - 4], 0x14
call fcn.1000cf16
lea ecx, [esi + 0xd78]
mov byte [ebp - 4], 0x13
call fcn.1000cf16
lea ecx, [esi + 0xd54]
mov byte [ebp - 4], 0x12
call fcn.1000cf16
lea ecx, [esi + 0xd30]
mov byte [ebp - 4], 0x11
call fcn.1000cf16
lea ecx, [esi + 0xd0c]
mov byte [ebp - 4], 0x10
call fcn.1000cf16
lea ecx, [esi + 0xce8]
mov byte [ebp - 4], 0xf
call fcn.1000cf16
lea ecx, [esi + 0xcc4]
mov byte [ebp - 4], 0xe
call fcn.1000cf16
lea ecx, [esi + 0xca0]
mov byte [ebp - 4], 0xd
call fcn.1000cf16
lea ecx, [esi + 0xc7c]
mov byte [ebp - 4], 0xc
call fcn.1000cf16
lea ecx, [esi + 0xc58]
mov byte [ebp - 4], 0xb
call fcn.1000cf16
lea ecx, [esi + 0xc34]
mov byte [ebp - 4], 0xa
call fcn.1000cf16
lea ecx, [esi + 0xc10]
mov byte [ebp - 4], 9
call fcn.1000cf16
lea ecx, [esi + 0xbe8]
mov byte [ebp - 4], 8
call fcn.1000cf16
lea ecx, [esi + 0xbc0]
mov byte [ebp - 4], 7
call fcn.1000cf16
lea ecx, [esi + 0xb9c]
mov byte [ebp - 4], 6
call fcn.1000cf16
lea ecx, [esi + 0xb2c]
mov byte [ebp - 4], 5
call fcn.1000ca19
lea ecx, [esi + 0xabc]
mov byte [ebp - 4], 4
call fcn.1000ca19
lea ecx, [esi + 0xa7c]
mov byte [ebp - 4], 3
call fcn.1000d0a9
lea ecx, [esi + 0x9e4]
mov byte [ebp - 4], 2
call fcn.1000ca19
lea ecx, [esi + 0x970]
mov byte [ebp - 4], 1
call fcn.1000ca19
and byte [ebp - 4], 0
lea ecx, [esi + 0x900]
call fcn.1000ca19
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.10003bed
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4011a0
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
test ebx, ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
je 0x4011b3
mov dword [ebx], 0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4011c1
mov dword [eax], 0
lea eax, [esp + 0xc]
push eax
push ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x401227
push edi
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
push esi
push 0
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40121f
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push edx
push 0x40b460
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40121f
test ebx, ebx
mov ecx, dword [esp + 0xc]
je 0x401212
mov eax, dword [ecx + 8]
mov dword [ebx], eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40121f
mov ecx, dword [ecx + 0xc]
mov dword [eax], ecx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
add esp, 0xc
ret

Function at 0x401380
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x100
push esi
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0xc]
push str.QTMLInitTermMutex_lx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
test edi, edi
je 0x4013c0
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x410bec]
test eax, eax
jle 0x4013d1
inc eax
mov dword [0x410bec], eax
jmp 0x40142a
push str.QuickTime.qts
call fcn.00401bb0
add esp, 4
test eax, eax
mov dword [0x410bf0], eax
jne 0x401448
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xfffff7d3
mov eax, dword [0x410bf0]
test eax, eax
je 0x40140c
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x410bf0], 0
mov eax, 0x401190
mov dword [section..data], 0x401320
mov dword [0x410010], eax
mov dword [0x410014], eax
mov dword [0x41000c], eax
test edi, edi
je 0x40143c
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ax, si
pop esi
add esp, 0x100
ret
call fcn.00401320
mov esi, eax
test si, si
jne 0x4013f2
mov edx, dword [esp + 0x10c]
push edx
call fcn.00401160
add esp, 4
mov esi, eax
test si, si
jne 0x4013f2
inc dword [0x410bec]
jmp 0x40142a
Function at 0x401480
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x100
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 8]
push str.QTMLInitTermMutex_lx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x4014bf
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x410bec]
test eax, eax
jg 0x4014d4
mov dword [0x410bec], 0
jmp 0x40150e
dec eax
test eax, eax
mov dword [0x410bec], eax
jg 0x40150e
call fcn.00401170
mov edx, dword [0x410bf0]
mov eax, 0x401190
push edx
mov dword [section..data], 0x401320
mov dword [0x410010], eax
mov dword [0x410014], eax
mov dword [0x41000c], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
je 0x401520
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
add esp, 0x100
ret

Function at 0x401820
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x14]
lea ecx, [esp + 4]
push ecx
push 1
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 0
mov dword [esp + 0x2c], eax
mov byte [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4018bd
mov eax, dword [esp + 4]
test eax, eax
je 0x4018cc
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4018bd
cmp byte [esi], 0
je 0x4018bd
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401882
sub eax, edx
cmp byte [eax + esi - 1], 0x5c
je 0x4018bd
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401897
sub eax, edx
cmp byte [eax + esi - 1], 0x2f
je 0x4018bd
dec esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4018a8
mov ax, word [0x40b460]
push edi
mov edi, esi
mov word [edi], ax
pop edi
mov eax, dword [esp + 4]
test eax, eax
je 0x4018cc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
ret
Function at 0x4018d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
xor eax, eax
test esi, esi
je 0x401a3d
mov byte [esi], al
mov eax, dword [esp + 0x114]
test eax, eax
je 0x4018fb
mov dword [eax], 0
push ebx
push edi
push str.QuickTime.qts
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov ebx, dword [esp + 0x118]
je 0x40195f
push 0x104
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x40195f
lea eax, [esp + 0xc]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401930
sub eax, edx
lea edi, [eax - 0xd]
test edi, edi
jbe 0x40195f
lea edx, [edi + 1]
cmp ebx, edx
jbe 0x40195f
push edi
lea eax, [esp + 0x10]
push eax
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncpy
add esp, 0xc
mov byte [edi + esi], 0
jmp 0x4019e8
cmp byte [esi], 0
jne 0x4019ed
push ebx
push esi
push str.QTSysDir
push str.SoftwareApple_Computer__Inc.QuickTime
call fcn.00401820
mov al, byte [esi]
add esp, 0x10
test al, al
je 0x401991
push 0
push esi
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__access
add esp, 8
test eax, eax
je 0x401994
mov byte [esi], 0
cmp byte [esi], 0
jne 0x4019ed
push ebx
push esi
push str.QuickTime.qts_folder
push str.SoftwareApple_Computer__Inc.QuickTime
call fcn.00401820
mov al, byte [esi]
add esp, 0x10
test al, al
je 0x4019c2
push 0
push esi
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__access
add esp, 8
test eax, eax
je 0x4019c5
mov byte [esi], 0
cmp byte [esi], 0
jne 0x4019ed
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x4019e5
push 0
push esi
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__access
add esp, 8
test eax, eax
je 0x4019e8
mov byte [esi], 0
cmp byte [esi], 0
je 0x401a32
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4019f2
sub eax, edx
cmp byte [eax + esi - 1], 0x5c
je 0x401a32
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401a07
sub eax, edx
cmp byte [eax + esi - 1], 0x2f
je 0x401a32
mov edi, esi
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401a20
mov cx, word [0x40b460]
mov word [edi], cx
mov cl, byte [esi]
xor eax, eax
test cl, cl
pop edi
setne al
pop ebx
pop esi
add esp, 0x104
ret
Function at 0x401a50
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push ebp
mov ebp, dword [esp + 0x210]
push esi
mov esi, dword [esp + 0x218]
push esi
push ebp
push str.QTExtDir
push str.SoftwareApple_Computer__Inc.QuickTime
call fcn.00401820
mov al, byte [ebp]
add esp, 0x10
test al, al
jne 0x401b8c
add esi, 0xfffffff6
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0
lea ecx, [esp + 0x110]
push esi
push ecx
call fcn.004018d0
mov al, byte [esp + 0x118]
add esp, 0xc
test al, al
je 0x401b8c
lea eax, [esp + 8]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401ac0
sub eax, edx
cmp byte [esp + eax + 7], 0x5c
push edi
je 0x401b02
lea eax, [esp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401ad8
sub eax, edx
cmp byte [esp + eax + 0xb], 0x2f
je 0x401b02
lea edi, [esp + 0xc]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401af0
mov dx, word [0x40b460]
mov word [edi], dx
lea eax, [esp + 0x110]
mov edx, ebp
mov ecx, eax
sub edx, ecx
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401b10
lea esi, [esp + 0x110]
lea eax, [esp + 0xc]
push ebx
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x401b4e
test cl, cl
je 0x401b4a
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x401b4e
add eax, 2
add esi, 2
test cl, cl
jne 0x401b26
xor eax, eax
jmp 0x401b53
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
pop ebx
jne 0x401b8b
mov edi, ebp
dec edi
jmp 0x401b60
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401b60
mov eax, dword [str.QuickTime_]
mov dword [edi], eax
mov ecx, dword [0x40b528]
mov dword [edi + 4], ecx
mov dx, word [0x40b52c]
mov word [edi + 8], dx
mov al, byte [0x40b52e]
mov byte [edi + 0xa], al
pop edi
mov eax, ebp
pop esi
lea edx, [eax + 1]
pop ebp
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401b93
sub eax, edx
add esp, 0x208
ret
Function at 0x403e20
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x410034]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
mov ebx, ecx
mov dword [esp + 8], 0
mov ecx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 4]
or eax, 0x2001f
mov dword [esp + 0xc], ecx
push eax
push ecx
push dword [ebx]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
call fcn.00403d30
mov esi, eax
test esi, esi
je 0x403ea1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x403e88
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.0040950f
mov esp, ebp
pop ebp
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x100
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push dword [esp + 0x2c]
call edi
test eax, eax
jne 0x403f09
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.00403e20
mov esi, eax
test esi, esi
jne 0x403f5b
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x2c]
call edi
test eax, eax
je 0x403ed0
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x403f22
push eax
call esi
mov dword [esp + 0x10], 0
push dword [esp + 0xc]
mov ecx, ebx
mov dword [esp + 0x18], 0
call fcn.00403fb0
mov ecx, dword [esp + 0x10]
mov edi, eax
test ecx, ecx
je 0x403f42
push ecx
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.0040950f
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x403e88
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040950f
mov esp, ebp
pop ebp
ret 4