joyce8/EMBER2024-capa huggingface dataset:
Function at 0x483c40
Capabilities:
Create thread
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x596c70
push 0x50a5d0
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x5a6124]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x44c], edx
mov dword [ebp - 0x450], ecx
xor ebx, ebx
mov dword [ebp - 0x448], ebx
xor esi, esi
mov dword [ebp - 0x454], esi
xor edi, edi
mov dword [ebp - 0x458], edi
mov dword [ebp - 4], ebx
push 0x585d58
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x45c], eax
test eax, eax
je 0x483da9
push dword [ebp - 0x450]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
test eax, eax
je 0x483da9
push eax
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x454], esi
test esi, esi
je 0x483da9
mov dword [ebp - 0x444], 0x428
lea eax, [ebp - 0x444]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x483d51
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x44c]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x483d49
lea eax, [ebp - 0x424]
push eax
push dword [ebp - 0x44c]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x483d49
lea eax, [ebp - 0x444]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32NextW]
jmp 0x483d07
mov eax, dword [ebp - 0x428]
jmp 0x483d53
xor eax, eax
test eax, eax
jne 0x483d61
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x483da9
push 0
push 0
push eax
push dword [ebp - 0x45c]
push 0
push 0
push dword [ebp - 0x450]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
mov dword [ebp - 0x458], edi
test edi, edi
je 0x483da9
mov eax, dword [ebp + 8]
test eax, eax
jne 0x483d94
lea ebx, [eax + 1]
jmp 0x483da3
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ebx, ebx
test eax, eax
sete bl
mov dword [ebp - 0x448], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.00483dcf
test ebx, ebx
je 0x483dec
xor eax, eax
jmp 0x483dfe
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x483dfe
movzx eax, ax
or eax, 0x80070000
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00502bf3
mov esp, ebp
pop ebp
ret
Function at 0x483e70
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5a6124]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
push eax
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x483ee0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00502bf3
mov esp, ebp
pop ebp
ret
Function at 0x487bb0
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x562278
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5a6124]
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 0x487d16
cmp dword [ebp - 0x14], 0
je 0x487d16
call fcn.00408130
mov ecx, eax
test ecx, ecx
jne 0x487c1f
push 0x80004005
call fcn.00407c80
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x487c34
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x487c36
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x14]
test edx, edx
jns 0x487c54
push 0x80070057
call fcn.00407c80
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or ecx, eax
jge 0x487c71
push edx
lea ecx, [ebp - 0x10]
call fcn.004076b0
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 dword [esi - 8]
push esi
test eax, eax
jne 0x487cc7
call fcn.0052340e
add esp, 8
test eax, eax
js 0x487c4a
cmp eax, dword [esi - 8]
jg 0x487c4a
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov ecx, edi
call fcn.00408270
lea ecx, [ebp - 0x10]
call fcn.00407c20
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.0052340e
add esp, 8
test eax, eax
js 0x487c4a
cmp eax, dword [esi - 8]
jg 0x487c4a
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
add esi, 0xfffffff0
push esi
call fcn.00407010
add esp, 4
lea ecx, [ebp - 0x10]
add eax, 0x10
mov dword [edi], eax
call fcn.00407c20
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.00408130
test eax, eax
jne 0x487d29
push 0x80004005
call fcn.00407c80
mov edx, dword [eax]
cmp edx, vtable.ATL::CAtlStringMgr.0
jne 0x487d3c
lock inc dword [eax + 0x14]
add eax, 8
jmp 0x487d41
mov ecx, eax
call dword [edx + 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 0x487ee0
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5622e0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5a6124]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, 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 ebx
push dword [eax - 0xc]
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x487fb2
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x487fb2
push eax
lea ecx, [ebp - 0x24]
call fcn.00489190
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
mov edi, dword [ebp - 0x24]
push 0
push 0
push ecx
push edi
push ebx
push dword [eax - 0xc]
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
mov ecx, esi
lea eax, [ebp - 0x24]
push eax
jne 0x487f89
mov dword [ebp - 0x20], edi
call fcn.004891e0
lea ecx, [ebp - 0x24]
call fcn.0047c7a0
lea ecx, [ebp + 8]
call fcn.00407c20
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
lea ecx, [ebp - 0x24]
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
call fcn.0047c7a0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x48803e
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x48803a
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x48803a
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
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
mov ecx, edx
call edi
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

Function at 0x489e10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x489e41
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x489e30
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x48e7c0
Capabilities:
Parse credit card information

