joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ab8b0
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
jne 0x4ab8c0
mov esi, 1
push esi
call fcn.004c1e07
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4ab912
call fcn.004c292d
mov edi, eax
call fcn.004ae420
mov ecx, dword [edi]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov edi, eax
and edi, 8
je 0x4ab8f6
mov edx, dword [0x1108460]
mov dword [0x110845c], edx
test al, 0x18
je 0x4ab907
push esi
push 0x24
push 5
call fcn.004aec70
add esp, 0xc
test edi, edi
je 0x4ab92d
push 1
call fcn.004c3f3c
test byte [esp + 0x14], 0x20
je 0x4ab92d
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x4aca30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov edx, dword [ebp + 0x10]
test edx, edx
push ebx
push esi
push edi
je 0x4acb24
cmp byte [edx], 0
je 0x4acb17
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
add eax, 8
or ecx, 0xffffffff
mov dword [esp + 0xc], eax
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x20]
push ecx
mov esi, ebx
call fcn.004ac9b0
mov edi, dword [ebp + 0xc]
push 8
lea edx, [esp + 0x20]
push edi
push edx
call fcn.004ac9b0
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
xor eax, edx
push eax
xor ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.004ac920
mov eax, dword [esp + 0x30]
add esp, 0x24
cmp edi, eax
jae 0x4acae1
sub eax, edi
mov edi, eax
lea eax, [esp + 0x20]
push eax
call fcn.004ac960
fmul qword [0x10db430]
push ecx
fstp qword [esp]
call fcn.004c07a8
fadd qword [0x10db428]
add esp, 8
call fcn.004c0878
mov byte [ebx], al
inc ebx
dec edi
jne 0x4acab4
lea ecx, [esp + 0x20]
push ecx
call fcn.004ac960
fmul qword [0x10db430]
push ecx
fstp qword [esp]
call fcn.004c07a8
add esp, 8
call fcn.004c0878
cmp esi, ebx
je 0x4acb0d
xor byte [esi], al
inc esi
cmp esi, ebx
jne 0x4acb06
mov byte [ebx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov byte [edx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
pop edi
pop esi
mov byte [eax], 0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4acef0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
lea eax, [ebx + 0x134]
push edi
lea esi, [ebx + 0x34]
mov dword [esp + 0x14], eax
xor edi, edi
mov ecx, dword [ebx + 0x1c]
mov ebp, edi
and ebp, 0xff
mov al, byte [ecx + ebp + 1]
test al, 3
je 0x4acf20
mov byte [edi + esi], 2
jmp 0x4acf57
test al, 4
je 0x4acf2a
mov byte [edi + esi], 0xd
jmp 0x4acf57
mov edx, dword [ebx + 0x240]
push edi
push ebx
call dword [edx + 4]
add esp, 8
cmp eax, 1
jle 0x4acf43
mov byte [edi + esi], 2
jmp 0x4acf57
mov eax, dword [ebx + 0x1c]
test byte [eax + ebp + 1], 0x17
jne 0x4acf53
mov byte [edi + esi], 0x19
jmp 0x4acf57
mov byte [edi + esi], 1
inc edi
cmp edi, 0x100
jb 0x4acf07
mov ecx, dword [esp + 0x14]
mov al, 7
mov byte [esi + 0x21], al
mov byte [esi + 0x3d], al
mov byte [esi + 0x3e], al
mov al, 0x10
mov byte [esi + 0x7c], al
mov byte [esi + 0x26], al
mov byte [esi + 0x24], 2
mov byte [esi + 0x5f], 2
mov byte [esi + 0x27], 9
mov byte [esi + 0x2e], 0xf
mov byte [esi + 0x3c], 8
mov byte [esi + 0x23], 0xa
mov byte [esi + 0x3b], 0x15
mov byte [esi + 0x3a], 0x16
mov byte [esi], 0x11
mov byte [esi + 0x5c], 0x12
mov byte [esi + 0x2f], 0x13
mov byte [esi + 0x2a], 0x14
mov byte [esi + 0x40], 0x17
mov byte [esi + 0x60], 0x1a
mov byte [esi + 0x22], 0x20
mov eax, esi
sub ecx, esi
mov edi, 0x100
mov dl, byte [eax]
cmp dl, 2
je 0x4acfcb
cmp dl, 0xd
je 0x4acfcb
xor edx, edx
jmp 0x4acfd0
mov edx, 1
mov byte [ecx + eax], dl
inc eax
dec edi
jne 0x4acfbb
mov al, 0x1d
mov byte [esi + 0x58], al
mov byte [esi + 0x78], al
mov al, 0x1f
pop edi
mov byte [esi + 0x62], 0x1e
mov byte [esi + 0x4e], al
mov byte [esi + 0x6e], al
pop esi
pop ebp
pop ebx
ret

Function at 0x4acff0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push ebx
push 0x4000
call fcn.004ab8b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4ad011
pop edi
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esp + 0x10]
push ebx
push 0
push eax
call fcn.004ae660
mov edi, eax
add esp, 0xc
test edi, edi
jge 0x4ad036
push esi
call fcn.004ab940
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
ret
push ebp
push 0x4000
push esi
push edi
call fcn.004cc8dc
push ebx
push edi
mov ebp, eax
call fcn.004ae6d0
push 0x4ad070
push ebp
push esi
call fcn.004afa00
push esi
call fcn.004ab940
add esp, 0x24
pop ebp
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x4ae390
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push 0x121a700
xor bl, bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x121a620]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x4ae40b
push 0x4c
push 1
call fcn.004c2d55
mov esi, eax
add esp, 8
test esi, esi
jne 0x4ae3d3
push 0x121a700
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret
mov ecx, dword [0x121a620]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x120bf6c]
inc eax
lea edx, [esi + 0xc]
mov dword [0x120bf6c], eax
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 4]
push 0
push eax
call fcn.004b1ea0
add esp, 8
mov byte [esi + 0x3c], 1
push 0x121a700
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret

Function at 0x4ae890
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.004c292d
mov ebx, dword [esp + 0x14]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.004cc8dc
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x4ae98a
call fcn.004c292d
cmp dword [eax], 0
je 0x4ae8d7
call fcn.004c292d
mov ebp, dword [eax]
jmp 0x4ae8da
or ebp, 0xffffffff
call fcn.004ae420
test esi, esi
mov dword [eax], ebp
jne 0x4ae8ef
call fcn.004c292d
cmp dword [eax], 4
je 0x4ae93f
mov eax, dword [esp + 0x20]
test al, 0x1a
je 0x4ae922
cmp esi, 0xffffffff
je 0x4ae964
test al, 6
je 0x4ae922
call fcn.004ae420
mov ecx, dword [eax]
push ecx
push ebx
call fcn.004b1ed0
add esp, 4
push eax
push 0x24
push 9
call fcn.004aec70
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x4ae982
test al, 6
je 0x4ae930
test ah, 2
je 0x4ae982
test esi, esi
jbe 0x4ae98e
test ah, 2
je 0x4ae98e
add dword [esp + 0x18], esi
sub edi, esi
call fcn.004c292d
mov edx, dword [esp + 0x18]
push edi
push edx
push ebx
mov dword [eax], 0
call fcn.004cc8dc
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x4ae98a
jmp 0x4ae8c4
call fcn.004ae420
mov eax, dword [eax]
push eax
push ebx
call fcn.004b1ed0
add esp, 4
push eax
push 0x24
push 2
call fcn.004aec70
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x20]
test al, 6
je 0x4ae99b
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
test ah, 2
je 0x4ae9a4
mov esi, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x4c3a01
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4c3a21
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004c28ba
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4c3a44
test byte [esp + 8], 2
je 0x4c3a44
call fcn.004c292d
mov dword [eax], 0xd
call fcn.004c2936
mov dword [eax], 5
jmp 0x4c3a1d
xor eax, eax
ret
Function at 0x4d6ea6
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4d6ede
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.004d4f33
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004d4f0b
jmp 0x4d6eea
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4d859b
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 0x4d85dd
call fcn.004de1db
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4d85dd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4d85d4
xor eax, eax
jmp 0x4d85e5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004d85eb
pop edi
pop esi
pop ebx
ret 4

Function at 0x4de70b
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 0x4de739
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4de757
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004de671
jmp 0x4de757
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4de757
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004de671
test edi, edi
mov eax, edi
jne 0x4de741
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
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.0040e75c
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.0040e7d5
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4034e0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418af8
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.0040f560
push 0x41a480
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0040f4f4
push 0x41a628
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0040f4f4
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.0040f560
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.0040f560
push 0x41a480
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040f4f4
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040f4f4
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.0040e7d5
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 0x418168
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 0x418dc0
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.0040f560
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.0040f748
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.0040e7d5
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.0040faa6
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.0040faa1
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040faa6
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 0x418e38
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.00410190
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00410190
push dword [esi]
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.0040f4f4
lea eax, [ebp - 0x420]
push 0x5f
push eax
call fcn.0040f748
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.0040f68a
lea eax, [ebp - 0x218]
push 0x2e
push eax
call fcn.0040f748
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.0040e7d5
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.0040f560
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.0040f4f4
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.0040f5bc
push 0xffffffffffffffff
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040f5bc
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
push eax
push 0x104
push esi
call fcn.0040f68a
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.0040f5bc
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.0040f68a
push 0xffffffffffffffff
push 0x41a48c
push 0x104
push esi
call fcn.0040f5bc
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.0040e7d5
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.0040e7d5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0040e7d5
mov esp, ebp
pop ebp
ret