joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40abb0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, ecx
push 0
lea ebp, [esi + 0x30]
push ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jne 0x40abd0
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
push edi
push ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, ebx
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esi + 8], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 8]
push eax
push ebx
push 0
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
pop edi
jne 0x40ac0a
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.0040a8b0
test eax, eax
jne 0x40ac21
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov eax, dword [esp + 0x14]
push 0x104
mov edx, eax
mov word [esi + 0xe], ax
mov eax, dword [esp + 0x1c]
shr edx, 0x10
mov ecx, eax
mov word [esi + 0x12], ax
mov eax, dword [esp + 0x20]
mov word [esi + 0xc], dx
shr ecx, 0x10
mov edx, eax
mov word [esi + 0x16], ax
mov eax, dword [esp + 0x24]
mov word [esi + 0x10], cx
mov ecx, eax
mov word [esi + 0x1a], ax
mov eax, dword [esp + 0x2c]
shr ecx, 0x10
shr edx, 0x10
mov word [esi + 0x18], cx
mov ecx, dword [esp + 0x30]
mov word [esi + 0x14], dx
mov edx, dword [esp + 0x28]
mov dword [esi + 0x24], ecx
lea ecx, [esi + 0x134]
mov dword [esi + 0x1c], edx
mov edx, dword [esp + 0x34]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x38]
push ecx
push str.CompanyName
mov ecx, esi
mov dword [esi + 0x28], edx
mov dword [esi + 0x2c], eax
call fcn.0040aa30
test eax, eax
jne 0x40acab
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
lea edx, [esi + 0x33c]
push 0x104
push edx
push str.FileDescription
mov ecx, esi
call fcn.0040aa30
test eax, eax
jne 0x40acce
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
lea eax, [esi + 0x238]
push 0x104
push eax
push str.ProductName
mov ecx, esi
call fcn.0040aa30
neg eax
sbb eax, eax
pop esi
pop ebp
pop ebx
neg eax
add esp, 0x34
ret
Function at 0x40b8a0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x40c4d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x490
mov ecx, 8
xor eax, eax
push ebx
mov ebx, dword [esp + 0x49c]
push esi
push edi
mov edi, ebx
push 0
rep stosd dword es:[edi], eax
push 0
push 3
stosb byte es:[edi], al
mov eax, dword [esp + 0x4ac]
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40c51c
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x490
ret
lea ecx, [esp + 0x44]
push ecx
call fcn.0040b8a0
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 4
lea edx, [esp + 0xc]
lea eax, [esp + 0x9c]
push 0
push edx
push 0x400
push eax
push esi
call edi
test eax, eax
je 0x40c583
mov eax, dword [esp + 0xc]
test eax, eax
jbe 0x40c583
lea ecx, [esp + 0x9c]
push eax
lea edx, [esp + 0x48]
push ecx
push edx
call fcn.0040b8d0
add esp, 0xc
lea eax, [esp + 0xc]
lea ecx, [esp + 0x9c]
push 0
push eax
push 0x400
push ecx
push esi
call edi
test eax, eax
jne 0x40c54a
lea edx, [esp + 0x44]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.0040b980
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
lea edi, [esp + 0x20]
xor ecx, ecx
mov cl, byte [esp + esi + 0x10]
push ecx
push str._02x
push 2
push edi
call sub.MSVCRT.dll__snprintf
add esp, 0x10
inc esi
add edi, 2
cmp esi, 0x10
jl 0x40c5a2
mov ecx, 8
lea esi, [esp + 0x20]
mov edi, ebx
mov al, 1
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
add esp, 0x490
ret

Function at 0x40cd10
Capabilities:
Check if file exists
Copy file

Disassembly:
sub esp, 0x208
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
mov esi, dword [esp + 0x218]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push 0x104
push eax
push esi
call fcn.00413360
add esp, 0xc
test eax, eax
jne 0x40cd58
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x208
ret
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea ecx, [esp + 0xc]
push ecx
call ebp
test eax, eax
jne 0x40cdb9
mov ecx, 0x40
lea edi, [esp + 0x111]
mov byte [esp + 0x110], al
lea edx, [esp + 0x110]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
push esi
stosb byte es:[edi], al
call fcn.0040ce30
add esp, 8
test eax, eax
je 0x40cd4c
lea eax, [esp + 0x110]
push eax
call ebp
test eax, eax
je 0x40cd4c
lea ecx, [esp + 0xc]
push 0
lea edx, [esp + 0x114]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, dword [esp + 0x21c]
lea eax, [esp + 0xc]
push 0x104
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x208
ret
Function at 0x40cde0
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
push esi
push edi
call fcn.0040ce30
add esp, 8
test eax, eax
jne 0x40ce08
mov eax, dword [esp + 0x18]
push eax
push esi
push edi
call fcn.0040ceb0
add esp, 0xc
call fcn.00403a60
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40ce28
push esi
call ebx
test eax, eax
jne 0x40ce28
push esi
push edi
call fcn.0040cd10
add esp, 8
push esi
call ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40ce30
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x104
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
push 0x104
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x110]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push ecx
call fcn.004133e0
add esp, 0xc
test eax, eax
pop edi
je 0x40ce9e
lea edx, [esp]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40ce9e
mov ecx, dword [esp + 0x10c]
lea eax, [esp]
push 0x104
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, 1
add esp, 0x104
ret
xor eax, eax
add esp, 0x104
ret
Function at 0x40ceb0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x61c
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x119]
mov byte [esp + 0x118], bl
mov byte [esp + 0x21c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x21d]
mov esi, dword [esp + 0x630]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x21c]
push 0x104
push eax
push esi
call fcn.00413360
add esp, 0xc
test eax, eax
je 0x40d03d
mov ecx, dword [esp + 0x638]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x11c]
push 0x104
push eax
push esi
mov dword [esp + 0x20], ecx
call fcn.0040f9a0
add esp, 0x10
test eax, eax
je 0x40d03d
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x14]
push 0x104
push ecx
stosb byte es:[edi], al
call fcn.0040a560
push esi
call fcn.00413310
add esp, 0xc
lea edx, [esp + 0x14]
push eax
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea eax, [esp + 0x14]
push eax
call ebp
test eax, eax
je 0x40d011
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x425]
mov byte [esp + 0x424], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x529]
mov byte [esp + 0x528], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x424]
push 0x104
lea edx, [esp + 0x220]
push ecx
push edx
stosb byte es:[edi], al
call fcn.0040ad20
lea eax, [esp + 0x534]
push 0x104
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.0040ad20
lea edx, [esp + 0x43c]
lea eax, [esp + 0x540]
push edx
push eax
call fcn.0040af50
add esp, 0x20
test eax, eax
jg 0x40d023
lea ecx, [esp + 0x118]
lea edx, [esp + 0x21c]
push ecx
push edx
jmp 0x40d030
lea eax, [esp + 0x118]
lea ecx, [esp + 0x14]
push eax
push ecx
push esi
call fcn.0040e570
add esp, 0xc
test eax, eax
jne 0x40d04a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x61c
ret
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x321]
mov byte [esp + 0x320], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x320]
push 0x104
push edx
push esi
stosb byte es:[edi], al
call fcn.004133e0
add esp, 0xc
lea eax, [esp + 0x320]
push eax
call ebp
test eax, eax
je 0x40d0b5
lea ecx, [esp + 0x21c]
lea edx, [esp + 0x320]
push ecx
push edx
call sub.MSVCRT.dll__mbsicmp
add esp, 8
test eax, eax
je 0x40d0b5
lea eax, [esp + 0x320]
push ebx
push eax
call fcn.00402410
add esp, 8
lea ecx, [esp + 0x118]
push ecx
push esi
call fcn.004133b0
mov eax, dword [esp + 0x63c]
add esp, 8
lea edx, [esp + 0x118]
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x61c
ret
Function at 0x40d160
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x208
push ebp
push esi
push edi
call fcn.00403a60
test eax, eax
je 0x40d257
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x21c]
test eax, eax
je 0x40d1b2
call fcn.00410e70
test al, al
je 0x40d1b2
lea eax, [esp + 0xc]
push 2
push eax
push 9
call fcn.0040cde0
add esp, 0xc
jmp 0x40d1c1
lea ecx, [esp + 0xc]
push ecx
push 9
call fcn.0040cd10
add esp, 8
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40d3cf
mov ebp, dword [esp + 0x218]
cmp ebp, 1
jne 0x40d20e
mov esi, 0x420f00
xor edi, edi
call fcn.00403a60
test eax, eax
je 0x40d21d
call fcn.0040d3e0
test eax, eax
jne 0x40d3d1
push eax
lea eax, [esp + 0x10]
push esi
push eax
call fcn.00410380
jmp 0x40d3a5
cmp ebp, 2
jne 0x40d229
mov esi, 0x420efc
mov edi, 0x1388
push edi
lea ecx, [esp + 0x10]
push esi
push ecx
jmp 0x40d3a0
cmp ebp, 4
jne 0x40d244
mov edi, 0x1388
mov esi, 0x420ef8
push edi
lea ecx, [esp + 0x10]
push esi
push ecx
jmp 0x40d3a0
xor edi, edi
mov esi, 0x422a38
push edi
lea ecx, [esp + 0x10]
push esi
push ecx
jmp 0x40d3a0
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x21c]
test eax, eax
je 0x40d2ae
call fcn.00410e70
test al, al
je 0x40d2ae
lea edx, [esp + 0xc]
push 4
push edx
push 1
call fcn.0040cde0
add esp, 0xc
jmp 0x40d2bd
lea eax, [esp + 0xc]
push eax
push 1
call fcn.0040cd10
add esp, 8
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40d3cf
lea edx, [esp + 0xc]
push 0x104
lea eax, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x40d3cf
mov ebp, dword [esp + 0x218]
cmp ebp, 3
jne 0x40d30a
lea ecx, [esp + 0xc]
mov ebp, 1
push ecx
push str._s_Rundll32_R
jmp 0x40d37b
cmp ebp, 1
jne 0x40d31b
lea ecx, [esp + 0xc]
push ecx
push str._s_Rundll32_R
jmp 0x40d37b
cmp ebp, 2
jne 0x40d346
lea eax, [esp + 0xc]
lea ecx, [esp + 0x110]
push eax
push str._s_Rundll32_I
push 0x103
push ecx
call sub.MSVCRT.dll__snprintf
add esp, 0x10
mov eax, 0x1388
jmp 0x40d392
cmp ebp, 4
jne 0x40d371
lea edx, [esp + 0xc]
lea eax, [esp + 0x110]
push edx
push str._s_Rundll32_E
push 0x103
push eax
call sub.MSVCRT.dll__snprintf
add esp, 0x10
mov eax, 0x1388
jmp 0x40d392
lea ecx, [esp + 0xc]
push ecx
push str._s_Rundll32
lea edx, [esp + 0x118]
push 0x103
push edx
call sub.MSVCRT.dll__snprintf
add esp, 0x10
xor eax, eax
push eax
lea eax, [esp + 0x114]
push eax
push str.rundll32.exe
call fcn.004046e0
add esp, 0xc
test eax, eax
jne 0x40d3d1
cmp dword [esp + 0x21c], 1
jne 0x40d3d1
cmp ebp, 3
jne 0x40d3d1
push eax
push ebp
call fcn.0040d160
add esp, 8
pop edi
pop esi
pop ebp
add esp, 0x208
ret
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x208
ret
Function at 0x40e570
Capabilities:
Copy file
Delete file
Move file

Disassembly:
sub esp, 0x104
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x118]
push 0x104
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x104
lea ecx, [esp + 0xc]
push str..tmp
push ecx
call fcn.00404560
mov eax, dword [esp + 0x120]
add esp, 0xc
lea edx, [esp + 8]
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40e5de
pop edi
pop esi
add esp, 0x104
ret
lea ecx, [esp + 8]
push esi
push ecx
call sub.MSVCRT.dll_rename
add esp, 8
test eax, eax
je 0x40e606
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
xor eax, eax
pop esi
add esp, 0x104
ret
pop edi
mov eax, 1
pop esi
add esp, 0x104
ret
Function at 0x40f5e0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x478
push ebx
push ebp
push esi
mov esi, dword [esp + 0x488]
xor ebx, ebx
push edi
cmp esi, ebx
je 0x40f7a5
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x40f7a5
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x17d]
mov byte [esp + 0x17c], bl
rep stosd dword es:[edi], eax
mov ebp, dword [sym.imp.SHLWAPI.dll_wnsprintfA]
push esi
stosw word es:[edi], ax
stosb byte es:[edi], al
push str._s
lea eax, [esp + 0x184]
push 0x103
push eax
call ebp
mov ecx, 0x4f
xor eax, eax
lea edi, [esp + 0x50]
mov dword [esp + 0x4c], ebx
rep stosd dword es:[edi], eax
add esp, 0x10
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x17c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x40f7a5
mov dword [esp + 0x10], ebx
test byte [esp + 0x3c], 0x10
jne 0x40f6f2
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x385]
mov byte [esp + 0x384], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x68]
lea ecx, [esp + 0x384]
push eax
push esi
push str._s_s
push 0x103
push ecx
call ebp
add esp, 0x14
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], ebx
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x388]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
test eax, eax
je 0x40f766
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x10]
add eax, ecx
mov dword [esp + 0x10], eax
jmp 0x40f766
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea edx, [esp + 0x68]
push 0x420568
push edx
call edi
test eax, eax
je 0x40f766
lea eax, [esp + 0x68]
push 0x420564
push eax
call edi
test eax, eax
je 0x40f766
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x281]
mov byte [esp + 0x280], bl
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x68]
lea edx, [esp + 0x280]
push ecx
push esi
stosw word es:[edi], ax
push str._s_s
push 0x103
push edx
stosb byte es:[edi], al
call ebp
lea eax, [esp + 0x294]
push eax
call fcn.0040f5e0
mov ecx, dword [esp + 0x28]
add esp, 0x18
add ecx, eax
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x14]
mov ecx, 0x50
xor eax, eax
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x3c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40f677
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x478
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x478
ret

Function at 0x40f950
Capabilities:
Check if file exists

Disassembly:
push esi
push edi
push 0
call sub.MSVCRT.dll_time
push eax
call sub.MSVCRT.dll_srand
call sub.MSVCRT.dll_rand
cdq
mov ecx, 9
mov edi, dword [esp + 0x18]
idiv ecx
mov esi, edx
mov edx, dword [esp + 0x1c]
push edx
push edi
push esi
call fcn.0040ff60
add esp, 0x14
test eax, eax
jne 0x40f988
pop edi
pop esi
ret
mov eax, dword [esp + 0x18]
push edi
mov dword [eax], esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
pop edi
pop esi
ret
Function at 0x40f9a0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x23c
push ebx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x141]
mov byte [esp + 0x140], bl
mov byte [esp + 0x3c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x3d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00403a60
test eax, eax
je 0x40f9ec
pop edi
xor eax, eax
pop ebx
add esp, 0x23c
ret
mov ecx, dword [esp + 0x254]
mov eax, dword [ecx]
cmp eax, 9
jl 0x40fa25
push ecx
mov ecx, dword [esp + 0x24c]
lea eax, [esp + 0x144]
push 0x104
push eax
push ecx
call fcn.0040f950
add esp, 0x10
test eax, eax
jne 0x40fa3e
pop edi
pop ebx
add esp, 0x23c
ret
mov edx, dword [esp + 0x250]
lea ecx, [esp + 0x140]
push edx
push ecx
push eax
call fcn.0040ff60
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendA]
push ebp
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push esi
xor esi, esi
mov eax, esi
lea edx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x254]
push edx
push eax
inc esi
call fcn.0040feb0
add esp, 0xc
lea ecx, [esp + 0x148]
lea edx, [esp + 0x44]
push 0x104
push ecx
push edx
call edi
lea eax, [esp + 0x10]
lea ecx, [esp + 0x44]
push eax
push ecx
call ebx
lea edx, [esp + 0x44]
push edx
call ebp
test eax, eax
je 0x40faa0
cmp esi, 0x3e8
jl 0x40fa54
mov eax, dword [esp + 0x258]
mov edx, dword [esp + 0x254]
lea ecx, [esp + 0x44]
push eax
push ecx
push edx
call edi
pop esi
pop ebp
pop edi
mov eax, 1
pop ebx
add esp, 0x23c
ret
Function at 0x40ff60
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
push esi
cmp eax, 0x64
push edi
ja case.0x40ff77.10
xor ecx, ecx
mov cl, byte [eax + 0x410128]
jmp dword [ecx*4 + 0x4100fc]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.00410260
add esp, 8
mov eax, 1
pop edi
pop esi
ret
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
call fcn.004021a0
add esp, 8
mov eax, 1
pop edi
pop esi
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
pop edi
mov eax, 1
pop esi
ret
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
pop edi
mov eax, 1
pop esi
ret
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
push ecx
push esi
call fcn.004021a0
add esp, 8
mov ecx, 0x422bb8
jmp 0x4100e2
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.drivers
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
pop edi
mov eax, 1
pop esi
ret
mov eax, dword [esp + 0x14]
push eax
push 0x10
call fcn.004132d0
mov ecx, dword [esp + 0x18]
add esp, 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
pop edi
mov eax, 1
pop esi
ret
mov esi, dword [esp + 0x10]
push 1
push 0x1a
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je case.0x40ff77.10
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
push str.LocalLow
push esi
call edi
mov ecx, 0x422b98
call fcn.00404910
push eax
push esi
call edi
pop edi
mov eax, 1
pop esi
ret
mov esi, dword [esp + 0x10]
push 1
push 0x1a
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je case.0x40ff77.10
mov ecx, 0x422ba8
call fcn.00404910
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
push eax
push esi
call edi
mov ecx, 0x422b98
call fcn.00404910
push eax
push esi
call edi
pop edi
mov eax, 1
pop esi
ret
mov esi, dword [esp + 0x10]
push 1
push 0x1a
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je case.0x40ff77.10
mov ecx, 0x422b98
call fcn.00404910
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
pop edi
mov eax, 1
pop esi
ret
pop edi
xor eax, eax
pop esi
ret

Function at 0x410260
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push edi
mov edi, dword [esp + 0x14]
push eax
lea ecx, [esp + 0xc]
push esi
push ecx
push str.Install
push str.SOFTWARETencentTBH
push 0x80000002
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x4102af
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4102af
pop edi
mov eax, 1
pop esi
pop ecx
ret
push edi
push 0x10
call fcn.004132d0
add esp, 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
pop ecx
ret
Function at 0x410500
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x478
lea eax, [esp + 8]
push ebx
xor ebx, ebx
push eax
push 0x2000000
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4106b3
mov edx, dword [esp + 0xc]
lea ecx, [esp + 4]
push esi
push ecx
push 1
push 2
push ebx
push 0x2000000
push edx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4106a1
push ebp
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebp, eax
push str.ConvertStringSidToSidW
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x410692
mov edx, dword [esp + 0x488]
lea ecx, [esp + 0x10]
push ecx
push edx
call eax
test eax, eax
je 0x410692
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], 0x20
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov ecx, dword [esp + 0xc]
add eax, 8
push eax
lea eax, [esp + 0x1c]
push eax
push 0x19
push ecx
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x410687
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x38]
mov dword [esp + 0x34], 0x44
mov word [esp + 0x78], bx
rep stosd dword es:[edi], eax
mov ecx, 0x103
lea edi, [esp + 0x7a]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x490]
xor edx, edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], ebx
stosw word es:[edi], ax
mov eax, dword [esp + 0x494]
mov dword [esp + 0x2c], edx
push eax
mov dword [esp + 0x34], edx
push ecx
push str.__s___s
lea edx, [esp + 0x84]
push 0x207
push edx
call sub.MSVCRT.dll__snwprintf
add esp, 0x14
lea eax, [esp + 0x24]
lea ecx, [esp + 0x34]
lea edx, [esp + 0x78]
push eax
mov eax, dword [esp + 0x14]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
pop edi
je 0x410681
mov eax, dword [esp + 0x494]
cmp eax, ebx
jbe 0x41066c
mov ecx, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x20]
push edx
call esi
mov eax, dword [esp + 0x24]
push eax
call esi
mov ebx, 1
jmp 0x410687
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [esp + 0xc]
push edx
call esi
pop ebp
mov eax, dword [esp + 0x10]
push eax
call esi
mov eax, ebx
pop esi
pop ebx
add esp, 0x478
ret
mov eax, ebx
pop ebx
add esp, 0x478
ret