joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ab20
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 0x40ab40
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 0x40ab7a
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.0040a820
test eax, eax
jne 0x40ab91
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 0x420cc0
mov ecx, esi
mov dword [esi + 0x28], edx
mov dword [esi + 0x2c], eax
call fcn.0040a9a0
test eax, eax
jne 0x40ac1b
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
lea edx, [esi + 0x33c]
push 0x104
push edx
push 0x420cb0
mov ecx, esi
call fcn.0040a9a0
test eax, eax
jne 0x40ac3e
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
lea eax, [esi + 0x238]
push 0x104
push eax
push 0x420ca4
mov ecx, esi
call fcn.0040a9a0
neg eax
sbb eax, eax
pop esi
pop ebp
pop ebx
neg eax
add esp, 0x34
ret
Function at 0x40b810
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 0x40c440
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 0x40c48c
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x490
ret
lea ecx, [esp + 0x44]
push ecx
call fcn.0040b810
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 0x40c4f3
mov eax, dword [esp + 0xc]
test eax, eax
jbe 0x40c4f3
lea ecx, [esp + 0x9c]
push eax
lea edx, [esp + 0x48]
push ecx
push edx
call fcn.0040b840
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 0x40c4ba
lea edx, [esp + 0x44]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.0040b8f0
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 0x40c512
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 0x40cc80
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.00413280
add esp, 0xc
test eax, eax
jne 0x40ccc8
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 0x40cd29
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.0040cda0
add esp, 8
test eax, eax
je 0x40ccbc
lea eax, [esp + 0x110]
push eax
call ebp
test eax, eax
je 0x40ccbc
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 0x40cd50
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.0040cda0
add esp, 8
test eax, eax
jne 0x40cd78
mov eax, dword [esp + 0x18]
push eax
push esi
push edi
call fcn.0040ce20
add esp, 0xc
call fcn.00403a40
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40cd98
push esi
call ebx
test eax, eax
jne 0x40cd98
push esi
push edi
call fcn.0040cc80
add esp, 8
push esi
call ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40cda0
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.00413300
add esp, 0xc
test eax, eax
pop edi
je 0x40ce0e
lea edx, [esp]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40ce0e
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 0x40ce20
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.00413280
add esp, 0xc
test eax, eax
je 0x40cfad
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.0040f910
add esp, 0x10
test eax, eax
je 0x40cfad
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.0040a4d0
push esi
call fcn.00413230
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 0x40cf81
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.0040ac90
lea eax, [esp + 0x534]
push 0x104
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.0040ac90
lea edx, [esp + 0x43c]
lea eax, [esp + 0x540]
push edx
push eax
call fcn.0040aec0
add esp, 0x20
test eax, eax
jg 0x40cf93
lea ecx, [esp + 0x118]
lea edx, [esp + 0x21c]
push ecx
push edx
jmp 0x40cfa0
lea eax, [esp + 0x118]
lea ecx, [esp + 0x14]
push eax
push ecx
push esi
call fcn.0040e4e0
add esp, 0xc
test eax, eax
jne 0x40cfba
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.00413300
add esp, 0xc
lea eax, [esp + 0x320]
push eax
call ebp
test eax, eax
je 0x40d025
lea ecx, [esp + 0x21c]
lea edx, [esp + 0x320]
push ecx
push edx
call sub.MSVCRT.dll__mbsicmp
add esp, 8
test eax, eax
je 0x40d025
lea eax, [esp + 0x320]
push ebx
push eax
call fcn.004023f0
add esp, 8
lea ecx, [esp + 0x118]
push ecx
push esi
call fcn.004132d0
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 0x40d0d0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x208
push ebp
push esi
push edi
call fcn.00403a40
test eax, eax
je 0x40d1c7
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 0x40d122
call fcn.00410de0
test al, al
je 0x40d122
lea eax, [esp + 0xc]
push 2
push eax
push 9
call fcn.0040cd50
add esp, 0xc
jmp 0x40d131
lea ecx, [esp + 0xc]
push ecx
push 9
call fcn.0040cc80
add esp, 8
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40d33f
mov ebp, dword [esp + 0x218]
cmp ebp, 1
jne 0x40d17e
mov esi, 0x420f10
xor edi, edi
call fcn.00403a40
test eax, eax
je 0x40d18d
call fcn.0040d350
test eax, eax
jne 0x40d341
push eax
lea eax, [esp + 0x10]
push esi
push eax
call fcn.004102f0
jmp 0x40d315
cmp ebp, 2
jne 0x40d199
mov esi, 0x420f0c
mov edi, 0x1388
push edi
lea ecx, [esp + 0x10]
push esi
push ecx
jmp 0x40d310
cmp ebp, 4
jne 0x40d1b4
mov edi, 0x1388
mov esi, 0x420f08
push edi
lea ecx, [esp + 0x10]
push esi
push ecx
jmp 0x40d310
xor edi, edi
mov esi, 0x422a38
push edi
lea ecx, [esp + 0x10]
push esi
push ecx
jmp 0x40d310
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 0x40d21e
call fcn.00410de0
test al, al
je 0x40d21e
lea edx, [esp + 0xc]
push 4
push edx
push 1
call fcn.0040cd50
add esp, 0xc
jmp 0x40d22d
lea eax, [esp + 0xc]
push eax
push 1
call fcn.0040cc80
add esp, 8
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40d33f
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 0x40d33f
mov ebp, dword [esp + 0x218]
cmp ebp, 3
jne 0x40d27a
lea ecx, [esp + 0xc]
mov ebp, 1
push ecx
push str._s_Rundll32_R
jmp 0x40d2eb
cmp ebp, 1
jne 0x40d28b
lea ecx, [esp + 0xc]
push ecx
push str._s_Rundll32_R
jmp 0x40d2eb
cmp ebp, 2
jne 0x40d2b6
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 0x40d302
cmp ebp, 4
jne 0x40d2e1
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 0x40d302
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.004046c0
add esp, 0xc
test eax, eax
jne 0x40d341
cmp dword [esp + 0x21c], 1
jne 0x40d341
cmp ebp, 3
jne 0x40d341
push eax
push ebp
call fcn.0040d0d0
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 0x40e4e0
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.00404540
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 0x40e54e
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 0x40e576
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 0x40f550
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 0x40f715
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x40f715
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 0x40f715
mov dword [esp + 0x10], ebx
test byte [esp + 0x3c], 0x10
jne 0x40f662
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 0x40f6d6
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x10]
add eax, ecx
mov dword [esp + 0x10], eax
jmp 0x40f6d6
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea edx, [esp + 0x68]
push 0x420568
push edx
call edi
test eax, eax
je 0x40f6d6
lea eax, [esp + 0x68]
push 0x420564
push eax
call edi
test eax, eax
je 0x40f6d6
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.0040f550
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 0x40f5e7
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 0x40f8c0
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.0040fed0
add esp, 0x14
test eax, eax
jne 0x40f8f8
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 0x40f910
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.00403a40
test eax, eax
je 0x40f95c
pop edi
xor eax, eax
pop ebx
add esp, 0x23c
ret
mov ecx, dword [esp + 0x254]
mov eax, dword [ecx]
cmp eax, 9
jl 0x40f995
push ecx
mov ecx, dword [esp + 0x24c]
lea eax, [esp + 0x144]
push 0x104
push eax
push ecx
call fcn.0040f8c0
add esp, 0x10
test eax, eax
jne 0x40f9ae
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.0040fed0
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.0040fe20
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 0x40fa10
cmp esi, 0x3e8
jl 0x40f9c4
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 0x40fed0
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
push esi
cmp eax, 0x64
push edi
ja case.0x40fee7.10
xor ecx, ecx
mov cl, byte [eax + 0x410098]
jmp dword [ecx*4 + 0x41006c]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.004101d0
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.00402180
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.00402180
add esp, 8
mov ecx, 0x422bb8
jmp 0x410052
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.004131f0
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.0x40fee7.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.004048f0
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.0x40fee7.10
mov ecx, 0x422ba8
call fcn.004048f0
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
push eax
push esi
call edi
mov ecx, 0x422b98
call fcn.004048f0
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.0x40fee7.10
mov ecx, 0x422b98
call fcn.004048f0
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 0x4101d0
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 0x41021f
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x41021f
pop edi
mov eax, 1
pop esi
pop ecx
ret
push edi
push 0x10
call fcn.004131f0
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 0x410470
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 0x410623
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 0x410611
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 0x410602
mov edx, dword [esp + 0x488]
lea ecx, [esp + 0x10]
push ecx
push edx
call eax
test eax, eax
je 0x410602
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 0x4105f7
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 0x4105f1
mov eax, dword [esp + 0x494]
cmp eax, ebx
jbe 0x4105dc
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 0x4105f7
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