joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008b442
Capabilities:
Get file size

Disassembly:
push 0x480
mov eax, 0x100b4ce3
call fcn.100a56bc
mov edi, edx
push 0x5c
pop eax
mov word [ebp - 0x1c], ax
xor eax, eax
mov dword [ebp - 0x478], 0x10020f80
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov edx, ecx
mov dword [ebp - 4], eax
push 0x1001cdec
lea ecx, [ebp - 0x47c]
call fcn.1006eafe
lea ecx, [ebp - 0x478]
push dword [eax]
call fcn.10091a7b
mov ecx, dword [ebp - 0x47c]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
call fcn.1008ebf5
add bl, 1
je 0x1008b5c4
cmp dword [ebp - 0x14], 0
je 0x1008b4c0
mov eax, dword [ebp - 0x474]
shr eax, 4
and eax, 1
jmp 0x1008b4c2
xor eax, eax
lea ecx, [ebp - 0x478]
cmp eax, 1
je 0x1008b575
lea eax, [ebp - 0x488]
push eax
call fcn.1003f7bb
mov dword [ebp - 0x47c], eax
xor ecx, ecx
mov ebx, ecx
mov dword [ebp - 0x484], ecx
mov dword [ebp - 0x480], ecx
push ecx
push ecx
push 0x80
push 3
push 1
push SysReAllocString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x484]
push dword [eax]
call fcn.10091a7b
test eax, eax
jns 0x1008b53b
mov eax, dword [ebp - 0x47c]
push dword [eax]
lea eax, [ebp - 0x47c]
push 0x1001f374
push 1
push dword [edi + 4]
push eax
call fcn.1002e335
add esp, 0x14
jmp 0x1008b54b
push 0
push dword [ebp - 0x484]
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ebx, eax
cmp dword [ebp - 0x484], 0
je 0x1008b567
push dword [ebp - 0x484]
call dword [sym.imp.kernel32.dll_CloseHandle]
and dword [ebp - 0x484], 0
add dword [edi], ebx
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x488]
jmp 0x1008b5a8
call fcn.10091a7b
cmp eax, 1
je 0x1008b5b0
lea eax, [ebp - 0x48c]
push eax
lea ecx, [ebp - 0x478]
call fcn.1003f7bb
mov edx, edi
mov byte [ebp - 4], 3
mov ecx, eax
call fcn.1008b442
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x48c]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
lea ecx, [ebp - 0x478]
call fcn.1003f9a8
cmp eax, 1
je 0x1008b4ac
lea ecx, [ebp - 0x478]
mov dword [ebp - 0x478], 0x10020f80
call fcn.1003f9d5
call fcn.100a5666
ret

Function at 0x10091a7b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x10091a8a
pop dword [ebp - 0x14]
mov eax, 0x10091a8a
sub dword [ebp - 0x14], eax
push 0x40
push 0x1000
push 0x554c6
push 0
mov eax, 0x146a4667
sub eax, 0x45d434b
add eax, dword [ebp - 0x14]
call dword [eax]
mov ecx, 0x2d4bc8fa
add ecx, 0xd2b485ae
xor edi, edi
add edi, eax
mov esi, 0xb5538dea
sub esi, 0xa5457dea
add esi, dword [ebp - 0x14]
mov ebx, 0xf75070a2
add ebx, 0x32383b1e
xor dword [ebp - 8], ebx
mov edx, dword [esi]
xor dword [ebp - 8], 0xe4ed694
add edx, ebx
mov dword [ebp - 0xc], 0x5c607f6d
mov dword [edi], edx
add dword [ebp - 0xc], 0x8bcc10bc
add edi, 0x63fa9b4f
add edi, 0x9c0564b5
add esi, 4
loop 0x10091ae6
add eax, 0x12d73
xor ebx, ebx
add ebx, eax
add eax, 0x36cbb480
add eax, 0xc9344b85
mov ecx, 0x7d3d349d
add ecx, 0x92c2cb63
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x10002d30
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push esi
push edi
push eax
push 0x40
push 0x10
push 0x1602178
call ebx
mov edi, dword [ebp + 8]
mov ecx, 0x1602178
mov eax, dword [edi + 4]
mov dword [ecx], eax
mov eax, dword [edi + 8]
mov dword [ecx + 4], eax
mov eax, dword [edi + 0xc]
mov dword [ecx + 8], eax
mov eax, dword [edi + 0x10]
mov dword [ecx + 0xc], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 0x10
push ecx
call ebx
lea eax, [ebp + 8]
push eax
push 0x40
push 0x20
push 0x160218c
call ebx
push 0x20
lea esi, [edi + 0x14]
push esi
push 0x160218c
call fcn.1029c6c0
add esp, 0xc
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push 0x20
push 0x160218c
call ebx
lea eax, [ebp + 8]
push eax
push 0x40
push 0x10
push 0x16021a8
call ebx
mov eax, dword [edi + 4]
mov ecx, 0x16021a8
mov dword [ecx], eax
mov eax, dword [edi + 8]
mov dword [ecx + 4], eax
mov eax, dword [edi + 0xc]
mov dword [ecx + 8], eax
mov eax, dword [edi + 0x10]
mov dword [ecx + 0xc], eax
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push 0x10
push ecx
call ebx
lea eax, [ebp + 8]
push eax
push 0x40
push 0x20
push 0x16021c4
call ebx
push 0x20
push esi
push 0x16021c4
call fcn.1029c6c0
add esp, 0xc
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push 0x20
push 0x16021c4
call ebx
lea eax, [ebp + 8]
push eax
push 0x40
push 0x10
push 0x1602204
call ebx
mov eax, dword [edi + 0x54]
mov ecx, 0x1602204
mov dword [ecx], eax
mov eax, dword [edi + 0x58]
mov dword [ecx + 4], eax
mov eax, dword [edi + 0x5c]
mov dword [ecx + 8], eax
mov eax, dword [edi + 0x60]
mov dword [ecx + 0xc], eax
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push 0x10
push ecx
call ebx
lea eax, [ebp + 8]
push eax
push 0x40
push 0x20
push 0x1602218
call ebx
push 0x20
lea esi, [edi + 0x64]
push esi
push 0x1602218
call fcn.1029c6c0
add esp, 0xc
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push 0x20
push 0x1602218
call ebx
lea eax, [ebp + 8]
push eax
push 0x40
push 0x10
push 0x1602234
call ebx
mov eax, dword [edi + 0x54]
mov ecx, 0x1602234
mov dword [ecx], eax
mov eax, dword [edi + 0x58]
mov dword [ecx + 4], eax
mov eax, dword [edi + 0x5c]
mov dword [ecx + 8], eax
mov eax, dword [edi + 0x60]
mov dword [ecx + 0xc], eax
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push 0x10
push ecx
call ebx
lea eax, [ebp + 8]
push eax
push 0x40
push 0x20
push 0x1602250
call ebx
push 0x20
push esi
push 0x1602250
call fcn.1029c6c0
add esp, 0xc
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push 0x20
push 0x1602250
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10006b00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102c03b6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x102dd418]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], 0x102d8664
call fcn.10299ae3
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.10297b34
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10009680
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x102dd418]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.10009e40
test al, al
je 0x100097ff
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ecx, dword [0x102e200c]
add ecx, dword [0x102e2008]
cmp eax, ecx
jbe 0x100096cf
mov byte [0x102e2004], 0xff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1029978f
mov esp, ebp
pop ebp
ret
call esi
sub eax, dword [0x102e2008]
sub esp, 0x10
movss xmm2, dword [0x102d8da0]
mov esi, 0x83f98c
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x102d8db0]
mov eax, dword [0x102e200c]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mulss xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x102d8db0]
mov dword [esp + 0xc], 0x42a00000
mov dword [esp + 8], 0x43510000
mov dword [esp + 4], 0x42960000
mov dword [esp], 0x43570000
cvtpd2ps xmm0, xmm0
push 0x7b14
divss xmm1, xmm0
minss xmm2, xmm1
movss dword [ebp - 0x108], xmm2
call esi
add esp, 4
mov dword [esp + 0xc], 0x41900000
mov dword [esp + 8], 0x43200000
mov dword [esp + 4], 0x42e60000
mov dword [esp], 0x43700000
push 0x7a65
call esi
movss xmm0, dword [ebp - 0x108]
add esp, 4
mov dword [esp + 0xc], 0x41000000
movss dword [esp + 8], xmm0
mov dword [esp + 4], 0x42f00000
mov dword [esp], 0x43750000
push 0x7a66
call esi
cmp dword [0x102e2024], 0x10
mov eax, 0x102e2010
cmovae eax, dword [0x102e2010]
push eax
lea eax, [ebp - 0x104]
push 0x102d8574
push eax
call fcn.100092d0
add esp, 0x20
lea eax, [ebp - 0x104]
push 0
push ecx
mov dword [esp], 0x43200000
push 3
push 0
push 0xffffffffffffffff
push 0x64
push 0xf0
push eax
mov eax, 0x89627a
call eax
add esp, 0x20
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1029978f
mov esp, ebp
pop ebp
ret
Function at 0x100098c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x102dd418]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.10009e40
test al, al
je 0x10009a3f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ecx, dword [0x102e2030]
add ecx, dword [0x102e202c]
cmp eax, ecx
jbe 0x1000990f
mov byte [0x102e2028], 0xff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1029978f
mov esp, ebp
pop ebp
ret
call esi
sub eax, dword [0x102e202c]
sub esp, 0x10
movss xmm2, dword [0x102d8da0]
mov esi, 0x83f98c
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x102d8db0]
mov eax, dword [0x102e2030]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mulss xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x102d8db0]
mov dword [esp + 0xc], 0x42a00000
mov dword [esp + 8], 0x43510000
mov dword [esp + 4], 0x42960000
mov dword [esp], 0x43570000
cvtpd2ps xmm0, xmm0
push 0x7b14
divss xmm1, xmm0
minss xmm2, xmm1
movss dword [ebp - 0x108], xmm2
call esi
add esp, 4
mov dword [esp + 0xc], 0x41900000
mov dword [esp + 8], 0x43200000
mov dword [esp + 4], 0x42e60000
mov dword [esp], 0x43700000
push 0x7a65
call esi
movss xmm0, dword [ebp - 0x108]
add esp, 4
mov dword [esp + 0xc], 0x41000000
movss dword [esp + 8], xmm0
mov dword [esp + 4], 0x42f00000
mov dword [esp], 0x43750000
push 0x7a66
call esi
cmp dword [0x102e2048], 0x10
mov eax, 0x102e2034
cmovae eax, dword [0x102e2034]
push eax
lea eax, [ebp - 0x104]
push 0x102d8574
push eax
call fcn.100092d0
add esp, 0x20
lea eax, [ebp - 0x104]
push 0
push ecx
mov dword [esp], 0x43200000
push 3
push 0
push 0xffffffffffffffff
push 0x64
push 0xf0
push eax
mov eax, 0x89627a
call eax
add esp, 0x20
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1029978f
mov esp, ebp
pop ebp
ret
Function at 0x10009a50
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x102dd418]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 8]
mov byte [0x102e204c], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x102e2084], 0x10
mov dword [0x102e2050], eax
mov eax, 0x102e2070
cmovae eax, dword [0x102e2070]
mov dword [0x102e2054], 0xbb8
mov dword [0x102e2080], 0
mov byte [eax], 0
mov eax, 0x102e2058
cmp dword [0x102e206c], 0x10
mov dword [0x102e2068], 0
cmovae eax, dword [0x102e2058]
mov byte [eax], 0
movzx eax, byte [0x102e204c]
sub eax, 0
je 0x10009b73
sub eax, 1
je 0x10009b4c
sub eax, 1
jne 0x10009bfe
push 0x5d3
call fcn.10009e70
add esp, 4
push eax
lea eax, [ebp - 0x208]
push 0x102d8574
push eax
call fcn.100092d0
mov eax, 0x10624dd3
add esp, 0xc
mul dword [ebp + 0xc]
lea eax, [ebp - 0x108]
shr edx, 6
push edx
push str._Accumulated_time:__d_seconds_
push eax
call fcn.100092d0
add esp, 0xc
cmp byte [ebp - 0x108], 0
jne 0x10009b30
xor ecx, ecx
jmp 0x10009bec
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10009b40
jmp 0x10009bea
push 0x5d2
call fcn.10009e70
add esp, 4
push eax
lea eax, [ebp - 0x208]
push 0x102d8574
push eax
call fcn.100092d0
add esp, 0xc
jmp 0x10009bfe
push 0x5d1
call fcn.10009e70
add esp, 4
push eax
lea eax, [ebp - 0x208]
push 0x102d8574
push eax
call fcn.100092d0
mov eax, 0x10624dd3
add esp, 0xc
mul dword [ebp + 0xc]
lea eax, [ebp - 0x108]
shr edx, 6
push edx
push str._Accumulated_time:__d_seconds_
push eax
call fcn.100092d0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x102e2050], eax
mov eax, 0xee48
sub eax, dword [ebp + 0xc]
cmp byte [ebp - 0x108], 0
mov dword [0x102e2054], eax
jne 0x10009bda
xor ecx, ecx
jmp 0x10009bec
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10009be3
sub ecx, edx
push ecx
lea eax, [ebp - 0x108]
mov ecx, 0x102e2070
push eax
call fcn.10009150
cmp byte [ebp - 0x208], 0
jne 0x10009c0b
xor ecx, ecx
jmp 0x10009c1d
lea ecx, [ebp - 0x208]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10009c14
sub ecx, edx
push ecx
lea eax, [ebp - 0x208]
mov ecx, 0x102e2058
push eax
call fcn.10009150
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1029978f
mov esp, ebp
pop ebp
ret 8
Function at 0x10009c40
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x102dd418]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.10009e40
test al, al
je 0x10009e28
mov al, byte [0x102e204c]
cmp al, 3
je 0x10009e28
cmp al, 4
je 0x10009e28
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ecx, dword [0x102e2054]
add ecx, dword [0x102e2050]
cmp eax, ecx
jbe 0x10009ca4
mov byte [0x102e204c], 0xff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1029978f
mov esp, ebp
pop ebp
ret
call esi
sub eax, dword [0x102e2050]
sub esp, 0x10
movss xmm2, dword [0x102d8da0]
mov esi, 0x83f98c
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x102d8db0]
mov eax, dword [0x102e2054]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mulss xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x102d8db0]
mov dword [esp + 0xc], 0x42a00000
mov dword [esp + 8], 0x43510000
mov dword [esp + 4], 0x42960000
mov dword [esp], 0x43570000
cvtpd2ps xmm0, xmm0
push 0x7b14
divss xmm1, xmm0
minss xmm2, xmm1
movss dword [ebp - 0x208], xmm2
call esi
add esp, 4
mov dword [esp + 0xc], 0x41900000
mov dword [esp + 8], 0x43200000
mov dword [esp + 4], 0x42e60000
mov dword [esp], 0x43700000
push 0x7a65
call esi
movss xmm0, dword [ebp - 0x208]
add esp, 4
mov dword [esp + 0xc], 0x41000000
movss dword [esp + 8], xmm0
mov dword [esp + 4], 0x42f00000
mov dword [esp], 0x43750000
push 0x7a66
call esi
cmp dword [0x102e206c], 0x10
mov eax, 0x102e2058
cmovae eax, dword [0x102e2058]
push eax
lea eax, [ebp - 0x104]
push 0x102d8574
push eax
call fcn.100092d0
add esp, 0x20
lea eax, [ebp - 0x104]
mov esi, 0x89627a
push 0
push ecx
mov dword [esp], 0x43200000
push 3
push 0
push 0xffffffffffffffff
push 0x5f
push 0xf0
push eax
call esi
add esp, 0x20
cmp dword [0x102e2080], 0
je 0x10009e27
cmp dword [0x102e2084], 0x10
mov eax, 0x102e2070
cmovae eax, dword [0x102e2070]
push eax
lea eax, [ebp - 0x204]
push 0x102d8574
push eax
call fcn.100092d0
add esp, 0xc
lea eax, [ebp - 0x204]
push 0
push ecx
mov dword [esp], 0x43200000
push 3
push 0
push 0xffffffffffffffff
push 0x69
push 0xf0
push eax
call esi
add esp, 0x20
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1029978f
mov esp, ebp
pop ebp
ret
Function at 0x1000be10
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x102dd418]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x102e2a30], 0
jne 0x1000be93
lea eax, [ebp - 0x198]
mov byte [0x102e2a30], 1
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1000be6d
push str.Winsock_DLL_Initialize_error._r_n
push 0x1855d10
mov eax, 0xf598fb
call eax
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1029978f
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x198]
cmp al, 2
jne 0x1000bea6
shr eax, 8
cmp al, 2
jne 0x1000bea6
mov dword ds:[0xa6a1774], 0
movzx eax, word [ebp - 0x12]
mov dword ds:[0xa6a1770], eax
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.1029978f
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
push str.Winsock_version_low._r_n
jmp 0x1000be4e

