joyce8/EMBER2024-capa huggingface dataset:
Function at 0x104b1c00
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dl, 0x6b
xor esi, esi
lea edi, [ebp - 0x4c]
lea ebx, [ebp - 0x6c]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x8c]
mov byte [ebp - 0x8c], 0x56
mov byte [ebp - 0x8b], 0x69
mov byte [ebp - 0x8a], 0x72
mov byte [ebp - 0x89], 0x74
mov byte [ebp - 0x88], 0x75
mov byte [ebp - 0x87], 0x61
mov byte [ebp - 0x86], 0x6c
mov byte [ebp - 0x85], 0x41
mov byte [ebp - 0x84], 0x6c
mov byte [ebp - 0x83], 0x6c
mov byte [ebp - 0x82], 0x6f
mov byte [ebp - 0x81], 0x63
mov byte [ebp - 0x80], 0
mov byte [ebp - 0x7f], 0xbd
mov dword [0x104c80ac], 0x1f0a
mov byte [ebp - 0x6c], 0x6b
mov byte [ebp - 0x6b], 0x65
mov byte [ebp - 0x6a], 0x72
mov byte [ebp - 0x69], 0x6e
mov byte [ebp - 0x68], 0x65
mov byte [ebp - 0x67], 0x6c
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x32
mov byte [ebp - 0x64], 0x2e
mov byte [ebp - 0x63], 0x64
mov byte [ebp - 0x62], 0x6c
mov byte [ebp - 0x61], 0x6c
mov byte [ebp - 0x60], 0
mov byte [ebp - 0x5f], 0xbd
mov dword [0x104c80a8], 0xdd7
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x9c], edi
mov byte [ebp - 0x9d], dl
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xa8], esi
mov eax, dword [ebp - 0xa8]
mov cl, byte [ebp - 0x9d]
movsx edx, cl
mov si, dx
mov word [ebp + eax*2 - 0x4c], si
mov edx, eax
add edx, 1
mov cl, byte [ebp + eax - 0x6b]
cmp cl, 0
mov byte [ebp - 0x9d], cl
mov dword [ebp - 0xa8], edx
jne 0x104b1cf4
xor eax, eax
lea ecx, [ebp - 0x4c]
mov dword [0x104c80ac], 0x4d
mov dword [0x104c80a8], 0x174
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [ebp - 0xac], eax
call fcn.104b04e0
mov dword [esp], eax
mov eax, dword [ebp - 0x94]
mov dword [esp + 4], eax
call fcn.104b0db0
cmp eax, 0
mov dword [ebp - 0xb0], eax
je 0x104b1e51
mov eax, dword [ebp - 0xb0]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [0x104c80ac], 0x1164
mov dword [esp], eax
mov ecx, dword [ebp - 0x90]
mov dword [esp + 4], ecx
mov dword [ebp - 0xb4], eax
call fcn.104b1230
mov eax, dword [ebp - 0xb4]
mov word [eax], 0x5a4d
xor eax, eax
mov ecx, dword [ebp - 0xb4]
mov dword [ecx + 0x3c], 0xc0
mov dword [ecx + 0xc0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x98]
mov dword [edx + 0x24], ecx
mov ecx, dword [ebp - 0xb4]
mov dword [edx + 0x5c], ecx
mov dword [0x104c80ac], 0x1dae
mov dword [0x104c80a8], 0x1647
add ecx, 0x2148
mov esi, dword [ebp - 0xb4]
cmp esi, 0
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0xbc], eax
je 0x104b1e40
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xbc]
add esp, 0xc0
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
add esp, 0xc0
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x104b1ea0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x104c80b0], 0
mov dword [0x104c80b4], 0
mov dword [0x104c80c0], 0
mov dword [0x104c80a8], 0x204c
mov dword [0x104c80ac], 0x22ea
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
je 0x104b1f13
xor eax, eax
mov ecx, 0x22ea
mov edx, eax
mov esi, eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
jmp 0x104b1f1b
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
mov edi, 0x100
add ecx, 1
mov dword [ebp - 0x30], eax
mov eax, ecx
mov dword [ebp - 0x34], edx
cdq
idiv edi
mov dword [0x104c80b0], edx
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffff77e
mov dword [0x104c80a8], ecx
mov ecx, dword [ebp - 0x1c]
movzx ebx, byte [ecx + edx]
add ebx, esi
mov eax, ebx
mov dword [ebp - 0x38], edx
cdq
idiv edi
mov dword [0x104c80b4], edx
mov esi, dword [ebp - 0x34]
add esi, 0xfffff720
mov dword [0x104c80ac], esi
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x104c80b8], cl
mov edi, dword [ebp - 0x1c]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov cl, byte [0x104c80b8]
mov edx, dword [0x104c80b4]
mov byte [edi + edx], cl
mov edx, dword [0x104c80b0]
movzx edx, byte [edi + edx]
mov ebx, dword [0x104c80b4]
movzx ebx, byte [edi + ebx]
add ebx, edx
and ebx, 0xff
mov dword [0x104c80c0], ebx
mov dword [0x104c80ac], 0x1731
mov dword [0x104c80a8], 0x66e
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x30]
mov cl, byte [edx + ecx]
xor cl, byte [edi + ebx]
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x30]
mov byte [ebx + edx], cl
mov dword [0x104c80ac], 0x1ffc
add edx, 1
mov ecx, dword [ebp - 0x10]
cmp edx, ecx
mov dword [ebp - 0x3c], edx
je 0x104b2026
mov eax, 0x1ffc
mov ecx, dword [0x104c80b0]
mov edx, dword [0x104c80b4]
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x2c], esi
jmp 0x104b1f1b
jmp 0x104b1f13

