joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402f80
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.00403600
call fcn.00403270
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x402fb8
jmp 0x403056
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x402fb7
cmp cl, 0x22
je 0x403010
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
je 0x403030
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x403030
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
jne 0x402ff0
jmp 0x403030
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x22
setne al
xor edx, edx
test cl, cl
setne dl
test eax, edx
jne 0x403010
cmp cl, 0x22
je 0x403092
lea esi, [esi]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
jmp 0x403050
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete dl
cmp cl, 9
sete al
or eax, edx
test al, 1
jne 0x403040
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
mov edx, 0xa
je 0x403074
movzx edx, word [ebp - 0x28]
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edx
mov dword [esp], eax
call fcn.004026ee
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
inc ebx
movzx ecx, byte [ebx]
jmp 0x403030
Function at 0x100024f0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x43c
mov eax, dword [0x1003a1d0]
push ebx
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x444], eax
xor esi, esi
xor eax, eax
mov word [esp + 0x230], si
mov ecx, 0x82
lea edi, [esp + 0x232]
rep stosd dword es:[edi], eax
mov word [esp + 0x20], si
mov ecx, 0x82
lea edi, [esp + 0x22]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [esp + 0x24]
push eax
push esi
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x20]
push 0x5c
push ecx
call fcn.100205d2
lea edx, [esp + 0x28]
sub eax, edx
sar eax, 1
mov word [esp + eax*2 + 0x2a], si
mov eax, edx
push eax
lea ecx, [esp + 0x23c]
push str._sdata_rplist.dat
push ecx
call fcn.10020563
add esp, 0x14
push str.9BDF3757_0CA1_4e6d_A0FD_34AD212D87B4
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
cmp edi, esi
mov dword [esp + 0x14], edi
je 0x100025a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100025b7
xor eax, eax
mov ecx, dword [esp + 0x444]
call fcn.1001fde5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x230]
push 0x1002e3d4
push edx
mov dword [esp + 0x20], esi
call fcn.10020550
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 0x10], esi
je 0x1000263d
push esi
push 1
add ebx, 0x788
push 4
push ebx
call fcn.100204a8
xor edi, edi
add esp, 0x10
cmp dword [ebx], edi
jle 0x10002629
mov esi, dword [esp + 0x1c]
add esi, 0x78c
mov edi, edi
mov eax, dword [esp + 0x10]
push eax
push 1
push 0xc
push esi
call fcn.100204a8
mov ecx, dword [esi + 4]
push ecx
call fcn.10010a70
add edi, 1
add esp, 0x14
add esi, 0xc
cmp edi, dword [ebx]
jl 0x10002600
mov esi, dword [esp + 0x10]
push esi
call fcn.1002036e
mov edi, dword [esp + 0x18]
add esp, 4
mov esi, 1
jmp 0x10002641
mov esi, dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x444]
mov eax, esi
call fcn.1001fde5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002660
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x434
mov eax, dword [0x1003a1d0]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x43c], eax
xor ebx, ebx
xor eax, eax
mov word [esp + 0x228], bx
mov ecx, 0x82
lea edi, [esp + 0x22a]
rep stosd dword es:[edi], eax
mov word [esp + 0x18], bx
mov ecx, 0x82
lea edi, [esp + 0x1a]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x18]
push 0x5c
push ecx
call fcn.100205d2
lea edx, [esp + 0x20]
sub eax, edx
sar eax, 1
mov word [esp + eax*2 + 0x22], bx
mov eax, edx
push eax
lea ecx, [esp + 0x234]
push str._sdata_rplist.dat
push ecx
call fcn.10020563
add esp, 0x14
push str.9BDF3757_0CA1_4e6d_A0FD_34AD212D87B4
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x14], edi
je 0x1000278d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1000278d
lea edx, [esp + 0x228]
push 0x1002e454
push edx
call fcn.10020550
add esp, 8
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x10002786
push eax
push 1
lea ebx, [esi + 0x788]
push 4
push ebx
call fcn.10020709
xor edi, edi
add esp, 0x10
cmp dword [ebx], edi
jle 0x10002775
add esi, 0x78c
nop
mov eax, dword [esi + 4]
push eax
call fcn.10010a70
mov ecx, dword [esp + 0x14]
push ecx
push 1
push 0xc
push esi
call fcn.10020709
add edi, 1
add esp, 0x14
add esi, 0xc
cmp edi, dword [ebx]
jl 0x10002750
mov edx, dword [esp + 0x10]
push edx
call fcn.1002036e
mov edi, dword [esp + 0x18]
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x43c]
call fcn.1001fde5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10005680
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x408
mov eax, dword [0x1003a1d0]
push esi
push edi
mov dword [esp + 0x40c], eax
mov esi, ecx
xor eax, eax
mov word [esp + 8], 0
mov ecx, 0xff
lea edi, [esp + 0xa]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esi + 0x2b8]
push eax
lea ecx, [esp + 0xc]
push str._sdatacommon.dat
push ecx
call fcn.10020563
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
add esp, 0xc
lea edx, [esp + 8]
push edx
push 0
push str.IspType
push str.NetWork
call edi
mov byte [esi + 0xbd], al
lea eax, [esp + 8]
push eax
push 1
push str.NatType
push str.NetWork
call edi
mov ecx, dword [esp + 0x40c]
mov byte [esi + 0xbc], al
call fcn.1001fde5
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000ba20
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x1003a1d0]
push esi
mov dword [esp + 0x194], eax
lea eax, [esp + 4]
push eax
push 0x202
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1000bb06
mov ax, word [esp + 4]
cmp al, 2
jne 0x1000bb00
cmp ah, al
jne 0x1000bb00
cmp dword [esi + 0x38], 0xffffffff
jne 0x1000bb06
cmp dword [esi + 0x1c], 0
jne 0x1000bad5
mov ecx, dword [esp + 0x19c]
test ecx, ecx
mov dword [esi + 0x1c], ecx
jne 0x1000bad5
push 1
call fcn.10010d20
add esp, 4
test al, al
je 0x1000bb06
push 0xa
push str.CTcpNetWork::Open::_m_pTcpNetIoPort__NULL
push 0x58
push str..TcpNetWork.cpp
push 1
call fcn.10010d60
add esp, 0xc
mov ecx, eax
call fcn.10010cf0
mov ecx, eax
call fcn.10010ba0
push eax
call fcn.10010ef0
add esp, 4
xor eax, eax
pop esi
mov ecx, dword [esp + 0x190]
call fcn.1001fde5
add esp, 0x194
ret 8
cmp dword [esi + 0x7c], 0
jne 0x1000bae5
mov edx, dword [esp + 0x1a0]
mov dword [esi + 0x7c], edx
mov eax, 1
pop esi
mov ecx, dword [esp + 0x190]
call fcn.1001fde5
add esp, 0x194
ret 8
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x194]
xor eax, eax
pop esi
call fcn.1001fde5
add esp, 0x194
ret 8

