joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f6e00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5df9e8
mov eax, dword fs:[0]
push eax
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esi], ecx
lea ecx, [esi + 8]
mov dword [esi + 4], edx
push 0xffffffffffffffff
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], 0xf
push eax
mov byte [ecx + 4], al
lea eax, [esp + 0x1c]
push eax
call fcn.0040b390
cmp dword [esp + 0x2c], 0x10
jb 0x4f6e64
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0059b877
add esp, 4
mov eax, esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 0x24

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

Disassembly:
push 0xffffffffffffffff
push 0x5df938
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ecx, edi
sub ecx, ebx
sar ecx, 3
lea eax, [ecx + 1]
cdq
sub eax, edx
sar eax, 1
xor esi, esi
mov dword [esp + 0x18], eax
lea eax, [esp + 0xc]
mov dword [esp + 8], esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], esi
mov edx, dword [esp + 0x34]
sub esp, 0x14
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x4c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x50]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x54]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x58]
mov dword [eax + 0x10], edx
lea eax, [esp + 0x1c]
push eax
push ecx
push edi
push ebx
call fcn.004fa8d0
mov eax, dword [esp + 0x30]
add esp, 0x24
cmp eax, esi
je 0x4f870d
push eax
call fcn.0059b877
add esp, 4
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x28
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x5ea1f8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x28]
sub esp, 0x10
test esi, esi
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x30]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 8], edx
lea ecx, [edi + 8]
mov dword [esp + 0x18], esp
mov dword [eax + 0xc], esi
je 0x4f9d11
lea eax, [esi + 4]
mov edx, 1
lock xadd dword [eax], edx
call fcn.004fecb0
neg al
mov dword [esp + 0x14], 0xffffffff
sbb eax, eax
and eax, 0x618ba0
test esi, esi
mov dword [edi], eax
je 0x4f9d57
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4f9d57
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4f9d57
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x10
Function at 0x4fa020
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5ea1f8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x28]
sub esp, 0x10
test esi, esi
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x30]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 8], edx
lea ecx, [edi + 8]
mov dword [esp + 0x18], esp
mov dword [eax + 0xc], esi
je 0x4fa081
lea eax, [esi + 4]
mov edx, 1
lock xadd dword [eax], edx
call fcn.004fecb0
neg al
mov dword [esp + 0x14], 0xffffffff
sbb eax, eax
and eax, 0x618bb8
test esi, esi
mov dword [edi], eax
je 0x4fa0c7
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4fa0c7
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4fa0c7
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x10

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

Disassembly:
push 0xffffffffffffffff
push 0x5dd228
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
sub esp, 0x10
test esi, esi
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x30]
mov dword [eax + 4], edx
lea ecx, [edi + 8]
mov dword [esp + 0x18], esp
mov dword [eax + 8], esi
je 0x4fa4ba
lea eax, [esi + 4]
mov edx, 1
lock xadd dword [eax], edx
call fcn.004fed70
neg al
mov dword [esp + 0x14], 0xffffffff
sbb eax, eax
and eax, 0x618bc0
test esi, esi
mov dword [edi], eax
je 0x4fa4f8
lea eax, [esi + 4]
mov ecx, eax
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4fa4f8
test eax, eax
je 0x4fa4f8
lea ecx, [eax - 4]
test ecx, ecx
je 0x4fa4f8
mov eax, dword [ecx]
mov edx, dword [eax + 8]
push 1
call edx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x10
Function at 0x4fa510
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5dd228
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
sub esp, 0x10
test esi, esi
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x30]
mov dword [eax + 4], edx
lea ecx, [edi + 8]
mov dword [esp + 0x18], esp
mov dword [eax + 8], esi
je 0x4fa56a
lea eax, [esi + 4]
mov edx, 1
lock xadd dword [eax], edx
call fcn.004fed70
neg al
mov dword [esp + 0x14], 0xffffffff
sbb eax, eax
and eax, 0x618bc8
test esi, esi
mov dword [edi], eax
je 0x4fa5a8
lea eax, [esi + 4]
mov ecx, eax
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4fa5a8
test eax, eax
je 0x4fa5a8
lea ecx, [eax - 4]
test ecx, ecx
je 0x4fa5a8
mov eax, dword [ecx]
mov edx, dword [eax + 8]
push 1
call edx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x10
Function at 0x500610
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x5ea198
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
lea esi, [ebp + ebp + 2]
cmp esi, edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x2c], ebp
jge 0x5006c9
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*8]
mov ebx, dword [edi + eax + 4]
cmp ebx, dword [edx + eax - 0x24]
ja 0x50067b
jb 0x500678
mov edi, dword [edi + eax]
cmp edi, dword [edx + eax - 0x28]
jae 0x50067b
sub esi, 1
lea edx, [esi + esi*4]
lea edi, [ecx + edx*8]
lea eax, [ebp + ebp*4]
lea ebp, [ecx + eax*8]
mov ecx, dword [edi]
mov dword [ebp], ecx
mov edx, dword [edi + 4]
lea eax, [ebp + 8]
lea ebx, [edi + 8]
push eax
mov dword [ebp + 4], edx
call fcn.00410140
mov ecx, dword [edi + 0x18]
mov dword [ebp + 0x18], ecx
mov edx, dword [edi + 0x1c]
mov dword [ebp + 0x1c], edx
mov eax, dword [edi + 0x20]
mov dword [ebp + 0x20], eax
mov ecx, dword [edi + 0x24]
mov dword [ebp + 0x24], ecx
mov ebp, esi
lea esi, [esi + esi + 2]
cmp esi, dword [esp + 0x30]
jl 0x500651
mov edi, dword [esp + 0x30]
cmp esi, edi
jne 0x50070f
mov eax, dword [esp + 0x28]
lea edx, [edi + edi*4]
lea esi, [eax + edx*8 - 0x28]
mov edx, dword [esi]
lea ecx, [ebp + ebp*4]
lea ebp, [eax + ecx*8]
mov dword [ebp], edx
mov eax, dword [esi + 4]
lea ecx, [ebp + 8]
lea ebx, [esi + 8]
push ecx
mov dword [ebp + 4], eax
call fcn.00410140
mov edx, dword [esi + 0x18]
mov dword [ebp + 0x18], edx
mov eax, dword [esi + 0x1c]
mov dword [ebp + 0x1c], eax
mov ecx, dword [esi + 0x20]
mov dword [ebp + 0x20], ecx
mov edx, dword [esi + 0x24]
mov dword [ebp + 0x24], edx
lea ebp, [edi - 1]
mov eax, dword [esp + 0x48]
sub esp, 0x28
mov esi, esp
mov dword [esi], eax
mov ecx, dword [esp + 0x74]
lea edi, [esi + 8]
lea ebx, [esp + 0x78]
mov dword [esp + 0x58], esp
mov dword [esi + 4], ecx
call fcn.00410090
mov edx, dword [esp + 0x88]
mov dword [esi + 0x18], edx
mov eax, dword [esp + 0x8c]
mov dword [esi + 0x1c], eax
mov ecx, dword [esp + 0x90]
mov dword [esi + 0x20], ecx
mov edx, dword [esp + 0x94]
mov ecx, dword [esp + 0x5c]
sub esp, 0x14
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x78]
mov dword [esi + 0x24], edx
mov edx, dword [esp + 0x74]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x7c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x80]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x68]
mov dword [eax + 0x10], ecx
mov eax, dword [esp + 0x64]
push edx
push eax
mov ecx, ebp
call fcn.00501450
mov eax, dword [esp + 0x98]
add esp, 0x44
test eax, eax
mov dword [esp + 0x4c], 0
je 0x5007b3
push eax
call fcn.0059b877
add esp, 4
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x502250
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5df7e8
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x28]
push eax
push ecx
mov ecx, dword [esp + 0x2c]
sub esp, 0xc
test esi, esi
mov eax, esp
mov dword [eax], ecx
mov dword [esp + 0x44], esp
mov dword [eax + 4], esi
je 0x5022aa
lea ecx, [esi + 4]
mov edi, 1
lock xadd dword [ecx], edi
mov ecx, dword [esp + 0x40]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
push ecx
mov ecx, dword [edx + 4]
mov edx, dword [edx]
add ecx, eax
call edx
test esi, esi
mov dword [esp + 0x14], 0xffffffff
je 0x5022fb
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x5022fb
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x5022fb
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 0x1c
Function at 0x508670
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
mov eax, dword [0x64c874]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push ebp
mov ebp, dword [esp + 0x78]
push esi
mov esi, ecx
movzx eax, word [esi + 0x10]
push edi
mov edi, dword [esp + 0x84]
cmp eax, edi
mov dword [esp + 0x10], esi
je 0x508884
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x2e8]
cmp byte [edx + 0xbc], 0
je 0x50882f
lea eax, [esp + 0x3c]
mov ecx, esi
call fcn.004d02e0
mov ecx, edi
mov edi, eax
lea esi, [esp + 0x58]
call fcn.004a8fa0
mov eax, esi
push eax
lea esi, [esp + 0x40]
call fcn.004a90b0
mov ecx, esi
push ecx
lea ebx, [esp + 0x28]
mov esi, ebp
call fcn.00506880
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
lea edx, [esp + 0x58]
push edx
mov edx, dword [esp + 0x2c]
sub esp, 0xc
mov eax, esp
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax], 0
mov dword [eax + 4], ebx
sub esp, 0xc
mov eax, esp
lea esi, [esp + 0x34]
mov dword [eax], 0
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
call fcn.0050a2d0
mov edi, dword [esp + 0x38]
add esp, 0x1c
test edi, edi
je 0x508736
cmp edi, ebx
je 0x50873b
call fcn.005b8b18
mov ecx, dword [esp + 0x20]
cmp ecx, dword [esp + 0x38]
je 0x50882b
mov esi, ecx
mov ebx, ecx
shr esi, 2
and ebx, 3
test edi, edi
jne 0x508760
call fcn.005b8b18
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 0x10]
add edx, dword [edi + 0xc]
cmp ecx, edx
jb 0x508773
call fcn.005b8b18
mov ecx, dword [esp + 0x20]
mov eax, dword [edi + 8]
cmp eax, esi
ja 0x50877c
sub esi, eax
mov eax, dword [edi + 4]
mov edx, dword [eax + esi*4]
mov esi, dword [edx + ebx*4]
cmp dword [esi + 8], 0
je 0x508814
movzx eax, byte [ebp + 0x28]
and eax, 0xffffff01
push eax
push ebp
call fcn.00507860
or byte [esi + 0x1c], 1
or dword [esi + 0x20], 0x2000
test al, al
jne 0x5087c7
movzx ecx, byte [ebp + 0x28]
and ecx, 0xffffff01
push ecx
push ebp
call fcn.00507860
test al, al
je 0x5087c7
add dword [ebp + 0x20], 1
mov edi, dword [esp + 0x10]
mov edx, dword [edi + 8]
xor ebx, ebx
mov dword [edx + 0x31c], ebx
push 0x4f
lea esi, [esp + 0x14]
mov dword [ebp + 0x18], edi
call fcn.004b2660
mov ecx, dword [edi + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
push ebx
mov edx, esi
push edx
call eax
push ebp
mov eax, edi
mov dword [ebp + 0x18], ebx
call fcn.00507170
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.005b88a9
add esp, 0x6c
ret 8
sub esp, 0xc
mov eax, esp
push ebp
mov dword [eax], 0
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
call fcn.00507230
mov esi, dword [esp + 0x10]
movzx ecx, byte [ebp + 0x28]
and ecx, 0xffffff01
push ecx
push ebp
call fcn.00507860
mov dx, word [esp + 0x84]
or dword [esi + 0x20], 0x2000
or byte [esi + 0x1c], 1
mov bl, al
mov word [esi + 0x10], dx
movzx eax, byte [ebp + 0x28]
and eax, 0xffffff01
push eax
push ebp
call fcn.00507860
cmp bl, al
je 0x508884
xor ecx, ecx
test bl, bl
sete cl
lea ecx, [ecx + ecx - 1]
add dword [ebp + 0x20], ecx
jns 0x508884
mov dword [ebp + 0x20], 0
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov al, 1
call fcn.005b88a9
add esp, 0x6c
ret 8
Function at 0x50f6d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5f5040
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0xbb0]
cmp eax, 2
je 0x50f718
cmp eax, 3
je 0x50f718
cmp eax, 1
jne 0x50f8d9
lea edi, [esi + 0xa90]
xor ebp, ebp
cmp dword [edi], ebp
jne 0x50f8d9
push 0x108
call fcn.0059b847
add esp, 4
cmp eax, ebp
je 0x50f748
lea ecx, [esi + 0x374]
mov dword [eax], ecx
mov dword [eax + 4], ebp
mov ebx, eax
jmp 0x50f74a
xor ebx, ebx
push ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], ebx
call fcn.004f7fe0
push ebx
lea edx, [esp + 0x18]
push ebx
push edx
call fcn.00489120
add esp, 0xc
lea eax, [esp + 0x14]
mov dword [esp + 0x78], ebp
call fcn.00517c20
mov dword [esp + 0x78], 0xffffffff
mov ebx, dword [esp + 0x18]
cmp ebx, ebp
je 0x50f7ae
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x50f7ae
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x50f7ae
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
mov eax, dword [edi]
push ebp
push ebp
lea ecx, [esi + 0xb58]
call fcn.00566c90
mov eax, dword [edi]
add esp, 8
cmp dword [eax + 4], 2
jne 0x50f7cb
lea ebp, [eax + 8]
mov eax, 2
mov dword [ebp + 0xf8], eax
cmp word [esi + 0xa30], ax
movzx eax, word [esi + 0xa32]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
test ax, ax
mov word [esi + 0xa98], ax
jne 0x50f815
call fcn.00505460
xor edx, edx
mov ecx, 0xea60
div ecx
add edx, 0x7d0
mov word [esi + 0xa98], dx
xor eax, eax
sub esp, 8
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov eax, dword [edi]
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [edi + 4]
xor ebx, ebx
test eax, eax
mov edx, 0x510bc0
mov dword [esp + 0x1c], esp
mov dword [ecx + 4], eax
je 0x50f85d
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
push ebx
push edx
movzx edx, byte [0x65af6f]
push edx
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0051aa90
add esp, 0x1c
mov ebx, eax
mov dword [esp + 0x78], 1
movzx ecx, word [esi + 0xa98]
lea edi, [esp + 0x34]
lea esi, [esp + 0x50]
call fcn.004a8fa0
push ebp
mov ecx, ebx
mov edx, esi
call fcn.0051abc0
mov dword [esp + 0x78], 0xffffffff
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x50f8d9
mov esi, eax
add eax, 4
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x50f8d9
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x50f8d9
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50f970
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5f5040
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0xa9c]
xor ebp, ebp
cmp eax, ebp
je 0x50fb71
cmp dword [eax + 4], 0xffffffff
je 0x50fb71
cmp dword [ebx + 0xb48], ebp
je 0x50fb71
cmp dword [ebx + 0xb50], ebp
lea edi, [ebx + 0xb50]
jne 0x50fb71
push 0x108
call fcn.0059b847
add esp, 4
cmp eax, ebp
je 0x50f9f7
lea ecx, [ebx + 0x374]
mov dword [eax], ecx
mov dword [eax + 4], ebp
mov esi, eax
jmp 0x50f9f9
xor esi, esi
push esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], esi
call fcn.004f7fe0
push esi
lea edx, [esp + 0x18]
push esi
push edx
call fcn.00489120
add esp, 0xc
lea eax, [esp + 0x14]
mov dword [esp + 0x78], ebp
call fcn.00517c20
mov dword [esp + 0x78], 0xffffffff
mov esi, dword [esp + 0x18]
cmp esi, ebp
je 0x50fa5d
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x50fa5d
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x50fa5d
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov eax, dword [edi]
push ebp
push ebp
lea ecx, [ebx + 0xaa4]
call fcn.00566c90
mov eax, dword [edi]
add esp, 8
cmp dword [eax + 4], 5
jne 0x50fa7a
lea ebp, [eax + 8]
mov dword [ebp + 0xa4], 3
cmp dword [ebx + 0xb38], 0x10
jb 0x50fa95
mov eax, dword [ebx + 0xb24]
jmp 0x50fa9b
lea eax, [ebx + 0xb24]
mov dword [ebp + 0xa0], eax
xor eax, eax
sub esp, 8
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov eax, dword [edi]
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [edi + 4]
xor esi, esi
test eax, eax
mov edx, 0x50fb90
mov dword [esp + 0x1c], esp
mov dword [ecx + 4], eax
je 0x50fae9
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
push esi
push edx
movzx edx, byte [0x65af6f]
push edx
lea eax, [esp + 0x30]
push ebx
push eax
call fcn.0051aa90
add esp, 0x1c
mov dword [esp + 0x14], eax
mov dword [esp + 0x78], 1
movzx eax, word [ebx + 0xa32]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
lea edi, [esp + 0x34]
lea esi, [esp + 0x50]
call fcn.004a8fa0
mov ecx, dword [esp + 0x14]
push ebp
call fcn.0051af00
mov dword [esp + 0x78], 0xffffffff
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x50fb71
mov esi, eax
add eax, 4
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x50fb71
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x50fb71
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x519280
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5ed06b
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov edi, dword [eax + 4]
push 0x51f0d0
lea ebx, [esp + 0x1c]
mov dword [esp + 0x1c], 0x654900
mov dword [esp + 0x20], 0
call fcn.004a3b70
mov dword [ebp], eax
lea esi, [ebp + 4]
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov ecx, 2
mov dword [esi + 0x20], ecx
mov byte [esi + 0x24], al
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov word [esi + 0x28], cx
mov word [esi + 0x2a], ax
mov dword [esi + 0x2c], eax
mov dword [esp + 0x28], eax
mov ecx, dword [ebp]
add ecx, 0x14
push ecx
call fcn.004a7790
mov eax, ebp
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8

Function at 0x51da00
Capabilities:
Set socket configuration

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, dword [eax]
cmp edi, 0xffffffff
jne 0x51da15
mov edi, 0x2719
jmp 0x51da48
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esp + 0x14]
push 4
push ecx
push 4
push 0xffff
push edi
call sub.WS2_32.dll_setsockopt
mov edi, eax
call fcn.005d95d0
mov ebx, eax
call sub.WS2_32.dll_WSAGetLastError
test edi, edi
mov dword [esi], eax
mov dword [esi + 4], ebx
jne 0x51da52
call fcn.005d95d0
mov dword [esi + 4], eax
mov dword [esi], edi
mov eax, dword [esi + 4]
mov edx, dword [esi]
mov dword [ebp + 4], eax
pop edi
mov dword [ebp], edx
mov eax, ebp
pop ebp
pop ebx
ret 8

Function at 0x51da70
Capabilities:
Set socket configuration

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, dword [eax]
cmp edi, 0xffffffff
jne 0x51da85
mov edi, 0x2719
jmp 0x51dab5
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esp + 0x14]
push 4
push ecx
push 0x1b
push 0x29
push edi
call sub.WS2_32.dll_setsockopt
mov edi, eax
call fcn.005d95d0
mov ebx, eax
call sub.WS2_32.dll_WSAGetLastError
test edi, edi
mov dword [esi], eax
mov dword [esi + 4], ebx
jne 0x51dabf
call fcn.005d95d0
mov dword [esi + 4], eax
mov dword [esi], edi
mov eax, dword [esi + 4]
mov edx, dword [esi]
mov dword [ebp + 4], eax
pop edi
mov dword [ebp], edx
mov eax, ebp
pop ebp
pop ebx
ret 8
Function at 0x51dae0
Capabilities:
Set socket configuration

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, dword [eax]
cmp edi, 0xffffffff
jne 0x51daf5
mov edi, 0x2719
jmp 0x51db25
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esp + 0x14]
push 4
push ecx
push 0x17
push 0x29
push edi
call sub.WS2_32.dll_setsockopt
mov edi, eax
call fcn.005d95d0
mov ebx, eax
call sub.WS2_32.dll_WSAGetLastError
test edi, edi
mov dword [esi], eax
mov dword [esi + 4], ebx
jne 0x51db2f
call fcn.005d95d0
mov dword [esi + 4], eax
mov dword [esi], edi
mov eax, dword [esi + 4]
mov edx, dword [esi]
mov dword [ebp + 4], eax
pop edi
mov dword [ebp], edx
mov eax, ebp
pop ebp
pop ebx
ret 8

Function at 0x51db50
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5e20f8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x18], 0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x30]
sub esp, 0x18
test esi, esi
mov eax, esp
mov dword [edi], 0
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x44]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [esp + 0x24], esp
mov dword [eax + 0x10], esi
je 0x51dbbe
lea eax, [esi + 4]
mov ecx, 1
lock xadd dword [eax], ecx
call fcn.0051ffd0
test esi, esi
mov dword [esp + 0x18], 0xffffffff
je 0x51dbf9
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x51dbf9
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x51dbf9
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0x18