joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001cd10
Capabilities:
Create thread
Print debug messages

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0xffffffff
jne 0x1001cdd2
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x58], 0
je 0x1001cdd1
cmp dword [edi + 0x5c], 3
jne 0x1001cdd1
cmp dword [edi + 0x4c], 0
je 0x1001cdd6
push esi
push str.notify_tab_changed_from_OnCommandStateChange
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x508
call fcn.1004eca6
mov esi, eax
add esp, 4
test esi, esi
je 0x1001cdd0
push 0x508
push 0
push esi
call fcn.100643b0
add esp, 0xc
mov dword [esi], 1
push dword [edi + 0x4c]
call fcn.1004e820
mov edi, eax
test edi, edi
je 0x1001cd94
push edi
lea ecx, [esi + 4]
push 0x400
push ecx
call fcn.1004c110
add esp, 0xc
push 0
push 0
push esi
push 0x1001d510
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1001cdb5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001cdc3
push 0x508
push esi
call fcn.1004f321
add esp, 8
test edi, edi
je 0x1001cdd0
push edi
call fcn.1004f017
add esp, 4
pop esi
pop edi
pop ebp
ret 0xc
push str.OnCommandStateChange:_m_curUrl_is_NULL
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
pop ebp
ret 0xc
Function at 0x1001d340
Capabilities:
Create thread
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008e9ae
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100bb0a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x14]
xorps xmm0, xmm0
movq qword [ebp - 0x14], xmm0
mov byte [ebp - 0x10], 0
lea eax, [esi + 0x50]
mov dword [ebp - 0x14], eax
call fcn.10026090
mov eax, dword [ebp + 0x10]
and eax, 3
mov dword [ebp - 4], 0
cmp al, 3
jne 0x1001d4c1
mov ecx, dword [esi + 0x4c]
test ecx, ecx
jne 0x1001d3b1
push str.OnWindowStateChanged:_m_curUrl_is_NULL
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1001d4b5
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x1001d4b5
cmp dword [esi + 0x60], 0
je 0x1001d4b5
mov edx, dword [ebp + 0xc]
cmp eax, 2
jne 0x1001d490
cmp edx, 3
jne 0x1001d490
push 6
push str.about:
push ecx
call fcn.1007048a
add esp, 0xc
test eax, eax
je 0x1001d4b5
push str.notify_tab_changed_from_OnWindowStateChanged
mov dword [esi + 0x58], 1
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x508
call fcn.1004eca6
mov edi, eax
add esp, 4
test edi, edi
je 0x1001d4b5
push 0x508
push 0
push edi
call fcn.100643b0
add esp, 0xc
mov dword [edi], 1
push dword [esi + 0x4c]
call fcn.1004e820
mov ebx, eax
test ebx, ebx
je 0x1001d452
push ebx
lea ecx, [edi + 4]
push 0x400
push ecx
call fcn.1004c110
add esp, 0xc
push 0
push 0
push edi
push 0x1001d510
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1001d473
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001d481
push 0x508
push edi
call fcn.1004f321
add esp, 8
test ebx, ebx
je 0x1001d4b5
push ebx
call fcn.1004f017
add esp, 4
jmp 0x1001d4b5
cmp eax, 3
jne 0x1001d4b5
cmp edx, 2
jne 0x1001d4b5
push 6
push str.about:
push ecx
call fcn.1007048a
add esp, 0xc
test eax, eax
je 0x1001d4b5
mov dword [esi + 0x58], 0
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x5c], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x60], eax
cmp byte [ebp - 0x10], 0
mov dword [ebp - 4], 1
je 0x1001d4fb
mov ecx, dword [ebp - 0x14]
mov eax, SysReAllocStringLen
lock xadd dword [ecx], eax
test eax, 0x40000000
jne 0x1001d4fb
cmp eax, 0x80000000
jle 0x1001d4fb
lock bts dword [ecx], 0x1e
jb 0x1001d4fb
call fcn.100254b0
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100362f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10090873
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100bb0a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
call fcn.10012050
mov eax, dword [ebp + 8]
mov dword [ebx], vtable.boost::asio::basic_streambuf_class_std::allocator_char__.0
mov dword [ebx + 0x38], eax
mov dword [ebp - 4], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov esi, eax
mov byte [ebp - 4], 1
mov eax, 0x80
mov ecx, 1
cmp esi, eax
cmova esi, eax
cmp esi, ecx
mov eax, esi
cmovb eax, ecx
lea ecx, [ebx + 0x3c]
push eax
call fcn.1004b8c0
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x3c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
sub ecx, ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], ecx
mov eax, ebx
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x3c]
add esi, edx
sub esi, edx
mov dword [ecx], edx
mov ecx, dword [ebx + 0x20]
mov dword [ecx], edx
mov ecx, dword [ebx + 0x30]
mov dword [ecx], 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 8

