joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411a90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc000]
push edi
or ebp, 0xffffffff
jmp 0x411ab2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x411ab9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x411aa8
mov eax, 1
add ebx, ebx
jne 0x411acb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x411adc
jne 0x411afb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x411afb
dec eax
add ebx, ebx
jne 0x411ae8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x411ac0
add ebx, ebx
jne 0x411af7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x411b4d
xor ecx, ecx
sub eax, 3
jb 0x411b13
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x411b82
sar eax, 1
mov ebp, eax
jmp 0x411b1e
add ebx, ebx
jne 0x411b1e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x411aec
inc ecx
add ebx, ebx
jne 0x411b2c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x411aec
add ebx, ebx
jne 0x411b39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x411b2e
jne 0x411b4a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x411b2e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x411b6c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x411b5e
jmp 0x411aae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x411b6c
add edi, ecx
jmp 0x411aae
pop esi
mov edi, esi
mov ecx, 0x7000
jmp 0x411bbd
mov al, byte [edi]
inc edi
cmp al, 0x80
jb 0x411b9d
cmp al, 0x8f
ja 0x411b9d
cmp byte [edi - 2], 0xf
je 0x411ba3
sub al, 0xe8
cmp al, 1
ja 0x411bc7
cmp ecx, 4
jb 0x411bcc
mov eax, dword [edi]
sub al, 3
jne 0x411bc7
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
sub ecx, 4
stosd dword es:[edi], eax
sub ecx, 1
jb 0x411bcc
mov al, byte [edi]
inc edi
jmp 0x411b9d
sub ecx, 1
jae 0x411b8c
lea edi, [esi + 0xe000]
mov eax, dword [edi]
or eax, eax
je 0x411c14
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x111dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11328]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x411bd2
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x11330]
or eax, eax
je 0x411c0e
mov dword [ebx], eax
add ebx, 4
jmp 0x411bef
call dword [esi + 0x1132c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x411c45
cmp al, 0xef
ja 0x411c38
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x411c1a
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x411c27
mov ebp, dword [esi + 0x11334]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x411c79
sub esp, 0xffffff80
jmp 0x406c09
Function at 0x407b60
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
call fcn.004084c0
test eax, eax
jge 0x407b91
mov ecx, dword [edi + 0x34]
test ecx, ecx
jne 0x407b7c
mov ecx, 0x60ad38
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
push 0
push 2
push 0
call edx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
jne 0x407ba7
mov dword [edi + 0x98], 1
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x10]
lea eax, [ebp - 4]
push eax
push 0x8004667e
push ecx
mov dword [ebp - 4], 0
call sub.WS2_32.dll_ioctlsocket
mov ecx, dword [edi + 0x34]
test ecx, ecx
jne 0x407bcc
mov ecx, 0x60ad38
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
push 0
push 3
push 0
call eax
mov dword [edi + 0x98], 2
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x407bf0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x9c]
push eax
mov ecx, 1
call fcn.0041b9f0
add esp, 4
test eax, eax
jge 0x407c33
mov ecx, dword [esi + 0x34]
test ecx, ecx
jne 0x407c1e
mov ecx, 0x60ad38
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
push 0
push 2
push 0
call eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
jne 0x407c56
mov ecx, dword [esi + 0x34]
test ecx, ecx
jne 0x407c41
mov ecx, 0x60ad38
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
push 0
push 1
push 0
call eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x10]
lea ecx, [ebp - 4]
push ecx
push 0x8004667e
push edx
mov dword [ebp - 4], 0
call sub.WS2_32.dll_ioctlsocket
mov ecx, dword [esi + 0x34]
test ecx, ecx
jne 0x407c7b
mov ecx, 0x60ad38
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
push 0
push 3
push 0
call edx
mov dword [esi + 0x98], 2
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4084c0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6089a0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [edi + 0x10], eax
jne 0x4084f4
or eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00432b8e
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [ebp - 0x18]
push ecx
push 0x8004667e
push eax
mov dword [ebp - 0x18], 1
call sub.WS2_32.dll_ioctlsocket
movzx edx, word [edi + 0x94]
push edx
mov word [ebp - 0x14], 2
call dword [sym.imp.WS2_32.dll_htons]
mov esi, 0x10
cmp dword [edi + 0x90], esi
mov word [ebp - 0x12], ax
jb 0x408535
mov eax, dword [edi + 0x7c]
jmp 0x408538
lea eax, [edi + 0x7c]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x40858d
cmp dword [edi + 0x90], esi
jb 0x408554
mov eax, dword [edi + 0x7c]
jmp 0x408557
lea eax, [edi + 0x7c]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x408583
mov esi, dword [edi + 0x10]
call fcn.0041b9b0
mov dword [edi + 0x10], 0xffffffff
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00432b8e
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [ebp - 0x10], edx
mov ecx, dword [edi + 0x10]
push esi
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x4085b4
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00432b8e
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 4]
add eax, 0xffffd8cd
mov edx, 1
cmp edx, eax
sbb eax, eax
xor ecx, ebp
pop esi
call fcn.00432b8e
mov esp, ebp
pop ebp
ret

