joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001ea0
Capabilities:
Check for time delay via queryperformancecounter
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0xc8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
call edi
mov ecx, dword [esi + 0x2f0]
push ecx
call edi
lea eax, [esi + 0xcc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ebx, [esi + 0xb8]
push ebx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebp + 0x10]
push edx
lea edi, [esi + 0xd4]
push 0xff
push edi
call fcn.10009a0c
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push edi
push edi
mov dword [esi + 0x2d4], eax
call fcn.1000a810
mov eax, dword [esi + 0x2d4]
lea ecx, [eax + 4]
push eax
mov dword [esi + 0x2d8], ecx
call fcn.10009827
add esp, 0x10
mov dword [esi + 0x2ec], eax
test eax, eax
je 0x10001f97
mov ecx, dword [esi + 0x2e8]
mov eax, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov edx, dword [edx]
push 0
push 0
push 1
add ecx, 4
push eax
mov eax, dword [ebp + 8]
push eax
call edx
mov eax, dword [esi + 0x2f0]
push 0x1770
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10001fa2
cmp eax, 0x102
je 0x10001f8a
cmp eax, 0xffffffff
jne 0x10001f97
mov ecx, dword [esi + 0x2f0]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [esi + 0x2f0]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edi, [esi + 0xc0]
push edi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [edi]
sub eax, dword [ebx]
mov ecx, dword [edi + 4]
sbb ecx, dword [ebx + 4]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
fild qword [ebp - 8]
push 1
fild qword [esi + 0xb0]
lea eax, [esi + 0xcc]
push eax
fdiv qword [0x1001be10]
fdivp st(1)
fstp qword [esi + 0xa8]
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edx, dword [esi + 0x2f0]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp + 0x10]
push eax
push 0
push esi
push 0x10002020
push 0
push 0
call fcn.1000996c
add esp, 0x18
pop edi
mov dword [esi + 0x2f4], eax
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100028a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push str.ws2_32.dll
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.closesocket
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp + 8]
movzx ecx, byte [edx]
sub ecx, 4
je 0x100029ac
dec ecx
je 0x10002968
dec ecx
jne 0x100029b9
mov ebx, dword [edx + 1]
lea esi, [ecx + 5]
mov dword [ebp - 4], ecx
cmp dword [edi + ebx*4 + 0x12c], ecx
je 0x100029b9
jmp 0x10002900
cmp esi, dword [ebp + 0xc]
jae 0x100029b9
cmp dword [ebp - 4], 0xf
jae 0x100029b9
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.send
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
sub ecx, esi
push ecx
lea ecx, [esi + edx]
mov edx, dword [edi + ebx*4 + 0x12c]
push ecx
push edx
call eax
cmp eax, 0xffffffff
je 0x10002959
inc dword [ebp - 4]
add esi, eax
cmp dword [edi + ebx*4 + 0x12c], 0
jne 0x10002900
jmp 0x100029b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, edi
call fcn.10002820
jmp 0x100029b9
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push 0x100029d0
push 0
push 0
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edx
call fcn.1000996c
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 0
je 0x100029b9
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
lea ebx, [ebx]
push 2
call esi
cmp dword [ebp - 0xc], 0
jne 0x100029a0
jmp 0x100029b9
mov ecx, dword [edx + 1]
mov edx, dword [edi + ecx*4 + 0x12c]
push edx
call eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
test eax, eax
je 0x100029ca
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esp, ebp
pop ebp
ret 8

Function at 0x10002ec0
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x10002d90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
ret

Function at 0x10002ef0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
push 0xff
push str.iamasbcx.asuscomm.com
call fcn.10009a0c
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
push edx
push 0xff
push str.123456
mov dword [0x1001f860], ecx
call fcn.10009a0c
mov eax, dword [ebp + 0x10]
add esp, 0x18
push 0
push 0
push 0
push 0x10002d90
push 0
push 0
mov dword [0x1001fac8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
xor al, al
pop ebp
ret
Function at 0x100045e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0
test eax, eax
jne 0x10004632
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 8]
push eax
push 0xfffffffffffffffb
push 0xffff
push edi
call ebx
push 4
lea ecx, [ebp - 4]
push ecx
push 4
push 0xffff
push edi
mov esi, eax
call ebx
pop edi
or eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x1000466b
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea edx, [ebp - 4]
push edx
push 0xfffffffffffffffb
push 0xffff
push edi
call ebx
push 4
mov esi, eax
lea eax, [ebp - 4]
push eax
push 4
push 0xffff
push edi
call ebx
pop edi
or eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x100046a4
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [ebp - 4]
push ecx
push 0xfffffffffffffffb
push 0xffff
push edi
call ebx
push 4
lea edx, [ebp - 8]
push edx
push 4
push 0xffff
push edi
mov esi, eax
call ebx
pop edi
or eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10004af0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
xor eax, eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x24]
mov word [ebp - 0x24], ax
mov eax, dword [ebp + 8]
push edx
push eax
mov dword [ebp - 8], 0x1c
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x10004b1f
xor eax, eax
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ecx
push edx
push eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.100049d0
add esp, 0x14
mov esp, ebp
pop ebp
ret
Function at 0x10004c10
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x1001e168]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
xor eax, eax
push esi
mov esi, dword [ebp + 0x10]
mov dword [esi + 2], eax
mov dword [esi + 6], eax
mov dword [esi + 0xa], eax
mov dword [esi + 0xe], eax
mov dword [esi + 0x12], eax
push edi
mov dword [esi + 0x16], eax
mov dword [ebp - 0xa8], eax
mov word [esi + 0x1a], ax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], eax
movzx eax, word [esi]
push 3
lea edx, [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x88]
mov dword [ebp - 0xac], 0xc00
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x88], edx
call fcn.10004b40
mov edx, dword [ebp - 0x88]
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0xac]
push ecx
push 0
push edx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov edi, eax
mov eax, dword [ebp - 0x88]
lea ecx, [ebp - 0x84]
cmp eax, ecx
je 0x10004cd8
push eax
call fcn.10009fde
add esp, 4
test edi, edi
je 0x10004cf5
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000929f
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp - 0x8c]
xor edi, edi
mov eax, ebx
test ebx, ebx
je 0x10004d30
mov ecx, dword [eax + 4]
cmp ecx, 2
je 0x10004d1a
cmp ecx, 0x17
je 0x10004d1a
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x10004d04
jmp 0x10004d30
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x18]
push edx
push eax
push esi
call fcn.1000a810
add esp, 0xc
mov edi, 1
push ebx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
pop ebx
test edi, edi
je 0x10004d5c
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 2], ax
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000929f
mov esp, ebp
pop ebp
ret
push 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.1000929f
mov esp, ebp
pop ebp
ret
Function at 0x10006c80
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 0x10006cac
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 0x10006cc9
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 0x10006d25
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 0x10006d1d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x10006d1d
test eax, eax
je 0x10006d1d
push 0x80004005
call fcn.10002fe0
mov eax, edi
pop edi
pop esi
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10006d34
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 0x10006eb0
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 0x10006f1e
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 0x10006fee
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 0x10006fe9
cmp eax, 0xffffffff
jne 0x10006f14
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x10006fe9
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 0x10006fee
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 0x10006fee
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 0x10006fa4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10006f95
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 0x10006fca
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x10006fca
xor edi, edi
mov ecx, dword [esi + 0x24]
push ecx
push str._C_CNNID:__Iu__send_0_bytes__detect_package__n
call fcn.10001be0
add esp, 8
test edi, edi
je 0x10006fe9
push 0x80004005
call fcn.10002fe0
mov edi, 1
mov eax, edi
pop edi
pop esi
pop ebp
ret 8

Function at 0x10007000
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 0x10007031
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 0x10007058
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x10007058
xor edi, edi
mov eax, dword [esi + 0x24]
push eax
push str._C_CNNID:__Iu__send_0_bytes__detect_package__n
call fcn.10001be0
add esp, 8
test edi, edi
je 0x10007083
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 0x10007180
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 0x1000726c
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 0x10007221
mov eax, dword [esi + 0x5c]
push edi
push eax
mov dword [esi + 0x190], ebx
call fcn.10004730
add esp, 8
test eax, eax
jne 0x10007275
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 0x1000725e
mov eax, dword [esi + 0x24]
push eax
push str._C_CNNID:__Iu__OnReceive___event_return_HR_ERROR__connection_will_be_closed___n
call fcn.10001be0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x10007206
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 0x10007243
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1000726c
cmp eax, 0x2744
je 0x1000725e
cmp eax, 0x2746
jne 0x10007206
jmp 0x1000725e
cmp edi, ebx
jne 0x1000725e
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.10001be0
add esp, 8
mov edx, dword [esi + 0x18c]
test edx, edx
je 0x10007195
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 0x100077a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10018758
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1001e168]
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 0x10007834
lea ebx, [esi + 0x154]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 0x170]
cmp edi, dword [esi + 0x174]
je 0x10007809
mov eax, dword [edi + 4]
mov dword [esi + 0x170], eax
mov dword [eax + 8], 0
jmp 0x1000781b
test edi, edi
je 0x1000781b
xor eax, eax
mov dword [esi + 0x170], eax
mov dword [esi + 0x174], eax
xor eax, eax
cmp edi, eax
je 0x1000782d
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 0x10007935
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 0x100078b4
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 0x100078b9
mov ecx, dword [esi + 0x24]
push ecx
push str._C_CNNID:__Iu__OnSend___event_should_not_return_HR_ERROR____n
call fcn.10001be0
add esp, 8
jmp 0x100078b9
cmp ebx, 0xffffffff
je 0x100078e2
mov ecx, dword [ebp - 0x14]
push edi
add ecx, 0x1c
mov dword [ebp - 4], 0xffffffff
call fcn.100043d0
test eax, eax
jne 0x100077d0
push edi
call fcn.10006750
add esp, 4
jmp 0x100077d0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1000794c
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 0x10007916
mov dword [eax + 8], edi
mov edx, dword [esi + 0x170]
mov dword [edi + 4], edx
jmp 0x10007922
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.100043d0
test eax, eax
jne 0x10007981
push edi
call fcn.10006750
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 0x10007be0
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.10004d80
add esp, 0xc
test eax, eax
jne 0x10007c05
pop edi
pop esi
pop ebp
ret 0x14
mov eax, dword [ebp + 0x14]
push ebx
test eax, eax
je 0x10007c42
cmp word [eax], 0
je 0x10007c42
mov ebx, dword [ebp + 0x18]
push ebx
push 0
push eax
call fcn.10004ac0
add esp, 0xc
test eax, eax
je 0x10007c39
mov dx, word [edi]
cmp dx, word [ebx]
je 0x10007c42
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 0x10007c39
push 0
push eax
call fcn.100046c0
add esp, 8
test eax, eax
je 0x10007c71
push 0x80004005
call fcn.10002fe0
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x1c]
push ecx
push edx
call fcn.100045e0
add esp, 8
test eax, eax
je 0x10007c8f
push 0x80004005
call fcn.10002fe0
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.10006b70
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 0x100081c0
Capabilities:
Create thread

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

Function at 0x1000929f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001e168]
jne 0x100092a9
repz ret
jmp fcn.1000ae8b
Function at 0x1001250c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1001e168]
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.1000b65f
and dword [ebp - 0x14], 0
cmp dword [0x10020810], 0
mov dword [ebp - 0x18], eax
jne 0x100125bf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10012667
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10012667
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10020810], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10020814], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10020818], eax
call edi
push eax
call esi
mov dword [0x10020820], eax
test eax, eax
je 0x100125bf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1002081c], eax
mov eax, dword [0x1002081c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10012618
cmp dword [0x10020820], ecx
je 0x10012618
push eax
call esi
push dword [0x10020820]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10012618
test ebx, ebx
je 0x10012618
call edi
test eax, eax
je 0x1001260f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1001260f
test byte [ebp - 8], 1
jne 0x10012618
or dword [ebp + 0x10], 0x200000
jmp 0x1001264b
mov eax, dword [0x10020814]
cmp eax, dword [ebp - 0x18]
je 0x1001264b
push eax
call esi
test eax, eax
je 0x1001264b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1001264b
mov eax, dword [0x10020818]
cmp eax, dword [ebp - 0x18]
je 0x1001264b
push eax
call esi
test eax, eax
je 0x1001264b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10020810]
call esi
test eax, eax
je 0x10012667
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10012669
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000929f
leave
ret