joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42604e
Capabilities:
Access peb ldr_data
Check os version
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x1c], edx
mov edx, ecx
push ebx
mov ebx, dword fs:[0x30]
xor ecx, ecx
push esi
mov eax, dword [edx + 0x3c]
push edi
mov esi, dword [ebx + 8]
mov dword [ebp - 0xc], edx
mov edi, dword [eax + edx + 0x78]
add edi, edx
mov dword [ebp - 0x24], edi
mov eax, dword [edi + 0x20]
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x24]
add eax, edx
cmp byte [esi + 1], 0x5a
mov dword [ebp - 0x10], eax
je 0x42609e
mov edx, ecx
lea eax, [edx + ebx]
mov byte [edx + esi], al
inc edx
cmp edx, 0xa
jb 0x42608f
mov edx, dword [ebp - 0xc]
mov esi, dword [edi + 0x1c]
mov ebx, ecx
add esi, edx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x28], esi
cmp dword [edi + 0x18], ecx
jbe 0x42620d
mov eax, dword fs:[0x20]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + ebx*2]
mov eax, dword [esi + eax*4]
mov esi, dword [ebp - 0x14]
add eax, edx
mov dword [ebp - 0x2c], eax
mov eax, dword fs:[0x30]
mov dword [ebp - 4], 0x77d4068a
mov edi, dword [esi + ebx*4]
add edi, edx
mov esi, dword [eax + 0xa4]
mov ebx, dword [eax + 0xc]
cmp esi, 2
jae 0x426103
mov edx, ecx
lea eax, [esi + edx]
mov word [ebx + edx*2], ax
inc edx
cmp edx, 3
jb 0x4260f6
mov edx, dword fs:[0x30]
mov al, byte [edi]
mov dword [ebp - 0x18], edx
test al, al
je 0x426169
mov ebx, dword fs:[0x30]
xor byte [ebp - 4], al
mov esi, dword [ebx + 8]
cmp byte [esi + 1], 0x5a
je 0x426134
mov edx, ecx
lea eax, [edx + ebx]
mov byte [edx + esi], al
inc edx
cmp edx, 0xa
jb 0x426128
mov esi, dword fs:[0x30]
mov ebx, dword [esi + 0x64]
cmp ebx, 0x1f4
jbe 0x426154
mov edx, ecx
lea eax, [edx + ebx]
mov byte [edx + esi], al
inc edx
cmp edx, 0x13
jb 0x426148
mov esi, dword [ebp - 4]
ror esi, 8
inc edi
mov dword [ebp - 4], esi
mov al, byte [edi]
test al, al
jne 0x426113
mov edx, dword [ebp - 0x18]
jmp 0x42616c
mov esi, dword [ebp - 4]
mov edi, dword [edx + 0xa4]
mov ebx, dword [edx + 0xc]
cmp edi, 2
jae 0x426189
mov edx, ecx
lea eax, [edi + edx]
mov word [ebx + edx*2], ax
inc edx
cmp edx, 3
jb 0x42617c
cmp esi, dword [ebp - 0x1c]
je 0x4261ec
cmp dword [ebp - 0x20], ecx
je 0x4261d1
mov ebx, dword fs:[0x30]
mov esi, dword [ebx + 8]
cmp byte [esi + 1], 0x5a
je 0x4261b1
mov edx, ecx
lea eax, [edx + ebx]
mov byte [edx + esi], al
inc edx
cmp edx, 0xa
jb 0x4261a5
mov esi, dword fs:[0x30]
mov ebx, dword [esi + 0x64]
cmp ebx, 0x1f4
jbe 0x4261d1
mov edx, ecx
lea eax, [edx + ebx]
mov byte [edx + esi], al
inc edx
cmp edx, 0x13
jb 0x4261c5
mov ebx, dword [ebp - 8]
mov eax, dword [ebp - 0x24]
inc ebx
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x28]
mov dword [ebp - 8], ebx
cmp ebx, dword [eax + 0x18]
jb 0x4260b4
jmp 0x42620d
mov edx, dword fs:[0x30]
mov ebx, dword [edx + 0x64]
cmp ebx, 0x1f4
jbe 0x42620a
lea eax, [ecx + ebx]
mov byte [ecx + edx], al
inc ecx
cmp ecx, 0x13
jb 0x4261fe
mov ecx, dword [ebp - 0x2c]
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42665c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x47bbb0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
xor ebx, ebx
push ebx
push eax
call fcn.00439ae0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.TencentWeChatQQBrowser_Pluginlog_
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0044772e
xor eax, eax
lea edi, [ebp - 0x234]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x22e]
push eax
movzx eax, word [ebp - 0x232]
push eax
movzx eax, word [ebp - 0x234]
push eax
lea eax, [ebp - 0x224]
push str.MM__d_.2d_.2d.xlog
push eax
call fcn.004045f0
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.004162f0
add esp, 0x20
lea ecx, [ebp - 0x224]
push ebx
push 1
call fcn.004046c0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043834d
mov esp, ebp
pop ebp
ret 4
Function at 0x4277a4
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x47bbb0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x18]
xor esi, esi
push eax
push 0x28
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x42780b
push edi
lea eax, [ebp - 0x10]
xor edi, edi
push eax
push str.SeDebugPrivilege
inc edi
push esi
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x42780a
push esi
push esi
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 2
push eax
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
cmovne esi, edi
pop edi
cmp dword [ebp - 0x18], 0
je 0x42781a
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0043834d
mov esp, ebp
pop ebp
ret
Function at 0x427a88
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x47bbb0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0xcc], 0
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor bh, bh
mov dword [ebp - 0xd0], eax
cmp dword [esi + 0x10], 0
je 0x427c3c
cmp dword [esi + 0x14], 8
jb 0x427ac6
mov eax, dword [esi]
jmp 0x427ac8
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x427c3c
lea eax, [ebp - 0xdc]
push esi
push eax
call fcn.004272eb
and dword [ebp - 0xcc], 0
pop ecx
pop ecx
push str.CloudCfg_DisableZipTraceFile
lea ecx, [ebp - 0x1c]
call fcn.00405d80
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0041b90c
pop ecx
pop ecx
test eax, eax
je 0x427b1d
cmp dword [ebp - 0xcc], 0
je 0x427b1d
xor bl, bl
jmp 0x427b1f
mov bl, 1
push edi
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.004046c0
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test bl, bl
je 0x427bc8
push esi
lea ecx, [ebp - 0x1c]
call fcn.00405de0
push str..zip
call fcn.00405140
pop ecx
push eax
push str..zip
lea ecx, [ebp - 0x1c]
call fcn.00404e50
push 0x80000
push 0x1f4
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.00428132
add esp, 0x14
test al, al
je 0x427bae
cmp dword [esi + 0x14], 8
jb 0x427b88
mov eax, dword [esi]
jmp 0x427b8a
mov eax, esi
push eax
call edi
cmp dword [esi + 0x14], 8
jb 0x427b97
mov ecx, dword [esi]
jmp 0x427b99
mov ecx, esi
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
push ecx
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x427bbc
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call edi
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.004046c0
lea eax, [ebp - 0x34]
push esi
push eax
call fcn.0042752c
cmp dword [ebp - 0x24], 0
pop ecx
pop ecx
je 0x427c15
push 2
lea eax, [ebp - 0x34]
push eax
push esi
lea ecx, [ebp - 0xc8]
call fcn.004233ad
push dword [ebp - 0xd0]
lea ecx, [ebp - 0xc8]
call fcn.00423c58
lea ecx, [ebp - 0xc8]
call fcn.00423e60
lea ecx, [ebp - 0xc8]
mov bh, al
call fcn.0042349b
cmp dword [esi + 0x14], 8
jb 0x427c1d
mov esi, dword [esi]
push esi
call edi
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.004046c0
lea ecx, [ebp - 0xdc]
call fcn.00407f60
mov al, bh
pop edi
jmp 0x427c3e
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043834d
mov esp, ebp
pop ebp
ret
Function at 0x429d94
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x429da2
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x429e61
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x464830]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x464830]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x464830]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x464830]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x464830]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x464830]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x464830]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x464830]
sub edi, 1
jne 0x429dba
pop edi
test esi, esi
je 0x429e7d
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x464830]
inc edx
sub esi, 1
jne 0x429e65
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x42a55a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov ecx, edi
mov ebx, edi
mov dword [ebp - 4], ecx
mov dword [esi + 0x6af80], 2
jmp 0x42a75f
cmp dword [esi + 0x6af90], 3
jb 0x42a5d7
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
xor ecx, eax
and ecx, 0x7fff
and edx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov eax, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af7c]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x42a614
mov eax, dword [esi + 0x6af84]
sub eax, ecx
cmp eax, 0x7efa
ja 0x42a614
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x42a5fe
mov dword [esi + 0x6afa0], eax
push ecx
push esi
call fcn.0042b100
pop ecx
pop ecx
mov ecx, dword [esi + 0x6af90]
mov ebx, eax
cmp ebx, ecx
cmova ebx, ecx
cmp ebx, 3
jb 0x42a6ea
lea eax, [ebx - 3]
push eax
mov eax, dword [esi + 0x6af84]
sub eax, dword [esi + 0x6af88]
push eax
push esi
call fcn.0042a0bb
sub dword [esi + 0x6af90], ebx
add esp, 0xc
mov dword [ebp + 8], eax
cmp ebx, dword [esi + 0x6af98]
ja 0x42a6b1
cmp dword [esi + 0x6af90], 3
jb 0x42a6b1
dec ebx
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [esi + edx + 0x1af72]
and edx, 0x7fff
xor ecx, eax
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov eax, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af7c]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
sub ebx, 1
jne 0x42a652
mov eax, dword [ebp + 8]
jmp 0x42a709
add dword [esi + 0x6af84], ebx
mov ebx, edi
mov eax, dword [esi + 0x6af84]
movzx ecx, byte [eax + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx eax, byte [eax + esi + 0x1af71]
shl ecx, 5
xor eax, ecx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov eax, dword [ebp + 8]
jmp 0x42a70f
mov eax, dword [esi + 0x6af84]
movzx eax, byte [eax + esi + 0x1af70]
push eax
push edi
push esi
call fcn.0042a0bb
add esp, 0xc
dec dword [esi + 0x6af90]
inc dword [esi + 0x6af84]
test eax, eax
je 0x42a749
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x42a727
lea edx, [esi + 0x1af70]
add edx, ecx
jmp 0x42a729
mov edx, edi
mov eax, dword [esi + 0x6af84]
push edi
sub eax, ecx
push eax
push edx
push esi
call fcn.0042a973
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x42a75c
push esi
call fcn.0042a830
pop ecx
mov ecx, dword [ebp - 4]
cmp dword [esi + 0x6af90], edi
jne 0x42a57c
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x42a77d
lea edi, [esi + 0x1af70]
add edi, ecx
mov eax, dword [esi + 0x6af84]
push 1
sub eax, ecx
push eax
push edi
push esi
call fcn.0042a973
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42afd4
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebx - 1]
cmp eax, 7
jbe 0x42aff2
mov dword [esi + 0x6afa4], str.bad_pack_level
xor edi, edi
mov dword [esi + 0x6af78], edi
cmp dword [esi + 0x6af70], edi
jne 0x42b016
mov dword [esi + 0x6af78], 1
mov dword [esi + 0x6af70], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
mov dword [esi + 0x6af6c], edi
push edi
push eax
call fcn.00439ae0
movzx eax, word [ebx*8 + 0x46467a]
add esp, 0xc
mov dword [esi + 0x6af98], eax
movzx eax, word [ebx*8 + 0x464678]
mov dword [esi + 0x6af9c], eax
movzx eax, word [ebx*8 + 0x46467c]
push 2
mov dword [esi + 0x6afa0], eax
movzx eax, word [ebx*8 + 0x46467e]
pop ecx
mov dword [esi + 0x6af94], eax
cmp ebx, ecx
jg 0x42b079
mov eax, dword [ebp + 0x10]
or word [eax], 4
jmp 0x42b084
cmp ebx, 8
jl 0x42b084
mov eax, dword [ebp + 0x10]
or word [eax], cx
push 0x10000
lea ebx, [esi + 0x1af70]
mov dword [esi + 0x6af84], edi
push ebx
push esi
mov dword [esi + 0x6af74], edi
call dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x6af90], eax
test eax, eax
je 0x42b0eb
cmp eax, 0xffffffff
je 0x42b0eb
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x42b0c6
push esi
call fcn.0042a830
pop ecx
mov dword [esi + 0x6af7c], edi
mov ecx, edi
movzx eax, byte [ebx + edi]
shl ecx, 5
xor ecx, eax
and ecx, 0x7fff
inc edi
mov dword [esi + 0x6af7c], ecx
cmp edi, 2
jb 0x42b0ce
jmp 0x42b0fb
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x42becd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x84]
test ecx, ecx
je 0x42bf23
mov eax, dword [edi + 0x8c]
mov esi, dword [edi + 0x88]
cmp eax, esi
jae 0x42bf60
sub esi, eax
cmp esi, dword [ebp + 0xc]
cmova esi, dword [ebp + 0xc]
add eax, ecx
push esi
push eax
push dword [ebp + 8]
call fcn.00439560
add dword [edi + 0x8c], esi
add dword [edi + 0x74], esi
push esi
push dword [ebp + 8]
push dword [edi + 0x78]
call fcn.00429d94
add esp, 0x18
mov dword [edi + 0x78], eax
mov eax, esi
jmp 0x42bf62
cmp dword [edi + 0x7c], 0
je 0x42bf59
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x7c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42bf60
mov esi, dword [ebp - 4]
add dword [edi + 0x74], esi
push esi
push dword [ebp + 8]
push dword [edi + 0x78]
call fcn.00429d94
add esp, 0xc
jmp 0x42bf1c
mov dword [edi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x42c40d
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movsx eax, byte [ebp + 0xc]
mov ecx, dword [edx]
xor eax, ecx
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x464830]
xor eax, ecx
mov ecx, dword [edx + 8]
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x464830]
mov dword [edx + 8], ecx
pop ebp
ret

Function at 0x42c456
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
cmp byte [esi + 0x2d], 0
je 0x42c4cf
cmp dword [esi + 0x3c], 0
je 0x42c488
cmp dword [esi + 0x40], edi
jae 0x42c482
push dword [esi + 0x3c]
call fcn.00437c7c
and dword [esi + 0x3c], 0
pop ecx
cmp dword [esi + 0x3c], 0
jne 0x42c498
lea eax, [edi + edi]
push eax
call fcn.00437c81
pop ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
push edi
push ebx
push dword [esi + 0x3c]
call fcn.00439560
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x42c4cc
lea ecx, [esi + 0x30]
mov eax, dword [esi + 0x3c]
movzx eax, byte [ebx + eax]
push eax
push ecx
call fcn.0042c529
pop ecx
pop ecx
mov ecx, dword [esi + 0x3c]
mov byte [ebx + ecx], al
inc ebx
lea ecx, [esi + 0x30]
cmp ebx, edi
jb 0x42c4ae
mov ebx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x42c4fe
mov edx, dword [esi + 0x24]
lea eax, [edx + edi]
cmp eax, dword [esi + 0x28]
jb 0x42c4ea
mov dword [esi + 0x14], 0x30000
jmp 0x42c520
push edi
add ecx, edx
push ebx
push ecx
call fcn.00439560
add esp, 0xc
mov eax, edi
add dword [esi + 0x24], edi
jmp 0x42c522
mov eax, dword [esi + 4]
test eax, eax
je 0x42c519
push 0
lea ecx, [ebp + 8]
push ecx
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
jmp 0x42c522
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x43079c
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x4307a9
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.004307eb
Function at 0x431120
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x47bbb0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
call fcn.00439ae0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x4678f4
lea eax, [ebp - 0x20c]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x431191
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.QQBrowser
lea eax, [ebp - 0x20c]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4311c3
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00405d80
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0043834d
mov esp, ebp
pop ebp
ret
Function at 0x431b33
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x47bbb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push edi
xor ebx, ebx
mov dword [ebp - 0x84], ecx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x88], edi
cmp edi, 0xffffffff
je 0x431cf4
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x431cec
cmp esi, 0x400000
jae 0x431bdd
push esi
call fcn.00437c81
pop ecx
push ebx
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x70], eax
push ecx
push esi
push eax
push edi
mov dword [ebp - 0x74], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x431bce
cmp dword [ebp - 0x74], esi
jne 0x431bce
push dword [ebp - 0x84]
push esi
mov esi, dword [ebp - 0x70]
push esi
call fcn.00431d7d
add esp, 0xc
jmp 0x431bd1
mov esi, dword [ebp - 0x70]
push esi
call fcn.00437c7c
pop ecx
jmp 0x431cec
push ebx
push ebx
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x74], eax
cmp eax, 0xffffffff
je 0x431cf3
mov eax, esi
mov dword [ebp - 0x70], ebx
shr eax, 0x10
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00431e2f
pop ecx
mov ecx, ebx
mov dword [ebp - 0x7c], ebx
cmp dword [ebp - 0x80], ebx
jbe 0x431c65
push 0x10000
push ecx
push ebx
push 4
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x78], eax
test eax, eax
je 0x431ce3
push 0x10000
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00432558
add esp, 0xc
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x7c]
add ecx, 0x10000
inc eax
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x7c], eax
cmp eax, dword [ebp - 0x80]
jb 0x431c15
test si, si
je 0x431c9b
push ebx
push ecx
push ebx
push 4
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
mov dword [ebp - 0x78], ecx
test ecx, ecx
je 0x431ce3
sub esi, dword [ebp - 0x70]
lea eax, [ebp - 0x6c]
push esi
push ecx
push eax
call fcn.00432558
add esp, 0xc
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor eax, eax
mov byte [ebp - 0x14], bl
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00431a69
mov esi, dword [ebp - 0x84]
pop ecx
pop ecx
movzx eax, byte [ebp + ebx - 0x14]
push eax
push 0x467c58
push 3
push esi
call fcn.0041b3d0
add esp, 0x10
add esi, 4
inc ebx
cmp ebx, 0x10
jl 0x431cbe
mov edi, dword [ebp - 0x88]
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0043834d
mov esp, ebp
pop ebp
ret
Function at 0x431d04
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push ebx
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x431d77
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x431d6f
push esi
call fcn.00437c81
and dword [ebp - 4], 0
mov ebx, eax
pop ecx
push 0
lea eax, [ebp - 4]
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x431d68
cmp dword [ebp - 4], esi
jne 0x431d68
push dword [ebp + 0xc]
push esi
push ebx
call fcn.00431dd6
add esp, 0xc
push ebx
call fcn.00437c7c
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x431e2f
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret