joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47a7b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov ecx, 0x80
lea eax, [edi*8]
cmp eax, 0x400
cmova edi, ecx
cmp edi, dword [esi]
jne 0x47a7dc
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x534348]
test eax, eax
je 0x47a7e7
call eax
push ebx
lea eax, [edi*8]
push 0
push eax
call fcn.00494ca0
mov ecx, dword [0x53434c]
add esp, 8
mov ebx, eax
mov dword [ebp - 4], ebx
test ecx, ecx
je 0x47a80b
call ecx
test ebx, ebx
jne 0x47a818
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push dword [esi + 0xc]
call fcn.004584c0
push ebx
mov dword [esi + 0xc], ebx
call dword [0x531ba4]
shr eax, 3
mov dword [ebp + 0xc], eax
lea ecx, [eax*8]
push ecx
push 0
push ebx
mov dword [esi], eax
call fcn.0041f040
mov ecx, dword [esi + 8]
add esp, 0x14
mov dword [esi + 8], 0
test ecx, ecx
je 0x47a8f2
mov edi, dword [ecx + 0xc]
xor ebx, ebx
mov al, byte [edi]
test al, al
je 0x47a881
movzx eax, al
lea edx, [ebx*8]
movzx esi, byte [eax + 0x5125f0]
mov al, byte [edi + 1]
lea edi, [edi + 1]
xor esi, edx
xor ebx, esi
test al, al
jne 0x47a862
xor edx, edx
mov eax, ebx
div dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov edi, dword [ecx]
lea esi, [eax + edx*8]
test esi, esi
je 0x47a8cc
mov eax, dword [esi]
test eax, eax
je 0x47a89f
mov edx, dword [esi + 4]
jmp 0x47a8a1
xor edx, edx
inc eax
mov dword [esi], eax
mov dword [esi + 4], ecx
test edx, edx
je 0x47a8cc
mov dword [ecx], edx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 4]
test eax, eax
je 0x47a8c1
mov dword [eax], ecx
mov dword [edx + 4], ecx
jmp 0x47a8e8
mov eax, dword [ebp + 8]
mov dword [eax + 8], ecx
mov dword [edx + 4], ecx
jmp 0x47a8e8
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
mov dword [ecx], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x47a8de
mov dword [eax + 4], ecx
mov dword [ecx + 4], 0
mov dword [esi + 8], ecx
mov ecx, edi
test edi, edi
jne 0x47a857
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x484c30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x52f8b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [edi]
add ecx, ecx
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x20], edi
mov ebx, dword [eax + ecx*8]
mov eax, 1
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], eax
lea ecx, [ecx]
push eax
push str.sqlite_stat_d
lea eax, [ebp - 0x1c]
push eax
push 0x18
call fcn.00457fe0
mov eax, dword [edi]
xor edi, edi
add esp, 0x10
mov dword [ebp - 0x24], 0
cmp dword [eax + 0x14], edi
jle 0x484d93
mov edx, dword [ebp - 0x20]
jmp 0x484ca0
mov ecx, edi
cmp edi, 2
jge 0x484caf
xor ecx, 1
mov dword [ebp - 0x30], ecx
jmp 0x484cb2
mov dword [ebp - 0x30], edi
test ebx, ebx
je 0x484d56
mov esi, dword [ebp - 0x20]
mov edx, ecx
mov ecx, dword [esi]
add edx, edx
mov ecx, dword [ecx + 0x10]
mov eax, ebx
mov edx, dword [ecx + edx*8]
mov bl, byte [ebx]
movzx ecx, bl
movzx esi, byte [ecx + 0x5125f0]
movzx ecx, byte [edx]
movzx ecx, byte [ecx + 0x5125f0]
sub esi, ecx
jne 0x484d15
sub edx, dword [ebp - 0x28]
mov dword [ebp - 0x34], edx
jmp 0x484cf0
test bl, bl
je 0x484d4c
movzx ecx, byte [edx + eax + 1]
mov bl, byte [eax + 1]
movzx edx, byte [ecx + 0x5125f0]
inc eax
movzx ecx, bl
movzx esi, byte [ecx + 0x5125f0]
sub esi, edx
mov edx, dword [ebp - 0x34]
je 0x484cf0
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x28]
mov ecx, dword [edx]
inc edi
cmp edi, dword [ecx + 0x14]
jl 0x484ca0
test eax, eax
je 0x484d8f
push dword [ebp - 0x38]
mov edi, dword [ebp - 0x20]
push dword [ebp - 0x3c]
lea eax, [ebp - 0x1c]
push eax
push ebx
push str.DELETE_FROM__Q._s_WHERE__s_Q
push edi
call fcn.00495450
add esp, 0x18
jmp 0x484d96
test esi, esi
jne 0x484d15
mov ebx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x30]
mov eax, dword [eax + 0x10]
add ecx, ecx
mov eax, dword [eax + ecx*8 + 0xc]
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x1c]
add eax, 8
push ecx
push eax
call fcn.0046bf40
add esp, 0xc
test eax, eax
je 0x484d88
mov eax, dword [eax + 8]
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x484d2e
jmp 0x484d18
xor eax, eax
mov dword [ebp - 0x24], eax
jmp 0x484d18
mov edi, edx
jmp 0x484d96
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, 4
jle 0x484c70
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041a77c
mov esp, ebp
pop ebp
ret
Function at 0x48d5a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ebp + 8]
xor eax, eax
push edi
xor edi, edi
mov dword [ebp - 4], eax
cmp dword [edx + 0x14], eax
jle 0x48d626
push ebx
push esi
mov ecx, edi
cmp edi, 2
jge 0x48d5c2
xor ecx, 1
mov eax, dword [edx + 0x10]
add ecx, ecx
mov edx, dword [eax + ecx*8 + 0xc]
mov dword [ebp - 8], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x48d62f
mov ebx, dword [eax + ecx*8]
mov al, byte [edx]
movzx ecx, byte [ebx]
mov esi, edx
movzx edx, byte [ecx + 0x5125f0]
movzx ecx, al
movzx ecx, byte [ecx + 0x5125f0]
sub ecx, edx
jne 0x48d618
sub ebx, esi
test al, al
je 0x48d62b
movzx ecx, byte [ebx + esi + 1]
mov al, byte [esi + 1]
movzx edx, byte [ecx + 0x5125f0]
inc esi
movzx ecx, al
movzx ecx, byte [ecx + 0x5125f0]
sub ecx, edx
je 0x48d5f6
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
inc edi
cmp edi, dword [edx + 0x14]
jl 0x48d5b8
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
test ecx, ecx
jne 0x48d618
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push dword [ebp + 0xc]
add eax, 0x18
push eax
call fcn.0046bf40
add esp, 0xc
test eax, eax
je 0x48d655
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
test eax, eax
jne 0x48d624
jmp 0x48d61b
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x48d61b

Function at 0x48d660
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push edi
xor edi, edi
mov dword [ebp - 4], eax
cmp dword [ebx + 0x14], eax
jle 0x48d6f2
push esi
mov ecx, edi
cmp edi, 2
jge 0x48d687
xor ecx, 1
mov dword [ebp - 8], ecx
jmp 0x48d68a
mov dword [ebp - 8], edi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x48d6fc
mov edx, ecx
mov ecx, dword [ebx + 0x10]
mov bl, byte [esi]
add edx, edx
mov eax, esi
mov edx, dword [ecx + edx*8]
movzx ecx, bl
movzx esi, byte [ecx + 0x5125f0]
movzx ecx, byte [edx]
movzx ecx, byte [ecx + 0x5125f0]
sub esi, ecx
jne 0x48d6e5
sub edx, eax
mov dword [ebp - 0xc], edx
lea esp, [esp]
test bl, bl
je 0x48d6f8
movzx ecx, byte [edx + eax + 1]
mov bl, byte [eax + 1]
movzx edx, byte [ecx + 0x5125f0]
inc eax
movzx ecx, bl
movzx esi, byte [ecx + 0x5125f0]
sub esi, edx
mov edx, dword [ebp - 0xc]
je 0x48d6c0
mov eax, dword [ebp - 4]
mov ebx, dword [ebp + 8]
inc edi
cmp edi, dword [ebx + 0x14]
jl 0x48d678
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x48d6e5
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov eax, dword [eax + 0x10]
add ecx, ecx
mov eax, dword [eax + ecx*8 + 0xc]
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp + 0xc]
add eax, 8
push eax
call fcn.0046bf40
add esp, 0xc
test eax, eax
je 0x48d72e
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
test eax, eax
jne 0x48d6f1
jmp 0x48d6e8
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x48d6e8
Function at 0x491a10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
inc eax
cdq
push edi
push edx
push eax
push dword [ebp + 8]
call fcn.004878a0
mov edi, eax
dec ebx
add esp, 0xc
mov dword [ebp + 0x10], ebx
test edi, edi
je 0x491aa3
push esi
xor esi, esi
test ebx, ebx
jle 0x491a95
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp - 4], eax
jmp 0x491a50
movsx ebx, byte [eax + esi]
movsx edx, byte [eax + esi - 1]
mov ecx, ebx
sar ecx, 6
and cl, 1
mov al, cl
shl al, 3
sub al, cl
mov ecx, edx
sub bl, al
sar ecx, 6
and cl, 1
mov al, cl
shl al, 3
sub al, cl
sub dl, al
mov eax, dword [ebp - 4]
mov ecx, esi
and bl, 0xf
shl dl, 4
shr ecx, 1
xor bl, dl
add esi, 2
mov byte [ecx + edi], bl
cmp esi, dword [ebp + 0x10]
jl 0x491a50
mov eax, esi
cdq
sub eax, edx
sar eax, 1
pop esi
mov byte [eax + edi], 0
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a1340
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [edi], 0
cmp dword [0x531b70], 0
je 0x4a1392
mov eax, dword [0x534328]
test eax, eax
je 0x4a136a
push eax
call dword [0x531bc8]
add esp, 4
lea eax, [ebp + 8]
push eax
push 0x14
call fcn.00472560
mov eax, dword [0x534328]
add esp, 8
test eax, eax
je 0x4a138d
push eax
call dword [0x531bd0]
mov esi, dword [ebp + 8]
jmp 0x4a139c
mov esi, dword [ebp + 8]
jmp 0x4a139f
push 0x14
call dword [0x531b98]
mov esi, eax
add esp, 4
test esi, esi
jne 0x4a13aa
pop edi
lea eax, [esi + 7]
pop esi
pop ebp
ret
cmp dword [0x531b74], 0
push ebx
mov ebx, dword [ebp + 0x10]
je 0x4a13f5
mov eax, dword [0x531c78]
test eax, eax
je 0x4a13ce
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x4a13f5
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x4a1490
push 0
push 0
mov dword [esi + 0xc], ebx
call fcn.004c5cbb
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x4a1408
xorps xmm0, xmm0
movq qword [esi], xmm0
movq qword [esi + 8], xmm0
mov dword [esi + 0x10], 0
cmp dword [esi + 8], 0
jne 0x4a1421
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebx
mov dword [esi + 4], eax
call dword [ebp + 0xc]
add esp, 4
mov dword [esi + 0x10], eax
pop ebx
mov dword [edi], esi
pop edi
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4ac6f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x28
push esi
mov esi, dword [eax + 0x14]
push esi
call fcn.0046ff40
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
add esp, 4
mov ecx, edx
add ecx, 0xffffffff
adc eax, 0xffffffff
test eax, eax
ja 0x4ac7bf
jb 0x4ac72a
cmp ecx, 0x7ffffffe
ja 0x4ac7bf
xor eax, eax
mov word [ebp - 0x20], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0
movsx eax, byte [esi + 0x44]
push edi
mov eax, dword [esi + eax*4 + 0x78]
mov edi, dword [esi + 0x18]
mov ecx, dword [eax + 0x3c]
movzx eax, word [esi + 0x20]
sub ecx, edi
cmp eax, ecx
cmovb ecx, eax
cmp edx, ecx
ja 0x4ac76c
mov eax, 0x1010
mov dword [ebp - 0x18], edi
mov word [ebp - 0x20], ax
mov dword [ebp - 0x1c], edx
jmp 0x4ac788
lea eax, [ebp - 0x28]
push eax
push 1
push edx
push 0
push esi
call fcn.004b8850
add esp, 0x14
test eax, eax
jne 0x4ac7b9
mov edi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
push 0
push dword [ebp + 0x10]
push edi
push edx
call fcn.004ae5e0
mov ecx, dword [ebp + 0x14]
add esp, 0x10
test dword [ebp - 0x20], 0x2460
mov dword [ecx], eax
jne 0x4ac7ab
cmp dword [ebp - 0x10], 0
je 0x4ac7b7
lea eax, [ebp - 0x28]
push eax
call fcn.004b8790
add esp, 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
push 0x5199d8
push 0x12267
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
mov dword [eax], 0
call fcn.0045aac0
add esp, 0x14
mov eax, 0xb
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4b5cf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xor eax, eax
mov cl, byte [esi]
test cl, cl
je 0x4b5d1e
nop
movzx ecx, cl
lea esi, [esi + 1]
movzx edx, byte [ecx + 0x5125f0]
lea ecx, [eax*8]
xor edx, ecx
mov cl, byte [esi]
xor eax, edx
test cl, cl
jne 0x4b5d00
pop esi
pop ebp
ret
Function at 0x4c8980
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x4c89ac
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4c899d
pop edi
xor eax, eax
pop esi
pop ebp
ret
push dword [eax + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call ecx
jmp 0x4c89e0
cmp dword [esi + 8], 0
jne 0x4c89d0
push 0x50a3c0
push dword [eax + 8]
call fcn.0042172b
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x4c89d0
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push dword [esi + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.0041eb69
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4c8a02
mov eax, dword [esi + 8]
test eax, eax
je 0x4c89fc
push eax
call fcn.0041d267
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x4c8e10
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x52f8b0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4c8e63
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x4c8e5d
shr eax, 8
cmp al, 2
jne 0x4c8e5d
call fcn.004cf240
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a77c
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 2
call fcn.0041a77c
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ecx + eax*4 + 0x154]
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [ebp + 0x18]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x4c9e4e
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x4c9e1e
pop esi
pop edi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
pop ebp
ret
push esi
push dword [ebp + 8]
call fcn.004dba00
push eax
mov eax, dword [ebp + 8]
push str.Send_failure:__s
push dword [eax]
call fcn.004c9ac0
mov eax, dword [ebp + 8]
add esp, 0x14
mov eax, dword [eax]
mov dword [eax + 0x85fc], esi
mov dword [ebx], 0x37
mov eax, edi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4ca030
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x1a8]
test eax, eax
je 0x4ca059
push dword [esi + 0x134]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x14
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x4ca08f
push dword [esi + 0x130]
lea eax, [eax + eax*2]
push 1
add eax, 0x51a09c
push 2
push eax
call fcn.0041d17d
push dword [esi + 0x130]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0041d17d
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4d7790
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x5c0]
test esi, esi
je 0x4d77da
mov eax, dword [edi + 0x44]
test eax, eax
je 0x4d77da
push 0x4d8510
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 8], esi
mov dword [ebp - 4], 0
push dword [eax + 0x34]
call fcn.004e2b50
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x4d77e3
mov dword [edi + 0x5c0], 0
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4d77ec
mov dword [eax], esi
cmp dword [esi + 0x17c], 0
mov edi, dword [esi + 0x154]
je 0x4d7811
push esi
call fcn.00405b80
add esp, 4
test eax, eax
jne 0x4d7824
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x4d77da
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4d7bf0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x52f8b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5346cc]
mov dword [ebp - 0x124], 0x4020
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x12c], 4
test eax, eax
jne 0x4d7c9a
push 0x11c
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.0041f040
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
push 3
push 2
push 0
push 0
mov dword [ebp - 0x11c], 6
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push 2
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x4d7c8e
mov dword [0x5346cc], 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a77c
mov esp, ebp
pop ebp
ret
mov dword [0x5346cc], 1
jmp 0x4d7c9f
cmp eax, 2
je 0x4d7cee
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x128]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4d7cd2
mov eax, dword [ebp - 0x128]
cmp eax, dword [ebp - 0x124]
jg 0x4d7cee
push 4
lea eax, [ebp - 0x124]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a77c
mov esp, ebp
pop ebp
ret
Function at 0x4d7e90
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x52f8b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
cmp dword [ebx + 0x8c], 2
mov edi, dword [ebx]
mov dword [ebp - 0x10c], edi
je 0x4d8031
cmp dword [ebx + 0x250], 0
push esi
jne 0x4d8027
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x84]
push eax
push esi
mov dword [ebp - 0x108], 0x80
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4d7f21
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.004dba00
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.004c9ac0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a77c
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
push eax
push esi
mov dword [ebp - 0x108], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4d7f74
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.004dba00
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.004c9ac0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a77c
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 0xe8]
push eax
lea esi, [ebx + 0xb8]
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.004d8530
add esp, 0xc
test eax, eax
jne 0x4d7fc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
call fcn.004dba00
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push edi
call fcn.004c9ac0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a77c
mov esp, ebp
pop ebp
ret
lea edi, [ebx + 0x58]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x11c]
push eax
lea eax, [ebx + 0xec]
push eax
lea eax, [ebp - 0x104]
push eax
movsw word es:[edi], word [esi]
call fcn.004d8530
add esp, 0xc
test eax, eax
jne 0x4d8027
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
call fcn.004dba00
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x10c]
call fcn.004c9ac0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a77c
mov esp, ebp
pop ebp
ret
push ebx
call fcn.004d7b90
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0041a77c
mov esp, ebp
pop ebp
ret
Function at 0x4d8850
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x52f8b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
cmp dword [esi + 0x464], eax
push edi
mov edi, dword [ebp + 0xc]
setne al
push 4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4d88ad
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.004c9b60
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a77c
mov esp, ebp
pop ebp
ret
push dword [esi + 0x468]
mov dword [ebp - 0x10], 1
call fcn.004e2860
imul eax, eax, 0x3e8
push dword [esi + 0x46c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.004e2860
imul eax, eax, 0x3e8
add esp, 8
mov dword [ebp - 0x14], eax
push 0
push 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x4d891d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.004c9b60
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041a77c
mov esp, ebp
pop ebp
ret

Function at 0x4d8930
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push 4
mov esi, dword [edi]
mov eax, dword [esi + 0x35c]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 1
push 6
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4d897a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004dba00
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004c9b60
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004c9b60
add esp, 8
pop edi
pop esi
pop ebp
ret

Function at 0x4da310
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov cl, byte [ebp + 8]
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x4da321
jmp dword [eax*4 + 0x4da394]
mov al, 0x41
pop ebp
ret
mov al, 0x42
pop ebp
ret
mov al, 0x43
pop ebp
ret
mov al, 0x44
pop ebp
ret
mov al, 0x45
pop ebp
ret
mov al, 0x46
pop ebp
ret
mov al, 0x47
pop ebp
ret
mov al, 0x48
pop ebp
ret
mov al, 0x49
pop ebp
ret
mov al, 0x4a
pop ebp
ret
mov al, 0x4b
pop ebp
ret
mov al, 0x4c
pop ebp
ret
mov al, 0x4d
pop ebp
ret
mov al, 0x4e
pop ebp
ret
mov al, 0x4f
pop ebp
ret
mov al, 0x50
pop ebp
ret
mov al, 0x51
pop ebp
ret
mov al, 0x52
pop ebp
ret
mov al, 0x53
pop ebp
ret
mov al, 0x54
pop ebp
ret
mov al, 0x55
pop ebp
ret
mov al, 0x56
pop ebp
ret
mov al, 0x57
pop ebp
ret
mov al, 0x58
pop ebp
ret
mov al, 0x59
pop ebp
ret
mov al, 0x5a
pop ebp
ret
mov al, cl
pop ebp
ret