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

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esi + 0x38]
mov ebx, ecx
mov ecx, dword [esp + 0x10]
push edi
mov edi, eax
lea eax, [ecx + ebp]
mov dword [edx], eax
cmp eax, 0x10
jae 0x1c006144
push ecx
lea eax, [esi + ebp + 0x28]
push ebx
push eax
call fcn.1c02b5c0
mov ecx, dword [esp + 0x20]
add dword [esi + 0x38], ecx
mov edx, dword [esp + 0x24]
add esp, 0xc
pop edi
pop ebp
mov dword [edx], 0
xor eax, eax
pop ebx
pop ecx
ret
cmp ebx, edi
jne 0x1c006152
pop edi
pop ebp
mov eax, 0x1001
pop ebx
pop ecx
ret
mov eax, 0x10
sub eax, ebp
push eax
mov dword [esp + 0x10], eax
lea eax, [esi + ebp + 0x28]
push ebx
push eax
call fcn.1c02b5c0
mov ecx, dword [esp + 0x20]
add ebx, dword [esp + 0x18]
lea edx, [ecx + ebp - 0x10]
lea ebp, [esi + 0x18]
push ebp
lea eax, [esi + 0x3c]
mov dword [esp + 0x24], edx
call fcn.1c003c30
mov eax, dword [esi + 0x28]
xor eax, dword [ebp]
add esp, 0x10
mov dword [edi], eax
mov ecx, dword [esi + 0x2c]
xor ecx, dword [esi + 0x1c]
add edi, 0x10
mov dword [edi - 0xc], ecx
mov edx, dword [esi + 0x30]
xor edx, dword [esi + 0x20]
mov dword [edi - 8], edx
mov eax, dword [esi + 0x34]
xor eax, dword [esi + 0x24]
mov dword [edi - 4], eax
mov eax, dword [esp + 0x14]
cmp eax, 0x10
jb 0x1c006204
shr eax, 4
mov dword [esp + 0xc], eax
mov edi, edi
push ebp
lea eax, [esi + 0x3c]
call fcn.1c003c30
mov ecx, dword [ebx]
xor ecx, dword [ebp]
sub dword [esp + 0x18], 0x10
mov dword [edi], ecx
mov edx, dword [ebx + 4]
xor edx, dword [esi + 0x1c]
add esp, 4
mov dword [edi + 4], edx
mov eax, dword [ebx + 8]
xor eax, dword [esi + 0x20]
add ebx, 0x10
mov dword [edi + 8], eax
mov ecx, dword [ebx - 4]
xor ecx, dword [esi + 0x24]
add edi, 0x10
sub dword [esp + 0xc], 1
mov dword [edi - 4], ecx
jne 0x1c0061c0
mov eax, dword [esp + 0x14]
push eax
lea eax, [esi + 0x28]
push ebx
push eax
call fcn.1c02b5c0
mov edx, dword [esi + 0x38]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
add esp, 0xc
and edx, 0xf0000000
add edx, eax
pop edi
mov dword [esi + 0x38], edx
sub dword [ecx], eax
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x1c006240
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push ebx
mov ebx, dword [esi + 0x38]
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov edi, eax
lea eax, [ebx + ecx]
mov dword [edx], eax
cmp eax, 0x10
jae 0x1c006286
push ecx
lea eax, [ebx + esi + 0x28]
push ebp
push eax
call fcn.1c02b5c0
mov ecx, dword [esp + 0x24]
add dword [esi + 0x38], ecx
mov edx, dword [esp + 0x28]
add esp, 0xc
pop edi
pop ebp
mov dword [edx], 0
xor eax, eax
pop ebx
pop ecx
ret
cmp ebp, edi
jne 0x1c006294
pop edi
pop ebp
mov eax, 0x1001
pop ebx
pop ecx
ret
mov eax, 0x10
sub eax, ebx
push eax
mov dword [esp + 0x10], eax
lea eax, [ebx + esi + 0x28]
push ebp
push eax
call fcn.1c02b5c0
mov ecx, dword [esp + 0x24]
add ebp, dword [esp + 0x18]
lea edx, [ecx + ebx - 0x10]
lea ebx, [esi + 0x18]
push ebx
lea eax, [esi + 0x3c]
mov dword [esp + 0x28], edx
call fcn.1c003c30
mov ecx, dword [esi + 0x2c]
xor dword [esi + 0x1c], ecx
mov eax, dword [esi + 0x28]
xor dword [ebx], eax
mov edx, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
xor dword [esi + 0x20], edx
mov eax, dword [ebx]
xor dword [esi + 0x24], ecx
mov dword [edi], eax
mov edx, dword [esi + 0x1c]
mov dword [edi + 4], edx
mov eax, dword [esi + 0x20]
mov dword [edi + 8], eax
mov ecx, dword [esi + 0x24]
mov eax, dword [esp + 0x28]
mov dword [edi + 0xc], ecx
add esp, 0x10
add edi, 0x10
cmp eax, 0x10
jb 0x1c00635f
shr eax, 4
mov dword [esp + 0xc], eax
lea ebx, [ebx]
push ebx
lea eax, [esi + 0x3c]
call fcn.1c003c30
mov edx, dword [ebp]
xor dword [ebx], edx
mov eax, dword [ebp + 4]
xor dword [esi + 0x1c], eax
mov ecx, dword [ebp + 8]
xor dword [esi + 0x20], ecx
mov edx, dword [ebp + 0xc]
xor dword [esi + 0x24], edx
mov eax, dword [ebx]
sub dword [esp + 0x1c], 0x10
mov dword [edi], eax
mov ecx, dword [esi + 0x1c]
mov dword [edi + 4], ecx
mov edx, dword [esi + 0x20]
mov dword [edi + 8], edx
mov eax, dword [esi + 0x24]
mov dword [edi + 0xc], eax
add esp, 4
add ebp, 0x10
add edi, 0x10
sub dword [esp + 0xc], 1
jne 0x1c006310
mov eax, dword [esp + 0x18]
push eax
lea eax, [esi + 0x28]
push ebp
push eax
call fcn.1c02b5c0
mov ecx, dword [esi + 0x38]
mov eax, dword [esp + 0x24]
and ecx, 0xf0000000
add esp, 0xc
add ecx, eax
mov dword [esi + 0x38], ecx
mov ecx, dword [esp + 0x1c]
sub dword [ecx], eax
pop edi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x1c006580
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
lea esi, [eax + 0x18]
push edi
mov edi, dword [eax + 0x38]
push esi
add eax, 0x3c
mov dword [ebp], 0x10
call fcn.1c003c30
add esp, 4
test edi, edi
jbe 0x1c0065be
mov ecx, dword [esp + 0x10]
mov eax, esi
mov esi, edi
lea esp, [esp]
mov dl, byte [eax + 0x10]
xor dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
sub esi, 1
jne 0x1c0065b0
mov dword [ebp], edi
pop edi
pop esi
xor eax, eax
pop ebp
ret
Function at 0x1c006930
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov edx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esi + 0x38]
push edi
mov edi, eax
lea eax, [edx + ebp]
mov ebx, ecx
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
cmp eax, 0x10
ja 0x1c006974
push edx
lea eax, [esi + ebp + 0x28]
push ebx
push eax
call fcn.1c02b5c0
mov ecx, dword [esp + 0x20]
add dword [esi + 0x38], ecx
mov edx, dword [esp + 0x24]
add esp, 0xc
pop edi
pop ebp
mov dword [edx], 0
xor eax, eax
pop ebx
pop ecx
ret
cmp edi, ebx
jne 0x1c006982
pop edi
pop ebp
mov eax, 0x1001
pop ebx
pop ecx
ret
mov dword [ecx], eax
mov eax, 0x10
sub eax, ebp
push eax
mov dword [esp + 0x10], eax
lea eax, [esi + ebp + 0x28]
push ebx
push eax
call fcn.1c02b5c0
mov ecx, dword [esp + 0x20]
add ebx, dword [esp + 0x18]
lea edx, [ecx + ebp - 0x10]
lea ebp, [esi + 0x18]
push ebp
lea eax, [esi + 0x3c]
mov dword [esp + 0x24], edx
call fcn.1c003c30
mov eax, dword [ebp]
xor eax, dword [esi + 0x28]
add esp, 0x10
mov dword [edi], eax
mov ecx, dword [esi + 0x2c]
xor ecx, dword [esi + 0x1c]
add edi, 0x10
mov dword [edi - 0xc], ecx
mov edx, dword [esi + 0x30]
xor edx, dword [esi + 0x20]
mov dword [edi - 8], edx
mov eax, dword [esi + 0x34]
xor eax, dword [esi + 0x24]
mov dword [edi - 4], eax
mov eax, dword [esp + 0x14]
cmp eax, 0x10
jbe 0x1c006a38
add eax, 0xffffffef
shr eax, 4
inc eax
mov dword [esp + 0xc], eax
push ebp
lea eax, [esi + 0x3c]
call fcn.1c003c30
mov ecx, dword [ebp]
xor ecx, dword [ebx]
sub dword [esp + 0x18], 0x10
mov dword [edi], ecx
mov edx, dword [ebx + 4]
xor edx, dword [esi + 0x1c]
add esp, 4
mov dword [edi + 4], edx
mov eax, dword [ebx + 8]
xor eax, dword [esi + 0x20]
add ebx, 0x10
mov dword [edi + 8], eax
mov ecx, dword [ebx - 4]
xor ecx, dword [esi + 0x24]
add edi, 0x10
sub dword [esp + 0xc], 1
mov dword [edi - 4], ecx
jne 0x1c0069f4
mov eax, dword [esp + 0x14]
push eax
lea eax, [esi + 0x28]
push ebx
push eax
call fcn.1c02b5c0
mov edx, dword [esi + 0x38]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
add esp, 0xc
and edx, 0xf0000000
add edx, eax
pop edi
mov dword [esi + 0x38], edx
sub dword [ecx], eax
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x1c006a70
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov edx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esi + 0x38]
push edi
mov ebx, eax
lea eax, [edx + ebp]
mov edi, ecx
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
cmp eax, 0x10
ja 0x1c006ab4
push edx
lea eax, [esi + ebp + 0x28]
push edi
push eax
call fcn.1c02b5c0
mov ecx, dword [esp + 0x20]
add dword [esi + 0x38], ecx
mov edx, dword [esp + 0x24]
add esp, 0xc
pop edi
pop ebp
mov dword [edx], 0
xor eax, eax
pop ebx
pop ecx
ret
cmp ebx, edi
jne 0x1c006ac2
pop edi
pop ebp
mov eax, 0x1001
pop ebx
pop ecx
ret
mov dword [ecx], eax
mov eax, 0x10
sub eax, ebp
push eax
mov dword [esp + 0x10], eax
lea eax, [esi + ebp + 0x28]
push edi
push eax
call fcn.1c02b5c0
mov ecx, dword [esp + 0x20]
add edi, dword [esp + 0x18]
lea edx, [ecx + ebp - 0x10]
lea ebp, [esi + 0x18]
push ebp
lea eax, [esi + 0x3c]
mov dword [esp + 0x24], edx
call fcn.1c003c30
mov eax, dword [ebp]
xor eax, dword [esi + 0x28]
add esp, 0x10
mov dword [ebx], eax
mov ecx, dword [esi + 0x2c]
xor ecx, dword [esi + 0x1c]
add ebx, 0x10
mov dword [ebx - 0xc], ecx
mov edx, dword [esi + 0x20]
xor edx, dword [esi + 0x30]
mov dword [ebx - 8], edx
mov eax, dword [esi + 0x24]
xor eax, dword [esi + 0x34]
mov dword [ebx - 4], eax
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x2c]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x14]
mov dword [ebp], ecx
mov ecx, dword [esi + 0x34]
mov dword [esi + 0x1c], edx
mov dword [esi + 0x24], ecx
cmp eax, 0x10
jbe 0x1c006bac
add eax, 0xffffffef
shr eax, 4
inc eax
mov dword [esp + 0xc], eax
lea esp, [esp]
push ebp
lea eax, [esi + 0x3c]
call fcn.1c003c30
mov edx, dword [ebp]
xor edx, dword [edi]
sub dword [esp + 0x18], 0x10
mov dword [ebx], edx
mov eax, dword [esi + 0x1c]
xor eax, dword [edi + 4]
add esp, 4
mov dword [ebx + 4], eax
mov ecx, dword [esi + 0x20]
xor ecx, dword [edi + 8]
add edi, 0x10
mov dword [ebx + 8], ecx
mov edx, dword [esi + 0x24]
xor edx, dword [edi - 4]
add ebx, 0x10
sub dword [esp + 0xc], 1
mov dword [ebx - 4], edx
mov eax, dword [edi - 0x10]
mov dword [ebp], eax
mov ecx, dword [edi - 0xc]
mov dword [esi + 0x1c], ecx
mov edx, dword [edi - 8]
mov dword [esi + 0x20], edx
mov eax, dword [edi - 4]
mov dword [esi + 0x24], eax
jne 0x1c006b50
mov eax, dword [esp + 0x14]
push eax
lea eax, [esi + 0x28]
push edi
push eax
call fcn.1c02b5c0
mov ecx, dword [esi + 0x38]
mov eax, dword [esp + 0x20]
and ecx, 0xf0000000
add esp, 0xc
add ecx, eax
mov dword [esi + 0x38], ecx
mov ecx, dword [esp + 0x18]
sub dword [ecx], eax
pop edi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x1c006da0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [eax + 0x38]
push edi
lea edi, [eax + 0x18]
push edi
add eax, 0x3c
mov dword [ebp], esi
call fcn.1c003c30
add esp, 4
test esi, esi
jbe 0x1c006dd6
mov ecx, dword [esp + 0x10]
mov eax, edi
mov edi, esi
mov dl, byte [eax + 0x10]
xor dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
sub edi, 1
jne 0x1c006dc8
pop edi
mov dword [ebp], esi
pop esi
xor eax, eax
pop ebp
ret
Function at 0x1c008420
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ecx
ret

Function at 0x1c008600
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0xf3bcc908
mov dword [eax + 4], 0x6a09e667
mov dword [eax + 8], 0x84caa73b
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0xfe94f82b
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x18], 0x5f1d36f1
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x20], 0xade682d1
mov dword [eax + 0x24], 0x510e527f
mov dword [eax + 0x28], 0x2b3e6c1f
mov dword [eax + 0x2c], 0x9b05688c
mov dword [eax + 0x30], 0xfb41bd6b
mov dword [eax + 0x34], 0x1f83d9ab
mov dword [eax + 0x38], 0x137e2179
mov dword [eax + 0x3c], 0x5be0cd19
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x50], ecx
mov dword [eax + 0x54], ecx
ret

Function at 0x1c008690
Capabilities:
Hash data using sha224

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0xc1059ed8
mov dword [eax + 4], 0xcbbb9d5d
mov dword [eax + 8], 0x367cd507
mov dword [eax + 0xc], 0x629a292a
mov dword [eax + 0x10], 0x3070dd17
mov dword [eax + 0x14], 0x9159015a
mov dword [eax + 0x18], 0xf70e5939
mov dword [eax + 0x1c], 0x152fecd8
mov dword [eax + 0x20], 0xffc00b31
mov dword [eax + 0x24], 0x67332667
mov dword [eax + 0x28], 0x68581511
mov dword [eax + 0x2c], 0x8eb44a87
mov dword [eax + 0x30], 0x64f98fa7
mov dword [eax + 0x34], 0xdb0c2e0d
mov dword [eax + 0x38], 0xbefa4fa4
mov dword [eax + 0x3c], 0x47b5481d
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x50], ecx
mov dword [eax + 0x54], ecx
ret
Function at 0x1c013200
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1c03c020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
cmp word [edi], 0
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], 0
jne 0x1c013238
mov ebx, 0x1c03737c
jmp 0x1c013302
mov eax, edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1c013240
sub eax, edx
sar eax, 1
mov dword [ebp - 0x1c], eax
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1c013257
sub eax, edx
sar eax, 1
lea edx, [eax*4 + 0xc]
mov eax, edi
cmp edx, 0x400
lea edx, [eax + 2]
jg 0x1c0132b0
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1c013280
sub eax, edx
sar eax, 1
lea eax, [eax*4 + 0xc]
call fcn.1c02bcf0
mov ebx, esp
test ebx, ebx
je 0x1c0132df
mov dword [ebx], 0xcccc
add ebx, 8
jmp 0x1c0132df
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1c0132b0
sub eax, edx
sar eax, 1
lea eax, [eax*4 + 0xc]
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
test eax, eax
je 0x1c0132dd
mov dword [eax], 0xdddd
add eax, 8
mov ebx, eax
lea esi, [ebp - 0x2c]
call fcn.1c0137e0
mov ecx, dword [ebp - 0x1c]
push 0
lea edx, [ecx*4 + 4]
push edx
push ebx
push 0xffffffffffffffff
push edi
push 0
push 0
call dword [sym.imp.HncBL90.dll_HncUnicodeToAnsi]
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, 2
push ecx
mov word [ebp - 0x14], ax
call sub.WS2_32.dll_htons
push ebx
mov word [ebp - 0x12], ax
call sub.WS2_32.dll_inet_addr
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x1c013348
push ebx
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x1c013380
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push 0x10
lea edx, [ebp - 0x14]
push edx
push ecx
call sub.WS2_32.dll_connect
lea edi, [ebp - 0x2c]
mov esi, eax
call fcn.1c013840
xor eax, eax
test esi, esi
sete al
lea esp, [ebp - 0x38]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1c01a4c0
mov esp, ebp
pop ebp
ret 8
lea edi, [ebp - 0x2c]
call fcn.1c013840
xor eax, eax
jmp 0x1c01336a

Function at 0x1c013390
Capabilities:
Get socket status

Disassembly:
sub esp, 0x114
mov eax, 0x10624dd3
mul ecx
mov eax, dword [esp + 0x118]
shr edx, 6
mov dword [esp], edx
imul edx, edx, 0x3e8
sub ecx, edx
lea edx, [esp]
push edx
push 0
mov dword [esp + 0xc], ecx
mov ecx, dword [eax]
push 0
lea eax, [esp + 0x14]
push eax
push 0
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x1c0133e8
xor eax, eax
add esp, 0x114
ret 8
mov edx, dword [esp + 0x11c]
xor ecx, ecx
test eax, eax
setne cl
mov eax, 1
mov dword [edx], ecx
add esp, 0x114
ret 8
Function at 0x1c013890
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x110
push esi
push edi
mov edi, dword [sym.imp.MSVCR90.dll__errno]
mov dword [esp + 8], 0x1e
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 1
lea eax, [esp + 8]
push eax
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0
call sub.WS2_32.dll_select
mov esi, eax
cmp esi, 0xffffffff
jne 0x1c01390a
lea esp, [esp]
call edi
cmp dword [eax], 4
je 0x1c0138ee
call edi
cmp dword [eax], 0xb
jne 0x1c01391d
lea edx, [esp + 8]
push edx
push 0
push 0
lea eax, [esp + 0x1c]
push eax
push 0
call sub.WS2_32.dll_select
mov esi, eax
cmp esi, 0xffffffff
je 0x1c0138e0
test esi, esi
je 0x1c01391d
lea ecx, [esp + 0x10]
push ecx
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1c0138c0
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1c013a10
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x1c03c020]
xor eax, esp
mov dword [esp + 0x194], eax
push esi
push edi
lea eax, [esp + 8]
push eax
push 0x101
mov esi, ecx
call sub.WS2_32.dll_WSAStartup
push 0
push 1
push 2
mov edi, eax
call sub.WS2_32.dll_socket
mov dword [esi], eax
test edi, edi
jl 0x1c013a5a
cmp eax, 0xffffffff
mov eax, 0x2bd
jne 0x1c013a5f
mov eax, 0x2be
mov ecx, dword [esp + 0x19c]
pop edi
pop esi
xor ecx, esp
call fcn.1c01a4c0
mov esp, ebp
pop ebp
ret
Function at 0x1c013a80
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1c03c020]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
lea eax, [ebp - 0x24]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], 0
test edi, edi
je 0x1c013bef
xor eax, eax
mov ecx, 2
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov word [ebp - 0x14], cx
cmp word [edi], ax
jne 0x1c013ad6
mov ebx, 0x1c03737c
jmp 0x1c013ba5
mov eax, edi
lea edx, [eax + 2]
jmp 0x1c013ae0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1c013ae0
sub eax, edx
sar eax, 1
mov dword [ebp - 0x1c], eax
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1c013af7
sub eax, edx
sar eax, 1
lea edx, [eax*4 + 0xc]
mov eax, edi
cmp edx, 0x400
lea edx, [eax + 2]
jg 0x1c013b50
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1c013b20
sub eax, edx
sar eax, 1
lea eax, [eax*4 + 0xc]
call fcn.1c02bcf0
mov ebx, esp
test ebx, ebx
je 0x1c013b7f
mov dword [ebx], 0xcccc
add ebx, 8
jmp 0x1c013b7f
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1c013b50
sub eax, edx
sar eax, 1
lea eax, [eax*4 + 0xc]
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
test eax, eax
je 0x1c013b7d
mov dword [eax], 0xdddd
add eax, 8
mov ebx, eax
lea esi, [ebp - 0x2c]
call fcn.1c0137e0
mov ecx, dword [ebp - 0x1c]
push 0
lea edx, [ecx*4 + 4]
push edx
push ebx
push 0xffffffffffffffff
push edi
push 0
push 0
call dword [sym.imp.HncBL90.dll_HncUnicodeToAnsi]
mov esi, dword [ebp - 0x18]
push ebx
call sub.WS2_32.dll_inet_addr
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push eax
call sub.WS2_32.dll_htons
mov edx, dword [esi]
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push edx
mov word [ebp - 0x12], ax
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x1c013bef
mov eax, dword [esi]
push 2
push eax
call sub.WS2_32.dll_shutdown
mov ecx, dword [esi]
push ecx
call sub.WS2_32.dll_closesocket
lea edi, [ebp - 0x2c]
call fcn.1c013840
mov eax, 0x2bf
jmp 0x1c013bfc
lea edi, [ebp - 0x2c]
call fcn.1c013840
mov eax, 0x2bd
lea esp, [ebp - 0x38]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1c01a4c0
mov esp, ebp
pop ebp
ret 8
Function at 0x1c013c20
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1c03c020]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], 0
mov ebx, eax
mov dword [ebp - 0x18], eax
test eax, eax
jle 0x1c013db0
mov edi, dword [ebp + 8]
cmp word [edi], 0
jne 0x1c013c66
mov esi, 0x1c03737c
jmp 0x1c013d87
mov eax, edi
lea edx, [eax + 2]
jmp 0x1c013c70
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1c013c70
sub eax, edx
sar eax, 1
mov ebx, eax
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1c013c86
sub eax, edx
sar eax, 1
lea ecx, [eax*4 + 0xc]
cmp ecx, 0x400
mov eax, edi
lea edx, [eax + 2]
jg 0x1c013ce0
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1c013cb0
sub eax, edx
sar eax, 1
lea eax, [eax*4 + 0xc]
call fcn.1c02bcf0
mov eax, esp
test eax, eax
je 0x1c013d0d
mov dword [eax], 0xcccc
jmp 0x1c013d0a
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1c013ce0
sub eax, edx
sar eax, 1
lea edx, [eax*4 + 0xc]
push edx
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
test eax, eax
je 0x1c013d0d
mov dword [eax], 0xdddd
add eax, 8
mov ecx, dword [ebp - 0x14]
cmp ecx, 2
mov esi, eax
lea ebx, [ebx*4 + 4]
jl 0x1c013d66
lea eax, [ecx*4 + 4]
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
mov ecx, dword [ebp - 0x14]
mov edi, eax
mov eax, dword [ebp - 0x10]
lea edx, [ecx*4]
push edx
push eax
push edi
call fcn.1c02b5c0
add esp, 0x10
cmp dword [ebp - 0x14], 2
jle 0x1c013d59
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov ecx, dword [ebp - 0x14]
mov eax, edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
jmp 0x1c013d69
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1c013d73
mov dword [eax + ecx*4], esi
inc dword [ebp - 0x14]
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 0
call dword [sym.imp.HncBL90.dll_HncUnicodeToAnsi]
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
push 0
push ebx
push esi
push eax
call sub.WS2_32.dll_send
test eax, eax
jl 0x1c013dd8
sub ebx, eax
lea ecx, [edi + eax*2]
mov dword [ebp + 8], ecx
mov dword [ebp - 0x18], ebx
test ebx, ebx
jg 0x1c013c53
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, ebx
lea edi, [ebp - 0x14]
cmp esi, eax
jne 0x1c013ddb
call fcn.1c013840
mov eax, esi
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1c01a4c0
mov esp, ebp
pop ebp
ret 8
lea edi, [ebp - 0x14]
call fcn.1c013840
mov eax, 0x2c0
jmp 0x1c013dc2