joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b9900
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5838e8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5fb61c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, 8
cmp dword [esi + 0x14], edi
jb 0x4b993b
mov eax, dword [esi]
jmp 0x4b993d
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4b99f3
cmp dword [esi + 0x14], edi
jb 0x4b9956
mov eax, dword [esi]
jmp 0x4b9958
mov eax, esi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push eax
call edi
test eax, eax
jne 0x4b99f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4b99f3
xor eax, eax
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.0042e5c0
lea ecx, [ebp - 0x2c]
push ecx
mov dword [ebp - 4], 0
call fcn.004b9850
add esp, 4
cmp dword [esi + 0x10], 0
jne 0x4b99bd
lea ecx, [ebp - 0x2c]
call fcn.004b2d30
xor eax, eax
jmp 0x4b99f8
lea edx, [ebp - 0x2c]
push edx
call fcn.004b9900
add esp, 4
test eax, eax
je 0x4b99b1
cmp dword [esi + 0x14], 8
jb 0x4b99d5
mov esi, dword [esi]
push 0
push esi
call edi
test eax, eax
jne 0x4b99eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4b99b1
lea ecx, [ebp - 0x2c]
call fcn.004b2d30
mov eax, 1
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.005332ca
mov esp, ebp
pop ebp
ret
Function at 0x4bf710
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58c292
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5fb61c]
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 edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x4c], eax
cmp byte [0x6000c8], al
je 0x4bf77b
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0xf
mov byte [edi], al
mov eax, 0x6000c8
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4bf760
sub eax, edx
push eax
push 0x6000c8
mov ecx, edi
call fcn.0042e9d0
jmp 0x4bf866
push eax
push eax
push 0x6000c8
push 0x4beea0
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
push 0xbb8
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
neg esi
sbb esi, esi
push ebx
inc esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp esi, eax
je 0x4bf7ee
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x48], al
mov eax, 0x6000c8
mov dword [ebp - 0x34], 0xf
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4bf7c6
sub eax, edx
push eax
push 0x6000c8
lea ecx, [ebp - 0x48]
call fcn.0042e9d0
lea eax, [ebp - 0x48]
mov dword [ebp - 4], 0
mov ebx, 2
jmp 0x4bf80a
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 1
mov ebx, 4
xor esi, esi
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], esi
push eax
mov ecx, edi
mov dword [ebp - 0x4c], ebx
mov byte [edi], 0
call fcn.0042eb90
or ebx, 1
test bl, 4
je 0x4bf84f
and ebx, 0xfffffffb
cmp dword [ebp - 0x18], 0x10
jb 0x4bf841
mov eax, dword [ebp - 0x2c]
push eax
call int.0042bfd0
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x2c], 0
test bl, 2
je 0x4bf866
cmp dword [ebp - 0x34], 0x10
jb 0x4bf866
mov ecx, dword [ebp - 0x48]
push ecx
call int.0042bfd0
add esp, 4
mov eax, edi
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.005332ca
mov esp, ebp
pop ebp
ret
Function at 0x4c1310
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x5fb61c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x218], ebx
mov ebx, dword [ebp + 0x24]
mov dword [ebp - 0x210], ebx
mov ebx, dword [ebp + 0x2c]
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x220], ebx
mov ebx, dword [ebp + 0x34]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x224], ebx
xor ebx, ebx
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x208], ebx
lea ebx, [ebp - 0x208]
push ebx
lea ebx, [ebp - 0x214]
push ebx
lea ebx, [ebp - 0x20c]
push ebx
push edi
push esi
mov esi, dword [ebp + 0x28]
push esi
mov esi, dword [ebp - 0x210]
push esi
mov esi, dword [ebp + 0x20]
push esi
mov esi, dword [ebp - 0x218]
push esi
mov dword [ebp - 0x21c], ecx
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x21c]
push eax
push edx
push ecx
mov ecx, esi
call fcn.004c0eb0
test eax, eax
jne 0x4c13e4
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 0x214]
push ecx
mov edx, ebx
push edx
mov ecx, esi
call fcn.004c0df0
pop edi
pop esi
mov eax, 0x80004005
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005332ca
mov esp, ebp
pop ebp
ret 0x30
xor eax, eax
push 0x1fe
push eax
lea ecx, [ebp - 0x202]
push ecx
mov word [ebp - 0x204], ax
call fcn.005336c0
mov ecx, dword [ebp - 0x208]
add esp, 0xc
push 0
lea edx, [ebp - 0x228]
push edx
lea eax, [ebp - 0x204]
push eax
push 5
push ecx
mov dword [ebp - 0x228], 0x100
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x4c1463
lea edx, [ebp - 0x208]
push edx
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, esi
call fcn.004c0df0
pop edi
pop esi
mov eax, 0x80004005
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005332ca
mov esp, ebp
pop ebp
ret 0x30
cmp dword [ebp - 0x220], 0
je 0x4c14e8
mov edi, dword [ebp + 0x30]
test edi, edi
je 0x4c14e8
lea edx, [ebp - 0x204]
push edx
call fcn.005374b1
add esp, 4
mov dword [ebp - 0x210], eax
cmp eax, edi
jbe 0x4c1492
mov dword [ebp - 0x210], edi
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
xor esi, esi
mov dword [ebp - 0x218], esi
mov edx, dword [ebp - 0x220]
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp - 0x208]
mov ecx, edi
sub ecx, esi
push ecx
add edx, esi
push edx
push eax
call ebx
mov ecx, dword [ebp - 0x218]
add esi, ecx
test eax, eax
je 0x4c14d6
test ecx, ecx
je 0x4c14d6
cmp esi, dword [ebp - 0x210]
jb 0x4c14a0
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x4c14e2
mov dword [eax], esi
mov esi, dword [ebp - 0x21c]
lea ecx, [ebp - 0x208]
push ecx
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.004c0df0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.005332ca
mov esp, ebp
pop ebp
ret 0x30
Function at 0x4c1560
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea ecx, [esi*4 + 2]
mov eax, 0xaaaaaaab
mul ecx
push edi
mov edi, dword [ebp + 0x10]
shr edx, 1
push edx
mov ecx, edi
call fcn.004b7fa0
mov eax, dword [ebp + 8]
mov edx, dword [edi]
mov bl, byte [eax]
lea ecx, [eax + esi]
mov dword [ebp - 4], edx
mov edi, eax
mov dword [ebp + 8], ecx
mov esi, 8
cmp eax, ecx
jae 0x4c1615
mov al, bl
cmp esi, 6
jbe 0x4c15b1
and al, 0x3f
shr bl, 6
sub esi, 6
jmp 0x4c15e7
inc edi
cmp edi, ecx
jae 0x4c15ba
mov bl, byte [edi]
jmp 0x4c15bc
xor bl, bl
mov edx, 6
sub edx, esi
mov byte [ebp + 0xf], bl
je 0x4c15e4
mov cl, byte [edx*4 + 0x5b2644]
and cl, bl
movzx ebx, cl
mov ecx, esi
shl bl, cl
mov cl, dl
or al, bl
mov bl, byte [ebp + 0xf]
shr bl, cl
mov ecx, dword [ebp + 8]
add esi, 2
cmp al, 0xa
jae 0x4c15ef
add al, 0x30
jmp 0x4c1608
cmp al, 0x24
jae 0x4c15f7
add al, 0x37
jmp 0x4c1608
cmp al, 0x3e
jae 0x4c15ff
add al, 0x3d
jmp 0x4c1608
setne al
dec al
and al, 0xce
add al, 0x5f
mov edx, dword [ebp - 4]
mov byte [edx], al
inc edx
mov dword [ebp - 4], edx
cmp edi, ecx
jb 0x4c15a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c2160
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x5fb61c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 0xb8], edi
cmp eax, edi
ja 0x4c219e
cmp esi, edi
jne 0x4c2193
xor eax, eax
jmp 0x4c219e
push 0xffffffffffffffff
push esi
call fcn.00535558
add esp, 8
push eax
push esi
lea ecx, [ebp - 0xb4]
mov byte [ebp - 0x4c], 0
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xb4], 0x67452301
mov dword [ebp - 0xb0], 0xefcdab89
mov dword [ebp - 0xac], 0x98badcfe
mov dword [ebp - 0xa8], 0x10325476
call fcn.004c1fa0
cmp byte [ebp - 0x4c], 0
jne 0x4c21f8
lea ecx, [ebp - 0xb4]
mov byte [ebp - 0x4c], 1
call fcn.004c2060
push 0x40
lea ecx, [ebp - 0x46]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x48], ax
call fcn.005336c0
add esp, 0xc
xor esi, esi
lea edi, [ebp - 0x48]
movzx edx, byte [ebp + esi - 0x5c]
push edx
push str._02x
push 3
push 0xffffffffffffffff
push edi
call fcn.0053459e
inc esi
add esp, 0x14
add edi, 4
cmp esi, 0x10
jl 0x4c2212
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
lea eax, [ebp - 0x48]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c2250
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x48]
push ecx
mov ecx, ebx
call fcn.00437a20
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.005332ca
mov esp, ebp
pop ebp
ret
Function at 0x4cb1e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x585190
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5fb61c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edx, dword [esi + 0x50]
mov ecx, dword [esi + 0x4c]
mov edi, edx
xor al, al
push edx
mov dword [ebp - 4], 0
rep stosb byte es:[edi], al
call int.0042bfd0
mov edx, dword [esi + 0x30]
mov ecx, dword [esi + 0x2c]
mov edi, edx
xor al, al
push edx
mov dword [ebp - 4], 1
rep stosb byte es:[edi], al
call int.0042bfd0
mov ecx, dword [esi + 0xc]
add esp, 8
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x4cb255
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
test byte [ebp + 8], 1
je 0x4cb264
push esi
call int.0042bfd0
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4cb280
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5851ee
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x5fb61c]
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 esi, ecx
xor ebx, ebx
push ebx
mov dword [ebp - 0x5c], esi
call fcn.004c6540
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov ecx, dword [ebp + 8]
mov dword [esi], vtable.CryptoPP::SignatureVerificationFilter.1.0
mov dword [esi + 4], vtable.CryptoPP::SignatureVerificationFilter.0
mov dword [esi + 0x44], ecx
mov dword [ebp - 4], 3
mov dword [esi + 0x48], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
push 1
lea edx, [ebp + 0x10]
push edx
lea eax, [ebp - 0x68]
push str.SignatureVerificationFilterFlags
push eax
mov byte [ebp - 4], 7
call fcn.004caed0
add esp, 0x10
mov edx, dword [esi]
mov edx, dword [edx + 0xbc]
lea ecx, [esi + 0x20]
push ecx
lea ecx, [esi + 0x1c]
push ecx
lea ecx, [esi + 0x18]
push ecx
push eax
mov ecx, esi
mov byte [ebp - 4], 8
call edx
cmp dword [esi + 0x1c], 1
jb 0x4cb36c
mov eax, dword [esi + 0x18]
push eax
push 1
lea ecx, [esi + 0x28]
call fcn.004ca1d0
mov ecx, dword [ebp - 0x64]
mov byte [esi + 0x24], bl
mov byte [ebp - 4], 7
cmp ecx, ebx
je 0x4cb34c
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov eax, esi
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.005332ca
mov esp, ebp
pop ebp
ret 0xc
push 0x2c
mov esi, 0xf
push str.FilterWithBufferedInput:_invalid_buffer_size
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x48], ebx
mov byte [ebp - 0x58], bl
call fcn.0042e9d0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 9
call fcn.0053484c
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x3c], vtable.CryptoPP::Exception.0
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.0042e820
push 0x5e25c4
lea edx, [ebp - 0x3c]
push edx
mov byte [ebp - 4], 9
mov dword [ebp - 0x3c], vtable.CryptoPP::InvalidArgument.0
call fcn.00533e7f
int3

Function at 0x4cb620
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret
Function at 0x4cbdb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x14]
mov ecx, edi
shr ecx, 2
xor eax, eax
test ecx, ecx
je 0x4cbdfb
mov edi, ebx
sub esi, edx
mov eax, edx
sub edi, edx
mov dword [ebp - 4], ecx
lea esp, [esp]
mov ebx, dword [esi + eax]
xor ebx, dword [eax]
add eax, 4
dec ecx
mov dword [edi + eax - 4], ebx
jne 0x4cbde0
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
add eax, eax
add eax, eax
sub edi, eax
je 0x4cbe24
add ebx, eax
add esi, eax
add edx, eax
test edi, edi
je 0x4cbe24
mov ecx, esi
mov esi, ebx
sub ecx, edx
mov eax, edx
sub esi, edx
mov dl, byte [eax + ecx]
xor dl, byte [eax]
inc eax
dec edi
mov byte [eax + esi - 1], dl
jne 0x4cbe17
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4cbe30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov eax, esi
shr eax, 2
xor ecx, ecx
xor edx, edx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
je 0x4cbe6c
mov esi, ebx
mov edx, edi
sub esi, edi
mov dword [ebp - 4], eax
mov ebx, dword [esi + edx]
xor ebx, dword [edx]
add edx, 4
or ecx, ebx
dec eax
jne 0x4cbe56
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov edx, dword [ebp - 4]
lea eax, [edx*4]
sub esi, eax
jne 0x4cbe85
pop edi
xor eax, eax
test ecx, ecx
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret
add ebx, eax
add edi, eax
mov eax, ecx
mov edx, ecx
shr edx, 0x10
shr eax, 0x18
or al, dl
mov edx, ecx
shr edx, 8
or dl, al
or dl, cl
test esi, esi
je 0x4cbeb3
mov ecx, ebx
mov eax, edi
sub ecx, edi
mov bl, byte [eax + ecx]
xor bl, byte [eax]
inc eax
or dl, bl
dec esi
jne 0x4cbea8
pop edi
xor eax, eax
test dl, dl
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4cc750
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x8c]
push ebx
push esi
mov esi, dword [eax]
push edi
add ecx, 8
mov dword [ebp - 4], 8
mov eax, esi
ror eax, 4
xor eax, dword [ecx - 8]
add ecx, 0x10
mov edi, eax
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x5b36f0]
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x5b38f0]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x5b3af0]
and eax, 0x3f
xor edi, dword [eax*4 + 0x5b3cf0]
mov eax, dword [ecx - 0x14]
xor edx, edi
xor eax, esi
mov edi, eax
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x5b37f0]
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x5b39f0]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x5b3bf0]
and eax, 0x3f
xor edi, dword [eax*4 + 0x5b3df0]
xor edx, edi
mov eax, edx
ror eax, 4
xor eax, dword [ecx - 0x10]
mov edi, eax
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x5b36f0]
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x5b38f0]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x5b3af0]
and eax, 0x3f
xor edi, dword [eax*4 + 0x5b3cf0]
mov eax, dword [ecx - 0xc]
xor esi, edi
xor eax, edx
mov edi, eax
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x5b37f0]
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x5b39f0]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x5b3bf0]
and eax, 0x3f
xor edi, dword [eax*4 + 0x5b3df0]
xor esi, edi
dec dword [ebp - 4]
jne 0x4cc771
mov ecx, dword [ebp + 8]
mov dword [ecx], edx
mov edx, dword [ebp + 0xc]
pop edi
mov dword [edx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4d0950
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ecx]
mov edx, dword [eax + 8]
mov dword [ebp - 0x18], ecx
call edx
test al, al
jne 0x4d0a22
push ebx
push esi
push edi
push 0xffffffffffffffff
push str.DISCONNET_REQUEST110
call fcn.00535558
mov edi, eax
lea eax, [edi + 0x14]
push eax
mov dword [ebp - 4], eax
call fcn.00534575
push 4
push str.qing
mov esi, eax
push 0xffffffffffffffff
push esi
call fcn.00533641
push 4
lea eax, [ebp - 4]
push eax
lea ecx, [esi + 4]
push 0xffffffffffffffff
push ecx
call fcn.00533641
push 4
lea edx, [ebp - 8]
push edx
lea eax, [esi + 8]
push 0xffffffffffffffff
xor ebx, ebx
push eax
mov dword [ebp - 8], ebx
call fcn.00533641
push 4
lea ecx, [ebp - 0xc]
push ecx
lea edx, [esi + 0xc]
push 0xffffffffffffffff
push edx
mov dword [ebp - 0xc], ebx
call fcn.00533641
add esp, 0x4c
push 4
lea eax, [ebp - 0x10]
push eax
lea ecx, [esi + 0x10]
push 0xffffffffffffffff
push ecx
mov dword [ebp - 0x10], ebx
call fcn.00533641
push edi
push str.DISCONNET_REQUEST110
lea edx, [esi + 0x14]
push 0xffffffffffffffff
push edx
call fcn.00533641
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
add esp, 0x20
push ebx
lea eax, [ebp - 0x14]
push eax
mov eax, dword [edx + 4]
push ecx
push esi
push eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call fcn.00534304
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4d0a30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x5fb61c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x24]
xor edi, edi
push edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x30], edi
call fcn.00539581
add esp, 4
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x34]
add edx, dword [ebp - 0x30]
push 0
lea eax, [ebp - 0x2c]
push eax
push ecx
mov ecx, dword [ebp - 0x38]
push edx
mov edx, dword [ecx + 4]
push edx
mov dword [ebp - 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
add edi, dword [ebp - 0x2c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x4d0a9e
cmp eax, 0xea
jne 0x4d0aff
lea eax, [ebp - 0x14]
push eax
call fcn.00539581
movzx ecx, word [ebp - 0x1c]
movzx eax, word [ebp - 0xc]
sub eax, ecx
cdq
add esp, 4
mov ebx, edx
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x24]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x10]
sbb eax, dword [ebp - 0x20]
push 0
push 0x3e8
push eax
push edx
call fcn.005342d0
mov ecx, dword [ebp - 0x40]
add ecx, eax
adc ebx, edx
test ebx, ebx
jg 0x4d0aff
jl 0x4d0ae9
cmp ecx, 0xbb8
ja 0x4d0aff
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x30], eax
sub dword [ebp - 0x28], eax
test esi, esi
jne 0x4d0b14
cmp edi, dword [ebp + 0xc]
jne 0x4d0a63
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005332ca
mov esp, ebp
pop ebp
ret 8
cmp edi, dword [ebp + 0xc]
jne 0x4d0aff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.005332ca
mov esp, ebp
pop ebp
ret 8
Function at 0x4d0f00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ecx]
mov edx, dword [eax + 8]
mov dword [ebp - 0x18], ecx
call edx
test al, al
jne 0x4d1029
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 4]
mov ebx, dword [edi + 0xc]
sub ebx, eax
mov dword [ebp + 0xc], eax
lea eax, [ebx + 0x14]
push eax
mov dword [ebp - 4], eax
call fcn.00534575
push 4
push str.qing
mov esi, eax
push 0xffffffffffffffff
push esi
call fcn.00533641
push 4
lea eax, [ebp - 4]
push eax
lea ecx, [esi + 4]
push 0xffffffffffffffff
push ecx
call fcn.00533641
push 4
lea edx, [ebp - 0xc]
push edx
lea eax, [esi + 8]
push 0xffffffffffffffff
push eax
mov dword [ebp - 0xc], 0
call fcn.00533641
push 4
lea ecx, [ebp - 0x10]
push ecx
lea edx, [esi + 0xc]
push 0xffffffffffffffff
push edx
mov dword [ebp - 0x10], 1
call fcn.00533641
add esp, 0x44
push 4
lea eax, [ebp - 0x14]
push eax
lea ecx, [esi + 0x10]
push 0xffffffffffffffff
push ecx
mov dword [ebp - 0x14], 0
call fcn.00533641
mov edx, dword [ebp + 0xc]
push ebx
push edx
lea eax, [esi + 0x14]
push 0xffffffffffffffff
push eax
call fcn.00533641
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx + 4]
add esp, 0x20
push 0
lea ecx, [ebp - 8]
push ecx
push edx
push esi
push eax
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [edi + 0x1c], 0
mov dword [ebp + 0xc], eax
mov eax, dword [edi + 0x14]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
jne 0x4d0ff3
mov dword [edi + 0x10], eax
mov dword [edi + 0x18], 0
push esi
call fcn.00534304
add esp, 4
cmp dword [ebp + 0xc], 0
je 0x4d100a
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 4]
je 0x4d1026
or esi, 0xffffffff
cmp dword [ebx + 4], esi
je 0x4d1026
mov ecx, ebx
call fcn.004d0950
mov edx, dword [ebx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 4], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4d4640
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x585748
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5fb61c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xc
mov esi, ecx
push str.getLoginInfo
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.0042e9d0
mov ecx, dword [esi + 0x30]
push esi
lea eax, [ebp - 0x2c]
push eax
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], esp
mov eax, esp
je 0x4d46b4
mov dword [eax], vtable.std::tr1::_Impl_base1_void__class_wps::qing::KQingServicesCobClient__.0
mov dword [eax], vtable.._AV___Impl_no_alloc1_U___Callable_obj_V_lambda2___A0xdbaf1f60___0A__tr1_std__XPAVKQingServicesCobClient_qing_wps___tr1_std__.0
mov dword [eax + 4], esi
mov dword [eax + 0x10], eax
mov edx, dword [ecx]
add ecx, dword [edx + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x18], 0x10
jb 0x4d46d5
mov ecx, dword [ebp - 0x2c]
push ecx
call int.0042bfd0
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005332ca
mov esp, ebp
pop ebp
ret