joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42d93f
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x42daa0
push 0x409640
push 0x40965c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42daa0
and dword [ebp - 0xc], 0
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], ecx
xor ecx, ecx
mov word [ebp - 0x21c], cx
mov ecx, 0x208
mov word [ebp - 0x21a], cx
lea ecx, [ebp - 0xc]
push ecx
push 0x210
lea ecx, [ebp - 0x21c]
push ecx
push 0x1b
push dword [ebp + 8]
call eax
test eax, eax
jne 0x42daa0
mov word [esi], ax
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x824]
push eax
push 0x1ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x42da9c
push edi
mov esi, 0x409670
lea edi, [ebp - 8]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x824]
mov esi, 0x104
push ebx
mov ax, word [edi]
mov word [ebp - 8], ax
push esi
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x42da59
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
cmp ebx, esi
jae 0x42da59
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp ebx, eax
jae 0x42da59
push dword [ebp - 0x218]
mov eax, ebx
mov edx, ebx
lea ecx, [ebp - 0x424]
call fcn.0042bce9
test eax, eax
jne 0x42da59
mov eax, dword [ebp - 0x218]
cmp word [eax + ebx*2], 0x5c
je 0x42da6b
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x42da59
cmp word [edi], ax
jne 0x42d9f3
jmp 0x42da9a
mov esi, dword [ebp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
shr esi, 1
lea eax, [esi - 1]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
call edi
mov eax, dword [ebp - 0x218]
add esi, 0xfffffffd
lea eax, [eax + ebx*2]
push esi
push eax
mov eax, dword [ebp + 0xc]
add eax, 4
push eax
call edi
pop ebx
pop edi
mov al, 1
jmp 0x42daa2
xor al, al
pop esi
leave
ret 0xc

Function at 0x42db39
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor edi, edi
push edi
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
or eax, 0xffffffff
cmp esi, eax
je 0x42db8a
lea eax, [ebp - 0x1c]
push eax
push esi
mov dword [ebp - 0x1c], 0x1c
call dword [sym.imp.KERNEL32.dll_Thread32First]
jmp 0x42db7d
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x42db72
inc edi
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x42db69
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x42dda0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
xor ecx, ecx
xor esi, esi
mov word [ebp - 4], cx
cmp eax, esi
jne 0x42ddc7
push 0x44
pop edx
push edx
push esi
lea eax, [ebp - 0x58]
push eax
call fcn.0042b138
mov dword [ebp - 0x58], edx
lea eax, [ebp - 0x58]
lea ecx, [ebp - 4]
cmp dword [ebp + 8], esi
je 0x42ddd2
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x14]
push edx
push eax
push dword [ebp + 0xc]
push esi
push 0x4000000
push esi
push esi
push esi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x42de19
cmp dword [ebp + 0x10], esi
je 0x42de04
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
call fcn.0042b0c1
jmp 0x42de14
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
mov eax, dword [ebp - 0xc]
jmp 0x42de1b
xor eax, eax
pop esi
leave
ret 0xc

Function at 0x42de7b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
xor ebx, ebx
push 0x4096c0
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x42df5f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push 0x4096cc
push eax
call esi
push 0x4096e4
push dword [ebp - 0x10]
mov edi, eax
call esi
mov dword [ebp - 0x14], eax
cmp edi, ebx
je 0x42df54
cmp eax, ebx
je 0x42df54
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], ebx
call edi
test eax, eax
jne 0x42dee0
mov dword [ebp - 0xc], ebx
push 0x44
pop edx
xor eax, eax
push edx
mov word [ebp - 8], ax
push ebx
lea eax, [ebp - 0x68]
push eax
call fcn.0042b138
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x60], ebx
cmp ecx, ebx
jne 0x42df04
lea ecx, [ebp - 8]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebp - 0xc]
push ebx
push eax
neg eax
sbb eax, eax
and eax, 0x400
or eax, 0x4000000
push eax
push ebx
push ebx
push ebx
push ecx
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x42df49
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x24]
call esi
cmp dword [ebp - 0x1c], ebx
setne byte [ebp - 1]
cmp dword [ebp - 0xc], ebx
je 0x42df54
push dword [ebp - 0xc]
call dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
movzx eax, byte [ebp - 1]
pop ebx
leave
ret 8

Function at 0x42df8e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x42dfb8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x10]
jmp 0x42dfba
xor eax, eax
pop ebp
ret 0xc
Function at 0x42e019
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x56c
lea eax, [ebp - 0x24c]
push eax
push 0x409720
call fcn.00432431
test al, al
je 0x42e127
lea eax, [ebp - 0x350]
push eax
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.USER32.dll_CharToOemW]
lea eax, [ebp - 0x350]
push eax
push dword [ebp + 8]
lea eax, [ebp + 8]
push 0x409728
push eax
call fcn.0042bf8f
add esp, 0x10
cmp eax, 0xffffffff
je 0x42e11b
push ebx
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x24c]
push eax
call fcn.0043217c
push dword [ebp + 8]
mov bl, al
call fcn.0042b085
test bl, bl
pop ebx
je 0x42e11b
push edi
lea eax, [ebp - 0x24c]
push eax
push 0x409748
mov edx, 0x10e
lea edi, [ebp - 0x56c]
call fcn.0042bebe
pop ecx
pop ecx
pop edi
cmp eax, 0xffffffff
jle 0x42e11b
push 0x104
lea eax, [ebp - 0x24c]
push eax
push 0x409758
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x102
ja 0x42e11b
push 0x44
pop edx
push edx
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.0042b138
xor eax, eax
push eax
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x44]
push eax
push 0
lea eax, [ebp - 0x56c]
push eax
lea eax, [ebp - 0x24c]
push eax
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x18], 1
call fcn.0042de20
test eax, eax
setne al
jmp 0x42e129
lea eax, [ebp - 0x24c]
push eax
call fcn.004323be
xor al, al
leave
ret 4

Function at 0x42e12d
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebx
push edi
xor edi, edi
cmp ecx, edi
jne 0x42e13a
mov ecx, 0x409768
push edi
push edi
not eax
push edi
and eax, 1
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
cmp ebx, edi
je 0x42e192
push esi
xor esi, esi
push 4
lea eax, [esi + 0x435034]
push eax
push dword [esi + 0x435030]
push ebx
call dword [sym.imp.WININET.dll_InternetSetOptionA]
add esi, 8
cmp esi, 0x20
jb 0x42e153
push edi
push edi
push 3
push edi
push edi
push dword [esp + 0x28]
push dword [esp + 0x28]
push ebx
call dword [sym.imp.WININET.dll_InternetConnectA]
pop esi
cmp eax, edi
jne 0x42e194
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
pop edi
pop ebx
ret 8
Function at 0x42e241
Capabilities:
Check http status code
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x20]
and esi, 2
push edi
mov eax, 0x8404f700
je 0x42e259
mov eax, 0x8444f700
test byte [ebp + 0x20], 4
je 0x42e264
or eax, 0x800000
mov ecx, dword [ebp + 0x24]
xor ebx, ebx
cmp ecx, ebx
je 0x42e26f
mov dword [ecx], ebx
test byte [ebp + 0x20], 1
mov ecx, 0x4097a0
jne 0x42e27f
mov ecx, 0x4097a8
push ebx
push eax
push 0x435028
push ebx
push 0x408798
push dword [ebp + 0xc]
push ecx
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
cmp edi, ebx
je 0x42e33b
cmp esi, ebx
je 0x42e2af
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x20], ebx
jmp 0x42e2bd
mov dword [ebp + 0xc], 0x4097ac
mov dword [ebp + 0x20], 0x13
cmp dword [ebp + 0x18], ebx
je 0x42e2e3
xor esi, esi
cmp dword [ebp + 0x1c], ebx
jbe 0x42e2e3
mov eax, dword [ebp + 0x18]
push 0xa0000000
push 0xffffffffffffffff
push dword [eax + esi*4]
push edi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
inc esi
cmp esi, dword [ebp + 0x1c]
jb 0x42e2c9
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x20]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x42e334
push ebx
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp + 0x20]
push eax
push 0x20000013
push edi
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0x18], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x42e334
mov ecx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x20]
cmp ecx, ebx
je 0x42e329
mov dword [ecx], eax
cmp eax, 0xc8
jne 0x42e334
mov eax, edi
jmp 0x42e33d
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x20

Function at 0x42e344
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor edi, edi
mov eax, 0x3200000
cmp ebx, edi
je 0x42e35d
cmp ebx, eax
jbe 0x42e35f
mov ebx, eax
mov dword [ebp - 8], edi
cmp dword [ebp + 0x10], 0
je 0x42e37a
push 0
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x42e3bb
lea eax, [edi + 0x1000]
lea esi, [ebp - 8]
mov dword [ebp - 4], 0x1000
call fcn.0042b000
test al, al
je 0x42e3bb
mov esi, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
lea eax, [esi + edi]
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x42e3bb
cmp dword [ebp - 4], 0
je 0x42e3cc
add edi, dword [ebp - 4]
cmp edi, ebx
jbe 0x42e362
push dword [ebp - 8]
call fcn.0042b085
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x42e3da
mov dword [eax], esi
mov dword [eax + 4], edi
jmp 0x42e3e0
push esi
call fcn.0042b085
mov al, 1
jmp 0x42e3c5
Function at 0x42e3e4
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 0xc]
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x42e4af
mov eax, 0x1000
call fcn.0042b055
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x42e49b
mov dword [ebp - 0xc], ebx
cmp dword [ebp + 0x14], ebx
je 0x42e43f
push ebx
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x42e493
lea eax, [ebp - 8]
push eax
push 0x1000
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x42e493
cmp dword [ebp - 8], ebx
je 0x42e488
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
push dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42e493
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jne 0x42e493
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
jbe 0x42e429
jmp 0x42e493
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov byte [ebp - 1], 1
push dword [ebp - 0x10]
call fcn.0042b085
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 1], bl
jne 0x42e4af
push dword [ebp + 0xc]
call fcn.004323be
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 0x10

Function at 0x42e831
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [eax]
sub edx, dword [ebp + 8]
xor ecx, ecx
sub esp, 0xc
mov dword [eax + 0x40], edx
mov dword [eax + 0x44], ecx
cmp dword [ebp + 8], ecx
jbe 0x42e8c4
mov edx, dword [eax + 0x4c]
mov dword [ebp - 4], edx
mov edx, dword [eax + 0x58]
push ebx
push esi
mov esi, dword [eax + 0x54]
mov dword [ebp - 8], edx
mov edx, dword [eax + 0x5c]
push edi
mov edi, dword [eax + 0x50]
mov dword [ebp - 0xc], edx
mov edx, dword [eax + 0x48]
sub edi, esi
movzx ebx, byte [edx + ecx]
movzx eax, byte [edx + ecx + 1]
shl ebx, 5
xor eax, ebx
movzx ebx, byte [edx + ecx + 2]
dec dword [ebp + 8]
shl eax, 5
xor eax, ebx
mov ebx, dword [ebp - 4]
imul eax, eax, 0x9f5f
shr eax, 5
and eax, 0xffff
mov ebx, dword [ebx + eax*4]
mov dword [edi + esi], ebx
mov ebx, dword [ebp - 4]
mov dword [ebx + eax*4], ecx
mov ebx, dword [ebp - 8]
mov dword [esi], 0x801
inc dword [ebx + eax*4]
movzx eax, word [edx + ecx]
mov ebx, dword [ebp - 0xc]
mov dword [ebx + eax*4], ecx
inc ecx
add esi, 4
cmp dword [ebp + 8], 0
ja 0x42e869
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x42ecf4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
jbe 0x42ed75
push ebx
push esi
mov esi, dword [edi + 0x34]
mov edx, edi
call fcn.0042eb25
mov ecx, dword [edi + 0x30]
mov eax, dword [edi + 0x48]
lea edx, [ecx + eax]
movzx eax, byte [edx]
movzx esi, byte [edx + 1]
shl eax, 5
xor eax, esi
movzx esi, byte [edx + 2]
mov ebx, dword [edi + 0x50]
shl eax, 5
xor eax, esi
mov esi, dword [edi + 0x4c]
imul eax, eax, 0x9f5f
shr eax, 5
and eax, 0xffff
shl eax, 2
add esi, eax
mov dword [ebp - 4], esi
mov esi, dword [esi]
mov dword [ebx + ecx*4], esi
mov esi, dword [ebp - 4]
mov dword [esi], ecx
mov esi, dword [edi + 0x54]
mov dword [esi + ecx*4], 0x801
mov esi, dword [edi + 0x58]
inc dword [eax + esi]
movzx eax, word [edx]
mov edx, dword [edi + 0x5c]
mov dword [edx + eax*4], ecx
mov eax, edi
call fcn.0042ec88
dec dword [ebp + 8]
jne 0x42ed00
pop esi
pop ebx
leave
ret 4

Function at 0x42f534
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
cmp ecx, 0xffffffff
je 0x42f55a
xor edx, edx
mov eax, ecx
mov esi, 0x3e8
div esi
imul edx, edx, 0x3e8
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
inc ecx
neg ecx
sbb ecx, ecx
lea eax, [ebp - 8]
and ecx, eax
push ecx
xor esi, esi
push esi
push esi
lea eax, [ebp - 0x10c]
push eax
push esi
mov dword [ebp - 0x10c], 1
mov dword [ebp - 0x108], ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 1
je 0x42f591
or eax, 0xffffffff
jmp 0x42f59f
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [sym.imp.WS2_32.dll_recv]
pop esi
leave
ret 8

Function at 0x42f5a4
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
mov ebx, ecx
cmp dword [ebp + 0xc], 0
jbe 0x42f5c1
mov ecx, dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0042f534
jmp 0x42f5ce
push 0
push esi
push dword [ebp + 8]
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x42f5e8
add dword [ebp + 8], eax
sub esi, eax
test esi, esi
jg 0x42f5ad
xor eax, eax
test esi, esi
sete al
pop esi
pop ebx
pop ebp
ret 8
xor al, al
jmp 0x42f5e2

Function at 0x42f61b
Capabilities:
Send data
Send data on socket

Disassembly:
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, dword [esp + 0xc]
sete al
ret 0xc

Function at 0x42f639
Capabilities:
Connect socket

Disassembly:
movzx eax, word [edi]
push esi
push 6
push 1
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x42f676
xor eax, eax
cmp word [edi], 2
setne al
dec eax
and eax, 0xfffffff4
add eax, 0x1c
push eax
push edi
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x42f676
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or esi, 0xffffffff
mov eax, esi
pop esi
ret
Function at 0x42f67a
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
rol ax, 8
movzx ebx, ax
xor edi, edi
lea eax, [ebp + 8]
push eax
push edi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x42f6ab
or eax, 0xffffffff
jmp 0x42f72d
push esi
mov esi, dword [ebp + 8]
jmp 0x42f6df
mov eax, dword [esi + 4]
cmp eax, 2
jne 0x42f6c9
push dword [esi + 0x10]
push dword [esi + 0x18]
call fcn.0042b0d8
mov dword [ebp - 4], eax
jmp 0x42f6dc
cmp eax, 0x17
jne 0x42f6dc
push dword [esi + 0x10]
push dword [esi + 0x18]
call fcn.0042b0d8
mov dword [ebp - 8], eax
mov esi, dword [esi + 0x1c]
cmp esi, edi
jne 0x42f6b1
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [ebp - 4]
or esi, 0xffffffff
cmp eax, edi
je 0x42f703
mov edi, eax
mov word [eax + 2], bx
call fcn.0042f639
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x42f71a
cmp esi, 0xffffffff
jne 0x42f71a
mov word [edi + 2], bx
call fcn.0042f639
mov esi, eax
push dword [ebp - 4]
call fcn.0042b085
push dword [ebp - 8]
call fcn.0042b085
mov eax, esi
pop esi
pop edi
pop ebx
leave
ret 4

Function at 0x42f733
Capabilities:
Create udp socket

Disassembly:
cmp word [ebx], 2
push edi
mov edi, dword [sym.imp.WS2_32.dll_socket]
jne 0x42f74a
push 0x11
push 2
push 2
call edi
mov dword [esi], eax
cmp word [ebx], 0x17
jne 0x42f75b
push 0x11
push 2
push 0x17
call edi
mov dword [esi + 4], eax
cmp dword [esi], 0xffffffff
pop edi
jne 0x42f76a
cmp dword [esi + 4], 0xffffffff
jne 0x42f76a
xor eax, eax
ret
xor eax, eax
inc eax
ret
Function at 0x42f76e
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push 0x10
mov di, ax
pop eax
call fcn.0042b055
mov esi, eax
xor eax, eax
rol di, 8
movzx edi, di
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
cmp esi, eax
je 0x42f864
lea ecx, [ebp - 0x10]
push ecx
push eax
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x42f7b4
xor eax, eax
jmp 0x42f866
push ebx
mov ebx, dword [ebp - 0x10]
jmp 0x42f7e8
mov eax, dword [ebx + 4]
cmp eax, 2
jne 0x42f7d2
push dword [ebx + 0x10]
push dword [ebx + 0x18]
call fcn.0042b0d8
mov dword [ebp - 8], eax
jmp 0x42f7e5
cmp eax, 0x17
jne 0x42f7e5
push dword [ebx + 0x10]
push dword [ebx + 0x18]
call fcn.0042b0d8
mov dword [ebp - 0xc], eax
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x42f7ba
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov byte [ebp + 0xb], bl
mov byte [ebp - 1], bl
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x42f817
mov word [ebx + 2], di
call fcn.0042f733
mov byte [ebp + 0xb], al
test al, al
je 0x42f817
mov eax, ebx
mov dword [esi + 8], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x42f833
mov word [ebx + 2], di
call fcn.0042f733
mov byte [ebp - 1], al
test al, al
je 0x42f833
mov eax, ebx
mov dword [esi + 0xc], eax
cmp byte [ebp + 0xb], 0
pop ebx
jne 0x42f842
push dword [ebp - 8]
call fcn.0042b085
cmp byte [ebp - 1], 0
jne 0x42f850
push dword [ebp - 0xc]
call fcn.0042b085
cmp byte [ebp + 0xb], 0
jne 0x42f864
cmp byte [ebp - 1], 0
jne 0x42f864
push esi
call fcn.0042b085
xor esi, esi
mov eax, esi
pop edi
pop esi
leave
ret 4

Function at 0x42f926
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x510
push esi
push edi
mov edi, dword [sym.imp.WS2_32.dll_select]
xor esi, esi
jmp 0x42f9a2
mov dword [ebp + 0x70], esi
cmp dword [ebp - 0x9c], esi
jbe 0x42f9a2
mov eax, dword [ebp + 0x70]
mov eax, dword [ebp + eax*4 - 0x98]
cmp eax, ebx
jne 0x42f95e
mov ecx, dword [ebp + 0x7c]
mov dword [ebp + 0x6c], ecx
jmp 0x42f961
mov dword [ebp + 0x6c], ebx
push esi
push 0x400
lea ecx, [ebp - 0x49c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp + 0x68], eax
cmp eax, 1
jl 0x42f9d1
push esi
push eax
lea eax, [ebp - 0x49c]
push eax
push dword [ebp + 0x6c]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, dword [ebp + 0x68]
jne 0x42f9d1
inc dword [ebp + 0x70]
mov eax, dword [ebp + 0x70]
cmp eax, dword [ebp - 0x9c]
jb 0x42f948
mov eax, dword [ebp + 0x7c]
push esi
push esi
mov dword [ebp - 0x94], eax
push esi
lea eax, [ebp - 0x9c]
push eax
push esi
mov dword [ebp - 0x9c], 2
mov dword [ebp - 0x98], ebx
call edi
cmp eax, 1
jge 0x42f93d
pop edi
pop esi
add ebp, 0x74
leave
ret 4
Function at 0x42f9da
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, eax
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 1]
cmp ecx, 0x40
jae 0x42fa6e
test eax, eax
je 0x42fa11
xor edx, edx
mov ebx, 0x3e8
div ebx
mov ebx, dword [ebp + 8]
imul edx, edx, 0x3e8
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push 4
push ebx
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x10c], ecx
call fcn.0042b0c1
test esi, esi
je 0x42fa3f
mov eax, esi
shl eax, 2
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push eax
call fcn.0042b0c1
xor eax, eax
cmp eax, dword [ebp + 0xc]
lea ecx, [ebp - 8]
sbb eax, eax
and eax, ecx
push eax
push 0
push 0
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x42fa77
push 0x274c
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop esi
pop ebx
leave
ret 0xc
cmp eax, 0xffffffff
je 0x42fa6e
xor esi, esi
push dword [ebx + esi*4]
lea eax, [ebp - 0x10c]
call fcn.0042f50e
test al, al
jne 0x42fa98
inc esi
cmp esi, 1
jb 0x42fa7e
jmp 0x42fa6e
mov eax, dword [ebx + esi*4]
jmp 0x42fa71

Function at 0x42fbba
Capabilities:
Create udp socket

Disassembly:
movzx eax, word [esi]
push edi
push 0x11
push 2
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x42fbf7
xor eax, eax
cmp word [esi], 2
setne al
dec eax
and eax, 0xfffffff4
add eax, 0x1c
push eax
push esi
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x42fbf7
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
or edi, 0xffffffff
mov eax, edi
pop edi
ret

Function at 0x42fee6
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], ebx
mov word [ebp - 0xc], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x42ff3a
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x42ff31
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 4]
pop ebx
leave
ret