joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ef70
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, edx
push esi
mov esi, ecx
lea ecx, [ebx + 2]
test ecx, ecx
js 0x40f0aa
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x40000000
jge 0x40f0aa
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
cmp ebx, 2
jle 0x40f02f
lea edx, [ebx - 3]
mov eax, 0xaaaaaaab
mul edx
mov edi, edx
shr edi, 1
inc edi
lea eax, [edi*4]
sub eax, edi
neg eax
add ebx, eax
jmp 0x40efd0
movzx eax, byte [esi]
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
dec edi
jne 0x40efd0
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x40f093
movzx eax, byte [esi]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
cmp ebx, 1
jle 0x40f078
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 0x40f090
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]
test edx, edx
je 0x40f0a0
mov eax, ecx
sub eax, edi
mov dword [edx], eax
pop edi
pop esi
mov byte [ecx], 0
xor eax, eax
pop ebx
pop ebp
ret
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
Function at 0x41081a
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x44f5f0
call fcn.00435fc0
mov edi, edx
push 0x1c
lea eax, [ebp - 0x38]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x34]
cmp word [ecx], ax
jne 0x410881
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x410881
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp edi, eax
jb 0x410881
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x410881
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x41088a
mov dword [ebp - 4], 0xfffffffe
xor al, al
call fcn.00436008
ret
Function at 0x41091b
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x451270]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [0x4552a4]
push ebx
push esi
mov esi, ecx
mov ebx, 0x10000
cmp esi, 0x7ff80000
push edi
mov edi, 0xfff80000
lea eax, [esi - 0x7ff80000]
cmova ebx, eax
cmp esi, 0x80000000
lea eax, [esi + 0x7ff80000]
cmovb edi, eax
mov eax, dword [0x4552ac]
test edx, edx
jne 0x410973
test eax, eax
je 0x410986
mov edx, eax
mov dword [0x4552a4], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x410986
cmp ecx, ebx
jb 0x410986
cmp ecx, edi
jbe 0x410a5e
mov edx, eax
test eax, eax
jmp 0x4109a8
test edx, edx
je 0x4109a3
mov eax, dword [edx + 8]
test eax, eax
je 0x4109a3
cmp eax, ebx
jb 0x4109a3
cmp eax, edi
jbe 0x410a5e
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x4552a4], edx
jne 0x41098c
movzx eax, si
sub esi, eax
mov ecx, esi
cmp esi, ebx
jbe 0x410afe
lea eax, [ecx - 0x70000000]
mov edx, 0x6fff0000
cmp eax, 0x10000000
lea eax, [ebp - 0x3c]
push 0x1c
cmovbe ecx, edx
push eax
push ecx
mov dword [ebp - 0x40], ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x410afe
mov eax, 0x10000
cmp dword [ebp - 0x2c], eax
jne 0x4109f9
cmp dword [ebp - 0x30], eax
jae 0x410a0b
mov ecx, dword [ebp - 0x38]
add ecx, 0xffff0000
cmp ecx, ebx
ja 0x4109bf
jmp 0x410afe
push 0x40
push 0x3000
push eax
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
mov dword [0x4552a4], edx
test edx, edx
je 0x410afe
mov eax, dword [0x4552ac]
xor ecx, ecx
mov dword [edx + 4], eax
mov esi, 0x7fd
mov dword [edx], 0x52727464
lea eax, [edx + 0xffe0]
mov dword [edx + 8], ecx
mov dword [0x4552ac], edx
mov dword [eax + 0x18], ecx
mov ecx, eax
sub eax, 0x20
dec esi
jne 0x410a50
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, ebx
jb 0x410b02
cmp esi, edi
ja 0x410b02
mov ecx, dword [esi + 0x18]
mov eax, 0xcccccccc
mov dword [edx + 8], ecx
mov edi, esi
push 8
pop ecx
rep stosd dword es:[edi], eax
mov eax, esi
jmp 0x410b04
lea eax, [esi - 0x70000000]
mov ecx, 0x80010000
cmp eax, 0x10000000
lea eax, [ebp - 0x20]
push 0x1c
cmovbe esi, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x410b02
mov eax, 0x10000
cmp dword [ebp - 0x10], eax
jne 0x410af6
mov ecx, dword [ebp - 0x14]
cmp ecx, eax
jb 0x410af9
movzx edx, si
test edx, edx
je 0x410ad7
mov esi, dword [ebp - 0x20]
sub eax, edx
sub ecx, eax
add esi, eax
mov dword [ebp - 0x14], ecx
mov eax, 0x10000
mov dword [ebp - 0x20], esi
push 0x40
push 0x3000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
mov dword [0x4552a4], edx
test edx, edx
jne 0x410a2c
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x20]
add esi, ecx
cmp esi, edi
jb 0x410a87
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421184
mov esp, ebp
pop ebp
ret
Function at 0x410bd7
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x451270]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4552b0], 0
je 0x410bf6
mov eax, 0x10dd
jmp 0x410c59
push esi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x4552b0
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x410c17
mov eax, 0x10dd
jmp 0x410c58
mov dword [0x4552b8], esi
mov dword [0x4552a8], esi
mov dword [0x4552a0], esi
mov dword [0x4552b4], esi
mov dword [0x45529c], esi
mov esi, dword [0x4552ac]
jmp 0x410c52
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
test esi, esi
jne 0x410c3d
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421184
mov esp, ebp
pop ebp
ret

Function at 0x410c67
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x451270]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4552b0], eax
je 0x410c8e
mov eax, 0x10dd
jmp 0x410d16
push ebx
push esi
push edi
mov edi, dword [0x4552a8]
xor ebx, ebx
test edi, edi
je 0x410cd8
lea eax, [ebp - 8]
push eax
mov eax, dword [edi + 0x10]
push dword [edi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [edi + 4], ebx
jne 0x410cc9
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x410cc9
call fcn.00410b15
mov dword [edi + 0x10], ebx
mov esi, dword [edi]
push edi
call fcn.00420949
mov edi, esi
pop ecx
test esi, esi
jne 0x410c9d
mov dword [0x4552a8], ebx
call fcn.004108db
mov edi, dword [0x4552a0]
test edi, edi
je 0x410d05
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, dword [edi]
push edi
call fcn.00420949
mov edi, esi
pop ecx
test esi, esi
jne 0x410ced
pop edi
pop esi
mov dword [0x4552a0], ebx
xor eax, eax
mov dword [0x4552b0], ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421184
mov esp, ebp
pop ebp
ret
Function at 0x411be0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x451270]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x11c]
push edi
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push reloc.OLEAUT32.dll_SysReAllocString
mov edi, ecx
mov dword [ebp - 0x118], 0x104
mov ebx, 3
mov dword [ebp - 0x114], 1
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0
call esi
test eax, eax
jne 0x411dac
push edi
push str._sConnection
lea eax, [ebp - 0x108]
push 0x103
push eax
call fcn.00414560
add esp, 0x10
lea eax, [ebp - 0x110]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x11c]
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x411da4
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x114], 4
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], 4
push eax
push 0
push str.MediaSubType
push dword [ebp - 0x110]
call edi
test eax, eax
jne 0x411d9c
push 0x104
push eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x114], 1
push eax
mov dword [ebp - 0x118], 0x103
call fcn.00421940
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push str.PnpInstanceID
push dword [ebp - 0x110]
call edi
test eax, eax
jne 0x411d9c
mov eax, dword [ebp - 0x10c]
cmp eax, 1
jne 0x411d8d
push ebx
lea eax, [ebp - 0x108]
push 0x44cce0
push eax
call fcn.00424430
add esp, 0xc
test eax, eax
jne 0x411d5b
xor ebx, ebx
jmp 0x411d9c
mov eax, dword [ebp - 0x10c]
cmp eax, 1
jne 0x411d8d
push 3
lea eax, [ebp - 0x108]
push 0x44cce0
push eax
call fcn.00424430
add esp, 0xc
test eax, eax
je 0x411d87
mov ebx, 2
jmp 0x411d9c
mov eax, dword [ebp - 0x10c]
xor ebx, ebx
cmp eax, 2
setne bl
lea ebx, [ebx*2 + 1]
push dword [ebp - 0x110]
call esi
push dword [ebp - 0x11c]
call esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421184
mov esp, ebp
pop ebp
ret
Function at 0x412070
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2aa8
call fcn.0043ad10
mov eax, dword [0x451270]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
mov ebx, ecx
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00421940
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4120c3
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x412109
mov eax, 0x5c
cmp ax, word [ebp + ecx*2 - 0x20e]
je 0x412109
mov word [ebp + ecx*2 - 0x20c], ax
lea eax, [ecx*2 + 2]
cmp eax, 0x208
jae 0x4122d1
xor ecx, ecx
mov word [ebp + eax - 0x20c], cx
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412112
sub ecx, edx
mov eax, 0x104
sar ecx, 1
sub eax, ecx
push eax
push str.iphlpapi.dll
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004247c2
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 0x41216a
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421184
mov esp, ebp
pop ebp
ret
push str.GetAdaptersInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x412271
lea ecx, [ebp - 0x2aa8]
mov dword [ebp - 0x2aa8], 0x2880
push ecx
lea ecx, [ebp - 0x2a8c]
push ecx
call eax
test eax, eax
jne 0x412271
mov eax, ebx
mov dword [ebp - 0x2a9c], 3
lea ecx, [ebp - 0x2a94]
push esi
sub eax, ecx
push edi
lea edi, [ebp - 0x2a8c]
mov dword [ebp - 0x2aa0], eax
lea ecx, [edi + 8]
call fcn.00411be0
mov dword [ebp - 0x2a98], eax
xor eax, eax
mov dword [ebp - 0x2a94], eax
xor ecx, ecx
mov word [ebp - 0x2a90], ax
mov eax, dword [ebp - 0x2aa0]
jmp 0x4121f0
lea esi, [ebp - 0x2a94]
add esi, ecx
mov dl, byte [eax + esi]
cmp dl, byte [esi]
jne 0x41220d
inc ecx
cmp ecx, 6
jb 0x4121f0
mov ecx, dword [ebp - 0x2a98]
jmp 0x412224
cmp dword [edi + 0x1a0], 6
jne 0x412265
mov ecx, dword [ebp - 0x2a98]
cmp dword [ebp - 0x2a9c], ecx
jle 0x412265
movzx eax, byte [edi + 0x194]
mov byte [ebx], al
movzx eax, byte [edi + 0x195]
mov byte [ebx + 1], al
movzx eax, byte [edi + 0x196]
mov byte [ebx + 2], al
movzx eax, byte [edi + 0x197]
mov byte [ebx + 3], al
movzx eax, byte [edi + 0x198]
mov byte [ebx + 4], al
movzx eax, byte [edi + 0x199]
mov byte [ebx + 5], al
mov dword [ebp - 0x2a9c], ecx
mov edi, dword [edi]
test edi, edi
jne 0x4121c2
pop edi
pop esi
push dword [ebp - 0x2aa4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
xor edx, edx
mov dword [ebp - 0x2a94], eax
mov word [ebp - 0x2a90], ax
lea eax, [ebp - 0x2a94]
sub ebx, eax
jmp 0x4122a0
lea ecx, [ebp - 0x2a94]
add ecx, edx
mov al, byte [ebx + ecx]
cmp al, byte [ecx]
jne 0x4122b9
inc edx
cmp edx, 6
jb 0x4122a0
mov cl, 1
jmp 0x4122bb
xor cl, cl
xor eax, eax
test cl, cl
mov ecx, dword [ebp - 4]
sete al
xor ecx, ebp
pop ebx
call fcn.00421184
mov esp, ebp
pop ebp
ret
call fcn.00421b08
int3
Function at 0x412c80
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
mov eax, dword [0x451270]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x114
lea eax, [ebp - 0x190]
push 0
push eax
call fcn.00421940
add esp, 0xc
mov dword [ebp - 0x190], 0x114
lea eax, [ebp - 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x18c], 5
jbe 0x412d85
push esi
push edi
mov ecx, 0x1d
mov dword [ebp - 0x198], 4
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem_
mov dword [ebp - 0x19c], 4
lea edi, [ebp - 0x7c]
mov dword [ebp - 0x194], 0
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x194]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x7c]
movsw word es:[edi], word [esi]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x412d73
mov esi, dword [ebp - 0x194]
lea eax, [ebp - 0x19c]
push ebx
push eax
lea eax, [ebp - 0x1a0]
push eax
lea eax, [ebp - 0x198]
push eax
push 0
push str.EnableLUA
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ebx, ebx
cmp dword [ebp - 0x1a0], 1
sete bl
test esi, esi
je 0x412d60
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421184
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421184
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00421184
mov esp, ebp
pop ebp
ret

Function at 0x4133d0
Capabilities:
Get common file path
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4dc
mov eax, dword [0x451270]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x2d4], ax
lea eax, [ebp - 0x2d2]
push eax
call fcn.00421940
add esp, 0xc
lea eax, [ebp - 0x2d4]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x413451
xor eax, eax
mov dword [esi + 0x14], 7
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x448dc8
mov word [esi], ax
call fcn.00401ad0
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421184
mov esp, ebp
pop ebp
ret 4
push str.TencentDeskUpdateGlobalMgr.db
lea eax, [ebp - 0x2d4]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x104
lea eax, [ebp - 0x4dc]
push eax
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4134d2
xor eax, eax
push 0xc6
push eax
mov word [ebp - 0xcc], ax
lea eax, [ebp - 0xca]
push eax
call fcn.00421940
add esp, 0xc
lea eax, [ebp - 0x4dc]
push eax
push 0x64
lea eax, [ebp - 0xcc]
push eax
push 0x448dc8
push str.config1
push str.Profile
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, 0x20
jb 0x4134d2
lea eax, [ebp - 0xcc]
push eax
jmp 0x4134d7
push 0x448dc8
mov ecx, esi
call fcn.004055b0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00421184
mov esp, ebp
pop ebp
ret 4
Function at 0x413630
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x451270]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 8]
push edi
lea edi, [ebx + 1]
mov ecx, edi
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov dl, byte [ebx]
call fcn.00412e70
test al, al
je 0x413771
cmp dword [edi + 0x14], 0x10
jb 0x41367a
mov eax, dword [edi]
jmp 0x41367c
mov eax, edi
mov dword [ebp - 0x6c], eax
lea edx, [ebp - 0x6c]
mov eax, dword [edi + 0x10]
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], 0x67452301
mov dword [ebp - 0x60], 0xefcdab89
mov dword [ebp - 0x5c], 0x98badcfe
mov dword [ebp - 0x58], 0x10325476
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x68], eax
call fcn.00417990
lea edx, [ebp - 0x64]
lea ecx, [ebp - 0x74]
call fcn.00417ab0
lea edx, [ebp - 0x74]
lea ecx, [ebp - 0x8c]
call fcn.00417bc0
lea eax, [ebp - 0x8c]
cmp esi, eax
je 0x41370c
cmp dword [esi + 0x14], 0x10
jb 0x4136ed
push dword [esi]
call fcn.00420949
add esp, 4
lea eax, [ebp - 0x8c]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov ecx, esi
push eax
mov byte [esi], 0
call fcn.00407a00
cmp dword [ebp - 0x78], 0x10
jb 0x413720
push dword [ebp - 0x8c]
call fcn.00420949
add esp, 4
cmp dword [edi + 0x14], 0x10
mov eax, dword [ebx + 0x11]
jb 0x41372b
mov edi, dword [edi]
lea edx, [ebp - 0x6c]
mov dword [ebp - 0x64], 0x67452301
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x60], 0xefcdab89
mov dword [ebp - 0x5c], 0x98badcfe
mov dword [ebp - 0x58], 0x10325476
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], eax
call fcn.00417990
lea ecx, [ebx + 0x31]
lea edx, [ebp - 0x64]
call fcn.00417ab0
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421184
mov esp, ebp
pop ebp
ret 4
Function at 0x418000
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0043ad10
mov eax, dword [0x451270]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x804]
mov dword [ebp - 0x100c], 1
push eax
lea eax, [ebp - 0x100c]
mov dword [ebp - 0x1008], 0x800
push eax
push 0
push str.MachineGuid
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x41813f
mov ecx, dword [ebp - 0x100c]
cmp ecx, 1
jne 0x4180d2
cmp word [ebp - 0x804], ax
jne 0x418097
xor ecx, ecx
lea eax, [ebp - 0x804]
push ecx
push eax
mov ecx, edi
call fcn.00401ad0
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421184
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4180a0
sub ecx, edx
lea eax, [ebp - 0x804]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00401ad0
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421184
mov esp, ebp
pop ebp
ret 8
cmp ecx, 2
jne 0x41813a
push 0x400
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1008], eax
test eax, eax
je 0x418123
cmp eax, 0x400
ja 0x418123
lea eax, [ebp - 0x1004]
mov ecx, edi
push eax
call fcn.00401500
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421184
mov esp, ebp
pop ebp
ret 8
pop edi
mov eax, 0xea
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421184
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00421184
mov esp, ebp
pop ebp
ret 8

Function at 0x4187c0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [esi + 0x18]
test ecx, ecx
jne 0x4187d4
xor al, al
pop esi
pop ebp
ret 4
push dword [ebp + 8]
cmp byte [esi + 0x24], 0
mov edx, 4
push 0
push 0
mov eax, 0xf001f
cmovne eax, edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0x20], eax
pop esi
setne al
pop ebp
ret 4

Function at 0x418e30
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [ecx]
call dword [eax + 0x30]
test eax, eax
je 0x418e42
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret

Function at 0x41b180
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x41b190
pop ebp
jmp fcn.0040ffb0
xor al, al
pop ebp
ret 4
Function at 0x41bde0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x451270]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
mov dword [ebp - 0x240], 7
mov word [ebp - 0x254], ax
mov edi, ecx
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x244], 0
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x41c00d
cmp word [ebp - 0x20c], ax
jne 0x41be3d
xor ecx, ecx
jmp 0x41be55
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41be46
sub ecx, edx
sar ecx, 1
push ebx
push ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x254]
call fcn.00401ad0
push 0x3b
push str.TencentMinibrowserC66C2F80_CA43_45C6_ABCA_AA45E32C18D1
lea ecx, [ebp - 0x254]
call fcn.00405a10
cmp dword [ebp - 0x240], 8
lea eax, [ebp - 0x254]
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x228], 0xf
cmovae eax, dword [ebp - 0x254]
push eax
mov dword [ebp - 0x22c], 0
mov byte [ebp - 0x23c], 0
call fcn.004055b0
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00404fc0
add esp, 8
test al, al
sete bl
cmp dword [ebp - 0x210], 8
jb 0x41bee8
push dword [ebp - 0x224]
call fcn.00420949
add esp, 4
test bl, bl
pop ebx
jne 0x41bfdb
cmp dword [ebp - 0x22c], 0
je 0x41bfdb
push esi
push 0
lea eax, [ebp - 0x23c]
push 1
push eax
call fcn.004063f0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x41bfda
cmp dword [esi + 4], 6
jne 0x41bfd1
push str.root
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x258], 0
call fcn.004055b0
lea eax, [ebp - 0x258]
mov ecx, esi
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00403430
lea ecx, [ebp - 0x224]
call fcn.00403840
cmp dword [ebp - 0x258], 0
je 0x41bfd1
push dword [0x45105c]
lea ecx, [ebp - 0x224]
call fcn.004055b0
lea eax, [edi + 0xc]
mov ecx, edi
push eax
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x258]
call fcn.0041c390
lea ecx, [ebp - 0x224]
call fcn.00403840
push dword [0x451058]
lea ecx, [ebp - 0x224]
call fcn.004055b0
lea eax, [edi + 0x14]
mov ecx, edi
push eax
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x258]
call fcn.0041c390
lea ecx, [ebp - 0x224]
call fcn.00403840
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0xc]
pop esi
cmp dword [ebp - 0x228], 0x10
jb 0x41bff2
push dword [ebp - 0x23c]
call fcn.00420949
add esp, 4
mov dword [ebp - 0x228], 0xf
mov dword [ebp - 0x22c], 0
mov byte [ebp - 0x23c], 0
cmp dword [ebp - 0x240], 8
pop edi
jb 0x41c025
push dword [ebp - 0x254]
call fcn.00420949
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421184
mov esp, ebp
pop ebp
ret