joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47e360
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ba980
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x47e507
mov ecx, dword [0x5c36ec]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x47e45c
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.0047d080
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.004aa256
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.004aa169
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x5c2478
call fcn.004aa1d7
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.0047d440
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.004aa256
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.004aa169
lea ecx, [esp + 0xc]
call fcn.004aa631
mov ecx, dword [esp + 0xc]
push 0x5c2eb4
push ecx
call fcn.004874f4
add esp, 8
test eax, eax
je 0x47e484
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x47e3bd
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.004aa169
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.004aa169
jmp 0x47e50b
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.0047e100
test eax, eax
push 0
je 0x47e4ef
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.0047c7a0
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x47e4d5
cmp eax, 0x64
jg 0x47e4c3
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x47e460
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x47e460
cmp eax, 0x64
jge 0x47e45c
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x47e460
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.0047c7a0
mov esi, eax
jmp 0x47e460
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x47e515
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x4a0200
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4bbaa0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.004951b4
mov eax, dword [0x5a9870]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.004950e6
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.004a0cc0
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x4a02a7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4a029e
cmp al, 0xff
je 0x4a029e
dec al
mov byte [ecx], al
jmp 0x4a02a7
push ecx
call fcn.004a9ed3
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x4a02d8
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4a02cf
cmp al, 0xff
je 0x4a02cf
dec al
mov byte [ecx], al
jmp 0x4a02d8
push ecx
call fcn.004a9ed3
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x4ac574
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4ac5ac
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004aa5c4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004aa59c
jmp 0x4ac5b8
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4adc65
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4adca7
call fcn.004b3cae
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4adca7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4adc9e
xor eax, eax
jmp 0x4adcaf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004adcb5
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b41de
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4b420c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b422a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b4144
jmp 0x4b422a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b422a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b4144
test edi, edi
mov eax, edi
jne 0x4b4214
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40501c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x405028
push 0x405024
push 0x405020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x405028]
push dword [0x405024]
push dword [0x405020]
mov dword [0x405014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x467490
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x4674af
jmp 0x4674b8
mov dword [ebp - 8], 2
jmp 0x4674c4
mov dword [ebp - 0x14], 0x80203bfd
jmp 0x4676ae
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov eax, dword [ebp + 0x10]
mov eax, dword [eax*8 + 0x49a040]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax*8 + 0x49a044]
mov dword [esp + 4], eax
mov eax, dword [ebp - 8]
mov dword [esp], eax
call sub.WS2_32.DLL_WSASocketA
sub esp, 0x18
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp + 8]
cmp dword [eax], 0xffffffff
jne 0x46751c
mov dword [ebp - 0xc], 0x80203bff
cmp dword [ebp - 0xc], 0
jne 0x467651
cmp dword [ebp + 0x10], 1
jne 0x4676a8
mov dword [ebp - 0x10], 1
mov dword [esp + 0x10], 4
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 8
mov dword [esp + 4], 0xffff
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp], eax
call sub.WS2_32.DLL_setsockopt
sub esp, 0x14
test eax, eax
je 0x4675b6
cmp dword [ebp + 0x14], 0
je 0x4675b6
cmp dword [ebp + 0x14], 0xffffe7e0
je 0x4675b6
mov dword [esp + 4], 2
mov eax, dword [ebp + 0x14]
add eax, 0x1820
mov dword [esp], eax
call fcn.00461239
test eax, eax
je 0x4675b6
call sub.WS2_32.DLL_WSAGetLastError
mov dword [esp + 8], eax
mov dword [esp + 4], str.RvSocketConstructHere:_Failed_to_setsockopt_SO_KEEPALIVE___d
mov eax, dword [ebp + 0x14]
add eax, 0x1820
mov dword [esp], eax
call fcn.0046157e
mov dword [esp + 0x10], 4
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 6
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp], eax
call sub.WS2_32.DLL_setsockopt
sub esp, 0x14
test eax, eax
je 0x467635
cmp dword [ebp + 0x14], 0
je 0x467635
cmp dword [ebp + 0x14], 0xffffe7e0
je 0x467635
mov dword [esp + 4], 2
mov eax, dword [ebp + 0x14]
add eax, 0x1820
mov dword [esp], eax
call fcn.00461239
test eax, eax
je 0x467635
call sub.WS2_32.DLL_WSAGetLastError
mov dword [esp + 8], eax
mov dword [esp + 4], str.RvSocketConstructHere:_Failed_to_setsockopt_TCP_NODELAY___d
mov eax, dword [ebp + 0x14]
add eax, 0x1820
mov dword [esp], eax
call fcn.0046157e
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00469d4f
jmp 0x4676a8
cmp dword [ebp + 0x14], 0
je 0x4676a8
cmp dword [ebp + 0x14], 0xffffe7e0
je 0x4676a8
mov dword [esp + 4], 2
mov eax, dword [ebp + 0x14]
add eax, 0x1820
mov dword [esp], eax
call fcn.00461239
test eax, eax
je 0x4676a8
call sub.WS2_32.DLL_WSAGetLastError
mov ebx, eax
call sub.WS2_32.DLL_WSAGetLastError
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], str.RvSocketConstructHere:_Failed_to_call_socket____errno_d__p_
mov eax, dword [ebp + 0x14]
add eax, 0x1820
mov dword [esp], eax
call fcn.0046157e
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x469d4f
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x469dd0
mov dword [ebp - 4], 0x80203bfd
cmp dword [ebp + 0x10], 0
je 0x469dc5
cmp dword [ebp + 0x10], 0xffffe7e0
je 0x469dc5
mov dword [esp + 4], 2
mov eax, dword [ebp + 0x10]
add eax, 0x1820
mov dword [esp], eax
call fcn.00461239
test eax, eax
je 0x469dc5
call sub.WS2_32.DLL_WSAGetLastError
mov edx, eax
mov eax, dword [ebp - 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], str.RvSocketSetLinger_sock_NULL__linger_d_errno_d__d
mov eax, dword [ebp + 0x10]
add eax, 0x1820
mov dword [esp], eax
call fcn.0046157e
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
jmp 0x469f57
cmp dword [ebp + 0x10], 0
je 0x469e23
cmp dword [ebp + 0x10], 0xffffe7e0
je 0x469e23
mov dword [esp + 4], 0x20
mov eax, dword [ebp + 0x10]
add eax, 0x1820
mov dword [esp], eax
call fcn.00461239
test eax, eax
je 0x469e23
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 8], eax
mov dword [esp + 4], str.RvSocketSetLinger_sock_d_linger_d_
mov eax, dword [ebp + 0x10]
add eax, 0x1820
mov dword [esp], eax
call fcn.00461652
cmp dword [ebp + 0xc], 0
js 0x469e38
mov word [ebp - 8], 1
mov eax, dword [ebp + 0xc]
mov word [ebp - 6], ax
jmp 0x469e44
mov word [ebp - 8], 0
mov word [ebp - 6], 0
mov dword [esp + 0x10], 4
lea eax, [ebp - 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], 0xffff
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp], eax
call sub.WS2_32.DLL_setsockopt
sub esp, 0x14
test eax, eax
je 0x469e7e
mov dword [ebp - 4], 0x80203bff
cmp dword [ebp - 4], 0
jne 0x469eec
cmp dword [ebp + 0x10], 0
je 0x469f51
cmp dword [ebp + 0x10], 0xffffe7e0
je 0x469f51
mov dword [esp + 4], 0x40
mov eax, dword [ebp + 0x10]
add eax, 0x1820
mov dword [esp], eax
call fcn.00461239
test eax, eax
je 0x469f51
mov eax, dword [ebp - 4]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 8], eax
mov dword [esp + 4], str.RvSocketSetLinger_sock_d_linger_d__d
mov eax, dword [ebp + 0x10]
add eax, 0x1820
mov dword [esp], eax
call fcn.00461687
jmp 0x469f51
cmp dword [ebp + 0x10], 0
je 0x469f51
cmp dword [ebp + 0x10], 0xffffe7e0
je 0x469f51
mov dword [esp + 4], 2
mov eax, dword [ebp + 0x10]
add eax, 0x1820
mov dword [esp], eax
call fcn.00461239
test eax, eax
je 0x469f51
call sub.WS2_32.DLL_WSAGetLastError
mov edx, eax
mov eax, dword [ebp - 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 8], eax
mov dword [esp + 4], str.RvSocketSetLinger_sock_d_linger_d_errno_d__d
mov eax, dword [ebp + 0x10]
add eax, 0x1820
mov dword [esp], eax
call fcn.0046157e
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x46b876
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
cmp dword [ebp + 8], 0
je 0x46b89f
cmp dword [ebp + 0x10], 0
jne 0x46b8ab
mov dword [ebp - 0x10], 0x80203bfd
jmp 0x46b9f0
cmp dword [ebp + 0xc], 0
je 0x46b905
cmp dword [ebp + 0xc], 0xffffe7e0
je 0x46b905
mov dword [esp + 4], 0x20
mov eax, dword [ebp + 0xc]
add eax, 0x1820
mov dword [esp], eax
call fcn.00461239
test eax, eax
je 0x46b905
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 8], eax
mov dword [esp + 4], str.RvSocketGetBytesAvailable_sock_d_logMgr_p_bytesAvailable_p_
mov eax, dword [ebp + 0xc]
add eax, 0x1820
mov dword [esp], eax
call fcn.00461652
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0
je 0x46b968
cmp dword [ebp + 0xc], 0
je 0x46b95d
cmp dword [ebp + 0xc], 0xffffe7e0
je 0x46b95d
mov dword [esp + 4], 2
mov eax, dword [ebp + 0xc]
add eax, 0x1820
mov dword [esp], eax
call fcn.00461239
test eax, eax
je 0x46b95d
mov dword [esp + 4], str.RvSocketGetBytesAvailable_RvSocketSharerShare_error
mov eax, dword [ebp + 0xc]
add eax, 0x1820
mov dword [esp], eax
call fcn.0046157e
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
jmp 0x46b9f0
lea eax, [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4004667f
mov eax, dword [ebp - 4]
mov dword [esp], eax
call sub.WS2_32.DLL_ioctlsocket
sub esp, 0xc
test eax, eax
jns 0x46b990
mov dword [ebp - 8], 0x80203bff
cmp dword [ebp - 8], 0
jne 0x46b99e
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
cmp dword [ebp + 0xc], 0
je 0x46b9ea
cmp dword [ebp + 0xc], 0xffffe7e0
je 0x46b9ea
mov dword [esp + 4], 0x40
mov eax, dword [ebp + 0xc]
add eax, 0x1820
mov dword [esp], eax
call fcn.00461239
test eax, eax
je 0x46b9ea
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [esp + 8], eax
mov dword [esp + 4], str.RvSocketGetBytesAvailable___d_bytes_available
mov eax, dword [ebp + 0xc]
add eax, 0x1820
mov dword [esp], eax
call fcn.00461687
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
leave
ret
Function at 0x46bb84
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
cmp dword [ebp + 8], 0
jne 0x46bb9c
mov dword [ebp - 0x30], 0x80203bfd
jmp 0x46bd3b
cmp dword [ebp + 0x10], 0
jne 0x46bbae
mov dword [ebp - 0x30], 0x80203bfd
jmp 0x46bd3b
cmp dword [ebp + 0xc], 0
je 0x46bc08
cmp dword [ebp + 0xc], 0xffffe7e0
je 0x46bc08
mov dword [esp + 4], 0x20
mov eax, dword [ebp + 0xc]
add eax, 0x1820
mov dword [esp], eax
call fcn.00461239
test eax, eax
je 0x46bc08
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 8], eax
mov dword [esp + 4], str.RvSocketGetLocalAddress_sock_d_logMgr_p_address_p_
mov eax, dword [ebp + 0xc]
add eax, 0x1820
mov dword [esp], eax
call fcn.00461652
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [ebp - 0x28]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], 0
je 0x46bc8f
cmp dword [ebp + 0xc], 0
je 0x46bc84
cmp dword [ebp + 0xc], 0xffffe7e0
je 0x46bc84
mov dword [esp + 4], 2
mov eax, dword [ebp + 0xc]
add eax, 0x1820
mov dword [esp], eax
call fcn.00461239
test eax, eax
je 0x46bc84
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 8], eax
mov dword [esp + 4], str.RvSocketGetLocalAddress___RvSocketSharerShare_failure_sock_d_not_shared
mov eax, dword [ebp + 0xc]
add eax, 0x1820
mov dword [esp], eax
call fcn.0046157e
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x30], eax
jmp 0x46bd3b
mov dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x2c]
mov dword [esp + 8], eax
lea eax, [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.WS2_32.DLL_getsockname
sub esp, 0xc
test eax, eax
jne 0x46bcd4
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x28]
mov dword [esp], eax
call fcn.004676b6
mov dword [ebp - 0x10], eax
jmp 0x46bcdb
mov dword [ebp - 0x10], 0x80203bff
cmp dword [ebp + 0xc], 0
je 0x46bd35
cmp dword [ebp + 0xc], 0xffffe7e0
je 0x46bd35
mov dword [esp + 4], 0x40
mov eax, dword [ebp + 0xc]
add eax, 0x1820
mov dword [esp], eax
call fcn.00461239
test eax, eax
je 0x46bd35
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 8], eax
mov dword [esp + 4], str.RvSocketGetLocalAddress_sock_d_logMgr_p_address_p_
mov eax, dword [ebp + 0xc]
add eax, 0x1820
mov dword [esp], eax
call fcn.00461687
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
leave
ret
Function at 0x46bf57
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp], 0
call fcn.00473edc
mov dword [ebp - 4], eax
call fcn.00473d13
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 3
jne 0x46bf8c
mov eax, dword [ebp - 4]
mov dword [eax + 0x548], 1
jmp 0x46c061
cmp dword [ebp - 8], 4
je 0x46bfa3
cmp dword [ebp - 8], 5
je 0x46bfa3
cmp dword [ebp - 8], 6
je 0x46bfa3
jmp 0x46c061
lea eax, [ebp - 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.SystemCurrentControlSetServicesTcpipParameters_
mov dword [esp], 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x46bfe9
mov eax, dword [ebp - 4]
mov dword [eax + 0x548], 0
jmp 0x46c061
mov dword [ebp - 0x18], 4
lea eax, [ebp - 0x18]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x14]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.DisableUserTOSSetting
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0
cmp dword [ebp - 0x10], 0
jne 0x46c047
cmp dword [ebp - 0x14], 0
jne 0x46c047
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x548], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
leave
ret
Function at 0x47233e
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x958
mov dword [ebp - 0x920], 0x1e
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.WS2_32.DLL_socket
sub esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x472536
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
lea eax, [ebp - 0x10]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0x8e8
lea eax, [ebp - 0x918]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x4004747f
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.WS2_32.DLL_WSAIoctl
sub esp, 0x24
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x4723ed
mov dword [ebp - 0x924], 0x80204bff
jmp 0x47254c
mov eax, dword [ebp - 0x10]
mov edx, eax
shr edx, 2
mov eax, 0x1af286bd
mul edx
mov eax, edx
shr eax, 1
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x18]
jae 0x4724b6
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0xc]
jae 0x4724b6
mov edx, dword [ebp - 0x20]
mov eax, edx
shl eax, 3
add eax, edx
add eax, eax
add eax, edx
shl eax, 2
lea edx, [ebp - 8]
add eax, edx
sub eax, 0x910
mov eax, dword [eax]
and eax, 4
test eax, eax
je 0x472458
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x920], eax
jmp 0x4724ac
lea ecx, [ebp - 0x918]
mov edx, dword [ebp - 0x20]
mov eax, edx
shl eax, 3
add eax, edx
add eax, eax
add eax, edx
shl eax, 2
lea eax, [ecx + eax]
add eax, 4
mov dword [ebp - 0x91c], eax
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x91c]
mov eax, dword [eax + 4]
mov dword [esp + 4], eax
mov edx, dword [ebp - 0x1c]
mov eax, edx
add eax, eax
add eax, edx
shl eax, 2
add eax, dword [ebp + 0x14]
mov dword [esp], eax
call fcn.0046cb5b
lea eax, [ebp - 0x1c]
inc dword [eax]
lea eax, [ebp - 0x20]
inc dword [eax]
jmp 0x472411
cmp dword [ebp - 0x920], 0x1d
ja 0x47251e
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0xc]
jae 0x47251e
lea ecx, [ebp - 0x918]
mov edx, dword [ebp - 0x920]
mov eax, edx
shl eax, 3
add eax, edx
add eax, eax
add eax, edx
shl eax, 2
lea eax, [ecx + eax]
add eax, 4
mov dword [ebp - 0x91c], eax
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x91c]
mov eax, dword [eax + 4]
mov dword [esp + 4], eax
mov edx, dword [ebp - 0x1c]
mov eax, edx
add eax, eax
add eax, edx
shl eax, 2
add eax, dword [ebp + 0x14]
mov dword [esp], eax
call fcn.0046cb5b
lea eax, [ebp - 0x1c]
inc dword [eax]
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.WS2_32.DLL_closesocket
sub esp, 4
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x1c]
mov dword [edx], eax
jmp 0x472542
mov dword [ebp - 0x924], 0x80204bff
jmp 0x47254c
mov dword [ebp - 0x924], 0
mov eax, dword [ebp - 0x924]
leave
ret
Function at 0x473a90
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
mov dword [esp], 0
call fcn.00473edc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
je 0x473ac4
mov eax, dword [ebp - 0xc]
inc dword [eax]
mov dword [ebp - 0xbc], 0
jmp 0x473bff
mov dword [esp + 8], 0x94
mov dword [esp + 4], 0
lea eax, [ebp - 0xb8]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [ebp - 0xb8], 0x94
lea eax, [ebp - 0xb8]
mov dword [esp], eax
call sub.KERNEL32.dll_GetVersionExA
sub esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x473b7c
cmp dword [ebp - 0xa8], 2
jne 0x473b7c
cmp dword [ebp - 0xb4], 4
ja 0x473b24
mov dword [0x4e4fa0], 3
jmp 0x473b7c
cmp dword [ebp - 0xb4], 5
jne 0x473b42
cmp dword [ebp - 0xb0], 0
jne 0x473b42
mov dword [0x4e4fa0], 4
jmp 0x473b7c
cmp dword [ebp - 0xb4], 5
jne 0x473b60
cmp dword [ebp - 0xb0], 1
jne 0x473b60
mov dword [0x4e4fa0], 5
jmp 0x473b7c
cmp dword [ebp - 0xb4], 5
jne 0x473b7c
cmp dword [ebp - 0xb0], 2
jne 0x473b7c
mov dword [0x4e4fa0], 6
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
cmp dword [eax*8 + 0x4dfac0], 0
jne 0x473b98
jmp 0x473bf0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov eax, dword [eax*8 + 0x4dfac0]
call eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x473be8
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 4]
dec edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 0
js 0x473bdd
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov eax, dword [eax*8 + 0x4dfac4]
call eax
mov eax, dword [ebp - 0xc]
dec dword [eax + 4]
jmp 0x473bbd
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xbc], eax
jmp 0x473bff
mov eax, dword [ebp - 0xc]
inc dword [eax + 4]
jmp 0x473b86
mov eax, dword [ebp - 0xc]
inc dword [eax]
mov dword [ebp - 0xbc], 0
mov eax, dword [ebp - 0xbc]
leave
ret