Disassembly:
push esi
mov esi, ecx
xor cl, cl
cmp dword [esi + 0x4c], 0xffffffff
je 0x48e996
push ebx
mov eax, dword [esi + 0x4c]
cmp eax, 0x7c
je 0x48e995
cmp eax, 0x29
jne 0x48e7f8
cmp dword [esi + 0x10], 0
jne 0x48e995
test dword [esi + 0x50], 0x10000000
je 0x48e9a1
cmp eax, 0x2e
jne 0x48e855
push 5
lea ecx, [esi + 0x24]
call fcn.0048ebb0
mov eax, dword [esi]
mov ecx, dword [esi + 8]
cmp eax, ecx
je 0x48e849
cmp word [eax], 0x5c
jne 0x48e846
add eax, 2
cmp eax, ecx
je 0x48e846
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x48e832
movzx edx, word [eax]
cmp edx, 0x28
je 0x48e844
cmp edx, 0x29
je 0x48e844
test cl, 0x10
jne 0x48e846
movzx ecx, word [eax]
cmp ecx, 0x7b
je 0x48e844
cmp ecx, 0x7d
jne 0x48e846
mov dword [esi], eax
add dword [esi], 2
mov ecx, esi
call fcn.0048c320
jmp 0x48e982
cmp eax, 0x5c
jne 0x48e8bc
mov ecx, esi
call fcn.0048e770
mov eax, dword [esi + 0x50]
and eax, 0x80
je 0x48e888
cmp word [esi + 0x48], 0x62
jne 0x48e888
push 4
lea ecx, [esi + 0x24]
call fcn.0048ebb0
mov ecx, esi
call fcn.0048e770
jmp 0x48e989
test eax, eax
je 0x48e8b0
cmp word [esi + 0x48], 0x42
jne 0x48e8b0
push 4
lea ecx, [esi + 0x24]
call fcn.0048ebb0
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.0048e770
jmp 0x48e989
mov ecx, esi
call fcn.0048fe40
jmp 0x48e982
cmp eax, 0x5b
jne 0x48e8de
mov ecx, esi
call fcn.0048e770
mov ecx, esi
call fcn.0048fdf0
cmp dword [esi + 0x4c], 0x5d
je 0x48e97b
jmp 0x48e99a
cmp eax, 0x28
jne 0x48e90e
mov ecx, esi
call fcn.0048e770
mov ecx, esi
call fcn.0048ff10
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x48e9a1
mov ecx, esi
call fcn.0048e770
test bl, bl
je 0x48e989
jmp 0x48e982
cmp eax, 0x5e
jne 0x48e926
push 2
lea ecx, [esi + 0x24]
call fcn.0048ebb0
mov ecx, esi
call fcn.0048e770
jmp 0x48e989
cmp eax, 0x24
jne 0x48e93e
push 3
lea ecx, [esi + 0x24]
call fcn.0048ebb0
mov ecx, esi
call fcn.0048e770
jmp 0x48e989
cmp eax, 0x2a
je 0x48e9af
cmp eax, 0x2b
je 0x48e9af
cmp eax, 0x3f
je 0x48e9af
cmp eax, 0x7b
je 0x48e9af
cmp eax, 0x7d
jne 0x48e960
test dword [esi + 0x50], 0x10000000
je 0x48e9a8
cmp eax, 0x5d
jne 0x48e96e
test dword [esi + 0x50], 0x10000000
je 0x48e99a
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.00490160
mov ecx, esi
call fcn.0048e770
mov ecx, esi
call fcn.0048ffd0
cmp dword [esi + 0x4c], 0xffffffff
mov cl, 1
jne 0x48e7d0
pop ebx
mov al, cl
pop esi
ret
push 4
call fcn.004e94aa
push 5
call fcn.004e94aa
push 6
call fcn.004e94aa
push 0xa
call fcn.004e94aa
int3
Function at 0x4955c0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5a6124]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 0
mov esi, ecx
mov edi, edx
push 0
push eax
mov dword [ebp - 0x210], esi
call fcn.00506b00
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test edi, edi
je 0x495624
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00407b50
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00502bf3
mov esp, ebp
pop ebp
ret

Function at 0x495ae0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5a6124]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 0
mov esi, ecx
mov edi, edx
push 0
push eax
mov dword [ebp - 0x210], esi
call fcn.00506b00
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test edi, edi
je 0x495b44
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00407b50
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00502bf3
mov esp, ebp
pop ebp
ret
Function at 0x4974b0
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x562f90
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5a6124]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], 0
sub edx, 0
je 0x4974f3
sub edx, 1
mov edx, str.iOSRecoveryData_360
je 0x4974f8
mov edx, str.DataRecoveryData_360
lea ecx, [ebp - 0x10]
call fcn.00495ae0
mov dword [ebp - 4], 0
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x49752a
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]
mov eax, dword [ebp + 8]
test eax, eax
je 0x497613
push eax
lea ecx, [ebp + 8]
call fcn.00407b50
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.004c9410
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov ecx, dword [ebp + 8]
add esp, 4
add ecx, 0xfffffff0
mov eax, edi
lock xadd dword [ecx + 0xc], eax
dec eax
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jg 0x4975b7
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x14], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4975b2
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x14], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4975ab
push 0
push dword [edx + 4]
call ebx
jmp 0x4975b7
mov ecx, edx
call dword [ebp - 0x14]
jmp 0x4975b7
mov ecx, edx
call dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], edi
dec edi
test edi, edi
jg 0x497682
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x49767e
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x49767e
push 0
push dword [edx + 4]
call ebx
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
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.00407010
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add esp, 4
mov dword [esi], eax
add ecx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x497682
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x49767e
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x49767e
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
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
mov ecx, edx
call edi
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
Function at 0x4976a0
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x562fc0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5a6124]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
push str.UserData
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x1c], 0
call fcn.004974b0
add esp, 4
mov dword [ebp - 4], 0
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x49770e
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]
mov eax, dword [ebp + 8]
test eax, eax
je 0x4977f7
push eax
lea ecx, [ebp + 8]
call fcn.00407b50
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.004c9410
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov ecx, dword [ebp + 8]
add esp, 4
add ecx, 0xfffffff0
mov eax, edi
lock xadd dword [ecx + 0xc], eax
dec eax
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jg 0x49779b
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x14], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x497796
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x14], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x49778f
push 0
push dword [edx + 4]
call ebx
jmp 0x49779b
mov ecx, edx
call dword [ebp - 0x14]
jmp 0x49779b
mov ecx, edx
call dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], edi
dec edi
test edi, edi
jg 0x497866
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x497862
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x497862
push 0
push dword [edx + 4]
call ebx
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
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.00407010
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add esp, 4
mov dword [esi], eax
add ecx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x497866
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x497862
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x497862
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
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
mov ecx, edx
call edi
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
Function at 0x49f6e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x563ce6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5a6124]
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.00502524
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.004e994c
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 0x4a1b20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
mov ecx, dword [ebp + 0x18]
mov eax, edi
mov dword [ebp - 4], eax
test ecx, ecx
je 0x4a1b57
cmp word [ecx], 0
je 0x4a1b57
lea eax, [ebp - 4]
push eax
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov esi, eax
test esi, esi
jne 0x4a1bae
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
test edx, edx
je 0x4a1b97
push 0
lea ecx, [ebp + 0x18]
mov dword [ebp + 0x18], 0
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x4a1bae
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x4a1b91
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 4], eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x4a1bbc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4a2860
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2d14
call fcn.00503030
mov eax, dword [0x5a6124]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 0x2d10], edx
mov dword [ebp - 0x2d14], eax
test eax, eax
je 0x4a29dd
push ebx
push esi
push edi
xor esi, esi
xor edi, edi
push edi
push str..PhysicalDrive_d
lea eax, [ebp - 0x204]
push 0x200
push eax
call fcn.004a2160
add esp, 0x10
lea eax, [ebp - 0x204]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4a29c0
push 0x2710
xorps xmm0, xmm0
mov dword [ebp - 0x2d0c], 0
lea eax, [ebp - 0x2cfc]
movq qword [ebp - 0x2d08], xmm0
push 0
push eax
mov dword [ebp - 0x2d00], 0
mov dword [ebp - 0x2d08], 0
mov dword [ebp - 0x2d04], 0
call fcn.00506b00
add esp, 0xc
lea eax, [ebp - 0x2d0c]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2cfc]
push eax
push 0xc
lea eax, [ebp - 0x2d08]
push eax
push 0x2d1400
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4a29b5
push 0x3e8
lea eax, [ebp - 0x5ec]
push 0
push eax
call fcn.00506b00
mov edx, dword [ebp - 0x2ce4]
lea eax, [ebp - 0x5ec]
add esp, 0xc
push eax
push ecx
lea ecx, [ebp - 0x2cfc]
call fcn.004cc9c0
mov ecx, dword [ebp - 0x2d10]
xor eax, eax
add esp, 8
mov edx, 0x80070057
cmp ecx, 0x7fffffff
cmova eax, edx
test eax, eax
js 0x4a29ad
push ecx
lea eax, [ebp - 0x5ec]
mov edx, ecx
push eax
push ecx
mov ecx, dword [ebp - 0x2d14]
call fcn.00481880
test eax, eax
mov eax, 1
cmove esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x4a29ca
inc edi
cmp edi, 0x10
jl 0x4a2894
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00502bf3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00502bf3
mov esp, ebp
pop ebp
ret