joyce8/EMBER2024-capa huggingface dataset:
Function at 0x465ca0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4898f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00465850
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004658d0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004658d0
lea ecx, [esi + 0xc]
call fcn.0047a3db
lea ecx, [esi + 0x10]
call fcn.0047a3db
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00468100
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00468100
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00468100
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0047a450
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0047a450
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x466948
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x489b18
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x466958
call fcn.00466e70
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x466a3b
cmp byte [edi], 0
je 0x466a3b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x46697d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.00465670
test eax, eax
jne 0x46699d
push 0x4b5760
lea ecx, [esi + 0x38]
call fcn.0047a58d
jmp 0x466a3b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.004656c0
test eax, eax
jne 0x4669cc
mov ecx, esi
call fcn.004657c0
push edi
add esi, 0x38
push 0x4b573c
push esi
call fcn.00478217
add esp, 0xc
jmp 0x466a3b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.004676f0
test eax, eax
je 0x466a34
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.00466b10
test eax, eax
jne 0x466a50
push edi
lea eax, [esi + 0x38]
push 0x4b5718
push eax
call fcn.00478217
add esp, 0xc
mov ecx, esi
call fcn.00466e70
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x466af8
mov ecx, dword [0x4b59d0]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.00478217
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.00465770
test eax, eax
jne 0x466aba
push 0x4b56fc
lea ecx, [esi + 0x38]
call fcn.0047a58d
jmp 0x466aca
push 0xfa
mov ecx, esi
call fcn.004676f0
test eax, eax
jne 0x466ae7
mov ecx, esi
call fcn.00466e70
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0047a450
jmp 0x466a3b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0047a450
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x47c7f4
Capabilities:
Get graphical window text

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

Function at 0x47dee6
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 0x47df28
call fcn.00484127
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47df28
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47df1f
xor eax, eax
jmp 0x47df30
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047df36
pop edi
pop esi
pop ebx
ret 4

Function at 0x484657
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 0x484685
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4846a3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004845bd
jmp 0x4846a3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4846a3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004845bd
test edi, edi
mov eax, edi
jne 0x48468d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x802510
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x82f094]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.00814250
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x8025df
mov eax, 0x82c640
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x802555
sub eax, edx
sar eax, 1
je 0x8025df
lea edx, [esp + 0xc]
push edx
push 0x104
call dword [fcn.00825124]
push 0x82c640
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.008126bd
push 0x82c638
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00812164
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x8025df
push eax
push 1
push 0x200
push esi
call fcn.008129da
mov eax, dword [esp + 0x14]
push eax
call fcn.00812412
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00811ee8
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.00811ee8
add esp, 0x214
ret

Function at 0x8027c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 8
push ebx
push esi
push edi
push 0x3e8
mov dword [esp + 0x10], 0
call dword [0x825140]
push 0x82c6dc
lea eax, [esp + 0x10]
push 0x831de8
push eax
call fcn.00812164
mov eax, dword [esp + 0x18]
add esp, 0xc
test eax, eax
je 0x8028f1
push 2
push 0
push eax
call fcn.00812e4f
mov ecx, dword [esp + 0x18]
add esp, 0xc
push ecx
call fcn.00813071
mov esi, eax
add esp, 4
push esi
call fcn.008130df
mov edx, dword [esp + 0x10]
add esp, 4
push 0
push 0
push edx
mov edi, eax
call fcn.00812e4f
mov eax, dword [esp + 0x18]
add esp, 0xc
push eax
push esi
push 1
push edi
call fcn.008129da
add esp, 0x10
cmp esi, eax
jne 0x8028d3
call dword [0x82512c]
push eax
call fcn.00812d91
add esp, 4
call fcn.00812da3
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul qword [0x82d138]
fmul qword [0x82d130]
fadd qword [0x82d128]
call fcn.00814af0
cmp esi, eax
jl 0x8028d3
mov ebx, edi
sub ebx, eax
add ebx, esi
call fcn.00802770
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00812412
add esp, 4
push 0x831de8
call dword [0x82511c]
push 0x82c774
lea edx, [esp + 0x10]
push 0x831de8
push edx
call fcn.00812164
mov eax, dword [esp + 0x18]
add esp, 0xc
test eax, eax
je 0x8028f1
push eax
push esi
push 1
push edi
call fcn.00812319
add esp, 0x10
mov eax, dword [esp + 0xc]
test eax, eax
je 0x8028e4
push eax
call fcn.00812412
add esp, 4
test edi, edi
je 0x8028f1
push edi
call fcn.00811edd
add esp, 4
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x8047b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
xor ebp, ebp
push esi
mov ebx, ecx
push edi
mov edi, eax
mov dword [esp + 0x10], ebp
cmp ebx, ebp
je 0x8048a1
cmp edi, 0xa
jb 0x8048a1
lea eax, [edi*4]
mov dword [esp + 0x14], eax
inc eax
push eax
call fcn.00811f46
add esp, 4
mov esi, eax
push esi
push ebx
lea edx, [esp + 0x1c]
mov ecx, edi
call fcn.00804630
add esp, 8
test eax, eax
je 0x80489a
mov eax, dword [esp + 0x1c]
push 0x82b804
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00812164
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
jne 0x804825
lea ebp, [eax - 2]
jmp 0x804850
mov edi, dword [esp + 0x14]
push eax
push edi
push 1
push esi
call fcn.00812319
add esp, 0x10
cmp eax, edi
je 0x804867
mov ebp, 0xfffffffe
mov eax, dword [esp + 0x10]
test eax, eax
je 0x804850
push eax
call fcn.00812412
add esp, 4
test esi, esi
je 0x80485d
push esi
call fcn.00812010
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edi, dword [0x82512c]
call edi
xor edx, edx
mov ecx, 0x1f4
div ecx
mov ebx, edx
call edi
xor edx, edx
mov ecx, 0x3e8
div ecx
mov eax, dword [esp + 0x10]
push eax
push ebx
push 1
add edx, esi
push edx
call fcn.00812319
add esp, 0x10
jmp 0x80483f
mov ebp, 0xfffffffd
jmp 0x80483f
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 8
ret
Function at 0x806620
Capabilities:
Encode data using xor

