joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419460
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub esp, 0x144
mov eax, dword [0x516b80]
xor eax, esp
mov dword [esp + 0x140], eax
xor eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x150]
push edi
push 0x11c
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x38]
mov dword [esi], 0xa
push eax
mov dword [ebp], 5
call fcn.004991b0
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x34], 0x11c
call edi
cmp eax, 1
sete bl
test bl, bl
jne 0x419510
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x34], 0x114
call edi
test eax, eax
jne 0x419510
pop edi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.00497164
add esp, 0x144
ret
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x40]
sub eax, 0
je 0x419650
sub eax, 1
je 0x4195ef
sub eax, 1
jne 0x419656
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0xc]
mov cl, byte [esp + 0x14a]
cmp edi, 6
jne 0x41955e
cmp dword [esp + 0x38], eax
jne 0x4195aa
cmp cl, 1
setne al
mov dword [esi], eax
jmp 0x4195aa
cmp edi, 5
jne 0x41959f
mov eax, dword [esp + 0x38]
cmp eax, 2
jne 0x419586
cmp cl, 1
jne 0x41957e
cmp dx, 9
jne 0x41957e
mov dword [esi], edi
mov dword [ebp], eax
jmp 0x4195aa
mov dword [esi], 2
jmp 0x4195aa
cmp eax, 1
jne 0x419593
mov dword [esi], 5
jmp 0x4195aa
test eax, eax
jne 0x4195aa
mov dword [esi], 3
jmp 0x4195aa
cmp edi, 4
ja 0x4195aa
mov dword [esi], 4
test bl, bl
je 0x419656
cmp cl, 1
jne 0x419656
cmp dx, 9
je 0x419656
cmp edi, 4
jne 0x4195d6
mov dword [ebp], 0
jmp 0x419656
mov ecx, dword [esp + 0x148]
and ecx, 0x200
neg ecx
sbb ecx, ecx
add ecx, 2
mov dword [ebp], ecx
jmp 0x419656
cmp dword [esp + 0x34], 4
jne 0x419656
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x41961e
mov ax, word [esp + 0x46]
mov dword [esi], 7
cmp ax, 0x43
je 0x419615
cmp ax, 0x42
jne 0x419656
mov dword [ebp], 4
jmp 0x419656
cmp eax, 0xa
jne 0x419643
mov ax, word [esp + 0x46]
mov dword [esi], 6
cmp ax, 0x41
je 0x41963a
cmp ax, 0x42
jne 0x419656
mov dword [ebp], 3
jmp 0x419656
cmp eax, 0x5a
jne 0x419656
mov dword [esi], 8
jmp 0x419656
mov dword [esi], 9
mov ecx, dword [esp + 0x14c]
pop edi
pop ebp
pop ebx
xor ecx, esp
mov al, 1
call fcn.00497164
add esp, 0x144
ret
Function at 0x41c4e0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4d7c07
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x516b80]
xor eax, esp
mov dword [esp + 0x94], eax
push ebp
push esi
mov eax, dword [0x516b80]
xor eax, esp
push eax
lea eax, [esp + 0xa4]
mov dword fs:[0], eax
lea ebp, [edi + 8]
mov ecx, ebp
mov dword [esp + 0xc], edi
call fcn.00408c50
push 0x78
mov dword [esp + 0xb0], 0
call fcn.00488157
add esp, 4
mov dword [esp + 0x10], eax
mov byte [esp + 0xac], 1
test eax, eax
je 0x41c55a
push 0x4ff614
mov ecx, eax
call fcn.004221e0
jmp 0x41c55c
xor eax, eax
mov byte [esp + 0xac], 0
push 0x1c
lea esi, [esp + 0x88]
mov dword [edi], eax
call fcn.00419010
push 0x4fed44
mov eax, esi
push eax
lea ecx, [esp + 0x74]
push ecx
mov byte [esp + 0xbc], 2
call fcn.0040fee0
push 0x4ff64c
push eax
lea edx, [esp + 0x64]
push edx
mov byte [esp + 0xc8], 3
call fcn.0040fee0
push 0x4fed44
push eax
lea eax, [esp + 0x54]
push eax
mov byte [esp + 0xd4], 4
call fcn.0040fee0
push str.UserSettings.xml
push eax
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0xe0], 5
call fcn.0040fee0
add esp, 0x34
push eax
mov ecx, ebp
mov byte [esp + 0xb0], 6
call fcn.00408cc0
lea ecx, [esp + 0x14]
call fcn.00401310
lea ecx, [esp + 0x30]
call fcn.00401310
lea ecx, [esp + 0x4c]
call fcn.00401310
lea ecx, [esp + 0x68]
mov byte [esp + 0xac], 2
call fcn.00401310
push 0x40
push 0x4ff660
mov ecx, ebp
call fcn.00408ea0
push eax
call fcn.00499f8d
add esp, 0xc
mov dword [edi + 0x24], eax
test eax, eax
je 0x41c655
mov ecx, dword [edi]
push 0
push eax
call fcn.00421690
mov edx, dword [edi + 0x24]
push edx
mov byte [edi + 4], al
call fcn.0049a11d
add esp, 4
mov dword [edi + 0x24], 0
jmp 0x41c67f
push str.Protexis
lea ecx, [esp + 0x88]
call fcn.00408d50
push 0
lea ecx, [esp + 0x88]
call fcn.00408ea0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [edi + 4], 0
lea ecx, [esp + 0x84]
call fcn.00401310
mov eax, edi
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00497164
add esp, 0xa4
ret
Function at 0x41c730
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4d7b98
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x516b80]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
mov eax, dword [0x516b80]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov ecx, dword [edi]
xor ebx, ebx
mov byte [esp + 0x13], bl
call fcn.00420810
test eax, eax
je 0x41c807
push 0x1c
lea esi, [esp + 0x50]
call fcn.00419010
push 0x4fed44
mov eax, esi
push eax
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x84], ebx
call fcn.0040fee0
push 0x4ff64c
push eax
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0x90], 1
call fcn.0040fee0
add esp, 0x1c
push eax
mov ecx, esi
mov byte [esp + 0x78], 2
call fcn.00408cc0
lea ecx, [esp + 0x30]
call fcn.00401310
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], bl
call fcn.00401310
push ebx
mov ecx, esi
call fcn.00408ea0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call ebp
cmp esi, ebx
jne 0x41c80b
cmp eax, 0xb7
je 0x41c80b
call ebp
lea ecx, [esp + 0x4c]
call fcn.00401310
xor al, al
jmp 0x41c865
mov eax, dword [edi + 0x24]
cmp eax, ebx
je 0x41c81e
push eax
call fcn.0049a11d
add esp, 4
mov dword [edi + 0x24], ebx
push 0x40
push 0x4ff67c
lea ecx, [edi + 8]
call fcn.00408ea0
push eax
call fcn.00499f8d
add esp, 0xc
mov dword [edi + 0x24], eax
cmp eax, ebx
je 0x41c858
mov ecx, dword [edi]
push eax
call fcn.004208d0
mov byte [esp + 0x13], al
mov eax, dword [edi + 0x24]
push eax
call fcn.0049a11d
add esp, 4
mov dword [edi + 0x24], ebx
lea ecx, [esp + 0x4c]
call fcn.00401310
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00497164
add esp, 0x68
ret
Function at 0x420280
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
jne 0x42029f
xor al, al
jmp 0x420344
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4202fb
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4202fb
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4202fb
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x420305
xor al, al
jmp 0x420344
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 4
call fcn.00419e80
mov dword [ebp - 0x14], 0
jmp 0x420326
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0xc]
jae 0x420342
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 4
call fcn.00419f60
jmp 0x42031d
mov al, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x421690
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4d2f48
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x516b80]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x516b80]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, dword [esp + 0x44]
xor ebp, ebp
mov ebx, ecx
cmp esi, ebp
jne 0x4216df
push ebp
push ebp
push ebp
push 2
call fcn.004239c0
xor al, al
jmp 0x421847
call fcn.00420760
push 2
or eax, 0xffffffff
push ebp
push esi
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
call fcn.0049be41
push esi
call fcn.0049bd49
push ebp
push ebp
push esi
mov edi, eax
call fcn.0049be41
add esp, 0x1c
cmp edi, ebp
jg 0x421720
push ebp
push ebp
push ebp
push 0xd
mov ecx, ebx
call fcn.004239c0
xor al, al
jmp 0x421847
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebp
mov byte [esp + 0x18], 0
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x40], ebp
call fcn.00418bb0
lea eax, [edi + 1]
push eax
call fcn.00488191
push esi
push 1
mov ebp, eax
push edi
push ebp
mov byte [ebp], 0
call fcn.0049bb8f
add esp, 0x14
cmp eax, 1
je 0x421793
push ebp
call fcn.00488186
add esp, 4
push 0
push 0
push 0
push 2
mov ecx, ebx
call fcn.004239c0
cmp dword [esp + 0x2c], 0x10
jb 0x42178c
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00488186
add esp, 4
xor al, al
jmp 0x421847
mov byte [edi + ebp], 0
cmp byte [ebp], 0
mov eax, ebp
mov esi, ebp
je 0x4217f5
mov cl, byte [esi]
cmp cl, 0xa
jne 0x4217bd
mov edx, esi
sub edx, eax
inc edx
push edx
push eax
lea ecx, [esp + 0x1c]
call fcn.0040a780
inc esi
mov eax, esi
jmp 0x4217f0
cmp cl, 0xd
jne 0x4217ef
mov ecx, esi
sub ecx, eax
test ecx, ecx
jle 0x4217d5
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.0040a780
push 0xa
push 1
lea ecx, [esp + 0x1c]
call fcn.0040f3d0
cmp byte [esi + 1], 0xa
jne 0x4217b8
add esi, 2
mov eax, esi
jmp 0x4217f0
inc esi
cmp byte [esi], 0
jne 0x4217a1
sub esi, eax
je 0x421804
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.0040a780
push ebp
call fcn.00488186
mov eax, dword [esp + 0x1c]
add esp, 4
cmp dword [esp + 0x2c], 0x10
jae 0x42181c
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x48]
mov edx, dword [ebx]
mov edx, dword [edx + 8]
push ecx
push 0
push eax
mov ecx, ebx
call edx
cmp byte [ebx + 0x44], 0
lea ecx, [esp + 0x14]
je 0x421840
call fcn.00401290
xor al, al
jmp 0x421847
call fcn.00401290
mov al, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00497164
add esp, 0x2c
ret 8
Function at 0x421990
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4d2fbe
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x516b80]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
xor ebx, ebx
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], ebx
lea ecx, [esi + 0x14]
mov dword [esi], vtable.TiXmlAttribute.0
mov eax, 0xf
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov byte [ecx + 4], bl
lea edi, [esi + 0x30]
mov dword [edi + 0x18], eax
mov dword [edi + 0x14], ebx
mov byte [edi + 4], bl
mov eax, dword [esp + 0x24]
push 0xffffffffffffffff
push ebx
push eax
mov byte [esp + 0x28], 2
call fcn.00401330
mov ecx, dword [esp + 0x28]
push 0xffffffffffffffff
push ebx
push ecx
mov ecx, edi
call fcn.00401330
mov dword [esi + 0x10], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], ebx
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 8

Function at 0x421a40
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4d2ffe
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x516b80]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
or eax, 0xffffffff
xor ebx, ebx
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
lea ecx, [esi + 0x14]
mov dword [esi], vtable.TiXmlAttribute.0
mov eax, 0xf
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], ebx
mov dword [esp + 0x20], ebx
mov byte [ecx + 4], bl
lea edi, [esi + 0x30]
mov dword [edi + 0x18], eax
mov dword [edi + 0x14], ebx
mov byte [edi + 4], bl
mov ebp, dword [esp + 0x28]
mov eax, ebp
lea edx, [eax + 1]
mov byte [esp + 0x20], 2
mov dword [esp + 0x28], edx
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x421ab2
sub eax, dword [esp + 0x28]
push eax
push ebp
call fcn.00401680
mov edx, dword [esp + 0x2c]
mov eax, edx
lea ebp, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x421ad0
sub eax, ebp
push eax
push edx
mov ecx, edi
call fcn.00401680
mov dword [esi + 0x10], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], ebx
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
Function at 0x425910
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi]
mov eax, dword [eax + 8]
push edi
test eax, eax
je 0x425933
push eax
call fcn.00426a30
add esp, 4
mov byte [esp + 0x14], 1
test al, al
jne 0x425938
mov byte [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
xor ecx, ecx
cmp ebx, dword [esi + 0xa4]
mov dword [edx], 0
sete cl
cmp byte [esp + 0x14], 0
mov ebp, ecx
je 0x4259bb
mov ecx, dword [esi + 0x168]
mov edi, dword [esi + 0x16c]
mov eax, dword [esp + 0x20]
sub edi, ecx
cmp edi, eax
jb 0x425972
mov edi, eax
test edi, edi
jbe 0x4259a7
mov eax, dword [esi + 0x164]
add eax, ecx
mov ecx, dword [esp + 0x1c]
push edi
push eax
push ecx
call fcn.004992e0
add dword [esi + 0x168], edi
mov edx, dword [esp + 0x30]
add esp, 0xc
mov byte [esi + 0x120], 0
mov dword [edx], edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
cmp eax, 0x4000
jb 0x4259b3
mov eax, 0x4000
mov ecx, dword [esi + 0x164]
jmp 0x4259e7
mov eax, dword [esi]
mov eax, dword [eax + 0x224]
mov ecx, eax
test eax, eax
jne 0x4259ce
mov ecx, 0x4000
mov edx, dword [esp + 0x20]
cmp edx, ecx
jge 0x4259da
mov eax, edx
jmp 0x4259e3
test eax, eax
jne 0x4259e3
mov eax, 0x4000
mov ecx, dword [esp + 0x1c]
lea edx, [ebp + ebp*2]
cmp dword [esi + edx*8 + 0xac], 2
jne 0x425a0f
push eax
push ecx
push ebp
push esi
call fcn.00426960
mov edi, eax
add esp, 0x10
cmp edi, 0xffffffff
jne 0x425a3f
pop edi
pop esi
pop ebp
or eax, eax
pop ebx
ret
cmp dword [esi + 0x150], 0
jne 0x425a2a
push 0
push eax
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, 0xffffffff
jne 0x425a3f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x425a71
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
test edi, edi
jl 0x425a71
cmp byte [esp + 0x14], 0
je 0x425a6b
mov eax, dword [esi + 0x164]
mov ecx, dword [esp + 0x1c]
push edi
push eax
push ecx
call fcn.004992e0
add esp, 0xc
mov dword [esi + 0x16c], edi
mov dword [esi + 0x168], edi
mov eax, dword [esp + 0x24]
add dword [eax], edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x425a80
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xa4
mov eax, dword [0x516b80]
xor eax, esp
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xb8]
push ebx
mov ebx, dword [esp + 0xb0]
push ebp
mov ebp, dword [esp + 0xb8]
push esi
mov esi, dword [esp + 0xb4]
cmp byte [esi + 0x244], 0
push edi
je case.default.0x425ae1
test eax, eax
je case.default.0x425ae1
mov eax, dword [eax + 0x60]
test eax, eax
je case.default.0x425ae1
lea edx, [ebx - 1]
mov ecx, str.Data
cmp edx, 3
ja case.default.0x425ae1
jmp dword [edx*4 + 0x425bfc]
mov ecx, str.Header
mov edx, str.from
jmp 0x425afe
mov ecx, str.Header
mov edx, 0x4db2dc
push eax
push edx
push ecx
push str.__s__s__s_
lea eax, [esp + 0x20]
push 0xa0
push eax
call fcn.004279d0
lea eax, [esp + 0x28]
add esp, 0x18
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x425b20
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0x140]
test eax, eax
je 0x425b75
mov ecx, dword [esi + 0xe4]
push ecx
push edi
lea edx, [esp + 0x18]
push edx
push 0
push esi
call eax
add esp, 0x14
test eax, eax
jne 0x425be2
mov eax, dword [esi + 0x140]
test eax, eax
je 0x425ba5
mov ecx, dword [esi + 0xe4]
mov edx, dword [esp + 0xc4]
push ecx
push edx
push ebp
push ebx
push esi
call eax
add esp, 0x14
jmp 0x425be2
mov eax, dword [esi + 0xe0]
mov ecx, dword [0x4db2b4]
push eax
push 1
push 2
push ecx
call fcn.0049aadb
mov edx, dword [esi + 0xe0]
push edx
push 1
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0049aadb
add esp, 0x20
jmp case.default.0x425ae1
test ebx, ebx
jl 0x425be0
cmp ebx, 2
jg 0x425be0
mov eax, dword [esi + 0xe0]
mov ecx, dword [ebx*4 + 0x4db2b4]
push eax
push 1
push 2
push ecx
call fcn.0049aadb
mov edx, dword [esi + 0xe0]
mov eax, dword [esp + 0xd4]
push edx
push 1
push eax
push ebp
call fcn.0049aadb
add esp, 0x20
xor eax, eax
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00497164
add esp, 0xa4
ret

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

Disassembly:
mov eax, dword [edi + eax*4 + 0xa0]
push esi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
cmp esi, 0xffffffff
jne 0x425d85
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x425d6b
xor eax, eax
pop esi
ret
push eax
push edi
call fcn.00428eb0
push eax
mov eax, dword [edi]
push str.Send_failure:__s
push eax
call fcn.00425ca0
add esp, 0x14
mov eax, esi
pop esi
ret

Function at 0x425f90
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x516b80]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x425fe2
mov eax, dword [esp]
cmp al, 2
jne 0x425fdc
shr eax, 8
cmp al, 2
jne 0x425fdc
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00497164
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.00497164
add esp, 0x194
ret
Function at 0x431c50
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
movzx eax, byte [esi + 0x272]
push 4
lea ecx, [esp + 8]
push ecx
push 1
push 6
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x431c94
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00428eb0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00425c10
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00425c10
add esp, 8
pop esi
pop ecx
ret
Function at 0x4320a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x428]
cmp eax, 0xffffffff
je 0x432111
mov ecx, dword [ecx + 0x41c]
mov edx, dword [ecx]
cmp dword [edx + eax*4], 0
lea eax, [edx + eax*4]
je 0x432111
mov ecx, dword [esp + 0xc]
mov eax, dword [eax]
test ecx, ecx
je 0x4320cc
mov dword [ecx], eax
mov ecx, dword [eax + 0xa0]
push esi
mov esi, dword [esp + 0xc]
mov dword [esi], ecx
cmp byte [eax + 0xa8], 0
je 0x4320f9
push eax
call fcn.004269f0
add esp, 4
test eax, eax
jne 0x4320f5
mov dword [esi], 0xffffffff
pop esi
xor eax, eax
ret
mov eax, dword [eax + 0xa0]
push 2
push 1
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
jmp 0x4320eb
mov ecx, dword [esp + 8]
mov dword [ecx], 0xffffffff
xor eax, eax
ret
Function at 0x433ee0
Capabilities:
Create thread

Disassembly:
sub esp, 0xc
push ebx
push esi
push 1
push 0x24
call dword [0x50c154]
xor ebx, ebx
mov esi, eax
add esp, 8
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
cmp esi, ebx
jne 0x433f12
push 0xc
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
xor al, al
pop ebx
add esp, 0xc
ret
mov eax, dword [edi + 0x2a0]
push ebp
lea ebp, [edi + 0x2a0]
push eax
mov dword [esp + 0x10], ebp
call fcn.00429570
mov ecx, dword [esp + 0x20]
push ecx
call dword [0x50c150]
add esp, 8
mov dword [ebp], eax
cmp eax, ebx
jne 0x433f59
push esi
call dword [0x50c148]
add esp, 4
push 0xc
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebp
pop esi
xor al, al
pop ebx
add esp, 0xc
ret
mov edx, dword [esp + 0x20]
push ebx
push 1
mov dword [edi + 0x2a4], edx
mov byte [edi + 0x2ac], bl
mov dword [edi + 0x2b0], ebx
mov dword [edi + 0x2a8], ebx
mov dword [edi + 0x2b4], esi
push ebx
mov dword [esi + 0xc], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0x10], eax
cmp eax, ebx
jne 0x433f96
push ebp
jmp 0x433fe9
mov ebp, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push 1
push ebx
call ebp
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x433fe4
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0x1c], eax
cmp eax, ebx
jne 0x433fc1
mov ecx, dword [esp + 0xc]
push ecx
jmp 0x433fe9
push ebx
push ebx
push 1
push ebx
call ebp
mov dword [esi + 0x20], eax
cmp eax, ebx
jne 0x433fd6
mov edx, dword [esp + 0xc]
push edx
jmp 0x433fe9
push ebx
push ebx
push 1
push ebx
call ebp
mov dword [esi + 0x18], eax
cmp eax, ebx
jne 0x434002
mov eax, dword [esp + 0xc]
push eax
call fcn.00433e00
add esp, 4
push 0xb
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebp
pop esi
xor al, al
pop ebx
add esp, 0xc
ret
lea ecx, [esi + 4]
push ecx
push ebx
push edi
push 0x433cd0
push ebx
push ebx
call fcn.00499896
add esp, 0x18
mov dword [esi], eax
cmp eax, ebx
jne 0x434041
call fcn.0049c6e3
mov edx, dword [eax]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0xc]
push eax
call fcn.00433e00
add esp, 4
pop ebp
pop esi
xor al, al
pop ebx
add esp, 0xc
ret
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x18]
mov dword [esp + 0x18], eax
mov ecx, dword [esi + 0x18]
push edx
push 2
mov dword [esp + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push ebx
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
pop ebp
mov dword [esi + 0xc], eax
pop esi
mov al, 1
pop ebx
add esp, 0xc
ret