joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404a60
Capabilities:
Encode data using xor
Initialize winsock library

Disassembly:
add al, byte [ecx]
jns 0x404a51
mov eax, dword [0x8a414322]
push eax
call fcn.00404e00
mov eax, dword [0xb9ba0201]
add byte [eax], al
add byte [eax], al
add byte [0x41f7e0], 0
add byte [eax], al
repz ret
ret
push ebp
mov ebp, esp
sub dword [ebx], 0xc
mov eax, dword [ebp + 0xc]
jne 0x404ac1
push edi
lea edx, [eax + 7]
and edx, 0x27
mov ecx, 0x8458bd0
mov dword [ebp + 0x4c], edx
jae 0x404a99
inc eax
and byte [edi - 0x40], bh
je 0xca77cd
push 0xc
rcl al, 1
add esp, 4
xor eax, eax
jo 0x404af0
pop ebx
jecxz 0x404a7a
pop ebp
ret 8
mov esi, dword [eax - 0x6f]
jo 0x404a2d
aad 0x4e
adc byte [ebx - 0x6c31282], cl
mov edi, 0x31086d7
rcr dword [edi - 0x77], 1
push esi
adc byte [esi - 0x75], bl
rcr dword [ebx - 0x75], 0xe5
pop ebp
push ds
or byte [eax], al
mov ecx, dword [esi]
jne 0x404b35
mov ebp, dword fs:[ebx]
adc byte [ebx], ch
sti
cmp edx, edi
sub ebx, dword [edx + 0x1d04418b]
cmp dword [ecx - 0x47fe74c8], ecx
jns 0x404ad6
push 0x78
jo 0x404ad9
add byte [eax], al
cli
add dl, bh
js 0x404a9a
shl esi, 1
pop ss
adc cl, bh
add byte [ecx - 0xfff1d], al
invalid
retf
jge 0x72553e7f
xchg edx, eax
Function at 0x4080f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
lea eax, [ebx + 0x50]
cmp eax, esp
jae 0x40808a
les esi, [ebx + 0x30]
push esi
sbb al, 0xf8
ret 0x40
outsb dx, byte [esi]
cmp edi, esi
jbe 0x408053
fstp st(0)
mov ss, word [ebx + 0x60]
cmp esi, edx
jb 0x4080a0
pop edi
invalid
ret
mov bl, byte [edi + 0x7b80c691]
add eax, 0x248de380
push ss
and byte [eax], ch
mov edi, dword [ecx]
sbb al, 0x3b
mov byte [esi], 0x97
jbe 0x408057
dec esi
inc byte [esi]
jmp 0x4080d1
cmp byte [esi], 0xca
jg 0x408085
lodsb al, byte [esi]
add byte [eax], al
pop edi
jae 0x40809f
int1
pop ebx
mov edx, dword [ebx]
pop ebp
ret
push ebp
mov edi, dword [esi - 0x74f3ba75]
dec ebp
or byte [ecx + 0x7d8b5756], al
adc al, 0x60
ror byte [ebx - 0x59ff8b06], 0x45
adc bh, al
push eax
jns 0x408184
add byte [eax], al
jmp 0x4080b8
or byte [ecx + 0xfb], al
xor byte [edx + 0x1b], 0xb3
leave
jne 0x4081ac
mov eax, dword [edi + edi*8 + 0x5014558b]
push edi
push edx
mov dword [0xff4f4d53], eax
inc dword [esi + 0x5f14f7d6]
pop ebx
pop ebp
in al, dx
mov ecx, 0x8b0ba3c9
dec ebp
adc al, 0xe4
add dword [eax], eax
add dl, al
jmp 0x4081da
mov ecx, dword [ebp + 0x14]
in al, 1
add byte [eax], al
ret 0xeb26
punpckhdq mm0, qword [eax]
push 0xa
jnp 0x408234
xchg ebp, eax
stosb byte es:[edi], al
add byte ss:[eax], al
cmp eax, ecx
mov esi, edx
mov al, cl
mov dl, 0xa
test byte [eax + ecx*4 - 0x18], 0x4f
add bl, 0x30
mov al, byte [0x1c1f88c2]
invalid
or al, 0x1a
fmul dword [ebp + 0x458d08cd]
or al, 0xea
mov ecx, ebx
push esi
insb byte es:[edi], dx
and ecx, 0xff
push 1
push ecx
dec ecx
pop ebp
cld
call fcn.004080f0
dec eax
lea edx, [ebp + 8]
push edx
push eax
mov eax, dword [0x45cd2e4e]
or al, 0x33
leave
push eax
mov cl, bh
push 0xffffffffffffff87
push ecx
call fcn.004029f0
dec eax
lea edx, [ebp + 8]
push edx
push eax
mov byte [eax], 0x2e
lea eax, [ebp + 0xc]
xor ecx, ecx
push eax
mov cl, byte [ebp - 2]
push 1
push ecx
call fcn.004080f0
dec eax
sti
push ebp
or byte [edx + 0x50], dl
adc ebx, esi
mov ecx, 0x140c4c8d
push 0x41
shr ebx, 0x1d
add al, ch
push edx
dec eax
invalid
Function at 0x408c70
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp - 0x7f]
test al, 0x8b
jne 0x408c83
push edi
mov edi, dword [ebp - 0x35]
or ch, cl
or eax, edi
jne 0x408cf9
mov edi, eax
and byte [ebp + 0x46], ah
and al, 0x6b
enter 0xffffffffffffef0f, 0xffffffffffffff89
add dword [eax], eax
mov dh, 0x50
push esi
add al, 0x52
call fcn.00408c20
add esp, 0x52
test eax, eax
push eax
mov byte [edi], cl
add byte [eax], al
pop edi
rcr dword [ebx + 0x5d], 0x8f
or al, 0x2a
test edi, edi
jl 0x408d51
jg 0x408cc0
test ebx, ebx
jbe 0x416547
mov eax, dword [esi + 0x20]
pop ebx
dec esi
jmp 0x408cf8
mov ebp, 0x8dfe519b
jle 0x408d17
wait
push ecx
dec byte [ebp - 0x7317e782]
sub byte [eax], al
add byte [ebx + 0x1d8b6b56], cl
mov eax, 0x6a0040c1
add al, 0x89
push 0xcc1014
push 0xffff
push edx
mov dword [edi], eax
call fcn.0040b590
mov edx, dword [esi + 0x6b]
mov ebx, dword [sym.imp.WSOCK32.dll_setsockopt]
push 4
mov dword [eax + 0x14], ebp
adc ah, cl
add byte [eax - 1], ch
inc dword [eax]
add byte [edx - 0x77], dl
pop es
call ebx
mov ebx, dword [esp + eax]
push 0xffffffffffffff86
in eax, 0x68
add eax, 0x24000010
invalid
dec edx
dec esi
rol edi, cl
add al, 0
dec ecx
add bl, bl
add byte [ecx - 0x18], dl
je 0x408d5d
invalid
Function at 0x408030
Capabilities:
Authenticate hmac
Encode data using xor
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x45a0b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
mov esi, edx
cmp ebx, 0x40
jbe 0x408096
xor eax, eax
push ebx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x18], eax
push edi
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x70], 0x67452301
mov dword [ebp - 0x6c], 0xefcdab89
mov dword [ebp - 0x68], 0x98badcfe
mov dword [ebp - 0x64], 0x10325476
call fcn.00407c50
lea ecx, [ebp - 0x70]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.00407f00
lea edi, [ebp - 0x14]
mov ebx, 0x10
lea eax, [esi + 0x161e]
push 0x40
push eax
mov dword [ebp - 0x74], eax
call fcn.00420680
push 0x40
add esi, 0x165e
push esi
call fcn.00420680
mov eax, dword [ebp - 0x74]
push ebx
push edi
push eax
call fcn.004205d0
push ebx
push edi
push esi
call fcn.004205d0
pop edi
mov eax, esi
pop esi
mov ecx, 0x40
mov dl, 0x36
pop ebx
xor byte [eax - 0x40], dl
xor byte [eax], 0x5c
inc eax
dec ecx
jne 0x4080d4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439e8a
mov esp, ebp
pop ebp
ret 4
Function at 0x420830
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push 0
push eax
mov dword [ebx], 0
mov eax, dword [edx + 4]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
js 0x42085f
xor eax, eax
jmp 0x420876
push edi
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
test eax, eax
je 0x420870
call edi
jmp 0x420875
mov eax, 0xfffeffff
pop edi
test esi, esi
jg 0x420882
jne 0x42088a
mov dword [ebx], 1
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10
cmp eax, 0x2746
jne 0x42089f
mov dword [ebx], 1
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x10
cmp eax, 0x2733
je 0x420897
push eax
push str.ERROR:_mDNSPlatformReadTCP___recv:__d_n
push 0
call fcn.00420520
add esp, 0xc
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret 0x10
Function at 0x420980
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x45a0b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x1c]
mov dword [ebp - 0x8c], edx
mov edx, dword [esi]
sub ecx, ebx
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x88], eax
mov ax, word [ebp + 0x20]
cmp edx, 4
jne 0x420a03
mov word [ebp - 0x82], ax
mov eax, dword [esi + 4]
mov edx, 2
mov word [ebp - 0x84], dx
mov dword [ebp - 0x80], eax
test edi, edi
je 0x4209e6
mov edi, dword [edi + 0xa0]
jmp 0x4209f4
mov edx, dword [ebp - 0x88]
mov eax, dword [edx]
mov edi, dword [eax + 0x16bc]
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x420a59
mov edi, dword [eax + 0x18]
jmp 0x420a59
cmp edx, 6
jne 0x420b30
mov edx, 0x17
mov word [ebp - 0x84], dx
mov edx, dword [esi + 4]
mov dword [ebp - 0x7c], edx
mov edx, dword [esi + 8]
mov dword [ebp - 0x78], edx
mov edx, dword [esi + 0xc]
mov word [ebp - 0x82], ax
xor eax, eax
mov dword [ebp - 0x74], edx
mov edx, dword [esi + 0x10]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x6c], eax
cmp edi, eax
je 0x420a4b
mov edi, dword [edi + 0xa0]
jmp 0x420a59
mov eax, dword [ebp - 0x88]
mov edx, dword [eax]
mov edi, dword [edx + 0x39e0]
cmp edi, 0xffffffff
je 0x420b5d
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
push ecx
push ebx
push edi
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jg 0x420b5d
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x420b26
call edi
mov edi, eax
test edi, edi
je 0x420b48
mov eax, dword [esi]
cmp eax, 4
jne 0x420ab3
mov ecx, dword [esi + 4]
cmp ecx, dword [0x446458]
je 0x420b48
cmp eax, 6
jne 0x420ae4
mov edx, dword [esi + 4]
cmp edx, dword [0x44646c]
jne 0x420ae4
mov eax, dword [esi + 8]
cmp eax, dword [0x446470]
jne 0x420ae4
mov ecx, dword [esi + 0xc]
cmp ecx, dword [0x446474]
jne 0x420ae4
mov edx, dword [esi + 0x10]
cmp edx, dword [0x446478]
je 0x420b48
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2750
je 0x420b0e
call esi
cmp eax, 0x2742
je 0x420b0e
call esi
cmp eax, 0x2751
je 0x420b0e
call esi
cmp eax, 0x2743
jne 0x420b48
pop edi
pop esi
mov eax, 0xfffeffe6
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439e8a
mov esp, ebp
pop ebp
ret 0x1c
mov edi, 0xffffe5a5
jmp 0x420a9d
pop edi
pop esi
mov eax, 0xfffefffc
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439e8a
mov esp, ebp
pop ebp
ret 0x1c
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439e8a
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00439e8a
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x420c20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
mov eax, dword [0x45a0b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0x5c
lea ecx, [ebp - 0x3f8]
push ecx
push eax
mov dword [ebp - 0x400], 0
call fcn.00401940
cmp byte [ebp - 0x3f8], 0
lea esi, [ebp - 0x3f8]
je 0x420c81
nop
movsx edx, byte [esi]
push edx
call fcn.0043b111
add esp, 4
cmp byte [esi + 1], 0
mov byte [esi], al
jne 0x420c7b
cmp al, 0x2e
jne 0x420c7b
mov byte [esi], 0
inc esi
cmp byte [esi], 0
jne 0x420c60
lea eax, [ebp - 0x400]
push eax
push str.SOFTWAREApple_Inc.BonjourDynDNSStateHostNames
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
pop esi
test eax, eax
jne 0x420cc7
cmp dword [ebp + 0xc], eax
push 4
lea edx, [ebp - 0x3f9]
push edx
push 4
push eax
mov eax, dword [ebp - 0x400]
push str.Status
sete cl
push eax
mov byte [ebp - 0x3f9], cl
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x400]
test eax, eax
je 0x420cd8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439e8a
mov esp, ebp
pop ebp
ret 8

Function at 0x420cf0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x45a0b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
lea ecx, [ebp - 0x14c]
push ecx
lea edx, [ebp - 0x104]
push edx
push 5
mov dword [ebp - 0x148], eax
mov byte [ebp - 0x104], 0
mov dword [ebp - 0x14c], 0x100
call dword [sym.imp.KERNEL32.dll_GetComputerNameExA]
test eax, eax
je 0x420d3d
xor edi, edi
jmp 0x420d55
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x420e09
call esi
mov edi, eax
test edi, edi
jne 0x420d5e
cmp byte [ebp - 0x104], 0
jne 0x420d81
mov eax, dword [str.My_Computer]
mov ecx, dword [0x44ebfc]
mov edx, dword [0x44ec00]
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x100], ecx
mov dword [ebp - 0xfc], edx
lea eax, [ebp - 0x104]
mov byte [ebp - 5], 0
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x420d90
sub eax, edx
cmp eax, 0x3f
jb 0x420da0
mov al, 0x3f
mov byte [ebp - 0x144], al
movzx eax, al
push eax
lea ecx, [ebp - 0x104]
push ecx
lea edx, [ebp - 0x143]
push edx
call fcn.0043a0d0
mov esi, dword [ebp - 0x148]
add esp, 0xc
add esi, 0x1914
push esi
lea eax, [ebp - 0x144]
push eax
call fcn.00401a40
cmp byte [esi], 0
jne 0x420de9
push str.My_Computer
push esi
call fcn.00401850
mov ecx, dword [ebp - 0x148]
push ecx
call fcn.00415d40
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00439e8a
mov esp, ebp
pop ebp
ret 4
mov edi, 0xffffe5a8
jmp 0x420d5e
Function at 0x4215a0
Capabilities:
Get routing table

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
lea eax, [ebp - 4]
push eax
push ebx
mov dword [ebp - 4], ebx
xor esi, esi
call sub.IPHLPAPI.DLL_GetIpForwardTable
cmp eax, 0x7a
jne 0x421613
mov ecx, dword [ebp - 4]
push edi
push ecx
call fcn.0043a967
mov edi, eax
add esp, 4
test edi, edi
je 0x42160a
push esi
lea edx, [ebp - 4]
push edx
push edi
call sub.IPHLPAPI.DLL_GetIpForwardTable
test eax, eax
jne 0x421601
mov ecx, dword [edi]
test ecx, ecx
je 0x421601
lea eax, [edi + 0x28]
cmp dword [eax - 0x24], 0
jne 0x4215fb
test esi, esi
je 0x4215f6
cmp dword [eax], ebx
jae 0x4215fb
mov esi, dword [eax - 0x14]
mov ebx, dword [eax]
add eax, 0x38
dec ecx
jne 0x4215e8
push edi
call fcn.0043a9fb
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4216e0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x45a0b0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
setne al
test eax, eax
je 0x421755
mov cx, word [0x4463b4]
xor eax, eax
mov dword [ebp - 0x14], eax
push esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, 2
push 0
mov word [ebp - 0x14], ax
mov word [ebp - 0x12], cx
call dword [sym.imp.WS2_32.dll_htonl]
push 0x10
lea edx, [ebp - 0x14]
push edx
push edi
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_bind]
neg eax
push edi
sbb esi, esi
call dword [sym.imp.WS2_32.dll_closesocket]
lea eax, [esi + 1]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00439e8a
mov esp, ebp
pop ebp
ret

Function at 0x421770
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov dword [esi], 0x3f1
mov dword [eax], 0
xor edi, edi
lea ecx, [ecx]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
test eax, eax
je 0x4217a2
push eax
call fcn.0043a9fb
add esp, 4
mov edx, dword [esi]
push edx
call fcn.0043a967
mov ecx, dword [ebp + 0x10]
add esp, 4
mov dword [ecx], eax
test eax, eax
je 0x4217dd
mov ecx, dword [ebp + 8]
push esi
push eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 4]
push edx
push 0
push eax
push ecx
call ebx
inc edi
cmp eax, 0xea
jne 0x4217ea
cmp edi, 0x64
jl 0x421790
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
pop edi
mov eax, 0xfffefffd
pop ebx
mov esp, ebp
pop ebp
ret 0x10
test eax, eax
jne 0x421814
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x421814
lea edx, [ebp + 0x10]
push edx
push ecx
push eax
push eax
mov eax, dword [ebp + 8]
push 0x44ec38
push eax
mov dword [ebp + 0x10], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x421940
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x45a0b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x21c], ecx
mov dword [ecx], ebx
lea ecx, [ebp - 0x208]
push ecx
push eax
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x208], ebx
mov dword [ebp - 0x20c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x421b08
push ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x224]
push edx
mov edx, dword [ebp - 0x208]
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x214]
push ecx
push ebx
push ebx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x421b08
push edi
xor edi, edi
cmp dword [ebp - 0x214], ebx
jbe 0x421b07
push esi
mov edx, dword [ebp - 0x208]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x104]
push ecx
push edi
push edx
mov dword [ebp - 0x210], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x421af9
mov edx, dword [ebp - 0x208]
lea eax, [ebp - 0x20c]
push eax
push 0x20019
push ebx
lea ecx, [ebp - 0x104]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x421b06
mov edx, dword [ebp - 0x20c]
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x218]
push ecx
push ebx
push ebx
push str.Enabled
push edx
mov dword [ebp - 0x210], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x421ae6
cmp byte [ebp - 0x104], bl
je 0x421ae6
cmp dword [ebp - 0x218], ebx
je 0x421ae6
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x204]
push ecx
call fcn.00401890
test eax, eax
je 0x421ae6
cmp byte [ebp - 0x204], bl
je 0x421ae6
push 0x108
call fcn.0043a967
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x421b06
lea edx, [ebp - 0x104]
push edx
lea eax, [ebp - 0x204]
push eax
call fcn.00401410
movzx eax, ax
mov ecx, 0x100
cmp ax, cx
ja 0x421ad7
push eax
lea eax, [ebp - 0x204]
push eax
lea ecx, [esi + 8]
push ecx
call fcn.0043a0d0
add esp, 0xc
jmp 0x421ada
mov byte [esi + 8], bl
mov eax, dword [ebp - 0x21c]
mov edx, dword [eax]
mov dword [esi], edx
mov dword [eax], esi
mov eax, dword [ebp - 0x20c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x20c], ebx
inc edi
cmp edi, dword [ebp - 0x214]
jb 0x4219d0
pop esi
pop edi
mov eax, dword [ebp - 0x20c]
cmp eax, ebx
je 0x421b19
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x208]
cmp eax, ebx
pop ebx
je 0x421b2b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439e8a
mov esp, ebp
pop ebp
ret 4
Function at 0x422190
Capabilities:
Create udp socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
movzx edx, word [ecx]
push ebx
push edi
mov edi, dword [ebp + 0x14]
xor eax, eax
cmp edi, 1
sete al
push 0x11
push 2
push edx
mov dword [ebp - 4], eax
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42225e
test edi, edi
je 0x422257
jmp 0x4221d0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
dec dword [ebp + 0x14]
push eax
push ecx
push 0
push esi
push edx
push ebx
call dword [sym.imp.WS2_32.dll_sendto]
mov edi, eax
cmp edi, esi
je 0x422206
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.SendWakeupPacket_error:_sent__d_bytes:__d_n
push 0
call fcn.00420520
add esp, 0x10
cmp dword [ebp - 4], 0
je 0x42223f
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
push eax
push ecx
push 0
push esi
push edx
push ebx
call dword [sym.imp.WS2_32.dll_sendto]
mov edi, eax
cmp edi, esi
je 0x42223f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.SendWakeupPacket_error:_sent__d_bytes:__d_n
push 0
call fcn.00420520
add esp, 0x10
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x42224d
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp + 0x14], 0
jne 0x4221d0
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4222b0
Capabilities:
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x45a0b0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 0x10]
xor eax, eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], 1
cmp dword [ebp + 0xc], eax
jne 0x42240f
push esi
push 0x1c
call fcn.0043a967
mov esi, eax
add esp, 4
test esi, esi
je 0x42240e
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x18], eax
xor eax, eax
push ebx
mov ecx, 2
mov dword [ebp - 0x14], eax
push eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov word [ebp - 0x14], cx
call dword [sym.imp.WS2_32.dll_htonl]
mov dx, word [edi]
push 0
push 1
push 2
mov dword [ebp - 0x10], eax
mov word [ebp - 0x12], dx
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov dword [esi + 4], edi
cmp edi, 0xffffffff
jne 0x42235d
call ebx
test eax, eax
je 0x4223ed
call ebx
test eax, eax
jne 0x4223ed
push 0x10
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x42237a
call ebx
test eax, eax
je 0x4223ed
call ebx
test eax, eax
jne 0x4223ed
lea ecx, [ebp - 0x20]
push ecx
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x42239a
call ebx
test eax, eax
je 0x4223ed
call ebx
test eax, eax
jne 0x4223ed
xor eax, eax
lea edx, [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
push edx
lea eax, [ebp - 0x14]
push eax
push edi
mov dword [ebp - 0x18], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4223ce
call ebx
test eax, eax
je 0x4223ed
call ebx
test eax, eax
jne 0x4223ed
mov cx, word [ebp - 0x12]
mov edx, dword [ebp - 0x1c]
pop ebx
mov eax, esi
pop esi
mov word [edx], cx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439e8a
mov esp, ebp
pop ebp
ret 0xc
mov eax, edi
cmp eax, 0xffffffff
je 0x422402
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
push esi
call fcn.0043a9fb
add esp, 4
xor eax, eax
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00439e8a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x422420
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x45a0b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 4
mov dx, word [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
je 0x422465
push str.ERROR:_mDNSPlatformTCPConnect___attempt_to_connect_to_an_IPv6_address:_operation_not_supported
push 0
call fcn.00420520
add esp, 8
mov eax, 0xfffeffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439e8a
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x10], eax
mov ecx, dword [ecx + 4]
xor eax, eax
mov dword [ebp - 0x14], eax
push edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, 2
mov word [ebp - 0x12], dx
push 0x10
lea edx, [ebp - 0x14]
mov word [ebp - 0x14], ax
mov eax, dword [esi + 4]
push edx
push eax
mov dword [ebp - 0x10], ecx
call dword [sym.imp.WS2_32.dll_connect]
mov edi, eax
test edi, edi
je 0x4224cd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4224cd
pop edi
mov eax, 0xfffeff04
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439e8a
mov esp, ebp
pop ebp
ret 0x1c
mov edx, dword [esi + 4]
xor ecx, ecx
test edi, edi
push esi
sete cl
push 0x420920
push 0x31
push edx
mov dword [esi + 8], ecx
call fcn.00425400
test eax, eax
jne 0x4224f9
cmp dword [esi + 8], eax
sete al
lea eax, [eax + eax - 0x100fd]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00439e8a
mov esp, ebp
pop ebp
ret 0x1c