Disassembly:
test ecx, ecx
jne 0x806627
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x806704
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x82ab48]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x82ab48]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x82ab48]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x82ab48]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x82ab48]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x82ab48]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x82ab48]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x82ab48]
inc ecx
sub edx, 8
sub esi, 1
jne 0x806640
pop edi
test edx, edx
je 0x80672b
jmp 0x806710
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x82ab48]
inc ecx
sub edx, 1
jne 0x806710
not eax
pop esi
ret

Function at 0x806730
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x82ab48]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x82ab48]
mov dword [edx + 8], ecx
ret

Function at 0x806780
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x82ab48]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x82ab48]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret
Function at 0x807b80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x807b9e
pop edi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x807b92
cmp dword [edi + 0x7c], ebx
je 0x807bad
call fcn.00807f60
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.008078f0
add esp, 0xc
test eax, eax
je 0x807bd4
pop edi
pop ebp
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push esi
push 0x7e
call fcn.00811f46
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x807c12
push 0x4000
call fcn.00811f46
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
cmp eax, ebx
jne 0x807c1f
push esi
call fcn.00812010
add esp, 4
pop esi
pop edi
pop ebp
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x807c67
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00806a40
test eax, eax
jne 0x807c67
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [esi + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [esi + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x807c8e
mov cl, byte [edi + 0x39]
mov byte [esi + 0x7d], cl
jmp 0x807c94
mov dl, byte [edi + 0x3f]
mov byte [esi + 0x7d], dl
movzx eax, byte [esi + 0x6c]
neg eax
sbb eax, eax
and eax, 0xc
lea edx, [esi + 0x6d]
mov dword [esi + 0x79], eax
mov dword [edx], 0x12345678
mov dword [esi + 0x71], 0x23456789
mov dword [esi + 0x75], 0x34567890
cmp ebp, ebx
je 0x807cd1
lea ecx, [ecx]
mov cl, byte [ebp]
cmp cl, bl
je 0x807cd1
call fcn.00806730
add ebp, 1
jne 0x807cc0
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [esi + 0x3c], eax
mov dword [esi + 8], ebx
mov dword [edi + 0x7c], esi
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret

Function at 0xae1abd
Capabilities:
Encode data using xor

Disassembly:
xor al, al
mov al, byte [edi]
xor al, bl
mov byte [edi], al
inc edi
cmp edi, ecx
jne fcn.00ae1abd
ret
Function at 0x402120
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f00fe
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x521284]
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 esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], esi
push esi
mov dword [ebp - 0x1c], 0
call fcn.004059b0
mov dword [ebp - 4], 0
cmp dword [edi + 0x10], 0
mov dword [ebp - 0x1c], 1
je 0x402195
push 0
push edi
push esi
call fcn.004157c0
add esp, 8
mov ecx, esi
call fcn.00415880
add esp, 4
push 0
push ebx
push esi
call fcn.004157c0
mov edi, dword [0x524320]
add esp, 0xc
test edi, edi
je 0x402244
movzx eax, word [ebp + 0xc]
push str.DICTIONARY
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x402244
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402244
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push edi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [esi + 0x14], 8
mov ebx, eax
mov ecx, esi
jb 0x4021f0
mov ecx, dword [esi]
push 0
push 0x200080
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
je 0x402244
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
test eax, eax
jne 0x40222d
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402244
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40223d
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov eax, esi
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.004cc21a
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4057e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f089d
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x521284]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x23c], esi
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x21c]
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x238], 1
call fcn.00422b40
cmp dword [ebp - 0x21c], 2
jne 0x405878
mov ecx, esi
call fcn.004152b0
test al, al
je 0x4058cc
push 0x15
push str.Adobe_Desktop_Common
jmp 0x4058c5
push 0
push 0x2b
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4058cc
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4058a0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00402a90
push 0x1b
push str.AdobeAdobe_Desktop_Common
mov ecx, esi
call fcn.00403260
push 5
xor eax, eax
mov dword [ebp - 0x234], 0
push str.HDBox
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
call fcn.00402a90
push 0
lea eax, [ebp - 0x234]
mov dword [ebp - 4], 1
push eax
push esi
call fcn.004157c0
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.00402a30
push 0xa
xor eax, eax
mov dword [ebp - 0x234], 0
push str.Set_up.exe
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
call fcn.00402a90
push 0
lea eax, [ebp - 0x234]
mov dword [ebp - 4], 2
push eax
push esi
call fcn.004157c0
add esp, 0xc
lea ecx, [ebp - 0x234]
call fcn.00402a30
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cc21a
mov esp, ebp
pop ebp
ret
Function at 0x40d970
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1500
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x521284]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004cc236
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004cb154
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4150f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x521284]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push 0
push 0
mov edi, ecx
mov esi, edx
push edi
push 0
xor bl, bl
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
lea eax, [ebp - 0x20c]
push eax
js 0x41517e
push dword [ebp - 0x210]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x415170
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415150
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00402a90
mov bl, 1
push dword [ebp - 0x210]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x4151c0
push 1
push 0
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4151c0
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4151a0
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00402a90
mov bl, 1
mov eax, dword [esi + 0x10]
test eax, eax
je 0x415210
mov edx, dword [esi + 0x14]
mov ecx, esi
cmp edx, 8
jb 0x4151d3
mov ecx, dword [esi]
cmp word [ecx + eax*2 - 2], 0x5c
jne 0x415210
lea ecx, [eax - 1]
cmp ecx, eax
ja 0x415205
mov dword [esi + 0x10], ecx
cmp edx, 8
jb 0x4151ec
mov esi, dword [esi]
xor eax, eax
pop edi
mov word [esi + ecx*2], ax
mov al, bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cc21a
mov esp, ebp
pop ebp
ret
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.004030b0
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cc21a
mov esp, ebp
pop ebp
ret
Function at 0x415230
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
push 0
push 0
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
test edi, edi
je 0x41527c
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d3b8e
mov esi, eax
add esp, 4
test esi, esi
je 0x41527c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x415282
push esi
call fcn.004d0b33
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
ret
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415287
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, ebx
call fcn.00402a90
push esi
call fcn.004d0b33
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x415470
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x521284]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea edx, [ebp - 0x210]
lea ecx, [ebp - 0x214]
call fcn.00422b40
cmp dword [ebp - 0x210], 2
jne 0x4154b6
mov ecx, esi
call fcn.004152b0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cc21a
mov esp, ebp
pop ebp
ret
push 0
push 0x2c
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x4154de
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cc21a
mov esp, ebp
pop ebp
ret
push str.Adobe
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004d85cf
lea ecx, [ebp - 0x20c]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415500
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00402a90
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004cc21a
mov esp, ebp
pop ebp
ret