Function at 0x1000bfb0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x102dd418]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x110]
push edi
mov edi, dword [ebp + 8]
push 0x80
push 0
push eax
call fcn.1029c430
push 0x80
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.1029c430
add esp, 0x18
mov dword [ebp - 0x118], 0x80
cmp byte [0x102e2a31], 0
mov dword [ebp - 0x114], 0x80
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xffff0000
je 0x1000c062
push 4
push 0x102e2a34
push 0x1b
push 0x29
push dword [0x102e2a2c]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1000c062
push dword [0x102e2a2c]
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1029978f
mov esp, ebp
pop ebp
ret 8
push 0
push 0
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x118]
push eax
push ebx
push edi
push dword [0x102e2a2c]
call dword [sym.imp.WS2_32.dll_WSAConnectByNameA]
test eax, eax
je 0x1000c042
push 0
push 0
push 0x7010
push 0xffff
push dword [0x102e2a2c]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1000c042
cmp byte [0x102e2a31], 0
je 0x1000c0e6
lea ecx, [ebp - 0x88]
mov eax, dword [ecx]
lea edx, [ebp - 0x10]
cmp eax, dword [edx]
jne 0x1000c0df
mov eax, dword [ecx + 4]
cmp eax, dword [edx + 4]
jne 0x1000c0df
mov eax, dword [ecx + 8]
cmp eax, dword [edx + 8]
jne 0x1000c0df
xor al, al
jmp 0x1000c0e1
mov al, 1
mov byte [0x102e2a38], al
push 0x23
push 0x400
push dword [0x102dfd30]
push dword [0x102e2a2c]
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
cmp eax, 0xffffffff
je 0x1000c042
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop ebx
call fcn.1029978f
mov esp, ebp
pop ebp
ret 8
Function at 0x1000ec30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102c0b08
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x102dd418]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x1000ed5e
cmp byte [ebx + 0x3d], 0
je 0x1000ed5e
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x1000ec89
xor al, al
jmp 0x1000ed60
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.10006a30
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x1000ecef
sub eax, 1
je 0x1000ecf3
mov ecx, dword [ebp - 0x14]
sub eax, 2
je 0x1000ed46
xor bl, bl
jmp 0x1000ed48
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x1000ed28
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.102a2fa5
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x1000eceb
cmp byte [ebx + 0x3d], 0
je 0x1000ed46
test esi, esi
jne 0x1000ecb1
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.10008710
jmp 0x1000ecae
mov bl, 1
cmp ecx, 0x10
jb 0x1000ed5a
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.10009330
mov al, bl
jmp 0x1000ed60
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1029978f
mov esp, ebp
pop ebp
ret
Function at 0x10257c50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 1
cmp ax, dx
jae 0x10257c96
push ebx
movzx ebx, word [ebp + 8]
lea eax, [ecx + 1]
push esi
push edi
lea edi, [ecx - 1]
sub ebx, edi
sub edi, ecx
lea ecx, [edx - 1]
movzx esi, cx
lea edx, [edi + eax]
lea ecx, [edx + ebx]
and ecx, 0x1f
lea eax, [eax + 1]
mov cl, byte [ecx + 0x102d8430]
xor cl, byte [eax - 1]
xor cl, byte [edx]
mov byte [eax - 1], cl
sub esi, 1
jne 0x10257c74
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10257ca0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
lea eax, [edx - 1]
push esi
movzx esi, ax
test si, si
je 0x10257ce7
push ebx
movzx ebx, word [ebp + 8]
lea eax, [ecx + esi]
push edi
lea edi, [ecx - 1]
sub ebx, edi
sub edi, ecx
nop
lea edx, [edi + eax]
add esi, 0xffff
lea ecx, [edx + ebx]
and ecx, 0x1f
lea eax, [eax - 1]
mov cl, byte [ecx + 0x102d8430]
xor cl, byte [eax + 1]
xor cl, byte [edx]
mov byte [eax + 1], cl
test si, si
jne 0x10257cc0
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x10258b70
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x2c]
sub esp, 0x14
mov ecx, dword [0x102df56c]
push ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x102e2c74]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [ecx + 4]
jle 0x10258bc4
push 0x102e2c74
call fcn.10299c8a
add esp, 4
cmp dword [0x102e2c74], 0xffffffff
jne 0x10258bc4
call esi
push 0x102e2c74
mov dword [0x102e2c78], eax
call fcn.10299c4b
add esp, 4
call esi
sub eax, dword [0x102e2c78]
cmp eax, 0x2710
jbe 0x10258c77
call esi
mov dword [0x102e2c78], eax
mov eax, dword [0x102e208c]
mov cl, al
mov dword [ebp - 8], eax
add cl, 0xdc
mov al, byte [ebp - 5]
mov dl, byte [ebp - 7]
add al, 0xd9
mov bl, byte [ebp - 6]
add dl, 0xdb
mov byte [ebp - 1], al
add bl, 0xda
mov eax, dword [0x102e2088]
mov dh, al
mov dword [ebp - 8], eax
add dh, 0xe0
mov al, byte [ebp - 6]
mov bh, byte [ebp - 7]
add al, 0xde
mov byte [ebp - 2], al
add bh, 0xdf
mov al, byte [ebp - 5]
movzx ecx, cl
add al, 0xdd
shl ecx, 8
mov byte [ebp - 3], al
movzx eax, dl
or ecx, eax
movzx eax, bl
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 1]
shl ecx, 8
or ecx, eax
movzx eax, bh
push ecx
movzx ecx, dh
shl ecx, 8
or ecx, eax
mov al, byte [ebp - 2]
movzx eax, al
shl ax, 8
shl ecx, 0x10
movzx eax, ax
or ecx, eax
movzx eax, byte [ebp - 3]
or ecx, eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.10259170
movzx edx, byte [ebp - 0x13]
lea ecx, [ebp - 0x14]
call fcn.10258ab0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret