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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, edx
test ecx, ecx
je 0x47799d
xor eax, eax
cmp ax, word [ecx]
je 0x47799d
cmp dword [esi], eax
jne 0x47799d
push ebx
push 0
push 0x80
push 3
push 0
mov dword [esi], eax
mov eax, dword [ebp + 8]
push 1
push SysReAllocString
push ecx
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x477916
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push edi
push 0
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x477977
cmp edi, 0xffffffff
je 0x477977
push 0x5142bc
push edi
call fcn.004a65b0
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x477977
push 0
push dword [ebp + 8]
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x477977
mov eax, dword [ebp + 8]
cmp dword [eax], edi
jne 0x477977
push ebx
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
test eax, eax
je 0x477986
push eax
call fcn.004a5d88
add esp, 4
push ebx
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4779b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, edx
push esi
test ecx, ecx
je 0x477a3b
xor eax, eax
cmp ax, word [ecx]
je 0x477a3b
test ebx, ebx
je 0x477a3b
mov esi, dword [ebp + 8]
test esi, esi
je 0x477a3b
push edi
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4779f5
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x477a29
cmp dword [ebp - 4], esi
jne 0x477a29
push edi
mov esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x477a50
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov esi, edx
test edi, edi
jne 0x477a85
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5d13
mov esp, ebp
pop ebp
ret
test esi, esi
jg 0x477a9f
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5d13
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x10], 0
jne 0x477abb
pop edi
pop esi
mov eax, 0xfffffffd
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5d13
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jg 0x477ad8
pop edi
pop esi
mov eax, 0xfffffffc
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5d13
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x477af0
pop edi
pop esi
lea eax, [ebx - 5]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5d13
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
test eax, eax
jg 0x477b0d
pop edi
pop esi
mov eax, 0xfffffffa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5d13
mov esp, ebp
pop ebp
ret
cmp ecx, eax
jge 0x477b27
pop edi
pop esi
mov eax, 0xfffffff9
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5d13
mov esp, ebp
pop ebp
ret
xor edx, edx
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [edx + edi]
mov byte [ebp + ecx - 0x204], al
lea eax, [edx + 1]
mov byte [ebp + ecx - 0x104], cl
inc ecx
cdq
idiv esi
cmp ecx, 0x100
jl 0x477b30
xor edi, edi
xor esi, esi
nop dword [eax]
nop dword [eax + eax]
mov dl, byte [ebp + esi - 0x104]
movzx eax, byte [ebp + esi - 0x204]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x477b86
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [ebp + edi - 0x104]
mov byte [ebp + edi - 0x104], dl
mov byte [ebp + esi - 0x104], al
inc esi
cmp esi, 0x100
jl 0x477b60
mov edi, dword [ebp + 0x14]
xor esi, esi
xor edx, edx
test edi, edi
jle 0x477c20
sub dword [ebp + 0x10], ebx
inc edx
and edx, 0x800000ff
jns 0x477bc3
dec edx
or edx, 0xffffff00
inc edx
movzx eax, byte [ebp + edx - 0x104]
add esi, eax
and esi, 0x800000ff
jns 0x477bdd
dec esi
or esi, 0xffffff00
inc esi
movzx eax, byte [ebp + edx - 0x104]
mov cl, byte [ebp + esi - 0x104]
mov byte [ebp + esi - 0x104], al
mov byte [ebp + edx - 0x104], cl
movzx eax, byte [ebp + esi - 0x104]
movzx ecx, cl
add ecx, eax
movzx eax, cl
mov ecx, dword [ebp + 0x10]
movzx eax, byte [ebp + eax - 0x104]
xor al, byte [ecx + ebx]
mov byte [ebx], al
inc ebx
sub edi, 1
jne 0x477bb2
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a5d13
mov esp, ebp
pop ebp
ret
Function at 0x477c40
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov esi, edx
test edi, edi
jne 0x477c75
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5d13
mov esp, ebp
pop ebp
ret
test esi, esi
jg 0x477c8f
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5d13
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x477ca7
pop edi
pop esi
lea eax, [ebx - 3]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5d13
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jg 0x477cc4
pop edi
pop esi
mov eax, 0xfffffffc
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5d13
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x10], 0
jne 0x477ce0
pop edi
pop esi
mov eax, 0xfffffffb
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5d13
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
test eax, eax
jg 0x477cfd
pop edi
pop esi
mov eax, 0xfffffffa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5d13
mov esp, ebp
pop ebp
ret
cmp ecx, eax
jge 0x477d17
pop edi
pop esi
mov eax, 0xfffffff9
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5d13
mov esp, ebp
pop ebp
ret
xor edx, edx
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [edx + edi]
mov byte [ebp + ecx - 0x204], al
lea eax, [edx + 1]
mov byte [ebp + ecx - 0x104], cl
inc ecx
cdq
idiv esi
cmp ecx, 0x100
jl 0x477d20
xor edi, edi
xor esi, esi
nop dword [eax]
nop dword [eax + eax]
mov dl, byte [ebp + esi - 0x104]
movzx eax, byte [ebp + esi - 0x204]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x477d76
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [ebp + edi - 0x104]
mov byte [ebp + edi - 0x104], dl
mov byte [ebp + esi - 0x104], al
inc esi
cmp esi, 0x100
jl 0x477d50
mov edi, dword [ebp + 0x14]
xor esi, esi
xor edx, edx
test edi, edi
jle 0x477e10
sub dword [ebp + 0x10], ebx
inc edx
and edx, 0x800000ff
jns 0x477db3
dec edx
or edx, 0xffffff00
inc edx
movzx eax, byte [ebp + edx - 0x104]
add esi, eax
and esi, 0x800000ff
jns 0x477dcd
dec esi
or esi, 0xffffff00
inc esi
movzx eax, byte [ebp + edx - 0x104]
mov cl, byte [ebp + esi - 0x104]
mov byte [ebp + esi - 0x104], al
mov byte [ebp + edx - 0x104], cl
movzx eax, byte [ebp + esi - 0x104]
movzx ecx, cl
add ecx, eax
movzx eax, cl
mov ecx, dword [ebp + 0x10]
movzx eax, byte [ebp + eax - 0x104]
xor al, byte [ecx + ebx]
mov byte [ebx], al
inc ebx
sub edi, 1
jne 0x477da2
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a5d13
mov esp, ebp
pop ebp
ret
Function at 0x477e30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, ecx
mov dword [ebp - 0x18], eax
push edi
push dword [esi]
call ebx
push dword [esi + 4]
mov edi, eax
call ebx
mov ebx, eax
xor esi, esi
push dword [esi + str.37k_IF__y_d]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp + esi - 0x14], eax
add esi, 4
cmp esi, 0x10
jl 0x477e60
xor edx, edx
lea esi, [edx + 0x10]
nop dword [eax]
mov ecx, ebx
lea edx, [edx - 0x61c88647]
shl ecx, 4
mov eax, ebx
add ecx, dword [ebp - 0x14]
shr eax, 5
add eax, dword [ebp - 0x10]
xor ecx, eax
lea eax, [edx + ebx]
xor ecx, eax
add edi, ecx
mov ecx, edi
mov eax, edi
shr ecx, 5
add ecx, dword [ebp - 8]
shl eax, 4
add eax, dword [ebp - 0xc]
xor ecx, eax
lea eax, [edx + edi]
xor ecx, eax
add ebx, ecx
sub esi, 1
jne 0x477e80
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push edi
call esi
mov edi, dword [ebp - 0x18]
push ebx
mov dword [edi], eax
call esi
mov ecx, dword [ebp - 4]
mov dword [edi + 4], eax
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004a5d13
mov esp, ebp
pop ebp
ret
Function at 0x4781e0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, edx
mov esi, ecx
lea ecx, [edi + 2]
cmp ecx, 0xc0000000
jb 0x4781fb
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
mov eax, 0xaaaaaaab
mul ecx
mov eax, dword [ebp + 0xc]
shr edx, 1
shl edx, 2
cmp dword [eax], edx
jb 0x4781f4
push ebx
mov ebx, dword [ebp + 8]
mov ecx, ebx
cmp edi, 2
jbe 0x478294
lea edx, [edi - 3]
mov eax, 0xaaaaaaab
mul edx
mov ebx, edx
shr ebx, 1
inc ebx
nop dword [eax + eax]
movzx eax, byte [esi]
sub edi, 3
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx edx, byte [esi]
movzx eax, byte [esi + 1]
and edx, 3
shr eax, 4
add edx, edx
movzx eax, byte [eax + edx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
movzx edx, byte [esi + 1]
movzx eax, byte [esi + 2]
and edx, 0xf
shr eax, 6
movzx eax, byte [eax + edx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 2], al
movzx eax, byte [esi + 2]
add esi, 3
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 3], al
add ecx, 4
sub ebx, 1
jne 0x478230
mov ebx, dword [ebp + 8]
test edi, edi
je 0x4782f8
movzx eax, byte [esi]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
cmp edi, 1
jbe 0x4782dd
movzx edx, byte [esi]
movzx eax, byte [esi + 1]
and edx, 3
shr eax, 4
add edx, edx
movzx eax, byte [eax + edx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
movzx eax, byte [esi + 1]
and eax, 0xf
movzx eax, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 2], al
mov byte [ecx + 3], 0x3d
jmp 0x4782f5
movzx eax, byte [esi]
and eax, 3
shl eax, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
mov word [ecx + 2], 0x3d3d
add ecx, 4
mov edx, dword [ebp + 0xc]
mov eax, ecx
sub eax, ebx
pop ebx
pop edi
mov dword [edx], eax
xor eax, eax
mov byte [ecx], 0
pop esi
pop ebp
ret
Function at 0x479130
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x2c]
nop
mov eax, dword [edi + 0x2c]
mov edx, dword [edi + 0x3c]
add eax, 0xfffffefa
sub edx, dword [edi + 0x74]
add eax, esi
sub edx, dword [edi + 0x6c]
mov dword [ebp - 4], edx
cmp dword [edi + 0x6c], eax
jb 0x4791bf
mov ecx, dword [edi + 0x38]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.004a8f00
mov edx, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], esi
sub dword [edi + 0x6c], esi
sub dword [edi + 0x5c], esi
lea ecx, [eax + edx*2]
nop
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x47918f
sub eax, esi
jmp 0x479191
xor eax, eax
mov word [ecx], ax
sub edx, 1
jne 0x479180
mov eax, dword [edi + 0x40]
mov edx, esi
lea ecx, [eax + esi*2]
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x4791b0
sub eax, esi
jmp 0x4791b2
xor eax, eax
mov word [ecx], ax
sub edx, 1
jne 0x4791a1
mov edx, dword [ebp - 4]
add edx, esi
mov ebx, dword [edi]
cmp dword [ebx + 4], 0
je 0x4792f3
mov eax, dword [edi + 0x74]
add eax, dword [edi + 0x6c]
add eax, dword [edi + 0x38]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 4]
cmp eax, edx
mov ecx, eax
cmova ecx, edx
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x4791ec
xor eax, eax
jmp 0x47923f
sub eax, ecx
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x479209
mov edx, dword [ebx]
push ecx
mov ecx, dword [ebx + 0x30]
call fcn.0047d320
jmp 0x479221
cmp eax, 2
jne 0x479227
mov edx, dword [ebx]
test edx, edx
jne 0x479218
xor eax, eax
jmp 0x479224
push ecx
mov ecx, dword [ebx + 0x30]
call fcn.0047d5c0
add esp, 4
mov dword [ebx + 0x30], eax
push dword [ebp - 4]
push dword [ebx]
push dword [ebp - 8]
call fcn.004a8f00
mov eax, dword [ebp - 4]
add esp, 0xc
add dword [ebx], eax
add dword [ebx + 8], eax
add dword [edi + 0x74], eax
mov ebx, dword [edi + 0x74]
cmp ebx, 3
jb 0x479267
mov eax, dword [edi + 0x38]
add eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x58]
movzx edx, byte [eax]
mov dword [edi + 0x48], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [edi + 0x54]
mov dword [edi + 0x48], edx
cmp ebx, 0x106
jae 0x47927b
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x479140
mov edx, dword [edi + 0x16c0]
mov ecx, dword [edi + 0x3c]
cmp edx, ecx
jae 0x4792f3
mov esi, dword [edi + 0x6c]
add esi, ebx
cmp edx, esi
jae 0x4792c3
sub ecx, esi
mov eax, 0x102
cmp ecx, eax
cmova ecx, eax
mov eax, dword [edi + 0x38]
push ecx
add eax, esi
mov dword [ebp - 8], ecx
push 0
push eax
call fcn.004a8960
mov eax, dword [ebp - 8]
add esp, 0xc
add eax, esi
mov dword [edi + 0x16c0], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x102]
cmp edx, eax
jae 0x4792f3
mov eax, dword [edi + 0x38]
sub esi, edx
sub ecx, edx
add esi, 0x102
cmp esi, ecx
cmova esi, ecx
add eax, edx
push esi
push 0
push eax
call fcn.004a8960
add esp, 0xc
add dword [edi + 0x16c0], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47d5a0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x47d5ab
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.0047d5c0
Function at 0x47e960
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0xec]
mov dword [ebp - 0xec], 0
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftInternet_Explorer
xorps xmm0, xmm0
push reloc.OLEAUT32.dll_SysReAllocString
movlpd qword [ebp - 0xf8], xmm0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47ea91
push 0xc8
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.004a8960
add esp, 0xc
mov dword [ebp - 0xfc], 0xc8
lea eax, [ebp - 0xfc]
mov dword [ebp - 0x100], 0
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x100]
push eax
push 0
push str.Version
push dword [ebp - 0xec]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47ea65
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp - 0xe8]
call fcn.00438600
lea eax, [ebp - 0xe8]
push eax
call fcn.0047ef10
mov ecx, dword [ebp - 0xd4]
mov esi, eax
mov edi, edx
cmp ecx, 8
jb 0x47ea71
inc ecx
push ecx
push dword [ebp - 0xe8]
lea ecx, [ebp - 0xe8]
call fcn.00433600
push dword [ebp - 0xec]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov edx, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5d13
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0xf4]
mov esi, dword [ebp - 0xf8]
push dword [ebp - 0xec]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov edx, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5d13
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xf8]
xor ecx, ebp
mov edx, dword [ebp - 0xf4]
pop edi
pop esi
call fcn.004a5d13
mov esp, ebp
pop ebp
ret

Function at 0x47ed40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5d78
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push 0x20019
push esi
push str.SoftwareTencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47edbc
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], 4
test eax, eax
je 0x47edca
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push esi
push 0x4f338c
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47edbc
cmp dword [ebp - 0x18], 4
cmove esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x47edca
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4801f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, ecx
mov dword [ebp - 0x18], edx
push edi
mov dword [ebp - 0x20], eax
push dword [esi]
call ebx
push dword [esi + 4]
mov dword [ebp - 0x1c], eax
call ebx
mov edi, dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebp - 0x14]
xor esi, esi
sub edi, eax
nop dword [eax]
lea eax, [edi + esi*4]
push dword [ebp + eax - 0x14]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp + esi*4 - 0x14], eax
inc esi
cmp esi, 4
jl 0x480230
mov edi, dword [ebp - 0x1c]
xor edx, edx
lea esi, [edx + 0x10]
nop
mov ecx, ebx
lea edx, [edx - 0x61c88647]
shl ecx, 4
mov eax, ebx
add ecx, dword [ebp - 0x14]
shr eax, 5
add eax, dword [ebp - 0x10]
xor ecx, eax
lea eax, [edx + ebx]
xor ecx, eax
add edi, ecx
mov ecx, edi
mov eax, edi
shr ecx, 5
add ecx, dword [ebp - 8]
shl eax, 4
add eax, dword [ebp - 0xc]
xor ecx, eax
lea eax, [edx + edi]
xor ecx, eax
add ebx, ecx
sub esi, 1
jne 0x480250
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push edi
call esi
mov edi, dword [ebp - 0x20]
push ebx
mov dword [edi], eax
call esi
mov ecx, dword [ebp - 4]
mov dword [edi + 4], eax
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004a5d13
mov esp, ebp
pop ebp
ret
Function at 0x480760
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push edi
mov edi, ecx
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x480785
push eax
call esi
mov eax, dword [edi + 8]
mov dword [edi], 0xffffffff
mov byte [edi + 4], 0
test eax, eax
je 0x48079f
cmp byte [eax], 0
je 0x480876
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4807eb
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x1c]
push 4
push eax
push 0x1002
push 0xffff
push ebx
mov dword [ebp - 0x1c], 0x10000
call esi
push 4
lea eax, [ebp - 0x1c]
push eax
push 0x1001
push 0xffff
push ebx
call esi
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi], ebx
cmp ebx, 0xffffffff
je 0x48085c
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 1
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
xorps xmm0, xmm0
mov eax, 2
movups xmmword [ebp - 0x18], xmm0
mov word [ebp - 0x18], ax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x16], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push 0x10
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x48084b
cmp eax, 0xffffffff
jne 0x48085c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x48085c
push 1
mov ecx, edi
call fcn.00480910
test al, al
je 0x48085c
mov byte [edi + 4], 1
cmp byte [edi + 4], 0
jne 0x480876
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x48086c
push eax
call esi
mov dword [edi], 0xffffffff
mov byte [edi + 4], 0
mov al, byte [edi + 4]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a5d13
mov esp, ebp
pop ebp
ret 0xc

Function at 0x480890
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp byte [edi + 4], 0
je 0x4808fc
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
mov esi, ebx
test ebx, ebx
jle 0x4808ec
nop dword [eax]
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x4808bc
cmp byte [ecx], 0
je 0x4808df
mov ecx, dword [edi]
cmp ecx, 0xffffffff
je 0x4808ec
mov eax, dword [ebp + 8]
push 0
sub eax, esi
push esi
add eax, ebx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x4808ec
sub esi, eax
test esi, esi
jg 0x4808b0
test eax, eax
jle 0x4808ec
pop esi
mov eax, ebx
pop ebx
pop edi
pop ebp
ret 8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop esi
pop ebx
or eax, 0xffffffff
pop edi
pop ebp
ret 8
or eax, 0xffffffff
pop edi
pop ebp
ret 8
Function at 0x480910
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x511070]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi], 0xffffffff
je 0x4809ed
mov bl, byte [ebp + 8]
imul esi, dword [edi + 0xc], 0x3e8
test bl, bl
jne 0x480948
add esi, esi
test esi, esi
jle 0x4809ed
mov eax, dword [edi + 8]
mov ecx, dword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x480966
cmp byte [eax], 0
je 0x4809ed
mov eax, dword [edi]
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x124]
mov dword [esp + 0x20], eax
mov dword [esp + 0x128], eax
inc eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x124], 1
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0xc350
push edx
lea edx, [esp + 0x20]
test bl, bl
je 0x4809b1
push edx
push 0
jmp 0x4809b4
push 0
push edx
push eax
call ecx
test eax, eax
jg 0x4809c3
sub esi, 0xc350
jmp 0x480948
lea eax, [esp + 0x18]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.004a5d13
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x22c]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a5d13
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ebx
push edi
mov edi, ecx
test ebx, ebx
jle 0x480af9
mov eax, dword [edi + 8]
test eax, eax
je 0x480ac9
cmp byte [eax], 0
je 0x480af9
mov eax, dword [edi + 8]
test eax, eax
je 0x480ac9
cmp byte [eax], 0
je 0x480b02
push 0
mov ecx, edi
call fcn.00480910
test al, al
je 0x480b02
mov ecx, dword [edi]
cmp ecx, 0xffffffff
je 0x480b02
mov eax, dword [ebp + 8]
push 0
sub eax, esi
push esi
add eax, ebx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x480b02
sub esi, eax
test esi, esi
jg 0x480ab1
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8