joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a380
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49db86
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4d0070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00466738
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00463f33
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40cde0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e678
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4d0070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x13
push str._passive__norestart
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00403330
push 0x38
lea eax, [ebp - 0x64]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0047f310
add esp, 0xc
mov dword [ebp - 0x68], 0x3c
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x64], 0x40
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], str.open
jb 0x40ce69
mov eax, dword [esi]
jmp 0x40ce6b
mov eax, esi
cmp dword [ebp - 0x14], 0x10
mov edx, str.Executing:
mov dword [ebp - 0x58], eax
mov ecx, 0x4e8a30
lea eax, [ebp - 0x28]
mov dword [ebp - 0x50], 0
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x4c], 0xa
mov dword [ebp - 0x48], 0
call fcn.00403d20
mov edx, esi
mov ecx, eax
call fcn.00403fd0
mov edx, 0x4b82f8
mov ecx, eax
call fcn.00403d20
lea edx, [ebp - 0x28]
mov ecx, eax
call fcn.00403fd0
push eax
call fcn.00404240
add esp, 4
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x40cefc
mov edx, str.Failed_to_execute
mov ecx, 0x4e8b10
call fcn.00403d20
mov edx, esi
mov ecx, eax
call fcn.00403fd0
push eax
call fcn.00404240
add esp, 4
or esi, 0xffffffff
jmp 0x40cf5a
push 0xffffffffffffffff
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x40cf35
mov edx, str.Failed_to_get_vcredist_exit_code
mov ecx, 0x4e8b10
call fcn.00403d20
push eax
call fcn.00404240
add esp, 4
or esi, 0xffffffff
jmp 0x40cf5a
push dword [ebp - 0x2c]
mov edx, str.vcredist_exit_code:
mov ecx, 0x4e8a30
call fcn.00403d20
mov ecx, eax
call fcn.0040d980
push eax
call fcn.00404240
mov esi, dword [ebp - 0x2c]
add esp, 4
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x40cf71
push 1
inc ecx
push ecx
push dword [ebp - 0x28]
call fcn.004022a0
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004664cd
mov esp, ebp
pop ebp
ret

Function at 0x4102e0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push dword [0x4e9f20]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [esp + 8]
test eax, eax
je 0x41031f
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x41031f
mov eax, dword [ecx]
test eax, eax
je 0x41031f
mov dword [ecx], 0
mov dl, byte [eax]
movzx ecx, dl
cmp ecx, ebx
jb 0x410316
mov byte [eax + ebx], dl
pop ebx
ret
push eax
call fcn.004669d3
add esp, 4
lea eax, [ebx + 1]
push eax
call fcn.00466738
add esp, 4
mov ecx, eax
cmp ebx, 0xff
ja 0x41033f
movzx eax, bl
mov byte [ecx + ebx], al
mov eax, ecx
pop ebx
ret
xor eax, eax
mov byte [ecx + ebx], al
mov eax, ecx
pop ebx
ret
Function at 0x414fe0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f911
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x4d0070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [0x4e9f20]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41502b
nop dword [eax]
cmp dword [eax], esi
je 0x415062
mov eax, dword [eax + 8]
test eax, eax
jne 0x415020
mov edi, dword [ebp + 8]
push edi
push 0x50
mov dword [ebp - 0x1c], edi
call fcn.004102e0
add esp, 8
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 1
mov dword [ebp + 8], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x41509b
push edi
mov ecx, eax
call fcn.004156e0
jmp 0x41509d
cmp dword [eax + 4], 0
je 0x41502b
push ecx
lea ecx, [ebp - 0xd]
call fcn.004129a0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
push eax
call fcn.00415de0
add esp, 8
xchg dword [ebp + 8], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
push ecx
push eax
mov ecx, esi
call fcn.004103a0
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4150c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f951
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x4d0070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [0x4e9f20]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41510b
nop dword [eax]
cmp dword [eax], esi
je 0x415142
mov eax, dword [eax + 8]
test eax, eax
jne 0x415100
mov edi, dword [ebp + 8]
push edi
push 0x70
mov dword [ebp - 0x1c], edi
call fcn.004102e0
add esp, 8
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 1
mov dword [ebp + 8], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x41517b
push edi
mov ecx, eax
call fcn.00415640
jmp 0x41517d
cmp dword [eax + 4], 0
je 0x41510b
push ecx
lea ecx, [ebp - 0xd]
call fcn.004129a0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
push eax
call fcn.00415df0
add esp, 8
xchg dword [ebp + 8], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
push ecx
push eax
mov ecx, esi
call fcn.004103a0
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4151a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f991
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x4d0070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [0x4e9f20]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4151eb
nop dword [eax]
cmp dword [eax], esi
je 0x415222
mov eax, dword [eax + 8]
test eax, eax
jne 0x4151e0
mov edi, dword [ebp + 8]
push edi
push 0x50
mov dword [ebp - 0x1c], edi
call fcn.004102e0
add esp, 8
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 1
mov dword [ebp + 8], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x41525b
push edi
mov ecx, eax
call fcn.004155a0
jmp 0x41525d
cmp dword [eax + 4], 0
je 0x4151eb
push ecx
lea ecx, [ebp - 0xd]
call fcn.004129a0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
push eax
call fcn.00415e40
add esp, 8
xchg dword [ebp + 8], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
push ecx
push eax
mov ecx, esi
call fcn.004103a0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
call fcn.00415980
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x415290
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f9d1
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x4d0070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [0x4e9f20]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4152db
nop dword [eax]
cmp dword [eax], esi
je 0x415312
mov eax, dword [eax + 8]
test eax, eax
jne 0x4152d0
mov edi, dword [ebp + 8]
push edi
push 0x68
mov dword [ebp - 0x1c], edi
call fcn.004102e0
add esp, 8
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 1
mov dword [ebp + 8], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x41534b
push edi
mov ecx, eax
call fcn.00415530
jmp 0x41534d
cmp dword [eax + 4], 0
je 0x4152db
push ecx
lea ecx, [ebp - 0xd]
call fcn.004129a0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
push eax
call fcn.00415e50
add esp, 8
xchg dword [ebp + 8], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
push ecx
push eax
mov ecx, esi
call fcn.004103a0
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x415370
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49fa11
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x4d0070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [0x4e9f20]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4153bb
nop dword [eax]
cmp dword [eax], esi
je 0x4153f2
mov eax, dword [eax + 8]
test eax, eax
jne 0x4153b0
mov edi, dword [ebp + 8]
push edi
push 0x68
mov dword [ebp - 0x1c], edi
call fcn.004102e0
add esp, 8
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 1
mov dword [ebp + 8], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x41542b
push edi
mov ecx, eax
call fcn.00415490
jmp 0x41542d
cmp dword [eax + 4], 0
je 0x4153bb
push ecx
lea ecx, [ebp - 0xd]
call fcn.004129a0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
push eax
call fcn.00415e60
add esp, 8
xchg dword [ebp + 8], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
push ecx
push eax
mov ecx, esi
call fcn.004103a0
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x416320
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
push 0
push 0
push 1
mov esi, ecx
push 0
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ebx, dword [ebp + 8]
mov edi, eax
mov dword [ebx + 4], edi
test edi, edi
jne 0x416375
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
mov dword [esp + 0x18], esi
call fcn.004051f0
mov dword [esp + 0x1c], eax
test esi, esi
jne 0x41643c
mov esi, dword [esp + 0x10]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 8], eax
mov dword [ebx + 8], eax
cmp dword [esi + 8], 0
jne 0x4163b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
mov dword [esp + 0x18], esi
call fcn.004051f0
mov dword [esp + 0x1c], eax
test esi, esi
jne 0x41644a
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0
push ebx
push 0x416470
push dword [ebp + 0xc]
push 0
call fcn.004854d9
add esp, 0x18
mov dword [esi + 4], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x416423
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov dword [esp + 0x1c], eax
call dword [edx]
test edi, edi
je 0x416400
push edi
call esi
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 8]
test eax, eax
je 0x41640e
push eax
call esi
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x18], ebx
call fcn.004051f0
mov dword [esp + 0x1c], eax
test ebx, ebx
jne 0x416458
test edi, edi
je 0x416433
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, str.thread.entry_event
lea ecx, [esp + 0x18]
call fcn.00405160
mov edx, str.thread.exit_event
lea ecx, [esp + 0x18]
call fcn.00405160
mov edx, str.thread
lea ecx, [esp + 0x18]
call fcn.00405160
int3

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

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
add eax, 0x18
lock inc dword [eax]
cmp byte [esp + 0x20], 0
push 0
je 0x41926b
mov ecx, dword [edi + 4]
push 0
push dword [esp + 0x2c]
call fcn.00419140
pop edi
pop esi
pop ebx
ret 0x18
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x41928d
mov ecx, dword [edi + 4]
push 0x2719
push dword [esp + 0x2c]
call fcn.00419140
pop edi
pop esi
pop ebx
ret 0x18
mov ebx, dword [esp + 0x28]
lea ecx, [esp + 0x24]
push ebx
push dword [esp + 0x24]
mov dword [esp + 0x2c], 0
push ecx
push dword [esp + 0x28]
push dword [esp + 0x28]
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
je 0x4192e6
cmp eax, 0x3e5
je 0x4192e6
push dword [esp + 0x20]
mov ecx, dword [edi + 4]
push eax
push ebx
call fcn.00419140
pop edi
pop esi
pop ebx
ret 0x18
mov ecx, dword [edi + 4]
push ebx
call fcn.004190d0
pop edi
pop esi
pop ebx
ret 0x18
Function at 0x419300
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
add eax, 0x18
lock inc dword [eax]
cmp byte [ebp + 0x18], 0
push 0
je 0x419335
mov ecx, dword [esi + 4]
push 0
push dword [ebp + 0x1c]
call fcn.00419140
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x419358
mov ecx, dword [esi + 4]
push 0x2719
push dword [ebp + 0x1c]
call fcn.00419140
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov edi, dword [ebp + 0x1c]
lea ecx, [esp + 0x18]
push edi
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push ecx
push dword [ebp + 0x10]
mov dword [esp + 0x28], 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x419397
mov eax, 0x2746
jmp 0x4193a4
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test ebx, ebx
je 0x4193c6
cmp eax, 0x3e5
je 0x4193c6
push dword [esp + 0x10]
mov ecx, dword [esi + 4]
push eax
push edi
call fcn.00419140
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [esi + 4]
push edi
call fcn.004190d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x41e7c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0d6e
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push esi
push edi
mov eax, dword [0x4d0070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 0x14]
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], 0
mov eax, dword [esi]
mov dword [ebp - 0x60], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x58], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x54], eax
lea eax, [esi + 0x10]
push eax
call fcn.0041e410
movzx eax, byte [esi + 0x30]
mov byte [ebp - 0x30], al
movzx eax, byte [esi + 0x38]
mov byte [ebp - 0x28], al
mov eax, dword [esi + 0x40]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x60]
mov dword [ebp - 4], 0
push eax
push ecx
push dword [ebp + 0xc]
lea ecx, [edi + 0x14]
push dword [ebp + 8]
call fcn.0041f040
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x41e865
test al, 1
jne 0x41e865
and eax, 0xfffffffe
mov eax, dword [eax]
test eax, eax
je 0x41e865
lea ecx, [ebp - 0x48]
push 2
push ecx
push ecx
call eax
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41f9f0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0988
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4d0070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edx, dword [ebp + 8]
lea ecx, [esi + 0x18]
mov eax, dword [edx]
mov dword [esi], eax
mov eax, dword [edx + 4]
mov dword [esi + 4], eax
mov eax, dword [edx + 8]
mov dword [esi + 8], eax
mov eax, dword [edx + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edx + 0x10]
mov dword [ebp + 8], ecx
mov dword [esi + 0x10], eax
mov eax, dword [edx + 0x18]
mov dword [ecx], eax
add ecx, 8
mov dword [ebp + 8], ecx
mov eax, dword [edx + 0x20]
mov dword [ecx], eax
mov eax, dword [edx + 0x24]
mov dword [ecx + 4], eax
mov eax, dword [edx + 0x28]
mov dword [ecx + 8], eax
mov dword [edx + 0x24], 0
mov dword [edx + 0x28], 0
add ecx, 0x10
mov dword [ebp - 4], 0
lea eax, [edx + 0x30]
mov dword [ebp - 0x10], ecx
push eax
mov dword [ecx], 0
call fcn.0041e410
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x41faa0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0fab
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4d0070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ebx, dword [ebp + 8]
lea edi, [ecx + 4]
mov dword [ebp + 8], edi
mov eax, dword [ebx]
lea esi, [ebx + 4]
mov dword [ecx], eax
mov ecx, edi
push esi
call fcn.0041e2c0
mov al, byte [esi + 0xc]
mov byte [edi + 0xc], al
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [edi]
mov dword [edi + 0x18], eax
mov eax, dword [esi + 0x1c]
mov dword [edi + 0x1c], eax
mov eax, dword [esi + 0x18]
sub eax, dword [esi]
and eax, 0xfffffff8
add dword [edi + 0x18], eax
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x10]
mov eax, dword [ebx + 0x24]
lea ecx, [esi + 0x30]
mov dword [ebp + 8], ecx
mov dword [esi + 0x24], eax
mov eax, dword [ebx + 0x28]
mov dword [esi + 0x28], eax
mov eax, dword [ebx + 0x30]
mov dword [ecx], eax
lea eax, [ebx + 0x38]
add ecx, 8
push eax
mov dword [ebp + 8], ecx
call fcn.0041dcf0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x421090
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov eax, ecx
xor ebx, ebx
mov dword [esp + 8], eax
mov ebp, edx
push esi
push edi
mov edi, dword [esp + 0x2c]
cmp eax, 0xffffffff
je 0x4211a1
cmp byte [esp + 0x28], bl
je 0x42110c
test byte [ebp], 8
je 0x42110c
xor eax, eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], eax
call fcn.00404d10
or byte [ebp], 8
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push 4
push eax
push 0x80
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
call fcn.004051f0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x42110e
lea ecx, [esp + 0x18]
call fcn.00404d10
jmp 0x42110e
mov ebx, eax
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call fcn.004051f0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
je 0x4211a1
call fcn.004051f0
cmp dword [edi + 4], eax
jne 0x421147
cmp dword [edi], 0x2733
je 0x421159
call fcn.004051f0
cmp dword [edi + 4], eax
jne 0x42119d
cmp dword [edi], 0x4d5
jne 0x42119d
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push 0x8004667e
push ebx
mov dword [esp + 0x20], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [ebp], 0xfc
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call fcn.004051f0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
jne 0x4211b4
lea ecx, [esp + 0x18]
call fcn.00404d10
mov ecx, dword [eax]
mov dword [edi], ecx
mov eax, dword [eax + 4]
mov dword [edi + 4], eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x14
ret

Function at 0x4211c0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
mov ebp, edx
push edi
cmp esi, 0xffffffff
jne 0x4211ec
call fcn.004051f0
mov ecx, dword [esp + 0x2c]
mov dword [ecx], 0x2719
mov dword [ecx + 4], eax
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 1
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov edi, eax
call fcn.004051f0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, dword [esp + 0x2c]
mov dword [ebx], eax
mov dword [ebx + 4], esi
test edi, edi
js 0x4211e2
lea ecx, [esp + 0x18]
call fcn.00404d10
pop edi
pop esi
mov ecx, dword [eax]
mov dword [ebx], ecx
mov eax, dword [eax + 4]
mov dword [ebx + 4], eax
mov al, 1
or byte [ebp], 2
pop ebp
pop ebx
add esp, 0x14
ret