joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4088f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
cmp dword [edi], 0
jle 0x40899c
cmp dword [ebp + 8], 0
je 0x40899c
mov ebx, dword [ecx]
test ebx, ebx
je 0x408943
mov eax, dword [esi + 8]
test eax, eax
je 0x408935
cmp dword [esi], eax
jb 0x408935
cmp dword [esi + 0xc], 0
je 0x40893b
push esi
call fcn.00407640
mov ecx, dword [ebp + 0xc]
add esp, 4
mov eax, dword [esi]
mov byte [eax], bl
inc dword [esi]
dec dword [edi]
mov dword [ecx], 0
cmp dword [edi], 0
jle 0x40899c
mov eax, dword [esi + 8]
test eax, eax
je 0x408989
mov ebx, dword [esi]
cmp ebx, eax
jb 0x408989
mov eax, dword [esi + 0xc]
test eax, eax
je 0x408992
mov ecx, dword [esi + 4]
sub ebx, ecx
cmp byte [esi + 0x14], 0
jne 0x408984
test ebx, ebx
je 0x408984
push eax
push ebx
push 1
push ecx
call dword [sym.imp.MSVCR120.dll_fwrite]
add dword [esi + 0x10], eax
add esp, 0x10
cmp eax, ebx
je 0x408984
mov byte [esi + 0x14], 1
mov eax, dword [esi + 4]
mov dword [esi], eax
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
mov byte [eax], cl
inc dword [esi]
dec dword [edi]
cmp dword [edi], 0
jg 0x408948
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp dword [ecx], eax
setne al
cmp dword [edi], eax
jle 0x4089ff
mov eax, dword [esi + 8]
test eax, eax
je 0x4089eb
mov ebx, dword [esi]
cmp ebx, eax
jb 0x4089eb
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4089f2
mov ecx, dword [esi + 4]
sub ebx, ecx
cmp byte [esi + 0x14], 0
jne 0x4089e3
test ebx, ebx
je 0x4089e3
push eax
push ebx
push 1
push ecx
call dword [sym.imp.MSVCR120.dll_fwrite]
add dword [esi + 0x10], eax
add esp, 0x10
cmp eax, ebx
je 0x4089e3
mov byte [esi + 0x14], 1
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 0xc]
mov dword [esi], eax
mov eax, dword [esi]
mov byte [eax], 0x20
inc dword [esi]
dec dword [edi]
xor eax, eax
cmp dword [ecx], eax
setne al
cmp dword [edi], eax
jg 0x4089a7
mov ebx, dword [ecx]
test ebx, ebx
je 0x408a38
mov eax, dword [esi + 8]
test eax, eax
je 0x408a1f
cmp dword [esi], eax
jb 0x408a1f
cmp dword [esi + 0xc], 0
je 0x408a25
push esi
call fcn.00407640
add esp, 4
mov eax, dword [esi]
mov byte [eax], bl
inc dword [esi]
mov eax, dword [edi]
test eax, eax
jle 0x408a33
dec eax
mov dword [edi], eax
pop edi
pop esi
pop ebx
pop ebp
ret
jns 0x408a38
inc eax
mov dword [edi], eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x408a40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jge 0x408a9f
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [esi + 8]
test eax, eax
je 0x408a92
mov edi, dword [esi]
cmp edi, eax
jb 0x408a92
mov eax, dword [esi + 0xc]
test eax, eax
je 0x408a99
mov ecx, dword [esi + 4]
sub edi, ecx
cmp byte [esi + 0x14], 0
jne 0x408a8d
test edi, edi
je 0x408a8d
push eax
push edi
push 1
push ecx
call dword [sym.imp.MSVCR120.dll_fwrite]
add dword [esi + 0x10], eax
add esp, 0x10
cmp eax, edi
je 0x408a8d
mov byte [esi + 0x14], 1
mov eax, dword [esi + 4]
mov dword [esi], eax
mov eax, dword [esi]
mov byte [eax], 0x20
inc dword [esi]
inc dword [ebx]
js 0x408a51
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x408ad0
Capabilities:
Connect pipe
Read pipe
Terminate process
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x40f1a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov byte [ebp - 0x86], bl
mov byte [ebp - 0x85], 0
cmp ebx, 0x1f
ja case.0x408c40.3
test eax, eax
jg 0x408b1e
call dword [sym.imp.MSVCR120.dll__errno]
pop ebx
mov dword [eax], 0x16
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409cf2
mov esp, ebp
pop ebp
ret
cmp ebx, 9
jne 0x408baa
push esi
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x408b58
call dword [sym.imp.MSVCR120.dll__errno]
pop esi
pop ebx
mov dword [eax], 3
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409cf2
mov esp, ebp
pop ebp
ret
push 0xff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x408b91
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00409a80
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409cf2
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409cf2
mov esp, ebp
pop ebp
ret
push eax
push str..pipepgsignal__u
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.00407450
add esp, 0x10
lea eax, [ebp - 0x8c]
push 0x3e8
push eax
push 1
lea eax, [ebp - 0x85]
push eax
push 1
lea eax, [ebp - 0x86]
push eax
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
test eax, eax
je 0x408c25
cmp dword [ebp - 0x8c], 1
jne case.0x408c40.2
movzx eax, byte [ebp - 0x85]
cmp eax, ebx
je case.0x408c40.109
call dword [sym.imp.MSVCR120.dll__errno]
pop ebx
mov dword [eax], 3
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409cf2
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xfffffffe
cmp eax, 0xe4
ja case.0x408c40.3
movzx eax, byte [eax + 0x408c88]
jmp dword [eax*4 + 0x408c78]
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409cf2
mov esp, ebp
pop ebp
ret
call dword [sym.imp.MSVCR120.dll__errno]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
mov dword [eax], 1
or eax, 0xffffffff
call fcn.00409cf2
mov esp, ebp
pop ebp
ret
Function at 0x409320
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edi
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x409330
sub esi, ecx
lea eax, [esi + 3]
push eax
call dword [sym.imp.MSVCR120.dll_malloc]
mov ebx, eax
add esp, 4
mov dword [ebp - 4], ebx
test ebx, ebx
jne 0x409365
call dword [sym.imp.MSVCR120.dll__errno]
pop edi
pop esi
pop ebx
mov dword [eax], 0xc
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebx + 1]
mov byte [ebx], 0x22
push edi
push eax
call sub.MSVCR120.dll_memcpy
push ebx
mov word [ebx + esi + 1], 0x22
call dword [sym.imp.MSVCR120.dll_system]
mov edi, dword [sym.imp.MSVCR120.dll__errno]
mov ebx, eax
call edi
push dword [ebp - 4]
mov esi, dword [eax]
call dword [sym.imp.MSVCR120.dll_free]
add esp, 0x14
call edi
pop edi
mov dword [eax], esi
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002850
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 3
mov edi, eax
push 0x40000000
push edi
mov dword [esi + 8], ebx
mov word [esi + 0xc], bx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x100028b3
push ebx
push 0x80
push 1
push ebx
push 3
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
lea ecx, [ebp - 8]
push ecx
push 2
lea edx, [ebp - 4]
push edx
push eax
mov dword [esi], eax
mov dword [ebp - 4], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 8
call fcn.1007608d
add esp, 4
cmp eax, ebx
je 0x100028ca
mov dword [eax], ebx
mov byte [eax + 4], bl
mov edi, eax
jmp 0x100028cc
xor edi, edi
mov dword [esi + 4], edi
cmp dword [edi], ebx
jne 0x100028e5
push str.Local5071F542_DF26_4e46_810E_74570ED35255
push 1
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov dword [edi], eax
pop edi
mov eax, esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100028f0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008955e
mov eax, dword fs:[0]
push eax
sub esp, 0x408
mov eax, dword [0x100a5428]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x100a80f8]
test eax, eax
jne 0x1000299d
lea eax, [ebp - 0x410]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x410]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10002956
push eax
lea edx, [ebp - 0x410]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.PDApp.log
lea eax, [ebp - 0x410]
push 0x200
push eax
call fcn.10076352
push 0x10
call fcn.1007608d
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x414], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x10002996
lea eax, [ebp - 0x410]
call fcn.10002850
jmp 0x10002998
xor eax, eax
mov dword [0x100a80f8], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10075b7f
mov esp, ebp
pop ebp
ret
Function at 0x10002a30
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x100a5428]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
lea eax, [ebp - 0x804]
push eax
push 0x200
mov edi, 4
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x804]
push ecx
lea edx, [ebp - 0x404]
push 0x200
push edx
call fcn.100763c7
push str._asu.trace
lea eax, [ebp - 0x404]
push 0x200
push eax
call fcn.10076352
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x18
lea ecx, [ebp - 0x404]
push ecx
call ebx
test eax, eax
je 0x10002b0c
mov edi, 6
mov byte [esi + 8], 1
mov byte [esi + 9], 1
cmp edi, 4
jl 0x10002ab6
mov byte [esi + 0xa], 1
cmp edi, 3
jl 0x10002abf
mov byte [esi + 0xb], 1
cmp edi, 2
jl 0x10002ac8
mov byte [esi + 0xc], 1
cmp edi, 1
jl 0x10002ad1
mov byte [esi + 0xd], 1
push 0x10091fe4
push str.Build_Version____s
mov ecx, 0x10094194
mov eax, esi
call fcn.10002cc0
push edi
push str.Logging_Level_verbosity_Set__to__d
mov ecx, 0x10094194
mov eax, esi
call fcn.10002cc0
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
xor ecx, ebp
pop ebx
call fcn.10075b7f
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x804]
push edx
lea eax, [ebp - 0x404]
push 0x200
push eax
call fcn.100763c7
push str._asu.debug
lea ecx, [ebp - 0x404]
push 0x200
push ecx
call fcn.10076352
add esp, 0x18
lea edx, [ebp - 0x404]
push edx
call ebx
test eax, eax
je 0x10002ab2
mov edi, 5
jmp 0x10002aa9

Function at 0x10002e50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
mov eax, dword [ebp + 8]
push edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10002e60
mov edi, dword [esi + 4]
sub eax, edx
sar eax, 1
mov ebx, eax
mov eax, dword [edi]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x10002ef9
cmp eax, 0xffffffff
je 0x10002ef9
cmp eax, 0x80
je 0x10002ef9
push 2
push 0
mov byte [edi + 4], 1
mov ecx, dword [esi]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 4]
push edx
mov edx, dword [esi]
lea eax, [ebx + ebx]
push eax
push ecx
push edx
call edi
mov ecx, dword [esi]
push 0
lea eax, [ebp - 4]
push eax
push 4
push 0x10092074
push ecx
mov dword [ebp - 4], 0
call edi
mov esi, dword [esi + 4]
cmp byte [esi + 4], 0
je 0x10002ef9
mov edx, dword [esi]
push 0
push 1
push edx
mov byte [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
jne 0x10002ef9
mov byte [esi + 4], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10004230
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100a5428]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0
push 0x26
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x10004283
push str.Unable_to_retreive_App_Path_from_Win_library:_n
call fcn.100028f0
mov ebx, str.Utilities
call fcn.10002fd0
add esp, 4
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10075b7f
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x210]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x10004290
mov ecx, dword [str.Adobe]
mov edx, dword [0x10092588]
mov dword [eax], ecx
mov ecx, dword [0x1009258c]
mov dword [eax + 4], edx
mov dx, word [0x10092590]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100042d0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x210]
push eax
mov ecx, esi
call fcn.10001a60
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop ebx
call fcn.10075b7f
mov esp, ebp
pop ebp
ret

Function at 0x10004300
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100a5428]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0
push 0x26
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x10004353
push str.Unable_to_retreive_App_Path_from_Win_library:_n
call fcn.100028f0
mov ebx, str.Utilities
call fcn.10002fd0
add esp, 4
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10075b7f
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10004360
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x210]
push ecx
mov ecx, esi
call fcn.10001a60
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop ebx
call fcn.10075b7f
mov esp, ebp
pop ebp
ret

Function at 0x10004390
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100a5428]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0
push 0x23
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x100043e3
push str.Unable_to_retreive_Path_from_Win_library:_n
call fcn.100028f0
mov ebx, str.Utilities
call fcn.10002fd0
add esp, 4
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10075b7f
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100043f0
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x210]
push ecx
mov ecx, esi
call fcn.10001a60
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop ebx
call fcn.10075b7f
mov esp, ebp
pop ebp
ret
Function at 0x10004420
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100a5428]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0
push 0x2e
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x10004473
push str.Unable_to_retreive_Path_from_Win_library:_n
call fcn.100028f0
mov ebx, str.Utilities
call fcn.10002fd0
add esp, 4
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10075b7f
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10004480
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x210]
push ecx
mov ecx, esi
call fcn.10001a60
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop ebx
call fcn.10075b7f
mov esp, ebp
pop ebp
ret

Function at 0x100044b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100a5428]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0
push 0x14
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x10004503
push str.Unable_to_retreive_Path_from_Win_library:_n
call fcn.100028f0
mov ebx, str.Utilities
call fcn.10002fd0
add esp, 4
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10075b7f
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10004510
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x210]
push ecx
mov ecx, esi
call fcn.10001a60
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop ebx
call fcn.10075b7f
mov esp, ebp
pop ebp
ret

Function at 0x10004540
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100a5428]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0x1c
lea eax, [ebp - 0x210]
push eax
push 0
mov ebx, ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x10004599
push str.Unable_to_retreive_Local_App_Data_Path_from_Win_library:_n
call fcn.100028f0
mov ebx, str.Utilities
call fcn.10002fd0
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10075b7f
mov esp, ebp
pop ebp
ret
lea edi, [ebp - 0x210]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x100045a2
mov ecx, 9
mov esi, str.AdobeOOBEPDApp_
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x210]
movsw word es:[edi], word [esi]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100045c5
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x210]
push ecx
mov ecx, ebx
call fcn.10001a60
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.10075b7f
mov esp, ebp
pop ebp
ret
Function at 0x10004600
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100a5428]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0
push 0x2b
lea eax, [ebp - 0x210]
push eax
push 0
mov esi, ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x10004657
push str.Unable_to_retreive_commonPath:_n
call fcn.100028f0
mov ebx, str.Utilities
call fcn.10002fd0
add esp, 4
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10075b7f
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10004660
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x210]
push ecx
mov ecx, esi
call fcn.10001a60
push 6
mov eax, str.Adobe
mov ecx, esi
call fcn.10006680
cmp dword [esi + 0x14], 8
jb 0x10004694
mov esi, dword [esi]
push esi
push str.ACF_Path_retreived_:_ls_n
call fcn.100028f0
mov ebx, str.Utilities
call fcn.10002f40
mov ecx, dword [ebp - 4]
add esp, 8
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.10075b7f
mov esp, ebp
pop ebp
ret
Function at 0x10004930
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10089fb0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x100a5428]
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 eax, dword [ebp + 8]
push 0x800
mov dword [ebp - 0x4c], eax
call fcn.10075b74
add esp, 4
mov esi, eax
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor edi, edi
mov ebx, 7
xor ecx, ecx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], cx
mov eax, esi
mov dword [ebp - 4], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10004997
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.10001a60
push esi
call fcn.1007677a
xor edx, edx
add esp, 4
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], dx
lea ebx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.10005890
mov ebx, 8
test al, al
jne 0x10004a13
cmp dword [ebp - 0x18], ebx
jb 0x100049eb
mov eax, dword [ebp - 0x2c]
push eax
call fcn.10076031
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x34], ebx
jb 0x10004a0c
mov edx, dword [ebp - 0x48]
push edx
call fcn.10076031
add esp, 4
xor al, al
jmp 0x10004b1c
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x10004a1e
lea eax, [ebp - 0x2c]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x10004a23
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [ebp - 0x48]
call fcn.10006680
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], ebx
jae 0x10004a46
lea eax, [ebp - 0x48]
push edi
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp eax, edi
je 0x10004a92
cmp eax, 0xb7
je 0x10004a92
cmp eax, 0x50
je 0x10004a92
push str.utilCreateAndGetTempFolderPath
push str.Unable_to_create_directoryPath_at_desired_location:_s
call fcn.100028f0
mov ebx, str.Utilities
call fcn.10002f70
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.10001040
lea ecx, [ebp - 0x48]
call fcn.10001040
xor al, al
jmp 0x10004b1c
mov esi, dword [ebp - 0x4c]
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x48]
push eax
mov ecx, esi
call fcn.10001070
mov eax, esi
call fcn.10004b40
test al, al
jne 0x10004ae8
cmp dword [ebp - 0x18], ebx
jb 0x10004abf
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.10076031
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], dx
cmp dword [ebp - 0x34], ebx
jb 0x10004a0c
mov eax, dword [ebp - 0x48]
push eax
call fcn.10076031
add esp, 4
xor al, al
jmp 0x10004b1c
cmp dword [ebp - 0x18], ebx
jb 0x10004af9
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.10076031
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], dx
cmp dword [ebp - 0x34], ebx
jb 0x10004b1a
mov eax, dword [ebp - 0x48]
push eax
call fcn.10076031
add esp, 4
mov al, 1
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.10075b7f
mov esp, ebp
pop ebp
ret
Function at 0x10004b40
Capabilities:
Create directory

Disassembly:
push ecx
push ebx
push esi
mov esi, eax
cmp dword [esi + 0x14], 8
jb 0x10004b4d
mov eax, dword [esi]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x10004b95
cmp eax, 0xb7
je 0x10004b95
cmp eax, 0x50
je 0x10004b95
cmp dword [esi + 0x14], 8
jb 0x10004b70
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_create_directoryPath_...Error_Code_is:__d_._At_desired_location:_s
call fcn.100028f0
mov ebx, str.Utilities
call fcn.10002fa0
add esp, 0xc
xor al, al
pop esi
pop ebx
pop ecx
ret
pop esi
mov al, 1
pop ebx
pop ecx
ret
Function at 0x10005930
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, eax
mov ebx, 8
cmp dword [edi + 0x14], ebx
jb 0x10005945
mov eax, dword [edi]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10005994
cmp dword [edi + 0x14], ebx
jb 0x1000596c
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Failed_to_create_file_at_path_:_s_Error:_d_n
call fcn.100028f0
mov ebx, str.Utilities
call fcn.10002fd0
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push ecx
push edx
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100059cb
mov eax, edi
call fcn.10006140
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_write_in_file_ERROR_VAL:_d_n
call fcn.100028f0
mov ebx, str.Utilities
call fcn.10002fd0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret