joyce8/EMBER2024-capa huggingface dataset:
Function at 0x466be0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x484ed8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4b700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00403a70
mov ecx, eax
test ecx, ecx
je 0x466cf5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push str.SoftwareMicrosoftInternet_ExplorerTypedURLs
call fcn.00402f20
test al, al
jne 0x466c4a
push str.SoftwareMicrosoftInternet_ExplorerTypedURLs
lea ecx, [ebp - 0x28]
call fcn.0045d070
mov dword [ebp - 4], 1
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x28]
push eax
push esi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x24]
mov edi, 1
push edi
push str.url_d
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x466cb1
nop
inc edi
lea eax, [ebp - 0x24]
push edi
push str.url_d
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x466c90
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x466cd9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046dda6
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403850
int3

Function at 0x466e60
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 1
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov eax, dword [ebp - 4]
jne 0x466ed9
test eax, eax
je 0x466ed9
push 4
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push 4
push 0
push str.ProxyEnable
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push str.AutoConfigURL
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0
push str.AutoDetect
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x467350
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4850b0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4b700c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 0
push 0x4974ac
lea ecx, [ebp - 0x28]
call fcn.0045d100
mov byte [ebp - 4], 2
push 0x20019
push dword [ebp - 0x28]
push 0x80000002
lea ecx, [ebp - 0x20]
call fcn.0046dac0
test eax, eax
jne 0x46745b
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], 4
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push str.AllowManualLiveUpdate
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46745b
cmp dword [ebp - 0x30], 4
jne 0x46745b
cmp dword [ebp - 0x24], 1
jne 0x46745b
lea ecx, [ebp - 0x20]
call fcn.0045da30
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x467434
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x46744d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov al, 1
jmp 0x4674f4
lea ecx, [ebp - 0x20]
call fcn.0045da30
mov byte [ebp - 4], 4
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x467486
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x46749f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
xor al, al
jmp 0x4674f4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046dda6
mov esp, ebp
pop ebp
ret
Function at 0x467560
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x485148
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4b700c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 1
push str.SOFTWARESymantecSymantec_Endpoint_ProtectionLiveUpdate_
lea ecx, [ebp - 0x14]
call fcn.004026c0
mov byte [ebp - 4], 2
push 0xf003f
push dword [ebp - 0x14]
push 0x80000002
lea ecx, [ebp - 0x2c]
call fcn.0046dac0
mov esi, eax
test esi, esi
jne 0x467735
mov dword [ebp - 0x18], edi
push 4
lea eax, [ebp - 0x18]
push eax
push 4
push esi
push str.AllowManualLiveUpdate
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x46769f
lea ecx, [ebp - 0x2c]
call fcn.0045da30
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x488924
call fcn.0045d100
mov byte [ebp - 4], 3
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.Symantec_LiveUpdate_Registry_value_change_error
call fcn.0045d100
mov byte [ebp - 4], 4
mov byte [ebp - 4], 2
or ecx, 0xffffffff
call fcn.0045f800
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.0045da30
mov byte [ebp - 4], 5
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46766b
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x467684
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x488924
call fcn.0045d100
mov byte [ebp - 4], 6
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.Symantec_LiveUpdate_Registry_value_changed_success
call fcn.0045d100
mov byte [ebp - 4], 7
mov byte [ebp - 4], 2
or ecx, 0xffffffff
call fcn.0045f800
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.0045da30
mov byte [ebp - 4], 8
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x467701
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x46771a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], 9
jmp 0x46764c
Function at 0x4677e0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4851bb
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x4b700c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0x488924
call fcn.0045d100
mov byte [ebp - 4], 1
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.AutoReboot_restartSystem
call fcn.0045d100
mov byte [ebp - 4], 2
mov byte [ebp - 4], 0
or ecx, 0xffffffff
call fcn.0045f800
add esp, 8
lea eax, [ebp - 0x34]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x3c]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x467951
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 2
push 0
push 0
push 0x10
lea eax, [ebp - 0x24]
push eax
push 0
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x467951
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 8
lea ecx, [ebp - 0xf0]
call fcn.0046bd10
mov byte [ebp - 4], 3
push 0x1c20
lea ecx, [ebp - 0xe0]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push 0x48780e
lea ecx, [ebp - 0x28]
call fcn.0045d100
mov byte [ebp - 4], 4
push 0x78
push str.Your_system_will_restart_in__d_minutes._SEP_Repair_process_will_automatically_resume_after_restart_to_make_the_system_compliant.
lea eax, [ebp - 0x28]
push eax
call fcn.0045d3c0
add esp, 0xc
push 0x80000000
push 1
push 1
push 0x1c20
push dword [ebp - 0x28]
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
mov byte [ebp - 4], 5
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46793b
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xf0]
call fcn.00466b40
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046dda6
mov esp, ebp
pop ebp
ret
Function at 0x46a730
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x485b10
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4b700c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x48]
push eax
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x14], xmm0
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x44], 0x40
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], str.runas
mov dword [ebp - 0x34], 0x494894
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 0x1d4c0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46a7e6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x46baf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4b700c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, 0xffff
mov esi, ecx
cmp ax, di
jne 0x46bb25
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046dda6
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x46bb5a
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x46bb5a
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_protected:_wchar_t____thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::_Pninc_void_]
mov word [eax], di
mov ax, di
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046dda6
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push ebx
je 0x46bc66
mov ebx, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [ebx], eax
jne 0x46bb85
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [ebx], ecx
mov eax, dword [esi + 0x1c]
sar edx, 1
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46bbbf
push dword [esi + 0x4c]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
mov ecx, 0xffff
add esp, 8
cmp ax, cx
movzx eax, di
jne 0x46bc6b
pop ebx
pop edi
mov eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046dda6
mov esp, ebp
pop ebp
ret 4
movzx eax, di
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_wchar_t__char__struct__Mbstatet_::out_struct__Mbstatet___wchar_t_const___wchar_t_const___wchar_t_const____char___char___char___const]
test eax, eax
js 0x46bc66
cmp eax, 1
jle 0x46bc26
cmp eax, 3
jne 0x46bc66
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
mov ecx, 0xffff
add esp, 8
cmp ax, cx
movzx eax, di
jne 0x46bc6b
pop ebx
pop edi
mov eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046dda6
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub ebx, eax
je 0x46bc44
push dword [esi + 0x4c]
push ebx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp ebx, eax
jne 0x46bc66
lea eax, [ebp - 0x28]
mov byte [esi + 0x3e], 1
cmp dword [ebp - 0x30], eax
je 0x46bc66
pop ebx
mov ax, di
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046dda6
mov esp, ebp
pop ebp
ret 4
mov eax, 0xffff
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0046dda6
mov esp, ebp
pop ebp
ret 4
Function at 0x46cce0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4b700c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x46cd8f
cmp byte [esi + 0x3e], 0
je 0x46cd8f
mov eax, dword [esi]
push 0xffff
call dword [eax + 0xc]
mov ecx, 0xffff
cmp cx, ax
je 0x46cd44
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x46cd56
sub eax, 1
je 0x46cd5a
sub eax, 2
je 0x46cd8f
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046dda6
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3e], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x46cd78
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x46cd44
cmp byte [esi + 0x3e], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046dda6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0046dda6
mov esp, ebp
pop ebp
ret

Function at 0x46da40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46dab1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x46da7f
cmp eax, 2
jne 0x46da9b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x46daab
test ecx, ecx
je 0x46daa6
test cl, 1
jne 0x46da9b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x46daab
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x408225
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ecx, dword [ebp + 0xc]
and eax, 3
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
sub ecx, eax
je 0x40826f
rol edx, 5
xor edx, dword [esi + ebx]
add esi, 4
imul eax, edx, 0x9e3779b9
rol eax, 5
xor eax, 4
imul edx, eax, 0x9e3779b9
cmp esi, ecx
jb 0x40823e
jmp 0x40826f
movsx ecx, byte [esi + ebx]
rol edx, 5
xor edx, ecx
imul edx, edx, 0x9e3779b9
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x40825f
pop esi
mov eax, edx
pop ebx
pop ebp
ret

Function at 0x408e01
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
lea esi, [ebx - 1]
push 0x2000
not esi
push ebx
and esi, 0xf0deafff
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x408e36
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x18]
jb 0x408e60
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x408e60
test edi, edi
je 0x408e2d
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x408e2d
test edi, edi
je 0x408e68
mov eax, edi
jmp 0x408e2f
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x408e2f
int3
Function at 0x40bf0b
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestBinarySearch.exe_gMozillaPoisonSize], eax
call fcn.00408e01
pop ecx
mov ecx, dword [sym.TestBinarySearch.exe_gMozillaPoisonSize]
mov dword [sym.TestBinarySearch.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x40bf43
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestBinarySearch.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret
Function at 0x403c60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x408460]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x144]
push eax
push ecx
push 0
mov byte [ebp - 0x13d], 0
mov dword [ebp - 0x144], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x403d00
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x13c]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x403cc7
push ebx
lea ecx, [ebp - 0x13c]
push ecx
push 1
push esi
call edi
add esp, 0x10
mov byte [ebp - 0x13d], 1
lea edx, [ebp - 0x148]
push edx
mov dword [ebp - 0x148], 0
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x403cf7
mov eax, dword [ebp - 0x148]
mov edx, dword [ebp - 0x144]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
cmp byte [ebp - 0x13d], 0
jne 0x403d0b
push ebx
push 0
push 1
push esi
call edi
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040423b
mov esp, ebp
pop ebp
ret

Function at 0x403ee0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x408460]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x144]
push ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x403f6e
mov ecx, dword [ebp - 0x144]
lea edx, [ebp - 0x148]
push edx
lea eax, [ebp - 0x13c]
push eax
push 0
push ecx
mov dword [ebp - 0x148], 0x136
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x403f41
mov byte [ebp - 0x13d], 0
jmp 0x403f58
push ebx
lea edx, [ebp - 0x13c]
push edx
push 0
push esi
mov byte [ebp - 0x13d], 1
call edi
add esp, 0x10
mov eax, dword [ebp - 0x144]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x13d], 0
jne 0x403f79
push ebx
push 0
push 0
push esi
call edi
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040423b
mov esp, ebp
pop ebp
ret

Function at 0x40423b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x408460]
jne 0x404245
repz ret
jmp fcn.004046da

Function at 0x401a22
Capabilities:
Hide graphical window

Disassembly:
mov ecx, 0xfffffffe
jmp fcn.0040161c
Function at 0x44181d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x44184b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x441869
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00441787
jmp 0x441869
mov eax, dword [esi + 0x14]
test eax, eax
je 0x441869
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00441787
test edi, edi
mov eax, edi
jne 0x441853
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x56b49c]
test ecx, ecx
je 0x44191c
jmp 0x44181c
ret 8

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0xa0d0ae2
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x14214338
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
jmp 0x401219

Function at 0x406840
Capabilities:
Connect socket

Disassembly:
lodsd eax, dword [esi]
add al, 0x5e
pop ebp
ret 0x52
push ebp
mov ebp, esp
sub esp, 0x3e10
push ebx
mov esi, dword [eax + 8]
push esi
push edi
jno 0x406894
add al, 0x83
clc
dec dword [edi]
test byte [ecx + eax + 0x4b8b5500], dl
adc byte [ebp - 0x76d4f016], al
add dword [eax], eax
test dword [ebx + 0x4eea6575], ecx
pop eax
lea edx, [esi + 0x28]
push edx
push eax
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
in al, dx
test dword [edi], esi
add dword [eax], eax
in eax, dx
mov esi, dword [sym.imp.WSOCK32.dll_WSAGetLastError]
call esi
jne fcn.004068d0
add cl, al
stc
add byte [eax], al
add byte [ebx], cl
salc
add eax, 0x980a1d1a
jg 0x40684d
sbb bl, byte [0xb37f980a]
xchg edx, eax
pop ebx
add byte [edi], cl
test dword [ecx + 1], edx
add byte [eax], al
mov eax, dword [ecx]
and ch, dh
jae 0x40682c
mov eax, edi
or eax, esi
jne 0x4068bd
pop edi
pop esi
mov cl, 0xb4
and ecx, dword [ebx]
add byte [ebp + 0x45], ch

Function at 0x4075b6
Capabilities:
Encode data using xor

Disassembly:
inc ecx
pop esi
xor byte [esi + ecx + 7], cl
loop 0x4075b9
mov eax, 0x50402ea
out dx, al
clc
div esi
cmc
retf 0x3d52

Function at 0x40a3a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov al, byte [0x40a280]
push eax
mov eax, dword [eax]
xor eax, 0xff300ce8
call [ebp - 0x3e]
add al, 0
nop
nop
nop
nop
nop
sub al, 0x90
insd dword es:[edi], dx
xor eax, eax
pushfd
add al, 0
nop
nop
nop
in al, 0x90
nop
nop
nop