Function at 0x4085e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea esi, [ebx + 0x74]
test esi, esi
je 0x4085fc
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4085fc
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
mov edi, dword [ebx + 0x10]
cmp edi, 0xffffffff
je 0x408630
push 4
lea eax, [ebp - 4]
push eax
push 0x80
push 0xffff
push edi
mov dword [ebp - 4], 1
call sub.WS2_32.dll_setsockopt
push 2
push edi
call sub.WS2_32.dll_shutdown
push edi
call sub.WS2_32.dll_closesocket
test esi, esi
mov dword [ebx + 0x10], 0xffffffff
pop edi
je 0x40864a
mov esi, dword [esi]
cmp esi, 0xffffffff
je 0x40864a
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408650
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, eax
mov eax, dword [ebx + 0xc]
push esi
xor esi, esi
sub eax, dword [ebx + 4]
push edi
mov dword [ebp - 4], eax
jmp 0x408670
sub eax, esi
cmp eax, 0x400
mov edi, 0x400
jg 0x408680
mov edi, eax
mov eax, dword [ebp + 8]
mov ecx, 1
push eax
lea edx, [ecx + 0x13]
call fcn.0041b9f0
add esp, 4
test eax, eax
jl 0x4086bf
je 0x4086e6
mov eax, dword [ebx + 4]
add eax, dword [ebx]
mov ecx, dword [ebp + 8]
push 0
push edi
add eax, esi
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x4086c9
add esi, eax
cmp esi, dword [ebp - 4]
jge 0x4086ef
mov eax, dword [ebp - 4]
jmp 0x408670
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd8cd
cmp eax, 1
ja 0x4086bf
call dword [sym.imp.MSVCR80.dll___iob_func]
mov ecx, esi
call fcn.0041b4f0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409400
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f2251
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x6089a0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov ecx, dword [esp + 0x40]
push ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 1
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 0xc]
mov dword [esp + 8], 1
mov byte [esp + 0x30], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret
Function at 0x409590
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4095fe
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x4095cf
cmp eax, 2
jne 0x4095ea
test esi, esi
mov eax, dword [esp]
je 0x4095f8
test eax, eax
je 0x4095f3
test al, 1
jne 0x4095ea
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x4095f8
mov eax, 0xd
pop ecx
ret 8
mov word [esi], 0
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8

Function at 0x40ea50
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
test edi, edi
jne 0x40ea5f
push 0x80004005
call fcn.0040f230
mov ecx, dword [esp + 8]
mov edx, dword [ecx]
push edi
push esi
lea eax, [esp + 8]
push eax
push 0
push 0
push edx
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
je 0x40ead4
mov ecx, dword [edi]
test ecx, ecx
jbe 0x40eacf
mov edx, dword [esp]
test edx, edx
jbe 0x40eaca
cmp edx, 2
jbe 0x40eabb
cmp edx, 7
jne 0x40eaca
test cl, 1
jne 0x40eaca
shr ecx, 1
cmp ecx, 1
jb 0x40eaca
cmp word [esi + ecx*2 - 2], 0
jne 0x40eaca
cmp ecx, 1
jbe 0x40ead4
cmp word [esi + ecx*2 - 4], 0
jmp 0x40eac8
test cl, 1
jne 0x40eaca
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x40ead4
mov eax, 0xd
mov word [esi], 0
pop ecx
ret 4
Function at 0x415da0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f1d51
push eax
mov dword fs:[0], esp
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, ecx
push edi
mov ecx, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
mov dword [esp + 0x10], 0
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0xc], edx
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov ecx, dword [edi + 0x14]
mov dword [esi + 0x14], ecx
mov edx, dword [edi + 0x18]
lea eax, [edi + 0x1c]
push eax
lea ecx, [esi + 0x1c]
mov dword [esi + 0x18], edx
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
mov byte [esp + 0x10], 1
mov ecx, dword [edi + 0x20]
mov dword [esi + 0x20], ecx
mov edx, dword [edi + 0x24]
mov dword [esi + 0x24], edx
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov ecx, dword [edi + 0x2c]
mov dword [esi + 0x2c], ecx
mov edx, dword [edi + 0x30]
mov dword [esi + 0x30], edx
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov ecx, dword [edi + 0x38]
mov dword [esi + 0x38], ecx
mov edx, dword [edi + 0x3c]
lea eax, [edi + 0x40]
push eax
lea ecx, [esi + 0x40]
mov dword [esi + 0x3c], edx
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
mov byte [esp + 0x10], 2
mov ecx, dword [edi + 0x44]
mov dword [esi + 0x44], ecx
mov edx, dword [edi + 0x48]
mov dword [esi + 0x48], edx
mov eax, dword [edi + 0x4c]
mov dword [esi + 0x4c], eax
mov ecx, dword [edi + 0x50]
mov dword [esi + 0x50], ecx
mov edx, dword [edi + 0x54]
mov dword [esi + 0x54], edx
mov eax, dword [edi + 0x58]
mov dword [esi + 0x58], eax
mov ecx, dword [edi + 0x5c]
mov dword [esi + 0x5c], ecx
mov edx, dword [edi + 0x60]
mov dword [esi + 0x60], edx
mov eax, dword [edi + 0x64]
mov dword [esi + 0x64], eax
mov ecx, dword [edi + 0x68]
mov dword [esi + 0x68], ecx
mov edx, dword [edi + 0x6c]
mov dword [esi + 0x6c], edx
mov eax, dword [edi + 0x70]
add edi, 0x74
mov dword [esi + 0x70], eax
push edi
lea ecx, [esi + 0x74]
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
mov ecx, dword [esp + 8]
pop edi
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 4
Function at 0x41a3f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push 0x2c
lea eax, [ebp - 0x2c]
push 0
push eax
mov dword [ebp - 0x30], 0x30
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], str.TXLOGGER_BYCORETEAM
mov dword [ebp - 0x28], 0x41a3b0
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edx, dword [ebp - 8]
lea ecx, [ebp - 0x60]
push ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClassInfoExW]
test eax, eax
je 0x41a44d
xor eax, eax
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.USER32.dll_RegisterClassExW]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
push 0
push edx
push 0
push 0xfffffffffffffffd
push 0x64
push 0x64
push 0
push 0
push 0
push str.loger_command_window
push eax
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push eax
mov dword [esi + 0x230], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x230]
mov esp, ebp
pop ebp
ret

Function at 0x41a4a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2a28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor ebx, ebx
lea eax, [ebp + 8]
push eax
push 0x20019
push ebx
mov dword [esi + 0x244], ebx
mov dword [esi + 0x248], ebx
mov dword [esi + 0x24c], ebx
push 0x5ee6b0
push closesocket
mov byte [esi + 0x23d], 1
mov dword [esi + 0x22c], ebx
mov dword [esi + 0x230], ebx
mov byte [esi + 0x23c], 1
mov dword [esi + 0x238], 5
xor edi, edi
mov dword [ebp + 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x41a590
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
push 0x60a9fc
lea edx, [ebp - 0x14]
push edx
push ebx
push str.logLevel
push edi
mov dword [ebp - 0x10], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x238]
push eax
lea ecx, [ebp - 0x14]
push ecx
push ebx
push str.LogCacheCount
push edi
mov dword [ebp - 0x10], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x41a583
cmp dword [ebp - 0x14], 4
jne 0x41a583
cmp dword [esi + 0x238], 1
ja 0x41a583
mov byte [esi + 0x23d], bl
cmp edi, ebx
je 0x41a590
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov edx, dword [0x60a9fc]
mov dword [esi + 0x234], edx
mov byte [esi + 0x23e], 1
mov byte [esi + 0x23f], bl
call fcn.0041a3f0
test eax, eax
jne 0x41a5e6
lea eax, [ebp - 0x14]
push eax
push 0x5d38a0
push str.Assert
push 2
push str._anonymous_namespace::CTXLoger::CTXLoger
push 0x131
push str..Log.cpp
mov byte [esi + 0x23c], bl
mov dword [ebp - 0x14], str.log_
call fcn.00401650
add esp, 0x1c
push esi
call fcn.0041a0a0
cmp edi, ebx
je 0x41a5f7
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41a730
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
cmp byte [esi + 0x23f], 0
push ebx
push edi
jne 0x41a7db
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
lea eax, [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41a773
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor edi, edi
mov ecx, dword [esi + 0x244]
test ecx, ecx
je 0x41a7d4
mov eax, dword [esi + 0x248]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x41a7d4
test ecx, ecx
je 0x41a7ae
mov eax, dword [esi + 0x248]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x41a7b4
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 0x244]
mov eax, dword [ecx + edi*4]
mov ecx, dword [eax]
push 0
lea edx, [esp + 0x10]
push edx
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
add edi, 1
jmp 0x41a782
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [sym.imp.MSVCR80.dll_free]
xor edi, edi
mov ecx, dword [esi + 0x244]
test ecx, ecx
je 0x41a855
mov eax, dword [esi + 0x248]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x41a855
test ecx, ecx
je 0x41a80f
mov eax, dword [esi + 0x248]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x41a815
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esi + 0x244]
mov eax, dword [edx + edi*4]
push eax
call ebx
mov ecx, dword [esi + 0x244]
add esp, 4
test ecx, ecx
je 0x41a83d
mov eax, dword [esi + 0x248]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x41a843
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 0x244]
mov dword [ecx + edi*4], 0
add edi, 1
jmp 0x41a7e3
mov ebx, dword [esi + 0x248]
cmp ecx, ebx
jbe 0x41a865
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [esi + 0x244]
cmp edi, dword [esi + 0x248]
jbe 0x41a879
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, ebx
je 0x41a8b1
mov eax, dword [esi + 0x248]
sub eax, ebx
sar eax, 2
test eax, eax
lea ecx, [eax*4]
lea edx, [ecx + edi]
mov dword [esp + 0xc], edx
jle 0x41a8a7
push ecx
push ebx
push ecx
push edi
call dword [sym.imp.MSVCR80.dll_memmove_s]
add esp, 0x10
mov eax, dword [esp + 0xc]
mov dword [esi + 0x248], eax
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41b290
Capabilities:
Create thread

Disassembly:
lea eax, [esi + 0x10]
push eax
push 0
push esi
push 0x41b300
push 0
push 0
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
test eax, eax
mov dword [esi + 0x14], eax
jne 0x41b2b3
xor al, al
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
lea ebx, [ebx]
mov ecx, dword [esi + 4]
test ecx, ecx
jg 0x41b2cd
push 0xa
call edi
jmp 0x41b2c0
mov edx, dword [esi + 4]
mov al, 1
pop edi
ret
Function at 0x41b840
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x10]
cmp esi, 0xffffffff
je 0x41b881
push 4
lea eax, [esp + 0xc]
push eax
push 0x80
push 0xffff
push esi
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_setsockopt
push 2
push esi
call sub.WS2_32.dll_shutdown
push esi
call sub.WS2_32.dll_closesocket
mov dword [edi + 0x10], 0xffffffff
cmp byte [esp + 0x10], 0
je 0x41b891
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
pop edi
pop esi
pop ecx
ret 4

Function at 0x41b9b0
Capabilities:
Set socket configuration

Disassembly:
push ecx
cmp esi, 0xffffffff
je 0x41b9e3
push 4
lea eax, [esp + 4]
push eax
push 0x80
push 0xffff
push esi
mov dword [esp + 0x14], 1
call sub.WS2_32.dll_setsockopt
push 2
push esi
call sub.WS2_32.dll_shutdown
push esi
call sub.WS2_32.dll_closesocket
pop ecx
ret

Function at 0x41b9f0
Capabilities:
Get socket status

Disassembly:
mov eax, 0x2010
call fcn.00433130
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2024]
cmp edi, 0xffffffff
mov esi, edx
jne 0x41ba19
or eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2010
ret
cmp esi, 0xffffffff
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], 1
lea ebp, [edi + 1]
jne 0x41ba6f
mov esi, ecx
neg esi
sbb esi, esi
lea eax, [esp + 0x18]
and esi, eax
neg ecx
sbb ecx, ecx
not ecx
mov edx, eax
and ecx, edx
mov ebx, ecx
push 0
push 0
push esi
push ebx
push ebp
call sub.WS2_32.dll_select
mov edi, eax
test edi, edi
jge 0x41bad0
call dword [sym.imp.MSVCR80.dll__errno]
cmp dword [eax], 4
je 0x41ba45
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2010
ret
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x10], eax
imul eax, eax, 0x3e8
sub esi, eax
imul esi, esi, 0x3e8
mov dword [esp + 0x14], esi
mov esi, ecx
neg esi
sbb esi, esi
lea eax, [esp + 0x18]
and esi, eax
neg ecx
sbb ecx, ecx
not ecx
mov edx, eax
and ecx, edx
mov ebx, ecx
mov edi, edi
lea eax, [esp + 0x10]
push eax
push 0
push esi
push ebx
push ebp
call sub.WS2_32.dll_select
mov edi, eax
test edi, edi
jge 0x41bad0
call dword [sym.imp.MSVCR80.dll__errno]
cmp dword [eax], 4
je 0x41bab0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2010
ret