joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47fcb9
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4aa970
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x14], esi
lea ebx, [esi + 0x60]
mov ecx, ebx
call fcn.00412a30
mov ecx, dword [esi + 0xd4]
mov edx, dword [esi + 0xd0]
lea eax, [esp + 0x10]
push eax
push ecx
push edx
call fcn.0042c420
add esp, 0xc
cmp al, 1
jne 0x47fe04
push ebp
push edi
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_5
mov eax, dword [esp + 0x18]
xor esi, esi
mov dword [esp + 0x28], esi
mov ebp, dword [eax]
lea edi, [eax + 4]
cmp ebp, esi
jbe 0x47fde3
push 0
push 0
push 0
push 0
push edi
push esi
push 1
mov ecx, ebx
call sub.MFC42u.DLL_CListCtrl::InsertItem
lea eax, [edi + 0x28]
mov ecx, ebx
push eax
push 1
push esi
call sub.MFC42u.DLL_CListCtrl::SetItemText
mov ecx, dword [edi + 0x234]
lea edx, [esp + 0x10]
push ecx
push str.0x_04X
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, ebx
push eax
push 2
push esi
call sub.MFC42u.DLL_CListCtrl::SetItemText
mov ecx, dword [edi + 0x238]
lea edx, [esp + 0x10]
push ecx
push str.0x_08X
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, ebx
push eax
push 3
push esi
call sub.MFC42u.DLL_CListCtrl::SetItemText
mov ecx, dword [edi + 0x230]
lea edx, [esp + 0x10]
push ecx
push 0x4c7ea8
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, ebx
push eax
push 4
push esi
call sub.MFC42u.DLL_CListCtrl::SetItemText
mov ecx, dword [edi + 0x23c]
lea edx, [esp + 0x10]
push ecx
push 0x4c7ea8
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, ebx
push eax
push 5
push esi
call sub.MFC42u.DLL_CListCtrl::SetItemText
inc esi
add edi, 0x240
cmp esi, ebp
jb 0x47fd0f
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov esi, dword [esp + 0x1c]
pop edi
pop ebp
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::CString_5
mov ecx, dword [esi + 0x80]
push 0
push 0
push 0x1004
push ecx
mov dword [esp + 0x30], 1
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [0x5401c4]
mov ecx, dword [esi + 0xcc]
push eax
mov eax, dword [edx*4 + 0x50e8e0]
lea edx, [esp + 0x10]
push eax
push ecx
push str.__s__s__d_
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x20]
add esp, 0x14
mov ecx, esi
push eax
call sub.MFC42u.DLL_CWnd::SetWindowTextW
push 0
mov ecx, ebx
call fcn.00412e20
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x481f30
Capabilities:
Check if file exists

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4aabbc
push eax
mov dword fs:[0], esp
sub esp, 0x354
push ebx
push ebp
mov ebp, dword [esp + 0x370]
xor bl, bl
push edi
mov edi, ecx
test ebp, ebp
jbe 0x4820f0
push 0
push str.All_Files__._.
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x38]
call sub.MFC42u.DLL_CFileDialog::CFileDialog
lea ecx, [esp + 0x20]
mov dword [esp + 0x368], 0
call sub.MFC42u.DLL_CFileDialog::DoModal
cmp eax, 1
jne 0x4820c5
lea eax, [esp + 0xc]
push esi
push eax
lea ecx, [esp + 0x28]
call sub.MFC42u.DLL_CFileDialog::GetPathName
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x36c], 1
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x481fe4
mov eax, dword [0x5401c4]
push 0x34
mov ecx, edi
mov edx, dword [eax*4 + 0x50f308]
mov eax, dword [eax*4 + 0x50f2fc]
push edx
push eax
call sub.MFC42u.DLL_CWnd::MessageBoxW
cmp eax, 6
jne 0x4820b3
push ebp
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x482095
mov ecx, dword [esp + 0x374]
mov edx, dword [edi + 0x214]
mov eax, dword [edi + 0x210]
push esi
push ebp
push ecx
push edx
push eax
call fcn.0042d290
add esp, 0x14
cmp al, 1
jne 0x48206d
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CFile::CFile
mov ecx, dword [esp + 0x10]
push 0
push 0x1001
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x378], 2
call sub.MFC42u.DLL_CFile::Open
test eax, eax
je 0x48205c
push ebp
push esi
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CFile::Write
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CFile::Close
mov bl, 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x36c], 1
call fcn.004a114c
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
cmp bl, 1
jne 0x482095
mov eax, dword [0x5401c4]
push 0
mov edx, dword [eax*4 + 0x50f308]
mov eax, dword [eax*4 + 0x50f314]
push edx
push eax
jmp 0x4820ac
mov eax, dword [0x5401c4]
push 0
mov ecx, dword [eax*4 + 0x50f308]
mov edx, dword [eax*4 + 0x50f320]
push ecx
push edx
mov ecx, edi
call sub.MFC42u.DLL_CWnd::MessageBoxW
lea ecx, [esp + 0x10]
mov byte [esp + 0x36c], 0
call sub.MFC42u.DLL_CString::CString
pop esi
lea ecx, [esp + 0xd0]
mov dword [esp + 0x368], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0x368], 0xffffffff
call fcn.004a1038
mov ecx, dword [esp + 0x360]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x360
ret 8
Function at 0x4863c6
Capabilities:
Enumerate gui resources

Disassembly:
push 0xffffffffffffffff
push 0x4ab158
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x60]
mov ecx, edi
call fcn.00412a30
mov ecx, esi
call fcn.00486150
test eax, eax
jne 0x4863eb
push esi
push 0x485f70
call dword [sym.imp.USER32.dll_EnumWindows]
push 3
mov ecx, edi
call fcn.00412e20
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::CString_5
mov eax, dword [esi + 0xd0]
push 0
test eax, eax
push 0
mov dword [esp + 0x1c], 0
push 0x1004
jne 0x48644f
mov eax, dword [esi + 0x80]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [0x5401c4]
push eax
mov eax, dword [esi + 0xcc]
mov edx, dword [ecx*4 + 0x50fe98]
lea ecx, [esp + 0xc]
push edx
push eax
push str.__s__s__d_
push ecx
call sub.MFC42u.DLL_CString::Format
add esp, 0x14
jmp 0x48647c
mov edx, dword [esi + 0x80]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
mov eax, dword [0x5401c4]
lea edx, [esp + 0xc]
mov ecx, dword [eax*4 + 0x50fe98]
push ecx
push str._s__d_
push edx
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
mov eax, dword [esp + 8]
mov ecx, esi
push eax
call sub.MFC42u.DLL_CWnd::SetWindowTextW
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x487890
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x5803a0]
push ebx
cmp eax, 1
push ebp
jne 0x4878f7
mov ebx, dword [esp + 0xc]
push 1
lea eax, [ebx + 0xf]
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4878f7
mov ebp, dword [esp + 0x10]
push esi
push edi
mov ecx, 0x10
mov edi, ebp
mov esi, ebx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
pop edi
pop esi
je 0x4878cc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4878f7
lea ecx, [esp + 0xc]
push ecx
push 0x40
push 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp]
mov dword [ebx], edx
mov eax, dword [ebp + 4]
mov dword [ebx + 4], eax
mov ecx, dword [ebp + 8]
mov dword [ebx + 8], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 0xc], edx
pop ebp
pop ebx
ret

Function at 0x487900
Capabilities:
Continue service
Query service status
Start service

