joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4165e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x274
push ebx
push ebp
push esi
mov esi, dword [esp + 0x288]
push edi
mov edi, dword [esp + 0x290]
push edi
push esi
call fcn.00416760
mov ebx, eax
add esp, 8
cmp ebx, edi
mov dword [esp + 0x10], ebx
ja 0x416744
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, 0x18
mov esi, str._html__r_n_script_language_Javascript___r_n_____r_ndocument.location__s___r_n______r_n__script__r_n__html_
lea edi, [esp + 0x18]
mov ebp, eax
rep movsd dword es:[edi], dword [esi]
cmp ebp, 0xffffffff
movsb byte es:[edi], byte [esi]
je 0x416744
mov ebx, dword [esp + 0x288]
push 0x432830
push ebx
call dword [sym.imp.MSVCRT.dll__mbsstr]
add esp, 8
test eax, eax
jne 0x4166d5
mov esi, dword [sym.imp.MSVCRT.dll__mbschr]
push 0x5c
push ebx
call esi
add esp, 8
test eax, eax
je 0x416680
push 0x5c
push eax
mov byte [eax], 0x2f
call esi
add esp, 8
test eax, eax
jne 0x416671
mov edi, str.file:__
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x7c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x7c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea ebx, [esp + 0x7c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x14], eax
lea edi, [edx + ecx - 2]
lea eax, [edi + 1]
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
lea ecx, [esp + 0x18]
mov esi, eax
push ebx
push ecx
push esi
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 0x14]
push 0
push edx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x274
ret
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x274
ret
Function at 0x416760
Capabilities:
Get common file path

Disassembly:
sub esp, 0x11c
mov edx, dword [0x4328a0]
mov eax, dword [str.robohelp_csh.htm]
mov ecx, dword [0x43289c]
mov dword [esp + 8], edx
push esi
lea edx, [esp + 0x18]
push edi
mov dword [esp + 8], eax
mov eax, dword [0x4328a4]
mov dword [esp + 0xc], ecx
mov cl, byte [0x4328a8]
push edx
push 0x104
mov dword [esp + 0x1c], eax
mov byte [esp + 0x20], cl
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edx, dword [esp + 0x128]
test edx, edx
je 0x41682b
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 8]
mov esi, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esi + ecx + 1]
mov ecx, dword [esp + 0x12c]
cmp eax, ecx
jae 0x41682b
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.robohelp_csh.htm
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 8]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
pop esi
lea eax, [edx + ecx + 1]
add esp, 0x11c
ret

Function at 0x416860
Capabilities:
Create process on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x108
lea eax, [esp]
push 0x104
push eax
push ecx
call fcn.004165e0
add esp, 0xc
cmp eax, 0x104
ja 0x41689c
push 1
push 0
lea edx, [esp + 8]
push 0
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor eax, eax
add esp, 0x108
ret
Function at 0x419650
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4279b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
push 0x93
mov dword [esp + 0x18], esi
call fcn.0041fb40
lea edi, [esi + 0x200]
mov dword [esp + 0x1c], 0
mov ecx, edi
call sub.MFC42.DLL_CWnd::CWnd
mov dword [edi], 0x42a168
lea ecx, [esi + 0x240]
mov byte [esp + 0x1c], 1
call fcn.0041f7d0
lea ecx, [esi + 0x28c]
mov byte [esp + 0x1c], 2
call fcn.00405b80
lea ecx, [esi + 0x310]
mov byte [esp + 0x1c], 3
call fcn.00405b80
lea ecx, [esi + 0x394]
mov byte [esp + 0x1c], 4
call fcn.00405b80
lea ecx, [esi + 0x418]
mov byte [esp + 0x1c], 5
call fcn.00405b80
lea ecx, [esi + 0x49c]
mov byte [esp + 0x1c], 6
call fcn.0041c980
lea edi, [esi + 0x92c]
mov byte [esp + 0x1c], 7
mov ecx, edi
call fcn.004249b8
push sub.MFC42.DLL_CString::CString
push fcn.004249b8
lea ebp, [esi + 0xac4]
push 0xc8
push 4
push ebp
mov byte [esp + 0x30], 8
call fcn.00424fa3
mov ecx, dword [esp + 0x28]
mov byte [esp + 0x1c], 9
push ecx
mov ecx, edi
mov dword [esi], 0x42b890
call fcn.00424aa8
mov ax, word [esp + 0x38]
mov dx, word [esp + 0x34]
lea ebx, [esi + 0x934]
mov word [esi + 0x932], ax
mov ecx, 0x64
xor eax, eax
mov edi, ebx
mov word [esi + 0x930], dx
mov edx, dword [esp + 0x30]
rep stosd dword es:[edi], eax
mov cl, byte [esp + 0x3c]
xor edi, edi
mov byte [esi + 0xde4], cl
push edx
mov ecx, ebp
mov word [esi + 0xde6], di
call fcn.00424aa8
mov eax, dword [ebp]
cmp dword [eax - 8], edi
je 0x4197a9
mov cx, word [esp + 0x2c]
mov dword [esi + 0xdf0], 1
mov word [ebx], cx
jmp 0x4197af
mov dword [esi + 0xdf0], edi
call sub.MFC42.DLL_AfxGetModuleState
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0xde8], edx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x1c
Function at 0x41bd10
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x427db7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [esp + 0x28]
push esi
mov esi, ecx
push eax
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esi + 0x104]
push 0
push eax
mov ecx, esi
mov dword [esp + 0x24], 1
call fcn.0041bf60
mov esi, eax
test esi, esi
je 0x41bde8
push ebp
push edi
lea ecx, [esp + 0x34]
call fcn.004249b8
mov edi, dword [esp + 0x30]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push 0
push edx
push 0
push edi
push esi
mov byte [esp + 0x3c], 2
call ebp
test eax, eax
jne 0x41bdd8
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::GetBuffer
lea edx, [esp + 0x18]
push eax
push edx
push 0
push edi
push esi
call ebp
push 0xffffffffffffffff
lea ecx, [esp + 0x38]
mov edi, eax
call sub.MFC42.DLL_CString::ReleaseBuffer
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x41bdd8
lea eax, [esp + 0x34]
lea ecx, [esp + 0xc]
push eax
call fcn.00424a18
lea ecx, [esp + 0x34]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString
pop edi
pop ebp
mov esi, dword [esp + 0x24]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x10], 1
lea ecx, [esp + 4]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
Function at 0x41be30
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x427df7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [esp + 0x2c]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 4]
mov dword [esp + 0x20], 1
push ecx
push 0x20019
push 0
push str.SoftwareActivantEnterprise
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41bf1a
push edi
lea ecx, [esp + 0x34]
call fcn.004249b8
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push 0
push eax
push 0
push esi
push ecx
mov byte [esp + 0x3c], 2
call edi
test eax, eax
jne 0x41bf0b
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push esi
push edx
call edi
push 0xffffffffffffffff
lea ecx, [esp + 0x38]
mov esi, eax
call sub.MFC42.DLL_CString::ReleaseBuffer
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x41bf0b
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x10]
call fcn.00424a18
lea ecx, [esp + 0x34]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString
pop edi
mov esi, dword [esp + 0x28]
lea edx, [esp + 8]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x14], 1
lea ecx, [esp + 8]
mov byte [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
Function at 0x10003290
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
mov esi, eax
lea eax, [esp + 0x10]
lea edi, [ebp + ebp]
push eax
push 0x40
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x100032ef
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
push ecx
push ebp
push edx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x100032dc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
push ecx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 0x10
Function at 0x100034b0
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100048f9
push eax
mov eax, dword [0x10005634]
mov dword fs:[0], esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
jne 0x100034da
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
push 0x10006938
push 0x10001654
push 0x10006da0
call dword [sym.imp.USER32.dll_wsprintfA]
push ebx
push 0x10001650
lea eax, [esp + 0x20]
push 0x10006da0
push eax
call fcn.100018f0
add esp, 0x20
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov dword [esp + 0x20], ebx
mov edx, dword [ecx]
mov ecx, 0x100056a0
push edx
push ebx
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
cmp eax, ebx
je 0x1000354f
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x10003546
cmp al, 0xff
je 0x10003546
dec al
mov byte [ecx], al
jmp 0x1000354f
push ecx
call fcn.100046c6
add esp, 4
mov esi, dword [sym.imp.MSVCP60.dll_bool___cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
push 0x1000164c
push 0x100056a0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call esi
add esp, 8
test al, al
je 0x1000357b
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x10001648
push 0x100056a0
call esi
add esp, 8
test al, al
je 0x100035a9
pop esi
mov dword [0x100055d4], 1
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov eax, dword [0x100056a8]
cmp eax, 6
jbe 0x100035d3
cmp eax, 0xc
jae 0x100035d3
pop esi
mov dword [0x100055a4], 1
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
push 0x10001644
push 0x100056a0
call esi
add esp, 8
test al, al
je 0x10003601
pop esi
mov dword [0x100055a4], 2
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
push 0x10001640
push 0x100056a0
call esi
add esp, 8
test al, al
je 0x1000361e
mov dword [0x100055a4], 3
mov ecx, dword [esp + 0x18]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x1798058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x17981a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x179807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x179806a
add dl, dl
jne 0x1798089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x17980dc
xor eax, eax
add dl, dl
jne 0x1798096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x179817d
add dl, dl
jne 0x17980a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17980b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17980bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17980c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x17980d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1798075
mov eax, 1
add dl, dl
jne 0x17980ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17980f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x17980e1
sub eax, ebx
mov ebx, 1
jne 0x1798128
mov ecx, 1
add dl, dl
jne 0x179810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1798119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1798105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1798075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x179813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x179814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1798136
cmp eax, 0x7d00
jae 0x179816d
cmp eax, 0x500
jb 0x1798168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1798075
cmp eax, 0x7f
ja 0x1798170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1798075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x179819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1798075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4014db
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.0045d4a7
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.0045d4a7
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
push 0x10
call fcn.0045d4a7
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
push 0
mov ebx, 0x462970
call fcn.0045d4bf
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 3
je 0x401594
mov eax, 0
jmp 0x4016d8
cmp dword [ebp + 0xc], 0
jne 0x4015c0
mov dword [ebp - 0x18], esp
mov eax, 2
call fcn.0045d4b9
cmp dword [ebp - 0x18], esp
je 0x4015bd
push 6
call fcn.0045d4b3
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 0
jne 0x4015e8
mov eax, str.SeDebugPrivilege
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4015e2
push ebx
call fcn.0045d4ad
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
mov dword [ebp - 0x18], esp
lea eax, [ebp - 8]
push eax
push 0x28
push dword [ebp - 4]
mov eax, 3
call fcn.0045d4b9
cmp dword [ebp - 0x18], esp
je 0x401613
push 6
call fcn.0045d4b3
add esp, 4
mov dword [ebp - 0x18], esp
push dword [ebp - 0xc]
mov ebx, dword [ebp + 0x10]
push dword [ebx]
push 0x57e649
mov eax, 4
call fcn.0045d4b9
cmp dword [ebp - 0x18], esp
je 0x40163f
push 6
call fcn.0045d4b3
add esp, 4
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 8
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 0xc
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 2
mov dword [ebp - 0x18], esp
mov eax, 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
push 0x1c
push dword [ebp - 0x10]
push 0
push dword [ebp - 8]
mov eax, 5
call fcn.0045d4b9
cmp dword [ebp - 0x18], esp
je 0x4016d3
push 6
call fcn.0045d4b3
add esp, 4
jmp 0x4016d8
push eax
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.0045d4ad
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.0045d4ad
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.0045d4ad
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x402d44
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.0045d4a7
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.0045d4a7
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 8], 0
jne 0x402dc0
mov eax, dword [0x74477c]
mov dword [ebp + 8], eax
mov dword [ebp - 0x18], esp
push dword [ebp + 8]
push 0
push 0x1f0fff
mov eax, 9
call fcn.0045d4b9
cmp dword [ebp - 0x18], esp
je 0x402dec
push 6
call fcn.0045d4b3
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], esp
lea eax, [ebp - 8]
push eax
push 0xf01ff
push dword [ebp - 4]
mov eax, 0xe
call fcn.0045d4b9
cmp dword [ebp - 0x18], esp
je 0x402e1a
push 6
call fcn.0045d4b3
add esp, 4
mov dword [ebp - 0x18], esp
push dword [ebp - 0xc]
push str.SeDebugPrivilege
push 0
mov eax, 0xf
call fcn.0045d4b9
cmp dword [ebp - 0x18], esp
je 0x402e46
push 6
call fcn.0045d4b3
add esp, 4
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x10]
add ebx, 0xc
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 2
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 8
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov dword [ebp - 0x18], esp
push 0
push 0
push 0
push dword [ebp - 0x10]
push 0
push dword [ebp - 8]
mov eax, 0x10
call fcn.0045d4b9
cmp dword [ebp - 0x18], esp
je 0x402ed5
push 6
call fcn.0045d4b3
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
push dword [ebp - 4]
mov eax, 0x11
call fcn.0045d4b9
cmp dword [ebp - 0x18], esp
je 0x402efa
push 6
call fcn.0045d4b3
add esp, 4
mov eax, dword [ebp - 0x14]
jmp 0x402f02
push eax
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.0045d4ad
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.0045d4ad
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8
Function at 0x46d8a0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x56cceb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0055ea26
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x46d922
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0055bc9a
mov eax, dword [eax]
push 0x7262b0
push eax
call fcn.0053ab94
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0055ecb1
test bl, bl
je 0x46d922
push 0x7262b0
lea ecx, [esp + 0xc]
call fcn.0055f08d
push 0x729e58
lea ecx, [esp + 0xc]
call fcn.0055f08d
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x46d95e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0055ecb1
jmp 0x46da29
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x46d9e2
lea edx, [esp + 0x7c]
push 0x729e54
push edx
call fcn.0053ab94
add esp, 8
test eax, eax
je 0x46d9e2
lea eax, [esp + 0x7c]
push 0x729e50
push eax
call fcn.0053ab94
add esp, 8
test eax, eax
je 0x46d9e2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x46d972
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0055ecb1
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x46e220
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x46e282
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc