joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000dad0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
mov esi, ecx
cmp dword [ebp + 0xc], ebx
je 0x1000db3f
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x1c]
push 0x30
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x1000dbb5
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x1c]
xor ecx, ecx
cmp word [eax], 2
setne cl
dec ecx
and ecx, 0xfffffff4
add ecx, 0x1c
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x1000db34
cmp eax, 0xffffffff
jne 0x1000db2c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1000db34
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
pop esi
mov eax, 1
pop ebx
pop ebp
ret 8
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp word [eax], 2
setne cl
dec ecx
and ecx, 0xfffffff4
add ecx, 0x1c
push ecx
push eax
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1000dbb5
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x1c]
push 0x23
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x1000dbb5
mov dword [esi + 0x50], 1
push 0
mov dword [esi + 0x54], 1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi]
mov edx, dword [eax + 0x90]
mov ecx, esi
call edx
cmp eax, 2
jne 0x1000db34
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1000dbae
mov eax, 0x4c7
push eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8

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

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x190]
push edi
test eax, eax
jne 0x1000df5c
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
lea esp, [esp]
mov ecx, dword [esi + 0x2c]
mov eax, dword [esi + 0x60]
mov edx, dword [esi + 0x1c]
push 0
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
jle 0x1000df2f
push 0
call ebx
mov eax, dword [esi + 0x60]
mov edx, dword [esi]
push edi
push eax
mov eax, dword [edx + 0xa0]
mov ecx, esi
call eax
cmp eax, 2
jne 0x1000df38
mov edx, dword [esi + 0x24]
push edx
push str._C_CNNID:__Iu__OnReceive___event_return_HR_ERROR__connection_will_be_closed___n
call fcn.10009560
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1000df14
mov eax, 0x4c7
mov dword [esi + 0x10], 4
mov dword [esi + 0x14], eax
mov ecx, 1
mov dword [esi + 0x18], ecx
pop edi
mov dword [esi + 0xc], ecx
pop esi
xor eax, eax
pop ebx
ret
cmp edi, 0xffffffff
je 0x1000df4f
test edi, edi
je 0x1000df65
mov ecx, dword [esi + 0x190]
test ecx, ecx
je 0x1000dec0
pop edi
pop esi
mov eax, 1
pop ebx
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1000df14
pop edi
pop esi
mov eax, 1
pop ebx
ret
mov dword [esi + 0x10], 5
mov dword [esi + 0x14], 0
mov ecx, 1
mov dword [esi + 0x18], ecx
pop edi
mov dword [esi + 0xc], ecx
pop esi
xor eax, eax
pop ebx
ret
Function at 0x1000df90
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x18]
push esi
mov esi, ecx
mov ecx, dword [ebx + 0x14]
sub eax, ecx
push edi
je 0x1000e036
lea esp, [esp]
mov edx, dword [esi + 0x2c]
cmp eax, edx
jl 0x1000dfb9
mov eax, edx
push 0
push eax
mov eax, dword [esi + 0x1c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
test edi, edi
jle 0x1000e023
lea ebx, [esi + 0x158]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub dword [esi + 0x18c], edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x14]
mov edx, dword [esi]
push edi
push eax
mov eax, dword [edx + 0x98]
mov ecx, esi
call eax
cmp eax, 2
jne 0x1000e019
mov ecx, dword [esi + 0x24]
push ecx
push str._C_CNNID:__Iu__OnSend___event_should_not_return_HR_ERROR____n
call fcn.10009560
add esp, 8
push edi
mov ecx, ebx
call fcn.1000d6e0
jmp 0x1000e028
cmp edi, 0xffffffff
je 0x1000e042
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x18]
sub eax, ecx
jne 0x1000dfb0
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1000e064
mov edx, dword [ebp + 0xc]
pop edi
pop esi
mov dword [edx], 1
mov eax, 1
pop ebx
pop ebp
ret 8
mov ecx, 1
pop edi
mov dword [esi + 0x14], eax
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], 3
mov dword [esi + 0x18], ecx
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8

