joyce8/EMBER2024-capa huggingface dataset:
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.00420670
push 0x40
add esi, 0x165e
push esi
call fcn.00420670
mov eax, dword [ebp - 0x74]
push ebx
push edi
push eax
call fcn.004205c0
push ebx
push edi
push esi
call fcn.004205c0
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.00439f90
mov esp, ebp
pop ebp
ret 4
Function at 0x4087a0
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push esi
push edi
lea ecx, [ebp - 4]
push ecx
push 0x447918
xor edi, edi
push 1
push edi
push 0x447908
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [eax], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, edi
jl 0x40882b
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x40882e
mov edx, dword [eax]
mov edx, dword [edx + 0x1c]
lea ecx, [ebp - 8]
push ecx
push eax
call edx
mov esi, eax
cmp esi, edi
jl 0x40882b
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x40883f
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x408803
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov esi, eax
test esi, esi
je 0x408826
push 0x3e8
call ebx
mov ecx, edi
inc edi
cmp ecx, 0x1e
jl 0x408800
test esi, esi
pop ebx
js 0x40882b
xor esi, esi
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor edi, edi
cmp ecx, edi
je 0x408842
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x40884e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40f870
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ebp
xchg esp, eax
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0040f4c1
push eax
push esi
push dword [ebp + 8]
call fcn.0040f476
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0040f4c1
push eax
push esi
push dword [ebp + 8]
invalid
push ebp
sti
invalid

Function at 0x40f9b0
Capabilities:
Inspect section memory permissions

Disassembly:
les edx, [eax]
mov dword [ebp - 0xc0], eax
push 0x40
push 0x1000
push dword [ebp + 0xc]
push ebx
call dword [ebp - 0x88]
mov esi, eax
cmp esi, ebx
je 0x40fcaa
push dword [ebp - 0xb4]
push dword [ebp + 0x10]
push esi
call fcn.0040f422
add esp, 0xc
cmp word [edi + 6], bx
mov dword [ebp + 0xc], ebx
jbe 0x40fa21
movzx eax, word [ebp + 0xc]
mov ecx, dword [ebp - 0x44]
lea eax, [eax + eax*4]
push dword [ecx + eax*8 + 0x10]
lea eax, [ecx + eax*8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add ecx, dword [ebp + 0x10]
add eax, esi
push ecx
push eax
call fcn.0040f422
add esp, 0xc
inc dword [ebp + 0xc]
mov ax, word [ebp + 0xc]
cmp ax, word [edi + 6]
jb 0x40f9ee
call fcn.0040f4b1
lds ebx, [edx]
inc edx
pop esp
mov edi, dword [esi + 0x3c]
add edi, esi
mov dword [ebp - 0x88], edi
mov eax, dword [edi + 0x80]
cmp eax, ebx
je 0x40fca0
add eax, esi
mov dword [ebp - 0x44], eax
cmp dword [eax + 4], ebx
jne 0x40fa56
cmp dword [eax + 0xc], ebx
je 0x40faf9
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.0040f4b1
adc byte [edi + 0x5c], dh
mov esi, 0x750c5d39
adc dl, byte [edi - 1]
xchg ebp, eax
dec eax
invalid
call fcn.0040f4b1
mov ch, 0x19
mov byte [edi], bl
mov eax, dword [edi + 0xa0]
cmp eax, ebx
je 0x40fb65
add eax, esi
Function at 0x40fb60
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x40fb65
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae fcn.0040fb60
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x40fb4a
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x40fb52
cmp edx, ebx
jne 0x40fca0
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x40fb21
add eax, dword [eax + 4]
jmp 0x40fb0e
mov dword [ebp + 0xc], ebx
jmp 0x40fb70
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x40fb88
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
leave
mov edi, 0x60000000
jmp 0x40fba6
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x40fc04
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x40fbeb
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x40fbf4
cmp dword [ebp + 0x10], ebx
je 0x40fbfe
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x40fbe0
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x40fb6a
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x40fc51
dec eax
je 0x40fc48
sub eax, 3
je 0x40fc3f
mov dword [ebp - 4], 0x40
jmp 0x40fc6e
mov dword [ebp - 4], 4
jmp 0x40fc54
mov dword [ebp - 4], 0x20
jmp 0x40fc54
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x40fca0
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x40fc20
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0040f4b1
pushal
test eax, 0x75ffe687
adc al, 0x6a
add dword [esi - 1], edx
xlatb
mov eax, esi
jmp 0x40fcac
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x420840
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 0x42086f
xor eax, eax
jmp 0x420886
push edi
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
test eax, eax
je 0x420880
call edi
jmp 0x420885
mov eax, 0xfffeffff
pop edi
test esi, esi
jg 0x420892
jne 0x42089a
mov dword [ebx], 1
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10
cmp eax, 0x2746
jne 0x4208af
mov dword [ebx], 1
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x10
cmp eax, 0x2733
je 0x4208a7
push eax
push str.ERROR:_mDNSPlatformReadTCP___recv:__d_n
push 0
call fcn.00420510
add esp, 0xc
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret 0x10
Function at 0x420990
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 0x420a13
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 0x4209f6
mov edi, dword [edi + 0xa0]
jmp 0x420a04
mov edx, dword [ebp - 0x88]
mov eax, dword [edx]
mov edi, dword [eax + 0x16bc]
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x420a69
mov edi, dword [eax + 0x18]
jmp 0x420a69
cmp edx, 6
jne 0x420b40
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 0x420a5b
mov edi, dword [edi + 0xa0]
jmp 0x420a69
mov eax, dword [ebp - 0x88]
mov edx, dword [eax]
mov edi, dword [edx + 0x39e0]
cmp edi, 0xffffffff
je 0x420b6d
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 0x420b6d
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x420b36
call edi
mov edi, eax
test edi, edi
je 0x420b58
mov eax, dword [esi]
cmp eax, 4
jne 0x420ac3
mov ecx, dword [esi + 4]
cmp ecx, dword [0x446458]
je 0x420b58
cmp eax, 6
jne 0x420af4
mov edx, dword [esi + 4]
cmp edx, dword [0x44646c]
jne 0x420af4
mov eax, dword [esi + 8]
cmp eax, dword [0x446470]
jne 0x420af4
mov ecx, dword [esi + 0xc]
cmp ecx, dword [0x446474]
jne 0x420af4
mov edx, dword [esi + 0x10]
cmp edx, dword [0x446478]
je 0x420b58
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2750
je 0x420b1e
call esi
cmp eax, 0x2742
je 0x420b1e
call esi
cmp eax, 0x2751
je 0x420b1e
call esi
cmp eax, 0x2743
jne 0x420b58
pop edi
pop esi
mov eax, 0xfffeffe6
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439f90
mov esp, ebp
pop ebp
ret 0x1c
mov edi, 0xffffe5a5
jmp 0x420aad
pop edi
pop esi
mov eax, 0xfffefffc
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439f90
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.00439f90
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.00439f90
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x420c30
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 0x420c91
nop
movsx edx, byte [esi]
push edx
call fcn.0043b211
add esp, 4
cmp byte [esi + 1], 0
mov byte [esi], al
jne 0x420c8b
cmp al, 0x2e
jne 0x420c8b
mov byte [esi], 0
inc esi
cmp byte [esi], 0
jne 0x420c70
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 0x420cd7
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 0x420ce8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439f90
mov esp, ebp
pop ebp
ret 8

Function at 0x420d00
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 0x420d4d
xor edi, edi
jmp 0x420d65
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x420e19
call esi
mov edi, eax
test edi, edi
jne 0x420d6e
cmp byte [ebp - 0x104], 0
jne 0x420d91
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 0x420da0
sub eax, edx
cmp eax, 0x3f
jb 0x420db0
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.0043a1d0
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 0x420df9
push str.My_Computer
push esi
call fcn.00401850
mov ecx, dword [ebp - 0x148]
push ecx
call fcn.00415d20
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00439f90
mov esp, ebp
pop ebp
ret 4
mov edi, 0xffffe5a8
jmp 0x420d6e
Function at 0x421590
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 0x421603
mov ecx, dword [ebp - 4]
push edi
push ecx
call fcn.0043aa67
mov edi, eax
add esp, 4
test edi, edi
je 0x4215fa
push esi
lea edx, [ebp - 4]
push edx
push edi
call sub.IPHLPAPI.DLL_GetIpForwardTable
test eax, eax
jne 0x4215f1
mov ecx, dword [edi]
test ecx, ecx
je 0x4215f1
lea eax, [edi + 0x28]
cmp dword [eax - 0x24], 0
jne 0x4215eb
test esi, esi
je 0x4215e6
cmp dword [eax], ebx
jae 0x4215eb
mov esi, dword [eax - 0x14]
mov ebx, dword [eax]
add eax, 0x38
dec ecx
jne 0x4215d8
push edi
call fcn.0043aafb
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 0x4216d0
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 0x421745
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.00439f90
mov esp, ebp
pop ebp
ret

Function at 0x421760
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 0x421792
push eax
call fcn.0043aafb
add esp, 4
mov edx, dword [esi]
push edx
call fcn.0043aa67
mov ecx, dword [ebp + 0x10]
add esp, 4
mov dword [ecx], eax
test eax, eax
je 0x4217cd
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 0x4217da
cmp edi, 0x64
jl 0x421780
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 0x421804
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x421804
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 0x421930
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 0x421af8
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 0x421af8
push edi
xor edi, edi
cmp dword [ebp - 0x214], ebx
jbe 0x421af7
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 0x421ae9
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 0x421af6
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 0x421ad6
cmp byte [ebp - 0x104], bl
je 0x421ad6
cmp dword [ebp - 0x218], ebx
je 0x421ad6
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x204]
push ecx
call fcn.00401890
test eax, eax
je 0x421ad6
cmp byte [ebp - 0x204], bl
je 0x421ad6
push 0x108
call fcn.0043aa67
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x421af6
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 0x421ac7
push eax
lea eax, [ebp - 0x204]
push eax
lea ecx, [esi + 8]
push ecx
call fcn.0043a1d0
add esp, 0xc
jmp 0x421aca
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 0x4219c0
pop esi
pop edi
mov eax, dword [ebp - 0x20c]
cmp eax, ebx
je 0x421b09
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x208]
cmp eax, ebx
pop ebx
je 0x421b1b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439f90
mov esp, ebp
pop ebp
ret 4
Function at 0x422180
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 0x42224e
test edi, edi
je 0x422247
jmp 0x4221c0
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 0x4221f6
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.00420510
add esp, 0x10
cmp dword [ebp - 4], 0
je 0x42222f
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 0x42222f
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.00420510
add esp, 0x10
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x42223d
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp + 0x14], 0
jne 0x4221c0
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4222a0
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 0x4223ff
push esi
push 0x1c
call fcn.0043aa67
mov esi, eax
add esp, 4
test esi, esi
je 0x4223fe
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 0x42234d
call ebx
test eax, eax
je 0x4223dd
call ebx
test eax, eax
jne 0x4223dd
push 0x10
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x42236a
call ebx
test eax, eax
je 0x4223dd
call ebx
test eax, eax
jne 0x4223dd
lea ecx, [ebp - 0x20]
push ecx
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x42238a
call ebx
test eax, eax
je 0x4223dd
call ebx
test eax, eax
jne 0x4223dd
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 0x4223be
call ebx
test eax, eax
je 0x4223dd
call ebx
test eax, eax
jne 0x4223dd
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.00439f90
mov esp, ebp
pop ebp
ret 0xc
mov eax, edi
cmp eax, 0xffffffff
je 0x4223f2
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
push esi
call fcn.0043aafb
add esp, 4
xor eax, eax
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00439f90
mov esp, ebp
pop ebp
ret 0xc