joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461d70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x461e91
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x461e75
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x461dc7
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x461da5
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18

Function at 0x4628d9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x462930
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x462930
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x462930
xor eax, eax
inc eax
jmp 0x462932
xor eax, eax
leave
ret 0x10
Function at 0x46295b
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x4629c9
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x4cfb8c
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4629c0
cmp dword [ebp - 0xc], 4
jne 0x4629c0
cmp dword [ebp - 0x10], edi
je 0x4629c0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x5bb7a0], edi
xor eax, eax
jmp 0x462a08
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x5bb7a0], edi
jge 0x462a03
lea eax, [ebp - 0x34]
push eax
mov dword [0x5bb7a0], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x462a03
cmp word [ebp - 0x14], 5
jb 0x462a03
call fcn.00462936
test eax, eax
je 0x462a03
emms
mov dword [0x5bb7a0], 1
mov eax, dword [0x5bb7a0]
pop edi
leave
ret

Function at 0x490036
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x49006e
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.0048e086
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048e05e
jmp 0x49007a
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49172b
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 0x49176d
call fcn.00497404
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49176d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x491764
xor eax, eax
jmp 0x491775
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049177b
pop edi
pop esi
pop ebx
ret 4

Function at 0x497934
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 0x497962
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x497980
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049789a
jmp 0x497980
mov eax, dword [esi + 0x14]
test eax, eax
je 0x497980
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049789a
test edi, edi
mov eax, edi
jne 0x49796a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x100016c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10195d33
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x101c6444]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push edi
mov ecx, esi
mov byte [esi + 4], bl
call fcn.10001a10
mov dword [esp + 0x14], ebx
movzx eax, word [edi + 0x1c]
mov word [esi + 0x1c], ax
mov ecx, dword [edi + 0x1e]
mov dword [esi + 0x20], ecx
mov edx, dword [edi + 0x22]
mov dword [esi + 0x24], edx
movzx eax, byte [edi + 0x26]
mov byte [esi + 0x28], al
mov ecx, dword [edi + 0x27]
mov dword [esi + 0x30], ecx
mov edx, dword [edi + 0x2b]
push 0xffffffffffffffff
lea ecx, [esi + 0x38]
mov dword [esi + 0x34], edx
push ebx
lea eax, [edi + 0x2f]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.10001a10
mov byte [esp + 0x14], 1
mov ecx, dword [edi + 0x4b]
mov dword [esi + 0x54], ecx
movzx edx, byte [edi + 0x4f]
mov byte [esi + 0x58], dl
movzx eax, byte [edi + 0x50]
mov byte [esi + 0x59], al
movzx ecx, byte [edi + 0x51]
mov byte [esi + 0x5a], cl
movzx edx, byte [edi + 0x52]
mov byte [esi + 0x5b], dl
movzx eax, word [edi + 0x53]
mov word [esi + 0x5c], ax
mov cx, word [edi + 0x55]
mov word [esi + 0x5e], cx
mov dx, word [edi + 0x57]
mov word [esi + 0x60], dx
movzx eax, byte [edi + 0x59]
mov byte [esi + 0x62], al
mov ecx, dword [edi + 0x5a]
mov dword [esi + 0x68], ecx
mov edx, dword [edi + 0x5e]
mov dword [esi + 0x6c], edx
mov eax, dword [edi + 0x62]
mov dword [esi + 0x70], eax
mov ecx, dword [edi + 0x66]
mov dword [esi + 0x74], ecx
mov edx, dword [edi + 0x6a]
mov dword [esi + 0x78], edx
mov eax, dword [edi + 0x6e]
mov dword [esi + 0x7c], eax
mov ecx, dword [edi + 0x72]
mov dword [esi + 0x80], ecx
mov edx, dword [edi + 0x76]
mov dword [esi + 0x84], edx
mov eax, dword [edi + 0x7a]
mov dword [esi + 0x88], eax
mov ecx, dword [edi + 0x7e]
mov dword [esi + 0x8c], ecx
mov edx, dword [edi + 0x82]
lea ecx, [esi + 0x94]
mov dword [esi + 0x90], edx
push 0xffffffffffffffff
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
mov byte [ecx + 4], bl
push ebx
lea eax, [edi + 0x86]
push eax
call fcn.10001a10
movzx ecx, byte [edi + 0xa2]
mov byte [esi + 0xb0], cl
mov edx, dword [edi + 0xa3]
mov dword [esi + 0xb4], edx
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x10002600
Capabilities:
Create thread

Disassembly:
push ecx
push 0
push 1
push 0x101c905c
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x10002664
push esi
mov esi, 0x101c903c
call fcn.10002e00
test eax, eax
pop esi
jne 0x10002630
mov dword [0x101c9024], 1
pop ecx
ret
push edi
mov edi, 0x101c9028
call fcn.10002b70
lea eax, [esp + 4]
push eax
push 0
push edi
push 0x10002f40
push 0
push 0
call fcn.10158ba9
add esp, 0x18
mov dword [0x101c9028], eax
mov dword [0x101c9024], 0
pop edi
pop ecx
ret
Function at 0x1001ad60
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1017bc23
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push esi
push edi
mov eax, dword [0x101c6444]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
push eax
lea ecx, [esp + 0x14]
call fcn.100230f0
push 0
push 0x2710
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esi + 8]
push 0x10002
mov dword [esp + 0x58], 0
call fcn.100f16d1
or edi, 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x48], edi
call fcn.100a8080
mov dx, word [esp + 0x54]
mov word [esi + 0x1fc], dx
mov eax, dword [esi + 0x14]
push 0x38
mov dword [esi + 0x18], eax
call fcn.101582b6
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x48], 1
je 0x10016869
mov ecx, eax
call fcn.1007e0d0
jmp 0x1001686b
xor eax, eax
push 0
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x50], edi
mov dword [esp + 0x20], 0x101995c0
call fcn.100371c0
mov dword [esp + 0x18], 0x101995c0
mov ecx, dword [esi + 0x60]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0x12
lea ecx, [esp + 0x34]
mov dword [esp + 0x54], 2
call fcn.100d8f80
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], 4
mov dword [esp + 0x18], 0x101995c0
mov dword [esp + 0x1c], 0x10199578
call fcn.10006f60
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
push 3
mov ecx, esi
mov edi, eax
call fcn.1000a7b0
movzx eax, ax
push eax
push 0
push 0x12
push edi
call fcn.100f330e
add esp, 0x14
mov byte [esp + 0xc], 0
mov ecx, dword [esp + 0xc]
push ecx
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x18]
push eax
mov ecx, edi
mov dword [esp + 0x1c], 0x65
call fcn.1000e7f0
mov byte [esp + 0x50], 0
mov ecx, dword [esp + 0x50]
push ecx
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x18]
push eax
mov ecx, edi
mov dword [esp + 0x1c], 0x13014
call fcn.1000ea20
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
mov dword [esi + 0x248], eax
call fcn.10015600
lea ecx, [esp + 0x34]
mov esi, eax
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x30], 0x101995c0
mov dword [esp + 0x34], 0x10199578
call fcn.10006f60
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x40
ret 8
mov ecx, dword [ecx + 0x14]
test ecx, ecx
je 0x1001ad6c
jmp 0x100167d0
mov eax, 2
ret 8
Function at 0x1001af40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1017bbab
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x101c6444]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x40]
push eax
lea ecx, [esi + 0x2a4]
call fcn.1000d1a0
push 0x38
call fcn.101582b6
add esp, 4
mov dword [esp + 0x40], eax
test eax, eax
mov dword [esp + 0x38], 0
je 0x10016499
mov ecx, eax
call fcn.1007e0d0
jmp 0x1001649b
xor eax, eax
push 0
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x10], 0x101995c0
call fcn.100371c0
mov dword [esp + 8], 0x101995c0
mov ecx, dword [esi + 0x60]
push ecx
lea edx, [esp + 0xc]
push edx
push 0x17
lea ecx, [esp + 0x24]
mov dword [esp + 0x44], 1
call fcn.100d8f80
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 3
mov dword [esp + 8], 0x101995c0
mov dword [esp + 0xc], 0x10199578
call fcn.10006f60
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.10015600
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x20], 0x101995c0
mov dword [esp + 0x24], 0x10199578
call fcn.10006f60
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret 4
mov ecx, dword [ecx + 0x14]
test ecx, ecx
je 0x1001af4c
jmp 0x10016440
ret 4
Function at 0x10020e90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x1017ca03
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101c6444]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push ebx
mov edi, 0xf
push 0x1019777d
lea ecx, [esp + 0x5c]
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
call fcn.10001b80
push ebx
push 0x1019777d
lea ecx, [esp + 0x40]
mov dword [esp + 0x80], ebx
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
call fcn.10001b80
push ebx
push 0x1019777d
lea ecx, [esp + 0x24]
mov byte [esp + 0x80], 1
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.10001b80
movzx eax, word [esi + 0x18]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 8]
push eax
push ecx
push 1
push edx
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x4c]
push ecx
push ebx
lea edx, [esp + 0x38]
push edx
push ebx
push 0xea60
push 0xa
mov byte [esp + 0xa4], 2
call fcn.1002aa60
add esp, 0x1c
mov ecx, eax
call fcn.10029040
cmp dword [esp + 0x34], 0x10
mov ebp, eax
jb 0x10020f74
mov eax, dword [esp + 0x20]
push eax
call fcn.10157f3b
add esp, 4
cmp dword [esp + 0x50], 0x10
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
jb 0x10020f94
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.10157f3b
add esp, 4
cmp dword [esp + 0x6c], 0x10
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
mov dword [esp + 0x78], 0xffffffff
jb 0x10020fbc
mov edx, dword [esp + 0x58]
push edx
call fcn.10157f3b
add esp, 4
cmp ebp, ebx
je 0x1002101e
push 8
call fcn.101582b6
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
mov dword [esp + 0x78], 3
je 0x10020fe6
push ebp
mov ecx, eax
call fcn.10023b40
mov edi, eax
jmp 0x10020fe8
xor edi, edi
mov eax, dword [esi + 0xc]
xor ecx, ecx
cmp edi, eax
mov dword [esp + 0x78], 0xffffffff
mov dword [esp + 0x14], ecx
je 0x1002100f
cmp eax, ebx
je 0x1002100f
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
mov dword [esi + 0xc], edi
je 0x1002101e
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
Function at 0x10021370
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1017ca28
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x101c6444]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x2c]
mov dword [edi + 4], ecx
lea esi, [edi + 8]
push edx
mov ecx, esi
mov dword [esp + 0x1c], 0
mov dword [edi], eax
call fcn.1000cff0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x30]
test eax, eax
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], edx
je 0x100213e9
push eax
call fcn.10157f3b
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x10024400
Capabilities:
Set socket configuration

Disassembly:
cmp byte [esp + 4], 0
push esi
je 0x1002440e
push 0x11
push 2
jmp 0x10024412
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 8], 0x10000
je 0x10024459
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [esp + 0x10]
push eax
push 0x1002
push 0xffff
push esi
call edi
push 4
lea ecx, [esp + 0x10]
push ecx
push 0x1001
push 0xffff
push esi
call edi
pop edi
mov eax, esi
pop esi
ret

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

Disassembly:
sub esp, 0x14
mov eax, dword [0x101c6444]
xor eax, esp
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x18]
cmp ecx, 0xffffffff
mov eax, dword [esp + 0x24]
je 0x100244b9
mov dx, word [esp + 0x20]
mov word [esp + 2], dx
mov edx, dword [esp + 0x1c]
push 0x10
mov dword [esp + 8], edx
lea edx, [esp + 4]
push edx
mov edx, dword [esp + 0x30]
push 0
push edx
push eax
push ecx
mov word [esp + 0x18], 2
call dword [sym.imp.WS2_32.dll_sendto]
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.101586e7
add esp, 0x14
ret
mov ecx, dword [esp + 0x10]
xor ecx, esp
or eax, 0xffffffff
call fcn.101586e7
add esp, 0x14
ret

Function at 0x10024510
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x101c6444]
xor eax, esp
mov dword [esp + 0x14], eax
mov ax, word [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push esi
push 0x11
push 2
push 2
mov word [esp + 0x14], 2
mov word [esp + 0x16], ax
mov dword [esp + 0x18], ecx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 4], 0x10000
je 0x10024583
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea edx, [esp + 0xc]
push edx
push 0x1002
push 0xffff
push esi
call edi
push 4
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call edi
pop edi
cmp byte [esp + 0x28], 0
je 0x100245c7
lea ecx, [esp + 4]
push ecx
push 0x8004667e
push esi
mov dword [esp + 0x10], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x100245c7
cmp esi, 0xffffffff
je 0x100245b4
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.101586e7
add esp, 0x18
ret
push 0x10
lea edx, [esp + 0xc]
push edx
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x100245a8
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
xor ecx, esp
call fcn.101586e7
add esp, 0x18
ret

Function at 0x10024700
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 4]
push edx
push 0
lea eax, [esi + 8]
push eax
push 0x10024350
push 0
push 0
mov byte [esi + 0x18], 0
mov dword [eax], esi
mov dword [esi + 0xc], ecx
call fcn.10158ba9
add esp, 0x18
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x1002473c
mov dword [esi + 4], 0
cmp dword [esi + 4], 0
jne 0x1002474d
mov byte [esi + 0x18], 1
xor al, al
pop esi
pop ecx
ret 4
mov al, 1
pop esi
pop ecx
ret 4
Function at 0x100248e0
Capabilities:
Resolve dns

Disassembly:
mov ax, word [esp + 8]
push ebx
push edi
mov edi, dword [esp + 0xc]
mov ebx, ecx
push 1
push 0
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
mov dword [ebx], 0
mov word [ebx + 4], ax
mov byte [esp + 0x1c], 0x2e
call fcn.100241b0
cmp eax, 0xffffffff
je 0x1002496b
cmp dword [edi + 0x18], 0x10
push esi
lea esi, [edi + 4]
jb 0x1002491f
mov eax, dword [esi]
jmp 0x10024921
mov eax, esi
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_inet_addr]
push eax
call ebp
cmp eax, 0xffffffff
jne 0x10024955
cmp dword [edi + 0x18], 0x10
jb 0x10024938
mov esi, dword [esi]
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x1002494c
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebx], ecx
pop ebp
pop esi
pop edi
mov eax, ebx
pop ebx
ret 8
cmp dword [edi + 0x18], 0x10
jb 0x1002495d
mov esi, dword [esi]
push esi
call ebp
pop ebp
pop esi
mov dword [ebx], eax
pop edi
mov eax, ebx
pop ebx
ret 8
pop edi
mov dword [ebx], 0xffffffff
mov eax, ebx
pop ebx
ret 8

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

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 0xffffffff
je 0x1002677d
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
ret
or eax, 0xffffffff
ret

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

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 0xffffffff
je 0x100267ad
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
ret
or eax, 0xffffffff
ret
Function at 0x10026ab0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 4]
test eax, eax
push edi
mov ebp, ecx
jne 0x10026ac8
xor edi, edi
jmp 0x10026acd
mov edi, dword [esi + 8]
sub edi, eax
push 0
lea eax, [edi + 0x578]
push eax
mov ecx, esi
call fcn.1000d270
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x10026aed
mov eax, dword [esi + 8]
sub eax, ecx
cmp edi, eax
jb 0x10026af2
call fcn.1015828d
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 0xc]
add eax, edi
cmp ecx, 0xffffffff
je 0x10026b8c
push 0
push 0x578
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test ebx, ebx
jle 0x10026b85
cmp ebx, 0x578
je 0x10026b83
mov eax, dword [esi + 8]
cmp dword [esi + 4], eax
mov dword [esp + 0x20], eax
jbe 0x10026b31
call fcn.1015828d
mov ebp, dword [esi + 4]
cmp ebp, dword [esi + 8]
jbe 0x10026b3e
call fcn.1015828d
add edi, ebp
cmp edi, dword [esi + 8]
mov dword [esp + 0x14], ebp
ja 0x10026b4e
cmp edi, dword [esi + 4]
jae 0x10026b53
call fcn.1015828d
mov dword [esp + 0x14], edi
add edi, ebx
cmp edi, dword [esi + 8]
mov ebp, esi
ja 0x10026b65
cmp edi, dword [esi + 4]
jae 0x10026b6a
call fcn.1015828d
mov ecx, dword [esp + 0x20]
push ecx
push esi
push edi
push ebp
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.100065e0
jmp 0x10026c04
test ebx, ebx
je 0x10026be0
cmp ebx, 0xffffffff
jne 0x10026c04
mov eax, dword [esi + 8]
cmp dword [esi + 4], eax
mov dword [esp + 0x1c], eax
jbe 0x10026b9d
call fcn.1015828d
mov ebx, dword [esi + 4]
cmp ebx, dword [esi + 8]
jbe 0x10026baa
call fcn.1015828d
add edi, ebx
cmp edi, dword [esi + 8]
mov dword [esp + 0x14], ebx
ja 0x10026bba
cmp edi, dword [esi + 4]
jae 0x10026bbf
call fcn.1015828d
mov ecx, dword [esp + 0x1c]
push ecx
push esi
push edi
push esi
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.100065e0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x10026c04
cmp dword [ebp + 0x10], 2
jne 0x10026bfa
xor eax, eax
cmp byte [esp + 0x20], al
push eax
setne al
mov ecx, ebp
push eax
push 2
call fcn.10026990
mov edx, dword [ebp]
mov eax, dword [edx + 0xc]
mov ecx, ebp
call eax
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x10026c17
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 8
ret 8