Function at 0x438c9f
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x438a14
inc esi
add edi, 0xbebe6ecd
call fcn.00438cda
sub edi, esi
xor dword [edx], eax
and edi, edi
inc edx
dec edi
add esi, esi
sub edi, 0x6c30050c
cmp edx, ecx
jne fcn.00438c9f
add edi, 0x2f08f83f
inc edi
and esi, edi
ret
Function at 0x402220
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4241dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 8]
mov byte [ebp - 0x45], al
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x50], ecx
cmp eax, 2
ja 0x402248
mov ecx, 2
jmp 0x402263
cmp eax, 8
ja 0x402254
mov ecx, 8
jmp 0x402263
mov ecx, 0xa
cmp ecx, eax
sbb ecx, ecx
and ecx, 6
add ecx, 0xa
cmp dword [ebp + 0x14], 1
push ebx
push esi
push edi
lea esi, [ebp - 0x44]
jbe 0x4022df
mov dword [ebp - 0x44], 0x300030
mov dword [ebp - 0x40], 0x300030
mov dword [ebp - 0x3c], 0x300030
mov dword [ebp - 0x38], 0x300030
mov dword [ebp - 0x34], 0x300030
mov dword [ebp - 0x30], 0x300030
mov dword [ebp - 0x2c], 0x300030
mov dword [ebp - 0x28], 0x300030
mov dword [ebp - 0x24], 0x300030
mov dword [ebp - 0x20], 0x300030
mov dword [ebp - 0x1c], 0x300030
mov dword [ebp - 0x18], 0x300030
mov dword [ebp - 0x14], 0x300030
mov dword [ebp - 0x10], 0x300030
mov dword [ebp - 0xc], 0x300030
mov dword [ebp - 8], 0x300030
mov ebx, dword [ebp + 0xc]
xor edi, edi
mov eax, ebx
xor edx, edx
div ecx
inc edi
lea esi, [esi + 2]
mov ebx, eax
mov ax, word [edx*2 + str.0123456789ABCDEF]
mov word [esi - 2], ax
test ebx, ebx
jne 0x4022e4
mov dword [ebp - 0x4c], edi
mov edi, dword [ebp + 0x14]
cmp dword [ebp - 0x4c], edi
lea ebx, [ebp - 0x44]
cmova edi, dword [ebp - 0x4c]
xor eax, eax
cmp byte [ebp - 0x45], al
lea ebx, [ebx + edi*2]
setne al
lea esi, [eax + edi]
lea eax, [esi*2 + 0xd]
and eax, 0xfffffff8
add eax, 8
push eax
call fcn.0040e7dc
mov ecx, dword [ebp - 0x50]
mov dword [eax + 4], esi
mov dword [eax + 8], 0x402150
mov dword [eax], 1
add esp, 4
cmp byte [ebp - 0x45], 0
mov dword [ecx], eax
mov dword [ecx + 4], 0
lea ecx, [eax + 0xc]
je 0x402364
mov eax, 0x2d
mov word [ecx], ax
add ecx, 2
test edi, edi
je 0x402380
jmp 0x402370
mov ax, word [ebx - 2]
lea ebx, [ebx - 2]
mov word [ecx], ax
lea ecx, [ecx + 2]
dec edi
jne 0x402370
xor eax, eax
mov word [ecx], ax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e855
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4034e0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418b18
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
mov eax, dword [0x4241dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
call fcn.00402110
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4035c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x4035c5
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.00401000
push 0
push 0x41a47c
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00401ef0
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00402170
test eax, eax
lea ecx, [ebp - 0x20]
sete bl
mov byte [ebp - 4], 1
call fcn.004010d0
test bl, bl
jne 0x4035b6
sub esp, 8
lea eax, [ebp - 0x18]
mov ecx, esp
push eax
call fcn.00401000
call fcn.004034e0
add esp, 8
test al, al
je 0x4035b6
push 0
lea ecx, [ebp + 8]
call fcn.00402110
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
lea ecx, [ebp - 0x18]
setne bl
mov byte [ebp - 4], 0
call fcn.004010d0
jmp 0x4035c7
xor bl, bl
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.004010d0
jmp 0x4035c7
mov bl, 1
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.004010d0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4035f0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x870
mov eax, dword [0x4241dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push eax
mov dword [ebp - 0x870], eax
lea eax, [ebp - 0x414]
push 0x104
push eax
mov bl, 1
call fcn.0040f5e0
push 0x41a480
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0040f574
push 0x41a628
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0040f574
add esp, 0x24
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x403797
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x403680
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.0040f5e0
add esp, 0xc
mov ecx, 0x41a62c
lea eax, [ebp - 0x61c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4036cc
test dx, dx
je 0x4036c8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4036cc
add eax, 4
add ecx, 4
test dx, dx
jne 0x4036a6
xor eax, eax
jmp 0x4036d1
sbb eax, eax
or eax, 1
test eax, eax
je 0x403779
mov ecx, 0x41a630
lea eax, [ebp - 0x61c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40370a
test dx, dx
je 0x403706
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40370a
add eax, 4
add ecx, 4
test dx, dx
jne 0x4036e4
xor eax, eax
jmp 0x40370f
sbb eax, eax
or eax, 1
test eax, eax
je 0x403779
push dword [ebp - 0x870]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040f5e0
push 0x41a480
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040f574
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040f574
add esp, 0x24
test byte [ebp - 0x86c], 0x10
lea eax, [ebp - 0x20c]
push eax
je 0x403777
call fcn.004035f0
add esp, 4
mov bl, al
jmp 0x403779
call edi
lea eax, [ebp - 0x86c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x403680
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
push dword [ebp - 0x870]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 4]
neg eax
sbb al, al
and al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e855
mov esp, ebp
pop ebp
ret
Function at 0x404880
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418188
mov eax, dword fs:[0]
push eax
push ebx
mov eax, dword [0x4241dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
call fcn.00402110
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4048c6
test al, 0x10
jne 0x4048c6
mov bl, 1
jmp 0x4048c8
xor bl, bl
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.004010d0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4048f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418de0
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x4241dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 0x1c]
cmp byte [ebp + 8], 0
mov dword [ebp - 4], 1
jne 0x40493d
cmp dword [edi + 0x2a8], 2
jl 0x404a53
lea ecx, [ebp + 0xc]
call fcn.00402110
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0040f5e0
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.0040f7c8
add esp, 0x14
test eax, eax
je 0x404971
xor ecx, ecx
mov word [eax], cx
mov eax, esi
neg eax
sbb eax, eax
and eax, 0x140
mov dword [ebp - 0x254], 0x3c
mov dword [ebp - 0x250], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp dword [edi + 0x2a8], 2
mov dword [ebp - 0x24c], eax
mov ecx, str.open
mov eax, str.runas
cmovl eax, ecx
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x248], eax
call fcn.00402110
lea ecx, [ebp + 0x14]
mov dword [ebp - 0x244], eax
call fcn.00402170
test eax, eax
jle 0x4049dc
lea ecx, [ebp + 0x14]
call fcn.00402110
mov dword [ebp - 0x240], eax
jmp 0x4049e6
mov dword [ebp - 0x240], 0
lea eax, [ebp - 0x218]
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x254]
push eax
mov dword [ebp - 0x238], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x404a4d
test esi, esi
je 0x404a49
cmp dword [ebp - 0x234], 0x20
jbe 0x404a4d
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x404a49
push 0x1b7740
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x404a55
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0
call fcn.004010d0
lea ecx, [ebp + 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.004010d0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e855
mov esp, ebp
pop ebp
ret 0x18
Function at 0x404a90
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
mov esi, ecx
je 0x404b0d
push ebx
push 0x20a
call fcn.0040fb26
add esp, 4
mov dword [esi + 4], eax
push eax
push 0x104
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, eax
cmp ebx, 0x105
jbe 0x404af7
push dword [esi + 4]
call fcn.0040fb21
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040fb26
add esp, 8
mov dword [esi + 4], eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
pop ebx
test eax, eax
jne 0x404b0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
pop esi
pop ebp
ret 4

Function at 0x404c60
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418e58
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x4241dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
call fcn.00402110
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.00410210
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00410210
push dword [esi]
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.0040f574
lea eax, [ebp - 0x420]
push 0x5f
push eax
call fcn.0040f7c8
add esp, 0x2c
test eax, eax
je 0x404d3e
push 0xffffffffffffffff
add eax, 2
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0040f70a
lea eax, [ebp - 0x218]
push 0x2e
push eax
call fcn.0040f7c8
add esp, 0x18
test eax, eax
je 0x404d3e
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404d47
sub eax, edx
sar eax, 1
je 0x404d68
lea eax, [ebp - 0x218]
push eax
mov ecx, edi
call fcn.004017e0
jmp 0x404d7e
sub esp, 8
mov ecx, esp
push 0x41af44
call fcn.00401070
mov ecx, edi
call fcn.00401820
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.004010d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e855
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406080
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x4241dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x414]
push eax
mov bl, 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040f5e0
lea ecx, [ebp - 0x20c]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4060d0
xor eax, eax
sub ecx, edx
movzx ebx, bl
sar ecx, 1
push str.MacromedTemp
cmove ebx, eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040f574
add esp, 0xc
test bl, bl
je 0x406262
sub esp, 8
lea eax, [ebp - 0x20c]
mov ecx, esp
push eax
call fcn.00401070
call fcn.004034e0
add esp, 8
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
js 0x40619a
push 0x104
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
jle 0x40619a
push 0xffffffffffffffff
push 0x41a480
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040f63c
push 0xffffffffffffffff
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040f63c
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
push eax
push 0x104
push esi
call fcn.0040f70a
add esp, 0x30
jmp 0x4061d0
push esi
push 0
push 0x41a484
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x4061c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x406262
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x406262
push 0xffffffffffffffff
push 0x41a480
push 0x104
push esi
call fcn.0040f63c
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.0040f70a
push 0xffffffffffffffff
push 0x41a48c
push 0x104
push esi
call fcn.0040f63c
add esp, 0x30
lea eax, [ebp - 0x61c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x406274
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp + 0xc], 0
jne 0x406262
push 0
push str.Error
cmp eax, 5
jne 0x406255
push str.You_must_have_administrative_privileges_to_install_Adobe
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e855
mov esp, ebp
pop ebp
ret
push str.Failed_to_create_temporary_file
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e855
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0040e855
mov esp, ebp
pop ebp
ret
Function at 0x4062c0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4241dc]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4064c9
push 0x41a3e4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4064c9
push str.GetNativeSystemInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406320
lea ecx, [ebp - 0x144]
push ecx
call eax
jmp 0x40632d
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x11c]
cmp eax, 0xa
jb 0x406352
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 0x12
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e855
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x4063e6
mov eax, dword [ebp - 0x118]
cmp eax, 3
jb 0x406380
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e855
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x40639f
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 0xe
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e855
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x4063c2
xor eax, eax
cmp byte [ebp - 6], 1
sete al
lea eax, [eax*2 + 0xb]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e855
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x4064c9
cmp byte [ebp - 6], 1
sete al
lea eax, [eax*2 + 0xa]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e855
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x406487
mov eax, dword [ebp - 0x118]
cmp eax, 2
jne 0x406458
mov eax, 0x8000
cmp word [ebp - 8], ax
jne 0x406418
mov eax, 9
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e855
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 6], 1
jne 0x40643b
cmp word [ebp - 0x144], 9
jne 0x40643b
mov eax, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e855
mov esp, ebp
pop ebp
ret
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
neg eax
sbb eax, eax
add eax, 6
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e855
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x406470
mov eax, 7
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e855
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x4064c9
mov eax, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e855
mov esp, ebp
pop ebp
ret
cmp eax, 4
jne 0x4064c9
mov eax, dword [ebp - 0x110]
cmp eax, 2
jne 0x4064aa
mov eax, 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e855
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x4064c9
xor eax, eax
cmp dword [ebp - 0x118], eax
setne al
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e855
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0040e855
mov esp, ebp
pop ebp
ret
Function at 0x406740
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x4241dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
xor bl, bl
call fcn.0040f5e0
add esp, 0xc
lea eax, [ebp - 0x61c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040f5e0
push str.MacromedTemp
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040f574
mov ax, word [ebp - 0x414]
add esp, 0x18
lea ecx, [ebp - 0x414]
movzx edx, ax
test ax, ax
je 0x4067df
lea eax, [edx - 0x41]
cmp ax, 0x19
ja 0x4067d3
add word [ecx], 0x20
movzx edx, word [ecx + 2]
add ecx, 2
test dx, dx
jne 0x4067c6
mov cx, word [ebp - 0x20c]
lea eax, [ebp - 0x20c]
movzx edx, cx
test cx, cx
je 0x40680d
lea ecx, [edx - 0x41]
cmp cx, 0x19
ja 0x406801
add word [eax], 0x20
movzx edx, word [eax + 2]
add eax, 2
test dx, dx
jne 0x4067f4
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0040f86e
add esp, 8
movzx ecx, bl
test eax, eax
mov edx, 1
cmovne ecx, edx
mov al, cl
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040e855
mov esp, ebp
pop ebp
ret