joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404550
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov dword [ebp - 8], esi
mov edx, dword [ebp + 8]
lea esi, [ebp - 0x5c]
mov dword [ebp - 4], edi
lea edi, [ebp - 0x18]
mov dword [ebp - 0xc], ebx
mov ebx, 0x8000
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x44], sym.___gxx_personality_sj0
mov dword [ebp - 0x40], 0x51ff56
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], 0x404680
mov dword [ebp - 0x34], esp
mov dword [esp], esi
call sym.__Unwind_SjLj_Register
mov dword [ebp - 0x28], 0
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x28]
mov dword [ebp - 0x24], 0xffffffff
mov ecx, 1
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], edx
mov dword [ebp - 0x58], 1
call fcn.00404030
mov eax, dword [ebp - 0x24]
test eax, eax
js 0x404650
mov dword [esp], eax
mov dword [ebp - 0x58], 1
call sym._filelength
mov dword [ebp - 0x68], eax
test eax, eax
jle 0x404630
mov eax, dword [ebp - 0x24]
xor edx, edx
mov dword [ebp - 0x70], eax
shr eax, 0x1f
test al, al
je 0x4046e1
mov eax, dword [ebp - 0x24]
movzx esi, dl
mov dword [ebp - 0x6c], esi
test eax, eax
js 0x404616
mov dword [esp], eax
mov dword [ebp - 0x58], 0xffffffff
call sym._close
mov dword [ebp - 0x24], 0xffffffff
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x404792
mov edi, dword [ebp - 0x6c]
mov dword [ebp - 0x60], edi
jmp 0x404665
mov eax, dword [ebp - 0x24]
test eax, eax
js 0x404650
mov dword [esp], eax
mov dword [ebp - 0x58], 0xffffffff
call sym._close
lea esi, [esi]
lea edi, [edi]
mov dword [ebp - 0x24], 0xffffffff
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x4046bf
mov dword [ebp - 0x60], 0
lea ecx, [ebp - 0x5c]
mov dword [esp], ecx
call sym.__Unwind_SjLj_Unregister
mov eax, dword [ebp - 0x60]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp], eax
call sym._free
mov dword [ebp - 0x28], 0
jmp 0x40465e
mov dword [ebp - 0x58], 1
mov ecx, dword [ebp - 0x70]
mov dword [esp], ecx
call sym._filelength
xor edx, edx
cmp dword [ebp - 0x68], eax
jg 0x4045fa
mov ebx, dword [ebp - 0x64]
mov eax, dword [ebx]
test eax, eax
jne 0x4047a6
mov dword [ebp - 0x58], 1
mov esi, dword [ebp - 0x68]
inc esi
mov dword [ebp - 0x74], esi
mov dword [esp], esi
call sym._malloc
mov edi, dword [ebp - 0x64]
xor edx, edx
test eax, eax
mov dword [edi], eax
je 0x4045fa
mov dword [esp], eax
mov esi, dword [ebp - 0x74]
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
call sym._memset
mov dword [ebp - 0x58], 1
mov edx, dword [ebp - 0x70]
xor ecx, ecx
mov dword [esp + 8], ecx
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._lseek
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x64]
mov edi, dword [ebp - 0x70]
mov dword [esp + 8], ecx
mov eax, dword [edx]
mov dword [esp], edi
mov dword [esp + 4], eax
call sym._read
test eax, eax
jle 0x404788
mov ebx, dword [ebp - 0x64]
mov dword [ebx + 4], eax
mov edx, 1
jmp 0x4045fa
mov dword [esp], eax
call sym._free
mov dword [ebp - 0x28], 0
jmp 0x404628
mov dword [esp], eax
call sym._free
jmp 0x40470b
Function at 0x404d10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0x18]
push edi
lea edi, [ebp - 0x5c]
push esi
push ebx
sub esp, 0x6c
mov edx, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x44], sym.___gxx_personality_sj0
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x40], 0x51ff5c
mov dword [ebp - 0x38], 0x404e45
mov dword [ebp - 0x34], esp
mov dword [esp], edi
call sym.__Unwind_SjLj_Register
cmp dword [ebp + 0x10], 1
lea eax, [ebp - 0x28]
mov ebx, dword [ebp - 0x64]
mov edx, dword [ebp + 0xc]
sbb ecx, ecx
and ecx, 0xfffffffe
mov dword [ebx], 0
add ecx, 0x8002
xor esi, esi
mov dword [esp], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 8], esi
mov dword [esp + 4], edx
mov dword [ebp - 0x58], 0xffffffff
call method.c_Handler.c_Handler_char_const__bool__int_
mov eax, dword [ebp - 0x24]
test eax, eax
js 0x404e8a
mov dword [esp], eax
mov dword [ebp - 0x58], 1
call sym._filelength
mov esi, dword [ebp - 0x64]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x424]
test eax, eax
jne 0x404e72
mov eax, dword [ebp - 0x64]
mov edi, dword [eax + 8]
add edi, 0x400
mov dword [eax + 0xc], edi
mov dword [esp], edi
mov dword [ebp - 0x58], 1
call sym.operator_new___unsigned_int_
mov edx, dword [ebp - 0x64]
test eax, eax
mov dword [edx + 0x424], eax
je 0x404ea5
mov ecx, dword [ebp - 0x64]
mov ebx, dword [ebp - 0x24]
mov eax, dword [ecx + 8]
mov dword [esp + 8], eax
mov edi, dword [ecx + 0x424]
mov dword [esp], ebx
mov dword [ebp - 0x58], 1
mov dword [esp + 4], edi
call sym._read
mov esi, dword [ebp - 0x64]
lea edx, [ebp - 0x28]
mov dword [esi], 1
mov dword [esi + 0x10], 0
mov dword [esp], edx
mov dword [ebp - 0x58], 0xffffffff
call method.c_Handler.hdclose__
mov dword [ebp - 0x60], 1
lea edx, [ebp - 0x5c]
mov dword [esp], edx
call sym.__Unwind_SjLj_Unregister
mov eax, dword [ebp - 0x60]
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], eax
call sym.operator_delete___void_
mov ecx, dword [ebp - 0x64]
xor ebx, ebx
mov dword [ecx + 0x424], ebx
jmp 0x404db1
lea ebx, [ebp - 0x28]
mov dword [esp], ebx
mov dword [ebp - 0x58], 0xffffffff
call method.c_Handler.hdclose__
mov dword [ebp - 0x60], 0xffffffff
jmp 0x404e2f
lea esi, [ebp - 0x28]
mov dword [esp], esi
jmp 0x404e90
Function at 0x408650
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [ebp - 0x2c], 0
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [edi], 0
movzx ecx, byte [esi]
cmp cl, 0x3d
setne dl
test cl, cl
setne al
test al, dl
je 0x408845
lea esi, [esi]
lea edi, [edi]
inc ebx
movzx ecx, byte [ebx + esi]
cmp cl, 0x3d
setne dl
test cl, cl
setne al
test al, dl
jne 0x408690
cmp cl, 0x3d
je 0x408851
mov eax, dword [ebp - 0x2c]
add eax, ebx
js 0x40886e
mov ebx, eax
sar ebx, 2
xor eax, eax
test ebx, ebx
jle 0x4087d4
lea eax, [ebx + ebx*2]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
sub dword [ebp - 0x34], ecx
mov edi, dword [ebp - 0x34]
add edi, 4
mov dword [esp], edi
call sym._malloc
mov edi, eax
xor eax, eax
test edi, edi
je 0x4087d4
mov dword [ebp - 0x30], 0
mov edx, dword [ebp + 0xc]
dec ebx
mov dword [ebp - 0x38], ebx
cmp ebx, 0
mov dword [edx], edi
jle 0x40875f
lea esi, [esi]
lea edi, [edi]
xor edx, edx
xor ebx, ebx
lea esi, [esi]
lea edi, [edi]
movzx ecx, byte [ebx + esi]
mov al, cl
sub al, 0x41
cmp al, 0x19
ja 0x4087e0
shl edx, 6
movsx eax, cl
lea edx, [edx + eax - 0x41]
inc ebx
cmp ebx, 3
jle 0x408720
mov byte [edi + 2], dl
shr edx, 8
add esi, 4
mov byte [edi + 1], dl
shr edx, 8
mov byte [edi], dl
add edi, 3
inc dword [ebp - 0x30]
mov ebx, dword [ebp - 0x30]
cmp dword [ebp - 0x38], ebx
jg 0x408710
xor edx, edx
xor ebx, ebx
lea esi, [esi]
lea edi, [edi]
movzx ecx, byte [ebx + esi]
mov al, cl
sub al, 0x41
cmp al, 0x19
ja 0x408876
shl edx, 6
movsx eax, cl
lea edx, [edx + eax - 0x41]
inc ebx
cmp ebx, 3
jle 0x408770
mov byte [ebp - 0x26], dl
mov esi, dword [ebp - 0x2c]
shr edx, 8
mov byte [ebp - 0x27], dl
mov eax, 3
shr edx, 8
mov byte [ebp - 0x28], dl
sub eax, esi
xor edx, edx
cmp eax, 0
jle 0x4087cd
mov ecx, eax
lea esi, [esi]
lea edi, [edi]
movzx ebx, byte [edx + ebp - 0x28]
mov byte [edx + edi], bl
inc edx
cmp ecx, edx
jg 0x4087c0
mov byte [edx + edi], 0
mov eax, dword [ebp - 0x34]
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov al, cl
sub al, 0x61
cmp al, 0x19
ja 0x4087f7
shl edx, 6
movsx eax, cl
lea edx, [edx + eax - 0x47]
jmp 0x40873a
mov al, cl
sub al, 0x30
cmp al, 9
ja 0x408810
shl edx, 6
movsx eax, cl
lea edx, [edx + eax + 4]
jmp 0x40873a
cmp cl, 0x2b
je 0x40882b
cmp cl, 0x2f
je 0x408838
cmp cl, 0x3d
jne 0x40873a
shl edx, 6
jmp 0x40873a
mov ecx, edx
shl ecx, 6
lea edx, [ecx + 0x3e]
jmp 0x40873a
mov eax, edx
shl eax, 6
lea edx, [eax + 0x3f]
jmp 0x40873a
movzx ecx, byte [esi]
cmp cl, 0x3d
jne 0x4086ad
movzx edx, byte [esi + ebx + 1]
cmp dl, 0x3d
sete al
movzx ecx, al
inc ecx
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
add eax, ebx
jns 0x4086b8
add eax, 3
jmp 0x4086b8
mov al, cl
sub al, 0x61
cmp al, 0x19
ja 0x40888d
shl edx, 6
movsx eax, cl
lea edx, [edx + eax - 0x47]
jmp 0x40878a
mov al, cl
sub al, 0x30
cmp al, 9
ja 0x4088a4
shl edx, 6
movsx eax, cl
lea edx, [edx + eax + 4]
jmp 0x40878a
cmp cl, 0x2b
je 0x4088bf
cmp cl, 0x2f
je 0x4088cc
cmp cl, 0x3d
jne 0x40878a
shl edx, 6
jmp 0x40878a
mov ecx, edx
shl ecx, 6
lea edx, [ecx + 0x3e]
jmp 0x40878a
mov eax, edx
shl eax, 6
lea edx, [eax + 0x3f]
jmp 0x40878a
Function at 0x408b00
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, 0x55e850
push esi
mov esi, pe_nt_image_headers32
push ebx
sub esp, 0xc
mov ebx, ecx
mov dword [esp + 8], esi
mov esi, pe_nt_image_headers32
mov dword [esp + 4], edi
mov edi, 0x55e750
mov dword [esp], ecx
call sym._memcpy
mov ecx, pe_nt_image_headers32
mov edx, 0x55e7d0
lea eax, [ebx + 0x80]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._memcpy
mov dword [esp + 8], esi
lea eax, [ebx + 0x100]
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._memcpy
mov ecx, dword [0x5218f0]
mov dword [ebx + 0x1f0], ecx
mov edx, dword [0x5218f4]
mov dword [ebx + 0x1f4], edx
mov eax, dword [0x5218f8]
mov dword [ebx + 0x1f8], eax
mov esi, dword [0x5218fc]
mov dword [ebx + 0x1fc], esi
mov edi, dword [0x521900]
mov dword [ebx + 0x200], edi
mov ecx, dword [0x521904]
mov dword [ebx + 0x204], ecx
mov edx, dword [0x5218e0]
mov ecx, 0x60
mov dword [esp + 8], ecx
mov dword [ebx + 0x1e0], edx
mov eax, dword [0x5218e4]
mov edx, 0x521880
mov dword [esp + 4], edx
mov dword [ebx + 0x1e4], eax
mov esi, dword [0x5218e8]
lea eax, [ebx + 0x180]
mov dword [esp], eax
mov dword [ebx + 0x1e8], esi
mov edi, dword [0x5218ec]
mov esi, str.80_
mov dword [ebx + 0x1ec], edi
lea edi, [ebx + 0x208]
call sym._memcpy
cld
mov ecx, 0xe
rep movsd dword es:[edi], dword [esi]
mov esi, 0x521800
mov edi, dword [0x521830]
mov dword [ebx + 0x240], edi
mov ecx, dword [0x521834]
lea edi, [ebx + 0x250]
mov dword [ebx + 0x244], ecx
mov eax, dword [0x521838]
mov ecx, 0xc
mov dword [ebx + 0x248], eax
mov edx, dword [0x52183c]
lea eax, [ebx + 0x280]
mov dword [ebx + 0x24c], edx
rep movsd dword es:[edi], dword [esi]
mov dword [esp], eax
mov edi, 0x100
mov esi, 0x521700
mov dword [esp + 8], edi
mov edi, 0x100
mov dword [esp + 4], esi
mov esi, 0x521500
call sym._memcpy
mov ecx, 0x100
mov edx, 0x521600
lea eax, [ebx + 0x380]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._memcpy
mov dword [esp + 8], edi
lea eax, [ebx + 0x480]
mov edi, 0x100
mov dword [esp + 4], esi
mov esi, 0x521300
mov dword [esp], eax
call sym._memcpy
mov ecx, 0x100
mov edx, 0x521400
lea eax, [ebx + 0x580]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._memcpy
mov dword [esp + 8], edi
lea eax, [ebx + 0x680]
mov edi, 0x100
mov dword [esp + 4], esi
mov esi, 0x521100
mov dword [esp], eax
call sym._memcpy
mov ecx, 0x100
mov edx, 0x521200
lea eax, [ebx + 0x780]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._memcpy
mov dword [esp + 8], edi
lea eax, [ebx + 0x880]
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._memcpy
lea eax, [ebx + 0x980]
mov ecx, 0x100
mov edx, section..data
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._memcpy
add esp, 0xc
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4091f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
push ebx
sub esp, 0xc
mov ecx, dword [edx]
mov dword [ebp - 0x10], edx
mov ebx, dword [edx + 4]
mov dword [ebp - 0x18], 7
mov eax, ecx
shr eax, 4
xor eax, ebx
and eax, 0xf0f0f0f
xor ebx, eax
shl eax, 4
xor eax, ecx
mov edx, eax
shr edx, 0x10
xor edx, ebx
and edx, 0xffff
xor ebx, edx
mov edi, ebx
shl edx, 0x10
xor edx, eax
shr edi, 2
xor edi, edx
and edi, 0x33333333
xor edx, edi
shl edi, 2
xor edi, ebx
mov eax, edi
shr eax, 8
xor eax, edx
and eax, 0xff00ff
xor edx, eax
shl eax, 8
mov ecx, edx
xor eax, edi
rol eax, 1
mov edi, edx
xor ecx, eax
and ecx, 0xaaaaaaaa
xor edi, ecx
xor eax, ecx
mov dword [ebp - 0x14], eax
rol edi, 1
nop
mov ebx, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebx]
rol edx, 0x1c
xor edx, ecx
mov eax, edx
mov ebx, edx
shr eax, 8
and ebx, 0x3f
and eax, 0x3f
shr edx, 0x10
mov ecx, dword [esi + eax*4 + 0x680]
mov eax, dword [esi + ebx*4 + 0x880]
or ecx, eax
mov eax, edx
and eax, 0x3f
shr edx, 8
mov ebx, dword [esi + eax*4 + 0x480]
and edx, 0x3f
mov eax, dword [ebp + 8]
or ecx, ebx
mov ebx, dword [esi + edx*4 + 0x280]
mov edx, dword [ebp - 0x14]
or ecx, ebx
mov ebx, dword [eax + 4]
xor edx, ebx
mov eax, edx
and eax, 0x3f
mov ebx, dword [esi + eax*4 + 0x980]
mov eax, edx
shr eax, 8
and eax, 0x3f
or ecx, ebx
shr edx, 0x10
mov ebx, dword [esi + eax*4 + 0x780]
mov eax, edx
and eax, 0x3f
shr edx, 8
or ecx, ebx
mov ebx, dword [esi + eax*4 + 0x580]
and edx, 0x3f
mov eax, dword [esi + edx*4 + 0x380]
or ecx, ebx
mov ebx, dword [ebp + 8]
or ecx, eax
xor edi, ecx
mov edx, edi
mov ecx, dword [ebx + 8]
rol edx, 0x1c
xor edx, ecx
mov eax, edx
mov ebx, edx
shr eax, 8
and ebx, 0x3f
and eax, 0x3f
shr edx, 0x10
mov ecx, dword [esi + eax*4 + 0x680]
mov eax, dword [esi + ebx*4 + 0x880]
or ecx, eax
mov eax, edx
and eax, 0x3f
mov ebx, dword [esi + eax*4 + 0x480]
or ecx, ebx
mov ebx, dword [ebp + 8]
shr edx, 8
and edx, 0x3f
mov eax, dword [esi + edx*4 + 0x280]
mov edx, dword [ebx + 0xc]
add ebx, 0x10
mov dword [ebp + 8], ebx
or ecx, eax
xor edx, edi
mov eax, edx
and eax, 0x3f
mov ebx, dword [esi + eax*4 + 0x980]
mov eax, edx
shr eax, 8
and eax, 0x3f
or ecx, ebx
shr edx, 0x10
mov ebx, dword [esi + eax*4 + 0x780]
mov eax, edx
and eax, 0x3f
shr edx, 8
or ecx, ebx
mov ebx, dword [esi + eax*4 + 0x580]
and edx, 0x3f
or ecx, ebx
mov ebx, dword [esi + edx*4 + 0x380]
or ecx, ebx
xor dword [ebp - 0x14], ecx
dec dword [ebp - 0x18]
jns 0x409270
mov ecx, dword [ebp - 0x14]
mov edx, edi
mov esi, edi
rol ecx, 0x1f
xor edx, ecx
and edx, 0xaaaaaaaa
xor esi, edx
xor ecx, edx
rol esi, 0x1f
mov ebx, esi
shr ebx, 8
xor ebx, ecx
and ebx, 0xff00ff
xor ecx, ebx
shl ebx, 8
xor ebx, esi
mov edi, ebx
mov esi, dword [ebp - 0x10]
shr edi, 2
xor edi, ecx
and edi, 0x33333333
xor ecx, edi
mov edx, ecx
shl edi, 2
xor edi, ebx
shr edx, 0x10
xor edx, edi
and edx, 0xffff
xor edi, edx
shl edx, 0x10
xor edx, ecx
mov eax, edx
shr eax, 4
xor eax, edi
and eax, 0xf0f0f0f
xor edi, eax
mov dword [esi + 4], edi
shl eax, 4
xor edx, eax
mov dword [esi], edx
add esp, 0xc
pop ebx
pop esi
pop edi
pop ebp
ret 4
Function at 0x409ba0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
sub esp, 0x1a0
mov dword [ebp - 0x19c], ecx
mov edx, dword [ebp - 0x19c]
lea ecx, [ebp - 0x198]
mov edi, edx
sub edi, 0xffffff80
jmp 0x409bd1
mov eax, dword [edx]
add edx, 4
mov dword [ecx], eax
add ecx, 4
cmp edx, edi
jb 0x409bc7
mov ebx, dword [ebp - 0x19c]
lea ecx, [ebp - 0x198]
mov edx, edi
sub ecx, 0xffffff80
add ebx, 0x100
cmp edi, ebx
mov dword [ebp - 0x1a0], ebx
jmp 0x409c06
mov eax, dword [edx]
add edx, 4
mov dword [ecx], eax
add ecx, 4
cmp edx, dword [ebp - 0x1a0]
jb 0x409bf6
mov dword [esp], 1
mov edx, dword [ebp - 0x19c]
mov ecx, dword [ebp - 0x19c]
mov ebx, dword [ebp - 0x19c]
add edx, 0x1f8
call sym.__ZN9CBack_DES6deskeyEPhs_12
mov edx, dword [ebp - 0x19c]
add ebx, 0x1f0
sub esp, 4
mov ecx, edi
jmp 0x409c4a
mov eax, dword [edx]
add edx, 4
mov dword [ecx], eax
add ecx, 4
cmp edx, edi
jb 0x409c40
mov dword [esp], 0
mov ecx, dword [ebp - 0x19c]
mov edx, ebx
call sym.__ZN9CBack_DES6deskeyEPhs_12
mov ecx, dword [ebp - 0x1a0]
sub esp, 4
mov edx, dword [ebp - 0x19c]
jmp 0x409c7d
mov ebx, dword [edx]
add edx, 4
mov dword [ecx], ebx
add ecx, 4
cmp edx, edi
jb 0x409c73
xor edx, edx
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [ebp - 0x19c]
mov ecx, dword [ebp + 8]
movzx eax, byte [ebx + edx + 0x1f0]
mov byte [edx + ecx], al
inc edx
cmp edx, 0xf
jle 0x409c90
movzx edx, byte [esi]
lea esi, [esi]
xor ebx, ebx
test dl, dl
mov ecx, dword [ebp + 8]
je 0x409cd9
lea esi, [esi]
mov eax, ecx
and dl, 0x7f
inc ebx
xor byte [eax], dl
inc ecx
mov byte [esi], 0
inc esi
cmp ebx, 0xf
jg 0x409cd9
movzx edx, byte [esi]
test dl, dl
jne 0x409cc0
mov ecx, dword [ebp + 8]
mov edx, ecx
mov dword [esp], ecx
mov ecx, dword [ebp - 0x19c]
call sym.__ZN9CBack_DES5D2desEPhS0__12
movzx edx, byte [esi]
sub esp, 4
test dl, dl
jne 0x409cb0
mov edx, dword [ebp - 0x19c]
lea ecx, [ebp - 0x198]
jmp 0x409d0e
mov esi, dword [ecx]
add ecx, 4
mov dword [edx], esi
add edx, 4
cmp edx, edi
jb 0x409d04
lea ecx, [ebp - 0x198]
mov edx, edi
sub ecx, 0xffffff80
cmp edi, dword [ebp - 0x1a0]
jmp 0x409d35
mov ebx, dword [ecx]
add ecx, 4
mov dword [edx], ebx
add edx, 4
cmp edx, dword [ebp - 0x1a0]
jb 0x409d25
mov edx, dword [ebp - 0x1a0]
mov ecx, dword [ebp - 0x19c]
jmp 0x409d4f
mov eax, dword [ecx]
add ecx, 4
mov dword [edx], eax
add edx, 4
cmp ecx, edi
jb 0x409d45
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
Function at 0x40a0b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
lea eax, [edi + 0x80]
push esi
lea ecx, [ebp - 0x198]
mov esi, edx
push ebx
mov edx, edi
sub esp, 0x1a0
mov dword [ebp - 0x19c], eax
cmp edi, eax
jmp 0x40a0e8
mov ebx, dword [edx]
add edx, 4
mov dword [ecx], ebx
add ecx, 4
cmp edx, dword [ebp - 0x19c]
jb 0x40a0d8
mov edx, dword [ebp - 0x19c]
lea eax, [edi + 0x100]
lea ecx, [ebp - 0x198]
mov dword [ebp - 0x1a0], eax
sub ecx, 0xffffff80
cmp edx, eax
jmp 0x40a120
mov ebx, dword [edx]
add edx, 4
mov dword [ecx], ebx
add ecx, 4
cmp edx, dword [ebp - 0x1a0]
jb 0x40a110
mov edx, dword [ebp - 0x1a0]
lea eax, [edi + 0x180]
mov dword [ebp - 0x1a4], eax
cmp edx, eax
jmp 0x40a148
mov ebx, dword [edx]
add edx, 4
mov dword [ecx], ebx
add ecx, 4
cmp edx, dword [ebp - 0x1a4]
jb 0x40a138
mov dword [esp], 0
lea edx, [edi + 0x1f0]
mov ecx, edi
call sym.__ZN9CBack_DES7des3keyEPhs_12
sub esp, 4
xor edx, edx
lea esi, [esi]
lea edi, [edi]
movzx eax, byte [edi + edx + 0x1f0]
mov ecx, dword [ebp + 8]
mov byte [edx + ecx], al
inc edx
cmp edx, 0x17
jle 0x40a170
movzx edx, byte [esi]
mov esi, esi
lea edi, [edi]
mov ecx, dword [ebp + 8]
xor ebx, ebx
jmp 0x40a1ac
mov eax, ecx
and dl, 0x7f
inc ebx
xor byte [eax], dl
inc ecx
mov byte [esi], 0
inc esi
cmp ebx, 0x17
jg 0x40a1b0
movzx edx, byte [esi]
test dl, dl
jne 0x40a197
mov ebx, dword [ebp + 8]
mov ecx, edi
mov edx, ebx
mov dword [esp], ebx
call sym.__ZN9CBack_DES5D3desEPhS0__12
movzx edx, byte [esi]
sub esp, 4
test dl, dl
jne 0x40a190
lea edx, [ebp - 0x198]
mov ecx, edi
jmp 0x40a1dd
mov esi, dword [edx]
add edx, 4
mov dword [ecx], esi
add ecx, 4
cmp ecx, dword [ebp - 0x19c]
jb 0x40a1d3
mov edx, dword [ebp - 0x19c]
lea ecx, [ebp - 0x198]
sub ecx, 0xffffff80
jmp 0x40a200
mov edi, dword [ecx]
add ecx, 4
mov dword [edx], edi
add edx, 4
cmp edx, dword [ebp - 0x1a0]
jb 0x40a1f6
mov edx, dword [ebp - 0x1a0]
jmp 0x40a21a
mov eax, dword [ecx]
add ecx, 4
mov dword [edx], eax
add edx, 4
cmp edx, dword [ebp - 0x1a4]
jb 0x40a210
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
Function at 0x40ad80
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
lea esi, [ebp - 0x1c]
push ebx
sub esp, 0x30
mov ebx, dword [ebp + 8]
mov dword [esp], esi
call sym._time
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x94]
sub eax, ecx
cmp eax, dword [ebx + 0x8a]
jge 0x40ae70
mov eax, dword [ebx + 0xd4]
test eax, eax
jle 0x40ae1a
xor edx, edx
mov dword [esp + 0xc], edx
mov ecx, dword [ebx + 0xd8]
sub eax, ecx
mov dword [esp + 8], eax
mov edx, dword [ebx + 0xd0]
mov ecx, dword [ebx + 0xd8]
add ecx, edx
mov dword [esp + 4], ecx
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call sub.WSOCK32.DLL_send
sub esp, 0x10
xor edx, edx
cmp eax, 0xffffffff
je 0x40ae38
add dword [ebx + 0xc0], eax
mov edx, dword [ebx + 0xd8]
add edx, eax
cmp edx, dword [ebx + 0xd4]
jge 0x40ae41
mov dword [ebx + 0xd8], edx
lea edx, [ebx + 0x94]
mov dword [esp], edx
call sym._time
mov dword [esp], esi
call sym._time
mov esi, dword [ebx + 0x98]
add esi, 0x12c
cmp esi, dword [ebp - 0x1c]
jle 0x40ae60
mov edx, 1
lea esp, [ebp - 8]
mov eax, edx
pop ebx
pop esi
pop ebp
ret
inc dword [ebx + 0xbc]
xor ecx, ecx
xor eax, eax
mov dword [ebx + 0xd4], ecx
mov dword [ebx + 0xd8], eax
jmp 0x40ae0c
mov dword [esp], ebx
call method.c_AuthThread.AfterConnect__
jmp 0x40ae33
mov byte [ebp - 0xe], 0
lea ecx, [ebp - 0x18]
mov edx, 0xb
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov eax, dword [ebx + 0xd0]
mov dword [ebp - 0x12], 0
mov edx, dword [ebx + 0xd4]
mov word [ebp - 0x18], 0x50a
mov word [ebp - 0x16], 3
add edx, eax
mov word [ebp - 0x14], 0
mov dword [esp], edx
call sym._memmove
add dword [ebx + 0xd4], 0xb
jmp 0x40adad
Function at 0x40d020
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
mov esi, 0x400
push ebx
sub esp, 0x42c
mov ebx, dword [ebp + 8]
mov dword [esp + 0xc], edi
lea edi, [ebp - 0x418]
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call sub.WSOCK32.DLL_recv
sub esp, 0x10
xor ecx, ecx
test eax, eax
mov esi, eax
je 0x40d080
cmp eax, 0xffffffff
je 0x40d080
add dword [ebx + 0xb8], eax
mov edx, dword [ebx + 0xcc]
lea eax, [edx + eax]
cmp eax, 0x80000
jle 0x40d08a
lea esi, [esi]
lea esp, [ebp - 0xc]
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0xc4]
mov dword [esp + 8], esi
mov dword [esp + 4], edi
add edx, eax
mov dword [esp], edx
call sym._memcpy
add dword [ebx + 0xcc], esi
lea esi, [ebp - 0x428]
jmp 0x40d124
lea ecx, [ebx + 0x90]
mov dword [esp], ecx
call sym._time
inc dword [ebx + 0xb4]
mov dword [esp], ebx
call method.c_AuthThread.AfterRecv__
test eax, eax
je 0x40d1a7
mov edx, dword [ebx + 0xcc]
mov eax, dword [ebx + 0xc8]
cmp edx, eax
je 0x40d1ae
sub edx, eax
mov dword [esp + 8], edx
mov edi, dword [ebx + 0xc4]
add eax, edi
mov dword [esp + 4], eax
mov ecx, dword [ebx + 0xc4]
mov dword [esp], ecx
call sym._memmove
mov edi, dword [ebx + 0xcc]
xor eax, eax
mov edx, dword [ebx + 0xc8]
mov dword [ebx + 0xc8], eax
sub edi, edx
mov dword [ebx + 0xcc], edi
mov eax, dword [ebx + 0xc8]
test eax, eax
jne 0x40d191
cmp dword [ebx + 0xcc], 0xa
jle 0x40d19d
mov byte [ebp - 0x41e], 0
mov edx, 0x50a
mov edi, 3
mov word [ebp - 0x428], dx
mov edx, 0xb
xor eax, eax
mov dword [esp + 8], edx
xor ecx, ecx
mov word [ebp - 0x426], di
mov edi, dword [ebx + 0xc4]
mov word [ebp - 0x424], ax
mov dword [ebp - 0x422], ecx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._memmove
mov eax, dword [ebp - 0x422]
add eax, 0xb
mov dword [ebx + 0xc8], eax
cmp dword [ebx + 0xcc], eax
jge 0x40d0b0
mov ecx, 1
jmp 0x40d080
xor ecx, ecx
jmp 0x40d080
xor ecx, ecx
xor edx, edx
mov dword [ebx + 0xc8], ecx
mov ecx, 1
mov dword [ebx + 0xcc], edx
jmp 0x40d080