Function at 0x1000c970
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov dword [esi + 0xc], 0
call fcn.10020a90
add eax, 0x2710
cdq
push edx
push eax
mov ecx, esi
call fcn.1000c6a0
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
cmp dword [esi + 0xc], 0
mov edi, eax
jne 0x1000c9e1
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0x10], 0
je 0x1000c9da
call ebx
sub eax, edi
cmp eax, 0x7d0
jbe 0x1000c9d0
call ebx
mov edi, eax
call fcn.10020a90
add eax, 0x2710
cdq
push edx
push eax
mov ecx, esi
call fcn.1000c6a0
push 0xa
call ebp
cmp dword [esi + 0xc], 0
je 0x1000c9a7
cmp dword [esi + 0xc], 0
pop ebp
je 0x1000ca0e
mov eax, dword [esi + 4]
lea ecx, [esi + 4]
call dword [eax + 0xc]
mov ecx, dword [esi + 0x130]
add esi, 0x130
test ecx, ecx
je 0x1000ca0e
mov edx, dword [ecx]
call dword [edx + 0xc]
push esi
call fcn.100194d0
add esp, 4
mov dword [esi], 0
call fcn.1000b500
mov esi, eax
mov eax, dword [esi]
push 0x19
mov ecx, esi
call dword [eax + 0x14]
mov edx, dword [esi]
push 0x16
mov ecx, esi
call dword [edx + 0x14]
mov eax, dword [esi]
push 0x1f
mov ecx, esi
call dword [eax + 0x14]
mov edx, dword [esi]
push 0x1c
mov ecx, esi
call dword [edx + 0x14]
mov eax, dword [esi]
push 0x20
mov ecx, esi
call dword [eax + 0x14]
mov edx, dword [esi]
push 0x22
mov ecx, esi
call dword [edx + 0x14]
mov eax, dword [esi]
push 0x2a
mov ecx, esi
call dword [eax + 0x14]
pop edi
pop esi
pop ebx
ret
Function at 0x10014120
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1002d31d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea eax, [esi + 0xc]
push eax
mov dword [esp + 0x14], esi
mov dword [esi], 0x1002f15c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x10011cf0
push 0x10011cd0
push 2
push 0x30
lea eax, [esi + 0x28]
xor ebp, ebp
push eax
mov dword [esp + 0x30], ebp
call fcn.10020a21
lea edi, [esi + 0x88]
mov ebx, 1
mov ecx, edi
mov byte [esp + 0x1c], bl
call fcn.10012730
mov dword [edi + 4], eax
mov byte [eax + 0x2d], bl
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebp
lea edi, [esi + 0x94]
mov ecx, edi
mov byte [esp + 0x1c], 2
call fcn.10012770
mov dword [edi + 4], eax
mov byte [eax + 0x49], bl
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebp
lea edi, [esi + 0xa0]
mov ecx, edi
mov byte [esp + 0x1c], 3
call fcn.100125f0
mov dword [edi + 4], eax
mov dword [edi + 8], ebp
mov dword [esi + 4], ebp
mov dword [esi + 0xc8], ebp
mov dword [esi + 0xac], ebp
mov dword [esi + 0xcc], ebx
mov dword [esi + 0xd0], ebp
mov dword [esi + 8], ebp
lea edi, [esi + 0xd4]
mov eax, 0x100017a0
mov ecx, 0x40
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
pop edi
mov dword [esi + 0xdc], 0x10012a80
mov dword [esi + 0xf0], 0x10011f70
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x10014ac0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x1003a1d0]
mov dword [esp + 0x190], eax
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0xc], eax
mov dword [esi + 4], eax
mov word [esi + 8], ax
mov dword [esi + 0x10], eax
lea eax, [esp + 4]
push eax
push 0x202
mov dword [esi], 0xffffffff
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [esp + 0x194]
mov eax, esi
pop esi
call fcn.1001fde5
add esp, 0x194
ret

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

Disassembly:
sub esp, 0x14
mov eax, dword [0x1003a1d0]
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp], eax
push esi
mov esi, ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
push ecx
mov dword [esp + 0x14], eax
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push 0x10
mov word [esp + 0xa], ax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push 0
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x28]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
pop esi
mov eax, ecx
mov ecx, dword [esp + 0x10]
call fcn.1001fde5
add esp, 0x14
ret 0x10
Function at 0x10014cd0
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x1002d3e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x1003a1d0]
push ebp
push edi
xor ebp, ebp
push ebp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x40]
push 2
mov edi, ecx
push 2
mov dword [edi + 0xc], eax
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [edi], eax
jne 0x10014d1d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor eax, eax
jmp 0x10014ebf
xor ecx, ecx
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_htons]
mov dword [esp + 0x14], ecx
push esi
mov esi, dword [esp + 0x40]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
push esi
mov dword [esp + 0x28], ecx
mov word [esp + 0x1c], 2
call ebx
push ebp
mov word [esp + 0x1e], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x3c]
cmp eax, ebp
je 0x10014d68
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x1c], eax
cmp si, bp
je 0x10014dbf
lea ecx, [ecx]
push esi
call ebx
push 0x10
lea edx, [esp + 0x1c]
mov word [esp + 0x1e], ax
mov eax, dword [edi]
push edx
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x10014da7
add ebp, 1
add esi, 1
cmp bp, 0x32
jl 0x10014d70
mov ecx, edi
call fcn.10014b20
xor eax, eax
jmp 0x10014ebd
cmp bp, 0x32
jl 0x10014e3b
mov ecx, edi
call fcn.10014b20
xor eax, eax
jmp 0x10014ebd
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.10020a83
mov dword [esp + 0x48], ebp
mov ebp, dword [sym.imp.WS2_32.dll_bind]
add esp, 4
call fcn.10020a90
cdq
mov ecx, 0x1f4
idiv ecx
mov esi, edx
add esi, 0x7d0
push esi
call ebx
push 0x10
lea edx, [esp + 0x1c]
mov word [esp + 0x1e], ax
mov eax, dword [edi]
push edx
push eax
call ebp
cmp eax, 0xffffffff
jne 0x10014e25
mov eax, dword [esp + 0x44]
add eax, 1
cmp ax, 0x64
mov dword [esp + 0x44], eax
jl 0x10014dd8
mov ecx, edi
call fcn.10014b20
xor eax, eax
jmp 0x10014ebd
cmp word [esp + 0x44], 0x64
jl 0x10014e3b
mov ecx, edi
call fcn.10014b20
xor eax, eax
jmp 0x10014ebd
mov edx, dword [edi]
push 4
lea ecx, [esp + 0x18]
push ecx
push 0x1002
push 0xffff
push edx
mov dword [esp + 0x28], 0x10000
call dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [esp + 0x10]
mov word [edi + 8], si
mov dword [edi + 4], 1
call fcn.10010ab0
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea esi, [edi + 0x10]
mov dword [esp + 0x34], 0
mov dword [esi], 0
jmp 0x10014e90
push edi
push 0x10014c00
lea ecx, [esp + 0x18]
call fcn.10010b40
push esi
call ebx
cmp dword [esi], 2
jl 0x10014e90
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call fcn.1001e910
mov eax, 1
pop esi
pop ebx
mov ecx, dword [esp + 0x24]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1c]
pop ebp
call fcn.1001fde5
add esp, 0x28
ret 0xc
Function at 0x10016970
Capabilities:
Encrypt data using rc6

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x30]
push ebp
push esi
push edi
mov dword [ebx], 0xb7e15163
mov eax, 1
jmp 0x10016990
mov ecx, dword [ebx + eax*4 - 4]
sub ecx, 0x61c88647
mov dword [ebx + eax*4], ecx
add eax, 1
cmp eax, 0x2c
jb 0x10016990
mov eax, dword [esp + 0x38]
shr eax, 5
je 0x100169ba
mov esi, dword [esp + 0x34]
mov ecx, eax
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
add eax, 0xffffffff
mov dword [esp + 0x3c], eax
xor esi, esi
xor edx, edx
xor ecx, ecx
xor eax, eax
mov edi, 0x84
mov edi, edi
mov ebp, dword [ebx + edx*4]
add ebp, ecx
add ebp, eax
rol ebp, 3
mov eax, ebp
mov ebp, dword [esp + esi*4 + 0x10]
add ecx, eax
add ebp, ecx
rol ebp, cl
cmp edx, 0x2b
mov dword [ebx + edx*4], eax
mov ecx, ebp
mov dword [esp + esi*4 + 0x10], ecx
jne 0x100169f8
xor edx, edx
jmp 0x100169fb
add edx, 1
cmp esi, dword [esp + 0x3c]
jne 0x10016a05
xor esi, esi
jmp 0x10016a08
add esi, 1
sub edi, 1
jne 0x100169d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x10019f30
Capabilities:
Access peb ldr_data
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x1002d518
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
mov eax, dword [0x1003a1d0]
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0xc]
mov dword [esp + 0x1a4], eax
mov dword [esp + 0x10], esi
mov dword [esi], 0x10034258
call fcn.10019540
lea edi, [esi + 0x48]
xor ebx, ebx
mov ecx, edi
mov dword [esp + 0x1b0], ebx
call fcn.1001e900
lea ebp, [esi + 0x4c]
mov ecx, ebp
mov byte [esp + 0x1b0], 1
call fcn.1001e900
mov eax, 5
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], eax
lea eax, [esi + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 0x20]
mov dword [esi + 4], ebx
mov dword [esi + 8], 0xffffffff
mov byte [esi + 0x30], bl
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
xor ecx, ecx
mov edx, eax
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov word [eax], 2
lea eax, [esp + 0x14]
push eax
push 0x202
mov byte [esp + 0x1b8], 6
call dword [sym.imp.WS2_32.dll_WSAStartup]
push ebx
push 1
mov ecx, edi
call fcn.1001e920
push ebx
push 1
mov ecx, ebp
call fcn.1001e920
mov ecx, dword [esp + 0x1a8]
pop edi
mov dword [esi + 0x44], ebx
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x194]
call fcn.1001fde5
add esp, 0x1a4
ret
Function at 0x1001a380
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002d590
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
mov eax, dword [0x1003a1d0]
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x420], ebx
xor edi, edi
mov dword [ebp - 0x418], edi
lea ebx, [ebx]
mov al, byte [esi + 0x30]
test al, al
je 0x1001a40e
mov ecx, dword [esi + 8]
push ebx
push 0x400
lea eax, [ebp - 0x414]
push eax
push ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, ebx
jg 0x1001a430
mov byte [esi + 0x30], 0
mov esi, dword [esi + 4]
cmp esi, ebx
je 0x1001a407
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov dword [ebp - 4], 0xffffffff
push edi
call fcn.10020755
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
add esp, 4
call fcn.1001fde5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
lea eax, [ebp - 0x414]
lea ecx, [esi + 0xc]
push eax
call fcn.10019d30
cmp edi, ebx
jne 0x1001a46c
push 0x802
call fcn.100192b4
mov edx, eax
add esp, 4
cmp edx, ebx
je 0x1001a4c4
mov ecx, 0x200
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, edx
mov dword [ebp - 0x418], edi
mov dword [ebp - 0x41c], ebx
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x41c]
push edx
push 0x800
push edi
lea ecx, [esi + 0xc]
call fcn.10019780
cmp eax, 1
jne 0x1001a577
mov ax, word [ebp - 0x41c]
lea ebx, [esi + 0x98]
push ebx
mov word [edi + 0x800], ax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x74]
test eax, eax
je 0x1001a4d0
mov ecx, dword [eax + 4]
mov dword [esi + 0x74], ecx
dec dword [esi + 0x78]
jmp 0x1001a4eb
mov dword [ebp - 4], 0xffffffff
jmp 0x1001a3c2
push 8
call fcn.100192b4
add esp, 4
test eax, eax
je 0x1001a4e9
xor edx, edx
mov ecx, eax
mov dword [ecx], edx
mov dword [ecx + 4], edx
jmp 0x1001a4eb
xor eax, eax
mov dword [eax + 4], 0
mov dword [eax], edi
mov ecx, dword [esi + 0x70]
test ecx, ecx
jne 0x1001a500
mov dword [esi + 0x6c], eax
jmp 0x1001a503
mov dword [ecx + 4], eax
mov dword [esi + 0x70], eax
mov eax, dword [esi + 0x68]
inc eax
lea ecx, [esi + 0x48]
mov dword [esi + 0x68], eax
call fcn.1001e9a0
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor edi, edi
push 0x802
mov dword [ebp - 0x418], edi
call fcn.100192b4
mov edx, eax
add esp, 4
cmp edx, edi
je 0x1001a551
mov ecx, 0x200
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, edx
mov dword [ebp - 0x418], edi
jmp 0x1001a472
mov dword [ebp - 0x418], edi
mov dword [ebp - 4], 0xffffffff
xor ebx, ebx
jmp 0x1001a3d0
mov dword [ebp - 4], 0xffffffff
xor ebx, ebx
jmp 0x1001a3d0
Function at 0x1001a730
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002d5b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], 0
lea ecx, [ecx]
mov al, byte [esi + 0x30]
test al, al
je 0x1001a8d6
mov eax, dword [esi + 0x50]
test eax, eax
mov dword [ebp - 4], 0
jne 0x1001a788
push 0xffffffffffffffff
lea ecx, [esi + 0x4c]
call fcn.1001e970
mov eax, dword [esi + 0x50]
test eax, eax
jle 0x1001a84b
lea edi, [esi + 0x80]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x54]
test eax, eax
jne 0x1001a7a6
xor ebx, ebx
jmp 0x1001a7f2
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [esi + 0x64]
mov edx, dword [esi + 0x60]
cmp edx, eax
mov eax, dword [esi + 0x54]
mov dword [ebp - 0x18], ecx
jge 0x1001a7d0
mov ecx, dword [esi + 0x5c]
mov dword [eax + 4], ecx
mov eax, dword [esi + 0x60]
mov edx, dword [esi + 0x54]
inc eax
mov dword [esi + 0x5c], edx
mov dword [esi + 0x60], eax
jmp 0x1001a7d9
push eax
call fcn.10020755
add esp, 4
xor eax, eax
cmp ebx, eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x54], ebx
jne 0x1001a7e8
mov dword [esi + 0x58], eax
mov eax, dword [esi + 0x50]
mov ebx, dword [ebp - 0x18]
dec eax
mov dword [esi + 0x50], eax
push edi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
je 0x1001a836
cmp dword [esi + 8], 0xffffffff
je 0x1001a836
xor edi, edi
jmp 0x1001a810
movzx eax, word [ebx + 0x800]
cmp edi, eax
jge 0x1001a836
mov ecx, dword [esi + 8]
push 0
sub eax, edi
push eax
lea eax, [edi + ebx]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jl 0x1001a836
add edi, eax
jmp 0x1001a810
push ebx
call fcn.10020755
add esp, 4
mov dword [ebp - 0x14], 0
jmp 0x1001a783
lea ebx, [esi + 0x80]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x50]
test eax, eax
jne 0x1001a867
lea ecx, [esi + 0x4c]
call fcn.1001e9b0
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0xffffffff
jmp 0x1001a760
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret