joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005bc3
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
push ebx
push 0x1001a58
mov dword [ebp - 0x14], ebx
call fcn.0101b90f
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x1005be8
xor eax, eax
jmp 0x1005d37
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push 0x1001a48
push eax
call esi
push 0x1001a38
push dword [ebp - 4]
mov edi, eax
call esi
push 0x1001a24
push dword [ebp - 4]
mov dword [ebp - 0x10], eax
call esi
push 0x1001a10
push dword [ebp - 4]
mov dword [ebp - 0x1c], eax
call esi
push 0x10019fc
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
call esi
cmp edi, ebx
mov dword [ebp - 0x18], eax
je 0x1005d33
cmp dword [ebp - 0x10], ebx
je 0x1005d33
cmp dword [ebp - 0x1c], ebx
je 0x1005d33
cmp dword [ebp - 0xc], ebx
je 0x1005d33
cmp eax, ebx
je 0x1005d33
mov esi, 0x80000000
push esi
push ebx
push ebx
call edi
cmp eax, ebx
mov dword [ebp - 0x1c], eax
jne 0x1005c75
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1005d25
push esi
push 0x10019ec
push eax
call dword [ebp - 0x10]
cmp eax, ebx
mov dword [ebp - 0x10], eax
jne 0x1005c91
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1005d14
lea ecx, [ebp - 8]
push ecx
push ebx
push ebx
push eax
call dword [ebp - 0xc]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x1005cac
call edi
cmp eax, 0x7a
jne 0x1005d14
mov eax, dword [ebp - 8]
inc eax
push eax
push ebx
push dword [0x1024f78]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
je 0x1005d14
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push esi
push dword [ebp - 0x10]
call dword [ebp - 0xc]
test eax, eax
jne 0x1005cdc
call edi
test eax, eax
jne 0x1005d06
mov eax, dword [esi + 4]
cmp eax, 4
je 0x1005d06
cmp eax, 3
jne 0x1005cf3
mov eax, dword [0x10222c0]
mov dword [ebp - 0x14], eax
jmp 0x1005d06
xor ecx, ecx
inc ecx
cmp eax, ebx
je 0x1005d03
cmp eax, ecx
je 0x1005d03
cmp eax, 2
jne 0x1005d06
mov dword [ebp - 0x14], ecx
push esi
push ebx
push dword [0x1024f78]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x10], ebx
je 0x1005d1f
push dword [ebp - 0x10]
call dword [ebp - 0x18]
push dword [ebp - 0x1c]
call dword [ebp - 0x18]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x14]
jmp 0x1005d35
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1009318
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x1042bc4]
xor eax, dword [ebp + 4]
cmp dword [0x1025024], 0
mov dword [ebp - 4], eax
je 0x1009383
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x408]
push 0x400
push eax
call dword [sym.imp.msvcrt.dll__vsnprintf]
lea eax, [ebp - 0x408]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100935a
push 0
sub eax, edx
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x408]
push eax
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.0101ed84
leave
ret

Function at 0x1009731
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x1042bc4]
xor eax, dword [ebp + 4]
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push 0x1001c04
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10097fa
push edi
push 0x14
pop ecx
xor eax, eax
push ebx
lea edi, [ebp - 0x80]
rep stosd dword es:[edi], eax
lea eax, [ebp - 8]
push eax
push 0x50
lea eax, [ebp - 0x80]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
pop edi
je 0x10097f3
mov eax, dword [ebp - 8]
cmp eax, ebx
mov byte [ebp + eax - 0x80], bl
je 0x10097f3
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x2c], ecx
mov cl, byte [ebp - 0x80]
cmp cl, bl
push 2
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], ebx
pop edx
je 0x10097e9
cmp cl, 0xd
je 0x10097e4
cmp cl, 0xa
je 0x10097e4
cmp edx, 0xa
jae 0x10097e4
cmp cl, 0x20
jne 0x10097dd
inc eax
cmp byte [eax], 0x20
je 0x10097c2
mov cl, byte [eax]
cmp cl, bl
je 0x10097dc
cmp cl, 0xd
je 0x10097dc
cmp cl, 0xa
je 0x10097dc
mov dword [ebp + edx*4 - 0x30], eax
inc edx
inc eax
mov cl, byte [eax]
cmp cl, bl
jne 0x10097ae
cmp edx, 1
jbe 0x10097f3
lea eax, [ebp - 0x30]
push eax
push edx
call fcn.01009248
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.0101ed84
leave
ret
Function at 0x100a88b
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor esi, esi
xor edi, edi
inc esi
push esi
push edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, edi
mov dword [ebp - 8], eax
jne 0x100a8c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push 0x1001d04
call fcn.01009318
pop ecx
pop ecx
jmp 0x100a92a
push 4
push 0x1001600
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x100a8e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push 0x1001cec
jmp 0x100a904
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x100a90d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push 0x1001cd4
call fcn.01009318
pop ecx
pop ecx
jmp 0x100a918
cmp dword [ebp - 0x20], 4
jne 0x100a916
mov dword [ebp - 4], esi
xor ebx, ebx
test edi, edi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x100a925
push edi
call esi
push dword [ebp - 8]
call esi
mov eax, dword [ebp + 8]
test eax, eax
je 0x100a933
mov dword [eax], ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x100ad47
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 8]
mov ecx, dword [0x1041764]
mov eax, edx
imul eax, eax, 0x5c
add ecx, eax
cmp dword [ecx + 0x1c], 0
je 0x100ad9f
mov eax, dword [0x1022294]
test eax, eax
je 0x100ad9f
push esi
mov esi, edx
shl esi, 2
mov eax, dword [esi + eax]
mov dword [ebp - 8], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 4], eax
push 8
lea eax, [ebp - 8]
push eax
mov eax, dword [0x10416d4]
push 0xd
push 0
push dword [esi + eax]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [0x1022294]
and dword [esi + eax], 0
pop esi
leave
ret 4

Function at 0x100ada3
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 8]
mov ecx, dword [0x1041764]
mov eax, edx
imul eax, eax, 0x5c
add ecx, eax
cmp dword [ecx + 0x1c], 0
je 0x100adfb
mov eax, dword [0x1022298]
test eax, eax
je 0x100adfb
push esi
mov esi, edx
shl esi, 2
mov eax, dword [esi + eax]
mov dword [ebp - 8], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 4], eax
push 8
lea eax, [ebp - 8]
push eax
mov eax, dword [0x10416d4]
push 0xd
push 0
push dword [esi + eax]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [0x1022298]
and dword [esi + eax], 0
pop esi
leave
ret 4
Function at 0x100af0e
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ac
mov eax, dword [0x1042bc4]
xor eax, dword [ebp + 4]
push esi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1ac]
push eax
xor edi, edi
push 0x202
mov dword [ebp - 0x18], edi
mov dword [ebp - 8], edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x100b0c6
cmp byte [ebp - 0x1ac], 2
jne 0x100b0c0
cmp byte [ebp - 0x1ab], 2
jne 0x100b0c0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push edi
call sub.WS2_32.dll_WSCEnumProtocols
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
jne 0x100afce
cmp dword [ebp - 0x1c], 0x2747
jne 0x100b0c6
push dword [ebp - 0x10]
push edi
push dword [0x1024f78]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, edi
mov dword [ebp - 0x18], esi
je 0x100b0c6
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push edi
call sub.WS2_32.dll_WSCEnumProtocols
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
jne 0x100afcb
push esi
push edi
push dword [0x1024f78]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x100b0c6
mov dword [ebp - 8], esi
cmp dword [0x1020198], edi
mov dword [ebp - 0x14], 0x1001c4c
jne 0x100afe4
mov dword [ebp - 0x14], 0x1001c5c
cmp dword [ebp - 0xc], edi
mov dword [0x102228c], edi
mov dword [0x1022290], edi
je 0x100b07e
push ebx
mov ebx, 0x274
mov esi, dword [ebp - 8]
dec dword [ebp - 0xc]
mov edi, dword [ebp - 0x14]
push 4
add esi, 0x14
pop ecx
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x100b072
mov esi, dword [ebp - 8]
cmp dword [esi + 0x5c], eax
jne 0x100b048
cmp dword [esi + 0x58], 3
jne 0x100b048
cmp dword [esi + 0x4c], 2
jne 0x100b048
push ebx
push eax
push dword [0x1024f78]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [0x102228c], eax
je 0x100b07b
mov ecx, 0x9d
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 8]
cmp dword [esi + 0x5c], 6
jne 0x100b072
push ebx
push 0
push dword [0x1024f78]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [0x1022290], eax
je 0x100b07b
mov ecx, 0x9d
mov edi, eax
rep movsd dword es:[edi], dword [esi]
add dword [ebp - 8], ebx
cmp dword [ebp - 0xc], 0
jne 0x100afff
xor edi, edi
pop ebx
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
push dword [0x1024f78]
call esi
cmp dword [0x102228c], edi
je 0x100b09d
xor eax, eax
inc eax
jmp 0x100b0c8
mov eax, dword [0x1022290]
cmp eax, edi
je 0x100b0b0
push eax
push edi
push dword [0x1024f78]
call esi
push 0x2758
push 1
push 1
call fcn.0100418f
jmp 0x100b0c6
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
call fcn.0101ed84
leave
ret
Function at 0x100b0d7
Capabilities:
Create udp socket
Terminate process

Disassembly:
push esi
push 0
push 0
push dword [0x102228c]
push dword [esp + 0x18]
push dword [esp + 0x18]
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100b10f
push 0x273b
push 1
push 1
call fcn.0100418f
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [0x1022160]
xor ecx, ecx
test eax, eax
jbe 0x100b128
cmp dword [ecx*4 + 0x1022164], esi
je 0x100b128
inc ecx
cmp ecx, eax
jb 0x100b11a
cmp ecx, eax
jne 0x100b13e
cmp eax, 0x40
jae 0x100b13e
mov dword [ecx*4 + 0x1022164], esi
inc dword [0x1022160]
push 2
call fcn.01005916
mov eax, esi
pop esi
ret 8

Function at 0x100b14b
Capabilities:
Set socket configuration
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1042bc4]
xor eax, dword [ebp + 4]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 4
push 0xffff
push dword [ebp + 8]
mov dword [ebp - 8], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x100b1ad
push edi
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov ax, word [ebp + 0x10]
mov word [ebp - 0x16], ax
push 0x10
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
mov word [ebp - 0x18], 2
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
pop edi
je 0x100b1b5
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.0101ed84
leave
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1042bc4]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 0x14]
and ecx, 8
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x14
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], eax
pop edi
je 0x100ba28
push 0x18
pop edi
mov esi, dword [ebp + 0x1c]
sub esi, edi
mov ebx, dword [ebp + 0x20]
xor eax, eax
cmp ecx, eax
setne dl
add dl, 0x45
mov byte [esi], dl
cmp dword [0x1020198], eax
mov word [esi + 4], ax
setne dl
dec dl
mov word [esi + 6], ax
mov byte [esi + 9], 0x2e
mov word [esi + 0xa], ax
and edx, 0xc0
cmp ecx, eax
mov byte [esi + 1], dl
lea edx, [ebx + edi]
mov word [esi + 2], dx
mov dl, byte [ebp + 0x18]
mov byte [esi + 8], dl
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
mov dword [esi + 0xc], edx
mov edx, dword [ebp - 0x10]
mov dword [esi + 0x10], edx
je 0x100ba88
mov ecx, dword [0x1020190]
mov dword [esi + 0x14], ecx
cmp dword [0x1025024], 9
jl 0x100ba9d
lea eax, [edi + ebx]
push eax
push esi
call fcn.010095bf
xor eax, eax
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push eax
add edi, ebx
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
pop edi
pop esi
pop ebx
jne 0x100babb
or eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.0101ed84
leave
ret 0x1c
Function at 0x100bd21
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push 0x1001d4c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x100bd72
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100bd51
sub eax, edx
push eax
push dword [ebp + 8]
push 1
push 0
push 0x1001d3c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
cmp dword [ebp - 4], 0
je 0x100bd81
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 4

Function at 0x100bd88
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x20006
xor esi, esi
push esi
push 0x1001d4c
push 0x80000002
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
cmp edi, esi
jne 0x100bdcc
push esi
push 0x10016d0
push 1
push esi
push 0x1001d3c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
cmp dword [ebp - 4], esi
je 0x100bdda
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x100c28d
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
lea eax, [ebp - 4]
push eax
push 0x20006
xor ebx, ebx
push ebx
push 0x1001d4c
push 0x80000002
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
cmp edi, ebx
jne 0x100c308
mov eax, dword [ebp + 8]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x100c2be
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub eax, ecx
push eax
push dword [ebp + 8]
push 1
push ebx
push 0x1001d88
push dword [ebp - 4]
call esi
mov edi, eax
cmp edi, ebx
jne 0x100c307
mov eax, dword [ebp + 0xc]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x100c2eb
sub eax, ecx
push eax
push dword [ebp + 0xc]
push 1
push ebx
push 0x1001d80
push dword [ebp - 4]
call esi
mov edi, eax
pop esi
cmp dword [ebp - 4], ebx
je 0x100c316
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop ebx
leave
ret 8
Function at 0x100c31e
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x20006
xor ebx, ebx
push ebx
push 0x1001d4c
push 0x80000002
mov dword [ebp - 4], ebx
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, ebx
jne 0x100c37e
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebx
mov edi, 0x10016d0
push edi
push 1
push ebx
push 0x1001d88
push dword [ebp - 4]
call esi
push ebx
push edi
push 1
push ebx
push 0x1001d80
push dword [ebp - 4]
mov dword [ebp - 8], eax
call esi
mov esi, dword [ebp - 8]
mov edi, eax
cmp dword [ebp - 4], ebx
je 0x100c38c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
mov eax, esi
jne 0x100c394
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100c5ac
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push 0
push 1
call sub.Secur32.dll_GetUserNameExA
mov eax, dword [ebp - 4]
inc eax
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
xor eax, eax
test esi, esi
pop ecx
je 0x100c60a
mov ecx, dword [ebp - 4]
inc ecx
push edi
mov edx, ecx
shr ecx, 2
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp - 4]
push eax
push esi
push 1
call sub.Secur32.dll_GetUserNameExA
test al, al
pop edi
jne 0x100c608
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
xor eax, eax
jmp 0x100c60a
mov eax, esi
pop esi
leave
ret
Function at 0x100ce7d
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [0x1041768]
lea eax, [eax + eax + 5]
push esi
mov dword [0x104176c], eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
lea eax, [eax + eax*2]
shl eax, 3
push eax
xor esi, esi
push esi
push dword [0x1024f78]
call edi
cmp eax, esi
mov dword [0x1022270], eax
jne 0x100ceb6
or eax, 0xffffffff
jmp 0x100d07a
mov ecx, dword [0x104176c]
push ebx
xor ebx, ebx
cmp ecx, esi
jle 0x100cee3
xor edx, edx
jmp 0x100cecc
mov eax, dword [0x1022270]
lea eax, [edx + eax + 0x10]
mov dword [eax + 4], eax
mov dword [eax], eax
mov ecx, dword [0x104176c]
inc ebx
add edx, 0x18
cmp ebx, ecx
jl 0x100cec7
mov eax, ecx
shl eax, 2
push eax
push esi
push dword [0x1024f78]
call edi
cmp eax, esi
mov dword [0x1041770], eax
jne 0x100cf03
or eax, 0xffffffff
jmp 0x100d079
push esi
xor ebx, ebx
inc ebx
push ebx
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x102227c], eax
mov eax, dword [0x1022270]
mov dword [eax + 4], esi
mov eax, dword [0x102227c]
mov ecx, dword [0x1022270]
push esi
mov dword [ecx], eax
mov eax, dword [0x1041770]
mov ecx, dword [0x102227c]
push esi
push ebx
mov dword [eax], ecx
push esi
mov dword [0x1022274], ebx
call edi
cmp eax, esi
mov dword [0x1022280], eax
je 0x100cefb
mov eax, dword [0x1022274]
mov ecx, dword [0x1022270]
lea eax, [eax + eax*2]
mov dword [ecx + eax*8 + 4], esi
mov eax, dword [0x1022274]
mov ecx, dword [0x1022280]
mov edx, dword [0x1022270]
push esi
lea eax, [eax + eax*2]
mov dword [edx + eax*8], ecx
mov eax, dword [0x1022274]
mov ecx, dword [0x1041770]
mov edx, dword [0x1022280]
push esi
push ebx
mov dword [ecx + eax*4], edx
inc dword [0x1022274]
push esi
call edi
cmp eax, esi
mov dword [0x1020194], eax
je 0x100cefb
mov ecx, dword [0x1022274]
mov edx, dword [0x1022270]
push esi
lea ecx, [ecx + ecx*2]
mov dword [edx + ecx*8], eax
mov eax, dword [0x1022274]
mov ecx, dword [0x1041770]
mov edx, dword [0x1020194]
push esi
push esi
mov dword [ecx + eax*4], edx
inc dword [0x1022274]
push esi
call edi
cmp eax, esi
mov dword [0x1024ef8], eax
je 0x100cefb
mov ecx, dword [0x1022274]
mov edx, dword [0x1022270]
push esi
lea ecx, [ecx + ecx*2]
mov dword [edx + ecx*8], eax
mov eax, dword [0x1022274]
mov ecx, dword [0x1041770]
mov edx, dword [0x1024ef8]
push esi
push esi
mov dword [ecx + eax*4], edx
inc dword [0x1022274]
push esi
call edi
cmp eax, esi
mov dword [0x1024eb8], eax
je 0x100cefb
mov ecx, dword [0x1022274]
mov edx, dword [0x1022270]
lea ecx, [ecx + ecx*2]
mov dword [edx + ecx*8], eax
mov eax, dword [0x1022274]
mov ecx, dword [0x1041770]
mov edx, dword [0x1024eb8]
mov dword [ecx + eax*4], edx
inc dword [0x1022274]
mov eax, dword [0x1022274]
push 0x11
push 2
push 2
mov dword [0x1022278], eax
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [0x1024f44], eax
je 0x100d077
call fcn.0100b4af
xor eax, eax
pop ebx
pop edi
pop esi
ret
Function at 0x100d148
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
push 0x2e
xor ebx, ebx
push 3
mov dword [ebp - 4], ebx
call fcn.0100b0d7
cmp eax, 0xffffffff
je 0x100d238
mov edi, dword [ebp + 8]
mov ecx, dword [0x10416d4]
push esi
push edi
mov esi, edi
push ebx
shl esi, 2
push eax
mov dword [esi + ecx], eax
call fcn.0100aa91
imul edi, edi, 0x5c
mov eax, dword [0x1041764]
push ebx
push dword [edi + eax + 4]
mov eax, dword [0x10416d4]
push dword [esi + eax]
call fcn.0100b14b
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 8]
push eax
mov eax, dword [0x10416d4]
push 2
push ebx
mov dword [ebp - 8], 1
push dword [esi + eax]
call edi
test eax, eax
jne 0x100d1cb
mov dword [0x1025018], 1
jmp 0x100d1f6
cmp dword [0x1020198], ebx
mov dword [0x1025018], ebx
jne 0x100d1f6
push 4
lea eax, [ebp + 8]
push eax
mov eax, dword [0x10416d4]
push 3
push ebx
mov dword [ebp + 8], 0xc0
push dword [esi + eax]
call edi
mov dword [ebp - 4], eax
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push 4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [0x10416d4]
xor edi, edi
inc edi
push 0x98000006
mov dword [ebp - 0xc], edi
push dword [esi + eax]
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
pop esi
jne 0x100d22a
mov dword [0x1025014], edi
jmp 0x100d241
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [0x1025014], ebx
jmp 0x100d23e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret 4
Function at 0x100d38a
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1042bc4]
xor eax, dword [ebp + 4]
and dword [ebp - 8], 0
cmp dword [0x1025018], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, ebx
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], eax
movsd dword es:[edi], dword [esi]
je 0x100d3d4
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call fcn.0100b9fc
jmp 0x100d4da
push 0x1022160
push dword [ebp + 8]
call fcn.0100becc
mov edi, eax
or eax, 0xffffffff
cmp edi, eax
je 0x100d4da
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_ntohl]
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
mov bl, byte [ebp + 0x18]
and eax, 0xf0000000
cmp eax, 0xe0000000
jne 0x100d435
cmp bl, byte [edi + 0x1041800]
je 0x100d45c
movzx eax, bl
push 4
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push 0xa
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x100d45c
mov byte [edi + 0x1041800], bl
jmp 0x100d45c
cmp bl, byte [edi + 0x1041840]
je 0x100d45c
movzx eax, bl
push 4
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x100d45c
mov byte [edi + 0x1041840], bl
mov eax, dword [ebp + 0x14]
and eax, 8
je 0x100d48a
cmp byte [edi + 0x10417c0], 0
jne 0x100d48a
push 4
push 0x1020190
push 1
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x100d4af
mov byte [edi + 0x10417c0], 1
jmp 0x100d4af
test eax, eax
jne 0x100d4af
cmp byte [edi + 0x10417c0], al
je 0x100d4af
push 4
lea eax, [ebp - 8]
push eax
push 1
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x100d4af
and byte [edi + 0x10417c0], al
cmp dword [0x1025024], 9
jl 0x100d4c3
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
call fcn.010095bf
push 0x10
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_sendto]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.0101ed84
leave
ret 0x1c