joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406e70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor edx, edx
jmp 0x406e80
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x4fc880], ecx
inc edx
cmp edx, 0x100
jb 0x406e80
cmp edx, 0x800
jae 0x406f59
lea ebx, [ebx]
mov eax, dword [edx*4 + 0x4fc480]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x4fc880]
inc edx
mov dword [edx*4 + 0x4fc87c], eax
cmp edx, 0x800
jb 0x406f30
lea esi, [ebp - 0x24]
mov dword [0x4fb378], 0x407020
call fcn.0040aa10
test eax, eax
je 0x407016
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov esi, eax
shr eax, 4
shr esi, 8
and eax, 0xf00f
and esi, 0xff00f
xor edi, edi
mov dword [ebp - 4], eax
mov ecx, 0x4f6874
xor edx, edx
mov eax, dword [ecx - 8]
cmp eax, dword [ebp - 0x20]
jne 0x406fac
mov eax, dword [ebp - 0x1c]
cmp dword [ecx - 4], eax
jne 0x406fac
cmp dword [ecx], ebx
je 0x406fe4
add edx, 0xc
inc edi
add ecx, 0xc
cmp edx, 0x24
jb 0x406f98
or ecx, 0xffffffff
sub ecx, 0
je 0x406ffc
dec ecx
je 0x406fe8
dec ecx
jne 0x407016
cmp esi, 6
jb 0x407016
jne 0x40700c
cmp dword [ebp - 4], 0xf
jb 0x407016
mov dword [0x4fb378], 0x4070d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edi
jmp 0x406fbb
cmp esi, 5
jb 0x407016
jne 0x40700c
mov eax, dword [ebp - 4]
cmp eax, 6
jb 0x407016
cmp eax, 0xa
jmp 0x40700a
cmp esi, 6
jb 0x407016
jne 0x40700c
cmp dword [ebp - 4], 0x100c
je 0x407016
mov dword [0x4fb378], 0x4070d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407b10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [edi]
mov ebx, eax
test esi, esi
je 0x407b6f
mov dword [edi], 0
jmp 0x407b30
mov eax, 0x400000
cmp esi, 0x400000
ja 0x407b3f
mov eax, esi
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [edx]
push ebx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x407b77
test ecx, ecx
je 0x407b6f
test esi, esi
jne 0x407b30
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407b90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [edi]
mov ebx, eax
test esi, esi
je 0x407bef
mov dword [edi], 0
jmp 0x407bb0
mov eax, 0x400000
cmp esi, 0x400000
ja 0x407bbf
mov eax, esi
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [edx]
push ebx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x407bf7
test ecx, ecx
je 0x407bef
test esi, esi
jne 0x407bb0
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a870
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
sub esp, 0xc
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x40a889
mov esp, ebp
pop ebp
ret
add dword [ebp + 0xc], 5
push ebx
push esi
mov esi, dword [ebp + 8]
lea ebx, [esi + ecx - 4]
push edi
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], ebx
mov esi, dword [ebp + 8]
lea edi, [eax + esi]
cmp edi, ebx
jae 0x40a8bd
jmp 0x40a8b0
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x40a8bd
inc edi
cmp edi, ebx
jb 0x40a8b0
mov eax, edi
sub eax, esi
mov ecx, eax
sub ecx, dword [ebp - 8]
cmp edi, ebx
jae 0x40a9e2
cmp ecx, 3
jbe 0x40a8da
xor esi, esi
mov dword [ebp - 4], esi
jmp 0x40a91d
dec ecx
shl edx, cl
and edx, 7
mov dword [ebp - 4], edx
je 0x40a91a
mov ecx, edx
movzx edx, byte [ecx + 0x4c8ce0]
mov esi, edi
sub esi, edx
cmp byte [ecx + 0x4c8cd8], 0
mov dl, byte [esi + 4]
je 0x40a907
test dl, dl
je 0x40a907
cmp dl, 0xff
jne 0x40a91a
and ecx, 3
add ecx, ecx
or ecx, 1
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
inc eax
mov edx, ecx
jmp 0x40a8a1
mov esi, dword [ebp - 4]
mov cl, byte [edi + 4]
mov dword [ebp - 8], eax
test cl, cl
je 0x40a93f
cmp cl, 0xff
je 0x40a93f
and esi, 3
add esi, esi
or esi, 1
mov dword [ebp - 4], esi
inc eax
mov edx, esi
jmp 0x40a8a1
movzx edx, cl
movzx ecx, byte [edi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
lea ecx, [ecx]
cmp dword [ebp + 0x14], 0
je 0x40a96e
lea ebx, [edx + eax]
add ebx, dword [ebp + 0xc]
jmp 0x40a975
sub edx, eax
sub edx, dword [ebp + 0xc]
mov ebx, edx
test esi, esi
je 0x40a9b2
movzx esi, byte [esi + 0x4c8ce0]
add esi, esi
add esi, esi
add esi, esi
mov ecx, 0x18
sub ecx, esi
mov edx, ebx
shr edx, cl
mov cl, dl
test cl, cl
je 0x40a99c
cmp cl, 0xff
jne 0x40a9b2
mov ecx, 0x20
sub ecx, esi
mov esi, dword [ebp - 4]
mov edx, 1
shl edx, cl
dec edx
xor edx, ebx
jmp 0x40a960
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov edx, ebx
shr edx, 0x10
mov ecx, ebx
shr ecx, 8
mov byte [edi + 3], dl
mov edx, dword [ebp - 4]
mov byte [edi + 1], bl
mov ebx, dword [ebp - 0xc]
mov byte [edi + 2], cl
add eax, 5
jmp 0x40a8a1
pop edi
pop esi
pop ebx
cmp ecx, 3
jbe 0x40a9f5
mov ecx, dword [ebp + 0x10]
xor edx, edx
mov dword [ecx], edx
mov esp, ebp
pop ebp
ret
dec ecx
shl edx, cl
mov ecx, dword [ebp + 0x10]
and edx, 7
mov dword [ecx], edx
mov esp, ebp
pop ebp
ret
Function at 0x40c6c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x4f52c0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x103
mov esi, ecx
lea ecx, [ebp - 0x113]
push 0
push ecx
mov dword [ebp - 0x120], eax
mov byte [ebp - 0x114], 0
call fcn.0049dad0
lea edx, [ebp - 0x114]
add esp, 0xc
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40c707
lea edi, [ebp - 0x114]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40c718
mov eax, dword [ebp - 0x120]
mov dx, word [0x4c8ce8]
push eax
lea esi, [ebp - 0x11c]
mov word [edi], dx
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
call fcn.0040c610
mov eax, dword [ebp - 0x11c]
add esp, 4
mov ecx, eax
jmp 0x40c760
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40c760
lea edi, [ebp - 0x114]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40c772
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x11c]
push ecx
push 0x4f685c
call dword [0x4f6860]
add esp, 8
push 0
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40c7c2
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0049908b
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.0049908b
mov esp, ebp
pop ebp
ret
Function at 0x40d650
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b82db
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x4f52c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, 4
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x230]
push edx
push str.OutputTimeFile
push str.SoftwareBaofengInstallOption
push SysReAllocStringLen
mov dword [ebp - 0x22c], 0
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40d6d1
cmp dword [ebp - 0x22c], eax
setne al
jmp 0x40d6d3
xor al, al
mov byte [0x4f683a], al
test al, al
je 0x40d7f0
mov eax, dword [0x4fb390]
test eax, eax
je 0x40d6f2
push eax
call fcn.0049b304
add esp, 4
lea eax, [ebp - 0x228]
push eax
mov dword [0x4fb390], 0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [0x4f4f18]
mov eax, dword [edx + 0xc]
mov ecx, 0x4f4f18
call eax
add eax, 0x10
mov dword [ebp - 0x22c], eax
mov dword [ebp - 4], 0
movzx ecx, word [ebp - 0x21c]
movzx edx, word [ebp - 0x21e]
movzx eax, word [ebp - 0x220]
push ecx
movzx ecx, word [ebp - 0x222]
push edx
movzx edx, word [ebp - 0x226]
push eax
movzx eax, word [ebp - 0x228]
push ecx
push edx
push eax
push str...Time_04d_02d_02d__02d_02d_02d.txt
lea edi, [ebp - 0x22c]
call fcn.00401f80
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
push edx
mov word [ebp - 0x218], cx
call fcn.0049dad0
mov ecx, dword [0x4fb394]
add esp, 0x28
push 0x104
lea eax, [ebp - 0x218]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [ebp - 0x22c]
push esi
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push str.wt__ccsUTF_8
push eax
call fcn.0049b239
mov dword [0x4fb390], eax
lea eax, [esi - 0x10]
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d7f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.0049908b
mov esp, ebp
pop ebp
ret
Function at 0x40dd00
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4f52c0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40dd35
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049908b
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x10]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x18]
push 0
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.0049908b
mov esp, ebp
pop ebp
ret

Function at 0x414520
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8273
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4f52c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [esi], vtable.CAutoLog.0
mov dword [ebp - 4], 0
mov eax, dword [0x4f4f18]
mov edx, dword [eax + 0xc]
mov ecx, 0x4f4f18
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
mov eax, dword [esi + 4]
push eax
push str._End___s
lea edi, [ebp - 0x10]
call fcn.00401f80
mov edi, dword [ebp - 0x10]
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4145b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov esi, dword [esi + 4]
sub esi, 0x10
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4145d6
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x414620
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8eb3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4f52c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
mov dword [esi], vtable.CAutoLog.0
mov eax, dword [0x4f4f18]
mov edx, dword [eax + 0xc]
mov ecx, 0x4f4f18
lea edi, [esi + 4]
call edx
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
test ebx, ebx
je 0x414698
mov eax, ebx
lea edx, [eax + 2]
jmp 0x414680
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414680
sub eax, edx
push ebx
sar eax, 1
push edi
mov ebx, eax
call fcn.00401c50
mov eax, dword [0x4f4f18]
mov edx, dword [eax + 0xc]
mov ecx, 0x4f4f18
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
mov eax, dword [edi]
push eax
push str._Begin___s
lea edi, [ebp - 0x10]
call fcn.00401f80
mov edi, dword [ebp - 0x10]
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4146ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x416360
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi + 0x94], 0
je 0x4163ca
cmp dword [esi + 0x98], 0
jbe 0x4163ca
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 0
jb 0x416385
mov eax, dword [eax]
push 0x4c9b88
push eax
lea eax, [ebp - 4]
push eax
call fcn.0049b250
add esp, 0xc
test eax, eax
jne 0x4163ca
mov eax, dword [ebp - 4]
test eax, eax
je 0x4163ca
mov ecx, dword [esi + 0x98]
mov edx, dword [esi + 0x94]
push eax
push 1
push ecx
push edx
call fcn.0049c567
mov eax, dword [ebp - 4]
push eax
call fcn.0049b304
add esp, 0x14
mov al, 1
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x416430
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8e78
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4f52c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [esi], vtable.CSkinApplication.0
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov eax, 1
mov dword [esi + 0x10], eax
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 4], edi
mov dword [esi + 0x20], edi
mov dword [ebp - 4], edi
mov dword [esi], vtable.CB5_InstallApp.0
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov byte [ebp - 4], al
mov eax, dword [0x4f4f18]
mov edx, dword [eax + 0xc]
mov ecx, 0x4f4f18
call edx
add eax, 0x10
mov dword [esi + 0x44], eax
lea eax, [esi + 0x50]
push 0x1388
mov byte [ebp - 4], 2
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
push eax
call ebx
mov byte [ebp - 4], 3
mov eax, vtable.CHighResolutionTimer.0
mov dword [esi + 0x68], eax
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov byte [ebp - 4], 4
mov dword [esi + 0x7c], eax
mov dword [esi + 0x84], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x8c], edi
lea eax, [esi + 0x94]
push 0x1388
push eax
mov byte [ebp - 4], 5
call ebx
mov byte [ebp - 4], 6
mov eax, dword [0x4f4f18]
mov edx, dword [eax + 0xc]
mov ecx, 0x4f4f18
lea ebx, [esi + 0xb0]
call edx
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 7
mov dword [esi + 0xb4], vtable.CSHManage.0
mov byte [ebp - 4], 8
push 0x4c8a90
push ebx
xor ebx, ebx
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0xac], edi
mov dword [esi + 0x40], edi
call fcn.00401c50
push 0x4c8a90
lea eax, [esi + 0x44]
push eax
call fcn.00401c50
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0xc0], edi
mov dword [esi + 0xb8], 0x1010101
mov word [esi + 0xbc], 0x101
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4165d0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8e78
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4f52c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [esi], vtable.CB5_InstallApp.0
mov dword [ebp - 4], 8
mov eax, dword [esi + 0xac]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x48]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
cmp eax, ebx
je 0x416629
push eax
call edi
mov dword [esi + 0x48], ebx
mov eax, dword [esi + 0xac]
cmp eax, ebx
je 0x41663c
push eax
call edi
mov dword [esi + 0xac], ebx
mov ecx, dword [esi + 0xc0]
cmp ecx, ebx
je 0x416654
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esi + 0xc0], ebx
mov byte [ebp - 4], 7
mov dword [esi + 0xb4], vtable.CSHManage.0
mov byte [ebp - 4], 6
mov eax, dword [esi + 0xb0]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416688
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esi + 0x94]
mov byte [ebp - 4], 5
mov edi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push ecx
call edi
mov byte [ebp - 4], 4
mov eax, dword [esi + 0x84]
cmp eax, ebx
mov ebx, dword [sym.imp.WINMM.dll_timeKillEvent]
mov dword [esi + 0x7c], vtable.CHighResolutionTimer.0
je 0x4166c3
push eax
call ebx
mov dword [esi + 0x84], 0
mov byte [ebp - 4], 3
mov eax, dword [esi + 0x70]
mov dword [esi + 0x68], vtable.CHighResolutionTimer.0
test eax, eax
je 0x4166df
push eax
call ebx
mov dword [esi + 0x70], 0
lea edx, [esi + 0x50]
push edx
mov byte [ebp - 4], 2
call edi
mov byte [ebp - 4], 1
mov eax, dword [esi + 0x44]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41670c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov edi, dword [esi + 0x28]
test edi, edi
je 0x416739
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x41672d
mov ebx, eax
mov eax, edi
call fcn.004177c0
add edi, 0x30
dec ebx
jne 0x416720
mov ecx, dword [esi + 0x28]
push ecx
call fcn.0049926a
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [esi], vtable.CSkinApplication.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x416d50
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba75b
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4f52c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.0049dad0
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x218]
call fcn.00401d40
push 0x19
push str.BaoFengDefaultBdSetup.xml
lea ebx, [ebp - 0x21c]
mov dword [ebp - 4], 0
call fcn.00406d60
mov eax, dword [0x4fb394]
mov edi, dword [ebp - 0x21c]
push str.RESOURCE_DATA
push 0x8f
push eax
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x416e05
push edi
mov ecx, ebx
call fcn.00401270
add esp, 4
lea edi, [esi + 0x44]
lea eax, [ebp - 0x21c]
call fcn.00404260
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x416e54
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [ebp - 0x21c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x220], esp
mov edi, esp
call fcn.00404350
add eax, 0x10
push esi
mov dword [edi], eax
call fcn.00416ea0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x416e7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049908b
mov esp, ebp
pop ebp
ret
Function at 0x41ad60
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x55555556
imul dword [ebp + 0x10]
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax*4]
sub ecx, eax
neg ecx
add ecx, ecx
lea edx, [ecx + ecx]
mov ecx, 0xc
sub ecx, edx
mov eax, 0x55555556
imul ecx
push ebx
mov eax, edx
push esi
shr eax, 0x1f
lea eax, [edx + eax + 1]
push edi
mov edi, dword [ebp + 0xc]
push eax
xor esi, esi
mov dword [ebp + 0xc], eax
call fcn.00499075
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x41adba
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push ebx
call fcn.0049dad0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
cmp ecx, 2
jle 0x41ae54
lea edx, [ecx - 3]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
inc edx
lea eax, [edx*4]
sub eax, edx
neg eax
add ecx, eax
mov dword [ebp + 0x10], ecx
movzx ecx, byte [edi]
shr ecx, 2
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + esi], al
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
and ecx, 3
add ecx, ecx
shr eax, 4
mov cl, byte [eax + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + esi + 1], cl
movzx eax, byte [edi + 1]
movzx ecx, byte [edi + 2]
shr ecx, 6
and eax, 0xf
movzx eax, byte [ecx + eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + esi + 2], al
movzx ecx, byte [edi + 2]
and ecx, 0x3f
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + esi + 3], al
add esi, 4
add edi, 3
dec edx
jne 0x41adf2
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41aeca
movzx edx, byte [edi]
shr edx, 2
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + esi], al
cmp ecx, 1
jle 0x41aead
movzx ecx, byte [edi]
movzx edx, byte [edi + 1]
and ecx, 3
add ecx, ecx
shr edx, 4
mov al, byte [edx + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + esi + 1], al
movzx ecx, byte [edi + 1]
and ecx, 0xf
mov dl, byte [ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + esi + 2], dl
mov byte [ebx + esi + 3], 0x3d
add esi, 4
pop edi
mov byte [ebx + esi], 0
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc
movzx eax, byte [edi]
and eax, 3
shl eax, 4
mov cl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + esi + 1], cl
mov word [ebx + esi + 2], 0x3d3d
add esi, 4
pop edi
mov byte [ebx + esi], 0
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc