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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push ebx
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
push esi
push edi
mov edi, eax
rol eax, 8
and eax, 0xff00ff
mov ebx, 0xc6ef3720
ror edi, 8
and edi, 0xff00ff00
or edi, eax
mov eax, ecx
ror eax, 8
and eax, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or eax, ecx
lea ecx, [ecx]
mov edx, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0xb
and ecx, 3
mov ecx, dword [edx + ecx*4]
mov esi, ecx
ror esi, 8
and esi, 0xff00ff00
mov edx, edi
rol ecx, 8
and ecx, 0xff00ff
or esi, ecx
shr edx, 5
add esi, ebx
mov ecx, edi
shl ecx, 4
xor edx, ecx
add edx, edi
xor esi, edx
mov edx, dword [ebp + 8]
add ebx, 0x61c88647
sub eax, esi
mov ecx, ebx
and ecx, 3
mov ecx, dword [edx + ecx*4]
mov esi, ecx
ror esi, 8
and esi, 0xff00ff00
mov edx, eax
rol ecx, 8
and ecx, 0xff00ff
or esi, ecx
shr edx, 5
mov ecx, eax
shl ecx, 4
xor edx, ecx
add esi, ebx
add edx, eax
xor esi, edx
sub edi, esi
test ebx, ebx
jne 0x1024d900
mov edx, dword [ebp + 0xc]
mov ecx, edi
ror ecx, 8
and ecx, 0xff00ff00
rol edi, 8
and edi, 0xff00ff
or ecx, edi
mov dword [edx], ecx
mov ecx, eax
pop edi
pop esi
ror ecx, 8
and ecx, 0xff00ff00
pop ebx
rol eax, 8
and eax, 0xff00ff
or ecx, eax
mov dword [edx + 4], ecx
pop ebp
ret

Function at 0x1024d9b0
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push ebx
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
push esi
push edi
mov edi, eax
rol eax, 8
and eax, 0xff00ff
ror edi, 8
and edi, 0xff00ff00
or edi, eax
mov eax, ecx
ror eax, 8
and eax, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or eax, ecx
xor ebx, ebx
lea ebx, [ebx]
mov edx, dword [ebp + 8]
mov ecx, ebx
and ecx, 3
mov ecx, dword [edx + ecx*4]
mov esi, ecx
rol ecx, 8
and ecx, 0xff00ff
mov edx, eax
ror esi, 8
and esi, 0xff00ff00
or esi, ecx
add esi, ebx
shr edx, 5
mov ecx, eax
shl ecx, 4
xor edx, ecx
add edx, eax
xor esi, edx
mov edx, dword [ebp + 8]
sub ebx, 0x61c88647
add edi, esi
mov ecx, ebx
shr ecx, 0xb
and ecx, 3
mov ecx, dword [edx + ecx*4]
mov esi, ecx
ror esi, 8
and esi, 0xff00ff00
mov edx, edi
rol ecx, 8
and ecx, 0xff00ff
or esi, ecx
shr edx, 5
mov ecx, edi
shl ecx, 4
xor edx, ecx
add esi, ebx
add edx, edi
xor esi, edx
add eax, esi
cmp ebx, 0xc6ef3720
jne 0x1024d9f0
mov edx, dword [ebp + 0xc]
mov ecx, edi
ror ecx, 8
and ecx, 0xff00ff00
rol edi, 8
and edi, 0xff00ff
or ecx, edi
mov dword [edx], ecx
mov ecx, eax
pop edi
pop esi
ror ecx, 8
and ecx, 0xff00ff00
pop ebx
rol eax, 8
and eax, 0xff00ff
or ecx, eax
mov dword [edx + 4], ecx
pop ebp
ret
Function at 0x1024dd10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0xc]
push ebx
mov ecx, dword [edx]
mov ebx, dword [ebp + 8]
mov eax, ecx
rol ecx, 8
and ecx, 0xff00ff
push esi
ror eax, 8
and eax, 0xff00ff00
or eax, ecx
mov ecx, dword [edx + 4]
push edi
mov edi, ecx
mov dword [ebp - 4], 0x10
rol ecx, 8
and ecx, 0xff00ff
ror edi, 8
and edi, 0xff00ff00
or edi, ecx
lea ecx, [ebx + 0x1044]
mov dword [ebp + 8], ecx
lea ecx, [ecx]
xor eax, dword [ecx]
mov edx, eax
shr edx, 0x10
and edx, 0xff
mov ecx, eax
mov edx, dword [ebx + edx*4 + 0x400]
shr ecx, 0x18
mov esi, eax
add edx, dword [ebx + ecx*4]
mov ecx, eax
shr ecx, 8
and ecx, 0xff
movzx eax, al
xor edx, dword [ebx + ecx*4 + 0x800]
mov ecx, dword [ebp + 8]
add edx, dword [ebx + eax*4 + 0xc00]
sub ecx, 4
xor edx, edi
dec dword [ebp - 4]
mov eax, edx
mov edi, esi
mov dword [ebp + 8], ecx
jne 0x1024dd60
xor edi, dword [ebx + 0x1000]
mov ecx, dword [ebx + 0x1004]
mov edx, dword [ebp + 0xc]
xor ecx, eax
mov eax, edi
ror eax, 8
and eax, 0xff00ff00
rol edi, 8
and edi, 0xff00ff
or eax, edi
mov dword [edx], eax
mov eax, ecx
pop edi
pop esi
ror eax, 8
and eax, 0xff00ff00
pop ebx
rol ecx, 8
and ecx, 0xff00ff
or eax, ecx
mov dword [edx + 4], eax
mov esp, ebp
pop ebp
ret

Function at 0x1024de00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0xc]
push ebx
mov ecx, dword [edx]
mov ebx, dword [ebp + 8]
mov eax, ecx
rol ecx, 8
and ecx, 0xff00ff
push esi
ror eax, 8
and eax, 0xff00ff00
or eax, ecx
mov ecx, dword [edx + 4]
push edi
mov edi, ecx
mov dword [ebp - 4], 0x10
rol ecx, 8
and ecx, 0xff00ff
ror edi, 8
and edi, 0xff00ff00
or edi, ecx
lea ecx, [ebx + 0x1000]
mov dword [ebp + 8], ecx
lea ecx, [ecx]
xor eax, dword [ecx]
mov edx, eax
shr edx, 0x10
and edx, 0xff
mov ecx, eax
mov edx, dword [ebx + edx*4 + 0x400]
shr ecx, 0x18
mov esi, eax
add edx, dword [ebx + ecx*4]
mov ecx, eax
shr ecx, 8
and ecx, 0xff
movzx eax, al
xor edx, dword [ebx + ecx*4 + 0x800]
mov ecx, dword [ebp + 8]
add edx, dword [ebx + eax*4 + 0xc00]
add ecx, 4
xor edx, edi
dec dword [ebp - 4]
mov eax, edx
mov edi, esi
mov dword [ebp + 8], ecx
jne 0x1024de50
xor edi, dword [ebx + 0x1044]
mov ecx, dword [ebx + 0x1040]
mov edx, dword [ebp + 0xc]
xor ecx, eax
mov eax, edi
ror eax, 8
and eax, 0xff00ff00
rol edi, 8
and edi, 0xff00ff
or eax, edi
mov dword [edx], eax
mov eax, ecx
pop edi
pop esi
ror eax, 8
and eax, 0xff00ff00
pop ebx
rol ecx, 8
and ecx, 0xff00ff
or eax, ecx
mov dword [edx + 4], eax
mov esp, ebp
pop ebp
ret
Function at 0x1024e140
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
push ebx
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
lea ebx, [edi + 0x1000]
mov dword [ebp + 8], 0x10
xor eax, dword [ebx]
lea ebx, [ebx + 4]
mov edx, eax
shr edx, 0x10
and edx, 0xff
mov ecx, eax
mov edx, dword [edi + edx*4 + 0x400]
shr ecx, 0x18
mov esi, eax
add edx, dword [edi + ecx*4]
mov ecx, eax
shr ecx, 8
and ecx, 0xff
movzx eax, al
xor edx, dword [edi + ecx*4 + 0x800]
add edx, dword [edi + eax*4 + 0xc00]
xor edx, dword [ebp - 4]
dec dword [ebp + 8]
mov eax, edx
mov edx, esi
mov dword [ebp - 4], edx
jne 0x1024e162
mov ecx, dword [edi + 0x1040]
xor ecx, eax
mov eax, dword [edi + 0x1044]
xor eax, edx
mov edx, dword [ebp + 0xc]
pop edi
pop esi
mov dword [edx], eax
mov dword [edx + 4], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1024e1d0
Capabilities:
Encode data using xor
Encrypt data using blowfish
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor edx, edx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea ecx, [ebx + 0x800]
mov esi, 0x100
lea esp, [esp]
mov eax, dword [edx + 0x10515b30]
mov dword [ecx - 0x800], eax
mov eax, dword [edx + 0x10515f30]
mov dword [ecx - 0x400], eax
mov eax, dword [edx + 0x10516330]
mov dword [ecx], eax
mov eax, dword [edx + 0x10516730]
mov dword [ecx + 0x400], eax
lea edx, [edx + 4]
lea ecx, [ecx + 4]
dec esi
jne 0x1024e1f0
lea edi, [ebx + 0x1000]
mov ecx, 0x10516b30
mov dword [ebp - 4], edi
mov edx, edi
mov esi, 0x12
lea ebx, [ebx]
mov eax, dword [ecx]
mov dword [edx], eax
lea ecx, [ecx + 4]
lea edx, [edx + 4]
dec esi
jne 0x1024e240
movsx ebx, word [ebp + 0x10]
xor eax, eax
mov dword [ebp - 0xc], 0x12
lea ebx, [ebx]
movsx esi, ax
mov eax, esi
cdq
idiv ebx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0xc]
movzx ecx, byte [edx + eax]
lea eax, [esi + 1]
cdq
idiv ebx
shl ecx, 8
movzx eax, byte [edx + edi]
or ecx, eax
lea eax, [esi + 2]
cdq
idiv ebx
shl ecx, 8
movzx eax, byte [edx + edi]
or ecx, eax
lea eax, [esi + 3]
cdq
idiv ebx
shl ecx, 8
movzx eax, byte [edx + edi]
or ecx, eax
lea eax, [esi + 4]
cdq
idiv ebx
mov edi, dword [ebp - 4]
add edi, 4
xor dword [edi - 4], ecx
dec dword [ebp - 0xc]
mov dword [ebp - 4], edi
movzx eax, dx
jne 0x1024e260
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea esi, [ebx + 0x1004]
mov edi, 9
lea eax, [ebp - 8]
push eax
push ebx
call sym.php5.dll_blowfish_compat_LTX__mcrypt_encrypt
mov eax, dword [ebp - 8]
mov dword [esi - 4], eax
mov eax, dword [ebp - 4]
add esp, 8
mov dword [esi], eax
lea esi, [esi + 8]
dec edi
jne 0x1024e2d5
mov esi, ebx
mov dword [ebp - 0xc], 4
lea esp, [esp]
mov edi, 0x80
lea eax, [ebp - 8]
push eax
push ebx
call sym.php5.dll_blowfish_compat_LTX__mcrypt_encrypt
mov eax, dword [ebp - 8]
mov dword [esi], eax
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
add esp, 8
add esi, 8
dec edi
jne 0x1024e305
dec dword [ebp - 0xc]
jne 0x1024e300
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1024e660
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x420
push 0
push esi
call sub.MSVCR110.dll_memset
mov eax, dword [ebp + 0x10]
mov ecx, 0xd
cmp eax, ecx
cmovg eax, ecx
push eax
push dword [ebp + 0xc]
lea edi, [esi + 0x400]
push edi
mov dword [esi + 0x41c], 0
mov dword [esi + 0x418], 0
mov dword [esi + 0x414], 0
mov dword [esi + 0x410], 0
call dword [sym.imp.MSVCR110.dll_memmove]
add esp, 0x18
mov edx, 0x7b
xor ecx, ecx
lea esp, [esp]
movsx eax, byte [edi + ecx]
imul edx, eax
add edx, ecx
inc ecx
cmp ecx, 0xd
jl 0x1024e6d0
mov dword [ebp - 4], edx
lea edi, [esi + 0x300]
mov edx, esi
xor ecx, ecx
sub edx, edi
mov edi, edi
lea eax, [edi + ecx]
mov byte [edx + eax], cl
mov byte [eax], cl
inc ecx
cmp ecx, 0x100
jl 0x1024e6f0
mov eax, 1
sub eax, esi
lea edi, [esi + 0x200]
mov dword [ebp - 8], eax
xor ecx, ecx
mov eax, edi
sub eax, esi
mov dword [ebp + 0x10], ecx
mov ebx, 0xff
mov dword [ebp - 0xc], eax
jmp 0x1024e727
mov esi, dword [ebp + 8]
mov eax, 0x4ec4ec4f
imul ecx
mov eax, dword [ebp + 0x10]
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul ecx, ecx, 0xd
sub eax, ecx
movsx ecx, byte [eax + esi + 0x400]
mov eax, dword [ebp - 4]
add esi, ebx
lea eax, [eax + eax*4]
add ecx, eax
mov eax, 0x80078071
imul ecx
add edx, ecx
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0xfff1
mov edx, ecx
sub edx, eax
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 8]
movzx eax, dl
lea ecx, [ecx + esi]
mov dword [ebp - 0x10], edx
xor edx, edx
div ecx
mov ecx, dword [ebp + 8]
movsx eax, byte [esi]
mov cl, byte [edx + ecx]
mov byte [esi], cl
mov ecx, dword [ebp + 8]
mov byte [edx + ecx], al
mov eax, dword [ebp - 0xc]
cmp byte [eax + esi], 0
jne 0x1024e7c3
mov eax, dword [ebp - 0x10]
shr eax, 8
and eax, 0xff
xor edx, edx
div ebx
cmp byte [edi + edx], 0
je 0x1024e7bd
lea eax, [edx + 1]
cdq
idiv ebx
cmp byte [edi + edx], 0
jne 0x1024e7b1
mov byte [ebx + edi], dl
mov byte [edi + edx], bl
mov ecx, dword [ebp + 0x10]
inc ecx
dec ebx
mov dword [ebp + 0x10], ecx
cmp ebx, 0xffffffff
jg 0x1024e724
mov edx, dword [ebp + 8]
pop edi
pop esi
xor ecx, ecx
pop ebx
lea esp, [esp]
movzx eax, byte [ecx + edx]
mov byte [eax + edx + 0x100], cl
inc ecx
cmp ecx, 0x100
jl 0x1024e7e0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1024edd0
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0
push esi
call fcn.1024f040
push 1
push esi
call fcn.1024f040
push 2
push esi
call fcn.1024f040
lea eax, [esi + 0x1980]
push 0x10648708
push eax
call fcn.1024eef0
lea eax, [esi + 0x2180]
push 0x10648748
push eax
call fcn.1024eef0
add esp, 0x28
xor eax, eax
pop esi
pop ebp
ret
Function at 0x1024f040
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x106499c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
xor edx, edx
jmp 0x1024f060
xor eax, eax
movsx ecx, byte [eax + 0x10648a00]
dec ecx
cmp ecx, edx
je 0x1024f076
inc eax
cmp eax, 0x20
jl 0x1024f062
jmp 0x1024f07a
mov byte [ebp + edx - 0x24], al
inc edx
cmp edx, 0x20
jl 0x1024f060
lea eax, [ebp - 0x23]
shl esi, 0xb
add edi, 0x180
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], 0x10648800
add edi, esi
xor esi, esi
lea ebx, [ebx]
mov ecx, esi
sar ecx, 1
mov eax, esi
and eax, 1
shl eax, 4
and ecx, 0xf
or ecx, eax
mov eax, esi
and eax, 0x20
or ecx, eax
mov eax, dword [ebp - 0x2c]
xor edx, edx
movsx ebx, byte [eax + ecx]
test bl, 8
je 0x1024f0db
mov eax, dword [ebp - 0x28]
mov ecx, 0x1f
movsx eax, byte [eax - 1]
sub ecx, eax
mov edx, 1
shl edx, cl
test bl, 4
je 0x1024f0f6
mov eax, dword [ebp - 0x28]
mov ecx, 0x1f
movsx eax, byte [eax]
sub ecx, eax
mov eax, 1
shl eax, cl
or edx, eax
test bl, 2
je 0x1024f112
mov eax, dword [ebp - 0x28]
mov ecx, 0x1f
movsx eax, byte [eax + 1]
sub ecx, eax
mov eax, 1
shl eax, cl
or edx, eax
test bl, 1
mov ebx, dword [ebp - 0x28]
je 0x1024f12e
movsx eax, byte [ebx + 2]
mov ecx, 0x1f
sub ecx, eax
mov eax, 1
shl eax, cl
or edx, eax
mov dword [edi], edx
inc esi
add edi, 4
cmp esi, 0x40
jl 0x1024f0a0
mov eax, dword [ebp - 0x2c]
add eax, 0x40
add ebx, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ebx
cmp eax, 0x10648a00
jl 0x1024f098
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10311bec
mov esp, ebp
pop ebp
ret
Function at 0x10250020
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
movzx ebx, byte [eax + 0x100]
movzx ecx, byte [eax + 0x101]
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
test edi, edi
jle 0x10250082
inc ebx
and ebx, 0xff
inc esi
movzx edx, byte [ebx + eax]
add ecx, edx
and ecx, 0xff
mov dword [ebp + 8], ecx
movzx ecx, byte [ecx + eax]
mov byte [ebx + eax], cl
mov ecx, dword [ebp + 8]
mov byte [ecx + eax], dl
movzx ecx, byte [ebx + eax]
add ecx, edx
mov edx, dword [ebp + 0xc]
and ecx, 0xff
movzx ecx, byte [ecx + eax]
xor byte [esi + edx - 1], cl
mov ecx, dword [ebp + 8]
cmp esi, edi
jl 0x10250040
pop edi
pop esi
mov byte [eax + 0x100], bl
mov byte [eax + 0x101], cl
pop ebx
pop ebp
ret

Function at 0x10250300
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
jmp 0x10250310
mov byte [eax + esi], al
inc eax
cmp eax, 0x100
jl 0x10250310
xor edi, edi
mov word [esi + 0x100], 0
xor ebx, ebx
mov eax, edi
cdq
idiv dword [ebp + 0x10]
movzx ecx, byte [edi + esi]
mov eax, dword [ebp + 0xc]
inc edi
movzx eax, byte [edx + eax]
add eax, ecx
add ebx, eax
and ebx, 0xff
mov al, byte [ebx + esi]
mov byte [edi + esi - 1], al
mov byte [ebx + esi], cl
cmp edi, 0x100
jl 0x10250328
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x102506c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x102506cc
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.102506e0
Function at 0x10252470
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
test ebx, ebx
je 0x10252601
mov esi, dword [ebx + 0x1c]
test esi, esi
je 0x10252601
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x10252601
mov eax, dword [esi + 0x18]
mov dword [ebp - 8], eax
cmp eax, 2
je 0x10252601
cmp eax, 1
jne 0x102524b7
cmp dword [esi + 4], 0x2a
jne 0x10252601
cmp dword [esi + 0x74], 0
jne 0x10252601
push edi
mov edi, dword [ebp + 0x10]
cmp eax, 1
jne 0x102524e0
push edi
push ecx
push dword [ebx + 0x30]
call sym.php5.dll_adler32
mov ecx, dword [ebp + 0xc]
mov dword [ebx + 0x30], eax
mov eax, dword [ebp - 8]
add esp, 0xc
mov dword [esi + 0x18], 0
cmp edi, dword [esi + 0x2c]
jb 0x10252537
test eax, eax
jne 0x1025252f
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x4c]
xor edx, edx
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call sub.MSVCR110.dll_memset
mov ecx, dword [ebp + 0xc]
add esp, 0xc
mov dword [esi + 0x6c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x16b4], 0
sub edi, dword [esi + 0x2c]
add ecx, edi
mov edi, dword [esi + 0x2c]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
push esi
mov dword [ebp - 0xc], eax
mov dword [ebx + 4], edi
mov dword [ebx], ecx
call fcn.10252ab0
add esp, 4
cmp dword [esi + 0x74], 3
jb 0x102525b9
mov eax, dword [esi + 0x74]
mov ebx, dword [esi + 0x6c]
sub eax, 2
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x58]
movzx edi, byte [eax + ebx + 2]
mov eax, dword [esi + 0x48]
mov edx, dword [esi + 0x34]
shl eax, cl
mov ecx, dword [esi + 0x40]
and edx, ebx
xor edi, eax
and edi, dword [esi + 0x54]
mov eax, dword [esi + 0x44]
mov dword [esi + 0x48], edi
mov ax, word [eax + edi*2]
mov word [ecx + edx*2], ax
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2], bx
inc ebx
dec dword [ebp - 4]
jne 0x10252562
push esi
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x74], 2
call fcn.10252ab0
add esp, 4
cmp dword [esi + 0x74], 3
jae 0x10252556
mov ebx, dword [ebp + 8]
mov ecx, dword [esi + 0x74]
add dword [esi + 0x6c], ecx
mov eax, dword [esi + 0x6c]
mov dword [esi + 0x5c], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x16b4], ecx
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
mov dword [esi + 0x68], 0
mov dword [ebx], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 8]
pop edi
mov dword [esi + 0x18], eax
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov eax, 0xfffffffe
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10255820
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [esi], 0
mov eax, edi
sub eax, dword [esi]
push eax
mov eax, dword [ebp + 0xc]
add eax, dword [esi]
push eax
push dword [ebx + 0x14]
call dword [sym.imp.MSVCR110.dll__read]
add esp, 0xc
test eax, eax
jle 0x10255858
add dword [esi], eax
cmp dword [esi], edi
jb 0x10255835
test eax, eax
jns 0x1025587c
call dword [sym.imp.MSVCR110.dll__errno]
push dword [eax]
call dword [sym.imp.MSVCR110.dll_strerror]
push eax
push 0xffffffffffffffff
push ebx
call fcn.10254d60
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret
test eax, eax
jne 0x10255887
mov dword [ebx + 0x40], 1
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x1025a410
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x1025a41d
xor eax, eax
pop esi
ret
cmp dword [esi], 0
je 0x1025a419
mov eax, dword [esp + 8]
test eax, eax
jne 0x1025a433
call dword [sym.imp.MSVCR110.dll___iob_func]
add eax, 0x20
push eax
push dword [esi + 4]
push 1
push dword [esi]
call dword [sym.imp.MSVCR110.dll_fwrite]
add esp, 0x10
pop esi
ret
Function at 0x1026a7c0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x1026a7fd
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x1026a7fd
push esi
push eax
push dword [esp + 0x14]
push 1
push ecx
call dword [sym.imp.MSVCR110.dll_fread]
mov esi, eax
add esp, 0x10
test esi, esi
jns 0x1026a7f9
push str.fread__
push 0
push 8
call fcn.10269820
add esp, 0xc
mov eax, esi
pop esi
ret
or eax, 0xffffffff
ret

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

Disassembly:
mov eax, dword [esp + 8]
test eax, eax
je 0x1026a98d
mov ecx, dword [esp + 0xc]
test ecx, ecx
js 0x1026a98d
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
jmp sym.php5.dll_xmlNanoFTPRead
or eax, 0xffffffff
ret

Function at 0x1026ac70
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 8]
test eax, eax
je 0x1026ac8d
mov ecx, dword [esp + 0xc]
test ecx, ecx
js 0x1026ac8d
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
jmp sym.php5.dll_xmlNanoHTTPRead
or eax, 0xffffffff
ret

Function at 0x1026c350
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [esp + 8], 3
jne 0x1026c3ef
mov eax, dword [0x10648b84]
cmp eax, 0xffffffff
je 0x1026c3ef
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x1026c3e8
push edi
mov edi, dword [esi]
test edi, edi
je 0x1026c3a2
lea ecx, [edi + 0x1c4]
push ecx
call sym.php5.dll_xmlResetError
push edi
call dword [sym.imp.MSVCR110.dll_free]
add esp, 8
push 0
push dword [0x10648b84]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x1065f2a0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 8]
pop edi
cmp esi, dword [0x1065f298]
jne 0x1026c3c0
mov dword [0x1065f298], eax
jmp 0x1026c3c6
mov ecx, dword [esi + 4]
mov dword [ecx + 8], eax
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1026c3d3
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
push 0x1065f2a0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call dword [sym.imp.MSVCR110.dll_free]
add esp, 4
mov eax, 1
pop esi
ret
mov eax, 1
ret
Function at 0x1026c440
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
call fcn.1026c650
push dword [0x10648b84]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1026c45f
mov eax, dword [eax]
test eax, eax
jne 0x1026c4f6
push edi
call fcn.1026c5a0
mov edi, eax
test edi, edi
jne 0x1026c46d
pop edi
ret
push esi
push 0xc
call dword [sym.imp.MSVCR110.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x1026c4b1
call sym.php5.dll___xmlGenericError
mov esi, eax
call sym.php5.dll___xmlGenericErrorContext
push str.xmlGetGlobalState:_out_of_memory_n
push dword [eax]
mov eax, dword [esi]
call eax
lea eax, [edi + 0x1c4]
push eax
call sym.php5.dll_xmlResetError
push edi
call dword [sym.imp.MSVCR110.dll_free]
add esp, 0x10
xor eax, eax
pop esi
pop edi
ret
push 0x1065f2a0
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x1065f298]
test eax, eax
je 0x1026c4ca
mov dword [eax + 4], esi
push esi
push dword [0x10648b84]
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov dword [0x1065f298], esi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x1065f2a0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov eax, edi
pop edi
ret

Function at 0x1026c650
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x1065f288], 0
jne 0x1026c6ae
push 0x1065f28c
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x1026c68f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x10648b84], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x1065f29c], eax
call fcn.102e7510
mov dword [0x1065f288], 1
ret
cmp dword [0x1065f288], 0
jne 0x1026c6ae
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
nop
push 0
call esi
cmp dword [0x1065f288], 0
je 0x1026c6a0
pop esi
ret

Function at 0x1026c990
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
call sym.php5.dll_xmlIsMainThread
test eax, eax
je 0x1026c99f
mov eax, 0x10648b9c
ret
jmp sym.php5.dll_xmlGetGlobalState