joyce8/EMBER2024-capa huggingface dataset:
Function at 0x464475
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004643f1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4645e4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4645e4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x464599
jg 0x4644d1
test eax, eax
je 0x46458f
push 1
push 0x1000
call fcn.00456e44
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4644f4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x464586
push 0x8000
push ebx
call fcn.00453854
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x46451d
jg 0x464518
cmp ecx, 0x1000
jb 0x46451d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0045878b
add esp, 0x10
cmp eax, 0xffffffff
je 0x464562
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x464518
jl 0x464549
test ecx, ecx
jne 0x46450a
push dword [ebp - 0xc]
push ebx
call fcn.00453854
push esi
call fcn.00456ea1
add esp, 0xc
xor ebx, ebx
jmp 0x4645f2
cmp byte [edi + 0x24], 0
je 0x464579
cmp dword [edi + 0x20], 5
jne 0x464579
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x464584
mov ebx, dword [edi + 0x18]
jmp 0x464586
xor ebx, ebx
push esi
call fcn.00456ea1
pop ecx
jmp 0x4645f2
test ecx, ecx
jg 0x46455b
jl 0x464599
test eax, eax
jae 0x46455b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00459f57
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4645b9
cmp byte [edi + 0x1c], 0
je 0x46455b
jmp 0x4645ea
push ebx
call fcn.0045e278
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x46455b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4645f2
cmp byte [edi + 0x1c], 0
je 0x4645ef
mov ebx, dword [edi + 0x18]
jmp 0x4645f2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00459f57
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x465920
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x46594d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x46594d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10217d80
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
push ebx
push esi
push edi
lea edi, [ebp - 4]
mov ecx, 1
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x1032f7e5
call fcn.100dfea8
nop
mov esi, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.100debca
movsx ecx, ax
and ecx, 0x8000
je 0x10217dd0
mov dword [ebp - 0xc4], 1
jmp 0x10217dda
mov dword [ebp - 0xc4], 0
movzx eax, byte [ebp - 0xc4]
pop edi
pop esi
pop ebx
add esp, 0xc4
cmp ebp, esp
call fcn.100debca
mov esp, ebp
pop ebp
ret

Function at 0x10282500
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push ebx
push esi
push edi
lea edi, [ebp - 0x18]
mov ecx, 6
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x1032f93e
call fcn.100dfea8
nop
mov eax, dword [0x1032beb8]
mov dword [ebp - 8], eax
jmp 0x10282538
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10282551
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x1028254f
mov eax, dword [ebp - 8]
jmp 0x102825d4
jmp 0x10282530
mov esi, esp
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp esi, esp
call fcn.100debca
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x102825d1
mov eax, dword [ebp - 8]
add eax, 0x20
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov dword [eax + 4], 0
mov eax, dword [ebp - 8]
mov dword [eax + 8], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
mov dword [eax], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x14]
add eax, 0x20
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 8]
cmp eax, 0xfe0
jbe 0x10282594
mov eax, dword [ebp - 8]
mov ecx, dword [0x1032beb8]
mov dword [eax], ecx
mov eax, dword [ebp - 8]
mov dword [0x1032beb8], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
add esp, 0xd8
cmp ebp, esp
call fcn.100debca
mov esp, ebp
pop ebp
ret
Function at 0x102840e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea edi, [ebp - 0x4c]
mov ecx, 0x13
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x10322d80]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x1032fac6
call fcn.100dfea8
nop
imul eax, dword [ebp + 8], 0x2c
add eax, dword [0x1032bea0]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x24], 5
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 0x14]
and cl, 1
movzx edx, cl
test edx, edx
je 0x1028414e
mov eax, dword [ebp - 0x30]
sub eax, 5
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x24]
add eax, 2
mov dword [ebp - 0x24], eax
mov esi, esp
lea eax, [ebp - 0x18]
push eax
push 0x40
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, esp
call fcn.100debca
test eax, eax
jne 0x10284179
mov eax, 0xa
jmp 0x1028427d
cmp dword [ebp + 0xc], 0
je 0x102841c6
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov byte [eax], 0xe9
mov eax, dword [ebp - 0x30]
add eax, 5
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
sub edx, eax
mov eax, dword [ebp - 0x3c]
mov dword [eax + 1], edx
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 0x14]
and cl, 1
movzx edx, cl
test edx, edx
je 0x102841c4
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp - 0x48]
mov byte [eax], 0xeb
mov eax, dword [ebp - 0x48]
mov byte [eax + 1], 0xf9
jmp 0x10284202
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 0x14]
and cl, 1
movzx edx, cl
test edx, edx
je 0x102841ed
push 7
mov eax, dword [ebp - 0xc]
add eax, 0xc
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.100dfb83
add esp, 0xc
jmp 0x10284202
push 5
mov eax, dword [ebp - 0xc]
add eax, 0xc
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.100dfb83
add esp, 0xc
mov esi, esp
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, esp
call fcn.100debca
nop
mov esi, esp
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp edi, esp
call fcn.100debca
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp esi, esp
call fcn.100debca
nop
mov al, byte [ebp + 0xc]
and al, 1
shl al, 1
mov ecx, dword [ebp - 0xc]
mov dl, byte [ecx + 0x14]
and dl, 0xfd
or dl, al
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x14], dl
mov al, byte [ebp + 0xc]
and al, 1
shl al, 2
mov ecx, dword [ebp - 0xc]
mov dl, byte [ecx + 0x14]
and dl, 0xfb
or dl, al
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x14], dl
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x102842ac]
call fcn.100de4ea
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ddb17
add esp, 0x10c
cmp ebp, esp
call fcn.100debca
mov esp, ebp
pop ebp
ret
Function at 0x10284900
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
push ebx
push esi
push edi
lea edi, [ebp - 0x24]
mov ecx, 9
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x1032fac6
call fcn.100dfea8
nop
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0
mov eax, dword [ebp + 8]
push eax
call fcn.10284400
add esp, 4
test eax, eax
jne 0x10284966
mov dword [ebp - 8], 9
jmp 0x102849f5
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x102849f5
mov dword [ebp - 0x14], 0
jmp 0x10284984
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax + 8]
jae 0x102849f5
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov esi, esp
mov edx, dword [ebp - 0x14]
mov eax, dword [ecx + edx*4]
push eax
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
cmp esi, esp
call fcn.100debca
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x102849f3
mov esi, esp
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp esi, esp
call fcn.100debca
nop
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.10285720
add esp, 0xc
mov esi, esp
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.100debca
nop
jmp 0x1028497b
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
add esp, 0xe4
cmp ebp, esp
call fcn.100debca
mov esp, ebp
pop ebp
ret

Function at 0x10285ad0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push ebx
push esi
push edi
lea edi, [ebp - 0x18]
mov ecx, 6
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x1032fac6
call fcn.100dfea8
nop
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x10285b90
mov dword [ebp - 8], 0
jmp 0x10285b14
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 8]
jae 0x10285b71
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov esi, esp
mov edx, dword [ebp - 8]
mov eax, dword [ecx + edx*4]
push eax
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
cmp esi, esp
call fcn.100debca
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x10285b6f
mov esi, esp
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp esi, esp
call fcn.100debca
nop
mov esi, esp
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.100debca
nop
jmp 0x10285b0b
mov esi, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [0x1032b6c4]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, esp
call fcn.100debca
nop
pop edi
pop esi
pop ebx
add esp, 0xd8
cmp ebp, esp
call fcn.100debca
mov esp, ebp
pop ebp
ret
Function at 0x102862c0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push ebx
push esi
push edi
lea edi, [ebp - 0xc]
mov ecx, 3
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x1032fb9a
call fcn.100dfea8
nop
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
test eax, eax
je 0x10286329
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
cmp eax, 0x90
je 0x10286329
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
cmp eax, 0xcc
je 0x10286329
xor eax, eax
jmp 0x1028636a
mov dword [ebp - 8], 1
jmp 0x1028633b
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jae 0x10286365
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
movzx ecx, byte [eax]
mov edx, 1
imul eax, edx, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + eax]
cmp ecx, eax
je 0x10286363
xor eax, eax
jmp 0x1028636a
jmp 0x10286332
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0xcc
cmp ebp, esp
call fcn.100debca
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push esi
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x401017
or eax, eax
pop esi
ret
push 0x10
push 0x52aa70
push esi
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x40102d
or eax, eax
pop esi
ret
mov eax, esi
pop esi
ret

Function at 0x401040
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
mov eax, dword [0x422cfc]
push esi
cmp eax, 1
jle 0x40105f
mov esi, dword [esp + 8]
push 4
movsx eax, byte [esi]
push eax
call fcn.00411432
add esp, 8
jmp 0x401072
mov esi, dword [esp + 8]
mov edx, dword [str.________________________________H]
movsx ecx, byte [esi]
mov al, byte [edx + ecx*2]
and eax, 4
test eax, eax
push esi
je 0x40108d
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffff
mov dword [0x52aa74], eax
jne 0x4010a8
or eax, 0xffffffff
pop esi
ret
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x40109b
or eax, 0xffffffff
pop esi
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [0x52aa74], edx
mov eax, dword [esp + 0xc]
mov word [0x52aa70], 2
push eax
call sub.WSOCK32.dll_htons
mov word [0x52aa72], ax
call fcn.00401000
pop esi
ret

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

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x18]
xor esi, esi
mov byte [esp + 0xe], 0
push 0
lea eax, [esp + 0x12]
push 1
push eax
push ebx
call sub.WSOCK32.dll_recv
cmp eax, 1
jl 0x401116
mov al, byte [esp + 0xe]
cmp al, 0xd
je 0x401107
cmp al, 0xa
je 0x40110b
mov byte [esi + edi], al
inc esi
cmp al, 0xa
jne 0x4010e3
mov byte [esi + edi], 0
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ecx
ret
Function at 0x403fb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
mov ecx, dword [0x424650]
mov eax, ebp
push esi
shl eax, 5
sub eax, ebp
xor ebx, ebx
shl eax, 4
add eax, ebp
push edi
mov byte [esp + 0x12], bl
lea esi, [eax + eax*8]
mov eax, dword [0x529a64]
shl esi, 3
sub ecx, dword [esi + eax + 0x7b70]
cmp ecx, 0x1d
jle 0x403ffa
mov dword [esi + eax], 0xb
pop edi
pop esi
pop ebp
mov eax, 0xfffffffd
pop ebx
pop ecx
ret
mov edi, dword [esi + eax + 0x12c]
mov eax, dword [esi + eax + 0xc]
push ebx
lea edx, [esp + 0x16]
push 1
push edx
push eax
call sub.WSOCK32.dll_recv
cmp eax, 1
jge 0x404029
cmp eax, 0xffffffff
je 0x4040ed
cmp eax, ebx
je 0x404132
mov edx, dword [0x52aa60]
mov ecx, dword [0x424650]
inc edx
mov dword [0x52aa60], edx
mov edx, dword [0x529a64]
mov dword [esi + edx + 0x7b70], ecx
mov al, byte [esp + 0x12]
cmp al, 0xd
je 0x404075
cmp al, 0xa
je 0x404075
mov ecx, dword [0x529a64]
mov edx, dword [esi + ecx + 0x130]
shl edx, 9
add edx, esi
add edx, ecx
inc edi
mov byte [edx + edi + 0x133], al
mov al, byte [esp + 0x12]
cmp edi, 0x1ff
jg 0x40408b
cmp al, 0xa
je 0x404090
mov eax, dword [0x529a64]
jmp 0x404001
mov byte [esp + 0x12], 0xa
mov eax, dword [0x529a64]
mov ecx, dword [esi + eax + 0x130]
shl ecx, 9
add ecx, esi
add ecx, eax
mov byte [ecx + edi + 0x134], bl
mov eax, dword [0x529a64]
mov edx, dword [esi + eax + 0x130]
shl edx, 9
add edx, esi
cmp edi, ebx
mov byte [edx + eax + 0x334], bl
je 0x404198
push ebp
call fcn.004041e0
add esp, 4
cmp eax, 0xffffffff
jne 0x404148
mov eax, dword [0x529a64]
pop edi
mov dword [esi + eax], 0xb
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x404115
mov eax, dword [0x529a64]
mov dword [esi + eax + 0x12c], edi
call fcn.0040dea0
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
pop ecx
ret
mov ecx, dword [0x529a64]
mov dword [esi + ecx], 0xb
call fcn.0040dea0
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
pop ecx
ret
mov edx, dword [0x529a64]
pop edi
or eax, 0xffffffff
mov dword [esi + edx], 0xb
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp eax, ebx
mov eax, dword [0x529a64]
je 0x40416a
cmp dword [esi + eax + 0x130], ebx
jne 0x40416a
mov dword [esi + eax + 0x130], 1
mov eax, dword [0x529a64]
mov edx, dword [esi + eax + 0xb34]
inc edx
mov dword [esi + eax + 0xb34], edx
mov eax, dword [0x529a64]
cmp dword [esi + eax + 0xb34], 0x19
jl 0x4041c2
mov dword [esi + eax], 0xb
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov eax, dword [0x529a64]
cmp dword [esi + eax + 0x130], ebx
jne 0x4041b6
mov dword [esi + eax], 0xb
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [esi + eax], 2
mov eax, dword [0x529a64]
mov dword [esi + eax + 0x12c], ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x404530
Capabilities:
Send data
Send data on socket

Disassembly:
mov edx, dword [esp + 4]
push ebx
mov ecx, edx
push esi
shl ecx, 5
sub ecx, edx
push edi
shl ecx, 4
add ecx, edx
xor ebx, ebx
xor eax, eax
lea esi, [ecx + ecx*8]
mov ecx, dword [0x529a64]
shl esi, 3
mov edi, dword [esi + ecx + 0x6b5c]
mov edx, dword [esi + ecx + 0x6b58]
cmp edi, edx
jge 0x4045d8
mov eax, dword [esi + ecx + 0xb44]
mov ecx, dword [esi + ecx + 0xc]
sub edx, edi
push ebx
add eax, edi
push edx
push eax
push ecx
call sub.WSOCK32.dll_send
cmp eax, ebx
jge 0x4045ad
call sub.WSOCK32.dll_WSAGetLastError
mov edi, eax
call fcn.0040dea0
cmp edi, 0x2733
je 0x40463a
mov edx, dword [0x529a64]
pop edi
or eax, 0xffffffff
mov dword [esi + edx], 0xb
pop esi
pop ebx
ret
jle 0x4045d2
mov edi, dword [0x52aa60]
mov ecx, dword [0x529a64]
inc edi
mov dword [0x52aa60], edi
mov edx, dword [esi + ecx + 0x6b5c]
add edx, eax
mov dword [esi + ecx + 0x6b5c], edx
mov ecx, dword [0x529a64]
mov edi, dword [esi + ecx + 0x6b5c]
lea edx, [esi + ecx + 0x6b5c]
push ebp
mov ebp, dword [esi + ecx + 0x6b58]
cmp edi, ebp
pop ebp
jne 0x40463c
mov dword [edx], ebx
mov eax, dword [0x529a64]
mov dword [esi + eax + 0x6b58], ebx
mov eax, dword [0x529a64]
mov ecx, dword [esi + eax + 4]
mov dword [esi + eax], ecx
mov edx, dword [0x529a64]
mov dword [esi + edx + 4], ebx
mov eax, dword [0x529a64]
cmp dword [esi + eax + 0x8bb0], ebx
je 0x40463a
cmp dword [0x424614], ebx
je 0x40463a
mov dword [esi + eax + 0x8bb0], ebx
mov dword [0x424614], ebx
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x404640
Capabilities:
Send data
Send data on socket

