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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
push esi
cmp dword [ebp + 0xc], ebx
je 0x1001204a
cmp dword [ebp + 0x10], ebx
je 0x1001204a
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x1001204a
test byte [ebp + 0x14], 7
jne 0x1001204a
mov eax, dword [esi]
cmp eax, ebx
jl 0x10012046
cmp eax, 0x10
jg 0x10012046
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x14], ebx
jbe 0x10012035
push edi
xor edi, edi
cmp eax, ebx
jle 0x10011ff9
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
sub edx, ecx
lea ecx, [ebp + edi - 0x1c]
mov bl, byte [edx + ecx]
xor bl, byte [esi + edi + 4]
inc edi
mov byte [ecx], bl
cmp edi, eax
jl 0x10011fe5
xor ebx, ebx
lea eax, [esi + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
push eax
call fcn.10011f59
add esp, 0xc
xor eax, eax
cmp dword [esi], ebx
jle 0x10012021
mov ecx, dword [ebp + 0x10]
mov cl, byte [eax + ecx]
mov byte [esi + eax + 4], cl
inc eax
cmp eax, dword [esi]
jl 0x10012012
mov eax, dword [esi]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add dword [ebp + 0x10], eax
add dword [ebp + 0xc], eax
cmp ecx, dword [ebp + 0x14]
jb 0x10011fd7
pop edi
push 0x18
pop ecx
lea eax, [ebp - 0x1c]
mov byte [eax], bl
inc eax
dec ecx
jne 0x1001203b
mov eax, dword [ebp + 0x14]
jmp 0x1001204d
push 0xfffffffffffffff7
jmp 0x1001204c
push 0xfffffffffffffffa
pop eax
pop esi
pop ebx
leave
ret

Function at 0x10012051
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
cmp ebx, edi
je 0x10012124
cmp dword [ebp + 0xc], edi
je 0x10012124
mov esi, dword [ebp + 8]
cmp esi, edi
je 0x10012124
test byte [ebp + 0x14], 7
jne 0x10012124
mov eax, dword [esi]
cmp eax, edi
jl 0x10012120
cmp eax, 0x10
jg 0x10012120
mov dword [ebp + 0x10], edi
cmp dword [ebp + 0x14], edi
jbe 0x10012101
lea eax, [esi + 0x14]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0xc]
call fcn.10011f75
add esp, 0xc
xor eax, eax
cmp dword [esi], edi
jle 0x100120dc
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
sub edi, ecx
lea ecx, [ebp + eax - 0x18]
mov dl, byte [edi + ecx]
mov byte [ecx], dl
mov cl, byte [esi + eax + 4]
xor cl, byte [ebp + eax - 0x30]
mov byte [eax + ebx], cl
inc eax
cmp eax, dword [esi]
jl 0x100120c1
xor edi, edi
xor eax, eax
cmp dword [esi], edi
jle 0x100120ef
mov cl, byte [ebp + eax - 0x18]
mov byte [esi + eax + 4], cl
inc eax
cmp eax, dword [esi]
jl 0x100120e2
mov eax, dword [esi]
add dword [ebp + 0x10], eax
add dword [ebp + 0xc], eax
add ebx, eax
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 0x14]
jb 0x100120a0
push 0x18
pop ecx
lea eax, [ebp - 0x30]
mov byte [eax], 0
inc eax
dec ecx
jne 0x10012107
push 0x18
pop ecx
lea eax, [ebp - 0x18]
mov byte [eax], 0
inc eax
dec ecx
jne 0x10012114
mov eax, dword [ebp + 0x14]
jmp 0x10012127
push 0xfffffffffffffff7
jmp 0x10012126
push 0xfffffffffffffffa
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100126c3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
test esi, esi
jne 0x100126f8
push str.cryptodigest_sha1.c
push str.psAssert__s
call fcn.10010cbc
push 0x38
push str.:_d
call fcn.10010cbc
push str.md___NULL
call fcn.10010b84
add esp, 0x14
push ebx
xor ecx, ecx
lea eax, [esi + 0x21]
push edi
movzx edx, byte [eax - 1]
movzx edi, byte [eax]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 1]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 2]
shl edx, 8
or edx, edi
mov dword [ebp + ecx*4 - 0x150], edx
inc ecx
add eax, 4
cmp ecx, 0x10
jb 0x100126ff
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x18]
push 0x40
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], edx
lea eax, [ebp - 0x148]
pop edi
mov ebx, dword [eax + 0x2c]
xor ebx, dword [eax + 0x18]
xor ebx, dword [eax - 8]
xor ebx, dword [eax]
add eax, 4
dec edi
rol ebx, 1
mov dword [eax + 0x34], ebx
jne 0x10012751
xor eax, eax
mov ebx, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
xor ebx, ecx
and ebx, edx
mov edx, dword [ebp - 4]
xor ebx, edx
rol edi, 5
add edi, ebx
add edi, dword [ebp + eax*4 - 0x150]
mov ebx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x10]
inc eax
mov dword [ebp - 8], edx
mov edx, dword [ebp - 0xc]
lea edi, [ebx + edi + 0x5a827999]
rol ecx, 0x1e
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edi
cmp eax, 0x14
jb 0x10012769
cmp eax, 0x28
jae 0x10012822
mov ebx, dword [ebp - 4]
xor ebx, ecx
xor ebx, edx
rol edi, 5
add edi, ebx
add edi, dword [ebp + eax*4 - 0x150]
mov ebx, dword [ebp - 8]
lea edi, [ebx + edi + 0x6ed9eba1]
mov ebx, dword [ebp - 4]
rol edx, 0x1e
inc eax
mov dword [ebp - 4], ecx
mov ecx, edx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], edi
cmp eax, 0x28
jb 0x100127ae
jmp 0x1001281f
mov ebx, ecx
or ebx, edx
and ebx, dword [ebp - 4]
mov edx, ecx
and edx, dword [ebp - 0x10]
rol edi, 5
or ebx, edx
add ebx, dword [ebp + eax*4 - 0x150]
mov edx, dword [ebp - 4]
add ebx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x10]
lea edi, [ebx + edi - 0x70e44324]
mov dword [ebp - 8], edx
mov edx, dword [ebp - 0xc]
inc eax
rol ecx, 0x1e
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edx
cmp eax, 0x3c
jb 0x100127e7
jmp 0x1001285d
mov ebx, dword [ebp - 4]
xor ebx, ecx
xor ebx, edx
add ebx, dword [ebp + eax*4 - 0x150]
mov edx, dword [ebp - 4]
add ebx, dword [ebp - 8]
rol edi, 5
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], edx
mov edx, dword [ebp - 0xc]
lea edi, [ebx + edi - 0x359d3e2a]
inc eax
rol ecx, 0x1e
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edi
cmp eax, 0x50
jb 0x10012829
mov eax, dword [esi + 8]
add eax, edi
mov dword [esi + 8], eax
mov eax, dword [esi + 0xc]
add eax, edx
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x10]
add eax, ecx
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x14]
add eax, dword [ebp - 4]
pop edi
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x18]
add eax, dword [ebp - 8]
pop ebx
mov dword [esi + 0x18], eax
leave
ret
Function at 0x100128aa
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x100128e0
push str.cryptodigest_sha1.c
push str.psAssert__s
call fcn.10010cbc
push 0xa8
push str.:_d
call fcn.10010cbc
push str.md___NULL
call fcn.10010b84
add esp, 0x14
and dword [esi + 0x1c], 0
and dword [esi], 0
and dword [esi + 4], 0
mov dword [esi + 8], 0x67452301
mov dword [esi + 0xc], 0xefcdab89
mov dword [esi + 0x10], 0x98badcfe
mov dword [esi + 0x14], 0x10325476
mov dword [esi + 0x18], 0xc3d2e1f0
pop esi
pop ebp
ret
Function at 0x1001308c
Capabilities:
Hash data using sha224

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x100130bf
push str.cryptodigest_sha384.c
push str.psAssert__s
call fcn.10010cbc
push 0x29
push str.:_d
call fcn.10010cbc
push str.md___NULL
call fcn.10010b84
add esp, 0x14
and dword [esi + 0x48], 0
and dword [esi], 0
and dword [esi + 4], 0
mov dword [esi + 8], 0xc1059ed8
mov dword [esi + 0xc], 0xcbbb9d5d
mov dword [esi + 0x10], 0x367cd507
mov dword [esi + 0x14], 0x629a292a
mov dword [esi + 0x18], 0x3070dd17
mov dword [esi + 0x1c], 0x9159015a
mov dword [esi + 0x20], 0xf70e5939
mov dword [esi + 0x24], 0x152fecd8
mov dword [esi + 0x28], 0xffc00b31
mov dword [esi + 0x2c], 0x67332667
mov dword [esi + 0x30], 0x68581511
mov dword [esi + 0x34], 0x8eb44a87
mov dword [esi + 0x38], 0x64f98fa7
mov dword [esi + 0x3c], 0xdb0c2e0d
mov dword [esi + 0x40], 0xbefa4fa4
mov dword [esi + 0x44], 0x47b5481d
pop esi
pop ebp
ret

Function at 0x100131dc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push esi
push edi
lea esi, [ecx + 8]
push 8
pop ecx
lea edi, [ebp - 0x20]
mov dword [ebp - 0x24], esi
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
add eax, 2
movzx edx, byte [eax - 2]
movzx esi, byte [eax - 1]
shl edx, 8
or edx, esi
movzx esi, byte [eax]
shl edx, 8
or edx, esi
movzx esi, byte [eax + 1]
shl edx, 8
or edx, esi
mov dword [ebp + ecx*4 - 0x124], edx
inc ecx
add eax, 4
cmp ecx, 0x10
jl 0x100131fa
push 0x30
pop esi
lea eax, [ebp - 0xec]
push ebx
mov edx, dword [eax]
mov ecx, dword [eax - 0x34]
mov edi, edx
ror edi, 0x13
mov ebx, edx
shr edx, 0xa
ror ebx, 0x11
xor edi, ebx
xor edi, edx
mov edx, ecx
ror edx, 0x12
mov ebx, ecx
ror ebx, 7
xor edx, ebx
shr ecx, 3
xor edx, ecx
add edi, edx
add edi, dword [eax - 0x38]
add eax, 4
add edi, dword [eax - 0x18]
dec esi
mov dword [eax + 4], edi
jne 0x10013232
mov esi, dword [ebp - 0x10]
xor edx, edx
pop ebx
mov eax, esi
ror eax, 0x19
mov ecx, esi
ror ecx, 0xb
xor eax, ecx
mov ecx, esi
ror ecx, 6
xor eax, ecx
mov ecx, dword [ebp - 0xc]
xor ecx, dword [ebp - 8]
add edx, 4
and ecx, esi
xor ecx, dword [ebp - 8]
mov esi, dword [ebp - 0x20]
add eax, ecx
add eax, dword [edx + 0x1002c16c]
mov edi, esi
add eax, dword [ebp + edx - 0x128]
mov ecx, esi
add eax, dword [ebp - 4]
add dword [ebp - 0x14], eax
ror edi, 0x16
ror ecx, 0xd
xor edi, ecx
mov ecx, esi
ror ecx, 2
xor edi, ecx
mov ecx, dword [ebp - 0x1c]
add edi, eax
mov eax, dword [ebp - 8]
or ecx, esi
and ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
and esi, dword [ebp - 0x20]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
or ecx, esi
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
add ecx, edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
cmp edx, 0x100
jl 0x10013270
mov eax, dword [ebp - 0x24]
pop edi
xor ecx, ecx
pop esi
mov edx, dword [ebp + ecx*4 - 0x20]
add dword [eax], edx
inc ecx
add eax, 4
cmp ecx, 8
jl 0x10013310
leave
ret
Function at 0x1001333c
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x10013372
push str.cryptodigest_sha256.c
push str.psAssert__s
call fcn.10010cbc
push 0xe1
push str.:_d
call fcn.10010cbc
push str.md___NULL
call fcn.10010b84
add esp, 0x14
and dword [esi + 0x28], 0
and dword [esi], 0
and dword [esi + 4], 0
mov dword [esi + 8], 0x6a09e667
mov dword [esi + 0xc], 0xbb67ae85
mov dword [esi + 0x10], 0x3c6ef372
mov dword [esi + 0x14], 0xa54ff53a
mov dword [esi + 0x18], 0x510e527f
mov dword [esi + 0x1c], 0x9b05688c
mov dword [esi + 0x20], 0x1f83d9ab
mov dword [esi + 0x24], 0x5be0cd19
pop esi
pop ebp
ret
Function at 0x10015480
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x9c0], 1
jmp 0x100154b0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x9c0]
add ecx, 1
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x9c0], ecx
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x9c0], 0x270
jge 0x10015523
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x9c0]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x9c0]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + ecx*4 - 4]
shr ecx, 0x1e
mov eax, dword [ebp + 0xc]
xor ecx, dword [eax + edx*4 - 4]
imul ecx, ecx, 0x6c078965
mov edx, dword [ebp + 0xc]
add ecx, dword [edx + 0x9c0]
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0x9c0]
mov eax, dword [ebp + 0xc]
mov dword [eax + edx*4], ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x9c0]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x9c0]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0xc]
mov edx, dword [esi + edx*4]
mov dword [eax + ecx*4], edx
jmp 0x1001549b
pop esi
pop ebp
ret
Function at 0x10015530
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
cmp dword [eax + 0x9c0], 0x270
jl 0x10015662
mov dword [ebp - 8], 0
jmp 0x1001555b
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0xe3
jge 0x100155b2
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*4]
and ecx, 0x80000000
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov edx, dword [eax + edx*4 + 4]
and edx, 0x7fffffff
or ecx, edx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
shr eax, 1
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
xor eax, dword [edx + ecx*4 + 0x634]
mov ecx, dword [ebp - 4]
and ecx, 1
xor eax, dword [ecx*4 + 0x100363f4]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov dword [ecx + edx*4], eax
jmp 0x10015552
jmp 0x100155bd
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0x26f
jge 0x10015613
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*4]
and edx, 0x80000000
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*4 + 4]
and eax, 0x7fffffff
or edx, eax
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 4]
shr ecx, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
xor ecx, dword [eax + edx*4 - 0x38c]
mov edx, dword [ebp - 4]
and edx, 1
xor ecx, dword [edx*4 + 0x100363f4]
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov dword [edx + eax*4], ecx
jmp 0x100155b4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x9bc]
and ecx, 0x80000000
mov edx, dword [ebp + 8]
mov eax, dword [edx]
and eax, 0x7fffffff
or ecx, eax
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
shr ecx, 1
mov edx, dword [ebp + 8]
xor ecx, dword [edx + 0x630]
mov eax, dword [ebp - 4]
and eax, 1
xor ecx, dword [eax*4 + 0x100363f4]
mov edx, dword [ebp + 8]
mov dword [edx + 0x9bc], ecx
mov eax, dword [ebp + 8]
mov dword [eax + 0x9c0], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x9c0]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x9c0]
add eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x9c0], eax
mov edx, dword [ebp - 4]
shr edx, 0xb
xor edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
shl eax, 7
and eax, 0x9d2c5680
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
shr edx, 0x12
xor edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x100160d0
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 0x10], 1
mov dword [ebp - 8], 0x10
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x1001610f
or eax, 0xffffffff
jmp 0x100161d3
lea eax, [ebp - 0x10]
push eax
push 0x8004667e
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x1001613b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0xc], 0xffffffff
jmp 0x100161c0
push 0x10
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.10013ba0
add esp, 0xc
mov eax, 2
mov word [ebp - 0x20], ax
movzx ecx, word [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
mov edx, dword [ebp + 8]
mov dword [ebp - 0x1c], edx
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0xffff
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edx, dword [ebp - 8]
push edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x1001619f
mov dword [ebp - 0xc], 0xffffffff
jmp 0x100161c0
push 0x1f4
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
jge 0x100161bb
mov dword [ebp - 0xc], 0xffffffff
jmp 0x100161c0
mov eax, dword [ebp - 4]
jmp 0x100161d3
cmp dword [ebp - 4], 0xffffffff
jbe 0x100161d0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x100161e0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x18], 1
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x10016211
or eax, 0xffffffff
jmp 0x100162ce
cmp dword [ebp + 0x10], 0
jne 0x10016246
lea eax, [ebp - 0x18]
push eax
push 0x8004667e
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x10016246
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 0x14], 0
je 0x10016246
mov edx, dword [ebp + 0x14]
mov dword [edx], 0
push 0x10
push 0
lea eax, [ebp - 0x10]
push eax
call fcn.10013ba0
add esp, 0xc
mov ecx, 2
mov word [ebp - 0x10], cx
movzx edx, word [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
push 0x10
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x100162c5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x2733
je 0x100162ae
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xfffffffe
jmp 0x100162ce
xor ecx, ecx
je 0x100162b4
jmp 0x100162ae
cmp dword [ebp + 0x14], 0
je 0x100162c3
mov edx, dword [ebp + 0x14]
mov dword [edx], 1
jmp 0x100162cb
xor eax, eax
je 0x100162cb
jmp 0x100162c5
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret

Function at 0x100162e0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x100162f9
or eax, 0xffffffff
jmp 0x1001637a
cmp dword [ebp + 0xc], 0
jne 0x10016306
mov eax, 0xfffffffe
jmp 0x1001637a
push 4
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.10013ba0
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0xffffffff
je 0x10016334
mov eax, 1
jmp 0x1001637a
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1001634e
mov eax, 0xfffffffd
jmp 0x1001637a
mov edx, dword [ebp - 4]
cmp dword [edx + 0xc], 0
je 0x10016362
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
cmp dword [ecx], 0
jne 0x10016369
mov eax, 0xfffffffc
jmp 0x1001637a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov dword [edx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10017710
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
push 1
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10017740
xor edx, edx
je 0x1001773c
jmp 0x10017736
xor eax, eax
jmp 0x1001779f
xor eax, eax
je 0x10017746
jmp 0x10017740
mov ecx, dword [ebp - 4]
lea edx, [ecx + ecx + 2]
push edx
call fcn.10013960
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10017769
xor eax, eax
je 0x10017765
jmp 0x1001775f
xor eax, eax
jmp 0x1001779f
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1001779c
xor ecx, ecx
je 0x1001778a
jmp 0x10017784
push 0
lea edx, [ebp - 0xc]
push edx
call fcn.10013990
add esp, 8
xor eax, eax
jmp 0x1001779f
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x100187b0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100187dc
xor ecx, ecx
je 0x100187d8
jmp 0x100187d2
xor eax, eax
jmp 0x10018800
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100187fd
xor edx, edx
je 0x100187ef
jmp 0x100187e9
mov eax, dword [ebp - 4]
push eax
call dword [0x1003aa30]
xor eax, eax
jmp 0x10018800
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x10018810
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1001883c
xor ecx, ecx
je 0x10018838
jmp 0x10018832
xor eax, eax
jmp 0x1001887d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1001887a
xor edx, edx
je 0x1001884f
jmp 0x10018849
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.10018890
add esp, 8
test eax, eax
jge 0x1001887a
xor edx, edx
je 0x10018869
jmp 0x10018863
mov eax, dword [ebp - 4]
push eax
call dword [0x1003aa30]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x10018f40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov dword [ebp - 4], 0
mov dword [ebp - 0x414], 0
mov dword [ebp - 0x410], 0
mov dword [ebp - 0x40c], 0
mov eax, dword [ebp + 8]
push eax
call fcn.10018e10
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10018f8a
xor eax, eax
jmp 0x10019023
mov dword [ebp - 0x410], 0
push 0
lea ecx, [ebp - 0x410]
push ecx
push 0x400
lea edx, [ebp - 0x408]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10018fc6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
jne 0x10018fc4
jmp 0x10019013
jmp 0x10019013
cmp dword [ebp - 0x410], 0
jne 0x10018fd1
jmp 0x10019013
mov ecx, dword [ebp - 0x40c]
add ecx, dword [ebp - 0x410]
mov dword [ebp - 0x40c], ecx
mov edx, dword [ebp - 0x414]
push edx
mov eax, dword [ebp - 0x410]
push eax
lea ecx, [ebp - 0x408]
push ecx
call fcn.1001c990
add esp, 0xc
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x410], 0
ja 0x10018f8a
mov edx, dword [ebp - 4]
push edx
call dword [0x1003aa30]
mov eax, dword [ebp - 0x414]
mov esp, ebp
pop ebp
ret
Function at 0x10019030
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
push eax
call fcn.10018e10
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1001905b
jmp 0x100190da
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10019072
jmp 0x100190da
mov edx, dword [ebp - 4]
add edx, 1
push edx
call fcn.10013960
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1001908c
jmp 0x100190da
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.10018ed0
add esp, 0x10
test eax, eax
jne 0x100190aa
jmp 0x100190da
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 4]
je 0x100190b4
jmp 0x100190da
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 4]
mov byte [edx], 0
cmp dword [ebp + 0xc], 0
je 0x100190cb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov edx, dword [ebp - 8]
push edx
call dword [0x1003aa30]
mov eax, dword [ebp - 0x10]
jmp 0x10019100
cmp dword [ebp - 8], 0
je 0x100190ea
mov eax, dword [ebp - 8]
push eax
call dword [0x1003aa30]
cmp dword [ebp - 0x10], 0
je 0x100190fe
push 0
lea ecx, [ebp - 0x10]
push ecx
call fcn.10013990
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret