joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f950
Capabilities:
Get system information on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x480379
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x38
push esi
push edi
mov eax, dword [0x4ad070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
lea esi, [edi + 8]
mov dword [edi], vtable.CMessageCallbackSink_class_CHttpDownloader_.0
mov dword [ebp - 0x1c], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00412bc0
mov dword [esi], eax
mov ecx, edi
mov dword [edi + 4], edi
mov dword [edi + 0x10], 0
call fcn.00420b60
lea eax, [edi + 0x14]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push 0
movups xmmword [eax], xmm0
push eax
movq qword [eax + 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x41f9ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x41f9f7
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x41f9ff
push eax
call fcn.004027d0
mov byte [ebp - 4], 1
lea esi, [edi + 0x2c]
mov dword [ebp - 0x1c], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00412bc0
mov dword [esi], eax
mov dword [edi + 0x34], vtable.ATL::CThreadPool_class_CHttpDownloader::CDownloadWorker__class_ATL::CRTThreadTraits__class_ATL::Win32WaitTraits_.0
xorps xmm0, xmm0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
movups xmmword [edi + 0x48], xmm0
movq qword [edi + 0x58], xmm0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0x8ca0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x74], 0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x20]
mov dword [edi + 0x78], 0
push eax
lea ecx, [edi + 8]
mov dword [ebp - 0x14], 0x547
call fcn.00420c70
mov eax, dword [ebp - 0x20]
lea ecx, [edi + 8]
mov dword [eax + 0x14], 0x41fe90
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 0x548
push eax
call fcn.00420c70
mov eax, dword [ebp - 0x20]
xorps xmm0, xmm0
mov dword [eax + 0x14], 0x41fe90
lea eax, [ebp - 0x44]
push eax
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x24], 0
movups xmmword [ebp - 0x34], xmm0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [ebp - 0x30]
mov ecx, 1
test eax, eax
cmove eax, ecx
sub esp, 8
mov dword [ebp - 0x30], eax
lea ecx, [edi + 0x34]
add eax, 2
push eax
push edi
call fcn.00420540
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x420480
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x40], 0
je 0x42051e
lea eax, [edi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [edi + 0x30]
mov ecx, edi
push 0
call fcn.00420780
mov esi, dword [edi + 0xc]
sub esi, 1
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
js 0x4204fc
nop word [eax + eax]
test esi, esi
js 0x420527
cmp esi, dword [edi + 0xc]
jge 0x420527
mov eax, dword [edi + 8]
mov ebx, dword [eax + esi*4]
lea eax, [esp + 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0xc], 0x103
jne 0x4204ee
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
sub esi, 1
jns 0x4204c0
push dword [edi + 0x40]
call ebx
lea esi, [edi + 0x14]
mov dword [edi + 0x40], 0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push dword [edi + 0x3c]
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
Function at 0x420b60
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x83c
mov eax, dword [0x4ad070]
xor eax, esp
mov dword [esp + 0x838], eax
push esi
mov esi, ecx
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x420c3f
push 0x2c
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00455270
push 0x800
lea eax, [esp + 0x48]
mov dword [esp + 0x18], 0x30
push 0
push eax
mov dword [esp + 0x34], 0x400000
call fcn.00455270
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.Q360SoftMgrMsgDelegateWnd_d
lea eax, [esp + 0x40]
push 0x400
push eax
call fcn.0041f850
add esp, 0x10
mov dword [esp + 0x10], 0x420d00
lea eax, [esp + 0x38]
mov dword [esp + 0x30], eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push dword [esp + 0x20]
push 0
push 0xfffffffffffffffd
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esp + 0x58]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push eax
mov dword [esi + 0x10], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x420c57
push esi
push 0xffffffffffffffeb
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
pop esi
mov ecx, dword [esp + 0x838]
xor ecx, esp
call fcn.0045230d
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x83c]
xor eax, eax
pop esi
xor ecx, esp
call fcn.0045230d
mov esp, ebp
pop ebp
ret
Function at 0x421290
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4ad070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], esi
mov eax, dword [0x4b399c]
test al, 1
jne 0x4212f0
or eax, 1
mov dword [0x4b399c], eax
call fcn.00402750
mov ecx, eax
test ecx, ecx
je 0x4213eb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push 0x483fd0
mov dword [0x4b39a0], eax
call fcn.004527e9
add esp, 4
mov eax, dword [0x4b39a0]
cmp dword [eax - 0xc], 0
jne 0x4213c7
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallMasterPDF
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x214], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4213c7
push 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00455270
add esp, 0xc
mov dword [ebp - 0x214], 1
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push str.DisplayVersion
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x210], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4213a6
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, 0x4b39a0
call fcn.00408110
mov ecx, dword [0x4b39a0]
add ecx, 0xfffffff0
call fcn.00407fe0
mov ecx, dword [ebp - 4]
add eax, 0x10
mov dword [esi], eax
xor ecx, ebp
mov eax, esi
pop esi
call fcn.0045230d
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004027d0
int3
Function at 0x423d30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov eax, ecx
mov ebx, 0x20019
push edi
mov dword [ebp - 0xc], eax
xor edi, edi
lea ecx, [ebp - 4]
push ecx
push ebx
push 0
push str.SoftwareClasses.pdf
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x423db3
lea eax, [ebp - 8]
push eax
push esi
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x423daa
mov eax, dword [ebp - 8]
shr eax, 1
inc eax
push 2
push eax
call fcn.00466114
add esp, 8
mov edi, eax
lea eax, [ebp - 8]
push eax
push edi
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x423daa
push edi
call fcn.00457f17
add esp, 4
xor edi, edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 2
jne 0x423dd4
mov eax, dword [ebp - 0xc]
cmp eax, reloc.OLEAUT32.dll_SysReAllocString
jne 0x423dd4
cmp ebx, 0x20019
jne 0x423dd4
mov ebx, 0x20119
jmp 0x423d45
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423e40
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x480877
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x4ad070]
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 ebx, ecx
mov dword [ebp - 0x13c], ebx
call fcn.00402750
mov ecx, eax
test ecx, ecx
jne 0x423e8b
push 0x80004005
call fcn.004027d0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x128], esi
push pe_nt_image_headers32
lea eax, [ebp - 0x120]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00455270
add esp, 0xc
mov dword [ebp - 0x124], 0x114
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
or edi, 0xffffffff
cmp dword [ebp - 0x120], 5
je 0x42402f
push str.SoftwareClasses_
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x134], 0
call fcn.00407e20
push ebx
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x12c]
call fcn.00405ed0
add esp, 4
push eax
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 2
call fcn.00406390
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp - 0x12c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x423f3d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x130]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x423f5e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x128]
lea eax, [ebp - 0x134]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x2003f
push 0
push esi
push SysReAllocString
call ebx
test eax, eax
je 0x42402f
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_
lea ecx, [ebp - 0x12c]
call fcn.00407e20
push dword [ebp - 0x13c]
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x130]
call fcn.00405ed0
add esp, 4
push eax
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 4
call fcn.00406390
mov byte [ebp - 4], 3
mov eax, edi
mov edx, dword [ebp - 0x130]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x423fe3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x12c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x424004
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x134]
push eax
push 0x2003f
push 0
lea eax, [ebp - 0x138]
push eax
push SysReAllocString
call ebx
mov esi, dword [ebp - 0x128]
xor ebx, ebx
test eax, eax
setne bl
jmp 0x424031
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x42404d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 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.0045230d
mov esp, ebp
pop ebp
ret
Function at 0x424070
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4808a8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x4ad070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
call fcn.00402750
mov ecx, eax
test ecx, ecx
jne 0x4240b0
push 0x80004005
call fcn.004027d0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push esi
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_sUserChoice
push eax
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 0x104
mov dword [ebp - 0x14], 0
call fcn.00406b20
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
add esp, 0xc
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push str.Progid
push esi
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x424111
xor edi, edi
jmp 0x424125
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.0045e589
add esp, 8
mov edi, eax
neg edi
sbb edi, edi
inc edi
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x424144
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
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 0x424790
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x480938
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x4ad070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
mov dword [ebp - 4], 0
mov esi, esp
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x134], esi
lea ecx, [ecx - 0x10]
call fcn.00407fe0
add eax, 0x10
mov ecx, SysReAllocString
mov dword [esi], eax
call fcn.00422860
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x134], esi
lea ecx, [ecx - 0x10]
call fcn.00407fe0
add eax, 0x10
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [esi], eax
call fcn.00422860
add esp, 4
lea eax, [ebp - 0x130]
push 0x11c
push 0
push eax
call fcn.00455270
add esp, 0xc
mov dword [ebp - 0x130], 0x11c
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x12c], 0xa
je 0x424848
call fcn.004255e0
test eax, eax
je 0x4248ab
push ecx
mov ecx, dword [ebp + 8]
mov esi, esp
mov dword [ebp - 0x134], esi
lea ecx, [ecx - 0x10]
call fcn.00407fe0
add eax, 0x10
mov ecx, SysReAllocString
mov dword [esi], eax
call fcn.00422e90
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x134], esi
lea ecx, [ecx - 0x10]
call fcn.00407fe0
add eax, 0x10
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [esi], eax
call fcn.00422e90
add esp, 4
mov ecx, str.MasterPDF
call fcn.004244e0
test eax, eax
je 0x4248ab
mov edx, str.MasterPDF
mov ecx, str..pdf
call fcn.00424160
push 0
push 0
push 0x3000
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4248e1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045230d
mov esp, ebp
pop ebp
ret
Function at 0x4255e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4ad070]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00455270
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
jne 0x42564c
mov eax, dword [ebp - 0x118]
cmp eax, 2
je 0x425639
cmp eax, 3
jne 0x42564c
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045230d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0045230d
mov esp, ebp
pop ebp
ret

Function at 0x425e30
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x480ce0
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x4ad070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.00455270
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [ebp + 8]
push 0x104
push eax
push 0x4992e4
push dword [ebp + 0xc]
push str.masterpdf
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, 0x2a
cmp ax, word [ebp - 0x218]
je 0x425eda
lea edx, [ebp - 0x218]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x425eb5
sub edx, esi
lea eax, [ebp - 0x218]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.00408110
mov edi, 1
jmp 0x425edc
xor edi, edi
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp + 8]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x425efd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x425f1c
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045230d
mov esp, ebp
pop ebp
ret
Function at 0x428af0
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4801c8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4ad070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x18], edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], 0
push eax
push 0
push 1
push dword [ebp + 8]
push ebx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x428c23
cmp dword [ebp - 0x14], 0
je 0x428c23
call fcn.00402750
mov ecx, eax
test ecx, ecx
jne 0x428b5f
push 0x80004005
call fcn.004027d0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x14]
test edx, edx
jns 0x428b82
push 0x80070057
call fcn.004027d0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x428b9f
push edx
lea ecx, [ebp - 0x10]
call fcn.004082d0
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
push esi
push 1
push dword [ebp + 8]
push ebx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
push ecx
lea ecx, [ebp - 0x10]
test eax, eax
jne 0x428c0f
call fcn.0040b940
call fcn.00402750
mov ecx, eax
test ecx, ecx
jne 0x428bd2
push 0x80004005
call fcn.004027d0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x428c42
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0040b940
add esi, 0xfffffff0
mov ecx, esi
call fcn.00407fe0
add eax, 0x10
jmp 0x428bdd
call fcn.00402750
mov ecx, eax
test ecx, ecx
jne 0x428c38
push 0x80004005
call fcn.004027d0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov eax, edi
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 0x428c60
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x481020
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x4ad070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
push 0
push 0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
push ecx
push 0
push edi
push dword [eax - 0xc]
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x428d11
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x428d11
push eax
lea ecx, [ebp - 0x24]
call fcn.00411c30
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push 0
push 0
push ecx
push dword [ebp - 0x24]
push edi
push dword [eax - 0xc]
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
mov ecx, esi
test eax, eax
jne 0x428d06
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
call fcn.00428f60
jmp 0x428d3a
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x24]
call fcn.00406220
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x428d64
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 0x429960
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4ad070]
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.00455270
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.00407e20
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0045230d
mov esp, ebp
pop ebp
ret

Function at 0x429f10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x429f5b
lea edx, [ebx + 8]
mov esi, 0x104
sub edi, edx
lea eax, [esi + 0x7ffffefa]
test eax, eax
je 0x429f4e
movzx eax, word [edi + edx]
test ax, ax
je 0x429f4e
mov word [edx], ax
add edx, 2
sub esi, 1
jne 0x429f30
test esi, esi
lea eax, [edx - 2]
cmovne eax, edx
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebx + 0x210]
mov esi, str.updump
mov edx, 0x104
sub esi, ecx
nop dword [eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x429f8e
movzx eax, word [esi + ecx]
test ax, ax
je 0x429f8e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x429f70
test edx, edx
lea eax, [ecx - 2]
pop edi
cmovne eax, ecx
xor ecx, ecx
pop esi
pop ebx
mov word [eax], cx
pop ebp
ret 8

Function at 0x42a070
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov esi, edx
test edi, edi
je 0x42a0ad
test esi, esi
je 0x42a0ad
push 5
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x42a0ad
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x40
push 5
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x42a0b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov dword [edi], eax
mov al, byte [esi + 4]
mov byte [edi + 4], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], 0
push 5
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x42a0a7
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x42a2c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push ecx
mov edx, str.full.data
lea ecx, [ebp - 4]
call fcn.0041be00
add esp, 4
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 4]
mov esi, eax
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x42a2fe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret