joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f8900
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
push 0x14
call fcn.0050cb21
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4f892d
mov ecx, dword [ebp - 0x18]
call fcn.004f8870
mov dword [ebp - 0x1c], eax
jmp 0x4f8934
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4f89bd
mov ecx, dword [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
call fcn.004fa5c0
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 8]
add ecx, 0xc
call fcn.004057e0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 8]
push edx
push 0
push 0x4f8810
call fcn.005140b9
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x4f89b5
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4f89a3
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 4], ecx
jmp 0x4f89b5
lea ecx, [ebp - 0xc]
call fcn.004fa620
mov edx, dword [ebp - 8]
mov dword [edx + 8], 1
lea ecx, [ebp - 0xc]
call fcn.004fa5e0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x4f8cf0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
call fcn.004e92b0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4f8d0b
xor eax, eax
jmp 0x4f8da4
mov ecx, dword [ebp - 4]
call fcn.004e9310
test eax, eax
je 0x4f8d21
mov eax, 1
jmp 0x4f8da4
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], str.360NetBase.dll
push 0x555244
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
push ecx
call fcn.00482e00
add esp, 0xc
lea ecx, [ebp - 0xc]
call fcn.00406010
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4f8d6b
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0xc]
call fcn.00406190
mov eax, dword [ebp - 0x14]
jmp 0x4f8da4
lea ecx, [ebp - 0xc]
call fcn.00406010
push eax
mov ecx, dword [ebp - 4]
call fcn.004e9330
test eax, eax
je 0x4f8d93
mov ecx, dword [ebp - 4]
call fcn.004e9310
test eax, eax
je 0x4f8d93
mov dword [ebp - 8], 1
mov edx, dword [ebp - 8]
mov dword [ebp - 0x18], edx
lea ecx, [ebp - 0xc]
call fcn.00406190
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x4f9c20
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x340
mov dword [ebp - 0x33c], ecx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 1
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x33c]
mov edx, dword [ecx + 4]
push edx
call fcn.004fa4a0
add esp, 8
cmp dword [ebp - 8], 0
je 0x4f9dda
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x33c]
call fcn.004f9bf0
test eax, eax
jne 0x4f9c89
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jbe 0x4f9c95
mov dword [ebp - 4], 0
jmp 0x4f9dda
push 0x104
push 0
lea ecx, [ebp - 0x118]
push ecx
call fcn.0050c770
add esp, 0xc
push 0x104
push 0
lea edx, [ebp - 0x338]
push edx
call fcn.0050c770
add esp, 0xc
push 0x104
push 0
lea eax, [ebp - 0x228]
push eax
call fcn.0050c770
add esp, 0xc
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x338], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x22c], 0xffffffff
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x228]
push edx
lea eax, [ebp - 0x338]
push eax
lea ecx, [ebp - 0x118]
push ecx
mov edx, dword [ebp - 0x33c]
mov eax, dword [edx + 4]
push eax
call fcn.004fa460
add esp, 0x14
cmp dword [ebp - 0x22c], 0xffffffff
jne 0x4f9d59
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x33c]
mov eax, dword [edx + 4]
push eax
call fcn.004fa4a0
add esp, 8
jmp 0x4f9c5c
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0x186a0
lea ecx, [ebp - 0x120]
push ecx
lea edx, [ebp - 0x228]
push edx
lea eax, [ebp - 0x338]
push eax
lea ecx, [ebp - 0x118]
push ecx
mov edx, dword [ebp - 0x22c]
add edx, 1
push edx
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x340], eax
cmp dword [ebp - 0x340], 0xffffffff
je 0x4f9db6
jmp 0x4f9db8
jmp 0x4f9dd5
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x33c]
mov eax, dword [edx + 4]
push eax
call fcn.004fa4a0
add esp, 8
mov dword [ebp - 4], 1
jmp 0x4f9c5c
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4
Function at 0x4fbae0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0xffffffff
je 0x4fbb27
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
je 0x4fbb10
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
cmp dword [edx + 0xc], 0
je 0x4fbb65
push 0x1f4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4fbb65
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x248], 0
je 0x4fbb81
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x248]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x248], 0
je 0x4fbb9d
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x24c]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x248], 0
je 0x4fbbb9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x250]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x248], 0
je 0x4fbbd5
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x254]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 4]
add eax, 0x230
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov esp, ebp
pop ebp
ret
Function at 0x4fefe0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
mov dword [ebp - 8], str.360SoftPrivMgr.dll
mov eax, dword [ebp - 8]
push eax
push str._safemon_
lea ecx, [ebp - 0x10]
push ecx
call fcn.00482f60
add esp, 4
push eax
lea edx, [ebp - 0x14]
push edx
call fcn.00404ee0
add esp, 0xc
push eax
lea eax, [ebp - 4]
push eax
call fcn.00404ee0
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.00406190
lea ecx, [ebp - 0x10]
call fcn.00406190
lea ecx, [ebp - 4]
call fcn.00406010
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4ff059
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 4]
call fcn.00406190
mov eax, dword [ebp - 0x18]
jmp 0x4ff107
lea ecx, [ebp - 4]
call fcn.00406010
push eax
call fcn.004a85c0
add esp, 4
test eax, eax
je 0x4ff083
lea ecx, [ebp - 4]
call fcn.00406010
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x24]
cmp dword [edx + 4], 0
je 0x4ff0b9
push str.Create360SoftPrivMgrObj
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4ff0b9
push str.adpopwnd
push str.PopWndTracker
call dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
mov dword [edx], eax
mov eax, dword [ebp - 0x24]
cmp dword [eax], 0
je 0x4ff0d5
mov dword [ebp - 0x1c], 1
lea ecx, [ebp - 4]
call fcn.00406190
mov eax, dword [ebp - 0x1c]
jmp 0x4ff107
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 4], 0
je 0x4ff0f5
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 4], 0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 4]
call fcn.00406190
mov eax, dword [ebp - 0x20]
mov esp, ebp
pop ebp
ret

Function at 0x5059a0
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x5059c4
xor eax, eax
jmp 0x505a11
mov ecx, dword [ebp + 8]
push ecx
push 0x505a20
call dword [sym.imp.USER32.dll_EnumWindows]
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x5059fd
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
neg eax
sbb eax, eax
and eax, 2
mov dword [ebp - 4], eax
jmp 0x505a04
mov dword [ebp - 4], 1
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x5060b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x579aa4]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x810], 1
push 0x5556f8
lea ecx, [ebp - 4]
call fcn.00405520
lea eax, [ebp - 0x80c]
push eax
call fcn.004a0660
add esp, 4
xor ecx, ecx
mov word [ebp - 0x808], cx
push 0x7fe
push 0
lea edx, [ebp - 0x806]
push edx
call fcn.0050c770
add esp, 0xc
lea ecx, [ebp - 0x80c]
call fcn.00406010
push eax
push 0x104
lea eax, [ebp - 0x808]
push eax
push 0
lea ecx, [ebp - 4]
call fcn.00406010
push eax
push 0x5556fc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, 1
jbe 0x50621c
push 0x3b
lea ecx, [ebp - 0x808]
push ecx
call fcn.00405ec0
add esp, 8
mov dword [ebp - 0x814], eax
cmp dword [ebp - 0x814], 0
je 0x5061c2
mov edx, dword [ebp - 0x814]
movzx eax, word [edx + 2]
test eax, eax
je 0x50619e
mov ecx, dword [ebp - 0x814]
add ecx, 2
push ecx
lea ecx, [ebp - 0x818]
call fcn.00405520
lea edx, [ebp - 0x818]
push edx
mov ecx, 0x57d3ec
call fcn.0049b390
lea ecx, [ebp - 0x818]
call fcn.00406190
xor eax, eax
mov ecx, dword [ebp - 0x814]
mov word [ecx], ax
push 0x3b
lea edx, [ebp - 0x808]
push edx
call fcn.00405ec0
add esp, 8
mov dword [ebp - 0x814], eax
jmp 0x506156
lea eax, [ebp - 0x808]
push eax
lea ecx, [ebp - 0x81c]
call fcn.00405520
lea ecx, [ebp - 0x81c]
push ecx
mov ecx, 0x57d3ec
call fcn.0049b390
lea ecx, [ebp - 0x81c]
call fcn.00406190
mov edx, dword [ebp - 0x810]
add edx, 1
mov dword [ebp - 0x810], edx
mov eax, dword [ebp - 0x810]
push eax
push 0x555708
lea ecx, [ebp - 4]
push ecx
call fcn.00403850
add esp, 0xc
jmp 0x506108
mov ecx, 0x57d3ec
call fcn.004d15a0
xor edx, edx
cmp edx, eax
sbb eax, eax
neg eax
mov dword [ebp - 0x820], eax
lea ecx, [ebp - 0x80c]
call fcn.00406190
lea ecx, [ebp - 4]
call fcn.00406190
mov eax, dword [ebp - 0x820]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0050c75f
mov esp, ebp
pop ebp
ret

Function at 0x5062e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0xfeff
push 0
push 0
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x506313
xor eax, eax
jmp 0x506355
push 0
lea ecx, [ebp - 4]
push ecx
push 2
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 0
je 0x50634b
cmp dword [ebp - 4], 2
jne 0x50634b
mov dword [ebp - 0x10], 1
jmp 0x506352
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x507420
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x579aa4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
mov ecx, dword [ebp + 8]
call fcn.00406180
cmp eax, 3
jg 0x507448
xor eax, eax
jmp 0x5075e6
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 4]
call fcn.00405e60
push 0x5c
lea ecx, [ebp - 4]
call fcn.0049afa0
mov esi, eax
lea ecx, [ebp - 4]
call fcn.00406180
sub eax, 1
cmp esi, eax
jne 0x50747e
push 0x5559a8
lea ecx, [ebp - 4]
call fcn.00405a70
jmp 0x50748b
push str..
lea ecx, [ebp - 4]
call fcn.00405a70
lea ecx, [ebp - 0x260]
push ecx
lea ecx, [ebp - 4]
call fcn.00406010
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xc], eax
xor edx, edx
cmp dword [ebp - 0xc], 0xffffffff
setne dl
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x5075b9
push 0x55c998
lea eax, [ebp - 0x234]
push eax
call fcn.0050f9be
add esp, 8
test eax, eax
je 0x5075a0
push 0x550554
lea ecx, [ebp - 0x234]
push ecx
call fcn.0050f9be
add esp, 8
test eax, eax
je 0x5075a0
mov edx, dword [ebp - 0x260]
and edx, 0x10
je 0x50754d
lea eax, [ebp - 0x234]
push eax
push 0x55c9e4
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x264]
push edx
call fcn.00404ee0
add esp, 0xc
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.00404ee0
add esp, 0xc
push eax
call fcn.00507420
add esp, 4
lea ecx, [ebp - 0x268]
call fcn.00406190
lea ecx, [ebp - 0x264]
call fcn.00406190
jmp 0x5075a0
lea ecx, [ebp - 0x234]
push ecx
push 0x55c9e4
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x26c]
push eax
call fcn.00404ee0
add esp, 0xc
push eax
lea ecx, [ebp - 0x270]
push ecx
call fcn.00404ee0
add esp, 0xc
mov ecx, eax
call fcn.00406010
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x270]
call fcn.00406190
lea ecx, [ebp - 0x26c]
call fcn.00406190
lea edx, [ebp - 0x260]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 8], eax
jmp 0x5074b0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 8]
call fcn.00406010
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 0x274], eax
lea ecx, [ebp - 4]
call fcn.00406190
mov eax, dword [ebp - 0x274]
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050c75f
mov esp, ebp
pop ebp
ret
Function at 0x509e0a
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x57d494], 0
push esi
jne 0x509d78
call fcn.00509c8c
test eax, eax
je 0x509dbb
mov eax, dword [0x57d494]
cmp eax, 1
jne 0x509d99
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x509dbb
pop esi
ret
push eax
call dword [0x57d49c]
test eax, eax
jne 0x509e03
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x509dbf
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x57d494]
call dword [0x57d49c]
mov edi, eax
test edi, edi
je 0x509de4
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x509e00
mov edi, esi
add esi, 0xff0
push edi
push dword [0x57d494]
call dword [0x57d498]
add edi, 0x10
cmp edi, esi
jb 0x509dec
mov eax, edi
pop edi
pop esi
ret
jmp 0x509d65

Function at 0x50c75f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x579aa4]
jne 0x50c769
repz ret
jmp fcn.00519892

Function at 0x532e6b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.005191e8
and dword [ebp - 4], 0
cmp dword [0x57e228], 0
mov ebx, eax
jne 0x532f1c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x532fcd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x532fcd
push eax
call fcn.00519176
mov dword [esp], 0x55c0b8
push edi
mov dword [0x57e228], eax
call esi
push eax
call fcn.00519176
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x57e22c], eax
call esi
push eax
call fcn.00519176
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x57e230], eax
call esi
push eax
call fcn.00519176
pop ecx
mov dword [0x57e238], eax
test eax, eax
je 0x532f1c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00519176
pop ecx
mov dword [0x57e234], eax
mov eax, dword [0x57e234]
cmp eax, ebx
je 0x532f74
cmp dword [0x57e238], ebx
je 0x532f74
push eax
call fcn.005191f1
push dword [0x57e238]
mov esi, eax
call fcn.005191f1
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x532f74
test edi, edi
je 0x532f74
call esi
test eax, eax
je 0x532f6b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x532f6b
test byte [ebp - 0xc], 1
jne 0x532f74
or dword [ebp + 0x10], 0x200000
jmp 0x532fad
mov eax, dword [0x57e22c]
cmp eax, ebx
je 0x532fad
push eax
call fcn.005191f1
pop ecx
test eax, eax
je 0x532fad
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x532fad
mov eax, dword [0x57e230]
cmp eax, ebx
je 0x532fad
push eax
call fcn.005191f1
pop ecx
test eax, eax
je 0x532fad
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x57e228]
call fcn.005191f1
pop ecx
test eax, eax
je 0x532fcd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x532fcf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x53bc80
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x579aa4]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
mov ebx, dword [esp + 0x214]
test ebx, ebx
jne 0x53bcb8
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0050c75f
add esp, 0x20c
ret
push esi
push 0x208
lea eax, [esp + 0xc]
push 0
push eax
call fcn.0050c770
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x53bd83
mov ecx, ebx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x53bcf0
sub ecx, esi
sar ecx, 1
mov edx, 0x103
sub edx, ecx
cmp eax, edx
jae 0x53bd83
push edi
lea edi, [esp + 0xc]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x53bd12
mov eax, dword [0x55c9e4]
mov dword [edi], eax
mov eax, ebx
mov edx, ebx
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x53bd30
lea edi, [esp + 0xc]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x53bd44
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0050c75f
add esp, 0x20c
ret
mov ecx, dword [esp + 0x210]
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0050c75f
add esp, 0x20c
ret
Function at 0x53c6d0
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2c14
call fcn.0050c860
mov eax, dword [0x579aa4]
xor eax, esp
mov dword [esp + 0x2c10], eax
mov eax, dword [esp + 0x2c18]
push edi
xor edi, edi
mov dword [esp + 0xc], eax
cmp eax, edi
je 0x53c83b
cmp dword [esp + 0x2c20], edi
je 0x53c83b
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov dword [esp + 0x10], edi
xor ebx, ebx
lea ebx, [ebx]
push ebx
push str..PhysicalDrive_d
lea eax, [esp + 0x30]
push 0x100
push eax
call fcn.0053c0f0
add esp, 0x10
push edi
push edi
push 3
push edi
push 3
push edi
lea ecx, [esp + 0x40]
push ecx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x53c814
xor eax, eax
push 0x2710
lea edx, [esp + 0x514]
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call fcn.0050c770
add esp, 0xc
push edi
lea eax, [esp + 0x18]
push eax
push 0x2710
lea ecx, [esp + 0x51c]
push ecx
push 0xc
lea edx, [esp + 0x30]
push edx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x53c807
push 0x3e8
lea eax, [esp + 0x12c]
push edi
push eax
call fcn.0050c770
mov edx, dword [esp + 0x534]
lea ecx, [esp + 0x134]
push ecx
push 1
push edx
lea eax, [esp + 0x528]
push eax
call fcn.0053e490
mov edx, dword [esp + 0x2c48]
mov eax, dword [esp + 0x34]
add esp, 0x1c
lea ecx, [esp + 0x128]
push ecx
push edx
push eax
call fcn.0053bf40
test eax, eax
jne 0x53c807
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], edi
jne 0x53c81e
inc ebx
cmp ebx, 0x10
jl 0x53c720
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x2c10]
xor ecx, esp
call fcn.0050c75f
add esp, 0x2c14
ret
mov ecx, dword [esp + 0x2c14]
pop edi
xor ecx, esp
xor eax, eax
call fcn.0050c75f
add esp, 0x2c14
ret
Function at 0x53cb20
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x2ec
mov eax, dword [0x579aa4]
xor eax, esp
mov dword [esp + 0x2e8], eax
push edi
mov edi, dword [esp + 0x2f4]
mov dword [esp + 0x18], edi
test edi, edi
je 0x53cd21
cmp dword [esp + 0x2f8], 0
je 0x53cd21
push 0x64
lea eax, [esp + 0x20]
push 0
push eax
call fcn.0050c770
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 8
push 0
push 0x55c3b8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x53cce8
mov ecx, dword [esp + 4]
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x100]
push eax
push ebx
mov esi, 0x104
push ecx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x53ccdb
lea ebx, [ebx]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push 1
push 0
lea eax, [esp + 0xf8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x53cca9
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1f4]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push str.ServiceName
push edx
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x53cc9e
push 0x64
push eax
lea eax, [esp + 0x90]
push eax
call fcn.0050c770
lea ecx, [esp + 0x1fc]
push 0x64
push ecx
lea edi, [esp + 0x9c]
call fcn.0053ca10
add esp, 0x14
test eax, eax
je 0x53cc9e
cmp byte [esp + 0x24], 0
je 0x53cc62
lea edx, [esp + 0x24]
push edx
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jge 0x53cc9e
lea eax, [esp + 0x24]
lea esi, [esp + 0x88]
mov ecx, eax
mov edx, 0x64
sub esi, ecx
lea ecx, [edx + 0x7fffff9a]
test ecx, ecx
je 0x53cc91
mov cl, byte [esi + eax]
test cl, cl
je 0x53cc91
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x53cc76
jmp 0x53cc95
test edx, edx
jne 0x53cc96
dec eax
mov byte [eax], 0
mov esi, 0x104
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0xc]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x100]
push ecx
inc ebx
push ebx
push edx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x53cbc0
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
cmp byte [esp + 0x1c], 0
je 0x53cd21
mov edx, dword [esp + 0x2f8]
lea ecx, [esp + 0x1c]
push ecx
push edx
push edi
call fcn.0053bf40
xor ecx, ecx
test eax, eax
setge cl
pop edi
mov eax, ecx
mov ecx, dword [esp + 0x2e8]
xor ecx, esp
call fcn.0050c75f
add esp, 0x2ec
ret
mov ecx, dword [esp + 0x2ec]
pop edi
xor ecx, esp
xor eax, eax
call fcn.0050c75f
add esp, 0x2ec
ret