joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478dfa
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov ebp, dword [esp + 0x34]
mov esi, ecx
cmp dl, 4
jne 0x478e6a
mov eax, dword [0x4f31f4]
cmp eax, 3
jne 0x478f61
cmp word [ebp], 0
push 2
pop eax
push 0x17
pop ebx
cmove ebx, eax
push 0x81
push 0
push 0
push 0
push 2
push ebx
call dword [sym.imp.ws2_32.dll_WSASocketW]
mov edi, eax
cmp eax, 0xffffffff
je 0x478e85
cmp word [ebp], 0
je 0x478ede
mov eax, dword [ebp + 0x18]
movups xmm0, xmmword [ebp + 4]
lea ecx, [ebp + 0x14]
add ebp, 0x1c
mov dword [esp], eax
push 0x1c
pop eax
mov bx, 0x17
jmp 0x478eee
mov eax, edx
shr eax, 8
mov word [esi + 1], ax
mov eax, edx
shr eax, 0x18
mov byte [esi + 3], al
mov byte [esi], dl
mov dword [esi + 4], ebp
jmp 0x478f59
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x478e9d
cmp eax, 0x2726
jne 0x478f4a
push 1
push 0
push 0
push 0
push 2
push ebx
call dword [sym.imp.ws2_32.dll_WSASocketW]
cmp eax, 0xffffffff
je 0x478f44
mov edi, eax
push 0
push 1
push eax
call dword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
jne 0x478e43
call sub.kernel32.dll_GetLastError
mov ebx, eax
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
mov eax, ebx
jmp 0x478f4a
lea ecx, [ebp + 2]
add ebp, 6
push 0x10
pop eax
mov bx, 2
xorps xmm0, xmm0
movzx ebp, word [ebp]
lea edx, [esp + 4]
mov ecx, dword [ecx]
mov word [edx], bx
mov ebx, dword [esp]
rol bp, 8
mov word [edx + 2], bp
mov dword [edx + 4], ecx
movups xmmword [edx + 8], xmm0
mov dword [edx + 0x18], ebx
push eax
push edx
push edi
call dword [sym.imp.ws2_32.dll_bind]
cmp eax, 0xffffffff
je 0x478f26
mov dword [esi + 4], edi
mov byte [esi], 4
jmp 0x478f59
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
xor ecx, ecx
mov byte [esi], cl
and word [esi + 1], 0
mov byte [esi + 3], cl
mov dword [esi + 4], eax
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
jmp 0x478f59
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
and word [esi + 1], 0
xor ecx, ecx
mov byte [esi + 3], cl
mov byte [esi], cl
mov dword [esi + 4], eax
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.0049ccb0
jmp 0x478e1a

Function at 0x479370
Capabilities:
Set socket configuration

Disassembly:
push esi
mov esi, ecx
lea eax, [esp + 0xc]
push 4
push eax
push dword [esp + 0x10]
push 0xffff
push edx
call dword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x479394
mov byte [esi], 4
jmp 0x47939f
call sub.kernel32.dll_GetLastError
and dword [esi], 0
mov dword [esi + 4], eax
pop esi
ret
Function at 0x479400
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4951f0
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
movzx eax, byte [0x4f31fc]
test al, al
je 0x4795d1
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x47944c
cmp eax, 3
jne 0x4795ca
mov ebx, dword [0x4f3200]
test ebx, ebx
je 0x4795ca
mov dword [ebp - 0x20], 0
jmp 0x479477
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4794a8
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x47961b
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x479470
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x479470
test byte [ebp - 0x20], 1
je 0x4795ca
mov ebx, dword [0x4f3200]
test ebx, ebx
je 0x4795ca
mov dword [ebp - 0x20], 0
jmp 0x4794d7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x479508
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x47961b
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x4794d0
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x4794d0
test byte [ebp - 0x20], 1
je 0x4795ca
mov ebx, dword [0x4f3200]
test ebx, ebx
je 0x4795ca
mov dword [ebp - 0x20], 0
jmp 0x479537
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x479568
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x47961b
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x479530
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x479530
test byte [ebp - 0x20], 1
je 0x4795ca
mov ebx, dword [0x4f3200]
test ebx, ebx
je 0x4795ca
mov dword [ebp - 0x20], 0
jmp 0x479597
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4795c4
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x47961b
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x479590
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x479590
test byte [ebp - 0x20], 1
jne 0x4795e4
movzx eax, byte [0x4f0440]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov ebx, dword [0x4f3200]
jmp 0x4795ef
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4795ca
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x47961b
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x4795ec
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
jmp 0x4795ec
mov dword [ebp - 0x10], 0
mov ecx, str.called__Option::unwrap____on_a__None__value
mov edx, 0x2b
push 0x4c7a54
call fcn.0049a440
add esp, 4
ud2
Function at 0x47a370
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x4f3068]
test eax, eax
je 0x47a428
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x47a39c
cmp dword [eax + 4], 0
mov edi, eax
je 0x47a39c
add edi, 8
jmp 0x47a423
mov eax, dword [0x4f3068]
test eax, eax
je 0x47a437
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x47a421
mov esi, eax
test eax, eax
jne 0x47a3f7
movzx eax, byte [0x4f3270]
mov ecx, 0xc
mov edx, 4
call fcn.0040e870
test eax, eax
je 0x47a452
mov dword [eax], 0x4f3068
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x4f3068]
test eax, eax
je 0x47a446
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ecx, dword [esi + 8]
cmp dword [esi + 4], 0
lea edi, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
je 0x47a423
test ecx, ecx
je 0x47a423
lock dec dword [ecx]
jne 0x47a423
call fcn.00479ef0
jmp 0x47a423
xor edi, edi
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0x4f3068
call fcn.0049c6e0
jmp 0x47a380
mov ecx, 0x4f3068
call fcn.0049c6e0
jmp 0x47a3aa
mov ecx, 0x4f3068
call fcn.0049c6e0
jmp 0x47a3ef
mov ecx, 4
mov edx, 0xc
call fcn.0049a0b0
ud2

Function at 0x47a990
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov eax, dword [0x4f3078]
test eax, eax
je 0x47aa14
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x47a9af
cmp byte [eax + 4], 0
mov esi, eax
jne 0x47aa09
mov eax, dword [0x4f3078]
test eax, eax
je 0x47aa23
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x47aa0e
mov esi, eax
test eax, eax
jne 0x47aa03
movzx eax, byte [0x4f3270]
mov ecx, 8
mov edx, 4
call fcn.0040e870
test eax, eax
je 0x47aa3b
mov dword [eax], 0x4f3078
mov byte [eax + 4], 0
mov esi, eax
mov eax, dword [0x4f3078]
test eax, eax
je 0x47aa2f
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov word [esi + 4], 1
add esi, 5
jmp 0x47aa10
xor esi, esi
mov eax, esi
pop esi
ret
mov ecx, 0x4f3078
call fcn.0049c6e0
jmp 0x47a99b
mov ecx, 0x4f3078
call fcn.0049c6e0
jmp 0x47a9b9
mov ecx, 0x4f3078
call fcn.0049c6e0
jmp 0x47a9fb
mov ecx, 4
mov edx, 8
call fcn.0049a0b0
ud2
Function at 0x47b6e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov eax, dword [0x4f3058]
test eax, eax
je 0x47b778
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x47b706
cmp dword [eax + 4], 0
je 0x47b706
add eax, 8
pop esi
ret
mov eax, dword [0x4f3058]
test eax, eax
je 0x47b787
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x47b774
mov esi, eax
test eax, eax
jne 0x47b75d
movzx eax, byte [0x4f3270]
mov ecx, 0x10
mov edx, 4
call fcn.0040e870
test eax, eax
je 0x47b7a2
mov dword [eax], 0x4f3058
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x4f3058]
test eax, eax
je 0x47b796
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
lea eax, [esi + 8]
mov byte [esi + 0xc], 0
pop esi
ret
xor eax, eax
pop esi
ret
mov ecx, 0x4f3058
call fcn.0049c6e0
jmp 0x47b6ef
mov ecx, 0x4f3058
call fcn.0049c6e0
jmp 0x47b710
mov ecx, 0x4f3058
call fcn.0049c6e0
jmp 0x47b755
mov ecx, 4
mov edx, 0x10
call fcn.0049a0b0
ud2

Function at 0x47c4e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, esp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], esp
mov dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x34], 0x495380
lea eax, [esi + 0x30]
mov ecx, dword fs:[0]
mov dword [esi + 0x30], ecx
mov dword fs:[0], eax
lea eax, [esi + 8]
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
push eax
call dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
test eax, eax
je 0x47c5f8
mov eax, dword [esi + 8]
mov ebx, dword [esi + 0xc]
mov dword [esi], eax
call fcn.0047c870
mov ecx, eax
or ecx, edx
je 0x47c5df
push edx
push eax
push ebx
push dword [esi]
mov edi, edx
mov dword [esi + 0x20], edx
mov dword [esi + 0x1c], eax
call fcn.00495ac0
mov ecx, edi
mov edi, dword [esi + 0x1c]
mov dword [esi + 4], edx
mov dword [esi + 0x24], eax
imul ecx, eax
mul edi
add edx, ecx
mov ecx, edi
imul ecx, dword [esi + 4]
add ecx, edx
mov edx, dword [esi]
sub edx, eax
sbb ebx, ecx
mov eax, edx
imul ecx, ebx, 0x3b9aca00
mov ebx, 0x3b9aca00
mul ebx
add edx, ecx
push dword [esi + 0x20]
push edi
push edx
push eax
call fcn.00495ac0
mov ebx, eax
mov eax, dword [esi + 0x24]
mov ecx, edx
mov edx, 0x3b9aca00
mul edx
mov edi, eax
imul eax, dword [esi + 4], 0x3b9aca00
add eax, edx
add edi, ebx
adc eax, ecx
push 0
push 0x3b9aca00
push eax
push edi
call fcn.00495ac0
imul ecx, eax, 0xc4653600
add ecx, edi
mov edi, dword [esi + 0x30]
mov dword fs:[0], edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0x4c5c40
mov edx, 0x19
push 0x4c6e84
call fcn.0049a440
add esp, 4
ud2
call sub.kernel32.dll_GetLastError
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x38], 0
lea eax, [esi + 0x14]
mov ecx, str.called__Result::unwrap____on_an__Err__value
mov edx, 0x2b
push 0x4c7b50
push 0x4c5ed4
push eax
call fcn.0049a6f0
add esp, 0xc
ud2
Function at 0x482570
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x4f3088]
test eax, eax
je 0x482628
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x48259c
cmp dword [eax + 4], 0
mov edi, eax
je 0x48259c
add edi, 8
jmp 0x482623
mov eax, dword [0x4f3088]
test eax, eax
je 0x482637
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x482621
mov esi, eax
test eax, eax
jne 0x4825f7
movzx eax, byte [0x4f3270]
mov ecx, 0xc
mov edx, 4
call fcn.0040e870
test eax, eax
je 0x482652
mov dword [eax], 0x4f3088
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x4f3088]
test eax, eax
je 0x482646
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ecx, dword [esi + 8]
cmp dword [esi + 4], 0
lea edi, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
je 0x482623
test ecx, ecx
je 0x482623
lock dec dword [ecx]
jne 0x482623
call fcn.00482670
jmp 0x482623
xor edi, edi
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0x4f3088
call fcn.0049c6e0
jmp 0x482580
mov ecx, 0x4f3088
call fcn.0049c6e0
jmp 0x4825aa
mov ecx, 0x4f3088
call fcn.0049c6e0
jmp 0x4825ef
mov ecx, 4
mov edx, 0xc
call fcn.0049a0b0
ud2

Function at 0x483230
Capabilities:
Resolve dns

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1b4
mov edi, dword [edx]
mov ebp, dword [edx + 4]
movzx ebx, word [edx + 8]
mov eax, dword [0x4f31f4]
mov esi, ecx
cmp eax, 3
jne 0x483315
cmp ebp, 0x17f
ja 0x483326
mov dword [esp + 4], ebx
lea ebx, [esp + 0x34]
push ebp
push edi
push ebx
call fcn.00496450
add esp, 0xc
mov byte [esp + ebp + 0x34], 0
inc ebp
lea ecx, [esp + 8]
mov edx, ebx
push ebp
call fcn.004136c0
add esp, 4
cmp dword [esp + 8], 0
je 0x4832a7
mov eax, dword [0x4c6c40]
mov ecx, dword [0x4c6c44]
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov dword [esi], 1
jmp 0x48330a
mov eax, dword [esp + 0xc]
xorps xmm0, xmm0
mov ecx, esp
mov dword [esp], 0
lea edx, [esp + 0x14]
movups xmmword [esp + 0x14], xmm0
movups xmmword [esp + 0x24], xmm0
mov dword [esp + 0x1c], 1
push ecx
push edx
push 0
push eax
call dword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x4832f5
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov ecx, 1
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov dword [esi], ecx
jmp 0x48330a
mov eax, dword [esp]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov eax, dword [esp + 4]
mov word [esi + 0xc], ax
xor eax, eax
mov dword [esi], eax
add esp, 0x1b4
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.0049ccb0
cmp ebp, 0x17f
jbe 0x48325f
mov ecx, esi
mov edx, edi
push ebx
push ebp
call fcn.0049cd00
add esp, 0x1bc
jmp 0x483310
Function at 0x483cf0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, esp
mov dword [esi + 0x48], ebp
mov dword [esi + 0x4c], esp
mov dword [esi + 0x58], 0xffffffff
mov dword [esi + 0x54], 0x495500
mov edi, ecx
lea eax, [esi + 0x50]
xorps xmm0, xmm0
mov ecx, dword fs:[0]
mov dword [esi + 0x50], ecx
mov dword fs:[0], eax
movaps xmmword [esi + 0x10], xmm0
lea eax, [esi + 0x10]
push 0x10
push eax
call dword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x483d6e
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x50]
mov dword fs:[0], eax
mov dword [edi + 0xc], ebx
mov dword [edi + 8], edx
mov dword [edi + 4], ecx
mov eax, dword [esi + 4]
mov dword [edi], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.kernel32.dll_GetLastError
lea edx, [esi + 8]
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], 0x4c76a4
mov dword [esi + 0x34], 1
mov dword [esi + 0x40], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], eax
mov dword [esi + 0x58], 0
mov dword [esi + 0x28], edx
mov dword [esi + 0x38], ecx
lea ecx, [esi + 0x30]
mov edx, 0x4c76d0
mov dword [esi + 0x2c], fcn.00480b50
mov dword [esi + 0x3c], 1
call fcn.0049a2c0
ud2
Function at 0x486960
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov eax, dword [0x4f3098]
test eax, eax
je 0x486a45
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x486991
mov esi, eax
mov eax, dword [eax]
or eax, dword [esi + 4]
jne 0x486a3a
mov eax, dword [0x4f3098]
test eax, eax
je 0x486a54
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x486a17
mov esi, eax
test eax, eax
jne 0x4869f7
movzx eax, byte [0x4f3270]
mov ecx, 0x20
mov edx, 8
call fcn.0040e870
test eax, eax
je 0x486a6f
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0x18], 0x4f3098
mov esi, eax
mov eax, dword [0x4f3098]
test eax, eax
je 0x486a63
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
xorps xmm0, xmm0
mov eax, esp
movaps xmmword [esp], xmm0
push 2
push 0x10
push eax
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x486a1b
movaps xmm0, xmmword [esp]
jmp 0x486a29
xor esi, esi
jmp 0x486a3d
lea ecx, [esp + 0x10]
call fcn.00483cf0
movups xmm0, xmmword [esp + 0x10]
mov dword [esi + 4], 0
mov dword [esi], 1
movups xmmword [esi + 8], xmm0
add esi, 8
mov eax, esi
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov ecx, 0x4f3098
call fcn.0049c6e0
jmp 0x486978
mov ecx, 0x4f3098
call fcn.0049c6e0
jmp 0x48699f
mov ecx, 0x4f3098
call fcn.0049c6e0
jmp 0x4869ef
mov ecx, 8
mov edx, 0x20
call fcn.0049a0b0
ud2
Function at 0x48c1f6
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx]
mov edx, eax
xor edx, 3
lock cmpxchg dword [ecx], edx
jne 0x48c1f8
test al, 1
je 0x48c20f
test al, 2
jne 0x48c21e
xor eax, 3
ret
push 0x23
pop edx
mov ecx, str.assertion_failed:_prev.is_running__
push 0x4ca654
jmp 0x48c22b
push 0x25
pop edx
mov ecx, 0x4ca664
push 0x4ca68c
call fcn.0049a440
pop eax
ud2

Function at 0x48ca6d
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
push eax
mov bl, byte [esp + 0x10]
mov esi, ecx
mov ecx, edx
call fcn.0048ba63
mov eax, dword [eax]
movzx ecx, bl
mov edx, esp
mov dword [edx], ecx
push 4
push edx
push 1
push 6
push eax
call dword [sym.imp.ws2_32.dll_setsockopt]
mov cl, 4
cmp eax, 0xffffffff
jne 0x48caaf
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
and word [esi + 1], 0
xor ecx, ecx
mov byte [esi + 3], 0
mov dword [esi + 4], eax
mov byte [esi], cl
add esp, 4
pop esi
pop ebx
ret
Function at 0x48cd0c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x34
mov dword [esp], ecx
xor ecx, ecx
mov eax, dword [esp + 0x50]
cmp dword [edx + 0xc], 0xffffffff
lea ebp, [edx + 0xc]
mov edi, 0x7fffffff
mov esi, edx
mov dword [esp + 0x24], edx
cmove ebp, ecx
cmp eax, edi
cmovb edi, eax
mov dword [esp + 0x28], edi
lea edi, [esp + 0xc]
mov edx, dword [esi + 8]
mov ecx, edi
push dword [esp + 0x48]
call fcn.0048ca5f
pop eax
mov edx, dword [esp + 0xc]
cmp edx, 2
je 0x48ce7d
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
test edx, edx
jne 0x48ce85
mov dword [esp + 0x2c], ecx
mov ecx, ebp
mov edx, 0x4c8d50
mov dword [esp + 0x30], eax
call fcn.0042c613
push 0
push dword [esp + 0x2c]
push dword [esp + 0x54]
push dword [ebp]
call dword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
je 0x48cda4
mov dword [esp + 8], eax
mov byte [esp + 4], 4
jmp 0x48ce38
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov esi, eax
xor eax, eax
lea ecx, [esp + 4]
mov byte [esp + 4], al
and word [esp + 5], 0
mov byte [esp + 7], al
mov dword [esp + 8], esi
call fcn.0041be74
cmp al, 0xd
jne 0x48ce38
mov eax, dword [ebp + 4]
test eax, eax
je 0x48ce2b
mov dword [esp + 0x20], esi
mov esi, dword [eax + 4]
mov edx, dword [eax]
lock inc dword [esi]
jle 0x48cea7
add edx, 8
mov ecx, edi
push dword [eax + 0xc]
push dword [eax + 8]
push esi
call fcn.004356ad
add esp, 0xc
push 4
pop ecx
call fcn.00478f78
cmp byte [esp + 0xc], 4
je 0x48ce38
mov ebx, dword [esp + 0xc]
mov edx, dword [esp + 0x20]
cmp bl, 4
je 0x48ce38
mov esi, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], esi
call fcn.00478f78
jmp 0x48ce4d
and dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov ebx, dword [esp + 4]
mov esi, dword [esp + 8]
cmp bl, 4
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ebx
je 0x48ce8f
lea ecx, [esp + 0x18]
call fcn.00487834
cmp al, 0xd
jne 0x48ce97
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x24]
lea edx, [esp + 0x2c]
mov dword [esp + 0xc], ebx
mov ecx, esi
call fcn.0048c86a
push edi
call fcn.004877f8
pop eax
jmp 0x48cd3e
mov eax, dword [esp]
mov byte [eax], 5
jmp 0x48ce9f
mov edx, dword [esp]
mov dword [edx], ecx
mov dword [edx + 4], eax
jmp 0x48ce9f
mov eax, dword [esp]
mov byte [eax], 4
jmp 0x48ce9c
mov eax, dword [esp]
mov dword [eax], ebx
mov dword [eax + 4], esi
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
ud2
Function at 0x495fd2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
test eax, eax
je 0x496011
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x496011
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x496011
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x496011
cmp dword [ecx + 0x74], 0xe
jbe 0x496011
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x499fb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x499fdd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x499fdd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x49c6e0
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
push edi
push esi
sub esp, 0x20
cmp dword [ecx + 4], 0
mov esi, ecx
je 0x49c761
lea ebx, [esi + 0xc]
mov dword [esp + 4], 0
lea eax, [esp + 4]
push 0
push eax
push 0
push ebx
call dword [sym.imp.kernel32.dll_InitOnceBeginInitialize]
cmp eax, 1
mov dword [esp], eax
jne 0x49c79c
cmp dword [esp + 4], 0
je 0x49c783
call dword [sym.imp.kernel32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x49c7bf
mov edi, eax
inc eax
mov dword [esi], eax
mov eax, dword [0x4f3200]
nop word cs:[eax + eax]
nop
mov dword [esi + 8], eax
lock cmpxchg dword [0x4f3200], esi
jne 0x49c740
mov byte [0x4f31fc], 1
push 0
push 0
push ebx
call dword [sym.imp.kernel32.dll_InitOnceComplete]
jmp 0x49c793
call dword [sym.imp.kernel32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esp], eax
je 0x49c802
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [esi], ecx
jne 0x49c787
mov edi, dword [esp]
jmp 0x49c793
mov edi, dword [esi]
jmp 0x49c792
mov edi, eax
push dword [esp]
call dword [sym.imp.kernel32.dll_TlsFree]
dec edi
mov eax, edi
add esp, 0x20
pop esi
pop edi
pop ebx
ret
mov dword [esp + 8], 0
lea eax, [esp + 8]
mov ecx, esp
mov edx, 0x4c79d0
push 0x4c7a30
push eax
call fcn.0049c840
add esp, 8
ud2
push 0
push 4
push ebx
call dword [sym.imp.kernel32.dll_InitOnceComplete]
lea ecx, [esp + 8]
mov edx, 0x4c7a20
mov dword [esp + 8], 0x4c79e8
mov dword [esp + 0xc], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0x4ef03c
mov dword [esp + 0x14], 0
call fcn.0049a2c0
ud2
mov ecx, esp
lea edx, [esp + 8]
mov dword [esp + 8], 0x4c79e8
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 0x4ef03c
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.0049c880
ud2

Function at 0x49cd00
Capabilities:
Resolve dns

Disassembly:
push ebx
push edi
push esi
sub esp, 0x34
mov esi, ecx
lea ecx, [esp + 4]
push dword [esp + 0x44]
call fcn.0040ff10
add esp, 4
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x49cd40
mov eax, dword [0x4c6c40]
mov edx, dword [0x4c6c44]
cmp dword [esp + 8], 0
mov dword [esi + 8], edx
mov dword [esi + 4], eax
mov dword [esi], 1
jne 0x49cdaf
jmp 0x49cdb9
mov edi, dword [esp + 8]
mov ebx, dword [esp + 0xc]
xorps xmm0, xmm0
mov eax, esp
mov dword [esp], 0
lea ecx, [esp + 0x14]
movups xmmword [esp + 0x14], xmm0
movups xmmword [esp + 0x24], xmm0
mov dword [esp + 0x1c], 1
push eax
push ecx
push 0
push edi
call dword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x49cd90
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov eax, 1
jmp 0x49cda4
mov ecx, dword [esp]
movzx eax, word [esp + 0x48]
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov word [esi + 0xc], ax
xor eax, eax
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
je 0x49cdb9
mov ecx, edi
mov edx, 1
call fcn.0040e8d0
add esp, 0x34
pop esi
pop edi
pop ebx
ret