joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10495f5
Capabilities:
Get file system object information

Disassembly:
push 0x2c8
mov eax, 0x106c0ba
call fcn.0101da43
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2d0], eax
mov eax, dword [ebp + 0xc]
mov edi, ecx
push eax
lea ecx, [ebp - 0x2c8]
call sub.MFC42u.dll_CString::CString_2
push 1
xor esi, esi
push 0x5c
lea ecx, [ebp - 0x2d4]
mov dword [ebp - 4], esi
call sub.MFC42u.dll_CString::CString_4
push 1
lea eax, [ebp - 0x2cc]
push eax
lea ecx, [ebp - 0x2c8]
mov byte [ebp - 4], 1
call sub.MFC42u.dll_CString::Right
push dword [ebp - 0x2d4]
mov ecx, eax
call fcn.01024d42
test eax, eax
lea ecx, [ebp - 0x2cc]
setne bl
call sub.MFC42u.dll_CString::CString
lea ecx, [ebp - 0x2d4]
mov byte [ebp - 4], 0
call sub.MFC42u.dll_CString::CString
test bl, bl
je 0x104968a
push 0x1005274
lea ecx, [ebp - 0x2c8]
call sub.MFC42u.dll_CString::operator_1
push 0x101
push 0x2b4
lea eax, [ebp - 0x2c4]
push eax
push esi
push dword [ebp - 0x2c8]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
jne 0x10496de
add edi, 0x48
push 0x4e78
mov ecx, edi
call sub.MFC42u.dll_CString::LoadStringW
mov edi, dword [edi]
push esi
push esi
push edi
call fcn.0102a3ed
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c8]
call sub.MFC42u.dll_CString::CString
xor eax, eax
call fcn.0101dad5
ret 8
push dword [ebp - 0x2c4]
mov ebx, dword [sym.imp.USER32.dll_DestroyIcon]
call ebx
push 0x103
push 0x2b4
lea eax, [ebp - 0x2c4]
push eax
push esi
push dword [ebp - 0x2c8]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
jne 0x104973a
add edi, 0x48
push 0x4e78
mov ecx, edi
call sub.MFC42u.dll_CString::LoadStringW
mov edi, dword [edi]
push esi
push esi
push edi
call fcn.0102a3ed
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c8]
call sub.MFC42u.dll_CString::CString
mov eax, esi
jmp 0x10496d6
push dword [ebp - 0x2c4]
call ebx
push 1
lea eax, [ebp - 0x2cc]
push eax
lea ecx, [ebp - 0x2c8]
call sub.MFC42u.dll_CString::Right
push 0x1005274
mov ecx, eax
call fcn.01024d42
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ebp - 0x2cc]
inc bl
call sub.MFC42u.dll_CString::CString
test bl, bl
je 0x1049790
mov eax, dword [ebp - 0x2c8]
mov eax, dword [eax - 8]
push esi
dec eax
push eax
lea ecx, [ebp - 0x2c8]
call sub.MFC42u.dll_CString::SetAt
mov eax, 0xffff0000
cmp dword [ebp - 0x2d0], eax
jne 0x10497c0
push 0xffff0002
push eax
push esi
push esi
push esi
push 3
push 3
push dword [ebp - 0x2c8]
push 0x23
mov ecx, edi
call sub.MFC42u.dll_CTreeCtrl::InsertItem
mov esi, eax
jmp 0x1049727
push dword [ebp - 0x2c8]
mov ecx, edi
call fcn.01048988
push 0xffff0002
push dword [ebp - 0x2d0]
push esi
push esi
push esi
push esi
push esi
push eax
jmp 0x10497b0
Function at 0x104b74b
Capabilities:
Create process on windows

Disassembly:
push 8
mov eax, 0x106b9e5
call fcn.0101d9d0
mov esi, ecx
push 2
push 0xffffffffffffffff
call fcn.0102eb7d
inc eax
mov dword [ebp - 0x14], eax
je 0x104b7c4
xor edi, edi
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.0104ac9b
push eax
mov ecx, esi
call fcn.0104b442
push eax
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.0104b344
push 1
push edi
push edi
push dword [ebp - 0x10]
mov dword [ebp - 4], edi
push 0x10055dc
push dword [esi + 0x20]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x104b7b3
push 0xffffffffffffffff
push edi
push 0x4e9a
call fcn.0102a40d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.dll_CString::CString
cmp dword [ebp - 0x14], edi
jne 0x104b76a
call fcn.0101dabc
ret
Function at 0x104d42e
Capabilities:
Get common file path

Disassembly:
push 0x578
mov eax, 0x106c7db
call fcn.0101da43
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x56c], ecx
lea ecx, [ebp - 0x560]
mov dword [ebp - 0x570], eax
call sub.MFC42u.dll_CString::CString_3
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
mov dword [ebp - 4], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x568]
mov dword [ebp - 0x564], 1
call sub.MFC42u.dll_CString::CString_3
lea ecx, [ebp - 0x574]
mov byte [ebp - 4], 1
call sub.MFC42u.dll_CString::CString_3
mov byte [ebp - 4], 2
mov dword [ebp - 0x55c], ebx
cmp dword [esi + 0xc], ebx
jbe 0x104d4ff
push dword [ebp - 0x55c]
mov ecx, esi
call fcn.0104aa6c
push eax
lea eax, [ebp - 0x584]
push eax
mov ecx, esi
call fcn.0104c3f2
push eax
lea ecx, [ebp - 0x560]
mov byte [ebp - 4], 3
call sub.MFC42u.dll_CString::operator
lea ecx, [ebp - 0x584]
mov byte [ebp - 4], 2
call fcn.0104a905
inc dword [ebp - 0x55c]
mov eax, dword [ebp - 0x55c]
cmp eax, dword [esi + 0xc]
jb 0x104d4b3
push 0x100e584
lea ecx, [ebp - 0x560]
call sub.MFC42u.dll_CString::operator_1
mov eax, dword [ebp - 0x560]
push dword [ebp - 0x56c]
mov eax, dword [eax - 8]
push eax
lea ecx, [ebp - 0x560]
call sub.MFC42u.dll_CString::GetBuffer
push eax
push 4
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x558]
call sub.MFC42u.dll_CFileDialog::CFileDialog
lea eax, [ebp - 0x218]
push eax
push 0x100dc1c
push ebx
push ebx
push 5
push ebx
mov byte [ebp - 4], 4
call dword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirW]
test eax, eax
jne 0x104d566
lea eax, [ebp - 0x218]
mov dword [ebp - 0x4cc], eax
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp - 0x4e0], eax
lea ecx, [ebp - 0x558]
call sub.MFC42u.dll_CFileDialog::DoModal
cmp eax, 1
jne 0x104d5e0
mov eax, dword [ebp - 0x4e0]
mov ecx, dword [ebp - 0x570]
dec eax
push edi
push eax
mov dword [ecx], eax
mov ecx, dword [ebp - 0x56c]
push esi
lea eax, [ebp - 0x558]
push eax
call fcn.0104cce1
push dword [edi]
mov dword [ebp - 0x55c], eax
call fcn.0105226c
test eax, eax
jne 0x104d5ea
push dword [edi]
lea eax, [ebp - 0x568]
push 0x6217
push eax
call sub.MFC42u.dll_CString::Format_1
add esp, 0xc
push ebx
push 0x34
push dword [ebp - 0x568]
call fcn.0102a3ed
cmp eax, 6
jne 0x104d5f0
jmp 0x104d5ea
mov dword [ebp - 0x55c], 9
mov dword [ebp - 0x564], ebx
cmp dword [ebp - 0x564], ebx
jne 0x104d570
lea ecx, [ebp - 0x558]
mov byte [ebp - 4], 2
call fcn.0104b594
lea ecx, [ebp - 0x574]
mov byte [ebp - 4], 1
call sub.MFC42u.dll_CString::CString
lea ecx, [ebp - 0x568]
mov byte [ebp - 4], bl
call sub.MFC42u.dll_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x560]
call sub.MFC42u.dll_CString::CString
mov eax, dword [ebp - 0x55c]
call fcn.0101dad5
ret 0x10
Function at 0x10518e8
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x460
mov eax, dword [0x1077400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push eax
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
call sub.msvcrt.dll_wcscpy_s
push 0x100ec84
lea eax, [ebp - 0x20c]
push esi
push eax
call sub.msvcrt.dll_wcscat_s
add esp, 0x18
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x460], eax
or eax, 0xffffffff
cmp dword [ebp - 0x460], eax
je 0x10519b2
push ebx
mov ebx, dword [sym.imp.msvcrt.dll__wcsicmp]
lea eax, [ebp - 0x430]
push edi
push eax
call ebx
pop ecx
pop ecx
test eax, eax
je 0x10519c2
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x1051981
lea eax, [ebp - 0x430]
push edi
push eax
call ebx
pop ecx
pop ecx
test eax, eax
je 0x10519c2
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x460]
call esi
test eax, eax
jne 0x1051971
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x460]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
cmp esi, 0x12
sete al
dec eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0101d9bb
leave
ret 8
xor eax, eax
inc eax
jmp 0x10519b1

Function at 0x105226c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10522a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x105229f
cmp eax, 3
je 0x105229f
test eax, eax
jle 0x10522a6
and eax, 0xffff
or eax, 0x80070000
jmp 0x10522a6
xor eax, eax
inc eax
jmp 0x10522a6
xor eax, eax
pop ebp
ret 4

Function at 0x1052330
Capabilities:
Delete file

Disassembly:
mov edi, edi
push esi
mov esi, ecx
and dword [esi + 0x26], 0
push edi
lea eax, [esi + 0x14]
push eax
mov dword [esi + 0x18], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov edi, eax
test edi, edi
jne 0x105235f
push eax
push dword [esi + 0x1c]
push 5
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, edi
pop edi
pop esi
ret

Function at 0x1052369
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
and dword [esi + 0x26], 0
lea eax, [esi + 0x14]
push eax
mov dword [esi + 0x18], 1
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x10523ae
push edi
mov edi, dword [sym.imp.SHELL32.dll_SHChangeNotify]
push eax
push dword [esi + 0x20]
push 5
push 0x1000
call edi
push 0
push dword [esi + 0x1c]
push 5
push 4
call edi
pop edi
mov eax, dword [ebp - 4]
pop esi
leave
ret
Function at 0x105250b
Capabilities:
Copy file

Disassembly:
push 0x21c
mov eax, 0x106d2bf
call fcn.0101da43
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x218], ax
mov esi, ecx
lea eax, [ebp - 0x216]
push ebx
push eax
mov dword [esi + 0x26], ebx
mov dword [esi + 0x18], 2
mov dword [ebp - 0x228], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
mov edi, 0x104
push edi
push dword [esi + 0x1c]
mov dword [ebp - 0x220], ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp eax, edi
jbe 0x105257b
xor eax, eax
inc eax
jmp 0x1052622
push dword [esi + 0x20]
lea ecx, [ebp - 0x21c]
call sub.MFC42u.dll_CString::CString_2
push 0x100df5c
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], ebx
call sub.MFC42u.dll_CString::CString_1
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 1
call sub.MFC42u.dll_CString::operator
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], bl
call sub.MFC42u.dll_CString::CString
push dword [ebp - 0x220]
lea ecx, [ebp - 0x21c]
call sub.MFC42u.dll_CString::operator_1
push 1
lea eax, [ebp - 0x228]
push eax
push ebx
push ebx
push dword [ebp - 0x21c]
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x10525fd
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov edi, eax
jmp 0x10525ff
xor edi, edi
cmp edi, ebx
jne 0x1052611
push ebx
push dword [esi + 0x20]
push 5
push 2
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call sub.MFC42u.dll_CString::CString
mov eax, edi
call fcn.0101dad5
ret
Function at 0x1055038
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x1077400]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp dword [0x1079e98], ebx
jne 0x105519a
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 0x210]
push eax
mov edi, 0x20019
push edi
push ebx
push 0x100fde0
push 0x80000002
mov dword [0x1079e98], 2
mov dword [ebp - 0x210], ebx
call esi
test eax, eax
jne 0x1055198
push 0x1fe
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x202]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x220], 0x80000001
mov dword [ebp - 0x21c], 0x80000002
mov dword [ebp - 0x208], ebx
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0x208]
push edi
push ebx
push 0x100fde0
push dword [ebp + eax*4 - 0x220]
mov dword [ebp - 0x20c], ebx
call esi
test eax, eax
jne 0x105513f
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x204]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x20c]
mov dword [ebp - 0x214], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x20c]
mov dword [ebp - 0x218], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x218], ebx
jne 0x105513f
xor eax, eax
cmp ax, word [ebp - 0x204]
jne 0x1055154
inc dword [ebp - 0x208]
cmp dword [ebp - 0x208], 2
jb 0x10550cc
jmp 0x105518c
lea eax, [ebp - 0x208]
push eax
push edi
push ebx
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x210]
mov dword [ebp - 0x208], ebx
call esi
test eax, eax
jne 0x105518c
push dword [ebp - 0x208]
mov dword [0x1079e98], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [0x1079e98], 1
pop ebx
sete al
xor ecx, ebp
call fcn.0101d9bb
leave
ret
Function at 0x10553df
Capabilities:
Impersonate user

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6b4
mov eax, dword [0x1077400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x6b4], eax
xor eax, eax
xor ebx, ebx
push 0x402
mov word [ebp - 0x6ac], ax
lea eax, [ebp - 0x6aa]
push ebx
push eax
mov dword [ebp - 0x6b0], ebx
call sub.msvcrt.dll_memset
xor eax, eax
push 0x2a2
mov word [ebp - 0x2a8], ax
lea eax, [ebp - 0x2a6]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
push 0x152
lea eax, [ebp - 0x2a8]
push eax
push 0x202
lea eax, [ebp - 0x6ac]
push eax
push esi
call dword [sym.imp.credui.dll_CredUIParseUserNameW]
mov esi, eax
cmp esi, ebx
jne 0x10554b9
lea eax, [ebp - 0x6b0]
push eax
push ebx
push 2
push edi
lea eax, [ebp - 0x2a8]
push eax
lea eax, [ebp - 0x6ac]
push eax
call dword [sym.imp.ADVAPI32.dll_LogonUserW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x105549d
call edi
mov esi, eax
cmp esi, ebx
jne 0x10554b9
push dword [ebp - 0x6b4]
push 3
push dword [ebp - 0x6b0]
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
jne 0x10554b9
call edi
mov esi, eax
cmp dword [ebp - 0x6b0], ebx
je 0x10554cd
push dword [ebp - 0x6b0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
jle 0x10554dd
and esi, 0xffff
or esi, 0x80070000
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101d9bb
leave
ret 0xc
Function at 0x1055740
Capabilities:
Copy file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [ebp + 8], edi
je 0x10558b7
cmp dword [ebp + 0xc], edi
je 0x10558b7
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea eax, [ebp - 8]
push eax
push edi
push edi
push dword [ebp + 8]
mov dword [ebp - 8], edi
call esi
mov ebx, eax
cmp ebx, edi
jne 0x105579b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1055790
and eax, 0xffff
or eax, 0x80070000
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x10558b0
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea eax, [ebx + ebx]
push eax
push 0x40
call edi
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x10557b7
mov dword [ebp - 4], 0x8007000e
cmp dword [ebp - 4], 0
jl 0x10558a1
lea ecx, [ebp - 8]
push ecx
push eax
push ebx
push dword [ebp + 8]
call esi
test eax, eax
jne 0x10557e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10557e4
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x10558a1
mov eax, dword [ebp + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10557f7
sub eax, edx
sar eax, 1
mov ecx, eax
mov eax, dword [ebp - 8]
lea edx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x105580d
sub eax, edx
sar eax, 1
lea esi, [eax + ecx + 2]
lea eax, [esi + esi]
push eax
push 0x40
call edi
mov edi, eax
test edi, edi
jne 0x1055834
mov dword [ebp - 4], 0x8007000e
cmp dword [ebp - 4], 0
jl 0x1055896
push dword [ebp + 0xc]
push esi
push edi
call fcn.0101f089
mov dword [ebp - 4], eax
test eax, eax
jl 0x1055896
push 0x1005274
push esi
push edi
call fcn.0101e5fc
mov dword [ebp - 4], eax
test eax, eax
jl 0x1055896
push dword [ebp - 8]
push esi
push edi
call fcn.0101e5fc
mov dword [ebp - 4], eax
test eax, eax
jl 0x1055896
push 1
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1055896
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1055893
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
test edi, edi
je 0x10558a1
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0xc], 0
je 0x10558b0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
pop esi
pop ebx
jmp 0x10558bc
mov eax, 0x80070057
pop edi
leave
ret 8
Function at 0x105ea6f
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1077400]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 7
mov ebx, ecx
mov word [ebp - 0x24], ax
pop ecx
lea edi, [ebp - 0x22]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
xor esi, esi
push eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x105eae3
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x105eada
call esi
mov esi, eax
and esi, 0xffff
jmp 0x105ebe3
call esi
mov esi, eax
jmp 0x105ebe3
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
mov esi, eax
test esi, esi
jl 0x105ebb5
lea eax, [ebp - 0x28]
push eax
push 0x1006210
push 0
push 0x40
mov dword [ebp - 0x2c], 1
call fcn.0101f9e5
mov esi, eax
test esi, esi
jge 0x105eb68
and eax, 0x1fff0000
cmp eax, 0x70000
mov eax, esi
jne 0x105eb26
and eax, 0xffff
cmp eax, 0x4c7
jne 0x105eb37
mov esi, 0x80004005
jmp 0x105ebe3
mov eax, dword [0x1077004]
cmp eax, 0x1077004
je 0x105ebe3
test dword [eax + 0x1c], 0x100
je 0x105ebe3
cmp byte [eax + 0x19], 2
jb 0x105ebe3
push esi
push 0x1010b0c
push 0x6b
jmp 0x105ebd8
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x105ebfa
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x105eb80
lea eax, [ebp - 0x24]
push dword [ebp + 8]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x14]
mov esi, eax
test esi, esi
jge 0x105ebe3
mov eax, dword [0x1077004]
cmp eax, 0x1077004
je 0x105ebe3
test dword [eax + 0x1c], 0x100
je 0x105ebe3
cmp byte [eax + 0x19], 2
jb 0x105ebe3
push esi
push 0x1010b0c
push 0x6c
jmp 0x105ebd8
mov eax, dword [0x1077004]
cmp eax, 0x1077004
je 0x105ebe3
test dword [eax + 0x1c], 0x100
je 0x105ebe3
cmp byte [eax + 0x19], 2
jb 0x105ebe3
push esi
push 0x1010b0c
push 0x6d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101e0d7
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x105ebf4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 0x28], 0
cmp dword [ebp - 0x2c], 0
je 0x105ec00
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101d9bb
leave
ret 4
Function at 0x1063281
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1077400]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x28], 0
and dword [ebp - 0x2c], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor eax, eax
push 7
mov word [ebp - 0x24], ax
pop ecx
lea edi, [ebp - 0x22]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x34], 0x10
mov eax, dword [0x1077004]
mov esi, 0x1077004
cmp eax, esi
je 0x10632e7
test dword [eax + 0x1c], 0x100
je 0x10632e7
cmp byte [eax + 0x19], 5
jb 0x10632e7
push 0x1010d9c
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01015bb9
mov edi, 0x20006
push edi
push 1
push 0x1010dd0
push 0x80000001
call fcn.0101fb88
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x106334c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
mov eax, dword [0x1077004]
cmp eax, esi
je 0x106344b
test dword [eax + 0x1c], 0x100
je 0x106344b
cmp byte [eax + 0x19], 2
jb 0x106344b
push dword [ebp - 0x28]
push 0x1010d9c
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101e0d7
jmp 0x106344b
push dword [ebx + 4]
call fcn.01021142
test eax, eax
je 0x10633ab
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x10633a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
mov eax, dword [0x1077004]
cmp eax, esi
je 0x1063435
test dword [eax + 0x1c], 0x100
je 0x1063435
cmp byte [eax + 0x19], 2
jb 0x1063435
push dword [ebp - 0x28]
push 0x1010d9c
push 0x10
jmp 0x106342a
lea eax, [ebp - 0x24]
jmp 0x10633ae
mov eax, dword [ebx + 4]
push edi
push 1
push eax
push dword [ebp - 0x30]
call fcn.0101fb88
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x10633ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
mov eax, dword [0x1077004]
cmp eax, esi
je 0x1063435
test dword [eax + 0x1c], 0x100
je 0x1063435
cmp byte [eax + 0x19], 2
jb 0x1063435
push dword [ebp - 0x28]
push 0x1010d9c
push 0x11
jmp 0x106342a
push dword [ebx]
push 0x1010dac
push eax
call fcn.0101fdb1
test eax, eax
jne 0x1063435
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
mov eax, dword [0x1077004]
cmp eax, esi
je 0x1063435
test dword [eax + 0x1c], 0x100
je 0x1063435
cmp byte [eax + 0x19], 2
jb 0x1063435
push dword [ebp - 0x28]
push 0x1010d9c
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101e0d7
push dword [ebp - 0x30]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
cmp dword [ebp - 0x2c], 0
je 0x106344b
push dword [ebp - 0x2c]
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x28]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101d9bb
leave
ret 4