Disassembly:
sub esp, 0x1c
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x487981
push ebx
push esi
push 0x54
push str.CryptSvc
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x48797c
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x487979
mov eax, dword [esp + 0x10]
cmp eax, 1
jne 0x487966
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
add esp, 0x1c
ret
cmp eax, 7
jne 0x487979
lea ecx, [esp + 0xc]
push ecx
push 3
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
add esp, 0x1c
ret
Function at 0x487cb0
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6038
push 0x4a15bc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x34], edi
cmp edi, 0xffffffff
je 0x487db7
call fcn.00487900
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x487da4
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x28]
push eax
push ebx
lea ecx, [ebp - 0x20]
push ecx
push 0x487c80
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x487db0
mov dword [ebp - 4], ebx
mov edx, dword [ebp + 0xc]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x487d59
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x30], 0x20100607
jne 0x487d83
mov ebx, 1
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], 0xffffffff
jmp 0x487db0
push edi
push esi
call fcn.00487990
add esp, 8
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x488f70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ab450
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
xor eax, eax
xor edi, edi
mov ebx, eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], edi
mov word [esp + 0x14], di
mov dword [esp + 0x16], ebx
mov word [esp + 0x1a], ax
call sub.MFC42u.DLL_CString::CString_5
push 0x510264
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 1
call fcn.004a1128
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx - 8]
cmp eax, edi
mov dword [esp + 0x10], eax
jle 0x48901c
push ebp
lea ebp, [esp + 0x18]
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x10]
mov si, word [edx + edi*2]
push esi
call sub.MFC42u.DLL_CString::operator_2
cmp si, 0x2e
jne 0x489012
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll__wtoi]
add esp, 4
lea ecx, [esp + 0x10]
mov word [ebp], ax
push 0x540014
call fcn.004a10f2
mov ebx, dword [esp + 0x1a]
add ebp, 2
mov eax, dword [esp + 0x14]
inc edi
cmp edi, eax
jl 0x488fd3
pop ebp
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
and esi, 0xffff
mov edx, dword [esp + 0x1a]
shl esi, 8
and ebx, 0xffff
and ecx, 0xffff
add esi, ebx
and edx, 0xffff
shl esi, 8
add esi, ecx
lea ecx, [esp + 0xc]
shl esi, 8
add esi, edx
mov byte [esp + 0x28], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x489250
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x4ab493
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push eax
push 0xcb
mov dword [esp + 0x18], ebp
call sub.MFC42u.DLL_CDialog::CDialog
mov dword [ebp], 0x4add30
xor edi, edi
lea ecx, [ebp + 0x60]
mov dword [esp + 0x24], edi
call fcn.00412130
mov ebx, 1
mov dword [ebp], 0x4b6110
mov byte [esp + 0x24], bl
mov dword [ebp + 0xcc], edi
mov dword [ebp + 0xd0], edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x4892c2
mov dword [ebp + 0xd0], ebx
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
cmp esi, edi
je 0x489375
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlFormatCurrentUserKeyPath
push esi
call edi
push str.RtlFreeUnicodeString
push esi
mov ebx, eax
call edi
mov esi, eax
test ebx, ebx
mov dword [esp + 0x2c], esi
je 0x489375
test esi, esi
je 0x489375
lea ecx, [esp + 0x14]
push ecx
call ebx
test eax, eax
jne 0x489375
mov edx, dword [esp + 0x14]
and edx, 0xffff
add edx, 2
push edx
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebp + 0xcc], edi
je 0x48936e
mov ecx, dword [esp + 0x14]
xor eax, eax
and ecx, 0xffff
add ecx, 2
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov edi, dword [ebp + 0xcc]
and ecx, 0xffff
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x14]
push ecx
call esi
push ebp
push 0x600
mov ecx, ebp
call fcn.00409220
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4

Function at 0x48bd30
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x20c
push esi
mov esi, dword [esp + 0x214]
push edi
mov edi, ecx
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x48bde0
push 0x25
mov ecx, esi
call sub.MFC42u.DLL_CString::Find
test eax, eax
jl 0x48bda5
mov edx, dword [edi]
push esi
mov ecx, edi
call dword [edx + 0xf8]
test al, al
jne 0x48bda5
mov eax, dword [esi]
lea ecx, [esp + 8]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jbe 0x48bda5
cmp eax, 0x103
jae 0x48bda5
lea edx, [esp + 8]
mov word [esp + 0x210], 0
push edx
push 0x4c61d8
push esi
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
mov eax, dword [esi]
lea ecx, [esp + 8]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jbe 0x48bde0
cmp eax, 0x103
jae 0x48bde0
lea edx, [esp + 8]
mov word [esp + 0x210], 0
push edx
push 0x4c61d8
push esi
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
pop edi
pop esi
add esp, 0x20c
ret 4
Function at 0x491dd0
Capabilities:
Set registry value

Disassembly:
push ecx
mov eax, dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem]
push esi
test eax, eax
mov esi, 0x523838
je 0x491e37
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esi]
lea eax, [esp + 0x10]
push eax
push 0x2001b
push 0
push ecx
push 0x80000001
call edi
test eax, eax
jne 0x491e2a
mov ecx, dword [esp + 0x10]
lea edx, [esi + 8]
push 4
push edx
push 4
push eax
mov eax, dword [esi + 4]
push eax
push ecx
call ebx
mov edx, dword [esp + 0x10]
push edx
call ebp
mov eax, dword [esi + 0xc]
add esi, 0xc
test eax, eax
jne 0x491df5
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret

Function at 0x497690
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6c48
push 0x4a15bc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x2c], edi
cmp dword [0x580424], edi
jne 0x497815
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
mov dword [ebp - 0x24], esi
cmp esi, edi
je 0x497815
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, eax
and ecx, 0xff
xor edx, edx
mov dl, ah
and edx, 0xff
mov eax, edx
cmp ecx, 5
jne 0x497750
cmp eax, edi
jne 0x497718
mov dword [ebp - 0x20], 0x53dc78
mov dword [ebp - 0x1c], 0x10
jmp 0x497798
cmp eax, 1
jne 0x49772d
mov dword [ebp - 0x20], 0x53dc6c
mov dword [ebp - 0x1c], 0xb
jmp 0x497798
cmp eax, 2
jne 0x497798
mov dword [ebp - 0x20], 0x53dc6c
mov dword [ebp - 0x1c], 0xb
mov dword [ebp - 0x2c], 0x53dc5c
mov dword [ebp - 0x38], 0xe
jmp 0x497798
cmp ecx, 6
jne 0x497798
cmp eax, edi
jne 0x497777
mov dword [ebp - 0x20], 0x53dc54
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x2c], 0x53dc48
mov dword [ebp - 0x38], 0xa
jmp 0x497798
cmp eax, 1
jne 0x497798
mov dword [ebp - 0x20], 0x53dc3c
mov dword [ebp - 0x1c], 8
mov dword [ebp - 0x2c], 0x53dc2c
mov dword [ebp - 0x38], 0xd
cmp dword [ebp - 0x20], edi
je 0x497815
mov dword [ebp - 4], edi
xor ebx, ebx
mov dword [ebp - 0x40], ebx
cmp ebx, 0x70000
jae 0x49780e
lea edx, [ebx + esi]
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
mov esi, edx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4977c3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4977e2
mov edi, dword [ebp - 0x2c]
test edi, edi
je 0x4977fc
mov ecx, dword [ebp - 0x38]
mov esi, edx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4977de
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4977fc
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebx + ecx - 4]
mov dword [ebp - 0x34], eax
cmp eax, ecx
jbe 0x4977fc
cmp eax, 0x80000000
jae 0x4977fc
mov dword [0x580424], eax
inc ebx
mov dword [ebp - 0x40], ebx
mov esi, dword [ebp - 0x24]
jmp 0x4977a5
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x498ae0
Capabilities:
Hash data with md5

Disassembly:
mov edx, dword [esp + 4]
push edi
mov ecx, 0x16
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [edx], 0x67452301
mov dword [edx + 4], 0xefcdab89
mov dword [edx + 8], 0x98badcfe
mov dword [edx + 0xc], 0x10325476
pop edi
ret

Function at 0x4a0530
Capabilities:
Parse pe header

Disassembly:
mov edx, dword [esp + 8]
push ebp
xor eax, eax
push esi
cmp edx, 0x40
push edi
jbe 0x4a05e6
mov ebp, dword [esp + 0x10]
cmp word [ebp], 0x5a4d
jne 0x4a05e6
mov esi, dword [ebp + 0x3c]
add esi, ebp
cmp edx, 0x18
jbe 0x4a05e6
cmp dword [esi], 0x4550
jne 0x4a05e6
xor ecx, ecx
mov cx, word [esi + 0x14]
lea edi, [ecx + 0x18]
cmp edi, edx
jae 0x4a05e6
lea edi, [ecx + 0x40]
cmp edi, edx
ja 0x4a05e6
mov ecx, dword [ecx + esi + 0x2c]
add ecx, 0x1ff
and ecx, 0xfffffe00
cmp ecx, 0x400
jae 0x4a059b
mov ecx, 0x400
jmp 0x4a05a8
cmp ecx, 0x1000
jbe 0x4a05a8
mov ecx, 0x1000
cmp ecx, edx
ja 0x4a05e6
cmp ecx, 0x40
jbe 0x4a05e6
mov di, word [esi + 0x40]
add ecx, 0xffffffc0
push ebx
mov bx, word [esi + 0x42]
add ebp, 0x40
push ecx
push ebp
mov word [esi + 0x40], ax
mov word [esi + 0x42], ax
call fcn.004a06a0
mov ecx, dword [esp + 0x24]
add esp, 8
mov dword [ecx], eax
mov word [esi + 0x42], bx
mov word [esi + 0x40], di
mov eax, 1
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x4a06a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, dword [esp + 0xc]
or eax, 0xffffffff
xor ecx, ecx
test esi, esi
jbe 0x4a06da
push ebx
push edi
mov edi, dword [esp + 0x10]
mov dl, byte [ecx + edi]
mov ebx, eax
and edx, 0xff
and ebx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x53f428]
xor eax, edx
inc ecx
cmp ecx, esi
jb 0x4a06b4
pop edi
pop ebx
not eax
pop esi
ret
Function at 0x4a0da0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
mov byte [esp + 4], 0
push eax
push 1
push 0
push str.SOFTWAREMicrosoftInternet_Explorer
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4a0dfd
mov edx, dword [esp + 0x10]
lea ecx, [esp + 8]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x10]
push str.Version
push eax
mov dword [esp + 0x20], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a0df2
mov byte [esp + 4], 1
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 4]
and eax, 0xff
add esp, 0xc
ret
Function at 0x10004840
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
mov ebx, ecx
push esi
mov eax, dword [ebx + 0x3c]
push edi
mov edi, dword [eax + ebx + 0x78]
add edi, ebx
xor esi, esi
mov dword [ebp - 4], edx
cmp dword [edi + 0x18], esi
jbe 0x100048b1
mov edi, edi
push 0x3f
lea eax, [ebp - 0x43]
push 0
push eax
mov byte [ebp - 0x44], 0
call sub.MSVCRT.dll_memset
mov eax, dword [edi + 0x20]
lea ecx, [ebx + esi*4]
add esp, 0xc
mov edx, dword [ecx + eax]
add edx, ebx
lea ecx, [ebp - 0x44]
call fcn.10014330
lea ecx, [ebp - 0x44]
call fcn.10014250
lea ecx, [ebp - 0x44]
push 0x6ff6
call fcn.100143b0
mov edx, eax
lea ecx, [ebp - 0x44]
call fcn.100048e0
cmp eax, dword [ebp - 4]
je 0x100048ba
inc esi
cmp esi, dword [edi + 0x18]
jb 0x10004860
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x24]
lea eax, [eax + esi*2]
movzx ecx, word [eax + ebx]
mov eax, dword [edi + 0x1c]
pop edi
lea eax, [eax + ecx*4]
pop esi
mov eax, dword [eax + ebx]
add eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100048e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
add esi, edx
push edi
mov edi, ecx
cmp edx, 4
jb 0x10004927
push ebx
mov ebx, edx
shr ebx, 2
jmp 0x10004900
mov eax, dword [edi]
imul esi, esi, 0x5bd1e995
imul eax, eax, 0x5bd1e995
mov ecx, eax
shr ecx, 0x18
xor ecx, eax
imul ecx, ecx, 0x5bd1e995
xor esi, ecx
sub edx, 4
add edi, 4
dec ebx
jne 0x10004900
pop ebx
dec edx
je 0x10004942
dec edx
je 0x10004939
dec edx
jne 0x1000494d
movzx eax, byte [edi + 2]
shl eax, 0x10
xor esi, eax
movzx eax, byte [edi + 1]
shl eax, 8
xor esi, eax
movzx eax, byte [edi]
xor esi, eax
imul esi, esi, 0x5bd1e995
mov ecx, esi
shr ecx, 0xd
xor ecx, esi
imul ecx, ecx, 0x5bd1e995
mov eax, ecx
shr eax, 0xf
pop edi
xor eax, ecx
pop esi
pop ebp
ret 4
Function at 0x10013180
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
cmp dword [0x1001a58c], 0
jne 0x100132ff
mov ecx, 0x80
call fcn.10013c20
mov dword [0x1001a58c], eax
mov byte [ebp - 0x11c], 0
push 0xff
push 0
lea eax, [ebp - 0x11b]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x10], 0
call section..text
mov ecx, dword [eax + 0xec]
call ecx
push eax
push 0
push 0x20400
call section..text
mov edx, dword [eax + 0xd0]
call edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.10001050
mov edx, dword [eax + 0x80]
call edx
lea eax, [ebp - 0x10]
push eax
push 0x200
lea ecx, [ebp - 0x420]
push ecx
push 1
mov edx, dword [ebp - 8]
push edx
call fcn.10001050
mov eax, dword [eax + 0x68]
call eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 0x420]
push edx
call fcn.10001050
mov eax, dword [eax + 0x64]
call eax
mov edx, dword [ebp - 4]
lea ecx, [ebp - 0x11c]
call fcn.10014380
mov byte [ebp - 0x220], 0
push 0x103
push 0
lea ecx, [ebp - 0x21f]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 0xc], 0x104
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea edx, [ebp - 0x220]
lea ecx, [ebp - 0x11c]
call fcn.10014380
push 0
push 0x151f20dc
lea ecx, [ebp - 0x11c]
call fcn.100143b0
xor ecx, ecx
push ecx
push eax
lea ecx, [ebp - 0x11c]
call fcn.10013940
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
push eax
push str._I64u
mov ecx, dword [0x1001a58c]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
mov ecx, dword [0x10019ee4]
call fcn.10013810
mov edx, eax
mov ecx, dword [0x1001a58c]
call fcn.10014380
mov eax, dword [0x1001a58c]
mov esp, ebp
pop ebp
ret