joyce8/EMBER2024-capa huggingface dataset:
Function at 0xe26752
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x64
push ebx
push ebp
push esi
mov esi, dword [esp + 0x78]
push edi
push esi
push dword [esp + 0x7c]
mov edi, edx
push edi
push ecx
call fcn.00e338f7
mov dword [esp + 0x3c], 0xf6dc2
add esp, 0x10
add dword [esp + 0x2c], 0xffffff8e
mov ecx, 0x8f8d9d0
xor dword [esp + 0x2c], 0xf6d50
mov ebx, 0x93deedb
mov dword [esp + 0x38], 0x179405
mov ebp, 0xd523975
xor dword [esp + 0x38], 0x2eab14d
xor dword [esp + 0x38], 0x2fc2ac4
mov dword [esp + 0x18], 0x1362a8
shr dword [esp + 0x18], 0xf
or dword [esp + 0x18], 0xd09e0e71
xor dword [esp + 0x18], 0xdc4b03e3
xor dword [esp + 0x18], 0xcdd9a9f
mov dword [esp + 0x34], 0x24ac3c
add dword [esp + 0x34], 0xffff8177
xor dword [esp + 0x34], 0x23d07f
mov dword [esp + 0x30], 0x75e0e5
or dword [esp + 0x30], 0xf09de194
xor dword [esp + 0x30], 0xf0f14c2c
mov dword [esp + 0x20], 0x8a62fa
shr dword [esp + 0x20], 6
add dword [esp + 0x20], 0xffff6154
xor dword [esp + 0x20], 0xfd65f
mov dword [esp + 0x28], 0x9b3445
add dword [esp + 0x28], 0xffff66c1
xor dword [esp + 0x28], 0x9a3c66
mov dword [esp + 0x1c], 0x75ae15
add dword [esp + 0x1c], 0x4d0
shr dword [esp + 0x1c], 4
xor dword [esp + 0x1c], 0x1f0ff
mov dword [esp + 0x14], 0xc13a85
imul eax, dword [esp + 0x14], 0x3d
mov dword [esp + 0x14], eax
add dword [esp + 0x14], 0x6cf7
xor dword [esp + 0x14], 0x1b9e3165
xor dword [esp + 0x14], 0x359eaf27
mov dword [esp + 0x7c], 0x84e34
shl dword [esp + 0x7c], 0xf
imul eax, dword [esp + 0x7c], 0x11
mov dword [esp + 0x7c], eax
or dword [esp + 0x7c], 0x8b7c2fc5
xor dword [esp + 0x7c], 0x9bf0e021
mov dword [esp + 0x3c], 0x670f6b
shr dword [esp + 0x3c], 0xe
xor dword [esp + 0x3c], 0x3010c
mov dword [esp + 0x24], 0x7b7ef9
xor dword [esp + 0x24], 0x112ef379
imul eax, dword [esp + 0x24], 0x55
mov dword [esp + 0x24], eax
xor dword [esp + 0x24], 0xc16d0010
cmp ecx, 0x23d0145
je 0xe26974
cmp ecx, 0x5145717
je 0xe269aa
cmp ecx, 0x8f8d9d0
je 0xe26960
cmp ecx, ebx
je 0xe26940
cmp ecx, 0x94ef16c
je 0xe2692f
cmp ecx, 0xf35c656
jne 0xe269a0
push dword [esp + 0x7c]
lea ecx, [esp + 0x44]
push dword [edi]
push dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
call fcn.00e3cf3c
add esp, 0xc
mov ecx, 0x5145717
jmp 0xe268d6
mov ecx, edi
call fcn.00e2ce00
mov dword [esi + 4], eax
mov ecx, 0x23d0145
jmp 0xe268d6
lea eax, [esp + 0x40]
mov edx, esi
push eax
push dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
call fcn.00e32c3d
pop ecx
pop ecx
mov ecx, 0xf35c656
jmp 0xe268d6
mov eax, dword [esp + 0x2c]
mov ecx, 0x94ef16c
and dword [esi], 0
mov dword [esi + 4], eax
jmp 0xe268d6
mov eax, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov eax, dword [esp + 0x18]
mov eax, dword [esp + 0x38]
push dword [esi + 4]
push ecx
push ecx
call fcn.00e2666a
add esp, 0xc
mov dword [esi], eax
test eax, eax
je 0xe2699e
mov ecx, ebx
jmp 0xe268d6
mov ecx, ebp
cmp ecx, ebp
jne 0xe268d6
jmp 0xe269c1
push dword [esp + 0x24]
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x44]
push eax
lea ecx, [edi + 4]
call fcn.00e22a5b
pop ecx
pop ecx
xor eax, eax
cmp dword [esi], eax
pop edi
pop esi
pop ebp
setne al
pop ebx
add esp, 0x64
ret
Function at 0xe31db3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
push dword [esp + 0x3c]
mov ebp, ecx
push dword [esp + 0x3c]
push edx
push ebp
call fcn.00e338f7
mov dword [esp + 0x20], 0x4051e5
add esp, 0x10
xor dword [esp + 0x10], 0xc89273d8
xor esi, esi
add dword [esp + 0x10], 0xecfc
add dword [esp + 0x10], 0x7ba3
xor dword [esp + 0x10], 0xc8d38adc
mov dword [esp + 0x18], 0xbf6f8b
add dword [esp + 0x18], 0xffffde35
imul eax, dword [esp + 0x18], 0x15
mov dword [esp + 0x18], eax
xor dword [esp + 0x18], 0xfbc6e14
mov dword [esp + 0x14], 0x2cd8eb
shl dword [esp + 0x14], 0xd
add dword [esp + 0x14], 0xffff1549
xor dword [esp + 0x14], 0x9b1253e0
mov dword [esp + 0x20], 0x75cfac
imul eax, dword [esp + 0x20], 0x75
mov dword [esp + 0x20], eax
xor dword [esp + 0x20], 0x35d8ad73
mov dword [esp + 0x1c], 0xd142c4
imul eax, dword [esp + 0x1c], 0x6c
mov dword [esp + 0x1c], eax
xor dword [esp + 0x1c], 0x584ba04a
mov eax, dword [ebp + 0x3c]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x30], eax
mov ebx, dword [eax + ebp + 0x78]
add ebx, ebp
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x20]
add eax, ebp
mov dword [esp + 0x2c], eax
add ecx, ebp
mov eax, dword [ebx + 0x24]
add eax, ebp
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
jmp 0xe31ec4
push dword [esp + 0x1c]
mov eax, dword [ecx + edi*4]
push dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
add eax, ebp
mov ecx, dword [esp + 0x20]
push eax
call fcn.00e32f01
xor eax, 0x102ce3a8
add esp, 0xc
cmp eax, dword [esp + 0x3c]
je 0xe31ecb
mov ecx, dword [esp + 0x24]
inc edi
cmp edi, dword [ebx + 0x18]
jb 0xe31e96
jmp 0xe31ef7
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
movzx eax, word [eax + edi*2]
mov esi, dword [esi + eax*4]
add esi, ebp
cmp esi, ebx
jb 0xe31ef7
mov eax, dword [esp + 0x30]
mov eax, dword [eax + ebp + 0x7c]
add eax, ebx
cmp esi, eax
jae 0xe31ef7
mov ecx, esi
call fcn.00e2bbf8
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0xe32386
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc4
push ebx
push ebp
push esi
mov esi, dword [esp + 0xd4]
mov ebx, ecx
push edi
push dword [esp + 0xdc]
push esi
push edx
push ebx
call fcn.00e338f7
mov dword [esp + 0x7c], 0x57723
add esp, 0x10
xor dword [esp + 0x6c], 0xabd49fa2
xor edx, edx
xor dword [esp + 0x6c], 0xabd1e881
xor edi, edi
mov dword [esp + 0x24], 0xb2c042
mov ecx, 0x2d3d259
mov eax, dword [esp + 0x24]
push 0x37
pop ebp
div ebp
push 0x6e
mov dword [esp + 0x28], eax
xor edx, edx
mov eax, dword [esp + 0x28]
pop ebp
div ebp
push 0x4f
mov dword [esp + 0x28], eax
xor edx, edx
add dword [esp + 0x28], 0x3de3
xor dword [esp + 0x28], 0x4563
mov dword [esp + 0x30], 0x9caede
shr dword [esp + 0x30], 3
shr dword [esp + 0x30], 3
or dword [esp + 0x30], 0xebc789aa
xor dword [esp + 0x30], 0xebc93a6c
mov dword [esp + 0x68], 0xc1a759
imul eax, dword [esp + 0x68], 3
pop ebp
mov dword [esp + 0x64], eax
xor dword [esp + 0x64], 0x24fa99f
mov dword [esp + 0x58], 0x487bed
shr dword [esp + 0x58], 4
xor dword [esp + 0x58], 0xb3add
mov dword [esp + 0x1c], 0xb961f8
imul eax, dword [esp + 0x1c], 0x3a
mov dword [esp + 0x1c], eax
xor dword [esp + 0x1c], 0x2aed5626
shr dword [esp + 0x1c], 1
xor dword [esp + 0x1c], 0x7ae69c
mov dword [esp + 0x68], 0xf33f5f
imul eax, dword [esp + 0x68], 0x1c
mov dword [esp + 0x68], eax
xor dword [esp + 0x68], 0x1a9d2110
mov dword [esp + 0x34], 0x95f3cd
add dword [esp + 0x34], 0xffff8ecd
shr dword [esp + 0x34], 8
imul eax, dword [esp + 0x34], 0x4f
mov dword [esp + 0x34], eax
xor dword [esp + 0x34], 0x27580f
mov dword [esp + 0x18], 0xe068c4
mov eax, dword [esp + 0x18]
div ebp
mov dword [esp + 0x18], eax
imul eax, dword [esp + 0x18], 0x79
mov dword [esp + 0x18], eax
or dword [esp + 0x18], 0xb9200d1c
xor dword [esp + 0x18], 0xb977b192
mov dword [esp + 0x14], 0xae5c0e
shr dword [esp + 0x14], 0xb
shl dword [esp + 0x14], 6
shr dword [esp + 0x14], 7
xor dword [esp + 0x14], 0x3a62c
mov dword [esp + 0x50], 0x3c87fd
or dword [esp + 0x50], 0x13faf532
shr dword [esp + 0x50], 8
or byte [ecx + 0x3a502474], al
out 0x10, al
add bh, al
inc esp
and al, 0x48
cmpsb byte gs:[esi], byte es:[edi]
push ecx
add byte [ebx + 0x33482444], cl
shr byte [edx + 0x3b], cl
Function at 0xe32f01
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
push dword [ebp + 0xc]
push ebx
push edx
push ecx
call fcn.00e338f7
mov dword [ebp - 4], 0xd1266b
add esp, 0x14
xor dword [ebp - 4], 0x6097b8b9
xor edx, edx
shr dword [ebp - 4], 0xf
xor dword [ebp - 4], 0xc08d
mov dword [ebp + 8], 0xb3c9f2
mov eax, dword [ebp + 8]
push 0x71
pop ecx
div ecx
mov dword [ebp + 8], eax
xor dword [ebp + 8], 0x6b7c1c01
shr dword [ebp + 8], 0x10
xor dword [ebp + 8], 0x6b7b
mov dword [ebp + 8], 0xc00a1d
or dword [ebp + 8], 0x977c9319
xor dword [ebp + 8], 0x97fc9b0d
cmp byte [ebx], 0
je 0xe32fda
push esi
push edi
mov edi, dword [ebp - 4]
xor edx, edx
mov dword [ebp + 8], 0xb3c9f2
mov eax, dword [ebp + 8]
div ecx
push 0x71
mov dword [ebp + 8], eax
xor dword [ebp + 8], 0x6b7c1c01
shr dword [ebp + 8], 0x10
xor dword [ebp + 8], 0x6b7b
mov cl, byte [ebp + 8]
mov esi, dword [ebp - 4]
mov dword [ebp + 8], 0xc00a1d
or dword [ebp + 8], 0x977c9319
xor dword [ebp + 8], 0x97fc9b0d
shl esi, cl
mov cl, byte [ebp + 8]
mov edx, dword [ebp - 4]
movsx eax, byte [ebx]
mov dword [ebp - 4], eax
add dword [ebp - 4], esi
shl edx, cl
add dword [ebp - 4], edx
sub dword [ebp - 4], edi
inc ebx
pop ecx
cmp byte [ebx], 0
jne 0xe32f75
pop edi
pop esi
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xe33841
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x20]
push ebp
push ebx
push dword [esp + 0x24]
push dword [esp + 0x24]
push edx
push ecx
call fcn.00e338f7
and dword [esp + 0x28], 0
add esp, 0x14
mov dword [esp + 0x10], 0xbaa027
mov dword [esp + 8], 0xa833e3
add dword [esp + 8], 0x1b6
xor dword [esp + 8], 0xa8359c
mov ecx, dword [ebx + 0x3c]
mov eax, dword [esp + 8]
add ecx, ebx
sub edx, dword [ecx + 0x34]
mov ebp, dword [ecx + eax*8 + 0x7c]
mov dword [esp + 8], edx
mov edx, dword [ecx + eax*8 + 0x78]
add edx, ebx
add ebp, edx
mov dword [esp + 0x10], ebp
cmp edx, ebp
jae 0xe338f1
push esi
push edi
mov edi, dword [edx + 4]
lea esi, [edx + 8]
add edi, edx
cmp esi, edi
jae 0xe338e8
mov ebp, dword [esp + 0x10]
movzx eax, word [esi]
mov ecx, eax
mov dword [esp + 0x14], 0x3000
and ecx, 0xfff
and eax, 0xf000
add ecx, dword [edx]
add ecx, ebx
cmp ax, word [esp + 0x14]
jne 0xe338dd
add dword [ecx], ebp
add esi, 2
cmp esi, edi
jb 0xe338b8
mov ebp, dword [esp + 0x18]
add edx, dword [edx + 4]
cmp edx, ebp
jb 0xe338a8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0xe3a9f6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
push esi
push dword [ebp + 8]
push edx
push ecx
call fcn.00e338f7
add esp, 0x14
mov dword [ebp + 0xc], 0xfaa15b
add dword [ebp + 0xc], 0xffff7a87
xor edx, edx
mov eax, dword [ebp + 0xc]
push 0x63
pop ecx
div ecx
mov dword [ebp + 0xc], eax
xor dword [ebp + 0xc], 0x287b4
cmp dword [esi + 4], 0x40
jae 0xe3aa3a
xor eax, eax
jmp 0xe3aa61
mov ecx, dword [esi]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0xe3aa36
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0xe3aa36
movzx edx, word [eax + 0x18]
xor esi, esi
mov ecx, dword [ebp + 0xc]
cmp edx, ecx
cmovne eax, esi
pop esi
pop ebp
ret
Function at 0xe3cb86
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
push dword [esp + 0x3c]
mov ebp, ecx
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push edx
push ebp
call fcn.00e338f7
mov dword [esp + 0x24], 0xbc318a
add esp, 0x14
shl dword [esp + 0x10], 4
xor edx, edx
xor dword [esp + 0x10], 0xcd322ca7
xor esi, esi
xor dword [esp + 0x10], 0xc6f13407
mov dword [esp + 0x1c], 0x756744
add dword [esp + 0x1c], 0xffffd1d2
xor dword [esp + 0x1c], 0x7c044df6
xor dword [esp + 0x1c], 0x7c717daf
mov dword [esp + 0x18], 0x9c6c7c
mov eax, dword [esp + 0x18]
push 0x36
pop ecx
div ecx
mov dword [esp + 0x18], eax
shr dword [esp + 0x18], 0xf
xor dword [esp + 0x18], 0xf735e
mov dword [esp + 0x14], 0x91c24c
add dword [esp + 0x14], 0xdb50
xor dword [esp + 0x14], 0xb9185956
xor dword [esp + 0x14], 0xb98c338b
mov eax, dword [ebp + 0x3c]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
mov ebx, dword [eax + ebp + 0x78]
add ebx, ebp
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x20]
add eax, ebp
mov dword [esp + 0x28], eax
add ecx, ebp
mov eax, dword [ebx + 0x24]
add eax, ebp
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
jmp 0xe3cc7d
push dword [esp + 0x14]
mov eax, dword [ecx + edi*4]
push dword [esp + 0x1c]
mov edx, dword [esp + 0x3c]
add eax, ebp
mov ecx, dword [esp + 0x24]
push eax
call fcn.00e2b88f
add esp, 0xc
test eax, eax
je 0xe3cc84
mov ecx, dword [esp + 0x20]
inc edi
cmp edi, dword [ebx + 0x18]
jb 0xe3cc56
jmp 0xe3ccaa
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
movzx eax, word [eax + edi*2]
mov esi, dword [esi + eax*4]
add esi, ebp
cmp esi, ebx
jb 0xe3ccaa
mov ecx, dword [esp + 0x2c]
xor eax, eax
mov ecx, dword [ecx + ebp + 0x7c]
add ecx, ebx
cmp esi, ecx
cmovb esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0xe3de81
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
push ebx
push esi
push edi
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push edx
push ecx
call fcn.00e338f7
mov dword [esp + 0x28], 0xdf2fad
lea edi, [ecx + 4]
shr dword [esp + 0x28], 4
add esp, 0x10
xor dword [esp + 0x18], 0x8f20
mov dword [esp + 0xc], 0xbac5bb
or dword [esp + 0xc], 0xf9dfeff7
xor dword [esp + 0xc], 0xf9f34283
mov dword [esp + 0x14], 0xb00b2a
or dword [esp + 0x14], 0x3f497056
xor dword [esp + 0x14], 0x3ff18446
mov dword [esp + 0x10], 0xa69e84
shl dword [esp + 0x10], 0xe
imul eax, dword [esp + 0x10], 0x48
mov dword [esp + 0x10], eax
xor dword [esp + 0x10], 0x2549decf
mov edx, dword [ecx]
mov eax, dword [edi]
add edi, 4
xor eax, edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
lea esi, [eax + 1]
mov ecx, esi
mov eax, esi
and eax, 0xfffffffc
add eax, 4
and cl, 3
cmovne esi, eax
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
lea eax, [esi + esi]
push eax
push ecx
push ecx
call fcn.00e2666a
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0xe3dfb3
shr esi, 2
xor eax, eax
push ebp
xor ebp, ebp
mov edx, ebx
lea ecx, [edi + esi*4]
mov esi, ecx
sub esi, edi
add esi, 3
shr esi, 2
cmp edi, ecx
cmova esi, eax
test esi, esi
je 0xe3dfa8
mov ebx, dword [esp + 0x20]
mov ecx, dword [edi]
lea edi, [edi + 4]
xor ecx, ebx
movzx eax, cl
mov word [edx], ax
mov eax, ecx
shr eax, 8
lea edx, [edx + 8]
movzx eax, al
mov word [edx - 6], ax
shr ecx, 0x10
movzx eax, cl
shr ecx, 8
inc ebp
mov word [edx - 4], ax
movzx eax, cl
mov word [edx - 2], ax
cmp ebp, esi
jb 0xe3df6f
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
xor ecx, ecx
pop ebp
mov word [ebx + eax*2], cx
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x18
ret
Function at 0x4269c9
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x426a08
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x426a08
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x426a08
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x426a08
cmp dword [ecx + 0x74], 0xe
jbe 0x426a08
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x438db0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x438ddd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x438ddd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40fff7
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x410025
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x410043
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040ff5d
jmp 0x410043
mov eax, dword [esi + 0x14]
test eax, eax
je 0x410043
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0040ff5d
test edi, edi
mov eax, edi
jne 0x41002d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x409ee0
Capabilities:
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449e98
mov eax, dword fs:[0]
push eax
sub esp, 0x198
mov eax, dword [0x45f014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 0x30]
lea eax, [ebp - 0x1a0]
push 0x190
push 0
push eax
mov dword [ebp - 4], 0
mov dword [edi], vtable.BaseSocket.0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], esi
call fcn.00436f50
add esp, 0xc
lea eax, [ebp - 0x1a0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, dword [ebp + 0x34]
cmp eax, 0xffffffff
jne 0x409f8c
push 0
push esi
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 0x14], eax
cmp eax, 0xffffffff
jne 0x409f8f
sub esp, 0x18
mov ecx, esp
push str.Socket_creating_error.
call fcn.004093e0
call fcn.0043957f
lea ecx, [ebp + 8]
push dword [eax]
call fcn.0040bcf0
jmp 0x409f8f
mov dword [edi + 0x14], eax
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x409fa7
mov esi, dword [ecx]
lea eax, [ebp + 8]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e7b3
mov esp, ebp
pop ebp
ret 0x30
Function at 0x40c230
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a1b0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x45f014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov edx, dword [ebp + 8]
lea eax, [edi + 8]
mov dword [ebp - 4], 0
push eax
push edx
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 0xffffffff
je 0x40c2e6
test eax, eax
je 0x40c2c6
push dword [ebp + 0xc]
mov eax, 2
lea esi, [edi + 4]
mov word [esi], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
push esi
push dword [edi + 0x14]
mov word [edi + 6], ax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x40c343
sub esp, 0x18
mov ecx, esp
push str.Cannot_bind_the_socket.
call fcn.004093e0
call fcn.0043957f
lea ecx, [ebp + 0x10]
push dword [eax]
call fcn.0040bcf0
jmp 0x40c343
sub esp, 0x18
mov ecx, esp
push str.AF_INET_is_not_supported._Please_send_message_to_developer.
call fcn.004093e0
call fcn.0043957f
lea ecx, [ebp + 0x10]
push dword [eax]
call fcn.0040bcf0
jmp 0x40c343
push 0x2c
push str.Invalid_address._Address_type_not_supported.
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.0040e9c0
call fcn.0043957f
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x34]
mov byte [ebp - 4], 1
test ecx, ecx
jne 0x40c321
call fcn.0041cd2a
mov eax, dword [ecx]
lea edx, [ebp - 0x28]
push edx
lea edx, [ebp - 0x10]
push edx
call dword [eax + 8]
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x40c343
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040f480
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x40c35b
mov edx, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x30
Function at 0x40c370
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x45f014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0xc]
xor esi, esi
push eax
push 8
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40c418
push edi
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push esi
push esi
push 1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push dword [ebp - 8]
call fcn.00439597
mov edi, eax
add esp, 4
test edi, edi
je 0x40c40e
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push edi
push 1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x40c405
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push str.S_1_5_18
call sub.ADVAPI32.dll_ConvertStringSidToSidW
test eax, eax
je 0x40c405
push dword [ebp - 0x10]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call fcn.00439592
add esp, 4
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041e7b3
mov esp, ebp
pop ebp
ret
Function at 0x40c8b0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x45f014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push esi
push edi
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 8]
xor esi, esi
mov dword [ebp - 0x10], eax
push esi
push 4
push ecx
push dword [eax + 0x14]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], edi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 4
je 0x40c901
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e7b3
mov esp, ebp
pop ebp
ret 8
test edi, edi
je 0x40c940
mov eax, 0x1000
nop word [eax + eax]
cmp edi, 0x1000
mov esi, edi
push 0
cmova esi, eax
mov eax, dword [ebp - 0x10]
push esi
push ebx
push dword [eax + 0x14]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
jne 0x40c8eb
add dword [ebp - 0xc], eax
add ebx, esi
mov eax, 0x1000
sub edi, esi
jne 0x40c910
mov esi, dword [ebp - 0xc]
push 0
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
mov eax, dword [ebp - 0x10]
push dword [eax + 0x14]
call dword [sym.imp.WS2_32.dll_send]
or ecx, 0xffffffff
cmp eax, 4
pop edi
cmovne esi, ecx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
pop ebx
call fcn.0041e7b3
mov esp, ebp
pop ebp
ret 8