Function at 0x10037180
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
xor edx, edx
mov dword [ebp - 4], edi
lea ecx, [edi + 0xc]
mov dword [edi], 0
lea eax, [edi + 0x1c]
mov dword [edi + 8], 0
cmp eax, ecx
mov dword [edi + 4], 0
sbb esi, esi
and esi, 0xfffffffc
add esi, 4
cmp ecx, eax
ja 0x100371c3
inc edx
mov dword [ecx], 0
lea ecx, [ecx + 4]
cmp edx, esi
jne 0x100371b5
push 0x20
push 0x10099b08
push eax
call fcn.10065250
add esp, 0xc
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100371e0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10090b6d
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x100bb0a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1a4], esi
push 0x100c6e44
mov dword [ebp - 0x1ac], esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x10037246
lea eax, [ebp - 0x1a0]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
push 0x100c6e48
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
push 0x100c6e48
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov edi, eax
test edi, edi
je 0x1003728f
xorps xmm0, xmm0
movq qword [ebp - 0x1a8], xmm0
call fcn.10063b70
mov dword [ebp - 0x1a4], eax
mov eax, fcn.10020d00
mov dword [ebp - 0x1a8], edi
test eax, eax
je 0x1003728f
push str.winsock
lea eax, [ebp - 0x1a8]
push eax
call fcn.10045560
push 0x20
mov dword [ebp - 4], 0
call fcn.1004eca6
add esp, 4
mov dword [ebp - 0x1a4], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x100372c6
push 0xffffffffffffffff
xorps xmm0, xmm0
mov ecx, eax
push 0
movups xmmword [eax], xmm0
push esi
movups xmmword [eax + 0x10], xmm0
call fcn.1002bd40
jmp 0x100372c8
xor eax, eax
mov dword [esi + 4], eax
mov ecx, dword [eax + 0x1c]
mov eax, esi
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004eb8b
mov esp, ebp
pop ebp
ret
Function at 0x100374c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10090c31
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x100bb0a0]
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
mov edi, ecx
mov dword [ebp - 0x130], edi
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 0x138], edi
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov dword [edi], vtable.boost::asio::detail::win_iocp_io_service.0
mov dword [ebp - 4], 0
mov dword [edi + 0x14], 0
push 0x11c
lea eax, [ebp - 0x12c]
mov dword [edi + 0x18], 0
push 0
push eax
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
call fcn.100643b0
add esp, 0xc
mov dword [ebp - 0x12c], 0x11c
mov dword [ebp - 0x128], 6
push 3
push 2
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push 2
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
neg eax
sbb eax, eax
and eax, 0xfffffe0b
add eax, 0x1f4
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
lea ecx, [edi + 0x38]
mov byte [ebp - 4], 3
mov dword [edi + 0x34], 0
call fcn.10044de0
xorps xmm0, xmm0
mov esi, eax
movq qword [ebp - 0x134], xmm0
call fcn.10063b70
mov dword [ebp - 0x130], eax
mov ecx, fcn.10020d00
xor eax, eax
mov dword [ebp - 0x134], esi
test esi, esi
cmove ecx, eax
test ecx, ecx
je 0x10037604
push str.mutex
lea eax, [ebp - 0x134]
push eax
call fcn.10045560
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
or eax, 0xffffffff
mov byte [ebp - 4], 5
cmp ebx, 0xffffffff
cmovb eax, ebx
push eax
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [edi + 0x14], eax
test eax, eax
jne 0x10037673
xorps xmm0, xmm0
movq qword [ebp - 0x134], xmm0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x134], esi
call fcn.10063b70
mov dword [ebp - 0x130], eax
test esi, esi
je 0x10037673
push str.iocp
lea eax, [ebp - 0x134]
push eax
call fcn.10045560
mov eax, edi
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.1004eb8b
mov esp, ebp
pop ebp
ret 8
Function at 0x1003af60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008f798
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100bb0a0]
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
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x1003b0a4
cmp byte [ebx + 0x3e], 0
je 0x1003b0a4
mov eax, dword [ebx]
push 0xffff
call dword [eax + 0xc]
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
sete al
test al, al
je 0x1003afc4
xor al, al
jmp 0x1003b0a6
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], ecx
cmp ecx, 0x10
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x28]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x1003b035
sub eax, 1
je 0x1003b039
mov ecx, dword [ebp - 0x14]
sub eax, 2
je 0x1003b08c
xor bl, bl
jmp 0x1003b08e
mov byte [ebx + 0x3e], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x1003b06e
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.10076358
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x1003b031
cmp byte [ebx + 0x3e], 0
je 0x1003b08c
test esi, esi
jne 0x1003aff7
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.100030a0
jmp 0x1003aff4
mov bl, 1
cmp ecx, 0x10
jb 0x1003b0a0
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.100024a0
mov al, bl
jmp 0x1003b0a6
mov al, 1
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.1004eb8b
mov esp, ebp
pop ebp
ret
Function at 0x100404f0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100bb0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [ebp + 8], 0xffffffff
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0xc], esi
je 0x100405fd
cmp byte [ebp + 0x10], bl
je 0x10040568
test byte [esi], 8
je 0x10040568
xor eax, eax
mov dword [ebp - 8], eax
call fcn.10063b70
or byte [esi], 8
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ebx, dword [ebp + 8]
lea eax, [ebp - 8]
push 4
push eax
push 0x80
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
call fcn.10063b70
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x1004056b
call fcn.10063b70
jmp 0x1004056b
mov ebx, dword [ebp + 8]
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call fcn.10063b70
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
je 0x100405fd
call fcn.10063b70
cmp dword [edi + 4], eax
jne 0x100405a4
cmp dword [edi], 0x2733
je 0x100405b6
call fcn.10063b70
cmp dword [edi + 4], eax
jne 0x100405f9
cmp dword [edi], 0x4d5
jne 0x100405f9
mov ebx, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0x8004667e
push ebx
mov dword [ebp - 8], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp - 0xc]
push 0
and byte [eax], 0xfc
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call fcn.10063b70
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
jne 0x1004060b
call fcn.10063b70
mov dword [edi], 0
mov dword [edi + 4], eax
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004eb8b
mov esp, ebp
pop ebp
ret
Function at 0x10042bd0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x10042bf2
call fcn.10063b70
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 4], eax
or eax, esi
mov dword [ecx], 0x2719
pop esi
pop ebp
ret
push ebx
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
call fcn.10063b70
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, dword [ebp + 0x14]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
jne 0x10042c2e
call fcn.10063b70
mov dword [edi], ebx
mov dword [edi + 4], eax
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret

Function at 0x10046c80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x100bb0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x810]
push eax
push str.SoftwareMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
xor bl, bl
mov dword [ebp - 0x810], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x10046d4c
push 0x800
push eax
lea eax, [ebp - 0x804]
push eax
call fcn.100643b0
add esp, 0xc
mov dword [ebp - 0x80c], 0
lea eax, [ebp - 0x808]
mov dword [ebp - 0x808], 0x400
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x80c]
push eax
push 0
push str.DownloadPath
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10046d4c
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10046d21
mov eax, dword [ebp + 0xc]
sub ecx, edx
dec eax
sar ecx, 1
cmp eax, ecx
cmovb ecx, eax
lea eax, [ebp - 0x804]
push ecx
push eax
push esi
call fcn.1007551a
add esp, 0xc
mov bl, 1
mov eax, dword [ebp - 0x810]
test eax, eax
je 0x10046d5d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.1004eb8b
mov esp, ebp
pop ebp
ret
Function at 0x10047070
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009200d
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x100bb0a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x438], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x43c], esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x100470dc
mov eax, dword [esi]
jmp 0x100470de
mov eax, esi
push 6
push str.unknow
mov ecx, esi
mov byte [eax], 0
call fcn.100023a0
push 0x24
push 0x1009a144
lea ecx, [ebp - 0x430]
mov dword [ebp - 4], 0
mov dword [ebp - 0x438], 1
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x41c], 0xf
mov dword [ebp - 0x420], 0
mov byte [ebp - 0x430], 0
call fcn.100023a0
cmp dword [ebp - 0x41c], 0x10
lea ecx, [ebp - 0x434]
lea eax, [ebp - 0x430]
mov dword [ebp - 4], 1
cmovae eax, dword [ebp - 0x430]
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1004726c
push 0x400
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.100643b0
add esp, 0xc
mov dword [ebp - 0x418], 0
lea eax, [ebp - 0x414]
mov dword [ebp - 0x414], 0x400
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x418]
push eax
push 0
push str.svcVersion
push dword [ebp - 0x434]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100471e9
cmp byte [ebp - 0x410], al
jne 0x100471d1
xor ecx, ecx
jmp 0x1004725d
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100471e0
jmp 0x1004725b
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.100643b0
add esp, 0xc
mov dword [ebp - 0x414], 0
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], 0x400
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x414]
push eax
push 0
push str.Version
push dword [ebp - 0x434]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1004726c
cmp byte [ebp - 0x410], al
jne 0x1004724b
xor ecx, ecx
jmp 0x1004725d
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10047254
sub ecx, edx
push ecx
lea eax, [ebp - 0x410]
mov ecx, esi
push eax
call fcn.100023a0
mov eax, dword [ebp - 0x434]
test eax, eax
je 0x1004727d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x41c]
cmp ecx, 0x10
jb 0x1004729b
inc ecx
push ecx
push dword [ebp - 0x430]
lea ecx, [ebp - 0x430]
call fcn.100024a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004eb8b
mov esp, ebp
pop ebp
ret
Function at 0x10048390
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10092286
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100bb0a0]
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
mov eax, dword [0x100c6e74]
mov bl, 1
test bl, al
jne 0x100483f3
or eax, 1
mov dword [0x100c6e74], eax
push 0x100c6e5c
mov dword [ebp - 4], 0
call fcn.10047070
push 0x10094660
call fcn.1004f002
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x100c6e7c]
test eax, eax
jne 0x10048429
push 0x114
push eax
push 0x100c6e78
call fcn.100643b0
add esp, 0xc
mov dword [0x100c6e78], 0x114
push 0x100c6e78
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [0x100c6e7c]
cmp eax, 5
jne 0x1004844e
xor bl, bl
mov al, bl
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.1004eb8b
mov esp, ebp
pop ebp
ret
cmp eax, 0xa
je 0x10048430
cmp eax, 6
jne 0x10048461
cmp dword [0x100c6e80], 2
jae 0x10048430
cmp dword [0x100c6e70], 0x10
mov ecx, 0x100c6e5c
mov edi, dword [0x100c6e6c]
mov edx, 6
cmovae ecx, dword [0x100c6e5c]
cmp edi, edx
cmovb edx, edi
test edx, edx
je 0x100484e2
mov esi, str.unknow
sub edx, 4
jb 0x100484a3
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x100484a8
add ecx, 4
add esi, 4
sub edx, 4
jae 0x10048492
cmp edx, 0xfffffffc
je 0x100484dc
mov al, byte [ecx]
cmp al, byte [esi]
jne 0x100484d5
cmp edx, 0xfffffffd
je 0x100484dc
mov al, byte [ecx + 1]
cmp al, byte [esi + 1]
jne 0x100484d5
cmp edx, 0xfffffffe
je 0x100484dc
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x100484d5
cmp edx, 0xffffffff
je 0x100484dc
mov al, byte [ecx + 3]
cmp al, byte [esi + 3]
je 0x100484dc
sbb eax, eax
or eax, 1
jmp 0x100484de
xor eax, eax
test eax, eax
jne 0x100484ed
cmp edi, 6
jb 0x100484ed
jbe 0x10048430
push 1
push 0
push 0x10095468
mov ecx, 0x100c6e5c
call fcn.10024e20
push eax
push 0
lea eax, [ebp - 0x28]
mov ecx, 0x100c6e5c
push eax
call fcn.1002a970
cmp dword [ebp - 0x14], 0x10
lea esi, [ebp - 0x28]
mov dword [ebp - 4], 1
cmovae esi, dword [ebp - 0x28]
call fcn.1006fece
push 0xa
mov dword [eax], 0
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.100754ee
add esp, 0xc
mov edi, eax
cmp esi, dword [ebp - 0x2c]
jne 0x1004854e
push str.invalid_stoi_argument
call fcn.1004fd76
call fcn.1006fece
cmp dword [eax], 0x22
je 0x100485cd
mov eax, dword [ebp - 0x14]
cmp edi, 8
jg 0x1004857d
xor bl, bl
cmp eax, 0x10
jb 0x10048430
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.100024a0
jmp 0x10048430
cmp eax, 0x10
jb 0x10048430
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x100485bf
test cl, 0x1f
je 0x1004859b
call fcn.1006fbaa
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x100485a7
call fcn.1006fbaa
sub ecx, eax
cmp ecx, 4
jae 0x100485b3
call fcn.1006fbaa
cmp ecx, 0x23
jbe 0x100485bd
call fcn.1006fbaa
mov ecx, eax
push ecx
call fcn.1004eb86
add esp, 4
jmp 0x10048430
push str.stoi_argument_out_of_range
call fcn.1004fdb6
int3
Function at 0x100485e0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100bb0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x104
lea eax, [ebp - 0x108]
mov bl, 1
push 0
push eax
call fcn.100643b0
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x10048685
push edi
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.100666c0
mov edi, eax
add esp, 8
test edi, edi
je 0x10048673
inc edi
push str.iexplore.exe
push edi
call fcn.10075598
add esp, 8
test eax, eax
je 0x10048673
push str.process_is__s__not_start_bho
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004eb8b
mov esp, ebp
pop ebp
ret
pop edi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004eb8b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.1004eb8b
mov esp, ebp
pop ebp
ret

Function at 0x100486a0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100bb0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push 0xffffffffffffffff
push 0
mov eax, dword [esi + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 4]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x100c6e4c
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0
push dword [esi + 4]
test eax, eax
je 0x10048703
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004eb8b
mov esp, ebp
pop ebp
ret
push fcn.10059bd0
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1004eb8b
mov esp, ebp
pop ebp
ret