Disassembly:
mov ecx, dword [esp + 4]
push ebx
mov eax, ecx
push esi
shl eax, 5
sub eax, ecx
push edi
shl eax, 4
add eax, ecx
mov ecx, dword [0x529a64]
xor edx, edx
lea esi, [eax + eax*8]
shl esi, 3
mov eax, dword [esi + ecx + 0x2b50]
mov edi, dword [esi + ecx + 0x2b4c]
cmp eax, edi
jl 0x4046eb
mov eax, dword [esi + ecx + 0x8ba8]
mov edi, dword [0x424644]
cmp eax, edi
je 0x404743
mov ebx, dword [0x4289d8]
shl eax, 0xb
add eax, ebx
mov dword [esi + ecx + 0xb44], eax
mov ebx, dword [0x529a64]
or ecx, 0xffffffff
xor eax, eax
mov edi, dword [esi + ebx + 0xb44]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esi + ebx + 0x2b4c], ecx
mov ecx, dword [0x529a64]
mov dword [esi + ecx + 0x2b50], eax
mov edi, dword [0x529a64]
xor ecx, ecx
mov eax, dword [esi + edi + 0x8ba8]
inc eax
cmp eax, 0x1d
setg cl
dec ecx
and ecx, eax
mov dword [esi + edi + 0x8ba8], ecx
mov ecx, dword [0x529a64]
mov edi, dword [esi + ecx + 0x2b50]
mov eax, dword [esi + ecx + 0x2b4c]
cmp edi, eax
jge 0x404779
mov edx, dword [esi + ecx + 0xb44]
sub eax, edi
push 0
push eax
mov eax, dword [esi + ecx + 0xc]
add edx, edi
push edx
push eax
call sub.WSOCK32.dll_send
mov edx, eax
test edx, edx
jge 0x404749
call sub.WSOCK32.dll_WSAGetLastError
mov edi, eax
call fcn.0040dea0
cmp edi, 0x2733
jne 0x404736
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov ecx, dword [0x529a64]
mov dword [esi + ecx], 0x13
pop edi
pop esi
xor eax, eax
pop ebx
ret
jle 0x404779
mov ebx, dword [0x52aa60]
mov eax, dword [0x529a64]
inc ebx
mov dword [0x52aa60], ebx
mov edi, dword [esi + eax + 0x2b50]
add edi, edx
mov dword [esi + eax + 0x2b50], edi
mov eax, dword [0x529a64]
add dword [esi + eax + 0x7b78], edx
pop edi
pop esi
mov eax, edx
pop ebx
ret
Function at 0x404780
Capabilities:
Send data
Send data on socket

Disassembly:
mov ecx, dword [esp + 4]
push ebx
mov eax, ecx
push ebp
shl eax, 5
sub eax, ecx
push esi
shl eax, 4
add eax, ecx
push edi
xor ebp, ebp
xor edi, edi
lea esi, [eax + eax*8]
mov eax, dword [0x529a64]
shl esi, 3
mov ecx, dword [esi + eax + 0x2b4c]
cmp ecx, 1
jl 0x4047bc
cmp dword [esi + eax + 0x2b50], ecx
jl 0x40489e
mov ecx, dword [esi + eax + 0xb3c]
cmp ecx, ebp
je 0x4049b3
test byte [ecx + 0xc], 0x10
jne 0x404994
cmp dword [esi + eax + 0x8b94], ebp
jne 0x404815
push ecx
push 0x2000
lea eax, [esi + eax + 0xb4c]
push 1
push eax
call fcn.00411da9
mov ecx, dword [0x529a64]
add esp, 0x10
mov dword [esi + ecx + 0x2b4c], eax
mov edx, dword [0x529a64]
mov dword [esi + edx + 0x2b50], ebp
jmp 0x404899
mov ebx, dword [esi + eax + 0x7b84]
mov edx, 0x2000
cmp ebx, ebp
mov dword [esp + 0x14], edx
je 0x40486c
mov ebx, dword [esi + eax + 0x8b98]
mov edx, dword [0x41b904]
cmp ebx, edx
jne 0x404858
mov dword [esi + eax + 0x6b60], 1
mov eax, dword [0x529a64]
pop edi
mov dword [esi + eax + 0x8b98], ebp
pop esi
pop ebp
xor eax, eax
pop ebx
ret
lea ebp, [ebx + 0x2000]
cmp ebp, edx
jle 0x404866
sub edx, ebx
jmp 0x40486a
mov edx, dword [esp + 0x14]
xor ebp, ebp
push ecx
push edx
lea ecx, [esi + eax + 0xb4c]
push 1
push ecx
call fcn.00411da9
mov edx, dword [0x529a64]
add esp, 0x10
mov dword [esi + edx + 0x2b4c], eax
mov eax, dword [0x529a64]
mov dword [esi + eax + 0x2b50], ebp
mov eax, dword [0x529a64]
mov edx, dword [esi + eax + 0x2b50]
mov ecx, dword [esi + eax + 0x2b4c]
cmp edx, ecx
jge 0x40498d
sub ecx, edx
add edx, esi
push ebp
push ecx
lea ecx, [edx + eax + 0xb4c]
mov edx, dword [esi + eax + 0xc]
push ecx
push edx
call sub.WSOCK32.dll_send
mov edi, eax
cmp edi, ebp
jge 0x404936
call sub.WSOCK32.dll_WSAGetLastError
mov edi, eax
call fcn.0040dea0
cmp edi, 0x2733
je 0x4049dc
mov eax, dword [0x529a64]
mov eax, dword [esi + eax + 0xb3c]
cmp eax, ebp
je 0x404922
push eax
call fcn.00411c43
mov ecx, dword [0x529a64]
mov edx, dword [esi + ecx + 0xb3c]
push edx
call fcn.00411750
mov eax, dword [0x529a64]
add esp, 8
mov dword [esi + eax + 0xb3c], ebp
mov ecx, dword [0x529a64]
pop edi
xor eax, eax
mov dword [esi + ecx], 0x13
pop esi
pop ebp
pop ebx
ret
jle 0x40498d
mov eax, dword [0x52aa60]
inc eax
mov dword [0x52aa60], eax
mov eax, dword [0x529a64]
mov ebx, dword [esi + eax + 0x2b50]
add ebx, edi
mov dword [esi + eax + 0x2b50], ebx
mov eax, dword [0x529a64]
mov edx, dword [esi + eax + 0x7b78]
add edx, edi
mov dword [esi + eax + 0x7b78], edx
mov eax, dword [0x529a64]
cmp dword [esi + eax + 0x8b94], ebp
je 0x40498d
mov ecx, dword [esi + eax + 0x8b98]
lea eax, [esi + eax + 0x8b98]
add ecx, edi
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp ecx, ebp
je 0x4049b3
push ecx
call fcn.00411750
mov edx, dword [0x529a64]
add esp, 4
mov dword [esi + edx + 0xb3c], ebp
mov eax, dword [0x529a64]
mov dword [esi + eax + 0x2b50], ebp
mov eax, dword [0x529a64]
mov dword [esi + eax + 0x2b4c], ebp
mov eax, dword [0x529a64]
mov ecx, dword [esi + eax + 4]
mov dword [esi + eax], ecx
mov edx, dword [0x529a64]
mov dword [esi + edx + 4], ebp
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret