joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407470
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push str.crackpdf.dll
lea eax, [ebp - 0x104]
push eax
call fcn.004014e0
add esp, 8
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4074e8
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x52cae0], eax
cmp dword [0x52cae0], 0
jne 0x4074be
xor eax, eax
jmp 0x40752a
push 0x49edf4
mov eax, dword [0x52cae0]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x52cac8], eax
cmp dword [0x52cac8], 0
jne 0x4074e1
xor eax, eax
jmp 0x40752a
mov eax, 1
jmp 0x40752a
call fcn.00407423
mov dword [0x52cae0], eax
cmp dword [0x52cae0], 0
jne 0x4074ff
xor eax, eax
jmp 0x40752a
push 0x49ee00
mov ecx, dword [0x52cae0]
push ecx
call fcn.0040973f
add esp, 8
mov dword [0x52cac8], eax
cmp dword [0x52cac8], 0
jne 0x407525
xor eax, eax
jmp 0x40752a
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4086dd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48bc20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x64], 0
jne 0x40879d
lea ecx, [ebp - 0x14]
call fcn.00405ad0
mov dword [ebp - 4], 0
push 0x104
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00481925
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.00481974
push str.winhlp32.exe
lea ecx, [ebp - 0x14]
call fcn.004818fe
lea ecx, [ebp - 0x14]
call fcn.00405b70
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x408784
push 0x6a
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x408784
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.USER32.dll_CopyIcon]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x64], eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00481640
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4087ab
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov dword [ebp - 0x114], ecx
lea eax, [ebp - 8]
push eax
push 1
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x408818
mov dword [ebp - 0x110], 0x104
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x10c]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 0x10c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x408a16
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov dword [ebp - 0x214], ecx
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0x4f0bf8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x20
ja 0x408b54
lea edx, [ebp - 0x20c]
push edx
push str..htm
push SysReAllocString
mov ecx, dword [ebp - 0x214]
call fcn.004087ab
test eax, eax
jne 0x408b54
push str._shellopencommand
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x20c]
push edx
push SysReAllocString
mov ecx, dword [ebp - 0x214]
call fcn.004087ab
test eax, eax
jne 0x408b54
push str.__1_
lea eax, [ebp - 0x20c]
push eax
call fcn.004059e0
add esp, 8
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
jne 0x408b14
push 0x4f0c24
lea ecx, [ebp - 0x20c]
push ecx
call fcn.0046cd10
add esp, 8
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
jne 0x408b09
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x20d]
mov dword [ebp - 0x210], eax
jmp 0x408b12
mov ecx, dword [ebp - 0x210]
mov byte [ecx], 0
jmp 0x408b1d
mov edx, dword [ebp - 0x210]
mov byte [edx], 0
push 0x4f0c28
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x409263
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
xor ecx, ecx
mov cx, word [edx + 0x14]
lea edx, [eax + ecx + 0x18]
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], 0
jmp 0x4092a4
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
add ecx, 0x28
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
xor ecx, ecx
mov cx, word [eax + 6]
cmp dword [ebp - 0x14], ecx
jge 0x409357
mov edx, dword [ebp - 8]
cmp dword [edx + 0x10], 0
jne 0x40930b
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jle 0x409309
push 4
push 0x1000
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
push ecx
push 0
mov edx, dword [ebp - 0xc]
push edx
call fcn.0046ca50
add esp, 0xc
jmp 0x409292
push 4
push 0x1000
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
add eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0046d560
add esp, 0xc
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 8], ecx
jmp 0x409292
mov esp, ebp
pop ebp
ret
Function at 0x40935b
Capabilities:
Enumerate pe sections
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
xor edx, edx
mov dx, word [eax + 0x14]
lea eax, [ecx + edx + 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x409393
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
add edx, 0x28
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
xor edx, edx
mov dx, word [ecx + 6]
cmp dword [ebp - 8], edx
jge 0x4094af
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
and ecx, 0x20000000
neg ecx
sbb ecx, ecx
neg ecx
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x24]
and eax, 0x40000000
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x24]
and edx, 0x80000000
neg edx
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
and ecx, 0x2000000
test ecx, ecx
je 0x409413
push 0x4000
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x409381
mov eax, dword [ebp - 0x10]
shl eax, 4
mov ecx, dword [ebp - 0x20]
lea edx, [eax + ecx*8 + 0x4f0c2c]
mov eax, dword [ebp - 0xc]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x24]
and eax, 0x4000000
test eax, eax
je 0x409444
mov ecx, dword [ebp - 0x18]
or ch, 2
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x409488
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x24]
and edx, 0x40
test edx, edx
je 0x40946d
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
mov dword [ebp - 0x14], edx
jmp 0x409488
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
and ecx, 0x80
test ecx, ecx
je 0x409488
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jbe 0x4094aa
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x409381
mov esp, ebp
pop ebp
ret
Function at 0x40b271
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
mov eax, str.NULL
jne 0x40b289
mov edi, eax
mov edx, dword [ebp + 0x10]
test edx, edx
jne 0x40b292
mov edx, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x40b29b
mov ecx, eax
cmp dword [ebp + 8], 0
je 0x40b2a4
mov eax, dword [ebp + 8]
push edi
push edx
push ecx
push eax
lea eax, [ebp - 0x400]
push str.veryDecryptPDF:__s____s__Owner_s__User_s_n
push eax
call fcn.0046cadf
add esp, 0x18
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp + 0x18]
mov eax, dword [ebp + 0x1c]
and dword [0x4f14a0], 0
mov dword [0x4f14a4], 1
push dword [ebp + 0x10]
mov dword [0x4f14a8], eax
push dword [ebp + 0x14]
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040cc64
add esp, 0x1c
pop edi
leave
ret 0x18

Function at 0x40c2b6
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0046cab0
and byte [ebp - 0x1000], 0
push edi
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0xfff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x1000]
push dword [ebp + 8]
push eax
call fcn.0046e073
add esp, 0xc
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
leave
ret
Function at 0x40c9a3
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
push ebx
push esi
push edi
push 0xc8
lea eax, [ebp - 0xd0]
push 0
push eax
call fcn.0046ca50
push 0x20
mov word [ebp - 0xd0], 0x43
pop eax
mov word [ebp - 0xce], 0x6f
mov word [ebp - 0xcc], 0x70
mov word [ebp - 0xca], 0x79
mov word [ebp - 0xc8], 0x72
mov word [ebp - 0xc6], 0x69
mov word [ebp - 0xc4], 0x67
mov word [ebp - 0xc2], 0x68
mov word [ebp - 0xc0], 0x74
mov word [ebp - 0xbe], ax
mov word [ebp - 0xbc], 0x40
mov word [ebp - 0xba], ax
mov word [ebp - 0xb8], 0x32
mov word [ebp - 0xb6], 0x30
mov word [ebp - 0xb4], 0x30
mov word [ebp - 0xb2], 0x32
mov word [ebp - 0xb0], 0x2d
mov word [ebp - 0xae], 0x32
mov word [ebp - 0xac], 0x30
mov word [ebp - 0xaa], 0x31
mov word [ebp - 0xa8], 0x39
mov word [ebp - 0xa6], ax
mov word [ebp - 0xa4], 0x77
mov word [ebp - 0xa2], 0x77
mov word [ebp - 0xa0], 0x77
mov word [ebp - 0x9e], 0x2e
mov word [ebp - 0x9c], 0x76
mov word [ebp - 0x9a], 0x65
mov word [ebp - 0x98], 0x72
mov word [ebp - 0x96], 0x79
mov word [ebp - 0x94], 0x70
mov word [ebp - 0x92], 0x64
mov word [ebp - 0x90], 0x66
mov word [ebp - 0x8e], 0x2e
mov word [ebp - 0x8c], 0x63
mov word [ebp - 0x8a], 0x6f
mov word [ebp - 0x88], 0x6d
mov word [ebp - 0x86], ax
mov word [ebp - 0x84], 0x49
mov word [ebp - 0x82], 0x6e
mov word [ebp - 0x80], 0x63
mov word [ebp - 0x7e], 0x2e
call fcn.0046e32e
lea eax, [ebp - 8]
push eax
call fcn.0046e224
lea eax, [ebp - 8]
push eax
call fcn.0046e0c4
mov esi, dword [eax + 0x14]
mov edi, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
mov ebx, dword [sym.imp.USER32.dll_MessageBoxW]
add esp, 0x14
add esi, 0x76c
inc edi
cmp esi, 0x7d1
mov dword [ebp - 4], eax
jne 0x40cb91
cmp edi, 1
jne 0x40cc5f
cmp eax, edi
jne 0x40cc5f
push 0x40
lea eax, [ebp - 0xd0]
push 0
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call ebx
cmp esi, 0x7d2
jne 0x40cbbf
cmp edi, 1
jne 0x40cc5f
cmp dword [ebp - 4], edi
jne 0x40cc5f
push 0x40
lea eax, [ebp - 0xd0]
push 0
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call ebx
cmp esi, 0x7d3
jne 0x40cbed
cmp edi, 1
jne 0x40cc5f
cmp dword [ebp - 4], edi
jne 0x40cc5f
push 0x40
lea eax, [ebp - 0xd0]
push 0
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call ebx
cmp esi, 0x7d4
jne 0x40cc13
cmp edi, 1
jne 0x40cc5f
cmp dword [ebp - 4], edi
jne 0x40cc5f
push 0x40
lea eax, [ebp - 0xd0]
push 0
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call ebx
cmp esi, 0x7d5
jne 0x40cc39
cmp edi, 1
jne 0x40cc5f
cmp dword [ebp - 4], edi
jne 0x40cc5f
push 0x40
lea eax, [ebp - 0xd0]
push 0
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call ebx
cmp esi, 0x7d6
jne 0x40cc5f
cmp edi, 1
jne 0x40cc5f
cmp dword [ebp - 4], edi
jne 0x40cc5f
push 0x40
lea eax, [ebp - 0xd0]
push 0
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d10d
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2074
call fcn.0046cab0
push ebx
push esi
push edi
xor ebx, ebx
push 0x2000
lea eax, [ebp - 0x2074]
push ebx
push eax
call fcn.0046ca50
push 0x44
lea eax, [ebp - 0x74]
pop edi
push edi
push ebx
push eax
call fcn.0046ca50
push 0x10
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.0046ca50
push 0xc
lea eax, [ebp - 0x20]
pop esi
push esi
push ebx
push eax
call fcn.0046ca50
add esp, 0x30
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], ebx
push 1
pop esi
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x18], esi
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
cmp eax, ebx
je 0x40d1b2
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x48], 0x101
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push ebx
push ebx
push esi
push ebx
push ebx
mov word [ebp - 0x44], bx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, ebx
jne 0x40d1b9
xor eax, eax
jmp 0x40d2ce
lea eax, [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2074]
push esi
push eax
push dword [ebp - 8]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
call edi
test eax, eax
je 0x40d274
cmp dword [ebp - 4], ebx
push ebx
je 0x40d235
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2074]
push 0x1fff
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40d269
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x2074], bl
lea eax, [ebp - 0x2074]
push eax
call fcn.0046ce10
pop ecx
mov ecx, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x2074]
push eax
call fcn.00406810
jmp 0x40d24a
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40d274
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2074]
push esi
push eax
push dword [ebp - 8]
jmp 0x40d1df
push str.ReadFile_failed
call fcn.0041d112
pop ecx
push dword [ebp - 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
test eax, eax
jne 0x40d28e
push str.Error_closing_thread_handle.
call fcn.0041d112
pop ecx
push dword [ebp - 0x30]
call esi
test eax, eax
jne 0x40d2a2
push str.Error_closing_process_handle.
call fcn.0041d112
pop ecx
push dword [ebp - 8]
call esi
test eax, eax
jne 0x40d2b6
push str.Error_closing_pipe_read_handle.
call fcn.0041d112
pop ecx
push dword [ebp - 0xc]
call esi
mov esi, eax
cmp esi, ebx
jne 0x40d2cc
push str.Error_closing_pipe_write_handle.
call fcn.0041d112
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d2d3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x48be6c
call fcn.0046e054
mov eax, 0x1314
call fcn.0046cab0
mov ecx, dword [ebp + 8]
push esi
test ecx, ecx
push edi
je 0x40d433
cmp byte [ecx], 0
je 0x40d433
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40d433
cmp byte [eax], 0
je 0x40d433
push eax
push ecx
call fcn.00477ab0
pop ecx
test eax, eax
pop ecx
je 0x40d433
and byte [ebp - 0xa20], 0
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0xa1f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xa20]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0xb20]
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xa20]
push eax
call fcn.0046cbc2
push str..dll
lea eax, [ebp - 0x120]
push str.decrypt
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xa20]
push eax
call fcn.0046cb31
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0x28
lea eax, [ebp - 0xa20]
push eax
call esi
cmp eax, 0xffffffff
je 0x40d433
and byte [ebp - 0x1320], 0
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x131f]
rep stosd dword es:[edi], eax
push dword [ebp + 0xc]
stosw word es:[edi], ax
push dword [ebp + 8]
stosb byte es:[edi], al
lea eax, [ebp - 0xa20]
push eax
lea eax, [ebp - 0x1320]
push str.__s____s____s_
push eax
call fcn.0046cadf
mov al, byte [ebp + 0xf]
add esp, 0x14
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x20], al
push 0
call fcn.004013c0
and dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1320]
push eax
call fcn.0040d10d
pop ecx
pop ecx
push dword [ebp + 0xc]
call esi
cmp eax, 0xffffffff
jne 0x40d41e
xor esi, esi
jmp 0x40d421
push 1
pop esi
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x20]
call fcn.004013c0
mov eax, esi
jmp 0x40d435
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x40d443
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x48be80
call fcn.0046e054
mov eax, 0x1314
call fcn.0046cab0
mov ecx, dword [ebp + 8]
push esi
test ecx, ecx
push edi
je 0x40d5a6
cmp byte [ecx], 0
je 0x40d5a6
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40d5a6
cmp byte [eax], 0
je 0x40d5a6
push eax
push ecx
call fcn.00477ab0
pop ecx
test eax, eax
pop ecx
je 0x40d5a6
and byte [ebp - 0xa20], 0
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0xa1f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xa20]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0xb20]
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xa20]
push eax
call fcn.0046cbc2
push str..dll
lea eax, [ebp - 0x120]
push str.decryptpdf
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xa20]
push eax
call fcn.0046cb31
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0x28
lea eax, [ebp - 0xa20]
push eax
call esi
cmp eax, 0xffffffff
je 0x40d5a6
and byte [ebp - 0x1320], 0
push dword [ebp + 0xc]
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x131f]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
push dword [ebp + 0x10]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xa20]
push eax
lea eax, [ebp - 0x1320]
push str.__s___key___s____s____s_
push eax
call fcn.0046cadf
mov al, byte [ebp + 0xf]
add esp, 0x18
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x20], al
push 0
call fcn.004013c0
and dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1320]
push eax
call fcn.0040d10d
pop ecx
pop ecx
push dword [ebp + 0xc]
call esi
cmp eax, 0xffffffff
jne 0x40d591
xor esi, esi
jmp 0x40d594
push 1
pop esi
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x20]
call fcn.004013c0
mov eax, esi
jmp 0x40d5a8
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x419011
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x48c6b4
call fcn.0046e054
push ecx
push ecx
mov al, byte [ebp - 0xd]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x14], esi
mov byte [esi], al
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x10]
push ebx
mov dword [ebp - 4], ebx
mov byte [ecx], al
call fcn.004013c0
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x20]
push ebx
mov byte [ebp - 4], 1
mov byte [ecx], al
call fcn.004013c0
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x40]
push ebx
mov byte [ebp - 4], 2
mov byte [ecx], al
call fcn.004013c0
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x50]
push ebx
mov byte [ebp - 4], 3
mov byte [ecx], al
call fcn.004013c0
or dword [esi + 0x64], 0xffffffff
or dword [esi + 0x68], 0xffffffff
or dword [esi + 0x6c], 0xffffffff
mov edi, 0x52cac0
push edi
mov byte [ebp - 4], 4
mov dword [esi + 0x70], ebx
call fcn.0046ce10
pop ecx
push eax
push edi
lea ecx, [esi + 0x10]
call fcn.00406890
push edi
call fcn.0046ce10
pop ecx
push eax
push edi
lea ecx, [esi + 0x20]
call fcn.00406890
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x41aacf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [esi + 0x4bc]
push eax
push esi
call fcn.0041a97e
lea eax, [ebp - 0x68]
push eax
call fcn.0042d760
push 0x20
lea eax, [ebp - 0x68]
push 0x50c5ac
push eax
call fcn.0042d788
lea edi, [esi + 0x584]
push 0x10
push edi
call fcn.0041a439
add esp, 0x20
test eax, eax
je 0x41ab28
push 0x10
lea eax, [ebp - 0x68]
push edi
push eax
call fcn.0042d788
add esp, 0xc
lea eax, [ebp - 0x68]
lea edi, [esi + 0x544]
push eax
push edi
call fcn.0042e113
push 0x10
lea eax, [esi + 0x554]
push 0
push eax
call fcn.0046ca50
lea ebx, [esi + 0x564]
lea eax, [ebp - 0x470]
push ebx
push dword [esi + 0x4e0]
push eax
call fcn.0042cfc3
push edi
push edi
lea eax, [ebp - 0x470]
push 0x10
push eax
call fcn.0042d0c3
add esp, 0x30
mov dword [ebp + 8], 1
mov ecx, dword [esi + 0x4e0]
xor eax, eax
test ecx, ecx
jle 0x41ab9c
mov cl, byte [ebx + eax]
xor cl, byte [ebp + 8]
inc eax
mov byte [ebp + eax - 0x11], cl
mov ecx, dword [esi + 0x4e0]
cmp eax, ecx
jl 0x41ab87
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x470]
push ecx
push eax
call fcn.0042cfc3
push edi
push edi
lea eax, [ebp - 0x470]
push 0x10
push eax
call fcn.0042d0c3
add esp, 0x1c
inc dword [ebp + 8]
cmp dword [ebp + 8], 0x13
jle 0x41ab7b
pop edi
pop esi
pop ebx
leave
ret