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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x40953c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const]
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x4095be
jg 0x409564
test esi, esi
je 0x4095be
test ecx, ecx
jl 0x4095b9
jg 0x40956e
test eax, eax
je 0x4095b9
cmp edi, ecx
jg 0x409582
jl 0x409578
cmp esi, eax
jae 0x409582
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
push eax
call fcn.0040ab00
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, ecx
sub esi, ecx
mov dword [esp + 0x10], eax
sbb edi, dword [esp + 0x14]
push ecx
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int_]
mov eax, dword [esp + 0x10]
jmp 0x4095c1
mov eax, dword [ebp + 8]
jmp 0x4095cb
mov eax, dword [ebp + 8]
test edi, edi
jl 0x4095e5
jg 0x4095cb
test esi, esi
je 0x4095e5
mov ecx, dword [ebx + 0x4c]
test ecx, ecx
je 0x4095e5
push ecx
push esi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x409600
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x44700c]
xor eax, esp
mov dword [esp + 8], eax
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x24]
push edi
mov edi, ecx
test esi, esi
jg 0x409643
jl 0x40962a
test ebp, ebp
jne 0x409643
pop edi
pop esi
pop ebp
xor eax, eax
xor edx, edx
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0043ba89
add esp, 0xc
ret 0xc
cmp dword [edi + 0x38], 0
je 0x409667
push esi
push ebp
push ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0043ba89
add esp, 0xc
ret 0xc
mov dword [esp + 0x10], ebp
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4096ae
lea edx, [esp + 0x14]
lea ecx, [esp + 0x10]
call fcn.00409740
mov ecx, edi
mov esi, dword [eax]
push esi
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const]
push eax
push ebx
call fcn.0040ab00
sub dword [esp + 0x1c], esi
add esp, 0xc
mov ecx, edi
add ebx, esi
push esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int_]
mov esi, dword [esp + 0x28]
cmp dword [edi + 0x4c], 0
je 0x409714
mov ecx, edi
call fcn.0040a330
mov ecx, dword [esp + 0x10]
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp ecx, 0xfff
jbe 0x4096fc
nop dword [eax]
push dword [edi + 0x4c]
push 0xfff
push 1
push ebx
call eax
mov ecx, dword [esp + 0x20]
add esp, 0x10
sub ecx, eax
add ebx, eax
mov dword [esp + 0x10], ecx
cmp eax, 0xfff
jne 0x409718
cmp ecx, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x4096d0
test ecx, ecx
je 0x409718
push dword [edi + 0x4c]
push ecx
push 1
push ebx
call eax
mov ecx, dword [esp + 0x20]
add esp, 0x10
sub ecx, eax
jmp 0x409718
mov ecx, dword [esp + 0x10]
sub ebp, ecx
mov ecx, dword [esp + 0x18]
pop edi
sbb esi, 0
mov eax, ebp
mov edx, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043ba89
add esp, 0xc
ret 0xc
Function at 0x409ae0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x44700c]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push edi
mov edi, ecx
call fcn.0040aaa0
mov ebx, eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ebx
push eax
call fcn.0040aad0
add esp, 8
test al, al
je 0x409b2f
lea ecx, [esp + 0x3c]
call fcn.0040aab0
pop edi
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0043ba89
add esp, 0x30
ret 4
push esi
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
test eax, eax
je 0x409b83
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const]
mov ecx, edi
mov esi, eax
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
cmp eax, esi
jae 0x409b83
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
mov esi, eax
lea eax, [esp + 0x40]
push eax
call fcn.00409c60
add esp, 4
mov byte [esi], al
mov eax, dword [esp + 0x40]
pop esi
pop edi
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0043ba89
add esp, 0x30
ret 4
cmp dword [edi + 0x4c], 0
je 0x409c42
mov ecx, edi
call fcn.0040a330
mov esi, dword [edi + 0x38]
lea eax, [esp + 0x40]
push eax
call fcn.00409c60
add esp, 4
test esi, esi
jne 0x409bbe
mov edx, dword [edi + 0x4c]
mov cl, al
call fcn.00403950
test al, al
cmovne ebx, dword [esp + 0x40]
jmp 0x409c42
mov byte [esp + 0x17], al
mov ecx, esi
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x2b]
push eax
lea eax, [edi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x409c10
sub eax, 1
je 0x409c10
sub eax, 2
jne 0x409c42
mov edx, dword [edi + 0x4c]
mov cl, byte [esp + 0x17]
call fcn.00403950
test al, al
cmovne ebx, dword [esp + 0x40]
jmp 0x409c42
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x18]
sub esi, eax
je 0x409c30
push dword [edi + 0x4c]
push esi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x409c42
lea eax, [esp + 0x17]
mov byte [edi + 0x3d], 1
cmp dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
jne 0x409c44
mov eax, ebx
mov ecx, dword [esp + 0x38]
pop esi
pop edi
pop ebx
xor ecx, esp
call fcn.0043ba89
add esp, 0x30
ret 4
Function at 0x40a3a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x44700c]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x40a489
cmp byte [ebx + 0x3d], 0
je 0x40a489
mov eax, dword [ebx]
push esi
push edi
mov esi, dword [eax + 0xc]
call fcn.0040aaa0
mov edi, eax
mov ecx, ebx
push edi
call esi
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x14], edi
push eax
call fcn.0040aad0
add esp, 8
test al, al
jne 0x40a475
mov ecx, dword [ebx + 0x38]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [ebx + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x40a438
sub eax, 1
je 0x40a43c
sub eax, 2
jne 0x40a475
pop edi
mov byte [ebx + 0x3d], al
mov al, 1
pop esi
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0043ba89
add esp, 0x30
ret
mov byte [ebx + 0x3d], 0
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x18]
sub esi, eax
je 0x40a45c
push dword [ebx + 0x4c]
push esi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x40a475
cmp byte [ebx + 0x3d], 0
pop edi
pop esi
sete al
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0043ba89
add esp, 0x30
ret
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0043ba89
add esp, 0x30
ret
mov ecx, dword [esp + 0x30]
mov al, 1
pop ebx
xor ecx, esp
call fcn.0043ba89
add esp, 0x30
ret

Function at 0x412010
Capabilities:
Create thread

Disassembly:
sub esp, 8
mov eax, dword [0x44700c]
xor eax, esp
mov dword [esp + 4], eax
push esi
push edi
push ecx
mov esi, ecx
lea ecx, [esp + 0xc]
call fcn.0040ab60
mov ecx, dword [esp + 0x14]
call fcn.00409e50
mov edx, eax
lea ecx, [esp + 8]
call fcn.00412290
lea edi, [esi + 4]
push edi
push 0
lea ecx, [esp + 0x10]
call fcn.00411d50
push eax
push 0x4122d0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x41208d
lea ecx, [esp + 8]
call fcn.00411750
lea ecx, [esp + 8]
call fcn.00412140
mov ecx, dword [esp + 0xc]
pop edi
pop esi
xor ecx, esp
call fcn.0043ba89
add esp, 8
ret 4
push 6
mov dword [edi], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x41a9b0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x41aa35
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp + 8]
call fcn.00409eb0
inc eax
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, eax
mov dword [esp + 4], edx
test edx, edx
je 0x41aa2f
lea ecx, [ebp + 8]
call fcn.00409eb0
inc eax
push eax
call fcn.00409ec0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esp + 4]
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x41aa2f
call dword [sym.imp.USER32.dll_CloseClipboard]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [ebp + 8]
call fcn.0040a040
mov esp, ebp
pop ebp
ret
Function at 0x41aa50
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
mov eax, dword [0x44700c]
xor eax, esp
mov dword [esp + 0x74], eax
push esi
push edi
push 0
mov esi, ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x41ac0b
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x41ac0b
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x41ac0b
push dword [0x4477e4]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov byte [esp + 0x10], 0
lea ecx, [esp + 0x20]
push dword [esp + 0x10]
mov byte [esp + 0x18], 0
push dword [esp + 0x18]
mov byte [esp + 0x20], 0
push dword [esp + 0x20]
call fcn.0041d040
mov ecx, eax
call fcn.004172f0
push eax
lea ecx, [esp + 0x50]
call fcn.0040a090
mov byte [esp + 0x18], 0
lea ecx, [esp + 0x20]
push dword [esp + 0x18]
mov byte [esp + 0x18], 0
push dword [esp + 0x18]
mov byte [esp + 0x18], 0
push dword [esp + 0x18]
call fcn.0041d080
mov ecx, eax
call fcn.004172f0
push eax
lea ecx, [esp + 0x38]
call fcn.0040a090
mov byte [esp + 0x18], 0
lea ecx, [esp + 0x20]
push dword [esp + 0x18]
mov byte [esp + 0x18], 0
push dword [esp + 0x18]
mov byte [esp + 0x18], 0
push dword [esp + 0x18]
call fcn.0041d0c0
mov ecx, eax
call fcn.004172f0
push eax
lea ecx, [esp + 0x38]
call fcn.00409ff0
mov byte [esp + 0x18], 0
lea ecx, [esp + 0x20]
push dword [esp + 0x18]
mov byte [esp + 0x18], 0
push dword [esp + 0x18]
mov byte [esp + 0x18], 0
push dword [esp + 0x18]
call fcn.0041d100
mov ecx, eax
call fcn.004172f0
lea edx, [esp + 0x34]
mov ecx, eax
call fcn.0040b210
test al, al
je 0x41abb7
mov byte [esp + 0x18], 0
lea ecx, [esp + 0x20]
push dword [esp + 0x18]
mov byte [esp + 0x18], 0
push dword [esp + 0x18]
mov byte [esp + 0x18], 0
push dword [esp + 0x18]
call fcn.0041d140
mov ecx, eax
call fcn.004172f0
push eax
lea ecx, [esp + 0x50]
call fcn.0040a000
lea ecx, [esp + 0x34]
call fcn.0040a040
lea ecx, [esp + 0x4c]
call fcn.0040a040
push dword [esp + 0x1c]
lea ecx, [esp + 0x68]
call fcn.0040a090
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea eax, [esp + 0x64]
mov ecx, esi
push eax
call fcn.0040a050
lea ecx, [esp + 0x64]
call fcn.0040a040
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0043ba89
mov esp, ebp
pop ebp
ret
push 0x43d4bd
mov ecx, esi
call fcn.0040a090
mov ecx, dword [esp + 0x7c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0043ba89
mov esp, ebp
pop ebp
ret
Function at 0x43c52e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43c56d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43c56d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43c56d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43c56d
cmp dword [ecx + 0x74], 0xe
jbe 0x43c56d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401ff0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408048
call sym._EnterCriticalSection_4
mov ebx, dword [0x408040]
sub esp, 4
test ebx, ebx
je 0x40203b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x402034
test esi, esi
je 0x402034
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402010
mov dword [esp], 0x408048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402220
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402270
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402348
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x4022ae
cmp eax, 4
jne 0x4022d0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x4022be
cmp edx, 4
je 0x4022be
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402220
Function at 0x403a74
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x390
mov eax, dword [0x44608c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, 0x101
push 0
push eax
mov ecx, esi
mov dword [ebp - 0x390], eax
call fcn.004046c1
cmp dword [esi + 0x14], 8
jb 0x403aaa
mov eax, dword [esi]
jmp 0x403aac
mov eax, esi
lea ecx, [ebp - 0x390]
push ecx
push eax
push 2
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x403adf
push 0
push dword [ebp - 0x390]
mov ecx, esi
call fcn.004046c1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004065bb
mov esp, ebp
pop ebp
ret 4
push 0x4243c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf
lea ecx, [ebp - 0x38c]
call fcn.004018f5
push 0x442bc0
lea eax, [ebp - 0x38c]
push eax
call fcn.004073d4
int3

Function at 0x401000
Capabilities:
Packed with generic packer

Disassembly:
jmp 0x401005
push ds
jmp 0x40100a
pushfd
jmp 0x40100f
jmp 0x401013
pushal
popal
popfd
pop ds
jmp fcn.004b932d
Function at 0x41b700
Capabilities:
Set registry value

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
xor esi, esi
xor bl, bl
mov eax, dword [ebp + 8]
push edi
mov edi, dword [esp + 0x20]
cmp eax, esi
mov dword [esp + 0x10], esi
jne 0x41b743
push str.sPath.empty__
push str.Error______s
push 0x92
push str.Y:_services_ucminstallationgluehpzgluehpzglue_registry.cpp
push esi
push 0x42f278
call fcn.004016d0
add esp, 0x18
jmp 0x41b846
mov eax, dword [esp + 0x1c]
cmp dword [eax + 8], esi
jne 0x41b75d
push str.sValueName.empty__
push str.Error______s
push 0x93
jmp 0x41b72b
cmp dword [edi + 8], esi
jne 0x41b773
push str.sValueData.empty__
push str.Error______s
push 0x94
jmp 0x41b72b
mov ecx, dword [esp + 0x28]
cmp ecx, esi
jne 0x41b78c
push str.hkRoot__0
push str.Error______s
push 0x95
jmp 0x41b72b
mov eax, dword [ebp + 4]
cmp eax, esi
jne 0x41b798
mov eax, 0x42a144
lea edx, [esp + 0x10]
push esi
push edx
push esi
push 0x20006
push esi
push esi
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
test esi, esi
je 0x41b7da
push str.lResult___ERROR_SUCCESS
push str.Error______s
push 0x98
push str.Y:_services_ucminstallationgluehpzgluehpzglue_registry.cpp
push 0
push 0x42f278
call fcn.004016d0
add esp, 0x18
jmp 0x41b846
mov eax, dword [edi + 4]
mov edx, dword [edi + 8]
test eax, eax
mov ecx, 0x42a144
je 0x41b7eb
mov ecx, eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
test eax, eax
jne 0x41b7fb
mov eax, 0x42a144
inc edx
push edx
push ecx
mov ecx, dword [esp + 0x18]
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test esi, esi
je 0x41b839
push str.lResult___ERROR_SUCCESS
push str.Error______s
push 0x9b
push str.Y:_services_ucminstallationgluehpzgluehpzglue_registry.cpp
push 0
push 0x42f278
call fcn.004016d0
add esp, 0x18
jmp 0x41b846
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov bl, 1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41b855
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x41b8a4
cmp byte [esp + 0x24], 1
jne 0x41b8a4
mov eax, dword [edi + 4]
mov edx, 0x42a144
test eax, eax
je 0x41b86e
mov edx, eax
mov eax, dword [esp + 0x1c]
mov ecx, 0x42a144
mov eax, dword [eax + 4]
test eax, eax
je 0x41b880
mov ecx, eax
mov eax, dword [ebp + 4]
test eax, eax
jne 0x41b88c
mov eax, 0x42a144
push esi
push edx
push ecx
push eax
push str.RegSetStringValue___s___s___s__Failed__lResult___d
push 0
push 0x42f278
call fcn.00401480
add esp, 0x1c
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
pop ecx
ret
Function at 0x41b8b0
Capabilities:
Set registry value

Disassembly:
push ecx
push ebx
push ebp
push esi
mov ebp, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x18]
xor esi, esi
xor bl, bl
mov eax, dword [edi + 8]
mov dword [esp + 0x10], esi
cmp eax, esi
jne 0x41b8f3
push str.sPath.empty__
push str.Error______s
push 0x168
push str.Y:_services_ucminstallationgluehpzgluehpzglue_registry.cpp
push esi
push 0x42f278
call fcn.004016d0
add esp, 0x18
jmp 0x41b9cb
cmp dword [ebp + 8], esi
jne 0x41b909
push str.sValueName.empty__
push str.Error______s
push 0x169
jmp 0x41b8db
mov ecx, dword [esp + 0x28]
cmp ecx, esi
jne 0x41b922
push str.hkRoot__0
push str.Error______s
push 0x16a
jmp 0x41b8db
mov eax, dword [edi + 4]
cmp eax, esi
jne 0x41b92e
mov eax, 0x42a144
lea edx, [esp + 0x10]
push esi
push edx
push esi
push 0x20006
push esi
push esi
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
test esi, esi
je 0x41b970
push str.lResult___ERROR_SUCCESS
push str.Error______s
push 0x16d
push str.Y:_services_ucminstallationgluehpzgluehpzglue_registry.cpp
push 0
push 0x42f278
call fcn.004016d0
add esp, 0x18
jmp 0x41b9cb
mov eax, dword [ebp + 4]
test eax, eax
jne 0x41b97c
mov eax, 0x42a144
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push 4
push ecx
push 4
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test esi, esi
je 0x41b9be
push str.lResult___ERROR_SUCCESS
push str.Error______s
push 0x170
push str.Y:_services_ucminstallationgluehpzgluehpzglue_registry.cpp
push 0
push 0x42f278
call fcn.004016d0
add esp, 0x18
jmp 0x41b9cb
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov bl, 1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41b9da
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x41ba1b
cmp byte [esp + 0x24], 1
jne 0x41ba1b
mov eax, dword [ebp + 4]
mov ecx, 0x42a144
test eax, eax
je 0x41b9f3
mov ecx, eax
mov eax, dword [edi + 4]
test eax, eax
jne 0x41b9ff
mov eax, 0x42a144
mov edx, dword [esp + 0x20]
push esi
push edx
push ecx
push eax
push str.RegSetDwordValue___s___s__0x_.8x__Failed__lResult___d
push 0
push 0x42f278
call fcn.00401480
add esp, 0x1c
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
pop ecx
ret
Function at 0x41c2a0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push ebx
xor ebx, ebx
mov ecx, dword [eax + 8]
mov byte [esp + 7], bl
cmp ecx, ebx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
jne 0x41c2e8
push str.sPath.empty__
push str.Error______s
push 0x2f3
push str.Y:_services_ucminstallationgluehpzgluehpzglue_registry.cpp
push ebx
push 0x42f278
call fcn.004016d0
add esp, 0x18
jmp 0x41c374
mov ecx, dword [esp + 0x20]
cmp ecx, ebx
jne 0x41c301
push str.hkRoot__0
push str.Error______s
push 0x2f4
jmp 0x41c2d0
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x41c30d
mov eax, 0x42a144
lea edx, [esp + 8]
push edx
push 0x20019
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41c374
push ebx
push ebx
mov edx, dword [esp + 0x10]
push ebx
lea eax, [esp + 0x1c]
push ebx
push eax
push ebx
lea ecx, [esp + 0x24]
push ebx
push ecx
push ebx
push ebx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x41c35a
push str._lResult__RegQueryInfoKey__hRegKey__0__0__0__nSubkeys__0__0__nValues__0__0__0__0______ERROR_SUCCESS
push str.Error______s
push 0x2f8
jmp 0x41c2d0
cmp dword [esp + 0xc], ebx
jne 0x41c374
mov cl, byte [esp + 0x1c]
mov al, 1
cmp cl, al
jne 0x41c370
cmp dword [esp + 0x10], ebx
jne 0x41c374
mov byte [esp + 7], al
mov eax, dword [esp + 8]
cmp eax, ebx
pop ebx
je 0x41c384
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 3]
add esp, 0x10
ret