joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407e20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43825b
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x45000c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004166d0
add esp, 0xc
mov dword [ebp - 0x424], 0
lea eax, [ebp - 0x424]
mov dword [ebp - 0x428], 0
push eax
push 0xf003f
push 0
push 0x44a968
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407ef1
lea eax, [ebp - 0x438]
mov dword [ebp - 0x428], 1
push eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x438], 0x208
push eax
lea eax, [ebp - 0x428]
push eax
push 0
push str.InstallLocation
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x424], 0
lea eax, [ebp - 0x420]
jmp 0x407f2e
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004166d0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push str.PDFRunningHelper.exe
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0
push 0
push str._check_updateserver
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x434]
call fcn.00408090
mov eax, dword [ebp - 0x434]
test eax, eax
je 0x407f93
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x434], 0
mov eax, dword [ebp - 0x42c]
test eax, eax
je 0x407fa4
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00413f68
mov esp, ebp
pop ebp
ret
Function at 0x408090
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x468
mov eax, dword [0x45000c]
xor eax, esp
mov dword [esp + 0x464], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [esp + 0xc], eax
test edi, edi
jne 0x4080d4
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x464]
xor ecx, esp
call fcn.00413f68
mov esp, ebp
pop ebp
ret 0xc
cmp dword [esi + 8], 0
jne 0x4080e3
call fcn.004082b0
test eax, eax
je 0x4080bc
cmp dword [esi], 0
je 0x4080bc
cmp dword [ebp + 0x10], 0
je 0x4080f7
xor dword [esi + 4], 0x8000000
jmp 0x4080fe
or dword [esi + 4], 0x8000000
push 0x44
lea eax, [esp + 0x24]
push 0
push eax
call fcn.004166d0
add esp, 0xc
mov dword [esp + 0x20], 0x44
lea eax, [esp + 0x68]
mov dword [esp + 0x28], str.winsta0default
xorps xmm0, xmm0
movaps xmmword [esp + 0x10], xmm0
push 0x400
push 0
push eax
call fcn.004166d0
add esp, 0xc
lea eax, [esp + 0x68]
push dword [esp + 0xc]
push edi
push str._s__s
push 0x200
push eax
call fcn.00408590
add esp, 0x14
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push dword [esi + 8]
lea eax, [esp + 0x78]
push dword [esi + 4]
push 0
push 0
push 0
push eax
push 0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x40818e
test eax, eax
jne 0x408193
mov edi, 1
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4081a4
push eax
call esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4081af
push eax
call esi
mov ecx, dword [esp + 0x46c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00413f68
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4081d0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x45000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x408210
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413f68
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40827d
mov edi, dword [ebp + 0xc]
nop
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00417749
add esp, 8
test eax, eax
jne 0x408269
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x408269
cmp dword [ebp - 0x234], edi
je 0x408299
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x408230
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413f68
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp - 0x228]
jmp 0x40827d
Function at 0x4082b0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438298
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x45000c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x44aa5c
push 0x44aa7c
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push 0x44aa8c
push str.Wtsapi32.dll
mov dword [ebp - 0x10], eax
call edi
push eax
call esi
mov esi, eax
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x408332
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x40831e
call eax
mov edi, eax
mov dword [ebx + 4], 0x20
lea eax, [ebp - 0x18]
mov dword [ebp - 0x28], 0
push eax
push edi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
call esi
test eax, eax
jne 0x4083fa
push 0x44aab0
lea ecx, [ebp - 0x10]
call fcn.00407b60
push 4
push str.lore
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.004084c0
push 3
push 0x44aac4
lea ecx, [ebp - 0x10]
call fcn.004084c0
push 2
push 0x44aacc
lea ecx, [ebp - 0x10]
call fcn.004084c0
push edi
push dword [ebp - 0x10]
call fcn.004081d0
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
lea eax, [ebp - 0x14]
push eax
push 0xf00ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408409
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x408409
mov eax, dword [ebp - 0x18]
xor edi, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp - 0x1c]
push eax
push 0x13
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x408429
mov eax, dword [ebp - 0x1c]
mov dword [ebx], eax
jmp 0x40844f
lea eax, [ebp - 0x28]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push ebx
push 1
push 1
push 0
push 0x2000000
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov eax, dword [ebx]
test eax, eax
je 0x408474
push 1
push eax
lea eax, [ebx + 8]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x408474
or dword [ebx + 4], 0x400
mov ebx, 1
jmp 0x40847d
mov dword [ebx + 8], 0
xor ebx, ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x40848a
push edi
call esi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x408494
push eax
call esi
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x40849e
push ecx
call esi
mov eax, ebx
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 0x408eb0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438438
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x45000c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x408f55
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [ebx + 1]
push eax
call fcn.0042bb35
mov esi, eax
add esp, 4
test esi, esi
je 0x408f4e
lea eax, [ebx + 1]
push eax
push 0
push esi
call fcn.004166d0
add esp, 0xc
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push 0
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x408f8d
push esi
call fcn.00414773
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x408f79
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi + ebx], 0
jmp 0x408f57
Function at 0x40c420
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43880b
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x45000c]
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 eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x40c527
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x40c527
push 0x228
lea eax, [ebp - 0x238]
push 0
push eax
call fcn.004166d0
add esp, 0xc
mov dword [ebp - 0x23c], 0x22c
lea eax, [ebp - 0x23c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40c520
or ebx, 0xffffffff
nop word [eax + eax]
mov edx, dword [ebp - 0x234]
lea ecx, [ebp - 0x240]
call fcn.0040c570
lea edx, [ebp - 0x240]
mov dword [ebp - 4], 0
mov ecx, edi
call fcn.00413390
test eax, eax
je 0x40c4ea
mov edx, edi
lea ecx, [ebp - 0x240]
call fcn.00413390
test eax, eax
jne 0x40c545
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov edx, dword [ebp - 0x240]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c50e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x23c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40c4b0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
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.00413f68
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x240]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40c567
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
jmp 0x40c529
Function at 0x40c570
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43884b
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x45000c]
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, edx
mov dword [ebp - 0x21c], edi
mov ebx, ecx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x22c], 0
call fcn.00401770
mov ecx, eax
test ecx, ecx
jne 0x40c5cd
push 0x80004005
call fcn.004043d0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x220], esi
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004166d0
add esp, 0xc
push edi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x40c658
push dword [ebp - 0x21c]
push eax
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x40c658
add esi, 0xfffffff0
mov ecx, esi
call fcn.00407610
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [ebx], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40c753
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x40c753
lea eax, [ebp - 0x228]
mov dword [ebp - 0x21c], 0
push eax
push 4
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x228], 0
push eax
push edi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x40c6a3
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x40c6e9
mov eax, dword [0x452644]
test eax, eax
jne 0x40c6c8
push str.QueryFullProcessImageNameW
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x452644], eax
mov dword [ebp - 0x224], 0x104
test eax, eax
je 0x40c6e9
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x218]
push ecx
push 0
push edi
call eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c700
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x220]
call fcn.00407a60
mov esi, dword [ebp - 0x220]
add esi, 0xfffffff0
mov ecx, esi
call fcn.00407610
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [ebx], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40c753
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
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.00413f68
mov esp, ebp
pop ebp
ret
Function at 0x40e460
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438b20
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x45000c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x1c], 0
call fcn.004135e0
mov dword [ebp - 4], 0
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40e4c5
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push dword [ebp - 0x10]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push str.UserData
lea ecx, [ebp - 0x14]
call fcn.00407b60
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.004130b0
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp - 0x14]
add esp, 4
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e508
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x40e527
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40e540
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438b20
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x45000c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x1c], 0
call fcn.0040e460
mov dword [ebp - 4], 0
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40e5a7
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push dword [ebp - 0x10]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test edi, edi
je 0x40e601
push edi
lea ecx, [ebp - 0x14]
call fcn.00407b60
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.004130b0
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp - 0x14]
add esp, 4
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e5ea
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jmp 0x40e629
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00407610
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
mov dword [esi], eax
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e633
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40e760
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438b48
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x45000c]
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 + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push 0x1000
push 0
push 0
push 4
push dword [ecx]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x40e818
cmp byte [esi], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jne 0x40e7cb
xor ecx, ecx
jmp 0x40e7d9
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e7d0
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00406fe0
push dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push ebx
push edi
push eax
call fcn.0040e840
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x40e814
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004073c0
xor eax, eax
jmp 0x40e81d
mov eax, 0x80004005
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.00413f68
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40f670
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x40f705
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40f705
xor edx, edx
div dword [esi + 0x3cc]
test edx, edx
jne 0x40f705
xor ecx, ecx
mov dword [ebp - 4], ecx
push ebx
mov ebx, dword [ebp + 0xc]
test eax, eax
je 0x40f704
push edi
lea edi, [esi + 0x3f4]
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.0040efe0
cmp byte [esi + 4], 0
mov edx, ebx
je 0x40f6d7
xor eax, eax
cmp dword [esi + 0x3cc], eax
jle 0x40f6d7
mov cl, byte [edi + eax]
lea edx, [edx + 1]
xor byte [edx - 1], cl
inc eax
cmp eax, dword [esi + 0x3cc]
jl 0x40f6c5
push dword [esi + 0x3cc]
push dword [ebp + 8]
push edi
call fcn.0042d820
mov ecx, dword [esi + 0x3cc]
xor edx, edx
mov eax, dword [ebp + 0x10]
add esp, 0xc
div ecx
inc dword [ebp - 4]
add ebx, ecx
add dword [ebp + 8], ecx
cmp dword [ebp - 4], eax
jb 0x40f6a8
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x412e60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439146
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x45000c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00414980
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0042be19
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4135e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x45000c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 0
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x210], esi
call fcn.004166d0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.MasterPDFData
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00407b60
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00413f68
mov esp, ebp
pop ebp
ret
Function at 0x435a5b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004358da
Function at 0x401140
Capabilities:
Access peb ldr_data

Disassembly:
push ecx
push esi
push edi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov esi, dword [eax + 0xc]
mov eax, dword [esi + 0x18]
test eax, eax
je 0x40117f
mov edi, dword [esp + 0x10]
mov esi, dword [esi]
mov ecx, dword [esi + 0x30]
push edi
push ecx
call fcn.004010c0
add esp, 8
test eax, eax
mov eax, dword [esi + 0x18]
je 0x401181
test eax, eax
jne 0x401165
xor eax, eax
pop edi
pop esi
pop ecx
ret

Function at 0x401240
Capabilities:
Encrypt data using rc4 prga
Hide graphical window

Disassembly:
sub esp, 0xc
mov eax, dword [0x40a028]
push ebx
push ebp
push esi
push edi
push eax
call fcn.004018fc
mov ecx, dword [0x40a028]
push ecx
mov edi, eax
call fcn.004018fc
mov ecx, dword [0x40a028]
xor ebx, ebx
add esp, 8
cmp ecx, ebx
mov esi, eax
mov dword [esp + 0x10], ebx
jbe 0x4012a2
sub eax, edi
mov dword [esp + 0x14], eax
jmp 0x401284
mov eax, dword [esp + 0x14]
lea ebp, [ebx + edi]
mov byte [eax + ebp], bl
mov eax, ebx
cdq
idiv dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
add ebx, 1
cmp ebx, ecx
mov dl, byte [edx + eax]
mov byte [ebp], dl
jb 0x401280
xor ebp, ebp
test ecx, ecx
jbe 0x4012f2
mov edx, edi
sub edx, esi
mov ebp, ecx
mov ebx, esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ebp
jmp 0x4012c4
mov edx, dword [esp + 0x18]
movzx edx, byte [edx + ebx]
mov al, byte [ebx]
add edx, dword [esp + 0x10]
movzx eax, al
add eax, edx
xor edx, edx
div ecx
mov al, byte [ebx]
add ebx, 1
sub dword [esp + 0x14], 1
mov edi, edx
mov dl, byte [edi + esi]
mov byte [edi + esi], al
mov byte [ebx - 1], dl
mov dword [esp + 0x10], edi
jne 0x4012c0
xor edi, edi
cmp dword [esp + 0x24], edi
jle 0x40136f
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
sub eax, ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x24], eax
jmp 0x401318
mov ecx, dword [0x40a028]
xor edx, edx
lea eax, [ebp + 1]
div ecx
push 0
push 0
mov ebp, edx
movzx eax, byte [esi + ebp]
add eax, edi
xor edx, edx
div ecx
mov edi, edx
mov dl, byte [esi + ebp]
mov al, byte [edi + esi]
mov byte [edi + esi], dl
mov byte [esi + ebp], al
movzx edx, byte [edi + esi]
movzx eax, al
add eax, edx
xor edx, edx
div ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0x18]
mov cl, byte [eax + ebx]
mov edx, dword [esp + 0x14]
xor cl, byte [edx + esi]
add ebx, 1
sub dword [esp + 0x24], 1
mov byte [ebx - 1], cl
jne 0x401312
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret