joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414c03
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2aa8
call fcn.004423b0
mov eax, dword [0x466750]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x20c], ax
mov edi, ecx
lea eax, [ebp - 0x20a]
mov dword [ebp - 0x2a98], edi
push ebx
push eax
call fcn.00435540
add esp, 0xc
lea eax, [ebp - 0x20c]
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x414c61
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x414ca6
push 0x5c
pop eax
cmp ax, word [ebp + ecx*2 - 0x20e]
je 0x414ca6
mov word [ebp + ecx*2 - 0x20c], ax
lea ecx, [ecx*2 + 2]
cmp ecx, 0x208
jae 0x414e1f
xor eax, eax
mov word [ebp + ecx - 0x20c], ax
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x414caf
sub ecx, edx
mov eax, esi
sar ecx, 1
sub eax, ecx
push eax
push str.iphlpapi.dll
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00431981
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x2aa4], eax
test eax, eax
jne 0x414cf6
xor al, al
jmp 0x414e0e
push str.GetAdaptersInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x414de7
lea ecx, [ebp - 0x2aa8]
mov dword [ebp - 0x2aa8], 0x2880
push ecx
lea ecx, [ebp - 0x2a8c]
push ecx
call eax
test eax, eax
jne 0x414de7
push 3
pop eax
mov dword [ebp - 0x2a9c], eax
lea esi, [ebp - 0x2a8c]
mov ebx, edi
lea eax, [ebp - 0x2a94]
sub ebx, eax
lea ecx, [esi + 8]
call fcn.004147e1
xor ecx, ecx
mov dword [ebp - 0x2aa0], eax
mov dword [ebp - 0x2a94], ecx
mov edi, ecx
mov word [ebp - 0x2a90], cx
lea edx, [ebp - 0x2a94]
add edx, edi
mov cl, byte [ebx + edx]
cmp cl, byte [edx]
jne 0x414d7b
inc edi
cmp edi, 6
jb 0x414d64
jmp 0x414d8c
cmp dword [esi + 0x1a0], 6
jne 0x414dd5
cmp dword [ebp - 0x2a9c], eax
jle 0x414dd5
mov edi, dword [ebp - 0x2a98]
mov al, byte [esi + 0x194]
mov byte [edi], al
mov al, byte [esi + 0x195]
mov byte [edi + 1], al
mov al, byte [esi + 0x196]
mov byte [edi + 2], al
mov al, byte [esi + 0x197]
mov byte [edi + 3], al
mov al, byte [esi + 0x198]
mov byte [edi + 4], al
mov al, byte [esi + 0x199]
mov byte [edi + 5], al
mov eax, dword [ebp - 0x2aa0]
mov dword [ebp - 0x2a9c], eax
jmp 0x414ddb
mov edi, dword [ebp - 0x2a98]
mov esi, dword [esi]
test esi, esi
jne 0x414d45
xor ebx, ebx
push dword [ebp - 0x2aa4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x2a94]
mov dword [ebp - 0x2a94], ebx
push eax
mov ecx, edi
mov word [ebp - 0x2a90], bx
call fcn.004147b6
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042ee4e
mov esp, ebp
pop ebp
ret
call fcn.0042f77b
int3
Function at 0x4152c5
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd48
mov eax, dword [0x466750]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor bl, bl
mov dword [ebp - 0xd38], edx
push edi
mov dword [ebp - 0xd34], ecx
xor esi, esi
mov dword [ebp - 0xd3c], eax
test bl, bl
jne 0x415535
push 0x200
lea eax, [ebp - 0x50c]
push 0
push eax
call fcn.00435540
add esp, 0xc
lea eax, [ebp - 0x50c]
push esi
push str..PhysicalDrive_d
push 0xff
push eax
call fcn.00416b35
add esp, 0x10
xor eax, eax
push eax
push eax
push 3
push eax
push 3
push eax
lea eax, [ebp - 0x50c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xd40], eax
cmp eax, 0xffffffff
je 0x41552b
xor eax, eax
lea edi, [ebp - 0xd18]
stosd dword es:[edi], eax
xor ecx, ecx
mov dword [ebp - 0xd44], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xd0c]
mov edi, 0x800
mov dword [ebp - 0xd18], ecx
push edi
push ecx
push eax
mov dword [ebp - 0xd14], ecx
call fcn.00435540
add esp, 0xc
lea eax, [ebp - 0xd44]
push 0
push eax
push edi
mov edi, dword [ebp - 0xd40]
lea eax, [ebp - 0xd0c]
push eax
push 0xc
lea eax, [ebp - 0xd18]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x41551e
push 0xff
lea eax, [ebp - 0x10b]
mov byte [ebp - 0x10c], bl
push 0
push eax
call fcn.00435540
add esp, 0xc
mov byte [ebp - 0x20c], bl
lea eax, [ebp - 0x20b]
push 0xff
push 0
push eax
call fcn.00435540
add esp, 0xc
mov byte [ebp - 0x30c], bl
lea eax, [ebp - 0x30b]
push 0xff
push 0
push eax
call fcn.00435540
mov edx, dword [ebp - 0xcfc]
lea eax, [ebp - 0x20c]
add esp, 0xc
lea ecx, [ebp - 0xd0c]
push eax
push 0
call fcn.00414f15
mov edx, dword [ebp - 0xcf8]
lea eax, [ebp - 0x30c]
push eax
push 0
lea ecx, [ebp - 0xd0c]
call fcn.00414f15
call fcn.0041f2f0
mov edx, dword [ebp - 0xcf4]
lea ecx, [ebp - 0x10c]
cmp eax, 5
push ecx
setl al
lea ecx, [ebp - 0xd0c]
movzx eax, al
push eax
call fcn.00414f15
movsx eax, byte [ebp - 0x10c]
push eax
call fcn.00431828
add esp, 0x1c
test eax, eax
jne 0x415494
movsx eax, byte [ebp - 0xf9]
push eax
call fcn.00431828
pop ecx
test eax, eax
je 0x415524
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0xd30]
call fcn.0040273d
mov ecx, dword [ebp - 0xd34]
push eax
call fcn.0040b371
xor ebx, ebx
lea ecx, [ebp - 0xd30]
push ebx
push 1
call fcn.00402927
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0xd30]
call fcn.0040273d
mov ecx, dword [ebp - 0xd38]
push eax
call fcn.0040b371
push ebx
push 1
lea ecx, [ebp - 0xd30]
call fcn.00402927
lea eax, [ebp - 0x30c]
push eax
lea ecx, [ebp - 0xd30]
call fcn.0040273d
mov ecx, dword [ebp - 0xd3c]
push eax
call fcn.0040b371
push ebx
push 1
lea ecx, [ebp - 0xd30]
call fcn.00402927
mov bl, 1
jmp 0x415524
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, 0x10
jl 0x4152f4
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042ee4e
mov esp, ebp
pop ebp
ret
Function at 0x415548
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b4
mov eax, dword [0x466750]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x114
lea eax, [ebp - 0x198]
push esi
xor ebx, ebx
push ebx
push eax
call fcn.00435540
add esp, 0xc
mov dword [ebp - 0x198], esi
lea eax, [ebp - 0x198]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x415616
cmp dword [ebp - 0x194], 5
jbe 0x415616
push 0x1d
pop ecx
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem_
lea edi, [ebp - 0x80]
rep movsd dword es:[edi], dword [esi]
push 4
pop eax
lea ecx, [ebp - 0x1b4]
mov dword [ebp - 0x1a0], eax
movsw word es:[edi], word [esi]
mov dword [ebp - 0x1a4], eax
call fcn.0041e5d0
push 0x20019
lea eax, [ebp - 0x80]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0041e7b0
test eax, eax
jne 0x41560b
lea eax, [ebp - 0x1a4]
push eax
lea eax, [ebp - 0x19c]
push eax
lea eax, [ebp - 0x1a0]
push eax
push ebx
push str.EnableLUA
push dword [ebp - 0x1b0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x19c], 1
sete bl
lea ecx, [ebp - 0x1b4]
call fcn.0041e640
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042ee4e
mov esp, ebp
pop ebp
ret

