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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4b3570]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x41e530
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047202b
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x41e560
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x41e560
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047202b
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x41e65d
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x41e589
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x41e5bd
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047202b
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
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_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x41e61c
sub eax, 1
je 0x41e61c
sub eax, 2
jne 0x41e65d
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.00413da0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047202b
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x41e63a
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 0x41e65d
lea ecx, [ebp - 0x28]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047202b
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047202b
mov esp, ebp
pop ebp
ret 4
Function at 0x41fa80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
test eax, eax
jg 0x41faa4
jl 0x41fa99
test ecx, ecx
jne 0x41faa4
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x41fabe
push eax
push ecx
push dword [ebp + 8]
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push esi
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x41fb0a
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 4], edx
mov eax, dword [eax]
test eax, eax
je 0x41fb10
mov edi, dword [ebp + 8]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp + 8], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x41fb10
lea eax, [ebx + 0x2c]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
mov esi, dword [ebp + 8]
je 0x41fb86
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x41fb3c
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x41fb74
nop dword [eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x41fb86
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x41fb50
test edi, edi
je 0x41fb86
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41fba0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x41fbc5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
test ecx, ecx
je 0x41fbeb
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x41fbf0
xor ecx, ecx
mov dword [ebp - 8], eax
mov eax, ecx
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x41fc50
jg 0x41fc05
test esi, esi
je 0x41fc50
test ecx, ecx
jl 0x41fc4b
jg 0x41fc0f
test eax, eax
je 0x41fc4b
cmp edi, ecx
jg 0x41fc21
jl 0x41fc19
cmp esi, eax
jae 0x41fc21
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 0xc]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [ebp - 4]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x41fc53
mov ecx, dword [ebp + 8]
jmp 0x41fc5d
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x41fc77
jg 0x41fc5d
test esi, esi
je 0x41fc77
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x41fc77
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x425820
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x474f4d
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4b3570]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], bind
mov dword [esi + 8], 0xffffffff
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x28], vtable.SignalIn_enum_DecoderSignals_.0
lea ecx, [esi + 0x60]
mov dword [ebp - 4], 0
mov dword [esi], vtable.AIS::Decoder.0
mov dword [esi + 0x28], vtable.AIS::Decoder.1.0
mov byte [esi + 0x2c], 0x3f
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0x400
mov dword [esi + 0x38], 4
mov byte [esi + 0x3c], 1
mov dword [esi + 0x40], 0
mov word [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
call fcn.004266e0
mov dword [esi + 0x120], 0
mov eax, esi
mov dword [esi + 0x124], 0
mov dword [esi + 0x128], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4440e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x477abd
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4b3570]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x10
call fcn.00471d99
mov edx, eax
add esp, 4
test edx, edx
je 0x44412e
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
mov dword [edx], ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
jmp 0x444130
xor edx, edx
mov dword [ebp + 0xc], edx
lea edi, [esi + 4]
mov dword [ebp - 4], 0
push edi
push 0
push edx
push 0x424ce0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x44416e
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push 6
mov dword [edi], 0
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x445b40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x477cad
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4b3570]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
cvttss2si eax, dword [ebp + 8]
push 1
push dword [ebx + 0x70]
lea eax, [eax + eax*4]
add eax, eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.rtlsdr.dll_rtlsdr_set_tuner_gain_mode]
add esp, 8
test eax, eax
jne 0x445cf5
push eax
push dword [ebx + 0x70]
call dword [sym.imp.rtlsdr.dll_rtlsdr_get_tuner_gains]
add esp, 8
test eax, eax
jg 0x445bab
push str.RTLSDR:_no_gains_available
jmp 0x445cfa
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
cmp eax, 0x3fffffff
ja 0x445d10
lea esi, [eax*4]
cmp esi, 0x1000
jb 0x445c01
lea eax, [esi + 0x23]
cmp eax, esi
jbe 0x445d15
push eax
call fcn.00471d99
add esp, 4
test eax, eax
je 0x445cd1
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x445c14
test esi, esi
je 0x445c12
push esi
call fcn.00471d99
add esp, 4
mov edi, eax
jmp 0x445c14
xor edi, edi
push esi
push 0
lea ebx, [esi + edi]
mov dword [ebp + 8], edi
push edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], ebx
call sub.VCRUNTIME140.dll_memset
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp - 0x1c]
push edi
mov dword [ebp - 4], 0
push dword [eax + 0x70]
call dword [sym.imp.rtlsdr.dll_rtlsdr_get_tuner_gains]
mov eax, dword [edi]
add esp, 0x14
mov dword [ebp - 0x10], eax
mov ecx, edi
mov dword [ebp - 0x18], edi
cmp edi, ebx
je 0x445c87
mov edi, eax
mov esi, dword [ecx]
mov eax, esi
sub eax, dword [ebp - 0x14]
cdq
mov ecx, eax
mov eax, dword [ebp - 0x14]
xor ecx, edx
sub eax, edi
sub ecx, edx
cdq
xor eax, edx
sub eax, edx
cmp ecx, eax
mov ecx, dword [ebp - 0x18]
cmovge esi, edi
add ecx, 4
mov dword [ebp - 0x18], ecx
mov edi, esi
cmp ecx, ebx
jne 0x445c53
mov dword [ebp - 0x10], edi
mov eax, esi
mov edi, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0x1c]
push dword [eax + 0x70]
call dword [sym.imp.rtlsdr.dll_rtlsdr_set_tuner_gain]
add esp, 8
test eax, eax
je 0x445cb2
push str.RTLSDR:_cannot_set_tuner_gain.
lea ecx, [ebp - 0x34]
call fcn.004164e0
push 0x48fc64
lea eax, [ebp - 0x34]
jmp 0x445d0a
sub ebx, edi
mov eax, edi
and ebx, 0xfffffffc
cmp ebx, 0x1000
jb 0x445cd7
mov edi, dword [eax - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x445cd7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ebx
push edi
call fcn.00471dc9
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.RTLSDR:_cannot_set_gain_mode.
lea ecx, [ebp - 0x28]
call fcn.004164e0
push 0x48fc64
lea eax, [ebp - 0x28]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
call fcn.0041d3f0
call fcn.0041d240
int3
Function at 0x4460e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
mov eax, dword [esi + 0x2c]
lea edx, [esi + 0x28]
mov ecx, eax
mov dword [ebp - 0x10], esi
sub ecx, dword [edx]
push edi
mov edi, dword [ebp + 0xc]
sar ecx, 2
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp ecx, edi
jae 0x446147
mov eax, dword [edx + 8]
sub eax, dword [edx]
sar eax, 2
cmp edi, eax
jbe 0x446124
lea eax, [ebp - 1]
mov ecx, edx
push eax
push edi
call fcn.00446040
mov edx, dword [ebp - 0xc]
jmp 0x446147
mov esi, edi
sub esi, ecx
shl esi, 2
push esi
push 0
push dword [ebp - 8]
call sub.VCRUNTIME140.dll_memset
mov edx, dword [ebp - 0xc]
add esp, 0xc
mov eax, dword [ebp - 8]
add eax, esi
mov esi, dword [ebp - 0x10]
mov dword [edx + 4], eax
mov dword [ebp - 8], 0
test edi, edi
jle 0x4461e6
movss xmm6, dword [0x487480]
movss xmm7, dword [0x487448]
mov ecx, dword [ebp + 8]
nop dword [eax]
movss xmm4, dword [esi + 0x38]
movss xmm5, dword [esi + 0x34]
xorps xmm4, xmm6
movaps xmm0, xmm5
mov eax, dword [edx]
mulss xmm0, dword [ecx + 4]
movaps xmm1, xmm4
mov edi, dword [ebp - 8]
mulss xmm1, dword [ecx]
mulss xmm5, dword [ecx]
mulss xmm4, dword [ecx + 4]
addss xmm1, xmm0
subss xmm5, xmm4
movss dword [ebp - 0x10], xmm1
fld dword [ebp - 0x10]
movss dword [ebp - 0x10], xmm5
fld dword [ebp - 0x10]
fpatan
fstp dword [ebp - 0x10]
movss xmm0, dword [ebp - 0x10]
mulss xmm0, xmm7
movss dword [eax + edi*4], xmm0
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esi + 0x34], eax
mov eax, edi
mov edi, dword [ebp + 0xc]
inc eax
mov dword [esi + 0x38], ecx
mov ecx, dword [ebp + 8]
add ecx, 8
mov dword [ebp - 8], eax
mov dword [ebp + 8], ecx
cmp eax, edi
jl 0x446170
push dword [ebp + 0x10]
lea ecx, [esi + 0x10]
push edi
push dword [edx]
call fcn.00446b30
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x453710
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47f4bd
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x4b3570]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov byte [esi + 0x58], 1
call fcn.00453bf0
push 0x10
mov byte [esi + 0xa8], 0
call fcn.00471d99
add esp, 4
test eax, eax
je 0x453768
mov dword [eax], esi
mov dword [eax + 8], 0x4537e0
mov dword [eax + 0xc], 0
jmp 0x45376a
xor eax, eax
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x424ce0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x4537cc
cmp dword [esi + 0xb0], 0
je 0x4537a5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
mov eax, dword [ebp - 0x14]
push 0xa
mov dword [esi + 0xac], ecx
mov dword [esi + 0xb0], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 6
mov dword [ebp - 0x14], 0
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x453bf0
Capabilities:
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x30], 0
cmp dword [edi + 0x84], 0x10
lea esi, [edi + 0x70]
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movlpd qword [ebp - 0x20], xmm0
mov edx, esi
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x24], 0x11
jb 0x453c33
mov edx, dword [esi]
cmp dword [edi + 0x9c], 0x10
push ebx
lea ebx, [edi + 0x88]
mov ecx, ebx
jb 0x453c47
mov ecx, dword [ebx]
lea eax, [edi + 0xa0]
push eax
lea eax, [ebp - 0x30]
push eax
push edx
push ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x453d78
mov eax, dword [edi + 0xa0]
test eax, eax
je 0x453d78
push 0
push 2
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 0xa4], eax
cmp eax, 0xffffffff
je 0x453d78
lea ecx, [ebp - 4]
mov dword [ebp - 4], 1
push ecx
push 0x8004667e
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [edi + 0xa0]
push dword [eax + 0x10]
push dword [eax + 0x18]
push dword [edi + 0xa4]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x453d32
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push 0x4838ac
push dword [eax]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
add esp, 4
push eax
push 0x4836a0
push esi
push str._port
push ebx
push str.UDP:_binding_to
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.004134d0
add esp, 8
push eax
call fcn.004134a0
add esp, 8
push eax
call fcn.004134d0
add esp, 8
push eax
call fcn.004134a0
add esp, 8
push eax
call fcn.004134d0
add esp, 8
push eax
call fcn.004134d0
add esp, 8
push eax
call fcn.004134d0
add esp, 8
push str.UDP:_cannot_bind_to_port.
jmp 0x453d7d
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.UDP:_server_opened_at_port
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.004134d0
add esp, 8
mov ecx, esi
cmp dword [esi + 0x14], 0x10
pop ebx
jb 0x453d58
mov ecx, dword [esi]
push 0x4142c0
push dword [esi + 0x10]
push ecx
push eax
call fcn.00413dc0
add esp, 0xc
mov ecx, eax
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___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.UDP:_cannot_create_socket.
lea ecx, [ebp - 0x10]
call fcn.004164e0
push 0x48fc64
lea eax, [ebp - 0x10]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x45baa0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
xor esi, esi
add ebx, 0xfffffffd
push edi
mov edi, dword [ebp + 0x1c]
lea ecx, [esi + 1]
cmp ebx, ecx
jbe 0x45bad4
nop dword [eax + eax]
cmp edi, 0x10
lea eax, [ebp + 8]
cmovae eax, edx
movsx eax, byte [eax + ecx]
inc ecx
xor esi, eax
cmp ecx, ebx
jb 0x45bac0
cmp edi, 0x10
jb 0x45bb04
inc edi
mov eax, edx
cmp edi, 0x1000
jb 0x45bafa
mov edx, dword [eax - 4]
add edi, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x45bafa
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edi
push edx
call fcn.00471dc9
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x18
Function at 0x461010
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4753ed
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4b3570]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push esi
mov dword [ebp - 0x10], esi
call sub.MSVCP140.dll__Mtx_lock
add esp, 4
test eax, eax
jne 0x46110b
mov edx, dword [esi + 0x30]
mov dword [ebp - 4], eax
cmp edx, 0xffffffff
je 0x4610ca
mov eax, dword [esi + 0x4c]
xor ecx, ecx
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
cmp eax, dword [esi + 0x50]
jne 0x4610ed
push ecx
push ebx
push edi
push edx
call dword [sym.imp.WS2_32.dll_send]
mov ecx, eax
test ecx, ecx
jns 0x4610ed
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4610eb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push 0x4142c0
push dword [eax]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
add esp, 4
push eax
push str.TCP_Connection:_error_message_to_client:
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.004134d0
add esp, 8
push eax
call fcn.004134d0
add esp, 8
mov ecx, eax
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___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, esi
call fcn.00460970
xor bl, bl
push esi
call sub.MSVCP140.dll__Mtx_unlock
add esp, 4
mov al, bl
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
xor ecx, ecx
cmp ecx, ebx
jge 0x461107
lea eax, [ecx + edi]
sub edi, eax
sub edi, ecx
lea ecx, [esi + 0x4c]
add edi, ebx
push edi
push eax
push dword [esi + 0x50]
call fcn.00460610
mov bl, 1
jmp 0x4610cc
push eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
int3
Function at 0x461130
Capabilities:
Connect socket
Get process heap force flags
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4803d5
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4b3570]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp + 8]
mov dword [ebp - 4], 1
push eax
call fcn.00419680
lea eax, [ebp + 0x20]
push eax
lea ecx, [edi + 0x18]
call fcn.00419680
cmp dword [ebp + 0x34], 0x10
lea edx, [ebp - 0x10]
mov al, byte [ebp + 0x38]
lea ecx, [ebp + 0x20]
cmovae ecx, dword [ebp + 0x20]
xorps xmm0, xmm0
cmp dword [ebp + 0x1c], 0x10
mov ebx, dword [ebp + 0x3c]
push edx
mov byte [edi + 0x30], al
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp + 8]
mov dword [edi + 0x38], ebx
cmovae eax, dword [ebp + 8]
push ecx
push eax
mov dword [ebp - 0x34], 0
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], 6
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x461200
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x461200
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 0x3c], eax
cmp eax, 0xffffffff
jne 0x46127c
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
xor bl, bl
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x461232
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x461228
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x461276
push ecx
push edx
call fcn.00471dc9
add esp, 8
mov ecx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp ecx, 0x10
jb 0x46130a
mov edx, dword [ebp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x461300
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x461300
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp byte [edi + 0x30], 0
je 0x461299
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push ecx
push 0x8004667e
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov dword [edi + 0x48], eax
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [edi + 0x4c], edx
push dword [eax + 0x10]
push dword [eax + 0x18]
push dword [edi + 0x3c]
call dword [sym.imp.WS2_32.dll_connect]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp esi, 0xffffffff
je 0x4612da
mov dword [edi + 0x40], 2
mov bl, 1
jmp 0x461202
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, edi
cmp eax, 0x2733
je 0x4612f3
call fcn.00461320
jmp 0x461200
push ebx
call fcn.00461350
mov bl, al
jmp 0x461202
push ecx
push edx
call fcn.00471dc9
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x38