joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435ae8
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x64
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x110]
mov ebx, dword [esi + 0xf4]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x114]
mov dword [esp + 0x18], eax
cmp ebx, 0xffffffff
jne 0x435b26
mov dword [esi + 0x48], 0xfffff00d
mov dword [esi + 0xf0], 6
jmp 0x435c83
lea edx, [esp + 0x50]
mov ecx, ebx
call fcn.00433cda
test eax, eax
je 0x435b45
lea edx, [esp + 0x50]
mov ecx, esi
call fcn.00434f08
jmp 0x435c83
xorps xmm0, xmm0
xor edi, edi
push ebx
movlpd qword [esp + 0x2c], xmm0
mov dword [esp + 0x28], edi
call fcn.0052df40
mov ebp, eax
pop ecx
cmp ebp, 0xffffffff
jne 0x435b78
push 6
pop ecx
mov dword [esi + 0xf0], ecx
call fcn.00449d08
mov dword [esi + 0x48], eax
jmp 0x435c83
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
and eax, edx
cmp eax, 0xffffffff
je 0x435bc6
push 0x14
lea eax, [esp + 0x40]
push 0
push eax
call fcn.0051c010
add esp, 0xc
lea eax, [esp + 0x3c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x30]
push 1
push eax
push dword [esp + 0x34]
push dword [esp + 0x34]
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov edx, dword [esp + 0x18]
neg eax
sbb edi, edi
neg edi
mov dword [esp + 0x24], edi
jmp 0x435bca
and dword [esp + 0x20], edi
mov edi, dword [esp + 0x1c]
xor ecx, ecx
mov dword [esp + 0x14], ecx
xor ebx, ebx
mov eax, edi
and eax, edx
cmp eax, 0xffffffff
je 0x435bf3
xor ecx, ecx
mov eax, ebx
add eax, edi
mov dword [esp + 0x44], eax
adc ecx, edx
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x14]
push dword [esp + 0x20]
mov eax, dword [esi + 0x10c]
lea edx, [esp + 0x20]
push edx
push dword [eax + ecx*8]
push dword [eax + ecx*8 + 4]
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
add ebx, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], ecx
test eax, eax
je 0x435c31
mov edx, dword [esp + 0x18]
cmp ecx, dword [esi + 0x108]
jb 0x435bd6
cmp dword [esp + 0x24], 0
je 0x435c4f
push 0
push 0
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x435c80
test ebx, ebx
jne 0x435c80
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x435c69
mov eax, 0x3ec
jmp 0x435c73
cmp eax, 0x26
je 0x435c80
cmp eax, 0x6d
je 0x435c80
mov dword [esi + 0xf0], eax
mov ecx, eax
jmp 0x435b6b
mov dword [esi + 0x48], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
Function at 0x436dc3
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x64
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x110]
mov ebp, dword [esi + 0xf4]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x114]
mov dword [esp + 0x14], eax
cmp ebp, 0xffffffff
jne 0x436e01
mov dword [esi + 0x48], 0xfffff00d
mov dword [esi + 0xf0], 6
jmp 0x436f4f
xorps xmm0, xmm0
xor edi, edi
push ebp
movlpd qword [esp + 0x2c], xmm0
mov dword [esp + 0x24], edi
call fcn.0052df40
mov ebx, eax
pop ecx
cmp ebx, 0xffffffff
jne 0x436e34
push 6
pop ecx
mov dword [esi + 0xf0], ecx
call fcn.00449d08
mov dword [esi + 0x48], eax
jmp 0x436f4f
lea edx, [esp + 0x50]
mov ecx, ebp
call fcn.00433cda
test eax, eax
je 0x436e57
lea eax, [esp + 0x50]
mov edx, ebx
push eax
mov ecx, esi
call fcn.00435c8b
pop ecx
jmp 0x436f4f
mov edx, dword [esp + 0x18]
mov eax, edx
mov ecx, dword [esp + 0x14]
and eax, ecx
cmp eax, 0xffffffff
je 0x436eab
push 0x14
lea eax, [esp + 0x40]
push 0
push eax
call fcn.0051c010
add esp, 0xc
lea eax, [esp + 0x3c]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x30]
push 1
push eax
push dword [esp + 0x34]
push dword [esp + 0x34]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov edx, dword [esp + 0x18]
neg eax
mov ecx, dword [esp + 0x14]
sbb edi, edi
neg edi
mov dword [esp + 0x20], edi
jmp 0x436eaf
and dword [esp + 0x1c], edi
xor edi, edi
xor ebp, ebp
mov eax, edx
and eax, ecx
cmp eax, 0xffffffff
je 0x436ece
mov eax, ebp
xor ecx, ecx
add eax, edx
mov dword [esp + 0x44], eax
adc ecx, dword [esp + 0x14]
mov dword [esp + 0x48], ecx
push dword [esp + 0x1c]
mov eax, dword [esi + 0x10c]
lea ecx, [esp + 0x28]
push ecx
push dword [eax + edi*8]
push dword [eax + edi*8 + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
add ebp, dword [esp + 0x24]
inc edi
mov dword [esp + 0x28], eax
test eax, eax
je 0x436f08
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
cmp edi, dword [esi + 0x108]
jb 0x436eb3
cmp dword [esp + 0x20], 0
je 0x436f26
push 0
push 0
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x436f4c
test ebp, ebp
jne 0x436f4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x3ec
cmp eax, 5
cmove eax, ecx
mov dword [esi + 0xf0], eax
mov ecx, eax
jmp 0x436e27
mov dword [esi + 0x48], ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
Function at 0x437ac0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, ebx
mov ebp, dword [esi + 0xf4]
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x437aef
mov dword [esi + 0x48], 0xfffff02c
mov edx, 0x10b
jmp 0x437bad
push 0x270
call dword [0x603d38]
mov edi, eax
pop ecx
test edi, edi
jne 0x437b10
push 0xe
mov dword [esi + 0x48], 0xfffff027
pop edx
jmp 0x437bad
push ebp
call fcn.0052fd64
mov dword [esp + 0x18], eax
pop ecx
lea ecx, [eax + eax]
test eax, eax
jne 0x437b2c
mov dword [esp + 0x10], 0x588fa0
jmp 0x437b4b
movzx eax, word [ecx + ebp - 2]
cmp eax, 0x5c
je 0x437b43
mov dword [esp + 0x10], 0x588fb0
cmp eax, 0x2f
jne 0x437b4b
mov dword [esp + 0x10], 0x588fa8
add ecx, 8
call fcn.004396f2
mov ecx, eax
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x437b01
mov eax, dword [esp + 0x14]
push ebp
push dword [esp + 0x14]
add eax, 3
push eax
push ecx
call fcn.00433cbf
mov ebp, dword [esp + 0x28]
lea eax, [edi + 0x1c]
add esp, 0x10
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, ebp
mov dword [edi + 0x18], eax
call fcn.00439702
cmp dword [edi + 0x18], 0xffffffff
jne 0x437bc3
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
cmp eax, 2
je 0x437bc3
call ebp
mov edx, eax
mov ecx, edx
call fcn.00449d08
mov dword [esi + 0x48], eax
mov ecx, edi
mov dword [esi + 0xf0], edx
call fcn.00439702
xor ecx, ecx
call fcn.00439702
jmp 0x437bce
mov dword [edi + 0x26c], ebx
mov dword [esi + 0x48], ebx
mov ebx, edi
pop edi
mov dword [esi + 0x4c], ebx
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x4382e4
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
mov eax, ecx
push ebx
push ebp
push esi
mov ecx, dword [eax + 0xf4]
mov ebp, 0x10000
push edi
mov edi, dword [eax + 0x118]
cmp edi, ebp
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 0x104]
cmovb ebp, edi
mov dword [esp + 0x1c], ecx
xor esi, esi
mov ecx, dword [eax + 0x110]
mov dword [esp + 0x20], eax
mov eax, dword [eax + 0x114]
mov dword [esp + 0x14], ecx
mov ecx, ebp
mov dword [esp + 0x18], eax
call fcn.004396f2
mov ebx, eax
test ebx, ebx
je 0x4383b3
mov ecx, dword [esp + 0x14]
mov eax, ecx
mov edx, dword [esp + 0x18]
and eax, edx
cmp eax, 0xffffffff
je 0x4383ad
push esi
push edx
push ecx
push dword [esp + 0x1c]
call fcn.0052daba
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4383ad
or esi, 0xffffffff
mov ecx, ebx
call fcn.00439702
mov eax, dword [esp + 0x20]
pop edi
mov dword [eax + 0x48], esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
cmp edi, ebp
mov eax, ebp
cmovb eax, edi
push eax
push ebx
push dword [esp + 0x18]
call fcn.0052e5ae
add esp, 0xc
test eax, eax
je 0x438362
cmp eax, 0xffffffff
je 0x43835f
push eax
push ebx
push dword [esp + 0x24]
sub edi, eax
call fcn.0052f484
add esp, 0xc
cmp eax, 0xffffffff
je 0x43835f
add esi, eax
test edi, edi
jne 0x438378
jmp 0x438362
push 0xe
mov edx, str.uv__malloc
pop ecx
call fcn.00449c84
int3
Function at 0x4383c1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, ecx
push dword [esi + 0xf4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4383ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov dword [esi + 0xf0], eax
call fcn.00449d08
mov dword [esi + 0x48], eax
pop esi
ret
test byte [esi + 0xf8], 2
je 0x438409
and al, 0x11
cmp al, 1
jne 0x438409
mov eax, 0xfffff030
mov dword [esi + 0xf0], eax
jmp 0x4383e8
and dword [esi + 0x48], 0
pop esi
ret
Function at 0x438c0b
Capabilities:
Get disk size

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0xf4]
jmp 0x438ca2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi + 0xf4]
cmp ebx, 0x10b
jne 0x438d1a
cmp edi, eax
jne 0x438d1e
mov ecx, 0x20a
add ebx, 0xfffffffa
call fcn.004396f2
mov edi, eax
test edi, edi
je 0x438ce3
lea eax, [esp + 0x20]
push eax
push edi
push ebx
push dword [esi + 0xf4]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x438d02
cmp eax, ebx
jbe 0x438c95
lea ebp, [eax + eax]
mov ecx, edi
mov edx, ebp
mov ebx, eax
call fcn.0043971f
test eax, eax
jne 0x438c8d
test ebp, ebp
jne 0x438cf9
mov edi, eax
test eax, eax
jne 0x438c58
jmp 0x438ce3
mov eax, dword [esp + 0x20]
test eax, eax
je 0x438ca2
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x438c1f
cmp edi, dword [esi + 0xf4]
je 0x438cd4
mov ecx, edi
call fcn.00439702
push 0x58
call dword [0x603d38]
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x438d37
mov dword [esi + 0x48], 0xfffff027
mov dword [esi + 0xf0], 0xe
jmp 0x438d84
mov ecx, edi
call fcn.00439702
jmp 0x438ce3
mov ecx, edi
call fcn.00439702
mov dword [esi + 0xf0], 0x10b
mov ecx, 0x10b
jmp 0x438d2d
cmp edi, eax
je 0x438d25
mov ecx, edi
call fcn.00439702
mov dword [esi + 0xf0], ebx
mov ecx, ebx
call fcn.00449d08
mov dword [esi + 0x48], eax
jmp 0x438d84
xor edx, edx
mov dword [ecx], edx
mov dword [ecx + 4], edx
mov eax, dword [esp + 0x14]
imul eax, dword [esp + 0x18]
mov dword [ecx + 0xc], edx
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edx
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], edx
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], edx
mov dword [ecx + 0x28], edx
mov dword [ecx + 0x2c], edx
mov dword [ecx + 0x30], edx
mov dword [ecx + 0x34], edx
or dword [esi + 0xec], 8
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x48], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x438d8c
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
mov esi, dword [ebp + 8]
add esi, 0xffffff28
mov eax, dword [esi + 0x3c]
dec eax
cmp eax, 0x23
ja case.default.0x438daa
jmp dword [eax*4 + 0x438f90]
mov ecx, esi
call fcn.0043446c
jmp case.default.0x438daa
mov ecx, esi
call fcn.00434e70
jmp case.default.0x438daa
mov ecx, esi
call fcn.00435ae8
jmp case.default.0x438daa
mov ecx, esi
call fcn.00436dc3
jmp case.default.0x438daa
mov ecx, esi
call fcn.0043821f
jmp case.default.0x438daa
mov ecx, esi
call fcn.004382e4
jmp case.default.0x438daa
mov ecx, dword [esi + 0xf4]
call fcn.00437f1b
xor edx, edx
mov ecx, esi
call fcn.00437faa
jmp case.default.0x438daa
mov ecx, dword [esi + 0xf4]
call fcn.00437f1b
xor edx, edx
inc edx
jmp 0x438e06
mov ecx, esi
call fcn.0043800b
jmp case.default.0x438daa
mov ecx, esi
call fcn.004380cc
jmp case.default.0x438daa
xor edx, edx
mov ecx, esi
call fcn.004385cf
jmp case.default.0x438daa
mov ecx, esi
call fcn.00438697
jmp case.default.0x438daa
xor edx, edx
inc edx
jmp 0x438e3c
mov ecx, esi
call fcn.004383c1
jmp case.default.0x438daa
push dword [esi + 0xf8]
push dword [esi + 0xf4]
call fcn.0052fbbd
pop ecx
pop ecx
cmp eax, 0xffffffff
jne case.0x438daa.26
call fcn.0052d3eb
mov ecx, dword [eax]
mov dword [esi + 0xf0], ecx
call fcn.00449d08
mov dword [esi + 0x48], eax
jmp case.default.0x438daa
mov ecx, esi
call fcn.0043840f
jmp case.default.0x438daa
mov ecx, esi
call fcn.0043807b
jmp case.default.0x438daa
mov ecx, esi
call fcn.00436f57
jmp case.default.0x438daa
push dword [esi + 0xf4]
call fcn.0052e0c0
jmp 0x438e77
mov ecx, esi
call fcn.00437092
jmp case.default.0x438daa
mov edx, 0x43770b
mov ecx, esi
call fcn.004370db
jmp case.default.0x438daa
mov edx, 0x43774e
jmp 0x438edd
push 1
push dword [esi + 0xfc]
push dword [esi + 0xf4]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne case.0x438daa.26
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xf0], eax
mov ecx, eax
jmp 0x438e8e
mov ecx, esi
call fcn.004377f6
jmp case.default.0x438daa
mov ecx, esi
call fcn.00437bd9
jmp case.default.0x438daa
mov ecx, esi
call fcn.00437ac0
jmp case.default.0x438daa
mov eax, dword [esi + 0x4c]
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esi + 0x4c]
call fcn.00439702
and dword [esi + 0x48], 0
jmp case.default.0x438daa
push 0
push dword [esi + 0xf4]
push dword [esi + 0xfc]
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
jmp 0x438f04
mov ecx, esi
call fcn.004389e9
jmp case.default.0x438daa
mov ecx, esi
call fcn.00438a6f
jmp case.default.0x438daa
mov ecx, esi
call fcn.00438ba2
jmp case.default.0x438daa
mov ecx, esi
call fcn.00438c0b
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43a081
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x5c9040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0xf
jne 0x43a12d
test edx, edx
jne 0x43a100
test dword [esi + 0x2c], 0x2000000
jne 0x43a0b7
mov eax, 0xfffff02b
jmp 0x43a132
mov ebx, 0x80
lea eax, [ebp - 0x88]
push ebx
xor edi, edi
push edi
push eax
call fcn.0051c010
add esp, 0xc
lea eax, [ebp - 0x88]
push ebx
push eax
push dword [esi + 0x38]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x43a0f5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.00449d08
mov edi, eax
jmp 0x43a0fc
and dword [esi + 0x2c], 0xfdffffff
mov eax, edi
jmp 0x43a132
movzx eax, word [edx]
cmp eax, 2
jne 0x43a10c
push 0x10
jmp 0x43a113
cmp eax, 0x17
jne 0x43a12d
push 0x1c
test dword [esi + 0x2c], 0x2000000
pop eax
je 0x43a124
mov eax, 0xfffff01b
jmp 0x43a132
push eax
call fcn.0043c449
pop ecx
jmp 0x43a132
mov eax, 0xfffff019
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051b034
leave
ret

Function at 0x43b578
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x280
mov eax, dword [0x5c9040]
xor eax, esp
mov dword [esp + 0x27c], eax
push ebx
push ebp
push esi
mov esi, edx
xor ebp, ebp
inc ebp
mov ebx, ecx
push edi
mov edi, dword [esp + 0x294]
cmp dword [esi + 0x38], 0xffffffff
mov dword [esp + 0x10], ebp
je 0x43b5b2
mov eax, 0xfffff00e
jmp 0x43b666
lea eax, [esp + 0x10]
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x43b5d3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x43b666
push 0
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x43b5e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x43b666
push 0
push edi
push dword [ebx + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
je 0x43b5e1
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x274
push eax
lea eax, [esp + 0x1c]
push eax
push 0x2005
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x43b5e1
cmp dword [esp + 0x40], ebp
jne 0x43b650
push 3
push edi
call dword [sym.imp.KERNEL32.dll_SetFileCompletionNotificationModes]
test eax, eax
je 0x43b67f
or dword [esi + 0x2c], 0x20000
mov dword [esi + 0x114], 0x44ad15
mov dword [esi + 0x118], 0x44ae22
cmp dword [esp + 0x298], 0x17
mov dword [esi + 0x38], edi
jne 0x43b664
or dword [esi + 0x2c], 0x400000
xor eax, eax
mov ecx, dword [esp + 0x28c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051b034
add esp, 0x280
ret
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, ebp
je 0x43b650
call ebx
jmp 0x43b666
Function at 0x43b7b8
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ecx
push ecx
and dword [esp + 4], 0
push esi
mov esi, ecx
push edi
mov edi, edx
test dword [esi + 0x2c], 0x2000
je 0x43b7d5
xor eax, eax
jmp 0x43b8b8
test byte [esp + 0x18], 1
push 0x17
pop eax
je 0x43b7ec
cmp word [edi], ax
je 0x43b7ec
push 0x57
pop eax
jmp 0x43b8b8
lea eax, [esi + 0x38]
cmp dword [eax], 0xffffffff
push ebx
push ebp
mov ebx, eax
jne 0x43b83c
movzx eax, word [edi]
push 0
push 2
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x43b8a5
movzx eax, word [edi]
mov edx, esi
mov ecx, dword [esi + 4]
push eax
push ebx
call fcn.0043b578
mov ebp, eax
pop ecx
pop ecx
test ebp, ebp
je 0x43b836
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, ebp
jmp 0x43b8b6
lea ebx, [esi + 0x38]
lea eax, [esi + 0x38]
test byte [esp + 0x20], 4
mov ebp, dword [sym.imp.WS2_32.dll_setsockopt]
je 0x43b868
push 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 1
push ecx
push 4
push 0xffff
push dword [eax]
call ebp
cmp eax, 0xffffffff
je 0x43b8a5
push 0x17
pop eax
cmp word [edi], ax
jne 0x43b893
or dword [esi + 0x2c], 0x400000
cmp word [edi], ax
jne 0x43b893
test byte [esp + 0x20], 1
jne 0x43b893
push 4
lea eax, [esp + 0x18]
push eax
push 0x1b
push 0x29
push dword [esi + 0x38]
call ebp
push dword [esp + 0x1c]
push edi
push dword [ebx]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x43b8ad
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x43b8b6
or dword [esi + 0x2c], 0x2000
xor eax, eax
pop ebp
pop ebx
pop edi
pop esi
pop ecx
pop ecx
ret
Function at 0x43ba55
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
mov eax, ecx
xor ebp, ebp
push edi
mov edi, edx
mov dword [esp + 0x10], eax
push 0x14
lea esi, [eax + 0x20]
push ebp
mov ebx, dword [edi + 4]
push esi
mov dword [eax + 4], 5
mov dword [esi], ebp
mov dword [eax + 0x3c], edi
mov dword [eax + 0x40], 0x42ec04
call fcn.0051c010
add esp, 0xc
lea eax, [esp + 0x14]
push ebp
push esi
push dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
push dword [esp + 0x30]
push ebp
push eax
push esi
push dword [esp + 0x38]
push dword [edi + 0x38]
call dword [sym.imp.WS2_32.dll_WSASendTo]
test eax, eax
jne 0x43bafc
test dword [edi + 0x2c], 0x20000
je 0x43bb11
mov edx, dword [esp + 0x10]
mov dword [edx + 0x34], ebp
mov ecx, dword [edi + 0x40]
inc dword [edi + 0x3c]
mov eax, dword [edx + 0x34]
add dword [edi + 0x30], eax
inc dword [edi + 0x34]
lea eax, [ecx + 1]
mov dword [edi + 0x40], eax
test ecx, ecx
jne 0x43baf0
mov eax, dword [edi + 0x2c]
test al, 4
jne 0x43baf0
or eax, 4
mov dword [edi + 0x2c], eax
test al, 8
je 0x43baf0
mov eax, dword [edi + 4]
inc dword [eax + 4]
inc dword [ebx + 0x10]
mov ecx, ebx
call fcn.0043b558
jmp 0x43bb5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x43bb11
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x43bb5f
mov eax, ebp
test esi, esi
je 0x43bb23
mov ecx, dword [esp + 0x1c]
add ebp, dword [ecx + eax*8]
inc eax
cmp eax, esi
jb 0x43bb1b
mov edx, dword [esp + 0x10]
mov dword [edx + 0x34], ebp
mov ecx, dword [edi + 0x40]
inc dword [edi + 0x3c]
mov eax, dword [edx + 0x34]
add dword [edi + 0x30], eax
inc dword [edi + 0x34]
lea eax, [ecx + 1]
mov dword [edi + 0x40], eax
test ecx, ecx
jne 0x43bb5a
mov eax, dword [edi + 0x2c]
test al, 4
jne 0x43bb5a
or eax, 4
mov dword [edi + 0x2c], eax
test al, 8
je 0x43bb5a
mov eax, dword [edi + 4]
inc dword [eax + 4]
inc dword [ebx + 0x10]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x43bb66
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0xa0
mov eax, dword [0x5c9040]
xor eax, esp
mov dword [esp + 0x9c], eax
push ebx
push ebp
push esi
mov esi, edx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0xb0]
push edi
mov dword [esp + 0x18], ecx
mov ebx, dword [esi + 0x2c]
and ebx, 0xfffeffff
mov dword [esi + 0x2c], ebx
mov edi, dword [ecx + 0x20]
test edi, edi
jns 0x43bc29
mov ecx, edi
call fcn.0044aa17
mov ebp, eax
cmp ebp, 0x2738
je 0x43bc25
cmp ebp, 0x2746
je 0x43bc19
cmp ebp, 0x2744
je 0x43bc19
test ebx, 0x1000
je 0x43bd44
cmp dword [esi + 8], 0xf
jne 0x43bbe0
mov ecx, esi
call fcn.0043ba16
xor edi, edi
test dword [esi + 0x2c], 0x40000
je 0x43bbf1
mov eax, edi
mov ecx, edi
jmp 0x43bbfd
mov eax, dword [esi + 0x80]
mov ecx, dword [esi + 0x84]
mov dword [esp + 0x14], ecx
mov ecx, ebp
mov dword [esp + 0x10], eax
push edi
lea eax, [esp + 0x14]
push edi
push eax
call fcn.00449d08
push eax
jmp 0x43bd3a
test ebx, 0x40000
je 0x43bd44
mov ecx, dword [esp + 0x18]
test ebx, 0x40000
jne 0x43bc4e
sar edi, 0x1f
lea eax, [esi + 0x88]
and edi, 2
push edi
push eax
lea eax, [esi + 0x80]
push eax
push dword [ecx + 0x24]
jmp 0x43bd3a
test ebx, 0x1000
je 0x43bd44
lea eax, [esp + 0x10]
xor edi, edi
push eax
push 0x10000
push esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call dword [esi + 0x110]
add esp, 0xc
cmp dword [esp + 0x14], edi
je 0x43bd2e
cmp dword [esp + 0x10], edi
je 0x43bd2e
mov ebx, 0x80
lea eax, [esp + 0x28]
push ebx
push edi
push eax
call fcn.0051c010
add esp, 0xc
mov dword [esp + 0x20], ebx
lea eax, [esp + 0x20]
mov dword [esp + 0x24], edi
push edi
push edi
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x2c]
push eax
push 1
lea eax, [esp + 0x2c]
push eax
push dword [esi + 0x38]
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
cmp eax, 0xffffffff
je 0x43bce4
push edi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x24]
jmp 0x43bd3a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2738
jne 0x43bcf8
push 2
jmp 0x43bcd4
cmp ebx, 0x2733
jne 0x43bd0a
push edi
push edi
lea eax, [esp + 0x18]
push eax
push edi
jmp 0x43bd3a
cmp ebx, 0x2746
je 0x43bd00
cmp ebx, 0x2744
je 0x43bd00
cmp dword [esi + 8], 0xf
jne 0x43bd27
mov ecx, esi
call fcn.0043ba16
mov ecx, ebx
jmp 0x43bc07
push edi
push edi
lea eax, [esp + 0x18]
push eax
push 0xfffff024
push esi
call dword [esi + 0x10c]
add esp, 0x14
mov eax, dword [esi + 0x2c]
mov ebx, dword [esp + 0x1c]
and eax, 0x11000
cmp eax, 0x1000
jne 0x43bd60
mov edx, esi
mov ecx, ebx
call fcn.0043b8bd
mov ecx, dword [esi + 0x3c]
mov eax, dword [esi + 0x2c]
dec ecx
mov dword [esi + 0x3c], ecx
test al, 1
je 0x43bd85
test ecx, ecx
jne 0x43bd85
test al, 0x20
jne 0x43bd85
or eax, 0x20
mov dword [esi + 0x2c], eax
mov eax, dword [ebx + 0x2c]
mov dword [esi + 0x28], eax
mov dword [ebx + 0x2c], esi
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051b034
add esp, 0xa0
ret