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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
push ebx
xor ebx, ebx
push edi
mov edi, ebx
cmp dword [eax + 0x10], ebx
je 0x4b0e10
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x10], ebx
je 0x4b0e0f
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x4b0d2e
mov eax, dword [esi]
lea ecx, [ebp - 0xc]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
test eax, eax
je 0x4b0e0f
push 0x6b68e8
push eax
call fcn.00410535
mov dword [ebp - 4], eax
pop ecx
pop ecx
test eax, eax
je 0x4b0e0f
cmp dword [esi + 0x14], 0x10
jb 0x4b0d63
mov esi, dword [esi]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push esi
call sub.VERSION.dll_GetFileVersionInfoA
mov esi, dword [ebp - 4]
test eax, eax
je 0x4b0dfd
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4b0dfd
mov eax, dword [ebp - 0x10]
push 0x6b68e8
push 0x80
movzx ecx, word [eax]
movzx eax, word [eax + 2]
shl ecx, 0x10
or ecx, eax
mov dword [ebp - 8], ecx
call fcn.00410535
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4b0dfd
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x4b0dc6
mov eax, dword [eax]
push eax
push dword [ebp - 8]
push str.StringFileInfo_08lx_s
push 0x80
push edi
call fcn.004014f8
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4b0dfb
push dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
call fcn.00403b27
mov bl, 1
push esi
call fcn.00410335
pop ecx
test edi, edi
je 0x4b0e0f
push edi
call fcn.00410335
pop ecx
pop esi
pop edi
mov al, bl
pop ebx
leave
ret
Function at 0x4b0e2e
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push 0x2b4
mov eax, 0x61c8aa
call fcn.004107f4
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x40]
push esi
call fcn.00402e79
mov ecx, dword [ebp - 0x30]
xor ebx, ebx
mov dword [ebp - 4], ebx
test ecx, ecx
je 0x4b0fbe
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x4b0e8c
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
cmp word [eax + ecx*2 - 2], 0x2f
je 0x4b0e8c
push 0x699108
lea ecx, [ebp - 0x40]
call fcn.00402da2
lea eax, [ebp - 0x40]
mov dword [ebp - 0x60], ebx
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], ebx
call fcn.00403a71
push 0x62f444
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.00402da2
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x2c0]
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4b0fb6
xor eax, eax
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x294]
mov dword [ebp - 0x14], 7
push eax
call fcn.00402d7b
push 0x621d24
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004b1066
test al, al
jne 0x4b0f78
push 0x62f44c
lea ecx, [ebp - 0x28]
call fcn.004b1066
test al, al
jne 0x4b0f78
lea eax, [ebp - 0x40]
mov dword [ebp - 0x48], ebx
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], ebx
call fcn.00403a71
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x58]
push eax
mov byte [ebp - 4], 3
call fcn.004039d3
test byte [ebp - 0x2c0], 0x10
lea eax, [ebp - 0x58]
je 0x4b0f61
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.004b0e2e
jmp 0x4b0f6f
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.004b0e16
pop ecx
lea ecx, [ebp - 0x58]
call fcn.0040390c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0040390c
lea eax, [ebp - 0x2c0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4b0ed3
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4b0fb6
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x70]
call fcn.0040390c
lea ecx, [ebp - 0x40]
call fcn.0040390c
call fcn.0041079e
ret

Function at 0x4b1190
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 0x10], 0
je 0x4b11a6
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004b12fd
pop ecx
pop ecx
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x4b11c8
cmp esi, 2
je 0x4b11c8
xor al, al
jmp 0x4b11ca
mov al, 1
pop esi
pop ebp
ret
Function at 0x4b11cd
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x61c920
call fcn.004107c0
and dword [ebp - 0x20], 0
xor eax, eax
mov ebx, dword [ebp + 8]
and dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
and dword [ebp - 4], eax
push 0x208
mov dword [ebp - 0x20], 1
call fcn.00543b71
mov edx, eax
xor eax, eax
pop ecx
mov ecx, 0x82
mov dword [ebp - 0x14], edx
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, 0x20019
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x18]
push eax
push edi
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x4b12d3
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x104
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x4b12ca
cmp dword [ebp - 0x10], 0x104
jbe 0x4b129b
push dword [ebp - 0x14]
call fcn.00410335
mov eax, dword [ebp - 0x10]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00543b71
mov edi, eax
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x14], edi
push eax
push esi
push edi
call fcn.00401476
add esp, 0x14
jmp 0x4b129e
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push edi
push 0
push 0
push dword [ebp + 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov ecx, ebx
mov esi, eax
push edi
call fcn.00403985
push edi
call fcn.00410335
mov edi, dword [ebp - 0x1c]
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
pop eax
cmp esi, eax
jne 0x4b12f5
cmp dword [ebp + 0xc], reloc.OLEAUT32.dll_SysReAllocString
jne 0x4b12f5
cmp edi, 0x20019
jne 0x4b12f5
mov edi, 0x20119
jmp 0x4b121a
mov eax, ebx
call fcn.00410789
ret
Function at 0x4b1d6e
Capabilities:
Create process on windows

Disassembly:
push 0x8c
mov eax, 0x61c9e9
call fcn.004107f4
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
push 0x44
pop edi
push edi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x98]
push esi
push eax
call fcn.004cd760
mov dword [ebp - 0x98], edi
xor eax, eax
lea edi, [ebp - 0x54]
mov dword [ebp - 0x18], esi
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
push 7
pop ecx
mov dword [ebp - 0x14], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp - 0x28], ax
mov dword [ebp - 4], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 1
test eax, eax
je 0x4b1e1c
push eax
lea ecx, [ebp - 0x40]
call fcn.00402d7b
cmp dword [ebp - 0x30], esi
je 0x4b1e1c
push 0x624980
lea ecx, [ebp - 0x28]
call fcn.00402d7b
push ebx
lea ecx, [ebp - 0x28]
call fcn.00402da2
push 0x62f4b8
lea ecx, [ebp - 0x28]
call fcn.00402da2
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
call fcn.004039d3
jmp 0x4b1e25
push ebx
lea ecx, [ebp - 0x28]
call fcn.00402d7b
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x98]
push ecx
push esi
push esi
push esi
push 1
push esi
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4b1e56
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4b1e84
cmp byte [ebp + 0x10], 0
je 0x4b1e71
or eax, 0xffffffff
cmp dword [ebp + 0x14], 0
cmovg eax, dword [ebp + 0x14]
push eax
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x54]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x50]
call esi
xor esi, esi
inc esi
lea ecx, [ebp - 0x40]
call fcn.0040390c
lea ecx, [ebp - 0x28]
call fcn.0040390c
mov eax, esi
call fcn.0041079e
ret
Function at 0x4b2083
Capabilities:
Get disk information
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x6ab06c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x6977a4
mov dword [ebp - 0x440], eax
call fcn.00402d7b
push 0x20a
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004cd760
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x105
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x4b2127
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
test edi, edi
je 0x4b2127
xor ecx, ecx
lea esi, [edi + 1]
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00543b71
mov ebx, eax
xor eax, eax
push esi
push eax
push ebx
call fcn.004cd760
add esp, 0x10
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x4b2138
push ebx
call fcn.00410335
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040fc89
leave
ret
mov eax, dword [0x62f4b0]
mov dword [ebp - 0xc], eax
mov ax, word [0x62f4b4]
push 0x208
mov word [ebp - 8], ax
call fcn.00543b71
mov edi, eax
mov dword [ebp - 0x43c], ebx
movzx eax, word [ebx]
pop ecx
push 0x104
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x4b21ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4b224c
push edi
call fcn.00410335
push 2
call fcn.00543b71
pop ecx
pop ecx
mov edi, eax
lea eax, [ebp - 0xc]
push 1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4b224c
mov esi, edi
xor edx, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x4b21b4
sub esi, ecx
lea eax, [ebp - 0x218]
sar esi, 1
push esi
push edi
push eax
call fcn.004e5a6d
add esp, 0xc
test eax, eax
je 0x4b21fc
mov esi, dword [ebp - 0x43c]
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x4b21de
movzx eax, word [esi]
mov dword [ebp - 0x43c], esi
test ax, ax
je 0x4b224c
jmp 0x4b2160
lea eax, [ebp - 0x218]
lea eax, [eax + esi*2]
push eax
lea eax, [ebp - 0xc]
push eax
push str._s_s
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.004b1d52
add esp, 0x14
lea eax, [ebp - 0x420]
lea ecx, [ebp - 0x438]
push eax
call fcn.00402e79
mov ecx, dword [ebp - 0x440]
push eax
call fcn.00402e0f
lea ecx, [ebp - 0x438]
call fcn.0040390c
push ebx
call fcn.00410335
push edi
call fcn.00410335
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x4b2129
Function at 0x4b2262
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x6ab06c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4b22e8
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.004cd760
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4b22e8
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x4b22dd
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004dc907
pop ecx
pop ecx
test eax, eax
je 0x4b22f8
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4b22bd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040fc89
leave
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x228]
jmp 0x4b22ea

Function at 0x4b2590
Capabilities:
Terminate process

Disassembly:
push 0x20
mov eax, 0x61c5ee
call fcn.004107f4
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
push eax
push 0
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4b261b
cmp esi, 0xffffffff
je 0x4b261b
and dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
and dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.004b2083
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push edi
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004b246c
add esp, 0x10
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.0040390c
test bl, bl
je 0x4b261b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x4b261b
cmp byte [ebp + 0x14], 0
je 0x4b261b
push 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
and dword [ebp - 0x2c], 0
test esi, esi
je 0x4b2639
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x4b2639
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
call fcn.0041079e
ret
Function at 0x4b2641
Capabilities:
Check if file exists
Enumerate processes
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x6ab06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4b26ec
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4b26ec
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4b26ec
push edi
xor edi, edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push ebx
push eax
push dword [ebp - 0x228]
call fcn.004b2590
add esp, 0x10
test al, al
je 0x4b26b4
inc edi
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4b2696
test edi, edi
jle 0x4b26e7
push str.Shell_TrayWnd
push eax
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, dword [sym.imp.USER32.dll_UpdateWindow]
push eax
call esi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call esi
mov eax, edi
pop edi
jmp 0x4b26ef
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040fc89
leave
ret

Function at 0x4b31ee
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, 0xe3
push edi
lea edi, [esi + 0x9c4]
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x4b3200
lea edi, [esi + 0xd50]
mov ebx, 0x18c
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd4c]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x4b3245
mov ecx, dword [esi + 0x1380]
xor ecx, dword [esi + 4]
and ecx, 0x7fffffff
xor ecx, dword [esi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
and dword [esi], 0
pop esi
pop ebx
ret

Function at 0x4b32b9
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
lea edx, [ecx + 8]
mov esi, 0x270
mov ecx, dword [edx - 4]
xor ecx, dword [edx]
lea edx, [edx + 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x4b32c2
pop esi
ret
Function at 0x4b32fa
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ecx + 4], edx
push edi
inc esi
lea edi, [ecx + 8]
mov ebx, 0x270
mov eax, edx
shr eax, 0x1e
xor edx, eax
imul edx, dword [ebp + 0xc]
add edx, esi
inc esi
mov dword [edi], edx
lea edi, [edi + 4]
cmp esi, ebx
jl 0x4b3311
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
pop ebp
ret 8

Function at 0x4b364f
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
xor edx, edx
push 2
mov byte [ebp - 1], dl
pop ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, ebx
cmp ax, dx
jne 0x4b3664
push dword [ebp + 8]
sub edi, ecx
sar edi, 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4b3686
mov al, 1
jmp 0x4b3717
push esi
xor ecx, ecx
lea esi, [edi + 1]
mov eax, esi
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00543b71
push esi
mov ebx, eax
push 0
push ebx
call fcn.00401476
push dword [ebp + 8]
push esi
push ebx
call fcn.004da108
add esp, 0x1c
xor esi, esi
movzx eax, word [ebx + esi*2]
cmp eax, 0x5c
je 0x4b36c5
cmp eax, 0x2f
jne 0x4b3701
mov dword [ebp - 8], eax
xor eax, eax
push ebx
mov word [ebx + esi*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4b36fa
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4b3708
mov eax, dword [ebp + 0xc]
mov byte [ebp - 1], 1
cmp dword [eax + 0x24], 0
je 0x4b36fa
push ebx
mov ecx, eax
call fcn.004b3632
mov eax, dword [ebp - 8]
mov word [ebx + esi*2], ax
inc esi
cmp esi, edi
jbe 0x4b36b7
jmp 0x4b370c
mov byte [ebp - 1], 0
push ebx
call fcn.00410335
mov al, byte [ebp - 1]
pop ecx
pop esi
pop edi
pop ebx
leave
ret

Function at 0x4b38bc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6ab06c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], esi
push edi
push eax
call fcn.004cd760
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp + 0xc]
or eax, 0x8000
cmp byte [ebp + 0x10], 0
push edi
cmove eax, dword [ebp + 0xc]
push edi
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x4b3927
xor eax, eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x4b3935
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00402e79
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0040fc89
leave
ret
Function at 0x4b3945
Capabilities:
Get common file path

Disassembly:
push 0x214
mov eax, 0x61cd2c
call fcn.004107f4
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
xor edi, edi
mov dword [ebp - 0x220], esi
push 0x208
push edi
push eax
mov dword [ebp - 0x21c], edi
call fcn.004cd760
xor eax, eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 7
add esp, 0xc
mov word [esi], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], edi
push eax
push 0x104
mov dword [ebp - 0x21c], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00403985
mov eax, esi
call fcn.0041079e
ret

Function at 0x4b3d83
Capabilities:
Check if file exists

Disassembly:
push 0x70
mov eax, 0x61cdca
call fcn.004107f4
mov edi, ecx
mov eax, dword [ebp + 0x10]
push dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x78], eax
call fcn.004b3d14
and dword [ebp - 0x30], 0
lea ecx, [ebp - 0x40]
mov esi, eax
mov dword [ebp - 0x2c], 7
xor eax, eax
push str.UnKonw
mov word [ebp - 0x40], ax
call fcn.00402d7b
and dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
and dword [ebp - 0x48], 0
xor eax, eax
push str.UnKonw
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.00402d7b
mov byte [ebp - 4], 1
test esi, esi
je 0x4b3ea6
push esi
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.004b4182
push 0x6977a4
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004b1066
test al, al
je 0x4b3e34
push esi
lea eax, [ebp - 0x70]
mov ecx, edi
push eax
call fcn.004b4226
push eax
lea ecx, [ebp - 0x28]
call fcn.00402e0f
lea ecx, [ebp - 0x70]
call fcn.0040390c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4b3e9a
and dword [ebp - 0x30], 0
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x40]
call fcn.00402d7b
lea eax, [ebp - 0x58]
push eax
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
and dword [ecx + 0x10], 0
and dword [ecx + 0x14], 0
call fcn.00403a71
mov ecx, edi
call fcn.004b3c0c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0040390c
mov ecx, dword [ebp - 0x74]
lea eax, [ebp - 0x40]
push eax
mov dword [ebx], esi
call fcn.00402de6
mov ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x58]
push eax
call fcn.00402de6
lea ecx, [ebp - 0x58]
call fcn.0040390c
lea ecx, [ebp - 0x40]
call fcn.0040390c
call fcn.0041079e
ret 0x10
Function at 0x4b3fa2
Capabilities:
Get disk information
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa38
mov eax, dword [0x6ab06c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x6977a4
mov dword [ebp - 0xa38], eax
call fcn.00402d7b
push 0x20a
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004cd760
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x105
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x4b4046
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
test edi, edi
je 0x4b4046
xor ecx, ecx
lea esi, [edi + 1]
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00543b71
mov ebx, eax
xor eax, eax
push esi
push eax
push ebx
call fcn.004cd760
add esp, 0x10
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x4b4059
push ebx
call fcn.00410335
pop ecx
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040fc89
leave
ret 8
mov eax, dword [0x62f4b0]
mov dword [ebp - 0xc], eax
mov ax, word [0x62f4b4]
push 0x208
mov word [ebp - 8], ax
call fcn.00543b71
mov edi, eax
mov dword [ebp - 0xa34], ebx
movzx eax, word [ebx]
pop ecx
push 0x104
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x4b40ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4b416d
push edi
call fcn.00410335
push 2
call fcn.00543b71
pop ecx
pop ecx
mov edi, eax
lea eax, [ebp - 0xc]
push 1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4b416d
mov esi, edi
xor edx, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x4b40d5
sub esi, ecx
lea eax, [ebp - 0x218]
sar esi, 1
push esi
push edi
push eax
call fcn.004e5a6d
add esp, 0xc
test eax, eax
je 0x4b411d
mov esi, dword [ebp - 0xa34]
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x4b40ff
movzx eax, word [esi]
mov dword [ebp - 0xa34], esi
test ax, ax
je 0x4b416d
jmp 0x4b4081
lea eax, [ebp - 0x218]
lea eax, [eax + esi*2]
push eax
lea eax, [ebp - 0xc]
push eax
push str._s_s
lea eax, [ebp - 0xa18]
push 0x400
push eax
call fcn.004b1d52
add esp, 0x14
lea eax, [ebp - 0xa18]
lea ecx, [ebp - 0xa30]
push eax
call fcn.00402e79
mov ecx, dword [ebp - 0xa38]
push eax
call fcn.00402e0f
lea ecx, [ebp - 0xa30]
call fcn.0040390c
push ebx
call fcn.00410335
push edi
call fcn.00410335
pop ecx
pop ecx
mov al, 1
jmp 0x4b4048