Function at 0x415880
Capabilities:
Check if file exists
Create directory

Disassembly:
push esi
mov esi, ecx
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x41588d
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [esi + 0x14]
test eax, eax
je 0x4158b0
cmp ecx, 8
jb 0x4158a2
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
pop esi
setne al
ret
cmp ecx, 8
jb 0x4158b7
mov esi, dword [esi]
push edi
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov edi, eax
test edi, edi
je 0x415934
mov esi, dword [0x524fac]
test esi, esi
je 0x415904
push edi
push str.SHCreateDirectoryEx_failed._Error:__d
push 0x50cdf8
push 0x50cdf8
push 0x50e6dc
push str.OOBEUtils
push 0x32
mov ecx, esi
call dword [0x4f4350]
call esi
add esp, 0x1c
test edi, edi
sete al
pop edi
pop esi
ret
mov eax, dword [0x524fb0]
test eax, eax
je 0x415932
mov esi, dword [eax]
push edi
push str.SHCreateDirectoryEx_failed._Error:__d
push 0x50e6dc
mov esi, dword [esi + 0x34]
mov ecx, esi
push 0x50cdf8
push 0x32
push eax
call dword [0x4f4350]
call esi
add esp, 0x18
test edi, edi
pop edi
sete al
pop esi
ret