Function at 0x415baa
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0x466750]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x2f4]
push edi
xor eax, eax
mov dword [ebp - 0x2e0], 7
push 0x6c
xor edi, edi
mov word [ebp - 0x2f4], ax
pop ecx
mov dword [ebp - 0x2e4], edi
call fcn.004242d0
test al, al
jne 0x415bf9
push 0x454a34
jmp 0x415cc9
push str.TencentDeskUpdateGlobalMgr.db
lea ecx, [ebp - 0x30c]
call fcn.0040276c
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x324]
push eax
lea ecx, [ebp - 0x2f4]
call fcn.004234c0
push eax
lea ecx, [ebp - 0x2f4]
call fcn.00422e20
lea ecx, [ebp - 0x324]
call fcn.00422df0
push edi
push 1
lea ecx, [ebp - 0x30c]
call fcn.00402c5d
cmp dword [ebp - 0x2e0], 8
lea ecx, [ebp - 0x2dc]
push 0x104
lea eax, [ebp - 0x2f4]
cmovae eax, dword [ebp - 0x2f4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x415bef
xor eax, eax
push 0xc6
mov word [ebp - 0xd4], ax
lea eax, [ebp - 0xd2]
push edi
push eax
call fcn.00435540
add esp, 0xc
lea eax, [ebp - 0x2dc]
mov edi, 0x454a34
push eax
push 0x64
lea eax, [ebp - 0xd4]
push eax
push edi
push str.config1
push str.Profile
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, 0x20
jb 0x415cc8
lea eax, [ebp - 0xd4]
push eax
jmp 0x415cc9
push edi
mov ecx, esi
call fcn.0040276c
lea ecx, [ebp - 0x2f4]
call fcn.00422df0
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0042ee4e
mov esp, ebp
pop ebp
ret 4
Function at 0x418bd6
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov eax, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], eax
push esi
push edi
mov edi, dword [eax]
mov esi, dword [eax + 4]
mov eax, edi
shr eax, 4
xor eax, esi
mov dword [ebp - 8], 8
and eax, 0xf0f0f0f
xor esi, eax
shl eax, 4
xor edi, eax
mov eax, edi
shr eax, 0x10
xor eax, esi
and eax, 0xffff
xor esi, eax
shl eax, 0x10
xor edi, eax
mov eax, esi
shr eax, 2
xor eax, edi
and eax, 0x33333333
xor edi, eax
shl eax, 2
xor esi, eax
mov ebx, esi
shr ebx, 8
xor ebx, edi
and ebx, 0xff00ff
xor edi, ebx
shl ebx, 8
xor ebx, esi
rol ebx, 1
mov eax, ebx
xor eax, edi
and eax, 0xaaaaaaaa
xor ebx, eax
xor eax, edi
rol eax, 1
mov edi, eax
mov eax, dword [ebp - 4]
mov edx, ebx
ror edx, 4
xor edx, dword [eax]
add eax, 4
mov dword [ebp - 4], eax
mov ecx, edx
shr ecx, 0x18
mov eax, edx
shr eax, 0x10
and ecx, 0x3f
and eax, 0x3f
mov esi, dword [ecx*4 + 0x45abc0]
or esi, dword [eax*4 + 0x45a8c0]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
or esi, dword [eax*4 + 0x45a500]
or esi, dword [edx*4 + 0x45a6c0]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
add eax, 4
mov dword [ebp - 4], eax
xor edx, ebx
mov ecx, edx
mov eax, edx
shr eax, 0x10
shr ecx, 0x18
and eax, 0x3f
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x45ad00]
or ecx, dword [eax*4 + 0x45a7c0]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
or ecx, dword [eax*4 + 0x45aac0]
or ecx, dword [edx*4 + 0x45a9c0]
mov eax, dword [ebp - 4]
or ecx, esi
xor edi, ecx
mov edx, edi
ror edx, 4
xor edx, dword [eax]
add eax, 4
mov dword [ebp - 4], eax
mov ecx, edx
shr ecx, 0x18
mov eax, edx
shr eax, 0x10
and ecx, 0x3f
and eax, 0x3f
mov esi, dword [ecx*4 + 0x45abc0]
or esi, dword [eax*4 + 0x45a8c0]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
or esi, dword [eax*4 + 0x45a500]
mov eax, dword [ebp - 4]
or esi, dword [edx*4 + 0x45a6c0]
mov edx, dword [eax]
add eax, 4
xor edx, edi
mov dword [ebp - 4], eax
mov ecx, edx
mov eax, edx
shr ecx, 0x18
and ecx, 0x3f
shr eax, 0x10
and eax, 0x3f
mov ecx, dword [ecx*4 + 0x45ad00]
or ecx, dword [eax*4 + 0x45a7c0]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
or ecx, dword [eax*4 + 0x45aac0]
or ecx, dword [edx*4 + 0x45a9c0]
or ecx, esi
xor ebx, ecx
dec dword [ebp - 8]
jne 0x418c53
ror ebx, 1
mov edx, ebx
mov esi, dword [ebp - 0x10]
xor edx, edi
and edx, 0xaaaaaaaa
xor ebx, edx
xor edx, edi
ror edx, 1
mov eax, edx
shr eax, 8
xor eax, ebx
and eax, 0xff00ff
xor ebx, eax
shl eax, 8
xor edx, eax
mov eax, edx
shr eax, 2
xor eax, ebx
and eax, 0x33333333
xor ebx, eax
shl eax, 2
xor edx, eax
mov eax, ebx
shr eax, 0x10
xor eax, edx
and eax, 0xffff
xor edx, eax
shl eax, 0x10
xor ebx, eax
mov ecx, ebx
shr ecx, 4
xor ecx, edx
and ecx, 0xf0f0f0f
mov eax, ecx
shl eax, 4
xor eax, ebx
xor ecx, edx
pop edi
mov dword [esi], eax
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418ee1
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [0x466750]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov word [ebp - 0xf6], dx
mov edi, ecx
mov dword [ebp - 0xfc], eax
xor esi, esi
movzx edx, byte [esi + 0x45a600]
mov eax, edx
sar edx, 3
and eax, 7
movzx ecx, word [eax*2 + 0x45a6b0]
movsx eax, byte [edx + edi]
test eax, ecx
setne al
mov byte [ebp + esi - 0x74], al
inc esi
cmp esi, 0x38
jl 0x418f0b
push 0x1e
xor ebx, ebx
pop edi
cmp word [ebp - 0xf6], 1
mov esi, edi
je 0x418f49
lea esi, [ebx + ebx]
and dword [ebp + esi*4 - 0xf0], 0
movzx eax, byte [ebx + 0x45acc0]
and dword [ebp + esi*4 - 0xf4], 0
mov ecx, eax
xor edx, edx
mov dword [ebp - 0x100], eax
cmp ecx, 0x1c
jge 0x418f75
mov al, byte [ebp + ecx - 0x74]
jmp 0x418f7c
mov al, byte [ebp + ecx - 0x90]
mov byte [ebp + edx - 0x3c], al
inc edx
inc ecx
cmp edx, 0x1c
jl 0x418f6a
mov ecx, dword [ebp - 0x100]
push 0x1c
pop edx
add ecx, edx
cmp ecx, 0x38
jge 0x418f9d
mov al, byte [ebp + ecx - 0x74]
jmp 0x418fa4
mov al, byte [ebp + ecx - 0x90]
mov byte [ebp + edx - 0x3c], al
inc edx
inc ecx
cmp edx, 0x38
jl 0x418f92
xor ecx, ecx
movzx eax, byte [ecx + 0x45acd0]
cmp byte [ebp + eax - 0x3c], 0
je 0x418fcd
mov eax, dword [ecx*4 + 0x45a4a0]
or dword [ebp + esi*4 - 0xf4], eax
movzx eax, byte [ecx + 0x45ace8]
cmp byte [ebp + eax - 0x3c], 0
je 0x418fe9
mov eax, dword [ecx*4 + 0x45a4a0]
or dword [ebp + esi*4 - 0xf0], eax
inc ecx
cmp ecx, 0x18
jl 0x418fb1
sub edi, 2
inc ebx
cmp edi, 0xfffffffe
jg 0x418f3a
mov edx, dword [ebp - 0xfc]
lea ecx, [ebp - 0xf4]
call fcn.00418dea
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042ee4e
mov esp, ebp
pop ebp
ret
Function at 0x419580
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x466750]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
lea edx, [ebp - 0x50]
mov ebx, ecx
mov dword [ebp - 0x50], esi
push edi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
call fcn.004197ac
push ebx
lea ecx, [ebp - 0x1c]
call fcn.004070f9
lea ecx, [ebp - 0x1c]
call fcn.004193f5
push 0x460f20
lea ecx, [ebp - 0x34]
call fcn.0040276c
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x1c]
call fcn.004194ac
push esi
push 1
lea ecx, [ebp - 0x34]
call fcn.00402c5d
push 1
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x1c]
call fcn.004196cf
pop ecx
push esi
push 1
lea ecx, [ebp - 0x1c]
call fcn.00402c5d
mov eax, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x50]
sub eax, esi
cdq
push 0x18
pop edi
idiv edi
mov ebx, dword [ebp - 0x44]
mov ecx, eax
mov eax, dword [ebp - 0x40]
sub eax, ebx
cdq
idiv edi
mov edi, eax
mov dword [ebp - 0x54], edi
test ecx, ecx
je 0x419667
mov ebx, dword [ebp - 0x38]
mov edi, ecx
push ebx
lea ecx, [ebp - 0x1c]
call fcn.004070f9
mov edx, esi
lea ecx, [ebp - 0x1c]
call fcn.004194ac
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call fcn.00431a96
pop ecx
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.00402c5d
add esi, 0x18
dec edi
jne 0x41962a
mov edi, dword [ebp - 0x54]
mov ebx, dword [ebp - 0x44]
test edi, edi
je 0x4196ac
push dword [ebp - 0x38]
lea ecx, [ebp - 0x1c]
call fcn.004070f9
mov edx, ebx
lea ecx, [ebp - 0x1c]
call fcn.004194ac
lea ecx, [ebp - 0x1c]
call fcn.00419580
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.00402c5d
add ebx, 0x18
dec edi
jne 0x41966b
lea ecx, [ebp - 0x44]
call fcn.004073df
lea ecx, [ebp - 0x50]
call fcn.004073df
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042ee4e
mov esp, ebp
pop ebp
ret
Function at 0x4196cf
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
mov eax, dword [0x466750]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [ecx + 0x14], 8
push ebx
push esi
mov dword [ebp - 0x278], edx
jb 0x4196f2
mov ecx, dword [ecx]
lea eax, [ebp - 0x274]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x419793
mov bl, byte [ebp + 8]
push 0x456924
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x41977c
push 0x456928
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x41977c
test bl, bl
je 0x419749
test byte [ebp - 0x274], 0x10
je 0x41977c
jmp 0x419752
test byte [ebp - 0x274], 0x10
jne 0x41977c
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040276c
mov ecx, dword [ebp - 0x278]
lea eax, [ebp - 0x20]
push eax
call fcn.0041989e
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.00402c5d
lea eax, [ebp - 0x274]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x41970e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
mov al, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.0042ee4e
mov esp, ebp
pop ebp
ret

Function at 0x419822
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x466750]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov esi, ecx
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00435540
add esp, 0xc
lea eax, [ebp - 0x210]
push 0
push 0x25
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x419871
xor al, al
jmp 0x41988f
lea eax, [ebp - 0x210]
push eax
call fcn.004011a9
pop ecx
push eax
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.00402f69
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042ee4e
mov esp, ebp
pop ebp
ret
Function at 0x419993
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x466750]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xchg al, ah
ror eax, 0x10
xchg al, ah
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xchg al, ah
ror eax, 0x10
xchg al, ah
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
xor ecx, ecx
sub ebx, eax
lea eax, [ebx + ecx*4]
mov eax, dword [ebp + eax - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xchg al, ah
ror eax, 0x10
xchg al, ah
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp + ecx*4 - 0x14], eax
inc ecx
cmp ecx, 4
jl 0x4199e0
push 0x10
pop esi
xor ebx, ebx
mov ecx, edi
lea ebx, [ebx - 0x61c88647]
shr ecx, 5
mov eax, edi
add ecx, dword [ebp - 0x10]
shl eax, 4
add eax, dword [ebp - 0x14]
xor ecx, eax
lea eax, [ebx + edi]
xor ecx, eax
add edx, ecx
mov ecx, edx
mov eax, edx
shr ecx, 5
add ecx, dword [ebp - 8]
shl eax, 4
add eax, dword [ebp - 0xc]
xor ecx, eax
lea eax, [ebx + edx]
xor ecx, eax
add edi, ecx
dec esi
jne 0x419a09
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x24], edi
mov eax, dword [ebp - 0x18]
xchg al, ah
ror eax, 0x10
xchg al, ah
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov dword [esi], eax
mov eax, dword [ebp - 0x24]
xchg al, ah
ror eax, 0x10
xchg al, ah
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 4]
pop edi
mov dword [esi + 4], eax
xor ecx, ebp
pop esi
pop ebx
call fcn.0042ee4e
mov esp, ebp
pop ebp
ret
Function at 0x419e7e
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x466750]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
mov esi, ecx
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00435540
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ebx, 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x460fcc
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0042f857
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x20c]
add esp, 0xc
push eax
call ebx
test eax, eax
jne 0x419efc
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.QQBrowser
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0042f857
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
jne 0x419f30
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.0040276c
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042ee4e
mov esp, ebp
pop ebp
ret

Function at 0x41b671
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, 0x1505
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov ecx, dword [edi + 0x38]
add ecx, edx
cmp esi, 0x102
jae 0x41b784
test esi, esi
je 0x41b784
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, edx
test esi, esi
je 0x41b6bd
mov edx, ecx
movzx ecx, byte [ebx + edx]
imul eax, eax, 0x21
add eax, ecx
inc ebx
cmp ebx, esi
jb 0x41b6ad
xor edx, edx
mov ecx, dword [ebp - 4]
and eax, 0xff
mov ebx, dword [edi + eax*4 + 0x60]
mov dword [edi + eax*4 + 0x60], ecx
mov dword [edi + 0x474], edx
test ebx, ebx
je 0x41b784
sub ecx, ebx
cmp ecx, esi
jbe 0x41b784
mov eax, dword [edi + 0x2c]
sub eax, 0x106
cmp ecx, eax
jae 0x41b784
cmp esi, dword [edi + 0x478]
ja 0x41b784
test esi, esi
je 0x41b756
mov edx, dword [ebp - 4]
mov ecx, ebx
mov eax, dword [edi + 0x38]
add edx, eax
sub eax, edx
mov dword [ebp + 8], ecx
add eax, ebx
sub edx, ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edx
add ecx, edx
mov edx, dword [ebp - 0xc]
mov al, byte [ecx]
cmp al, byte [ecx + edx]
jne 0x41b784
mov ecx, dword [ebp + 8]
mov edx, ecx
mov eax, dword [edi + 0x5c]
and cl, 7
shr edx, 3
mov al, byte [edx + eax]
shr al, cl
test al, 1
je 0x41b784
mov edx, dword [ebp - 8]
mov ecx, dword [ebp + 8]
inc edx
inc ecx
mov dword [ebp - 8], edx
cmp edx, esi
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 4]
jb 0x41b71e
mov eax, dword [edi + 0x38]
lea ecx, [ebx + esi]
cmp byte [ecx + eax - 1], 0x3b
je 0x41b77a
mov eax, dword [edi + 0x5c]
lea ecx, [ebx + esi]
mov edx, ecx
and cl, 7
shr edx, 3
mov al, byte [edx + eax]
shr al, cl
test al, 1
jne 0x41b784
mov dword [edi + 0x474], ebx
mov eax, esi
jmp 0x41b786
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret