joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001b690
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008e700
mov eax, dword fs:[0]
push eax
sub esp, 0x10
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, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x14]
push edx
push 0x1009e674
push eax
mov ecx, dword [eax]
mov byte [ebp - 4], 1
call dword [ecx]
mov esi, eax
test esi, esi
jns 0x1001b70c
push 0x10098070
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x1001b7d6
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
jmp 0x1001b7d6
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x18]
push edx
push eax
mov byte [ebp - 4], 2
mov ecx, dword [eax]
call dword [ecx + 0x28]
mov esi, eax
test esi, esi
jns 0x1001b737
push str.GetHtmlContent:_lpDoc3__get_documentElement_lpElem__failed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1001b7b4
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x1c]
push edx
push eax
mov byte [ebp - 4], 3
mov ecx, dword [eax]
call dword [ecx + 0xf8]
mov esi, eax
test esi, esi
jns 0x1001b75f
push str.GetHtmlContent:_lpElem__get_outerHTML_strHtml__failed_n
jmp 0x1001b7a5
push dword [ebp - 0x1c]
call fcn.1004e850
mov edi, eax
test edi, edi
je 0x1001b79d
cmp byte [edi], 0
jne 0x1001b776
xor ecx, ecx
jmp 0x1001b789
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001b780
sub ecx, edx
push ecx
push edi
mov ecx, ebx
call fcn.10002340
push edi
call fcn.1004f056
add esp, 4
jmp 0x1001b7ab
or esi, 0xffffffff
push str.GetHtmlContent:__com_util::ConvertBSTRToString_failed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [ebp - 0x1c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 1
test eax, eax
je 0x1001b7c5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0
test eax, eax
je 0x1001b7d6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x1001b7ea
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
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.1004ebbb
mov esp, ebp
pop ebp
ret 8
Function at 0x1001d140
Capabilities:
Create thread
Print debug messages

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0xffffffff
jne 0x1001d202
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x58], 0
je 0x1001d201
cmp dword [edi + 0x5c], 3
jne 0x1001d201
cmp dword [edi + 0x4c], 0
je 0x1001d206
push esi
push str.notify_tab_changed_from_OnCommandStateChange
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x508
call fcn.1004ecd6
mov esi, eax
add esp, 4
test esi, esi
je 0x1001d200
push 0x508
push 0
push esi
call fcn.10064410
add esp, 0xc
mov dword [esi], 1
push dword [edi + 0x4c]
call fcn.1004e850
mov edi, eax
test edi, edi
je 0x1001d1c4
push edi
lea ecx, [esi + 4]
push 0x400
push ecx
call fcn.1004c1e0
add esp, 0xc
push 0
push 0
push esi
push 0x1001d940
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1001d1e5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001d1f3
push 0x508
push esi
call fcn.1004f361
add esp, 8
test edi, edi
je 0x1001d200
push edi
call fcn.1004f056
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 0x1001d770
Capabilities:
Create thread
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008eaae
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.100264e0
mov eax, dword [ebp + 0x10]
and eax, 3
mov dword [ebp - 4], 0
cmp al, 3
jne 0x1001d8f1
mov ecx, dword [esi + 0x4c]
test ecx, ecx
jne 0x1001d7e1
push str.OnWindowStateChanged:_m_curUrl_is_NULL
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1001d8e5
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x1001d8e5
cmp dword [esi + 0x60], 0
je 0x1001d8e5
mov edx, dword [ebp + 0xc]
cmp eax, 2
jne 0x1001d8c0
cmp edx, 3
jne 0x1001d8c0
push 6
push str.about:
push ecx
call fcn.10070499
add esp, 0xc
test eax, eax
je 0x1001d8e5
push str.notify_tab_changed_from_OnWindowStateChanged
mov dword [esi + 0x58], 1
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x508
call fcn.1004ecd6
mov edi, eax
add esp, 4
test edi, edi
je 0x1001d8e5
push 0x508
push 0
push edi
call fcn.10064410
add esp, 0xc
mov dword [edi], 1
push dword [esi + 0x4c]
call fcn.1004e850
mov ebx, eax
test ebx, ebx
je 0x1001d882
push ebx
lea ecx, [edi + 4]
push 0x400
push ecx
call fcn.1004c1e0
add esp, 0xc
push 0
push 0
push edi
push 0x1001d940
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1001d8a3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001d8b1
push 0x508
push edi
call fcn.1004f361
add esp, 8
test ebx, ebx
je 0x1001d8e5
push ebx
call fcn.1004f056
add esp, 4
jmp 0x1001d8e5
cmp eax, 3
jne 0x1001d8e5
cmp edx, 2
jne 0x1001d8e5
push 6
push str.about:
push ecx
call fcn.10070499
add esp, 0xc
test eax, eax
je 0x1001d8e5
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 0x1001d92b
mov ecx, dword [ebp - 0x14]
mov eax, SysReAllocStringLen
lock xadd dword [ecx], eax
test eax, 0x40000000
jne 0x1001d92b
cmp eax, 0x80000000
jle 0x1001d92b
lock bts dword [ecx], 0x1e
jb 0x1001d92b
call fcn.100258f0
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 0x100364b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100909a3
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.10012330
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.1004b9a0
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 0x100373e0
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 0x10037423
inc edx
mov dword [ecx], 0
lea ecx, [ecx + 4]
cmp edx, esi
jne 0x10037415
push 0x20
push 0x10099b08
push eax
call fcn.100652b0
add esp, 0xc
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10037440
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10090c9d
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 0x100374a6
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 0x100374ef
xorps xmm0, xmm0
movq qword [ebp - 0x1a8], xmm0
call fcn.10063bd0
mov dword [ebp - 0x1a4], eax
mov eax, fcn.1002a7d0
mov dword [ebp - 0x1a8], edi
test eax, eax
je 0x100374ef
push str.winsock
lea eax, [ebp - 0x1a8]
push eax
call fcn.100456b0
push 0x20
mov dword [ebp - 4], 0
call fcn.1004ecd6
add esp, 4
mov dword [ebp - 0x1a4], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x10037526
push 0xffffffffffffffff
xorps xmm0, xmm0
mov ecx, eax
push 0
movups xmmword [eax], xmm0
push esi
movups xmmword [eax + 0x10], xmm0
call fcn.1002c190
jmp 0x10037528
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.1004ebbb
mov esp, ebp
pop ebp
ret
Function at 0x10037720
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10090d61
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.10064410
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.10044f30
xorps xmm0, xmm0
mov esi, eax
movq qword [ebp - 0x134], xmm0
call fcn.10063bd0
mov dword [ebp - 0x130], eax
mov ecx, fcn.1002a7d0
xor eax, eax
mov dword [ebp - 0x134], esi
test esi, esi
cmove ecx, eax
test ecx, ecx
je 0x10037864
push str.mutex
lea eax, [ebp - 0x134]
push eax
call fcn.100456b0
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 0x100378d3
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.10063bd0
mov dword [ebp - 0x130], eax
test esi, esi
je 0x100378d3
push str.iocp
lea eax, [ebp - 0x134]
push eax
call fcn.100456b0
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.1004ebbb
mov esp, ebp
pop ebp
ret 8
Function at 0x1003b010
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10091178
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 0x1003b154
cmp byte [ebx + 0x3e], 0
je 0x1003b154
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 0x1003b074
xor al, al
jmp 0x1003b156
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 0x1003b0e5
sub eax, 1
je 0x1003b0e9
mov ecx, dword [ebp - 0x14]
sub eax, 2
je 0x1003b13c
xor bl, bl
jmp 0x1003b13e
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 0x1003b11e
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.100762d7
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x1003b0e1
cmp byte [ebx + 0x3e], 0
je 0x1003b13c
test esi, esi
jne 0x1003b0a7
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.10003040
jmp 0x1003b0a4
mov bl, 1
cmp ecx, 0x10
jb 0x1003b150
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.10002440
mov al, bl
jmp 0x1003b156
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.1004ebbb
mov esp, ebp
pop ebp
ret
Function at 0x10040650
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 0x1004075d
cmp byte [ebp + 0x10], bl
je 0x100406c8
test byte [esi], 8
je 0x100406c8
xor eax, eax
mov dword [ebp - 8], eax
call fcn.10063bd0
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.10063bd0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x100406cb
call fcn.10063bd0
jmp 0x100406cb
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.10063bd0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
je 0x1004075d
call fcn.10063bd0
cmp dword [edi + 4], eax
jne 0x10040704
cmp dword [edi], 0x2733
je 0x10040716
call fcn.10063bd0
cmp dword [edi + 4], eax
jne 0x10040759
cmp dword [edi], 0x4d5
jne 0x10040759
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.10063bd0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
jne 0x1004076b
call fcn.10063bd0
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.1004ebbb
mov esp, ebp
pop ebp
ret
Function at 0x10042d30
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x10042d52
call fcn.10063bd0
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.10063bd0
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 0x10042d8e
call fcn.10063bd0
mov dword [edi], ebx
mov dword [edi + 4], eax
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret

Function at 0x10046d60
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 0x10046e2c
push 0x800
push eax
lea eax, [ebp - 0x804]
push eax
call fcn.10064410
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 0x10046e2c
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10046e01
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.1007549f
add esp, 0xc
mov bl, 1
mov eax, dword [ebp - 0x810]
test eax, eax
je 0x10046e3d
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.1004ebbb
mov esp, ebp
pop ebp
ret
Function at 0x10047150
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100920bd
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 0x100471bc
mov eax, dword [esi]
jmp 0x100471be
mov eax, esi
push 6
push str.unknow
mov ecx, esi
mov byte [eax], 0
call fcn.10002340
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.10002340
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 0x1004734c
push 0x400
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.10064410
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 0x100472c9
cmp byte [ebp - 0x410], al
jne 0x100472b1
xor ecx, ecx
jmp 0x1004733d
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100472c0
jmp 0x1004733b
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.10064410
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 0x1004734c
cmp byte [ebp - 0x410], al
jne 0x1004732b
xor ecx, ecx
jmp 0x1004733d
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10047334
sub ecx, edx
push ecx
lea eax, [ebp - 0x410]
mov ecx, esi
push eax
call fcn.10002340
mov eax, dword [ebp - 0x434]
test eax, eax
je 0x1004735d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x41c]
cmp ecx, 0x10
jb 0x1004737b
inc ecx
push ecx
push dword [ebp - 0x430]
lea ecx, [ebp - 0x430]
call fcn.10002440
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.1004ebbb
mov esp, ebp
pop ebp
ret
Function at 0x10048470
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10092306
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 0x100484d3
or eax, 1
mov dword [0x100c6e74], eax
push 0x100c6e5c
mov dword [ebp - 4], 0
call fcn.10047150
push 0x10094690
call fcn.1004f041
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x100c6e7c]
test eax, eax
jne 0x10048509
push 0x114
push eax
push 0x100c6e78
call fcn.10064410
add esp, 0xc
mov dword [0x100c6e78], 0x114
push 0x100c6e78
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [0x100c6e7c]
cmp eax, 5
jne 0x1004852e
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.1004ebbb
mov esp, ebp
pop ebp
ret
cmp eax, 0xa
je 0x10048510
cmp eax, 6
jne 0x10048541
cmp dword [0x100c6e80], 2
jae 0x10048510
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 0x100485c2
mov esi, str.unknow
sub edx, 4
jb 0x10048583
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x10048588
add ecx, 4
add esi, 4
sub edx, 4
jae 0x10048572
cmp edx, 0xfffffffc
je 0x100485bc
mov al, byte [ecx]
cmp al, byte [esi]
jne 0x100485b5
cmp edx, 0xfffffffd
je 0x100485bc
mov al, byte [ecx + 1]
cmp al, byte [esi + 1]
jne 0x100485b5
cmp edx, 0xfffffffe
je 0x100485bc
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x100485b5
cmp edx, 0xffffffff
je 0x100485bc
mov al, byte [ecx + 3]
cmp al, byte [esi + 3]
je 0x100485bc
sbb eax, eax
or eax, 1
jmp 0x100485be
xor eax, eax
test eax, eax
jne 0x100485cd
cmp edi, 6
jb 0x100485cd
jbe 0x10048510
push 1
push 0
push 0x10095468
mov ecx, 0x100c6e5c
call fcn.10025250
push eax
push 0
lea eax, [ebp - 0x28]
mov ecx, 0x100c6e5c
push eax
call fcn.1002add0
cmp dword [ebp - 0x14], 0x10
lea esi, [ebp - 0x28]
mov dword [ebp - 4], 1
cmovae esi, dword [ebp - 0x28]
call fcn.1006fedd
push 0xa
mov dword [eax], 0
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.10075473
add esp, 0xc
mov edi, eax
cmp esi, dword [ebp - 0x2c]
jne 0x1004862e
push str.invalid_stoi_argument
call fcn.1004fdea
call fcn.1006fedd
cmp dword [eax], 0x22
je 0x100486ad
mov eax, dword [ebp - 0x14]
cmp edi, 8
jg 0x1004865d
xor bl, bl
cmp eax, 0x10
jb 0x10048510
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10002440
jmp 0x10048510
cmp eax, 0x10
jb 0x10048510
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x1004869f
test cl, 0x1f
je 0x1004867b
call fcn.1006fbb9
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x10048687
call fcn.1006fbb9
sub ecx, eax
cmp ecx, 4
jae 0x10048693
call fcn.1006fbb9
cmp ecx, 0x23
jbe 0x1004869d
call fcn.1006fbb9
mov ecx, eax
push ecx
call fcn.1004ebb6
add esp, 4
jmp 0x10048510
push str.stoi_argument_out_of_range
call fcn.1004fe2a
int3