joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42d9e0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x492c78
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b0650]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov esi, ecx
xor ebp, ebp
cmp dword [esi], ebp
je 0x42dbcf
push ebp
push 0x49a44b
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebp
mov byte [esp + 0x20], 0
call fcn.00404a30
lea edi, [esi + 0x30]
mov ecx, edi
mov dword [esp + 0x54], ebp
call fcn.00402fe0
mov eax, dword [esp + 0x18]
mov ebx, 0x10
cmp dword [esp + 0x2c], ebx
jae 0x42da54
lea eax, [esp + 0x18]
mov ecx, dword [edi + 0x40]
mov edx, dword [esp + 0x28]
push ecx
push edx
push eax
mov ecx, edi
call fcn.00403e20
cmp dword [esp + 0x2c], ebx
mov dword [esp + 0x54], 0xffffffff
jb 0x42da80
mov eax, dword [esp + 0x18]
push eax
call fcn.004604e8
add esp, 4
lea edi, [esi + 0x24]
cmp edi, ebp
je 0x42da8c
lea eax, [esi + 0x2c]
jmp 0x42da8e
xor eax, eax
mov ecx, dword [esp + 0x5c]
push ecx
push eax
call fcn.0042d5c0
add esp, 8
lea edx, [esp + 0x14]
push edx
mov ecx, edi
call fcn.00405730
cmp dword [esp + 0x2c], ebx
mov ebp, dword [eax + 0x14]
jb 0x42dabe
mov eax, dword [esp + 0x18]
push eax
call fcn.004604e8
add esp, 4
test ebp, ebp
jbe 0x42dafd
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call fcn.00405730
cmp dword [eax + 0x18], ebx
jb 0x42dad8
mov eax, dword [eax + 4]
jmp 0x42dadb
add eax, 4
mov edx, dword [esi]
push edx
push ebp
push 1
push eax
call fcn.004631b8
add esp, 0x10
cmp dword [esp + 0x2c], ebx
jb 0x42dafd
mov eax, dword [esp + 0x18]
push eax
call fcn.004604e8
add esp, 4
add dword [esi + 0x20], ebp
cmp dword [esi + 0x20], 0x4000000
jb 0x42dbc4
mov ecx, dword [esi]
push ecx
mov dword [esi + 0x20], 0
call fcn.00462ea9
push str..bak
lea edi, [esi + 4]
lea edx, [esp + 0x1c]
push edi
push edx
call fcn.00409f50
add esp, 0x10
cmp dword [eax + 0x18], ebx
jb 0x42db3c
mov eax, dword [eax + 4]
jmp 0x42db3f
add eax, 4
push eax
call fcn.00463054
add esp, 4
cmp dword [esp + 0x2c], ebx
jb 0x42db5b
mov eax, dword [esp + 0x18]
push eax
call fcn.004604e8
add esp, 4
push str..bak
lea ecx, [esp + 0x34]
push edi
push ecx
call fcn.00409f50
add esp, 0xc
cmp dword [eax + 0x18], ebx
jb 0x42db78
mov eax, dword [eax + 4]
jmp 0x42db7b
add eax, 4
cmp dword [edi + 0x18], ebx
jb 0x42db85
mov ecx, dword [edi + 4]
jmp 0x42db88
lea ecx, [edi + 4]
push eax
push ecx
call fcn.00462ffc
add esp, 8
cmp dword [esp + 0x48], ebx
jb 0x42dba5
mov edx, dword [esp + 0x34]
push edx
call fcn.004604e8
add esp, 4
cmp dword [edi + 0x18], ebx
jb 0x42dbaf
mov edi, dword [edi + 4]
jmp 0x42dbb2
add edi, 4
push 0x40
push 0x49b600
push edi
call fcn.00462f25
add esp, 0xc
mov dword [esi], eax
mov eax, dword [esi]
push eax
call fcn.00462ddb
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 4
Function at 0x42e110
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x492c78
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b0650]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
cmp dword [esi], edi
je 0x42e2f6
push edi
push 0x49a44b
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], edi
mov byte [esp + 0x20], 0
call fcn.00404a30
mov dword [esp + 0x54], edi
lea edi, [esi + 0x30]
mov ecx, edi
call fcn.00402fe0
mov eax, dword [esp + 0x18]
mov ebx, 0x10
cmp dword [esp + 0x2c], ebx
jae 0x42e184
lea eax, [esp + 0x18]
mov ecx, dword [edi + 0x40]
mov edx, dword [esp + 0x28]
push ecx
push edx
push eax
mov ecx, edi
call fcn.00403e20
cmp dword [esp + 0x2c], ebx
mov dword [esp + 0x54], 0xffffffff
jb 0x42e1b0
mov eax, dword [esp + 0x18]
push eax
call fcn.004604e8
add esp, 4
mov ecx, dword [esp + 0x5c]
movzx edx, byte [ecx]
push edx
lea ecx, [esi + 0x2c]
call fcn.0042dbf0
lea eax, [esp + 0x14]
lea edi, [esi + 0x24]
push eax
mov ecx, edi
call fcn.00405730
cmp dword [esp + 0x2c], ebx
mov ebp, dword [eax + 0x14]
jb 0x42e1e5
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004604e8
add esp, 4
test ebp, ebp
jbe 0x42e224
lea edx, [esp + 0x14]
push edx
mov ecx, edi
call fcn.00405730
cmp dword [eax + 0x18], ebx
jb 0x42e1ff
mov eax, dword [eax + 4]
jmp 0x42e202
add eax, 4
mov ecx, dword [esi]
push ecx
push ebp
push 1
push eax
call fcn.004631b8
add esp, 0x10
cmp dword [esp + 0x2c], ebx
jb 0x42e224
mov edx, dword [esp + 0x18]
push edx
call fcn.004604e8
add esp, 4
add dword [esi + 0x20], ebp
cmp dword [esi + 0x20], 0x4000000
jb 0x42e2eb
mov eax, dword [esi]
push eax
mov dword [esi + 0x20], 0
call fcn.00462ea9
push str..bak
lea edi, [esi + 4]
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.00409f50
add esp, 0x10
cmp dword [eax + 0x18], ebx
jb 0x42e263
mov eax, dword [eax + 4]
jmp 0x42e266
add eax, 4
push eax
call fcn.00463054
add esp, 4
cmp dword [esp + 0x2c], ebx
jb 0x42e282
mov edx, dword [esp + 0x18]
push edx
call fcn.004604e8
add esp, 4
push str..bak
lea eax, [esp + 0x34]
push edi
push eax
call fcn.00409f50
add esp, 0xc
cmp dword [eax + 0x18], ebx
jb 0x42e29f
mov eax, dword [eax + 4]
jmp 0x42e2a2
add eax, 4
cmp dword [edi + 0x18], ebx
jb 0x42e2ac
mov ecx, dword [edi + 4]
jmp 0x42e2af
lea ecx, [edi + 4]
push eax
push ecx
call fcn.00462ffc
add esp, 8
cmp dword [esp + 0x48], ebx
jb 0x42e2cc
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004604e8
add esp, 4
cmp dword [edi + 0x18], ebx
jb 0x42e2d6
mov edi, dword [edi + 4]
jmp 0x42e2d9
add edi, 4
push 0x40
push 0x49b600
push edi
call fcn.00462f25
add esp, 0xc
mov dword [esi], eax
mov edx, dword [esi]
push edx
call fcn.00462ddb
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 4
Function at 0x42e310
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x492c78
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b0650]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
cmp dword [esi], edi
je 0x42e4f5
push edi
push 0x49a44b
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], edi
mov byte [esp + 0x20], 0
call fcn.00404a30
mov dword [esp + 0x54], edi
lea edi, [esi + 0x30]
mov ecx, edi
call fcn.00402fe0
mov eax, dword [esp + 0x18]
mov ebx, 0x10
cmp dword [esp + 0x2c], ebx
jae 0x42e384
lea eax, [esp + 0x18]
mov ecx, dword [edi + 0x40]
mov edx, dword [esp + 0x28]
push ecx
push edx
push eax
mov ecx, edi
call fcn.00403e20
cmp dword [esp + 0x2c], ebx
mov dword [esp + 0x54], 0xffffffff
jb 0x42e3b0
mov eax, dword [esp + 0x18]
push eax
call fcn.004604e8
add esp, 4
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx]
push edx
lea ecx, [esi + 0x2c]
call fcn.0042dd50
lea eax, [esp + 0x14]
lea edi, [esi + 0x24]
push eax
mov ecx, edi
call fcn.00405730
cmp dword [esp + 0x2c], ebx
mov ebp, dword [eax + 0x14]
jb 0x42e3e4
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004604e8
add esp, 4
test ebp, ebp
jbe 0x42e423
lea edx, [esp + 0x14]
push edx
mov ecx, edi
call fcn.00405730
cmp dword [eax + 0x18], ebx
jb 0x42e3fe
mov eax, dword [eax + 4]
jmp 0x42e401
add eax, 4
mov ecx, dword [esi]
push ecx
push ebp
push 1
push eax
call fcn.004631b8
add esp, 0x10
cmp dword [esp + 0x2c], ebx
jb 0x42e423
mov edx, dword [esp + 0x18]
push edx
call fcn.004604e8
add esp, 4
add dword [esi + 0x20], ebp
cmp dword [esi + 0x20], 0x4000000
jb 0x42e4ea
mov eax, dword [esi]
push eax
mov dword [esi + 0x20], 0
call fcn.00462ea9
push str..bak
lea edi, [esi + 4]
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.00409f50
add esp, 0x10
cmp dword [eax + 0x18], ebx
jb 0x42e462
mov eax, dword [eax + 4]
jmp 0x42e465
add eax, 4
push eax
call fcn.00463054
add esp, 4
cmp dword [esp + 0x2c], ebx
jb 0x42e481
mov edx, dword [esp + 0x18]
push edx
call fcn.004604e8
add esp, 4
push str..bak
lea eax, [esp + 0x34]
push edi
push eax
call fcn.00409f50
add esp, 0xc
cmp dword [eax + 0x18], ebx
jb 0x42e49e
mov eax, dword [eax + 4]
jmp 0x42e4a1
add eax, 4
cmp dword [edi + 0x18], ebx
jb 0x42e4ab
mov ecx, dword [edi + 4]
jmp 0x42e4ae
lea ecx, [edi + 4]
push eax
push ecx
call fcn.00462ffc
add esp, 8
cmp dword [esp + 0x48], ebx
jb 0x42e4cb
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004604e8
add esp, 4
cmp dword [edi + 0x18], ebx
jb 0x42e4d5
mov edi, dword [edi + 4]
jmp 0x42e4d8
add edi, 4
push 0x40
push 0x49b600
push edi
call fcn.00462f25
add esp, 0xc
mov dword [esi], eax
mov edx, dword [esi]
push edx
call fcn.00462ddb
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 4
Function at 0x4309b0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x34
push ebx
push esi
push edi
mov esi, ecx
push 0
lea ebx, [esi + 0x30]
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jne 0x4309d2
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x34
ret
push edi
call fcn.00460aa0
push edi
push 0
push eax
mov dword [esi + 8], eax
call fcn.00460a00
mov eax, dword [esi + 8]
add esp, 0x10
push eax
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4309c9
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00430660
test eax, eax
je 0x4309c9
mov eax, dword [esp + 0x14]
mov edx, eax
mov word [esi + 0xe], ax
mov eax, dword [esp + 0x18]
shr edx, 0x10
mov ecx, eax
mov word [esi + 0x12], ax
mov eax, dword [esp + 0x1c]
shr ecx, 0x10
mov word [esi + 0xc], dx
mov edx, eax
mov word [esi + 0x10], cx
mov word [esi + 0x16], ax
mov eax, dword [esp + 0x20]
mov ecx, eax
shr ecx, 0x10
mov word [esi + 0x18], cx
mov ecx, dword [esp + 0x2c]
shr edx, 0x10
mov word [esi + 0x14], dx
mov edx, dword [esp + 0x24]
mov word [esi + 0x1a], ax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x24], ecx
push 0x104
lea ecx, [esi + 0x134]
push ecx
mov dword [esi + 0x1c], edx
mov edx, dword [esp + 0x38]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x3c]
push str.CompanyName
mov ecx, esi
mov dword [esi + 0x28], edx
mov dword [esi + 0x2c], eax
call fcn.004307a0
test eax, eax
je 0x4309c9
push 0x104
lea edx, [esi + 0x33c]
push edx
push str.FileDescription
mov ecx, esi
call fcn.004307a0
test eax, eax
je 0x4309c9
push 0x104
lea eax, [esi + 0x238]
push eax
push str.ProductName
mov ecx, esi
call fcn.004307a0
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
add esp, 0x34
ret

Function at 0x430bb0
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
push 0x49b8a8
push 1
push 0
push 0x49b898
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [edi], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x430c14
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov esi, eax
test esi, esi
jl 0x430c14
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push edi
push eax
call edx
mov esi, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x430c24
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0xc]
test eax, eax
je 0x430c34
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop edi
mov eax, esi
pop esi
add esp, 8
ret
Function at 0x433d80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x493718
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4b0650]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push esi
mov eax, dword [0x4b0650]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0xc]
call fcn.004404b0
xor ebx, ebx
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], ebx
call fcn.00440d70
test al, al
jne 0x433e0c
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x433e04
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esi], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi + 4], edx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov bl, 1
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x433e0e
mov bl, 1
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0040bf60
mov al, bl
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004604af
add esp, 0x24
ret
Function at 0x434740
Capabilities:
Get token membership

Disassembly:
sub esp, 0x14
mov eax, dword [0x4b0650]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
xor ebx, ebx
lea eax, [esp + 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
mov dword [esp + 4], eax
je 0x4347bb
mov eax, dword [esp + 8]
lea edx, [esp + 4]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x4347aa
mov dword [esp + 4], ebx
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp + 4]
cmp eax, ebx
mov ecx, dword [esp + 0x14]
setne al
pop ebx
xor ecx, esp
call fcn.004604af
add esp, 0x14
ret
Function at 0x435680
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x493883
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x4b0650]
xor eax, esp
mov dword [esp + 0x144], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b0650]
xor eax, esp
push eax
lea eax, [esp + 0x15c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x16c]
mov ebp, dword [esp + 0x170]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov edi, 0xf
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
mov dword [esp + 0x50], esi
mov byte [esi + 4], bl
push 0x104
lea eax, [esp + 0x58]
push ebx
push eax
mov dword [esp + 0x170], ebx
mov dword [esp + 0x20], 1
call fcn.00460a00
add esp, 0xc
push 1
push 0x2b
lea ecx, [esp + 0x5c]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x435823
lea eax, [esp + 0x54]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x435730
sub eax, edx
push eax
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x3c]
call fcn.00404a30
push str.TencentQQDownload
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x170], 1
call fcn.00409f50
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov byte [esp + 0x170], 2
call fcn.00405f50
mov edi, 0x10
cmp dword [esp + 0x30], edi
jb 0x435797
mov edx, dword [esp + 0x1c]
push edx
call fcn.004604e8
add esp, 4
cmp dword [esp + 0x4c], edi
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
mov byte [esp + 0x164], bl
jb 0x4357c1
mov eax, dword [esp + 0x38]
push eax
call fcn.004604e8
add esp, 4
cmp dword [ebp + 0x14], ebx
je 0x435809
push ebp
lea ecx, [esp + 0x1c]
push 0x49a4f0
push ecx
call fcn.00434c20
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov dword [esp + 0x170], 3
call fcn.00405f50
cmp dword [esp + 0x30], edi
mov byte [esp + 0x164], bl
jb 0x435809
mov edx, dword [esp + 0x1c]
push edx
call fcn.004604e8
add esp, 4
push esi
call fcn.00435070
add esp, 4
test al, al
jne 0x435830
push esi
call fcn.004351d0
add esp, 4
cmp al, bl
jne 0x435830
push ebx
push 0x49a44b
mov ecx, esi
call fcn.00404a30
mov eax, esi
mov ecx, dword [esp + 0x15c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.004604af
add esp, 0x154
ret
Function at 0x435860
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x493903
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x4b0650]
xor eax, esp
mov dword [esp + 0x24c], eax
push ebx
push ebp
push esi
mov eax, dword [0x4b0650]
xor eax, esp
push eax
lea eax, [esp + 0x260]
mov dword fs:[0], eax
mov esi, dword [esp + 0x270]
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov ebp, 0xf
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
mov dword [esp + 0x30], esi
mov byte [esi + 4], bl
push 0x104
lea eax, [esp + 0x15c]
push ebx
push eax
mov dword [esp + 0x274], ebx
mov dword [esp + 0x38], 1
call fcn.00460a00
add esp, 0xc
push 1
push 0x1a
lea ecx, [esp + 0x160]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x4359bf
lea eax, [esp + 0x158]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x435910
sub eax, edx
push eax
lea edx, [esp + 0x15c]
push edx
lea ecx, [esp + 0x18]
call fcn.00404a30
push str.TencentTencentdl
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x274], 1
call fcn.00409f50
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov byte [esp + 0x274], 2
call fcn.00405f50
cmp dword [esp + 0x4c], 0x10
jb 0x435976
mov edx, dword [esp + 0x38]
push edx
call fcn.004604e8
add esp, 4
cmp dword [esp + 0x28], 0x10
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
mov byte [esp + 0x268], bl
jb 0x43599d
mov eax, dword [esp + 0x14]
push eax
call fcn.004604e8
add esp, 4
push esi
call fcn.00435070
add esp, 4
test al, al
jne 0x435a58
push esi
call fcn.004351d0
add esp, 4
cmp al, bl
jne 0x435a58
push 0x104
lea ecx, [esp + 0x55]
push ebx
push ecx
mov byte [esp + 0x5c], bl
call fcn.00460a00
add esp, 0xc
push 0x105
lea edx, [esp + 0x54]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x50]
push 0x5c
push eax
call fcn.004639f0
add esp, 8
cmp eax, ebx
je 0x4359fc
mov byte [eax], bl
lea eax, [esp + 0x50]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x435a10
sub eax, edx
push eax
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x18]
call fcn.00404a30
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x18]
push edx
mov ecx, esi
mov dword [esp + 0x274], 3
call fcn.00404950
cmp dword [esp + 0x28], 0x10
jb 0x435a58
mov eax, dword [esp + 0x14]
push eax
call fcn.004604e8
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24c]
xor ecx, esp
call fcn.004604af
add esp, 0x25c
ret
Function at 0x435a90
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x49398b
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x4b0650]
xor eax, esp
mov dword [esp + 0x24c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b0650]
xor eax, esp
push eax
lea eax, [esp + 0x264]
mov dword fs:[0], eax
mov esi, dword [esp + 0x274]
xor ebx, ebx
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov ebp, 0xf
mov edi, 1
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
mov dword [esp + 0x26c], edi
mov byte [esi + 4], bl
push 0x104
lea eax, [esp + 0x160]
push ebx
push eax
mov dword [esp + 0x3c], edi
call fcn.00460a00
mov cl, byte [esp + 0x2a4]
add esp, 0xc
neg cl
push edi
lea edx, [esp + 0x160]
sbb ecx, ecx
and ecx, 0xfffffff7
add ecx, 0x23
push ecx
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
lea edi, [ebx + 0x10]
je 0x435c01
lea eax, [esp + 0x15c]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x435b53
sub eax, edx
push eax
lea eax, [esp + 0x160]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404a30
lea ecx, [esp + 0x27c]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x278], 2
call fcn.00413620
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov byte [esp + 0x278], 3
call fcn.00405f50
cmp dword [esp + 0x50], edi
jb 0x435bb8
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.004604e8
add esp, 4
cmp dword [esp + 0x2c], edi
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
mov byte [esp + 0x26c], 1
jb 0x435bdf
mov edx, dword [esp + 0x18]
push edx
call fcn.004604e8
add esp, 4
push esi
call fcn.00435070
add esp, 4
test al, al
jne 0x435c95
push esi
call fcn.004351d0
add esp, 4
cmp al, bl
jne 0x435c95
push 0x104
lea eax, [esp + 0x59]
push ebx
push eax
mov byte [esp + 0x60], bl
call fcn.00460a00
add esp, 0xc
push 0x105
lea ecx, [esp + 0x58]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x54]
push 0x5c
push edx
call fcn.004639f0
add esp, 8
cmp eax, ebx
je 0x435c3e
mov byte [eax], bl
lea eax, [esp + 0x54]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x435c51
sub eax, edx
push eax
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404a30
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
mov byte [esp + 0x278], 4
call fcn.00404950
cmp dword [esp + 0x2c], edi
jb 0x435c95
mov edx, dword [esp + 0x18]
push edx
call fcn.004604e8
add esp, 4
cmp dword [esp + 0x294], edi
jb 0x435cae
mov eax, dword [esp + 0x280]
push eax
call fcn.004604e8
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x264]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24c]
xor ecx, esp
call fcn.004604af
add esp, 0x25c
ret