Function at 0x1000ef40
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x48]
push eax
push 0
push esi
push 0x1000ed50
push 0
push 0
call fcn.10012337
xor ecx, ecx
add esp, 0x18
test eax, eax
setne cl
mov dword [esi + 0x44], eax
pop esi
mov eax, ecx
ret
Function at 0x1000f100
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
push esi
push edi
mov esi, ecx
test eax, eax
jne 0x1000f12c
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x1c]
push 0x23
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x1000f149
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, 1
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], 2
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], eax
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
mov edi, 1
mov dword [esi + 0x4c], edi
push 0
mov dword [esi + 0x50], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi]
mov edx, dword [eax + 0x84]
mov ecx, esi
call edx
cmp eax, 2
je 0x1000f1a5
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x1000f19d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1000f19d
test eax, eax
je 0x1000f19d
push 0x80004005
call fcn.100093d0
mov eax, edi
pop edi
pop esi
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1000f1b4
mov eax, 0x4c7
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 5
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], eax
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x1000f310
Capabilities:
Connect socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
mov esi, ecx
cmp dword [ebp + 0xc], edi
je 0x1000f37e
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x1c]
push 0x30
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x1000f44e
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x1c]
xor ecx, ecx
cmp word [eax], 2
setne cl
dec ecx
and ecx, 0xfffffff4
add ecx, 0x1c
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x1000f449
cmp eax, 0xffffffff
jne 0x1000f374
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1000f449
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebp
ret 8
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp word [eax], 2
setne cl
dec ecx
and ecx, 0xfffffff4
add ecx, 0x1c
push ecx
push eax
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1000f44e
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x1c]
push 0x23
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x1000f44e
mov dword [esi + 0x4c], 1
push 0
mov dword [esi + 0x50], 1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi]
mov edx, dword [eax + 0x84]
mov ecx, esi
call edx
cmp eax, 2
jne 0x1000f404
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1000f3f5
mov eax, 0x4c7
push eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, edi
pop edi
pop esi
pop ebp
ret 8
mov eax, dword [esi + 0x1c]
xor edi, edi
push edi
push edi
push edi
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x1000f42a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x1000f42a
xor edi, edi
mov ecx, dword [esi + 0x24]
push ecx
push str._C_CNNID:__Iu__send_0_bytes__detect_package__n
call fcn.10009560
add esp, 8
test edi, edi
je 0x1000f449
push 0x80004005
call fcn.100093d0
mov edi, 1
mov eax, edi
pop edi
pop esi
pop ebp
ret 8

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

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x190]
mov ecx, dword [esi + 0x38]
mov ebx, 1
add dword [esi + 0x190], ebx
cmp eax, ecx
jb 0x1000f491
xor eax, eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], 5
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
pop esi
pop ebx
ret
mov edx, dword [esi + 0x1c]
push edi
xor edi, edi
push edi
push edi
push edi
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x1000f4b8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x1000f4b8
xor edi, edi
mov eax, dword [esi + 0x24]
push eax
push str._C_CNNID:__Iu__send_0_bytes__detect_package__n
call fcn.10009560
add esp, 8
test edi, edi
je 0x1000f4e3
mov dword [esi + 0x14], edi
pop edi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x10], 5
pop esi
xor eax, eax
pop ebx
ret
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x1000f5e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x18c]
push edi
test eax, eax
jne 0x1000f6cc
xor ebx, ebx
mov ecx, dword [esi + 0x2c]
mov eax, dword [esi + 0x5c]
mov edx, dword [esi + 0x1c]
push ebx
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, ebx
jle 0x1000f681
mov eax, dword [esi + 0x5c]
push edi
push eax
mov dword [esi + 0x190], ebx
call fcn.1000b450
add esp, 8
test eax, eax
jne 0x1000f6d5
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 0x5c]
mov edx, dword [esi]
push edi
push eax
mov eax, dword [edx + 0x94]
mov ecx, esi
call eax
cmp eax, 2
jne 0x1000f6be
mov eax, dword [esi + 0x24]
push eax
push str._C_CNNID:__Iu__OnReceive___event_return_HR_ERROR__connection_will_be_closed___n
call fcn.10009560
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x1000f666
mov eax, 0x4c7
mov ecx, 1
mov dword [esi + 0x18], ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], 4
pop edi
mov dword [esi + 0xc], ecx
pop esi
xor eax, eax
pop ebx
ret
cmp edi, 0xffffffff
jne 0x1000f6a3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1000f6cc
cmp eax, 0x2744
je 0x1000f6be
cmp eax, 0x2746
jne 0x1000f666
jmp 0x1000f6be
cmp edi, ebx
jne 0x1000f6be
mov ecx, dword [esi + 0x24]
push ecx
push str._C_CNNID:__Iu__recv_0_bytes__detect_package__n
mov dword [esi + 0x190], ebx
call fcn.10009560
add esp, 8
mov edx, dword [esi + 0x18c]
test edx, edx
je 0x1000f5f5
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0xc], 1
mov dword [esi + 0x10], 5
pop esi
xor eax, eax
pop ebx
ret
Function at 0x1000fc00
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10022c68
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1002c1b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0x70]
mov dword [ebp - 0x14], eax
mov ecx, dword [esi + 0x188]
xor edi, edi
test ecx, ecx
jle 0x1000fc94
lea ebx, [esi + 0x154]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 0x170]
cmp edi, dword [esi + 0x174]
je 0x1000fc69
mov eax, dword [edi + 4]
mov dword [esi + 0x170], eax
mov dword [eax + 8], 0
jmp 0x1000fc7b
test edi, edi
je 0x1000fc7b
xor eax, eax
mov dword [esi + 0x170], eax
mov dword [esi + 0x174], eax
xor eax, eax
cmp edi, eax
je 0x1000fc8d
mov dword [edi + 4], eax
mov dword [edi + 8], eax
dec dword [esi + 0x16c]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x1000fd95
mov eax, dword [edi + 0x18]
sub eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x14]
mov edx, dword [esi + 0x1c]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
test ebx, ebx
jle 0x1000fd14
lea eax, [esi + 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub dword [esi + 0x188], ebx
lea eax, [esi + 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [edi + 0x14]
mov edx, dword [esi]
push ebx
push eax
mov eax, dword [edx + 0x8c]
mov ecx, esi
call eax
cmp eax, 2
jne 0x1000fd19
mov ecx, dword [esi + 0x24]
push ecx
push str._C_CNNID:__Iu__OnSend___event_should_not_return_HR_ERROR____n
call fcn.10009560
add esp, 8
jmp 0x1000fd19
cmp ebx, 0xffffffff
je 0x1000fd42
mov ecx, dword [ebp - 0x14]
push edi
add ecx, 0x1c
mov dword [ebp - 4], 0xffffffff
call fcn.1000aca0
test eax, eax
jne 0x1000fc30
push edi
call fcn.1000d7b0
add esp, 4
jmp 0x1000fc30
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1000fdac
lea ebx, [esi + 0x154]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x170]
xor ecx, ecx
cmp eax, ecx
je 0x1000fd76
mov dword [eax + 8], edi
mov edx, dword [esi + 0x170]
mov dword [edi + 4], edx
jmp 0x1000fd82
mov dword [edi + 8], ecx
mov dword [edi + 4], ecx
mov dword [esi + 0x174], edi
inc dword [esi + 0x16c]
push ebx
mov dword [esi + 0x170], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 1
mov dword [esi + 0xc], ecx
mov dword [esi + 0x18], ecx
mov ecx, dword [ebp - 0x14]
push edi
add ecx, 0x1c
mov dword [esi + 0x10], 3
mov dword [esi + 0x14], eax
mov dword [ebp - 4], 0xffffffff
call fcn.1000aca0
test eax, eax
jne 0x1000fde1
push edi
call fcn.1000d7b0
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10010040
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edi
mov esi, ecx
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.1000bd50
add esp, 0xc
test eax, eax
jne 0x10010065
pop edi
pop esi
pop ebp
ret 0x14
mov eax, dword [ebp + 0x14]
push ebx
test eax, eax
je 0x100100a2
cmp word [eax], 0
je 0x100100a2
mov ebx, dword [ebp + 0x18]
push ebx
push 0
push eax
call fcn.1000b940
add esp, 0xc
test eax, eax
je 0x10010099
mov dx, word [edi]
cmp dx, word [ebx]
je 0x100100a2
push 0x273f
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret 0x14
movzx eax, word [edi]
push 0x11
push 2
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x1c], eax
cmp eax, 0xffffffff
je 0x10010099
push 0
push eax
call fcn.1000b3e0
add esp, 8
test eax, eax
je 0x100100d1
push 0x80004005
call fcn.100093d0
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x1c]
push ecx
push edx
call fcn.1000b300
add esp, 8
test eax, eax
je 0x100100ef
push 0x80004005
call fcn.100093d0
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [esi + 0x68]
call fcn.1000ea80
mov cx, word [ebp + 0x10]
pop ebx
pop edi
mov word [esi + 0x6c], cx
mov eax, 1
pop esi
pop ebp
ret 0x14

Function at 0x10010620
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x44]
push eax
push 0
push esi
push 0x10010250
push 0
push 0
call fcn.10012337
xor ecx, ecx
add esp, 0x18
test eax, eax
setne cl
mov dword [esi + 0x40], eax
pop esi
mov eax, ecx
ret

Function at 0x100116ff
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1002c1b8]
jne 0x10011709
repz ret
jmp fcn.10013d2b
Function at 0x1001d120
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1002c1b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1001535f
and dword [ebp - 0x14], 0
cmp dword [0x10031bd4], 0
mov dword [ebp - 0x18], eax
jne 0x1001d1d3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1001d27b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1001d27b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10031bd4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10031bd8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10031bdc], eax
call edi
push eax
call esi
mov dword [0x10031be4], eax
test eax, eax
je 0x1001d1d3
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10031be0], eax
mov eax, dword [0x10031be0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1001d22c
cmp dword [0x10031be4], ecx
je 0x1001d22c
push eax
call esi
push dword [0x10031be4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1001d22c
test ebx, ebx
je 0x1001d22c
call edi
test eax, eax
je 0x1001d223
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1001d223
test byte [ebp - 8], 1
jne 0x1001d22c
or dword [ebp + 0x10], 0x200000
jmp 0x1001d25f
mov eax, dword [0x10031bd8]
cmp eax, dword [ebp - 0x18]
je 0x1001d25f
push eax
call esi
test eax, eax
je 0x1001d25f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1001d25f
mov eax, dword [0x10031bdc]
cmp eax, dword [ebp - 0x18]
je 0x1001d25f
push eax
call esi
test eax, eax
je 0x1001d25f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10031bd4]
call esi
test eax, eax
je 0x1001d27b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1001d27d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100116ff
leave
ret
Function at 0x40105f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
jmp 0x4303e0
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x4303eb
xor eax, eax
ret
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x14]
cmp edi, 8
not esi
jb 0x4304e7
push ebp
mov ebp, edi
shr ebp, 3
jmp 0x430410
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
add ecx, 1
mov eax, esi
shr eax, 8
xor eax, dword [edx*4 + 0x4928f8]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4928f8]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x4928f8]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4928f8]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4928f8]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4928f8]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4928f8]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4928f8]
add ecx, 1
sub edi, 8
sub ebp, 1
mov esi, eax
jne 0x430410
pop ebp
test edi, edi
je 0x43050c
jmp 0x4304f0
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x4928f8]
add ecx, 1
sub edi, 1
jne 0x4304f0
mov eax, esi
pop edi
not eax
pop esi
ret

Function at 0x4012a8
Capabilities:
Encode data using xor

Disassembly:
jmp 0x423a50
push ecx
push edi
mov edi, dword [esp + 0x18]
test edi, edi
mov dword [esp + 4], ecx
jg 0x423a65
xor eax, eax
pop edi
pop ecx
ret 0x10
cmp edi, 0x400
mov ecx, dword [esp + 0x10]
push esi
jle 0x423a99
add ecx, 1
add ecx, edi
lea edx, [ecx + 5]
xor eax, eax
cmp ecx, edx
jae 0x423b06
movzx esi, byte [ecx]
xor eax, esi
add ecx, 1
rol eax, 5
cmp ecx, edx
jb 0x423a84
pop esi
pop edi
pop ecx
ret 0x10
movzx eax, byte [ecx]
movzx edx, byte [ecx + 5]
rol eax, 0x19
xor eax, edx
xor eax, dword [esp + 0x10]
add ecx, 1
rol eax, 5
xor edx, edx
test edi, edi
jle 0x423b06
push ebx
lea ebx, [ecx + 5]
sub ecx, ebx
push ebp
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x20]
mov ebp, dword [esp + 0x10]
mov ebp, dword [ebp + 0x14]
mov esi, eax
imul esi, esi, 0x343fd
add ecx, edx
add esi, 0x269ec3
shr esi, 0x11
mov word [ebp + esi*2], cx
mov ecx, dword [esp + 0x1c]
lea esi, [ebx + edx]
movzx ecx, byte [ecx + esi]
movzx esi, byte [esi]
rol ecx, 0x19
xor ecx, esi
xor ecx, eax
rol ecx, 5
add edx, 1
cmp edx, edi
mov eax, ecx
jl 0x423ac0
pop ebp
pop ebx
pop esi
pop edi
pop ecx
ret 0x10
Function at 0x401b77
Capabilities:
Receive data
Receive data on socket

Disassembly:
jmp 0x4169f0
mov eax, dword [esp + 8]
push esi
mov esi, ecx
mov ecx, eax
shr ecx, 0x10
je 0x416a12
mov ecx, esi
call fcn.00401e5b
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
pop esi
ret 8
cmp ax, 1
jne 0x4169fe
mov eax, dword [esi + 8]
mov edx, dword [esi + 4]
push 0
mov ecx, 0x400
sub ecx, eax
push ecx
add edx, eax
mov eax, dword [esi + 0x18]
push edx
push eax
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
jne 0x416a47
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x4169fe
xor eax, eax
add dword [esi + 8], eax
mov eax, dword [esi + 8]
mov edx, dword [esi]
mov edx, dword [edx + 0xc]
push edi
push eax
mov eax, dword [esi + 4]
push eax
mov ecx, esi
call edx
mov edi, eax
test edi, edi
jle 0x416a7f
mov eax, dword [esi + 8]
cmp edi, eax
jge 0x416a7c
mov ecx, dword [esi + 4]
sub eax, edi
push eax
lea eax, [ecx + edi]
push eax
push ecx
call fcn.00450d50
add esp, 0xc
sub dword [esi + 8], edi
pop edi
pop esi
ret 8

Function at 0x401e5b
Capabilities:
Set socket configuration

Disassembly:
jmp 0x4167a0
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
cmp eax, 0xffffffff
je 0x416816
mov ecx, dword [esi + 0xc]
push 0
push 0
push ecx
push eax
call sub.WSOCK32.dll_WSAAsyncSelect
mov eax, dword [esi + 0x18]
lea edx, [esp + 8]
push edx
push 0x8004667e
push eax
mov dword [esp + 0x14], 0
call sub.WSOCK32.dll_ioctlsocket
mov edx, dword [esi + 0x18]
push 4
lea ecx, [esp + 8]
push ecx
push 0x80
push 0xffff
push edx
mov word [esp + 0x18], 1
mov word [esp + 0x1a], 0
call sub.WSOCK32.dll_setsockopt
mov eax, dword [esi + 0x18]
push eax
call sub.WSOCK32.dll_closesocket
mov dword [esi + 0x18], 0xffffffff
mov dword [esi + 0x1c], 1
pop esi
add esp, 8
ret

Function at 0x401f5f
Capabilities:
Initialize winsock library

Disassembly:
jmp 0x416da0
sub esp, 0x1bc
mov eax, dword [0x4f1d14]
xor eax, esp
mov dword [esp + 0x1b8], eax
mov eax, dword [esp + 0x1c0]
mov dword [0x4f8340], eax
mov eax, dword [0x4f833c]
add eax, 1
cmp eax, 1
mov dword [0x4f833c], eax
jne 0x416e4d
lea eax, [esp + 0x28]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x416e2f
mov ecx, dword [0x4f8340]
lea edx, [esp]
push edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x401d20
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], str.CasinoNetClass
call dword [0x4f79e0]
test ax, ax
jne 0x416e4d
call sub.WSOCK32.dll_WSACleanup
sub dword [0x4f833c], 1
xor al, al
mov ecx, dword [esp + 0x1b8]
xor ecx, esp
call fcn.0045006d
add esp, 0x1bc
ret
mov ecx, dword [esp + 0x1b8]
xor ecx, esp
mov al, 1
call fcn.0045006d
add esp, 0x1bc
ret