joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46c2b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50adad
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x54b144]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x48], 8
lea eax, [esi + 0x34]
jb 0x46c2e6
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46c300
mov ecx, esi
call fcn.0046d140
test eax, eax
jne 0x46c4af
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0046cad0
push 0
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
mov dword [ebp - 0x74], esp
push eax
call fcn.0044ef30
sub esp, 0x18
mov byte [ebp - 4], 4
lea eax, [ebp - 0x40]
mov dword [ebp - 0x78], esp
mov ecx, esp
push eax
call fcn.0044ef30
sub esp, 0x18
mov byte [ebp - 4], 5
lea eax, [ebp - 0x58]
mov dword [ebp - 0x7c], esp
mov ecx, esp
push eax
call fcn.0044ef30
sub esp, 0x18
mov byte [ebp - 4], 6
lea eax, [ebp - 0x70]
mov ecx, esp
push eax
call fcn.0044ef30
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.0046c900
mov ecx, esi
call fcn.0046cc60
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x46c41b
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46c411
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c4c9
push edx
push ecx
call fcn.004dafca
add esp, 8
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x46c44f
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46c445
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c4c9
push edx
push ecx
call fcn.004dafca
add esp, 8
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x46c47f
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46c475
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c4c9
push edx
push ecx
call fcn.004dafca
add esp, 8
mov edx, dword [ebp - 0x5c]
cmp edx, 0x10
jb 0x46c4af
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46c4a5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c4c9
push edx
push ecx
call fcn.004dafca
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret
call fcn.004e002c
int3
Function at 0x46cad0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x54b144]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x18], 0x10
xorps xmm0, xmm0
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x9c], eax
lea esi, [ecx + 4]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xa0], eax
mov eax, esi
movups xmmword [ebp - 0x28], xmm0
mov byte [ebp - 8], 0
movups xmmword [ebp - 0x18], xmm0
mov byte [ebp - 0x2c], 0
movups xmmword [ebp - 0x4c], xmm0
mov byte [ebp - 0x50], 0
movups xmmword [ebp - 0x3c], xmm0
mov byte [ebp - 0x74], 0
movups xmmword [ebp - 0x70], xmm0
movups xmmword [ebp - 0x60], xmm0
movups xmmword [ebp - 0x94], xmm0
movups xmmword [ebp - 0x84], xmm0
jb 0x46cb49
mov eax, dword [esi]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
push 0x21
lea eax, [ebp - 0x28]
push eax
push 0
push str.config1
push str.Profile
call edi
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x46cb6f
mov eax, dword [esi]
push eax
push 0x21
lea eax, [ebp - 0x4c]
push eax
push 0
push str.config2
push str.Profile
call edi
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x46cb8e
mov eax, dword [esi]
push eax
push 0x21
lea eax, [ebp - 0x70]
push eax
push 0
push str.config3
push str.Profile
call edi
cmp dword [esi + 0x14], 0x10
jb 0x46cbab
mov esi, dword [esi]
push esi
push 0x21
lea eax, [ebp - 0x94]
push eax
push 0
push str.config4
push str.Profile
call edi
lea edx, [ebp - 0x28]
lea esi, [edx + 1]
pop edi
nop word [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x46cbd0
sub edx, esi
lea eax, [ebp - 0x28]
push edx
push eax
mov ecx, ebx
call fcn.0044c030
lea edx, [ebp - 0x4c]
lea esi, [edx + 1]
nop dword [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x46cbf0
mov ecx, dword [ebp - 0x98]
lea eax, [ebp - 0x4c]
sub edx, esi
push edx
push eax
call fcn.0044c030
lea edx, [ebp - 0x70]
lea esi, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x46cc10
mov ecx, dword [ebp - 0x9c]
lea eax, [ebp - 0x70]
sub edx, esi
push edx
push eax
call fcn.0044c030
lea edx, [ebp - 0x94]
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x46cc32
mov ecx, dword [ebp - 0xa0]
lea eax, [ebp - 0x94]
sub edx, esi
push edx
push eax
call fcn.0044c030
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004dafe6
mov esp, ebp
pop ebp
ret 0x10
Function at 0x46d140
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x60
mov eax, dword [0x54b144]
xor eax, esp
mov dword [esp + 0x5c], eax
add ecx, 0x1c
mov byte [esp + 0x40], 0
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x30], xmm0
cmp dword [ecx + 0x14], 0x10
jb 0x46d171
mov ecx, dword [ecx]
push ecx
push 0x21
lea eax, [esp + 0x28]
push eax
push 0
push str.Guid
push str.CurGuid
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x20]
mov dword [esp + 8], 0
mov dword [esp + 0x18], 0
lea edx, [ecx + 1]
mov dword [esp + 0x1c], 0xf
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46d1b0
sub ecx, edx
lea eax, [esp + 0x20]
push ecx
push eax
lea ecx, [esp + 0x10]
call fcn.0044c030
mov edx, dword [esp + 0x1c]
xor eax, eax
cmp dword [esp + 0x18], eax
setne al
mov dword [esp + 4], eax
cmp edx, 0x10
jb 0x46d20b
mov ecx, dword [esp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46d1fd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d21a
push edx
push ecx
call fcn.004dafca
mov eax, dword [esp + 0xc]
add esp, 8
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret
call fcn.004e002c
int3
Function at 0x471590
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x54b144]
xor eax, esp
mov dword [esp + 0x60], eax
push esi
mov esi, dword [ebp + 8]
test ecx, ecx
je 0x471610
test edx, edx
jle 0x471610
test esi, esi
je 0x471610
push edx
mov edx, ecx
mov dword [esp + 0x20], 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.004718e0
add esp, 4
lea edx, [esp + 8]
mov ecx, esi
call fcn.004719c0
mov al, 1
pop esi
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x64]
xor al, al
pop esi
xor ecx, esp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret

Function at 0x4716f0
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b240
mov eax, dword fs:[0]
push eax
mov eax, 0x217c
call fcn.004db7a0
mov eax, dword [0x54b144]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2188], ecx
mov dword [ebp - 0x2184], 0
mov dword [ebp - 0x2180], 0
sub esp, 0xc
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2184]
push 3
push 1
push SysReAllocString
push eax
call fcn.004714d0
test eax, eax
jns 0x47176b
xor esi, esi
jmp 0x4718a7
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
xorps xmm0, xmm0
mov esi, dword [ebp - 0x2184]
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x2164], 0
mov dword [ebp - 0x2168], 0
mov dword [ebp - 0x2178], 0x67452301
mov dword [ebp - 0x2174], 0xefcdab89
mov dword [ebp - 0x2170], 0x98badcfe
mov dword [ebp - 0x216c], 0x10325476
nop word [eax + eax]
push 0
lea eax, [ebp - 0x217c]
mov dword [ebp - 0x217c], 0
push eax
push 0x2000
lea eax, [ebp - 0x2120]
push eax
push esi
call edi
test eax, eax
jne 0x4717eb
call fcn.004714b0
mov eax, dword [ebp - 0x217c]
test eax, eax
je 0x47180c
push eax
lea edx, [ebp - 0x2120]
lea ecx, [ebp - 0x2178]
call fcn.004718e0
add esp, 4
jmp 0x4717c0
test esi, esi
je 0x471821
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x2184], 0
lea edx, [ebp - 0x2178]
lea ecx, [ebp - 0x20]
call fcn.004719c0
push 0x100
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.004dcc10
add esp, 0xc
lea edi, [ebp - 0x120]
xor esi, esi
nop dword [eax]
movzx eax, byte [ebp + esi - 0x20]
push eax
push str._.2x
push 0xffffffffffffffff
push 3
push edi
call fcn.0044ab20
inc esi
add esp, 0x14
add edi, 4
cmp esi, 0x10
jb 0x471850
lea edx, [ebp - 0x120]
lea esi, [edx + 2]
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x471880
mov ecx, dword [ebp - 0x2188]
lea eax, [ebp - 0x120]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.0044f440
mov esi, 1
mov ecx, dword [ebp - 0x2184]
test ecx, ecx
je 0x4718b8
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
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.004dafe6
mov esp, ebp
pop ebp
ret
Function at 0x472780
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
test eax, eax
je 0x472858
xor ecx, ecx
cmp cx, word [eax]
je 0x472858
mov esi, dword [ebp + 0xc]
cmp dword [esi], ecx
jne 0x472858
push 0
push 0x80
push 3
push 0
mov dword [esi], ecx
mov ecx, dword [ebp + 0x10]
push 1
push SysReAllocString
push eax
mov dword [ecx], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x472858
push edi
push 0
push ebx
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x472834
cmp edi, 0xffffffff
je 0x472834
push 0x521c18
push edi
call fcn.004db4c6
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x472834
push 0
push dword [ebp + 0x10]
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x472834
mov eax, dword [ebp + 0x10]
cmp dword [eax], edi
jne 0x472834
push ebx
mov dword [ebp + 8], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [esi]
test eax, eax
je 0x472843
push eax
call fcn.004dafe1
add esp, 4
push ebx
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x472860
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, edx
push esi
push edi
test ecx, ecx
je 0x4728e2
xor eax, eax
cmp ax, word [ecx]
je 0x4728e2
test ebx, ebx
je 0x4728e2
mov esi, dword [ebp + 8]
test esi, esi
je 0x4728e2
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
je 0x4728e2
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 0x4728d0
cmp dword [ebp - 4], esi
jne 0x4728d0
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 edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4728f0
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x54b144]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x472922
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jg 0x472940
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x18], 0
jne 0x47295c
pop edi
pop esi
mov eax, 0xfffffffd
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
test ecx, ecx
jg 0x472979
pop edi
pop esi
mov eax, 0xfffffffc
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x472991
pop edi
pop esi
lea eax, [ebx - 5]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x1c]
test eax, eax
jg 0x4729ae
pop edi
pop esi
mov eax, 0xfffffffa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret
cmp ecx, eax
jge 0x4729c8
pop edi
pop esi
mov eax, 0xfffffff9
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret
xor edx, edx
xor ecx, ecx
nop dword [eax]
mov al, byte [edx + esi]
mov byte [ebp + ecx - 0x204], al
lea eax, [edx + 1]
mov byte [ebp + ecx - 0x104], cl
inc ecx
cdq
idiv edi
cmp ecx, 0x100
jl 0x4729d0
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 0x472a26
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 0x472a00
mov edi, dword [ebp + 0x18]
xor esi, esi
sub edi, ebx
xor edx, edx
nop dword [eax]
inc edx
and edx, 0x800000ff
jns 0x472a61
dec edx
or edx, 0xffffff00
inc edx
mov cl, byte [ebp + edx - 0x104]
movzx eax, cl
add esi, eax
and esi, 0x800000ff
jns 0x472a7d
dec esi
or esi, 0xffffff00
inc esi
mov al, byte [ebp + esi - 0x104]
mov byte [ebp + esi - 0x104], cl
mov byte [ebp + edx - 0x104], al
movzx ecx, byte [ebp + esi - 0x104]
movzx eax, al
add ecx, eax
movzx eax, cl
movzx eax, byte [ebp + eax - 0x104]
xor al, byte [edi + ebx]
mov byte [ebx], al
inc ebx
sub dword [ebp + 0x1c], 1
jne 0x472a50
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004dafe6
mov esp, ebp
pop ebp
ret
Function at 0x472ad0
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x54b144]
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 0x472b05
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret
test esi, esi
jg 0x472b1f
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x472b37
pop edi
pop esi
lea eax, [ebx - 3]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jg 0x472b54
pop edi
pop esi
mov eax, 0xfffffffc
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x10], 0
jne 0x472b70
pop edi
pop esi
mov eax, 0xfffffffb
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
test eax, eax
jg 0x472b8d
pop edi
pop esi
mov eax, 0xfffffffa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret
cmp ecx, eax
jge 0x472ba7
pop edi
pop esi
mov eax, 0xfffffff9
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dafe6
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 0x472bb0
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 0x472c06
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 0x472be0
mov edi, dword [ebp + 0x10]
xor esi, esi
sub edi, ebx
xor edx, edx
nop dword [eax]
inc edx
and edx, 0x800000ff
jns 0x472c41
dec edx
or edx, 0xffffff00
inc edx
mov cl, byte [ebp + edx - 0x104]
movzx eax, cl
add esi, eax
and esi, 0x800000ff
jns 0x472c5d
dec esi
or esi, 0xffffff00
inc esi
mov al, byte [ebp + esi - 0x104]
mov byte [ebp + esi - 0x104], cl
mov byte [ebp + edx - 0x104], al
movzx ecx, byte [ebp + esi - 0x104]
movzx eax, al
add ecx, eax
movzx eax, cl
movzx eax, byte [ebp + eax - 0x104]
xor al, byte [edi + ebx]
mov byte [ebx], al
inc ebx
sub dword [ebp + 0x14], 1
jne 0x472c30
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004dafe6
mov esp, ebp
pop ebp
ret
Function at 0x472cb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x54b144]
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
xor esi, esi
push dword [edi + esi*4]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp + esi*4 - 0x14], eax
inc esi
cmp esi, 4
jl 0x472ce7
mov edi, dword [ebp - 0x1c]
xor edx, edx
lea esi, [edx + 0x10]
mov ecx, ebx
lea edx, [edx - 0x61c88647]
shr ecx, 5
mov eax, ebx
add ecx, dword [ebp - 0x10]
shl eax, 4
add eax, dword [ebp - 0x14]
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 0x472d02
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.004dafe6
mov esp, ebp
pop ebp
ret
Function at 0x473080
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
lea ecx, [edi + 2]
cmp ecx, 0xc0000000
jae 0x4731a1
mov eax, 0xaaaaaaab
mul ecx
mov eax, dword [ebp + 0x14]
shr edx, 1
shl edx, 2
cmp dword [eax], edx
jb 0x4731a1
mov ecx, dword [ebp + 0x10]
push ebx
cmp edi, 2
jbe 0x473131
lea edx, [edi - 3]
mov eax, 0xaaaaaaab
mul edx
mov ebx, edx
shr ebx, 1
inc ebx
nop dword [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 0x4730d0
test edi, edi
je 0x47318d
movzx eax, byte [esi]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx edx, byte [esi]
and edx, 3
shl edx, 4
cmp edi, 1
jbe 0x47317b
movzx eax, byte [esi + 1]
shr eax, 4
movzx eax, byte [eax + edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
movzx eax, byte [esi + 1]
and eax, 0xf
mov byte [ecx + 3], 0x3d
movzx eax, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 2], al
jmp 0x47318a
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
mov word [ecx + 2], 0x3d3d
add ecx, 4
mov edx, dword [ebp + 0x14]
mov eax, ecx
sub eax, dword [ebp + 0x10]
pop ebx
pop edi
mov dword [edx], eax
xor eax, eax
mov byte [ecx], 0
pop esi
pop ebp
ret
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x4786b0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4786bb
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.004786d0
Function at 0x479c60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, ecx
push ebx
mov dword [ebp - 0xc], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [eax]
test eax, eax
je 0x479d25
lea ecx, [ebp - 4]
push ecx
push ebx
lea ecx, [ebp - 8]
push ecx
push ebx
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 8], 1
jne 0x479d25
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
push edi
call fcn.0044f630
mov edx, dword [ebp - 4]
shr edx, 1
add edx, 1
js 0x479d2e
mov edi, dword [esi]
mov ecx, 1
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, edx
or ecx, eax
jge 0x479ccc
push edx
mov ecx, esi
call fcn.0044f690
mov edi, dword [esi]
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x479d23
mov eax, dword [ebp - 4]
xor ecx, ecx
shr eax, 1
mov word [edi + eax*2], cx
mov eax, dword [esi]
test eax, eax
je 0x479d0c
push dword [eax - 8]
push eax
call fcn.004e022f
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x479d2e
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x479d2e
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov ebx, 1
mov word [eax + ecx*2], dx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.00450130
int3

Function at 0x479d40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push str.SOFTWARETencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x479da3
mov esi, dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.VerMode
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
je 0x479da3
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 4], 1
pop esi
sete al
mov esp, ebp
pop ebp
ret