joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10050ce
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0x14
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
xor ebp, ebp
cmp esi, ebp
jne 0x1005114
push ebp
push 0x10
push ebp
push ebp
push 0x4b5
push ebp
call fcn.01003e44
call fcn.010058e9
mov dword [0x100b704], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x10014e4
push esi
call fcn.01005c38
push ebp
push 0x4000080
push 1
push ebp
push ebp
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp edi, 0xffffffff
je 0x1005101
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1005101
test al, 0x10
je 0x1005101
push 1
mov dword [0x100b704], ebp
pop eax
jmp 0x100510d
Function at 0x100516d
Capabilities:
Get common file path
Get disk information
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov dword [ebp - 4], ebx
je 0x100535e
lea eax, [ebp - 0x118]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call esi
test eax, eax
jne 0x10051c7
push ebx
push 0x10
push ebx
push ebx
push 0x4bc
push ebx
call fcn.01003e44
call fcn.010058e9
mov dword [0x100b704], eax
jmp 0x10052e9
lea eax, [ebp - 4]
push eax
push ebx
call fcn.01005f27
mov edi, eax
cmp edi, ebx
jne 0x100522c
push 0x7f
xor eax, eax
pop ecx
lea edi, [ebp - 0x317]
mov byte [ebp - 0x318], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.010058e9
mov dword [0x100b704], eax
push ebx
lea eax, [ebp - 0x318]
push 0x200
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push ebx
lea eax, [ebp - 0x318]
push 0x10
push eax
push dword [ebp + 8]
push 0x4b0
jmp 0x1005295
push ebx
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x10052a6
push 0x7f
lea edi, [ebp - 0x317]
pop ecx
mov byte [ebp - 0x318], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.010058e9
mov dword [0x100b704], eax
push ebx
lea eax, [ebp - 0x318]
push 0x200
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push ebx
lea eax, [ebp - 0x318]
push 0x10
push eax
push dword [ebp + 8]
push 0x4f9
push ebx
call fcn.01003e44
lea eax, [ebp - 0x118]
push eax
call esi
jmp 0x10052e9
lea eax, [ebp - 0x118]
push eax
call esi
push 3
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, 0x200
xor eax, eax
cmp dword [ebp - 4], ecx
je 0x10052d3
shl ecx, 1
inc eax
cmp ax, 8
jb 0x10052c5
cmp ax, 8
jne 0x10052ed
push ebx
push 0x10
push ebx
push ebx
push 0x4c5
push ebx
call fcn.01003e44
xor eax, eax
jmp 0x1005361
test byte [0x100b6d4], 8
je 0x1005317
test byte [ebp - 0xf], 0x80
je 0x1005317
mov edx, dword [0x100b6d8]
movzx eax, ax
mov ecx, edx
mov eax, dword [eax*4 + 0x100b6e0]
shr ecx, 2
shl eax, 1
add ecx, edx
jmp 0x1005327
mov ecx, dword [0x100b6d8]
movzx eax, ax
mov eax, dword [eax*4 + 0x100b6e0]
mov esi, dword [ebp + 0xc]
and esi, 1
je 0x100533c
test byte [ebp + 0xc], 2
je 0x100533c
lea edx, [ecx + eax]
cmp edx, edi
jmp 0x1005346
cmp esi, ebx
je 0x1005344
cmp eax, edi
jmp 0x1005346
cmp ecx, edi
jbe 0x1005358
lea edx, [ebp - 0xc]
push edx
push ecx
push eax
push dword [ebp + 0x10]
call fcn.010023ea
jmp 0x1005361
mov dword [0x100b704], ebx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x100589a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp - 0x104]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x10058d7
push eax
push 0x10
push eax
push eax
push 0x4f0
push eax
call fcn.01003e44
call fcn.010058e9
mov dword [0x100b704], eax
xor eax, eax
leave
ret
push 2
lea eax, [ebp - 0x104]
push 2
push eax
call fcn.0100516d
leave
ret

Function at 0x1005908
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x24]
push edi
push 0x10013a8
push eax
mov dword [ebp - 8], 1
mov dword [ebp - 4], edi
call ebx
add esp, 0xc
lea eax, [ebp - 0x24]
push 0xa
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x10059d1
jmp 0x100594b
xor edi, edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, edi
je 0x10059b7
mov eax, dword [esi]
lea edi, [esi + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 4]
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [eax + edi + 1]
push eax
push edi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [ebp + 8]
test eax, eax
je 0x10059c6
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
inc dword [ebp - 4]
lea eax, [ebp - 0x24]
push dword [ebp - 4]
push 0x10013a8
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x24]
push 0xa
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x1005949
jmp 0x10059d1
mov dword [0x100b704], 0x80070714
mov dword [ebp - 8], edi
jmp 0x10059d1
and dword [ebp - 8], 0
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1005ab6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp - 0x104]
push 0x100ae84
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.01005c38
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1005b09
test al, 0x10
jne 0x1005b09
push 8
lea eax, [ebp - 0x104]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x1005b12
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
leave
ret 4

Function at 0x1005be8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1005bfb
xor eax, eax
jmp 0x1005c03
not eax
shr eax, 4
and eax, 1
ret 4
Function at 0x1005dd9
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
and dword [ebp - 8], 0
cmp dword [0x100a308], 0xfffffffe
push edi
mov dword [ebp - 0xc], 0xc
jne 0x1005ecb
and dword [0x100a308], 0
lea eax, [ebp - 0xb0]
push eax
mov dword [ebp - 0xb0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1005ecb
cmp dword [ebp - 0xa0], 1
jne 0x1005ecb
cmp dword [ebp - 0xac], 4
jne 0x1005ecb
cmp dword [ebp - 0xa8], 0xa
jae 0x1005ecb
push 0x4a
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x1005ecb
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x1001500
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1005ecb
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x10012fc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x1005ecb
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.01005cd0
test eax, eax
je 0x1005ecb
mov eax, dword [ebp - 8]
and eax, 0x3ff
cmp eax, 1
je 0x1005ec1
cmp eax, 0xd
jne 0x1005ecb
mov dword [0x100a308], 1
mov eax, dword [0x100a308]
pop edi
leave
ret

Function at 0x1005ed3
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
cmp byte [ecx], al
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
je 0x1005f09
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x1005f0d
xor eax, eax
jmp 0x1005f23
mov eax, dword [ebp - 8]
push 0x400
imul eax, dword [ebp - 0xc]
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
leave
ret 4

Function at 0x10071ae
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov eax, esi
shr eax, 2
push edi
mov edi, eax
dec eax
test edi, edi
jle 0x10071ee
lea edi, [eax + 1]
movzx eax, byte [ecx]
inc ecx
xor ebx, ebx
mov bh, byte [ecx]
or eax, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or eax, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or eax, ebx
inc ecx
xor edx, eax
dec edi
jne 0x10071cc
and esi, 3
xor eax, eax
dec esi
je 0x100720a
dec esi
je 0x1007203
dec esi
jne 0x100720f
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor ebx, ebx
mov bh, byte [ecx]
or eax, ebx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
pop edi
pop esi
xor eax, edx
pop ebx
ret 0xc
Function at 0x40405c
Capabilities:
Delete file
Get file size
Move file

Disassembly:
mov eax, 0x402619
call fcn.00403e40
sub esp, 0x1c
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x1c]
call fcn.00403f64
and dword [esp + 0x2c], 0
cmp byte [esp + 0x20], 0
jne fcn.0040408a
or edi, 0xffffffff
jmp 0x404233

Function at 0x40408a
Capabilities:
Delete file
Get file size
Move file

Disassembly:
push ebx
or ebx, 0xffffffff
push ebp
mov edi, ebx
jmp 0x404096
or ebx, 0xffffffff
cmp edi, ebx
jne 0x40410f
push ebx
push dword [esi + 0x1e2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
je 0x4041e7
lea eax, [esi + 0xc]
push eax
lea edi, [esi + 0x1c20]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [esp + 0x40]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
push 0x80
push 4
push 0
push 5
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, ebx
jne 0x40410f
push dword [esi + 0x1e2c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x4041e7
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40409a
mov ebp, dword [esi + 0x1e2c]
mov dword [esp + 0x10], ebp
mov byte [esp + 0x34], 1
xor eax, eax
push 2
push eax
push eax
push eax
push edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x4041d4
mov eax, dword [esi + 4]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
push eax
push edi
mov bl, 1
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4041be
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp ecx, eax
jl 0x4041be
jg 0x40416b
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x1c]
jbe 0x4041be
lea eax, [esi + 0x1c20]
push eax
lea ebx, [esi + 0x1a16]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push fcn.004044bc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2 + 0x1a10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
lea eax, [esi + 0x1c20]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x4041eb
push edi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or edi, 0xffffffff
and byte [esp + 0x34], 0
push ebp
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test bl, bl
je 0x404093
jmp 0x404231
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and byte [esp + 0x34], 0
push ebp
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edi, ebx
jmp 0x404231
push 0
push 2
xor eax, eax
push eax
push dword [esp + 0x28]
call fcn.0040377c
mov ecx, dword [esp + 0x18]
cmp ecx, edx
jg 0x40421b
jl 0x40420d
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jae 0x40421b
and byte [esp + 0x34], 0
push ebp
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x404231
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and byte [esp + 0x34], 0
push ebp
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
or edi, 0xffffffff
pop ebp
pop ebx
or dword [esp + 0x2c], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00403d58
mov ecx, dword [esp + 0x24]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x404254
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4045a7
call fcn.00403e40
sub esp, 0x78
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ebx, ecx
xor esi, esi
mov dword [ebp - 4], esi
cmp byte [ebp + 8], 0x38
jb 0x404278
and byte [ebp + 8], 0
movsx eax, byte [ebp + 8]
push dword [eax*4 + 0x44d070]
mov ecx, ebx
call fcn.0040405c
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x4043f0
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
push 0xffffffffffffffff
push dword [ebx + 0x1e2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x4042c6
mov dword [ebp - 0x1c], esi
mov eax, dword [ebx + 0x1e2c]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 2
push esi
call dword [sym.imp.MSVCRT.dll_time]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.MSVCRT.dll_localtime]
pop ecx
pop ecx
mov dword [ebp - 0x2c], eax
cmp eax, esi
je 0x40431d
push eax
call dword [sym.imp.MSVCRT.dll_asctime]
pop ecx
lea edx, [ebp - 0x6c]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x4042fe
lea eax, [ebp - 0x6c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40430e
sub eax, edx
and byte [ebp + eax - 0x6d], cl
jmp 0x404328
mov esi, fcn.004052dc
lea edi, [ebp - 0x6c]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea esi, [ebx + 0x216]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0x404b43
push esi
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
mov eax, esi
lea edi, [eax + 1]
xor eax, eax

Function at 0x40434d
Capabilities:
Write file on windows

Disassembly:
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00403f50
mov eax, esi
jmp 0x4043f2
mov cl, byte [eax]
inc eax
test cl, cl
jne fcn.0040434d
sub eax, edi
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp + 0x10]
push dword [ecx]
push dword [ebp + 0xc]
mov ecx, 0x7ff
sub ecx, eax
push ecx
lea eax, [eax + ebx + 0x216]
push eax
call dword [sym.imp.MSVCRT.dll__vsnprintf]
add esp, 0x10
and byte [ebx + 0xa15], 0
and dword [ebp - 0x74], 0
mov dword [ebp - 0x78], esi
lea eax, [ebx + 0xa16]
mov dword [ebp - 0x7c], eax
mov cl, byte [esi]
test cl, cl
je 0x4043b9
cmp cl, 0xa
jne 0x4043aa
mov byte [eax], 0xd
inc eax
mov dword [ebp - 0x7c], eax
inc dword [ebp - 0x74]
mov byte [eax], cl
jmp 0x4043ac
mov byte [eax], cl
inc esi
mov dword [ebp - 0x78], esi
inc eax
mov dword [ebp - 0x7c], eax
inc dword [ebp - 0x74]
jmp 0x404391
and byte [eax], 0
push 0
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x74]
add ebx, 0xa16
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
inc esi
mov dword [ebp - 0x84], esi
mov byte [ebp - 4], 1
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x4042b3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4047e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
and dword [ebp - 8], 0
and dword [ebp - 4], 0
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
mov dword [ebp - 0xc], 0x19
je 0x40484e
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 8]
push ecx
push 0
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov dword [esi + 0xc], eax
jne 0x40484e
cmp dword [ebp - 8], 1
jne 0x40484e
push 0xa
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.MSVCRT.dll_wcstoul]
mov ecx, dword [ebp + 0xc]
add esp, 0xc
cmp dword [ebp - 4], 0
mov dword [ecx], eax
je 0x40484e
lea eax, [ebp - 0x40]
cmp dword [ebp - 4], eax
je 0x40484e
xor eax, eax
jmp 0x404851
xor eax, eax
inc eax
pop esi
leave
ret 8

Function at 0x404858
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x3c]
push fcn.00409be0
push eax
mov esi, ecx
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0xc
cmp dword [esi + 4], 0
jne 0x404881
xor eax, eax
inc eax
jmp 0x4048b1
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x3c]
push eax
push 1
push 0
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ecx, ecx
test eax, eax
setne cl
mov dword [esi + 0xc], eax
mov eax, ecx
pop esi
leave
ret 8

Function at 0x404cfc
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push 0x406e55
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [esi], eax
jne 0x404d18
mov eax, 0x8004100c
pop esi
ret
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, 0x409d50
push ebx
push eax
call edi
test eax, eax
mov dword [esi + 4], eax
jne 0x404d37
mov eax, 0x8004100c
jmp 0x404d9d
push 0x4023a5
push dword [esi]
call edi
test eax, eax
mov dword [esi + 0xc], eax
je 0x404d30
push 0x40534a
push dword [esi]
call edi
test eax, eax
mov dword [esi + 8], eax
je 0x404d30
push ebx
push dword [esi]
call edi
test eax, eax
mov dword [esi + 4], eax
je 0x404d30
push 0x401eac
push dword [esi]
call edi
test eax, eax
mov dword [esi + 0x10], eax
je 0x404d30
push 0x401dea
push dword [esi]
call edi
test eax, eax
mov dword [esi + 0x14], eax
je 0x404d30
push 0x4067d3
push dword [esi]
call edi
mov dword [esi + 0x18], eax
neg eax
sbb eax, eax
and eax, 0x7ffbeff4
add eax, 0x8004100c
pop edi
pop ebx
pop esi
ret
Function at 0x404d37
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push 0x406e55
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [esi], eax
jne 0x404d18
mov eax, 0x8004100c
pop esi
ret
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, 0x409d50
push ebx
push eax
call edi
test eax, eax
mov dword [esi + 4], eax
jne 0x404d37
mov eax, 0x8004100c
jmp 0x404d9d
push 0x4023a5
push dword [esi]
call edi
test eax, eax
mov dword [esi + 0xc], eax
je 0x404d30
push 0x40534a
push dword [esi]
call edi
test eax, eax
mov dword [esi + 8], eax
je 0x404d30
push ebx
push dword [esi]
call edi
test eax, eax
mov dword [esi + 4], eax
je 0x404d30
push 0x401eac
push dword [esi]
call edi
test eax, eax
mov dword [esi + 0x10], eax
je 0x404d30
push 0x401dea
push dword [esi]
call edi
test eax, eax
mov dword [esi + 0x14], eax
je 0x404d30
push 0x4067d3
push dword [esi]
call edi
mov dword [esi + 0x18], eax
neg eax
sbb eax, eax
and eax, 0x7ffbeff4
add eax, 0x8004100c
pop edi
pop ebx
pop esi
ret

Function at 0x405944
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4077e0
call fcn.00403e40
sub esp, 0x218
push ebx
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x224]
mov ebx, ecx
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x405a84
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0x10
test eax, eax
jne 0x405a84
push edi
push esi
lea ecx, [ebp - 0x10]
call fcn.00404f24
and dword [ebp - 4], 0
push esi
lea ecx, [ebp - 0x18]
call fcn.00404f24
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x10]
test esi, esi
mov edi, dword [ebp - 0x18]
je 0x405a59
test edi, edi
je 0x405a59
push dword [ebp + 8]
push esi
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
pop ecx
push edi
push esi
mov ecx, ebx
call fcn.00405910
test eax, eax
je 0x405a59
push edi
push esi
mov ecx, ebx
call fcn.00405910
test eax, eax
je 0x405a59
push edi
call dword [sym.imp.MSVCRT.dll__wtoi]
pop ecx
mov ecx, dword [ebp + 0xc]
push edi
mov word [ecx], ax
push esi
mov ecx, ebx
call fcn.00405910
test eax, eax
je 0x405a59
mov esi, dword [sym.imp.MSVCRT.dll__wcsicmp]
push edi
mov ebx, 0x401a21
push ebx
call esi
test eax, eax
pop ecx
pop ecx
je 0x405a55
push edi
push fcn.00407ed8
call esi
test eax, eax
pop ecx
pop ecx
jne 0x405a59
mov ecx, dword [ebp - 0x1c]
push edi
push dword [ebp - 0x10]
call fcn.00405910
test eax, eax
je 0x405a59
push edi
push ebx
call esi
test eax, eax
pop ecx
pop ecx
jne 0x405a59
and dword [ebp - 0x14], 0
and byte [ebp - 4], 0
test edi, edi
je 0x405a68
push edi
call fcn.00403e38
pop ecx
and dword [ebp - 0x18], 0
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], 0
pop edi
je 0x405a80
push dword [ebp - 0x10]
call fcn.00403e38
pop ecx
and dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x40608c
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x40744a
call fcn.00403e40
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov ebx, ecx
mov esi, 0x10000
je 0x40610f
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp + 8], eax
mov dword [ebp - 4], edi
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x14]
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov edx, dword [ecx]
push edi
push eax
push esi
push dword [ebp + 8]
push ecx
call dword [edx + 0x28]
mov edi, eax
test edi, edi
je 0x4060f8
cmp edi, 0x80041002
je 0x4060f6
push edi
push 0x4054b3
push 0xa
call fcn.00404404
add esp, 0xc
push dword [ebp + 0x10]
call fcn.004053fc
jmp 0x4060f8
xor edi, edi
or dword [ebp - 4], 0xffffffff
cmp dword [ebp + 8], 0
je 0x40610b
push dword [ebp + 8]
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test edi, edi
jne 0x40615c
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x14]
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov edx, dword [ecx]
push 0
push eax
push esi
push dword [ebp + 0xc]
push ecx
call dword [edx + 0x40]
mov edi, eax
test edi, edi
je 0x40615c
cmp edi, 0x80041002
je 0x40615c
push 0x409731
push 0xa
call fcn.00404404
pop ecx
pop ecx
push dword [ebp + 0xc]
call fcn.004053fc
push edi
push fcn.0040713c
push 0xa
call fcn.00404404
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x407795
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x405e64
call fcn.00403e40
sub esp, 0x20
cmp dword [ebp + 8], 0
push esi
mov esi, ecx
push edi
mov edi, 0x80041001
lea eax, [esi + 0x54]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
je 0x4077c3
push 0
push 0x200
call fcn.0040713c
test eax, eax
jne 0x4077c3
mov eax, edi
jmp 0x4079c1
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 4]
push ebx
call fcn.00408148
test eax, eax
mov dword [ebp + 8], eax
je 0x4079bd
mov ebx, dword [sub.MSVCRT.dll_void___cdecl_operator_delete_void__]

Function at 0x4078fe
Capabilities:
Check for time delay via gettickcount

Disassembly:
lea eax, [ebp - 0x2c]
push eax
push edi
mov ecx, esi
call fcn.00405f30
mov dword [ebp - 0x10], eax