joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44c470
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 0x44c4d7
mov eax, dword [edx + 8]
sub eax, dword [edx]
sar eax, 2
cmp edi, eax
jbe 0x44c4b4
lea eax, [ebp - 1]
mov ecx, edx
push eax
push edi
call fcn.0044c3d0
mov edx, dword [ebp - 0xc]
jmp 0x44c4d7
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 0x44c576
movss xmm6, dword [0x48ba60]
movss xmm7, dword [0x48ba28]
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 0x44c500
push dword [ebp + 0x10]
lea ecx, [esi + 0x10]
push edi
push dword [edx]
call fcn.0044cec0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x45a0c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483acd
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x4b3af4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov byte [esi + 0x50], 1
call fcn.0045a550
push 0x10
mov byte [esi + 0xa0], 0
call fcn.0047604b
add esp, 4
test eax, eax
je 0x45a118
mov dword [eax], esi
mov dword [eax + 8], 0x45a190
mov dword [eax + 0xc], 0
jmp 0x45a11a
xor eax, eax
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x423760
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 0x45a17c
cmp dword [esi + 0xa8], 0
je 0x45a155
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
mov eax, dword [ebp - 0x14]
push 0xa
mov dword [esi + 0xa4], ecx
mov dword [esi + 0xa8], 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 0x45a550
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 + 0x7c], 0x10
lea esi, [edi + 0x68]
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 0x45a590
mov edx, dword [esi]
cmp dword [edi + 0x94], 0x10
push ebx
lea ebx, [edi + 0x80]
mov ecx, ebx
jb 0x45a5a4
mov ecx, dword [ebx]
lea eax, [edi + 0x98]
push eax
lea eax, [ebp - 0x30]
push eax
push edx
push ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x45a6d5
mov eax, dword [edi + 0x98]
test eax, eax
je 0x45a6d5
push 0
push 2
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 0x9c], eax
cmp eax, 0xffffffff
je 0x45a6d5
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 + 0x98]
push dword [eax + 0x10]
push dword [eax + 0x18]
push dword [edi + 0x9c]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x45a68f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push 0x487988
push dword [eax]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
add esp, 4
push eax
push 0x487760
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.00413270
add esp, 8
push eax
call fcn.00413240
add esp, 8
push eax
call fcn.00413270
add esp, 8
push eax
call fcn.00413240
add esp, 8
push eax
call fcn.00413270
add esp, 8
push eax
call fcn.00413270
add esp, 8
push eax
call fcn.00413270
add esp, 8
push str.UDP:_cannot_bind_to_port.
jmp 0x45a6da
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.00413270
add esp, 8
mov ecx, esi
cmp dword [esi + 0x14], 0x10
jb 0x45a6b4
mov ecx, dword [esi]
push 0x4140e0
push dword [esi + 0x10]
push ecx
push eax
call fcn.00413ba0
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 ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.UDP:_cannot_create_socket.
lea ecx, [ebp - 0x10]
call fcn.004160f0
push 0x493c0c
lea eax, [ebp - 0x10]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x460e50
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 0x460e84
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 0x460e70
cmp edi, 0x10
jb 0x460eb4
inc edi
mov eax, edx
cmp edi, 0x1000
jb 0x460eaa
mov edx, dword [eax - 4]
add edi, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x460eaa
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edi
push edx
call fcn.0047607b
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x18
Function at 0x465da0
Capabilities:
Connect socket
Get process heap force flags
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4845b5
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4b3af4]
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.00418ec0
lea eax, [ebp + 0x20]
push eax
lea ecx, [edi + 0x18]
call fcn.00418ec0
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 0x465e70
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x465e70
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 0x465eec
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
xor bl, bl
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x465ea2
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x465e98
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x465ee6
push ecx
push edx
call fcn.0047607b
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 0x465f7a
mov edx, dword [ebp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x465f70
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x465f70
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp byte [edi + 0x30], 0
je 0x465f09
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 0x465f4a
mov dword [edi + 0x40], 2
mov bl, 1
jmp 0x465e72
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, edi
cmp eax, 0x2733
je 0x465f63
call fcn.00465f90
jmp 0x465e70
push ebx
call fcn.00465fc0
mov bl, al
jmp 0x465e72
push ecx
push edx
call fcn.0047607b
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
Function at 0x465fc0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4b3af4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x40], 2
je 0x466076
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 0x3c]
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x21c]
push eax
push 0
lea eax, [ebp - 0x108]
mov dword [ebp - 0x208], ecx
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x20c], 1
push eax
lea eax, [ecx + 1]
mov dword [ebp - 0x104], ecx
push eax
mov dword [ebp - 0x108], 1
mov dword [ebp - 0x218], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x466089
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 4
push eax
lea eax, [ebp - 0x214]
push eax
push 0x1007
push 0xffff
push dword [esi + 0x3c]
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp dword [ebp - 0x214], 0
jne 0x466090
mov dword [esi + 0x40], 2
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004762da
mov esp, ebp
pop ebp
ret 4
mov dword [esi + 0x40], 1
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.004762da
mov esp, ebp
pop ebp
ret 4
Function at 0x466600
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
call fcn.00466910
cmp dword [edi + 0x40], 2
jne 0x4666fc
mov esi, dword [ebp + 0xc]
push 0
push esi
push dword [ebp + 8]
push dword [edi + 0x3c]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
jge 0x4666fe
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, dword [eax]
cmp ebx, 0x2733
je 0x4666fc
push str.TCP__
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.00413270
add esp, 8
mov ecx, edi
cmp dword [edi + 0x14], 0x10
jb 0x466662
mov ecx, dword [edi]
push dword [edi + 0x10]
push ecx
push eax
call fcn.00413ba0
push 0x48d644
push eax
call fcn.00413270
add esp, 0x14
lea ecx, [edi + 0x18]
cmp dword [edi + 0x2c], 0x10
jb 0x466686
mov ecx, dword [edi + 0x18]
push dword [edi + 0x28]
push ecx
push eax
call fcn.00413ba0
add esp, 0xc
mov esi, eax
push 0x48945c
push ebx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
add esp, 4
push eax
push 0x48ee5c
push ebx
push str._:_send_error._Error_code:
push esi
call fcn.00413270
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___int_]
push eax
call fcn.00413270
add esp, 8
push eax
call fcn.00413270
add esp, 8
push eax
call fcn.00413270
add esp, 8
cmp byte [edi + 0x30], 0
je 0x466705
mov ecx, edi
call fcn.004664f0
push str._Reconnect._n
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.00413270
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
push str._Failed._n
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.00413270
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x46f7c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48507e
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4b3af4]
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 eax, dword [ebp + 0xc]
lea ecx, [esi + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x30], edi
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0
call fcn.00418ec0
mov ecx, esi
mov dword [esi + 0x30], 0
call fcn.004703e0
push edi
mov ecx, esi
call fcn.0046f8d0
inc dword [esi + 0x30]
mov eax, dword [esi + 0x28]
sub eax, dword [esi + 0x24]
sar eax, 5
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 1
cmp dword [esi + 0x30], eax
jae 0x46f8a2
mov eax, dword [0x48f944]
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0xc
movq xmm0, qword [str.expected_END]
mov dword [ebp - 0x14], 0xf
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
push 0xc
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.0046f6b0
test al, al
je 0x46f8c1
mov eax, edi
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.004762da
mov esp, ebp
pop ebp
ret 8
push str.unexpected_end_in_input
lea ecx, [ebp - 0x28]
call fcn.004143f0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.0046f670
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0046f670
int3
Function at 0x472db0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4855ad
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x4b3af4]
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
cmp dword [esi + 0x80], 0x10
lea edi, [esi + 0x6c]
mov eax, edi
jb 0x472dec
mov eax, dword [edi]
push 0
push 0x40000000
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x68], eax
cmp eax, 0xffffffff
je 0x472f5c
lea ecx, [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCommState]
test eax, eax
je 0x472f55
mov eax, dword [esi + 0x84]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
and eax, 0xffffdfdf
mov word [ebp - 0x2e], 8
or eax, 0x1013
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x40]
push eax
push dword [esi + 0x68]
call dword [sym.imp.KERNEL32.dll_SetCommState]
test eax, eax
je 0x472f9f
lea eax, [ebp - 0x24]
push eax
push dword [esi + 0x68]
call dword [sym.imp.KERNEL32.dll_GetCommTimeouts]
test eax, eax
je 0x472f4e
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x7d0
push eax
push dword [esi + 0x68]
mov dword [ebp - 0x1c], 0x7d0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 0x7d0
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
test eax, eax
jne 0x472eaf
push str.Serial:_SetCommTimeouts_failed.
jmp 0x472fa4
push 0x10
mov byte [esi + 0x50], 1
mov byte [esi + 0x90], 0
call fcn.0047604b
add esp, 4
test eax, eax
je 0x472eda
mov dword [eax], esi
mov dword [eax + 8], 0x472fd0
mov dword [eax + 0xc], 0
jmp 0x472edc
xor eax, eax
mov dword [ebp - 0x80], eax
lea ecx, [ebp - 0x84]
mov dword [ebp - 4], 2
push ecx
push 0
push eax
push 0x423760
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 - 0x88], ecx
test ecx, ecx
je 0x472fba
cmp dword [esi + 0x8c], 0
je 0x472f21
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
mov eax, dword [ebp - 0x84]
mov dword [esi + 0x88], ecx
mov dword [esi + 0x8c], eax
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.004762da
mov esp, ebp
pop ebp
ret
push str.Serial:_GetCommTimeouts_failed.
jmp 0x472fa4
push str.Serial:_GetCommState_failed.
jmp 0x472fa4
push edi
lea eax, [ebp - 0x58]
push str.Serial:_cannot_open_serial_port
push eax
call fcn.00413670
push 0x489d90
push eax
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 0
push eax
call fcn.00413590
add esp, 0x18
push eax
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
call fcn.004160a0
push 0x493c0c
lea eax, [ebp - 0x7c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.Serial:_SetCommState_failed.
lea ecx, [ebp - 0x7c]
call fcn.004160f0
push 0x493c0c
lea eax, [ebp - 0x7c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push 6
mov dword [ebp - 0x84], 0
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x474cf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov edx, ecx
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 0x14]
mov ebx, 0xffff
shr ebx, cl
mov eax, ebx
mov dword [ebp - 4], edx
shl eax, 0x10
or ebx, eax
mov eax, dword [ebp + 0x10]
sar eax, 1
mov dword [ebp - 0xc], ebx
mov dword [ebp + 0x10], eax
test eax, eax
jle 0x474dd4
movss xmm1, dword [0x48b9cc]
push esi
push edi
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov esi, eax
add eax, dword [edx]
add ecx, 4
mov edi, eax
mov dword [ebp + 8], ecx
add eax, dword [edx + 4]
mov ecx, dword [ebp + 0x14]
mov ebx, eax
add eax, dword [edx + 8]
mov edx, dword [edx + 0xc]
add edx, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
add edx, dword [eax + 0x10]
shr edx, cl
and edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
xor edx, 0x80008000
movsx eax, dx
shr edx, 0x10
movd xmm0, eax
mov eax, dword [ebp + 0xc]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [eax + ecx*8], xmm0
movsx eax, dx
movd xmm0, eax
mov eax, dword [ebp + 0xc]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [eax + ecx*8 + 4], xmm0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
add eax, 4
mov dword [ebp + 8], eax
mov eax, dword [ebp - 4]
mov edx, eax
mov dword [eax], ecx
add ecx, esi
mov dword [eax + 4], ecx
add ecx, edi
mov dword [eax + 8], ecx
add ecx, ebx
mov dword [eax + 0xc], ecx
add ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x10]
mov dword [edx + 0x10], ecx
mov ecx, dword [ebp - 8]
inc ecx
mov dword [ebp - 8], ecx
cmp ecx, eax
jl 0x474d31
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x476e42
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x476e81
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x476e81
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x476e81
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x476e81
cmp dword [ecx + 0x74], 0xe
jbe 0x476e81
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x2a80c4de
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
call dword [sym.imp.kernel32.dll_GetTickCount]
mov esi, eax
shr esi, 4
call dword [sym.imp.kernel32.dll_GetTickCount]
shr eax, 4
sub eax, esi
cmp eax, 0xc
jbe 0x2a80c4ea
pop esi
ret

Function at 0x2a80d252
Capabilities:
Check if file exists

Disassembly:
push 0x64
mov eax, 0x2a84c785
call fcn.2a8015aa
mov ebx, ecx
cmp dword [ebx + 4], 0xffffffff
jne 0x2a80d393
push 0xffffffffffffffff
lea edi, [ebx + 0xc]
push 0x2a853564
mov ecx, edi
call fcn.2a838249
mov eax, dword [ebx]
push 0
push 0xffffffffffffffff
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x2a8523cc]
mov ecx, ebx
call esi
push eax
lea ecx, [ebp - 0x54]
call fcn.2a801558
and dword [ebp - 4], 0
lea eax, [ebp - 0x54]
push eax
mov ecx, edi
call fcn.2a8492f7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.2a803838
lea ecx, [ebp - 0x4c]
call fcn.2a80385d
push edi
lea ecx, [ebp - 0x3c]
call fcn.2a808c68
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 1
call fcn.2a849b38
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 2
push eax
call fcn.2a84a405
mov esi, eax
mov dword [ebp - 0x18], vtable.RSSecurityUtilsWin::CLocalFreeGuard.0
pop ecx
mov dword [ebp - 0x14], esi
mov ecx, dword [ebx + 8]
xor edi, edi
mov byte [ebp - 4], 3
cmp dword [ecx], edi
jne 0x2a80d358
lea ecx, [ebp - 0x3c]
call fcn.2a849b38
push edi
push 0x40110000
push 3
lea ecx, [ebp - 0x24]
push ecx
push edi
push 0xc0000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
jne 0x2a80d358
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
je 0x2a80d3af
cmp eax, 0xe7
jne 0x2a80d399
lea ecx, [ebp - 0x3c]
call fcn.2a849b38
push 0x4e20
push eax
call dword [sym.imp.kernel32.dll_WaitNamedPipeA]
test eax, eax
je 0x2a80d3be
mov eax, dword [ebx + 8]
cmp dword [eax], edi
je 0x2a80d2fe
cmp dword [ebx + 4], 0xffffffff
je 0x2a80d374
push edi
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 2
push eax
push dword [ebx + 4]
call dword [sym.imp.kernel32.dll_SetNamedPipeHandleState]
mov byte [ebp - 4], 6
test esi, esi
je 0x2a80d383
push esi
call dword [sym.imp.kernel32.dll_LocalFree]
lea ecx, [ebp - 0x2c]
call fcn.2a803838
lea ecx, [ebp - 0x34]
call fcn.2a80385d
call fcn.2a80187a
ret
push edi
push 0xffffffffffffffff
push str.Problem_Opening_channel
lea ecx, [ebp - 0x54]
call fcn.2a801558
mov byte [ebp - 4], 4
jmp 0x2a80d3d2
lea ecx, [ebp - 0x70]
call fcn.2a80cfd1
push 0x2a85afe8
jmp 0x2a80d3e3
push edi
push 0xffffffffffffffff
push str.Problem_Opening_channel__all_pipe_instances_are_busy
lea ecx, [ebp - 0x54]
call fcn.2a801558
mov byte [ebp - 4], 5
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x70]
call fcn.2a838249
push 0x2a85b040
lea eax, [ebp - 0x70]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3