joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d8e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
push esi
push edi
push 0xadedab08
call fcn.00419900
mov edi, dword [ebp + 8]
xor ecx, ecx
push 0x36
push ecx
lea edx, [ebp - 0x4a]
mov esi, eax
push edx
mov dword [edi + 0xa14], esi
mov dword [ebp - 0x54], 0x410050
mov dword [ebp - 0x50], 0x480054
mov word [ebp - 0x4c], cx
call fcn.0041a150
xor edx, edx
add esp, 0x10
mov dword [ebp - 0x14], 0x690046
mov dword [ebp - 0x10], 0x650072
mov dword [ebp - 0xc], 0x6f0066
mov dword [ebp - 8], 0x5c0078
mov word [ebp - 4], dx
test esi, esi
jne 0x40d951
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 4]
xor eax, esi
push 0x1000
push edi
mov dword [edi + 0xa14], eax
call fcn.0041a280
push 0x7374
push edi
mov dword [edi + 0xa04], eax
call fcn.0041a280
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d949
cmp dword [edi + 0xa04], 0
je 0x40d949
push ebx
push 0x3f
lea ecx, [ebp - 0x93]
push 0
push ecx
mov byte [ebp - 0x94], 0
call fcn.0041a150
lea edx, [ebp - 0x94]
push 0
push edx
call fcn.0041ad30
lea ecx, [ebp - 0x94]
lea eax, [edi + 0x1c]
push ecx
push eax
lea ebx, [esi + 0xc]
call fcn.00409b50
mov edx, dword [esi]
push edx
push ebx
push edi
mov dword [ebx], eax
call fcn.00416a30
add esp, 0x28
cmp dword [esi + 0x10], 0
je 0x40db02
cmp dword [esi + 0x14], 0
je 0x40db02
cmp dword [esi + 0x18], 0
je 0x40db02
cmp dword [esi + 0x1c], 0
je 0x40db02
cmp dword [esi + 0x20], 0
je 0x40db02
cmp dword [esi + 0x24], 0
je 0x40db02
cmp dword [esi + 0x28], 0
je 0x40db02
cmp dword [esi + 0x2c], 0
je 0x40db02
cmp dword [esi + 0x30], 0
je 0x40db02
cmp dword [esi + 0x34], 0
je 0x40db02
push 0x3f
lea eax, [ebp - 0xd3]
push 0
push eax
mov byte [ebp - 0xd4], 0
call fcn.0041a150
lea ecx, [ebp - 0xd4]
push 6
push ecx
call fcn.0041ad30
lea edx, [ebp - 0xd4]
push edx
lea ebx, [edi + 0x1c]
push ebx
call fcn.00409b50
add esp, 0x1c
test eax, eax
je 0x40db02
push 0x2430512b
push 0
push 0
push eax
push ebx
call fcn.00413e60
add esp, 0x14
mov dword [esi + 0x44], eax
test eax, eax
je 0x40db02
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40da9c
mov dword [esi + 4], eax
jmp 0x40daa3
mov dword [esi + 4], 0x20
push 8
lea eax, [ebp - 0x54]
push eax
lea ecx, [esi + 0x48]
push ecx
mov dword [esi], 0x32
call fcn.0041a0d0
lea ebx, [edi + 0x4060]
push ebx
call fcn.0041a3c0
add eax, eax
push eax
lea edx, [edi + 0x8f0]
push ebx
push edx
call fcn.0041a0d0
push esi
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.0040e750
push esi
push edi
call fcn.0041a0b0
mov ecx, dword [edi + 0xa04]
push ecx
push edi
call fcn.0041a0b0
add esp, 0x38
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x414d50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push esi
inc edx
nop
nop
nop
dec edx
mov ebx, dword [edx - 0x57569918]
movsb byte es:[edi], byte [esi]
xor byte [esi], al
call 0x29a13ee7
test ah, bl
inc ecx
sti
loop 0x414da6
dec eax
out 0x40, eax
retf
mov eax, 0xe9f5943c
push eax
or dl, byte [edi + 0x6a9d0085]
in eax, 0x5c
invalid
and byte [0x5da75ed7], al
xlatb
pop esi
cmpsd dword [esi], dword es:[edi]
pop ebp
loop 0x414da8
xor al, 3
push esi
push 0x52
jmp 0x414dbf
or bl, al
ror byte [esi - 6], 0x76
xchg edx, eax
jbe 0x414d82
lahf
invalid

Function at 0x415860
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x19], eax
mov byte [ebp - 0x15], al
push 0xf
lea eax, [ebp - 0x14]
push eax
push edi
mov dword [ebp - 4], 0x104
mov dword [ebp - 0x24], 0x6d6c7275
mov dword [ebp - 0x20], 0x642e6e6f
mov word [ebp - 0x1c], 0x6c6c
mov byte [ebp - 0x1a], 0
mov dword [ebp - 0x14], 0x73550a0d
mov dword [ebp - 0x10], 0x412d7265
mov dword [ebp - 0xc], 0x746e6567
mov dword [ebp - 8], 0x203a
call fcn.0041a0d0
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x24]
push ecx
add esi, 0xc94
push esi
call fcn.00409b50
push 0x69767207
push 0
push 0
push eax
push esi
call fcn.00413e60
mov esi, eax
add esp, 0x28
test esi, esi
je 0x415909
lea edx, [ebp - 4]
push edx
push edi
call fcn.0041a3a0
add esp, 4
add eax, edi
push eax
push 0
call esi
test eax, eax
jne 0x415909
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x416f40
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
push edi
push 0xff
lea eax, [ebp - 0x11f]
push 0
push eax
mov byte [ebp - 0x120], 0
call fcn.0041a150
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov al, 0x6f
mov byte [ebp - 0xc], al
mov eax, dword [ecx + 0x7d8]
add eax, 0x2000
add esp, 0xc
cmp dword [edi + 0x950], 0
mov dword [ebp - 4], 0x544547
mov dword [ebp - 0x18], 0x646e6957
mov dword [ebp - 0x14], 0x2073776f
mov dword [ebp - 0x10], 0x6c707845
mov dword [ebp - 0xb], 0x726572
mov dword [ebp + 8], eax
jne 0x416fc8
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x18]
push edx
push edi
call fcn.00418c10
add esp, 0x18
mov dword [edi + 0x950], eax
mov esi, dword [edi + 0x950]
test esi, esi
je 0x417117
mov eax, dword [ebp + 0x10]
add eax, 4
push eax
lea ecx, [ebp - 0x120]
push ecx
call fcn.00416ec0
mov edx, dword [ebp + 0x18]
push 1
push 0
push 3
push 0
push 0
push 0x50
push edx
push esi
push edi
call fcn.00418c80
mov esi, eax
add esp, 0x2c
mov dword [ebp - 0x20], esi
test esi, esi
je 0x417117
push ebx
push 1
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 4]
push ecx
push esi
push edi
call fcn.00418d00
mov ebx, eax
add esp, 0x24
test ebx, ebx
jne 0x417047
push esi
push edi
call fcn.00418e60
add esp, 8
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push ebx
push edi
call fcn.00418d80
add esp, 0x18
test eax, eax
jle 0x417105
mov ecx, dword [ebp + 0x1c]
mov esi, dword [ebp + 8]
test ecx, ecx
je 0x41711d
lea eax, [esi + 0x956c]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x50], 1
add esi, 0x24
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [esi], 0
test ecx, ecx
je 0x4170af
lea ecx, [eax + 0x2ff97c]
push 0x14
push ecx
add eax, 0x8d2c
push eax
call fcn.0041a0d0
add esp, 0xc
mov eax, dword [esi]
lea edx, [ebp + 8]
push edx
mov ecx, 0x1f4000
sub ecx, eax
add eax, dword [ebp + 0xc]
push ecx
push eax
push ebx
push edi
call fcn.00418df0
add esp, 0x14
test eax, eax
je 0x4170f9
nop
mov eax, dword [ebp + 8]
test eax, eax
je 0x4170f9
add dword [esi], eax
mov eax, dword [esi]
lea ecx, [ebp + 8]
push ecx
mov edx, 0x1f4000
sub edx, eax
add eax, dword [ebp + 0xc]
push edx
push eax
push ebx
push edi
call fcn.00418df0
add esp, 0x14
test eax, eax
jne 0x4170d0
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
mov dword [edx], 1
push ebx
push edi
call fcn.00418e60
push esi
push edi
call fcn.00418e60
add esp, 0x10
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
lea edx, [esi + 0x380d6c]
mov dword [ebp + 0xc], edx
lea edx, [eax + 0x6c]
add esi, 0x68
mov dword [ebp - 0x1c], edx
jmp 0x41708e
Function at 0x417140
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
xor eax, eax
push esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov byte [ebp - 8], al
mov dword [ebp - 7], eax
mov word [ebp - 3], ax
mov byte [ebp - 1], al
push edi
mov al, 0x6f
mov byte [ebp - 0x20], al
xor eax, eax
push 0x7f
push eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov word [ebp - 0xf], ax
mov byte [ebp - 0xd], al
mov byte [ebp - 0xc0], al
lea eax, [ebp - 0xbf]
push eax
mov dword [ebp - 0x38], 0x2a2f2a
mov dword [ebp - 0xc], 0x54534f50
mov dword [ebp - 0x2c], 0x646e6957
mov dword [ebp - 0x28], 0x2073776f
mov dword [ebp - 0x24], 0x6c707845
mov dword [ebp - 0x1f], 0x726572
call fcn.0041a150
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + 0x7d8]
add esp, 0xc
cmp dword [esi + 0x950], 0
jne 0x4171f1
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x2c]
push edx
push esi
call fcn.00418c10
add esp, 0x18
mov dword [esi + 0x950], eax
test eax, eax
je 0x417300
mov eax, dword [ebp + 0x10]
cmp byte [eax], 0
je 0x417219
lea esp, [esp]
cmp dword [eax], 0xa0d0a0d
je 0x417210
inc eax
cmp byte [eax], 0
jne 0x417200
jmp 0x417219
mov dword [eax], 0
add eax, 4
push ebx
mov dword [ebp + 8], eax
push 0x2f
lea eax, [edi + 0x3019dc]
push eax
lea ecx, [ebp - 0xc0]
push ecx
call fcn.0041a0d0
mov eax, dword [ebp + 0x18]
mov ecx, dword [esi + 0x950]
push 1
push 0
push 3
push 0
push 0
push 0x50
push eax
push ecx
lea edx, [ebp - 0x38]
push esi
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], 0
call fcn.00418c80
mov ebx, eax
add esp, 0x30
test ebx, ebx
je 0x4172ff
push 1
push 0
lea edx, [ebp - 0x40]
push edx
push 0
push 0
lea eax, [edi + 0x30199c]
push eax
lea ecx, [ebp - 0xc]
push ecx
push ebx
push esi
call fcn.00418d00
add esp, 0x24
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x4172a2
push ebx
push esi
call fcn.00418e60
add esp, 8
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
push edx
call fcn.0041a3a0
add esp, 4
push eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xc0]
push ecx
call fcn.0041a3a0
add esp, 4
push eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0xc0]
push edx
push eax
push esi
call fcn.00418d80
add esp, 0x18
test eax, eax
jle 0x4172eb
cmp dword [ebp + 0x1c], 0
je 0x4172eb
mov dword [edi + 0x2050], 1
mov ecx, dword [ebp + 0xc]
push ecx
push esi
call fcn.00418e60
push ebx
push esi
call fcn.00418e60
add esp, 0x10
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x418c10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x14]
push esi
lea ecx, [ebp - 0x10]
push ecx
push edx
lea esi, [eax + 0x954]
push esi
push eax
mov dword [ebp - 0x10], 0x65746e49
mov dword [ebp - 0xc], 0x74656e72
mov dword [ebp - 8], 0x6e65704f
mov word [ebp - 4], 0x41
call fcn.004192a0
mov esi, dword [esi]
add esp, 0x10
test esi, esi
je 0x418c6e
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push eax
push ecx
call esi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x418c80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x14]
push esi
lea ecx, [ebp - 0x14]
push ecx
push edx
lea esi, [eax + 0x958]
push esi
push eax
mov dword [ebp - 0x14], 0x65746e49
mov dword [ebp - 0x10], 0x74656e72
mov dword [ebp - 0xc], 0x6e6e6f43
mov dword [ebp - 8], 0x41746365
mov byte [ebp - 4], 0
call fcn.004192a0
mov esi, dword [esi]
add esp, 0x10
test esi, esi
je 0x418cef
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x1c]
push ecx
mov ecx, dword [ebp + 0x18]
push edx
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push eax
push ecx
call esi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x418d00
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x14]
push esi
lea ecx, [ebp - 0x14]
push ecx
push edx
lea esi, [eax + 0x95c]
push esi
push eax
mov dword [ebp - 0x14], 0x70747448
mov dword [ebp - 0x10], 0x6e65704f
mov dword [ebp - 0xc], 0x75716552
mov dword [ebp - 8], 0x41747365
mov byte [ebp - 4], 0
call fcn.004192a0
mov esi, dword [esi]
add esp, 0x10
test esi, esi
je 0x418d6f
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x1c]
push ecx
mov ecx, dword [ebp + 0x18]
push edx
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push eax
push ecx
call esi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x418d80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x14]
push esi
lea ecx, [ebp - 0x14]
push ecx
push edx
lea esi, [eax + 0x960]
push esi
push eax
mov dword [ebp - 0x14], 0x70747448
mov dword [ebp - 0x10], 0x646e6553
mov dword [ebp - 0xc], 0x75716552
mov dword [ebp - 8], 0x41747365
mov byte [ebp - 4], 0
call fcn.004192a0
mov esi, dword [esi]
add esp, 0x10
test esi, esi
je 0x418de3
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push eax
push ecx
call esi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x418df0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x14]
push esi
lea ecx, [ebp - 0x14]
push ecx
push edx
lea esi, [eax + 0x964]
push esi
push eax
mov dword [ebp - 0x14], 0x65746e49
mov dword [ebp - 0x10], 0x74656e72
mov dword [ebp - 0xc], 0x64616552
mov dword [ebp - 8], 0x656c6946
mov byte [ebp - 4], 0
call fcn.004192a0
mov esi, dword [esi]
add esp, 0x10
test esi, esi
je 0x418e4f
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push ecx
push edx
push eax
call esi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x418e60
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x14]
push esi
lea ecx, [ebp - 0x14]
push ecx
push edx
lea esi, [eax + 0x968]
push esi
push eax
mov dword [ebp - 0x14], 0x65746e49
mov dword [ebp - 0x10], 0x74656e72
mov dword [ebp - 0xc], 0x736f6c43
mov dword [ebp - 8], 0x6e614865
mov dword [ebp - 4], 0x656c64
call fcn.004192a0
mov esi, dword [esi]
add esp, 0x10
test esi, esi
je 0x418eb6
mov eax, dword [ebp + 0xc]
push eax
call esi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4196a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 4]
test edi, edi
je 0x419706
cmp dword [esi + 0x18], 0
je 0x419721
lea ecx, [ecx]
mov edx, dword [esi + 0x30]
push edi
push edx
call fcn.0041b050
add esp, 8
test eax, eax
jne 0x4196fe
mov esi, dword [esi]
cmp dword [esi + 0x18], eax
jne 0x4196e0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x419721
mov eax, dword [esi + 0x18]
test eax, eax
je 0x419721
cmp eax, ecx
je 0x4196fe
mov esi, dword [esi]
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x419714
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409680
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40969b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4096d2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4096ce
jmp 0x4096c0
cmp esi, eax
jae 0x4096d2
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4096c0
cmp esi, eax
jb 0x4096d9
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x409d00
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x6bd8f4]
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 0x409d55
mov eax, dword [esp]
cmp al, 2
jne 0x409d4f
shr eax, 8
cmp al, 2
jne 0x409d4f
call fcn.0040a6b0
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.005d7d2e
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.005d7d2e
add esp, 0x194
ret
Function at 0x417af0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x417b22
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x417c80
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x1a8]
test ecx, ecx
je 0x417c9b
mov edx, dword [esi + 0x134]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x417ccf
cmp eax, 2
jg 0x417ccf
mov ecx, dword [esi + 0x130]
push ecx
push 1
lea edx, [eax + eax*2 + 0x638258]
push 2
push edx
call fcn.005d8b92
mov eax, dword [esi + 0x130]
push eax
push 1
push edi
push ebx
call fcn.005d8b92
add esp, 0x20
xor eax, eax
ret

Function at 0x418260
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
mov ebx, dword [eax + ecx*4 + 0x190]
mov edx, ecx
shl edx, 4
push esi
lea esi, [edx + eax + 0x1b8]
mov edx, dword [eax + 0x440]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [edx + 0x3c], 3
je 0x41830f
cmp dword [eax + ecx*4 + 0x1a8], 0x417ff0
jne 0x41830f
cmp dword [esi], 0
je 0x4182a2
test edi, edi
je 0x41830f
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.0040a9a0
add esp, 0x14
cmp eax, 0xffffffff
je 0x41830f
test al, 1
je 0x41830f
cmp dword [esi], 0
jne 0x4182ed
push 0x8000
mov dword [esi + 4], 0x8000
call dword [section..data]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x418308
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x41830f
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
ret
mov dword [esi + 4], 0
pop edi
pop esi
pop ebx
ret

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

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esi + ecx*4 + 0x190]
mov eax, esi
call fcn.00418260
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push 0
push eax
push ecx
push edi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x4183a4
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x41837b
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.0041e070
mov edx, dword [esi]
push eax
push str.Send_failure:__s
push edx
call fcn.00417e60
mov eax, dword [esi]
mov dword [eax + 0x473c], ebp
add esp, 0x14
mov dword [ebx], 0x37
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x41a290
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
xor eax, eax
cmp dword [esi + 0x538], eax
push 4
lea ecx, [esp + 4]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x41a2ce
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.00417dd0
add esp, 0xc
add esp, 0x14
ret
mov edx, dword [esi + 0x53c]
push edx
mov dword [esp + 0xc], 1
call fcn.0041baf0
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x540]
push eax
call fcn.0041baf0
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0xc
lea edx, [esp + 0x20]
push edx
push 0x98000004
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x41a347
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.00417dd0
add esp, 0x10
add esp, 0x14
ret
Function at 0x41a980
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x6bd8f4]
xor eax, esp
mov dword [esp + 0x108], eax
push ebp
mov ebp, dword [esp + 0x114]
cmp dword [ebp + 0x8c], 2
push edi
mov edi, dword [ebp]
mov dword [esp + 0xc], edi
je 0x41ab02
cmp dword [ebp + 0x3a0], 0
push ebx
push esi
jne 0x41aaf7
cmp dword [ebp + 0x410], 0
jne 0x41aaf7
mov esi, dword [esp + 0x124]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x9c]
push ecx
mov ebx, 0x80
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x41aa19
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.0041e070
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.00417e60
add esp, 0x18
jmp 0x41ab00
push ebx
lea edx, [esp + 0x1c]
push 0
push edx
mov dword [esp + 0x1c], ebx
call fcn.005da010
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x41aa66
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.0041e070
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.00417e60
add esp, 0x18
jmp 0x41ab00
lea edi, [ebp + 0x102]
lea ebx, [ebp + 0x130]
lea esi, [esp + 0x98]
call fcn.0041a940
test eax, eax
jne 0x41aaa7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.0041e070
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.00417e60
add esp, 0x18
jmp 0x41ab00
lea edi, [ebp + 0x58]
mov ecx, 0xb
lea esi, [ebp + 0x102]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ebx, [ebp + 0x164]
lea edi, [ebp + 0x134]
lea esi, [esp + 0x18]
call fcn.0041a940
test eax, eax
jne 0x41aaf7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.0041e070
push eax
mov eax, dword [esp + 0x20]
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.00417e60
add esp, 0x18
jmp 0x41ab00
push ebp
call fcn.0041a8c0
add esp, 4
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
pop edi
pop ebp
xor ecx, esp
call fcn.005d7d2e
add esp, 0x10c
ret

Function at 0x41ab20
Capabilities:
Set socket configuration

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, dword [edi]
push 4
lea eax, [esp + 0x10]
push eax
push 1
push 6
push ecx
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x41ab69
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0041e070
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00417dd0
add esp, 0x14
pop edi
pop esi
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00417dd0
add esp, 8
pop edi
pop esi
ret
Function at 0x41acc0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x1d8], 0
je 0x41acdd
push eax
call fcn.0040c1c0
add esp, 4
test eax, eax
jne 0x41acfd
xor eax, eax
ret
mov eax, dword [eax + 0x190]
cmp eax, 0xffffffff
je 0x41acda
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x41acfd
ret
mov eax, 1
ret