joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428b30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov ax, word [0x443154]
push ebx
push esi
mov esi, ecx
push edi
mov word [ebp - 0x210], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ebx, eax
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
shl ebx, 1
pop ecx
mov eax, ebx
push 2
push 0
neg eax
push eax
push dword [esi + 8]
call edi
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp ebx, dword [ebp - 4]
jne 0x428bfd
lea eax, [ebp - 0x210]
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
test eax, eax
pop ecx
jne 0x428bfd
xor ebx, ebx
push 1
push ebx
push 0xfffffffffffffffc
pop eax
sub eax, dword [ebp - 4]
push eax
push dword [esi + 8]
call edi
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 8]
push 4
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
add eax, ecx
push 1
neg eax
push ebx
push eax
push dword [esi + 8]
call edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x428c02
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 8], ebx
mov eax, dword [esi + 0x26f0]
cmp eax, ebx
jne 0x428c20
mov dword [ebp - 4], ebx
jmp 0x428c2e
mov ecx, dword [esi + 0x26f4]
sub ecx, eax
sar ecx, 2
mov dword [ebp - 4], ecx
push 2
push ebx
push ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 4], ebx
je 0x428ccc
push edi
lea eax, [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
push eax
lea eax, [ebp - 4]
push 4
push eax
push dword [esi + 8]
call edi
mov dword [ebp - 0xc], 4
mov eax, dword [esi + 0x26f0]
test eax, eax
je 0x428c98
mov ecx, dword [esi + 0x26f4]
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jae 0x428c98
lea eax, [ebp - 8]
push 0
push eax
mov eax, dword [esi + 0x26f0]
push 0x20
push dword [eax + ebx*4]
push dword [esi + 8]
call edi
add dword [ebp - 0xc], 0x20
inc ebx
jmp 0x428c62
mov eax, dword [ebp - 0xc]
push 0
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push 4
push eax
push dword [esi + 8]
call edi
mov ebx, str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
push ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
lea ecx, [ebp - 8]
push 0
shl eax, 1
push ecx
push eax
push ebx
push dword [esi + 8]
call edi
pop edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop esi
pop ebx
leave
ret
Function at 0x428cd9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov ax, word [0x443154]
push ebx
push esi
mov ebx, ecx
push edi
mov word [ebp - 0x224], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x222]
xor esi, esi
rep stosd dword es:[edi], eax
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0xc], esi
stosw word es:[edi], ax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.MSVCRT.dll_wcslen]
mov edi, eax
pop ecx
shl edi, 1
mov eax, edi
push 2
neg eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push eax
mov dword [ebp - 8], edi
push dword [ebx + 8]
call esi
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x224]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push eax
push dword [ebx + 8]
call edi
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jne 0x428e66
lea eax, [ebp - 0x224]
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
test eax, eax
pop ecx
jne 0x428e66
push 1
push eax
push 0xfffffffffffffffc
pop eax
sub eax, dword [ebp - 4]
push eax
push dword [ebx + 8]
call esi
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x18]
push 4
push eax
push dword [ebx + 8]
call edi
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
add ecx, eax
push 1
neg ecx
push 0
push ecx
push dword [ebx + 8]
call esi
xor esi, esi
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0xc]
push 4
push eax
push dword [ebx + 8]
call edi
cmp dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
jbe 0x428e34
lea esi, [ebx + 0x5cfd8]
lea ecx, [ebp - 4]
push 0
lea eax, [esi - 0x18]
push ecx
push 0x20
push eax
push dword [ebx + 8]
call edi
xor eax, eax
mov dword [esi - 0x18], eax
mov dword [esi - 0x14], eax
mov ecx, dword [esi]
mov edx, dword [esi + 4]
add dword [esi - 0x10], ecx
adc dword [esi - 0xc], edx
mov dword [esi], eax
mov dword [esi + 4], eax
mov ecx, dword [esi - 8]
sub ecx, dword [esi - 0x10]
mov edx, dword [esi - 4]
sbb edx, dword [esi - 0xc]
add ecx, 1
adc edx, eax
add dword [ebp - 0x14], ecx
lea eax, [esi - 0x18]
lea ecx, [ebx + 0x26ec]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
adc dword [ebp - 0x10], edx
push eax
call fcn.00429dc6
inc dword [ebp - 8]
add esi, 0x20
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jb 0x428dd1
mov ecx, dword [ebx + 0x5d108]
mov edx, dword [ebx + 0x5d10c]
sub ecx, dword [ebp - 0x14]
lea eax, [ebx + 0x5d120]
push 1
sbb edx, dword [ebp - 0x10]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov ecx, dword [eax]
mov eax, edx
mov dword [ebx + 0x5d118], ecx
mov dword [ebx + 0x5d11c], eax
pop eax
jmp 0x428e68
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x428e6d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 0x805c]
mov edi, ecx
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x20]
cmp dword [eax + 4], 1
jne 0x428e91
mov eax, dword [ebx]
mov dword [ebp + 8], eax
xor esi, esi
cmp dword [edi + 0x26fc], esi
je 0x428f31
mov ecx, edi
call fcn.00428b30
mov esi, dword [ebx + 0x8040]
push 0
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
add ecx, dword [esi + 0x18]
adc eax, dword [esi + 0x1c]
mov edx, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push ecx
push dword [edi + 8]
sar edx, 0x1f
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x428ee3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x428f72
lea eax, [ebp - 4]
push 0
push eax
and dword [ebp - 4], 0
push dword [ebp + 8]
lea eax, [ebx + 0x40]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x428f72
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jne 0x428f72
add dword [esi + 0x18], eax
lea eax, [edi + 0x5d118]
adc dword [esi + 0x1c], 0
mov ecx, dword [ebp - 4]
add dword [eax], ecx
push ecx
push ebx
mov ecx, edi
adc dword [eax + 4], 0
call fcn.00428f7b
mov ecx, edi
call fcn.00428c02
jmp 0x428f6d
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebx + 0x40]
push dword [ebp + 8]
mov dword [ebp - 4], esi
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x428f72
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jne 0x428f72
add dword [edi + 0x5d118], ecx
lea eax, [edi + 0x5d118]
push ecx
push ebx
mov ecx, edi
adc dword [eax + 4], esi
call fcn.00428f7b
push 1
pop eax
jmp 0x428f74
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x42adf8
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x432d90
call fcn.0042f560
sub esp, 0x260
mov eax, dword [0x4416fc]
push esi
push edi
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov byte [ebp - 4], 1
jne 0x42ae2d
xor eax, eax
jmp 0x42ae32
push dword [ebp + 8]
call edi
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
push eax
call fcn.0042456f
mov esi, str..
mov eax, esi
test eax, eax
je 0x42ae4c
push esi
call edi
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.004245a6
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
jne 0x42ae75
xor esi, esi
jmp 0x42afb7
mov esi, dword [sym.imp.MSVCRT.dll_wcscmp]
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll__wcsicmp]
lea eax, [ebp - 0x240]
push 0x43be74
push eax
call esi
pop ecx
test eax, eax
pop ecx
je 0x42af92
lea eax, [ebp - 0x240]
push 0x44081c
push eax
call esi
pop ecx
test eax, eax
pop ecx
je 0x42af92
cmp dword [ebp + 0xc], 0
jne 0x42aed0
lea eax, [ebp - 0x240]
push str.desktop.ini
push eax
call ebx
pop ecx
test eax, eax
pop ecx
je 0x42af92
xor eax, eax
cmp dword [ebp + 8], eax
je 0x42aedc
push dword [ebp + 8]
call edi
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
push eax
call fcn.0042456f
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x10]
push eax
push 1
mov dword [ebp - 0x1c], 0x5c
call fcn.004245a6
lea eax, [ebp - 0x240]
test eax, eax
je 0x42af10
lea eax, [ebp - 0x240]
push eax
call edi
lea ecx, [ebp - 0x240]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.004245a6
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x42af39
and al, 0xfe
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [ebp - 0x26c], 0x10
je 0x42af5e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call fcn.0042adf8
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x42af92
cmp dword [ebp + 0x10], 0
je 0x42af89
lea eax, [ebp - 0x240]
push str.index.dat
push eax
call ebx
pop ecx
test eax, eax
pop ecx
jne 0x42af89
lea eax, [ebp - 0x240]
push eax
push dword [ebp + 8]
call fcn.0042afdf
pop ecx
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x42ae82
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 1
pop esi
pop ebx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00424502
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00424502
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x42afdf
Capabilities:
Get file size
Write file on windows

Disassembly:
mov eax, 0x432da4
call fcn.0042f560
mov eax, 0x271c
call fcn.0042f4a0
mov eax, dword [0x4416fc]
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
mov edi, 0x2710
xor ebx, ebx
push edi
lea eax, [ebp - 0x2728]
push ebx
push eax
mov dword [ebp - 4], ebx
call sub.MSVCRT.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0xc
cmp dword [ebp + 8], ebx
jne 0x42b028
xor eax, eax
jmp 0x42b02d
push dword [ebp + 8]
call esi
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
push eax
call fcn.0042456f
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x10]
push eax
push 1
mov dword [ebp - 0x14], 0x5c
call fcn.004245a6
cmp dword [ebp + 0xc], ebx
jne 0x42b057
xor eax, eax
jmp 0x42b05c
push dword [ebp + 0xc]
call esi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
push eax
call fcn.004245a6
push ebx
push 0x80
push 3
push ebx
push 3
push 0x40000000
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x42b0e3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push ebx
push 0x40
mov esi, eax
push dword [ebp + 8]
sub esi, 0x40
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, ebx
jbe 0x42b0d7
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x18]
cmp esi, edi
push 0
push eax
jbe 0x42b0ca
lea eax, [ebp - 0x2728]
push edi
push eax
push dword [ebp + 8]
call ebx
sub esi, edi
jne 0x42b0ad
jmp 0x42b0d7
lea eax, [ebp - 0x2728]
push esi
push eax
push dword [ebp + 8]
call ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00424502
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x42b234
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4008
call fcn.0042f4a0
and word [ebp - 0x4008], 0
push edi
mov ecx, 0xfff
xor eax, eax
lea edi, [ebp - 0x4006]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x42b2e3
cmp eax, 0x3fff
ja 0x42b2e3
lea ecx, [ebp - 0x4008]
push ecx
push eax
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x42b2e3
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x4008]
push 0x43af64
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x42b2e3
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
movzx ecx, word [eax + 0xc]
push ecx
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
push ecx
movzx ecx, word [eax + 8]
mov eax, dword [eax + 8]
push ecx
shr eax, 0x10
push eax
push str._d._d._d._d
push esi
push edi
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x1c
and word [edi + esi*2 - 2], 0
push 1
pop eax
pop esi
jmp 0x42b2e5
xor eax, eax
pop edi
leave
ret
Function at 0x42b479
Capabilities:
Create directory

Disassembly:
push esi
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
test esi, esi
jne 0x42b49e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x42b49e
push 1
pop eax
pop esi
ret
mov eax, esi
pop esi
ret

Function at 0x42ba79
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
and word [ebp - 0x210], 0
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 0x10]
push str.CLSID_sInprocServer32
push 0x103
mov dword [ebp - 8], 1
lea edi, [eax + eax]
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 4]
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ebx, SysReAllocStringLen
push eax
lea eax, [ebp - 8]
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x210]
push str.CodeBase
push eax
push ebx
call esi
test eax, eax
je 0x42bb4a
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x210]
push 0
push eax
push ebx
call esi
test eax, eax
je 0x42bb4a
push dword [ebp + 8]
lea eax, [ebp - 0x210]
push str.CLSID_sLocalServer32
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 8]
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x210]
push 0
push eax
push ebx
call esi
test eax, eax
jne 0x42bb4f
push 1
pop eax
jmp 0x42bbcb
and word [ebp - 0x418], 0
push dword [ebp + 8]
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x416]
push str.CLSID_sTreatAs
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x210]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x208
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x210]
push 0
push eax
push ebx
call esi
test eax, eax
jne 0x42bbc2
push dword [ebp + 0x10]
lea eax, [ebp - 0x418]
push dword [ebp + 0xc]
push eax
call fcn.0042ba79
add esp, 0xc
jmp 0x42bbcb
mov eax, dword [ebp + 0xc]
and word [eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42c632
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2d10
call fcn.0042f4a0
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x42c753
cmp dword [ebp + 0xc], esi
je 0x42c753
push ebx
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov edi, 0x2710
push dword [ebp - 4]
lea eax, [ebp - 0x600]
push str..PhysicalDrive_d
push 0x200
push eax
call fcn.0041c40b
add esp, 0x10
lea eax, [ebp - 0x600]
push esi
push esi
push 3
push esi
push 3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42c73f
push 0xc
lea eax, [ebp - 0x18]
push esi
push eax
mov dword [ebp - 0xc], esi
call sub.MSVCRT.dll_memset
push edi
lea eax, [ebp - 0x2d10]
push esi
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0xc]
push esi
push eax
lea eax, [ebp - 0x2d10]
push edi
push eax
lea eax, [ebp - 0x18]
push 0xc
push eax
push 0x2d1400
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x42c733
push 0x3e8
lea eax, [ebp - 0x400]
push esi
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x400]
push eax
push 1
push dword [ebp - 0x2cf8]
lea eax, [ebp - 0x2d10]
push eax
call fcn.0040681e
add esp, 0x1c
lea eax, [ebp - 0x400]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042c3fa
test eax, eax
jne 0x42c733
mov dword [ebp - 8], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], esi
jne 0x42c74c
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x10
jl 0x42c661
mov eax, dword [ebp - 8]
pop edi
pop ebx
jmp 0x42c755
xor eax, eax
pop esi
leave
ret
Function at 0x42ccc7
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4f0
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x42ce1f
cmp dword [ebp + 0xc], ebx
je 0x42ce1f
push esi
push 0x64
lea eax, [ebp - 0x7c]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 8
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x42cdff
mov dword [ebp - 8], ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x2e8]
mov dword [ebp - 0x14], 0x104
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x42cdf6
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x2e8]
push ebx
push eax
push dword [ebp - 4]
call esi
test eax, eax
jne 0x42cdee
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], 1
push eax
lea eax, [ebp - 0x4f0]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push str.ServiceName
mov dword [ebp - 0x10], 0x208
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42cde5
push 0x64
lea eax, [ebp - 0xe0]
push ebx
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0xe0]
push 0x64
push eax
lea eax, [ebp - 0x4f0]
push eax
call fcn.0042ce24
add esp, 0x18
test eax, eax
je 0x42cde5
cmp byte [ebp - 0x7c], bl
je 0x42cdd3
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0xe0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jge 0x42cde5
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0x7c]
push 0x64
push eax
call fcn.0042c3fa
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 8]
jmp 0x42cd19
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x7c], bl
pop esi
je 0x42ce1f
lea eax, [ebp - 0x7c]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042c3fa
xor ecx, ecx
test eax, eax
setge cl
mov eax, ecx
jmp 0x42ce21
xor eax, eax
pop ebx
leave
ret
Function at 0x42d455
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x508
cmp dword [ebp + 8], 0
push esi
je 0x42d55e
cmp dword [ebp + 0xc], 0x20
jb 0x42d55e
mov esi, 0x400
lea eax, [ebp - 0x508]
push esi
push 0
push eax
mov dword [ebp - 8], 1
mov dword [ebp - 4], esi
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x508]
push eax
lea eax, [ebp - 8]
push eax
push 0x441f40
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x42d55e
lea eax, [ebp - 0x508]
push eax
call sub.MSVCRT.dll_strlen
cmp eax, 0x40
pop ecx
jne 0x42d55e
push edi
lea eax, [ebp - 0x508]
push 0x20
push eax
mov edi, 0x80
lea eax, [ebp - 0x88]
push edi
push eax
call fcn.0042d563
lea eax, [ebp - 0x4e8]
push eax
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.0042c3fa
push esi
lea eax, [ebp - 0x508]
push 0
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x508]
push esi
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.0042d2bf
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x508]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
pop edi
jne 0x42d55e
lea eax, [ebp - 0x88]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042c3fa
neg eax
sbb eax, eax
inc eax
jmp 0x42d560
xor eax, eax
pop esi
leave
ret

Function at 0x42e2a0
Capabilities:
Hash data with md5

Disassembly:
push esi
xor eax, eax
lea esi, [ecx + 0x5c]
push 0x40
push eax
push esi
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 4], 0x67452301
mov dword [ecx + 8], 0xefcdab89
mov dword [ecx + 0xc], 0x98badcfe
mov dword [ecx + 0x10], 0x10325476
call fcn.0042ed47
mov byte [esi], 0x80
pop esi
ret
Function at 0x42fee0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
movzx eax, word [ecx + 0x14]
push edi
lea esi, [eax + ecx + 0x18]
cmp ebx, dword [esi + 0xc]
lea edx, [esi + 0xc]
jae 0x42ff01
mov eax, ebx
jmp 0x42ff40
movzx edi, word [ecx + 6]
xor eax, eax
test edi, edi
jbe 0x42ff3d
mov dword [ebp + 0xc], edx
lea edx, [eax + 1]
cmp edx, edi
mov dword [ebp - 4], edx
jne 0x42ff1d
mov edx, dword [ecx + 0x50]
jmp 0x42ff23
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x28]
mov dword [ebp + 0x10], edx
mov edx, dword [ebp + 0xc]
cmp ebx, dword [edx]
jb 0x42ff32
cmp ebx, dword [ebp + 0x10]
jb 0x42ff45
mov eax, dword [ebp - 4]
add dword [ebp + 0xc], 0x28
cmp eax, edi
jb 0x42ff0e
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
lea eax, [eax + eax*4]
lea ecx, [esi + eax*8]
mov eax, dword [esi + eax*8 + 0x14]
sub eax, dword [ecx + 0xc]
add eax, ebx
jmp 0x42ff40

Function at 0x430e24
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret