joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456274
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45628b
add esp, 0xfffffff0
call fcn.00403694
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004212c0
mov eax, dword [0x4cf290]
cmp word [eax + 2], 0
jne 0x4562b3
mov eax, dword [0x4cf290]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045794c
mov eax, dword [0x4cf3a0]
cmp word [eax + 2], 0
jne 0x4562cd
mov eax, dword [0x4cf3a0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00457b44
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x419304]
call fcn.00403350
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x419304]
call fcn.00403350
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x42349c]
call fcn.004290e4
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x456454
mov eax, dword [0x4cf148]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004294b4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4580e4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4cf148]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d064
test eax, eax
je 0x4563c2
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004092ac
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d08c
test eax, eax
je 0x4563d6
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404410
mov eax, dword [0x4cef90]
cmp byte [eax], 0
jne 0x45640a
mov eax, ebx
call fcn.0045657c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.004582c0
mov eax, ebx
call fcn.00458c84
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45644a
call fcn.004036ec
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4567fc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4d0bb4]
cmp dword [eax + 0x30], 0
je 0x4568a6
cmp dword [ebx + 0x94], 0
jne 0x4568a0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45678c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4568a0
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x456866
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4568a0
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041b718
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x456875
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x457408
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45743d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404290
jmp 0x45744a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004041f4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45849c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4584dd
mov eax, esi
call fcn.0043ec64
test al, al
je 0x4584dd
mov eax, dword [ebx + 0x84]
call fcn.0043e960
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4584dd
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043e960
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x480660
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
test dl, dl
je 0x48067d
add esp, 0xfffffff0
call fcn.00403694
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
xor eax, eax
push ebp
push 0x480819
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00476e6c
test al, al
jne 0x4806ba
mov ecx, 0x48084c
mov dl, 1
mov eax, dword [0x46b568]
call fcn.0040c26c
call fcn.00403bc0
xor eax, eax
push ebp
push 0x4806e6
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00475918
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.00475804
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x480706
mov eax, dword [ebp - 0x10]
mov edx, 0x480888
call fcn.00404b54
je 0x480723
mov eax, esi
mov edx, 0x480888
call fcn.00404b54
jne 0x480747
mov eax, edi
mov edx, 0x480898
call fcn.00404b54
je 0x480747
mov ecx, 0x480870
mov dl, 1
mov eax, dword [0x46b810]
call fcn.0040c26c
call fcn.00403bc0
mov eax, edi
xor edx, edx
call fcn.00404b54
jne 0x480774
mov eax, dword [ebp - 0x10]
xor edx, edx
call fcn.00404b54
je 0x480774
mov ecx, 0x480870
mov dl, 1
mov eax, dword [0x46b810]
call fcn.0040c26c
call fcn.00403bc0
mov eax, dword [ebp - 0x10]
mov edx, 0x4808d8
call fcn.00404b54
jne 0x4807a7
mov eax, edi
mov edx, 0x4808e4
call fcn.00404b54
je 0x4807a7
mov ecx, 0x480870
mov dl, 1
mov eax, dword [0x46b810]
call fcn.0040c26c
call fcn.00403bc0
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
call fcn.0047e750
lea eax, [ebx + 4]
mov edx, esi
call fcn.004048e8
lea eax, [ebx + 0x28]
mov edx, edi
call fcn.004048e8
lea eax, [ebx + 0x2c]
mov edx, dword [ebp - 0x10]
call fcn.004048e8
lea eax, [ebx + 0x24]
mov edx, dword [ebp - 0xc]
call fcn.004048e8
lea eax, [ebx + 8]
call fcn.004048ac
mov byte [ebx + 0xc], 2
xor eax, eax
mov dword [ebx + 0x30], eax
mov al, byte [ebp + 8]
mov byte [ebx + 0x34], al
mov ax, word [0x480930]
mov word [ebx + 0x21], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480820
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004048c4
ret
Function at 0x482114
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
test dl, dl
je 0x482131
add esp, 0xfffffff0
call fcn.00403694
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x4822cc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00476e6c
test al, al
jne 0x48216e
mov ecx, 0x482300
mov dl, 1
mov eax, dword [0x46b568]
call fcn.0040c26c
call fcn.00403bc0
xor eax, eax
push ebp
push 0x48219a
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00475918
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.00475804
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4821ba
mov eax, edi
xor edx, edx
call fcn.00404b54
jne 0x4821e7
mov eax, dword [ebp - 0x10]
xor edx, edx
call fcn.00404b54
je 0x4821e7
mov ecx, 0x482324
mov dl, 1
mov eax, dword [0x46b810]
call fcn.0040c26c
call fcn.00403bc0
mov eax, dword [ebp - 0x10]
mov edx, 0x48233c
call fcn.00404b54
jne 0x48221a
mov eax, edi
mov edx, 0x482348
call fcn.00404b54
je 0x48221a
mov ecx, 0x482324
mov dl, 1
mov eax, dword [0x46b810]
call fcn.0040c26c
call fcn.00403bc0
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
call fcn.0047e750
lea eax, [ebx + 4]
mov edx, esi
call fcn.004048e8
lea eax, [ebx + 0x28]
mov edx, edi
call fcn.004048e8
lea eax, [ebx + 0x2c]
mov edx, dword [ebp - 0x10]
call fcn.004048e8
lea eax, [ebx + 0x24]
mov edx, dword [ebp - 0xc]
call fcn.004048e8
lea eax, [ebx + 8]
call fcn.004048ac
mov byte [ebx + 0xc], 1
mov dl, 1
mov eax, dword [0x419304]
call fcn.00403350
mov dword [ebx + 0x38], eax
mov dl, 1
mov eax, dword [0x419304]
call fcn.00403350
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x419304]
call fcn.00403350
mov dword [ebx + 0x34], eax
push ebx
mov eax, dword [ebx + 0x38]
push eax
mov ax, word [0x482394]
push eax
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x46e58c]
call fcn.0047d9a8
mov dword [ebx + 0x3c], eax
mov ax, word [0x482398]
mov word [ebx + 0x21], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4822d3
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004048c4
ret
Function at 0x484d28
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
test dl, dl
je 0x484d4a
add esp, 0xfffffff0
call fcn.00403694
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
xor eax, eax
push ebp
push 0x484eb5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00476e6c
test al, al
jne 0x484d87
mov ecx, 0x484ee8
mov dl, 1
mov eax, dword [0x46b568]
call fcn.0040c26c
call fcn.00403bc0
push dword [0x4ce6bc]
lea edx, [ebp - 0x10]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xbc]
push dword [ebp - 0x10]
push dword [0x4ce6bc]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404b0c
mov eax, dword [ebp - 0xc]
call fcn.00477944
test al, al
jne 0x484e59
push dword [0x4ce6b8]
push dword [ebp + 8]
push dword [0x4ce6b8]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404b0c
mov eax, dword [ebp - 0x14]
call fcn.00477944
test al, al
jne 0x484e59
push dword [0x4ce6bc]
lea edx, [ebp - 0x1c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xb8]
push dword [ebp - 0x1c]
push dword [0x4ce6bc]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404b0c
mov eax, dword [ebp - 0x18]
call fcn.00477a5c
test al, al
jne 0x484e59
push dword [0x4ce6b8]
push edi
push dword [0x4ce6b8]
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00404b0c
mov eax, dword [ebp - 0x20]
call fcn.00477a5c
test al, al
jne 0x484e59
mov ecx, 0x484ee8
mov dl, 1
mov eax, dword [0x46b568]
call fcn.0040c26c
call fcn.00403bc0
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
call fcn.0047e750
lea eax, [ebx + 4]
mov edx, esi
call fcn.004048e8
lea eax, [ebx + 8]
call fcn.004048ac
lea eax, [ebx + 0x30]
mov edx, edi
call fcn.004048e8
lea eax, [ebx + 0x34]
mov edx, dword [ebp + 8]
call fcn.004048e8
mov byte [ebx + 0xc], 0xc
mov ax, word [0x484f04]
mov word [ebx + 0x21], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x484ebc
lea eax, [ebp - 0x20]
mov edx, 6
call fcn.004048c4
ret

Function at 0x4b99b8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor edx, edx
mov dword [ebp - 0x104], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4b9a33
push dword fs:[eax]
mov dword fs:[eax], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
push 0x59
call sub.kernel32.dll_GetThreadLocale_1
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4b9a1a
lea eax, [ebp - 0x104]
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.00404410
mov eax, dword [ebp - 0x104]
mov edx, ebx
call fcn.00408740
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b9a3a
lea eax, [ebp - 0x104]
call fcn.004041a0
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x7d8058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.007d81a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x7d807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7d806a
add dl, dl
jne 0x7d8089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7d80dc
xor eax, eax
add dl, dl
jne 0x7d8096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7d817d
add dl, dl
jne 0x7d80a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7d80b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7d80bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7d80c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x7d80d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x7d8075
mov eax, 1
add dl, dl
jne 0x7d80ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7d80f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7d80e1
sub eax, ebx
mov ebx, 1
jne 0x7d8128
mov ecx, 1
add dl, dl
jne 0x7d810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x7d8119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7d8105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7d8075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x7d813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x7d814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7d8136
cmp eax, 0x7d00
jae 0x7d816d
cmp eax, 0x500
jb 0x7d8168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7d8075
cmp eax, 0x7f
ja 0x7d8170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7d8075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x7d819e
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 0x7d8075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x417d34
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.00417db3
jae 0x417d40
xor ecx, ecx
call fcn.00417db3
jae 0x417d6a
xor eax, eax
call fcn.00417db3
jae 0x417d7b
mov al, 0x10
call fcn.00417db3
adc al, al
jae 0x417d5c
jne 0x417da8
stosb byte es:[edi], al
jmp 0x417d41
call fcn.00417dbf
dec ecx
loop 0x417d87
mov eax, ebp
call fcn.00417dbd
jmp 0x417da9
lodsb al, byte [esi]
shr eax, 1
je 0x417dcf
adc ecx, 2
mov ebp, eax
jmp 0x417da9
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.00417dbd
cmp eax, 0x7d00
jae 0x417da7
cmp eax, 0x500
jae 0x417da8
cmp eax, 0x7f
ja 0x417da9
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x417d41
pop ebp
ret 8
Function at 0x300c7cde
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push esi
lea eax, [ebp - 0x1c]
push eax
mov esi, str.Windows
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
mov eax, dword [ebp - 0xc]
dec eax
je 0x300c7d43
dec eax
jne 0x300c7d57
cmp dword [ebp - 0x18], 6
jne 0x300c7d16
mov esi, str.Windows_Vista
jmp 0x300c7d57
cmp dword [ebp - 0x18], 5
jne 0x300c7d36
cmp dword [ebp - 0x14], 1
jne 0x300c7d29
mov esi, str.Windows_XP
jmp 0x300c7d57
cmp dword [ebp - 0x14], 0
jne 0x300c7d57
mov esi, str.Windows_2000
jmp 0x300c7d57
cmp dword [ebp - 0x18], 4
jne 0x300c7d57
mov esi, str.Windows_NT
jmp 0x300c7d57
cmp dword [ebp - 0x14], 0
jbe 0x300c7d50
mov esi, str.Windows_98_ME
jmp 0x300c7d57
jne 0x300c7d57
mov esi, str.Windows_95
mov eax, esi
pop esi
add ebp, 0x78
leave
ret

Function at 0x300c7fd4
Capabilities:
Check os version
Delete file
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xb4
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0x30], 2
jne 0x300c8003
cmp dword [ebp - 0x3c], 6
jb 0x300c8003
mov al, 1
jmp 0x300c80f7
push ebx
lea eax, [ebp + 0x70]
push eax
push str.SoftwareMacromediaFlashPlayer
xor ebx, ebx
push reloc.oleaut32.dll_SysReAllocString
mov dword [ebp + 0x70], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
cmp eax, ebx
jne 0x300c8063
push esi
push str.AutoUpdate
lea ecx, [ebp + 0x54]
call fcn.30032e0f
mov eax, dword [ebp + 0x58]
inc eax
push eax
push dword [ebp + 0x54]
push 1
push ebx
push str.AutoUpdateTest
push dword [ebp + 0x70]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x70]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0x54]
mov dword [ebp + 0x70], ebx
call fcn.300046b5
cmp esi, ebx
pop esi
je 0x300c806a
xor al, al
jmp 0x300c80f6
lea ecx, [ebp + 0x60]
call fcn.30031759
mov ecx, dword [ebp + 0x7c]
lea eax, [ebp + 0x60]
push eax
call fcn.300fcf1d
test al, al
je 0x300c80ec
push str.Macromed
lea ecx, [ebp + 0x60]
call fcn.300fcf1d
push 0x3023b70c
lea ecx, [ebp + 0x60]
call fcn.300fcf1d
push str.testUpdate.txt
lea ecx, [ebp + 0x60]
call fcn.300fcf1d
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
lea ecx, [ebp + 0x60]
call fcn.30031883
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
cmp eax, ebx
je 0x300c80ec
cmp eax, 0xffffffff
je 0x300c80ec
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
je 0x300c80ec
lea ecx, [ebp + 0x60]
call fcn.30031883
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
test eax, eax
je 0x300c80ec
mov bl, 1
lea ecx, [ebp + 0x60]
call fcn.300315be
mov al, bl
pop ebx
add ebp, 0x74
leave
ret

Function at 0x300c8ad4
Capabilities:
Identify system language via api

Disassembly:
cmp dword [esp + 4], 7
jl 0x300c8ae8
call fcn.300fcf1d
test ax, ax
jne 0x300c8aee
xor eax, eax
ret
call dword [sym.imp.kernel32.dll_GetUserDefaultLangID]
push eax
call fcn.300c7d8f
add esp, 4
ret
Function at 0x300cb5e1
Capabilities:
Get common file path

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push edi
mov esi, 0x104
push esi
call dword [sym.imp.kernel32.dll_GetTempPathA]
push esi
push edi
call fcn.300cb4e5
pop ecx
pop ecx
add eax, edi
pop edi
pop esi
ret

Function at 0x300d002a
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x9c
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0x14], 2
jne 0x300d009a
cmp dword [ebp - 0x20], 5
ja 0x300d005a
jne 0x300d009a
cmp dword [ebp - 0x1c], 1
jb 0x300d009a
push esi
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 0
lea eax, [ebp + 0x70]
push eax
push 0
push 0x4a
call esi
test eax, eax
je 0x300d0095
cmp dword [ebp + 0x70], 1
jne 0x300d0095
push 0
lea eax, [ebp + 0x74]
push eax
push 0
push 0x200a
call esi
test eax, eax
je 0x300d0095
cmp dword [ebp + 0x74], 2
jne 0x300d0095
xor eax, eax
inc eax
jmp 0x300d0097
xor eax, eax
pop esi
jmp 0x300d009c
xor al, al
add ebp, 0x78
leave
ret

Function at 0x300d1bb3
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xcc
push ebx
push edi
mov ebx, ecx
push 0xe4
mov dword [0x302a765c], ebx
call fcn.300367dc
test eax, eax
pop ecx
je 0x300d1be4
push 0
mov ecx, eax
call fcn.300cf1ab
mov edi, eax
jmp 0x300d1be6
xor edi, edi
test edi, edi
je 0x300d1cd4
push edi
call fcn.300fcf1d
pop ecx
lea ecx, [ebp + 0x48]
call fcn.30031759
lea eax, [ebp + 0x48]
push eax
mov ecx, edi
call fcn.300fcf1d
test al, al
je 0x300d1c75
lea eax, [ebp + 0x48]
push eax
lea ecx, [ebp + 0x58]
call fcn.30031643
lea eax, [ebp + 0x58]
push eax
lea ecx, [ebp + 0x68]
call fcn.30031643
push str.Macromed
lea ecx, [ebp + 0x68]
call fcn.300fcf1d
push 0x3023b70c
lea ecx, [ebp + 0x68]
call fcn.300fcf1d
lea eax, [ebp + 0x68]
push eax
push edi
mov ecx, ebx
call fcn.300fcf1d
test al, al
jne 0x300d1c5a
lea eax, [ebp + 0x58]
push eax
push edi
mov ecx, ebx
call fcn.300fcf1d
lea eax, [ebp + 0x68]
push eax
mov ecx, ebx
call fcn.3001a779
lea ecx, [ebp + 0x68]
call fcn.300315be
lea ecx, [ebp + 0x58]
call fcn.300315be
push esi
mov esi, 0x9c
push esi
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.3022b3a0
add esp, 0xc
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], esi
mov esi, dword [sym.imp.kernel32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x300d1cae
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x54], 0x94
call esi
test eax, eax
je 0x300d1cc3
cmp dword [ebp - 0x44], 2
jb 0x300d1cc3
jne 0x300d1cbc
cmp dword [ebp - 0x50], 5
jb 0x300d1cc3
mov byte [ebx + 0x8f5], 1
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
lea ecx, [ebp + 0x48]
call fcn.300315be
pop esi
pop edi
pop ebx
add ebp, 0x78
leave
ret
Function at 0x300d2c1b
Capabilities:
Check mutex on windows

Disassembly:
push ecx
push ebx
xor ebx, ebx
cmp dword [esp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], ebx
je 0x300d2c3a
mov dword [esi], 0x3023c880
mov dword [esi + 0x20], 0x30234df4
push ebp
push ebx
mov ecx, esi
call fcn.300fcf1d
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], str.C_r0K_r0S_r0__r0c_r0n_r0y_r0
mov eax, dword [esi]
mov eax, dword [eax + 4]
push str.MacromediaMutexOmega
lea ecx, [eax - 0x20]
mov dword [eax + esi - 4], ecx
push 1
push ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
call dword [sym.imp.kernel32.dll_CreateMutexA]
cmp eax, ebx
mov ebp, dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esi + 0x14], eax
je 0x300d2c8f
call ebp
cmp eax, 0xb7
jne 0x300d2c8f
mov cl, 1
jmp 0x300d2c91
xor cl, cl
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x300d2d16
cmp cl, bl
je 0x300d2ca9
push 0xffffffffffffffff
push eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
test eax, eax
jne 0x300d2d16
push 0x3023c854
mov edi, 0xfc10
push edi
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.kernel32.dll_CreateFileMappingA]
mov dword [esi + 0x18], eax
call ebp
mov ebp, eax
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x300d2d0d
push edi
push ebx
push ebx
push 0xf001f
push eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [esi + 8], eax
je 0x300d2d0d
cmp ebp, 0xb7
setne cl
push ecx
push eax
mov ecx, esi
call fcn.300395e8
mov ecx, esi
call fcn.30039620
test al, al
jne 0x300d2d0d
push dword [esi + 8]
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov dword [esi + 8], ebx
push dword [esi + 0x14]
call dword [sym.imp.kernel32.dll_ReleaseMutex]
cmp dword [esi + 8], ebx
pop ebp
jne 0x300d2d3c
mov eax, dword [esi + 0x18]
cmp eax, ebx
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
je 0x300d2d2f
push eax
call edi
mov dword [esi + 0x18], ebx
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x300d2d3c
push eax
call edi
mov dword [esi + 0x14], ebx
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret 4

Function at 0x300d497b
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0xc], 2
jne 0x300d49ad
xor eax, eax
inc eax
cmp dword [ebp - 0x18], 5
ja 0x300d49af
jne 0x300d49ad
cmp dword [ebp - 0x14], eax
jae 0x300d49af
xor eax, eax
add ebp, 0x78
leave
ret