joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4603a0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4603d3
push esi
call fcn.0046e740
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4603cc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x460459
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x460442
mov eax, dword [esi + 8]
test eax, eax
je 0x4603f7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x46043e
cmp eax, 2
je 0x460442
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4603ea
cmp eax, 3
je 0x46041d
cmp eax, 1
jne 0x4603ea
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4603ea
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4603ea
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00460480
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x460468
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00460480
add esp, 4
pop esi
ret

Function at 0x460cf0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x460d11
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x460d11
mov eax, dword [eax + 0x44]
test eax, eax
je 0x460d11
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x47ba40
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x47bae3
test eax, eax
jbe 0x47bae3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x47bae3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x47ba8e
xor esi, esi
jmp 0x47ba94
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x47babf
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00417370
add esi, eax
push esi
mov ebx, esi
call fcn.00417370
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x47baa0
pop ebp
test edi, edi
pop edi
jne 0x47bae3
test ebx, ebx
je 0x47bae3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0047ff60
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x47bc05
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x47bd1d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47bd1d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00490bd8
mov esi, eax
test esi, esi
je 0x47bd1d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x47bd1d
mov ecx, esi
call fcn.0047bb90
cmp edi, eax
jge 0x47bd1d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x47bca3
mov dword [esp + 0x34], 1
jmp 0x47bcfe
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x47bd1d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0047b190
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x49157b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4915b3
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0048f632
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048f60a
jmp 0x4915bf
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x492c70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x492cb2
call fcn.00498725
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x492cb2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x492ca9
xor eax, eax
jmp 0x492cba
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00492cc0
pop edi
pop esi
pop ebx
ret 4
Function at 0x498c55
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x498c83
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x498ca1
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00498bbb
jmp 0x498ca1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x498ca1
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00498bbb
test edi, edi
mov eax, edi
jne 0x498c8b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

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 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.0040e2ac
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.0040e325
mov esp, ebp
pop ebp
ret 0x10
Function at 0x403460
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418588
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 0x403545
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x403545
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 0x403536
sub esp, 8
lea eax, [ebp - 0x18]
mov ecx, esp
push eax
call fcn.00401000
call fcn.00403460
add esp, 8
test al, al
je 0x403536
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 0x403547
xor bl, bl
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.004010d0
jmp 0x403547
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 0x403570
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.0040f0b0
push 0x41a480
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0040f044
push 0x41a620
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0040f044
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 0x403717
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x403600
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.0040f0b0
add esp, 0xc
mov ecx, 0x41a624
lea eax, [ebp - 0x61c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40364c
test dx, dx
je 0x403648
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40364c
add eax, 4
add ecx, 4
test dx, dx
jne 0x403626
xor eax, eax
jmp 0x403651
sbb eax, eax
or eax, 1
test eax, eax
je 0x4036f9
mov ecx, 0x41a628
lea eax, [ebp - 0x61c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40368a
test dx, dx
je 0x403686
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40368a
add eax, 4
add ecx, 4
test dx, dx
jne 0x403664
xor eax, eax
jmp 0x40368f
sbb eax, eax
or eax, 1
test eax, eax
je 0x4036f9
push dword [ebp - 0x870]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040f0b0
push 0x41a480
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040f044
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040f044
add esp, 0x24
test byte [ebp - 0x86c], 0x10
lea eax, [ebp - 0x20c]
push eax
je 0x4036f7
call fcn.00403570
add esp, 4
mov bl, al
jmp 0x4036f9
call edi
lea eax, [ebp - 0x86c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x403600
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.0040e325
mov esp, ebp
pop ebp
ret
Function at 0x4044e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417c58
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 0x404526
test al, 0x10
jne 0x404526
mov bl, 1
jmp 0x404528
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 0x404550
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4187c0
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 0x40459d
cmp dword [edi + 0x288], 2
jl 0x4046b3
lea ecx, [ebp + 0xc]
call fcn.00402110
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0040f0b0
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.0040f298
add esp, 0x14
test eax, eax
je 0x4045d1
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 + 0x288], 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 0x40463c
lea ecx, [ebp + 0x14]
call fcn.00402110
mov dword [ebp - 0x240], eax
jmp 0x404646
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 0x4046ad
test esi, esi
je 0x4046a9
cmp dword [ebp - 0x234], 0x20
jbe 0x4046ad
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x4046a9
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 0x4046b5
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.0040e325
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4046f0
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 0x40476d
push ebx
push 0x20a
call fcn.0040f5f6
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 0x404757
push dword [esi + 4]
call fcn.0040f5f1
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040f5f6
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 0x40476d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
pop esi
pop ebp
ret 4

Function at 0x4048c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418838
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.0040fce0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0040fce0
push dword [esi]
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.0040f044
lea eax, [ebp - 0x420]
push 0x5f
push eax
call fcn.0040f298
add esp, 0x2c
test eax, eax
je 0x40499e
push 0xffffffffffffffff
add eax, 2
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0040f1da
lea eax, [ebp - 0x218]
push 0x2e
push eax
call fcn.0040f298
add esp, 0x18
test eax, eax
je 0x40499e
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 0x4049a7
sub eax, edx
sar eax, 1
je 0x4049c8
lea eax, [ebp - 0x218]
push eax
mov ecx, edi
call fcn.004017e0
jmp 0x4049de
sub esp, 8
mov ecx, esp
push 0x41ae6c
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.0040e325
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405c50
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.0040f0b0
lea ecx, [ebp - 0x20c]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405ca0
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.0040f044
add esp, 0xc
test bl, bl
je 0x405e32
sub esp, 8
lea eax, [ebp - 0x20c]
mov ecx, esp
push eax
call fcn.00401070
call fcn.00403460
add esp, 8
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
js 0x405d6a
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 0x405d6a
push 0xffffffffffffffff
push 0x41a480
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040f10c
push 0xffffffffffffffff
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040f10c
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
push eax
push 0x104
push esi
call fcn.0040f1da
add esp, 0x30
jmp 0x405da0
push esi
push 0
push 0x41a484
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405d91
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x405e32
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405e32
push 0xffffffffffffffff
push 0x41a480
push 0x104
push esi
call fcn.0040f10c
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.0040f1da
push 0xffffffffffffffff
push 0x41a48c
push 0x104
push esi
call fcn.0040f10c
add esp, 0x30
lea eax, [ebp - 0x61c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x405e44
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp + 0xc], 0
jne 0x405e32
push 0
push str.Error
cmp eax, 5
jne 0x405e25
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.0040e325
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.0040e325
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0040e325
mov esp, ebp
pop ebp
ret
Function at 0x405e90
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 0x406099
push 0x41a3e4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x406099
push str.GetNativeSystemInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x405ef0
lea ecx, [ebp - 0x144]
push ecx
call eax
jmp 0x405efd
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x11c]
cmp eax, 0xa
jb 0x405f22
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 0x12
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e325
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x405fb6
mov eax, dword [ebp - 0x118]
cmp eax, 3
jb 0x405f50
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e325
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x405f6f
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 0xe
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e325
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x405f92
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.0040e325
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x406099
cmp byte [ebp - 6], 1
sete al
lea eax, [eax*2 + 0xa]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e325
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x406057
mov eax, dword [ebp - 0x118]
cmp eax, 2
jne 0x406028
mov eax, 0x8000
cmp word [ebp - 8], ax
jne 0x405fe8
mov eax, 9
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e325
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 6], 1
jne 0x40600b
cmp word [ebp - 0x144], 9
jne 0x40600b
mov eax, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e325
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.0040e325
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x406040
mov eax, 7
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e325
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x406099
mov eax, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e325
mov esp, ebp
pop ebp
ret
cmp eax, 4
jne 0x406099
mov eax, dword [ebp - 0x110]
cmp eax, 2
jne 0x40607a
mov eax, 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e325
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x406099
xor eax, eax
cmp dword [ebp - 0x118], eax
setne al
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e325
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0040e325
mov esp, ebp
pop ebp
ret