joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b63b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41b69f
cmp dword [ebp + 0xc], 1
je 0x41b677
cmp dword [ebp + 0xc], 2
je 0x41b677
push 0xd
pop eax
jmp 0x41b69f
mov eax, dword [ebp - 4]
test edi, edi
je 0x41b699
test eax, eax
je 0x41b694
test al, 1
jne 0x41b672
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x41b699
jmp 0x41b672
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x427995
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a45dd
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4d7488]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push esi
mov eax, dword [0x4d7488]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
inc ebx
mov dword [esp + 0xc], eax
mov esi, 0x4de664
test byte [0x4de660], bl
jne 0x427a10
or dword [0x4de660], ebx
and dword [esp + 0x70], 0
push str.file:___
mov ecx, esi
call fcn.00403b1e
push 0x4acdbe
call fcn.00483113
pop ecx
or dword [esp + 0x70], 0xffffffff
push 0
push dword [esp + 0x10]
mov eax, esi
call fcn.0041b83f
cmp eax, 0xffffffff
je 0x427afd
push 0xffffffffffffffff
push dword [0x4de678]
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x18]
call fcn.00403b40
mov dword [esp + 0x70], ebx
cmp dword [esp + 0x5c], 8
mov eax, dword [esp + 0x48]
jae 0x427a4f
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x427aec
cmp dword [esp + 0x5c], 8
mov eax, dword [esp + 0x48]
jae 0x427a6d
lea eax, [esp + 0x48]
push eax
lea esi, [esp + 0x28]
call fcn.0042d1b0
mov byte [esp + 0x70], 2
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov byte [esp + 0x70], 3
push 0x16
pop eax
mov word [esp + 0x14], ax
mov dword [esp + 0x1c], 0x194
mov byte [esp + 0x70], 4
mov ebx, dword [esp + 0x10]
mov ecx, esi
call fcn.00427d56
mov byte [esp + 0x70], 3
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0x14]
push eax
call esi
mov byte [esp + 0x70], 2
lea eax, [esp + 0x34]
push eax
call esi
mov byte [esp + 0x70], 1
lea eax, [esp + 0x24]
push eax
call esi
or dword [esp + 0x70], 0xffffffff
push 0
push 1
lea ecx, [esp + 0x4c]
call fcn.00403ecf
xor al, al
jmp 0x427b0a
or dword [esp + 0x70], 0xffffffff
push 0
push ebx
lea ecx, [esp + 0x4c]
call fcn.00403ecf
push dword [esp + 0xc]
push dword [esp + 0x14]
call fcn.00427b29
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.0048297b
mov esp, ebp
pop ebp
ret 8
Function at 0x42d6fb
Capabilities:
Check mutex on windows

Disassembly:
push esi
push dword [esp + 8]
mov esi, eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push eax
call fcn.0040b7a8
cmp dword [esi], 0
je 0x42d728
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x42d728
mov byte [esi + 8], 1
pop esi
ret 4

Function at 0x42f697
Capabilities:
Get disk information

Disassembly:
push 0x2c
mov eax, 0x4a7b6a
call fcn.00486fc7
mov eax, edi
call fcn.00423a2e
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 7
call fcn.00403eb1
mov dword [ebp - 4], ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push ebx
push ebx
call esi
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x34], eax
call fcn.0042f756
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0042f72e
push eax
push dword [ebp - 0x34]
call esi
cmp eax, ebx
jne 0x42f704
mov byte [ebp - 0x2d], bl
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403ecf
mov al, byte [ebp - 0x2d]
call fcn.0048704a
ret
push eax
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0042f72e
mov ebx, edi
mov ecx, eax
call fcn.0043db70
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
pop ecx
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
seta byte [ebp - 0x2d]
xor ebx, ebx
jmp 0x42f6ec

Function at 0x430814
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xc
mov eax, 0x49a428
call fcn.00486f5e
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
xor ebx, ebx
cmp eax, ebx
je 0x430833
mov dword [ecx], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
cmp esi, 0xffffffff
jne 0x430865
or dword [ebp - 4], eax
push eax
jmp 0x4308e3
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp + 0xc], ebx
mov byte [ebp - 4], 1
push edi
lea eax, [ebp + 0xc]
push eax
call fcn.0042f797
push ebx
lea eax, [ebp - 0x10]
push eax
push edi
mov edi, dword [ebp + 0xc]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x4308cd
cmp dword [ebp - 0x10], ebx
je 0x4308cd
push dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
push edi
call fcn.004308f6
mov byte [ebp + 0xb], al
mov byte [ebp - 4], bl
push edi
call fcn.00482a4b
pop ecx
mov dword [ebp + 0xc], ebx
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x4308c8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], ebx
mov al, byte [ebp + 0xb]
jmp 0x4308ee
mov byte [ebp - 4], bl
push edi
call fcn.00482a4b
pop ecx
mov dword [ebp + 0xc], ebx
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x4308ec
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], ebx
xor al, al
call fcn.00487036
ret 8
Function at 0x4316cb
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push 0x54
mov eax, 0x4a4432
call fcn.00486f5e
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [esi]
cmp eax, ebx
je 0x431865
cmp dword [eax - 0xc], ebx
jge 0x4316f8
push 0x80070057
call fcn.00403856
cmp byte [eax], bl
je 0x431865
lea eax, [ebp - 0x10]
push eax
call fcn.004038ab
mov byte [ebp - 4], 1
push 0x4b7a5c
lea eax, [ebp - 0x18]
push eax
call fcn.00411bf8
mov byte [ebp - 4], 2
lea edi, [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.00443a20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00403833
push str..bat
mov eax, edi
push eax
call fcn.004315d3
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 3
cmp edi, 0xffffffff
jne 0x43177f
mov byte [ebp - 4], 1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x24], ebx
jmp 0x43185a
lea eax, [ebp - 0x18]
push eax
call fcn.00432112
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
call fcn.00432141
mov byte [ebp - 4], 5
mov eax, str._echo_off__r_nATTRIB__r___s___r_n:try__r_nrd___s___r_nif_exist___s__goto_try_r_nATTRIB__r___s___r_ndel___s___cls
cmp byte [esi + 5], bl
jne 0x4317ab
mov eax, str._echo_off__r_nATTRIB__r___s___r_n:try__r_ndel___s___r_nif_exist___s__goto_try_r_nATTRIB__r___s___r_ndel___s___cls
push dword [ebp - 0x14]
push dword [ebp - 0x14]
push dword [esi]
push dword [esi]
push dword [esi]
push eax
lea eax, [ebp - 0x18]
call fcn.004324f4
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax - 0xc]
add esp, 0x18
push ebx
lea edx, [ebp - 0x1c]
push edx
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [ebp - 4], 4
lea eax, [ebp - 0x14]
push eax
call fcn.004321a3
mov byte [ebp - 4], 3
lea eax, [ebp - 0x18]
push eax
call fcn.004321a3
mov byte [ebp - 4], 1
cmp edi, ebx
je 0x431803
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x24], ebx
cmp byte [esi + 4], bl
jne 0x43181c
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
push 0x4b38ec
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x43185a
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.00483240
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x50], eax
add esp, 0xc
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], 0x500
mov dword [ebp - 0x54], str.runas
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x44], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
call fcn.00403833
or dword [ebp - 4], 0xffffffff
push esi
call fcn.004321a3
call fcn.00487036
ret 4
Function at 0x4334cf
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x4334dd
push 0xd
pop eax
jmp 0x433510
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4334e4
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x43c2b0
Capabilities:
Create thread

Disassembly:
push 8
call fcn.00482dcf
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
add esp, 4
push 0
push 0
push eax
push 0x43c2e0
push 0
push 0
mov dword [eax], ecx
mov dword [eax + 4], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret

Function at 0x43eb60
Capabilities:
Delete file

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, eax
mov ebx, dword [esi + 0xc]
push edi
cmp ebx, dword [esi + 0x10]
jbe 0x43eb76
call fcn.00482bb3
mov ebp, dword [esi + 0x10]
mov edi, dword [esi]
cmp dword [esi + 0xc], ebp
jbe 0x43eb85
call fcn.00482bb3
mov eax, dword [esi]
mov dword [esp + 0x10], eax
jmp 0x43eb90
test edi, edi
je 0x43eb9a
cmp edi, dword [esp + 0x10]
je 0x43eb9f
call fcn.00482bb3
cmp ebx, ebp
je 0x43ebec
test edi, edi
jne 0x43ebe4
call fcn.00482bb3
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x43ebb8
call fcn.00482bb3
cmp dword [ebx + 0x18], 8
lea eax, [ebx + 4]
jb 0x43ebc3
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test edi, edi
jne 0x43ebe8
call fcn.00482bb3
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x43ebdf
call fcn.00482bb3
add ebx, 0x1c
jmp 0x43eb90
mov eax, dword [edi]
jmp 0x43ebae
mov eax, dword [edi]
jmp 0x43ebd5
mov ebp, dword [esi + 0x10]
cmp dword [esi + 0xc], ebp
jbe 0x43ebf9
call fcn.00482bb3
mov edi, dword [esi + 0xc]
mov ebx, dword [esi]
cmp edi, dword [esi + 0x10]
jbe 0x43ec08
call fcn.00482bb3
mov eax, dword [esi]
push ebp
push ebx
push edi
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.0043ef10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x43ec20
Capabilities:
Delete directory

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, eax
mov ebx, dword [esi + 0x10]
push edi
cmp dword [esi + 0xc], ebx
jbe 0x43ec36
call fcn.00482bb3
mov edi, dword [esi]
mov ebp, ebx
mov ebx, dword [esi + 0xc]
mov dword [esp + 0x14], ebx
cmp ebx, dword [esi + 0x10]
jbe 0x43ec4b
call fcn.00482bb3
mov eax, dword [esi]
mov dword [esp + 0x18], eax
test edi, edi
je 0x43ec5b
cmp edi, dword [esp + 0x18]
je 0x43ec60
call fcn.00482bb3
cmp ebp, ebx
je 0x43ecd3
mov dword [esp + 0x24], ebp
test edi, edi
jne 0x43eca0
call fcn.00482bb3
xor eax, eax
cmp ebp, dword [eax + 0xc]
ja 0x43ec7d
call fcn.00482bb3
lea ebx, [ebp - 0x1c]
test edi, edi
jne 0x43eca4
call fcn.00482bb3
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x43ec95
call fcn.00482bb3
cmp dword [ebx + 0x18], 8
jb 0x43eca8
mov eax, dword [ebx + 4]
jmp 0x43ecab
mov eax, dword [edi]
jmp 0x43ec73
mov eax, dword [edi]
jmp 0x43ec8b
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test edi, edi
jne 0x43eccf
call fcn.00482bb3
xor eax, eax
cmp ebp, dword [eax + 0xc]
ja 0x43ecc7
call fcn.00482bb3
mov ebp, ebx
mov ebx, dword [esp + 0x14]
jmp 0x43ec51
mov eax, dword [edi]
jmp 0x43ecbd
mov ebp, dword [esi + 0x10]
cmp dword [esi + 0xc], ebp
jbe 0x43ece0
call fcn.00482bb3
mov edi, dword [esi + 0xc]
mov ebx, dword [esi]
cmp edi, dword [esi + 0x10]
jbe 0x43ecef
call fcn.00482bb3
mov eax, dword [esi]
push ebp
push ebx
push edi
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.0043ef10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x43fd90
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4a1b8c
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x4d7488]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x5c]
push 1
lea eax, [esp + 0x18]
xor ebx, ebx
push eax
mov dword [esp + 0x18], ebx
call fcn.004405a0
mov dword [esp + 0x54], 1
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x20]
sar ecx, 1
jne 0x43fde5
call fcn.00482bb3
mov edx, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edx
push ebx
call esi
inc eax
lea ecx, [esp + 0x14]
call fcn.004407a0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, eax
sub edx, ecx
sar edx, 1
jne 0x43fe1a
call fcn.00482bb3
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
sub eax, ecx
sar eax, 1
push ecx
push eax
call esi
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
sub ecx, edx
sar ecx, 1
cmp eax, ecx
jbe 0x43fe4e
push edi
call fcn.0043f790
mov dword [esp + 0x10], 1
mov byte [esp + 0x54], bl
lea eax, [esp + 0x14]
push eax
jmp 0x43fed0
cmp ecx, ebx
ja 0x43fe5b
call fcn.00482bb3
mov edx, dword [esp + 0x20]
xor ecx, ecx
push edx
mov esi, edx
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], cx
call fcn.00482f7b
add esp, 4
push eax
push esi
lea ecx, [esp + 0x34]
call fcn.00403a8d
mov byte [esp + 0x54], 2
push edi
lea ecx, [esp + 0x30]
call fcn.0043f7f0
mov dword [esp + 0x10], 1
mov byte [esp + 0x54], 1
cmp dword [esp + 0x44], 8
jb 0x43feb4
mov edx, dword [esp + 0x30]
push edx
call fcn.00482970
add esp, 4
xor eax, eax
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], ax
mov byte [esp + 0x54], bl
lea ecx, [esp + 0x14]
push ecx
call fcn.00440610
mov eax, edi
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x48
ret
Function at 0x43fef0
Capabilities:
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4a4373
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x4d7488]
xor eax, esp
mov dword [esp + 0x24c], eax
push ebx
push ebp
push esi
mov eax, dword [0x4d7488]
xor eax, esp
push eax
lea eax, [esp + 0x264]
mov dword fs:[0], eax
lea eax, [esp + 0x38]
xor ebx, ebx
push eax
mov dword [esp + 0x38], edi
mov esi, ecx
mov dword [esp + 0x18], ebx
call fcn.0043fd90
add esp, 4
mov dword [esp + 0x26c], 1
mov ebp, 8
cmp dword [esi + 0x18], ebp
jb 0x43ff5d
mov esi, dword [esi + 4]
jmp 0x43ff60
add esi, 4
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x50], ebp
jae 0x43ff6e
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x54]
push ecx
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp byte [esp + 0x274], bl
je 0x43ff90
lea edx, [esp + 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x54]
xor eax, eax
mov esi, 7
push ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], ax
call fcn.00482f7b
add esp, 4
push eax
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x20]
call fcn.00403a8d
mov byte [esp + 0x26c], 2
push edi
lea ecx, [esp + 0x1c]
call fcn.0043f7f0
mov dword [esp + 0x14], 1
mov byte [esp + 0x26c], 1
cmp dword [esp + 0x30], ebp
jb 0x43fff5
mov eax, dword [esp + 0x1c]
push eax
call fcn.00482970
add esp, 4
xor ecx, ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], cx
mov dword [esp + 0x26c], ebx
cmp dword [esp + 0x50], ebp
jb 0x44001e
mov edx, dword [esp + 0x3c]
push edx
call fcn.00482970
add esp, 4
xor eax, eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], ax
mov eax, edi
mov ecx, dword [esp + 0x264]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24c]
xor ecx, esp
call fcn.0048297b
add esp, 0x260
ret
Function at 0x440dd0
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x2c0
mov eax, dword [0x4d7488]
xor eax, esp
mov dword [esp + 0x2bc], eax
push edi
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push 0x4011
push 0x2b4
lea eax, [esp + 0x14]
push eax
push 0x10
push 0x4b83ac
call edi
push 0x4011
push 0x2b4
lea ecx, [esp + 0x14]
push ecx
push 0x10
push str.C:FAKE_DIR_
mov dword [esi], eax
call edi
mov edx, dword [esp + 0x10]
push 0x4013
push 0x2b4
lea eax, [esp + 0x14]
push eax
push 0x10
push str.C:FAKE_DIR_
mov dword [esi + 4], edx
call edi
mov ecx, dword [esp + 0x10]
lea edx, [esp + 4]
push edx
push 0x11
push 0
mov dword [esi + 8], ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x440ead
mov ecx, dword [esp + 4]
push 0x4009
push 0x2b4
lea eax, [esp + 0x14]
push eax
push 0
push ecx
call edi
mov edx, dword [esp + 0x10]
lea eax, [esp + 8]
push eax
mov dword [esi + 0xc], edx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x440eb4
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, esi
pop edi
mov ecx, dword [esp + 0x2bc]
xor ecx, esp
call fcn.0048297b
add esp, 0x2c0
ret
mov dword [esi + 0xc], 0
mov ecx, dword [esp + 0x2c0]
pop edi
xor ecx, esp
mov eax, esi
call fcn.0048297b
add esp, 0x2c0
ret

Function at 0x441e10
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
push edi
mov esi, edx
mov edi, eax
mov ebx, ecx
call fcn.00441fc0
mov eax, 8
cmp dword [edi + 0x18], eax
jb 0x441e2d
mov edi, dword [edi + 4]
jmp 0x441e30
add edi, 4
cmp dword [ebx + 0x18], eax
jb 0x441e3a
mov ebx, dword [ebx + 4]
jmp 0x441e3d
add ebx, 4
test edi, edi
je 0x441e5c
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esi]
lea eax, [eax + eax + 2]
push eax
push edi
push 2
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret
Function at 0x441e60
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4a1993
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d7488]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
mov ebp, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov eax, dword [eax]
cmp eax, ebx
je 0x441f7e
cmp dword [edi + 0x18], 8
lea esi, [edi + 4]
jb 0x441eae
mov ecx, dword [esi]
jmp 0x441eb0
mov ecx, esi
lea edx, [esp + 0x14]
push edx
push ebx
lea edx, [esp + 0x24]
push edx
push ebx
push ecx
push eax
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x441f7e
mov eax, dword [esp + 0x1c]
cmp eax, 1
je 0x441ee2
cmp eax, 2
jne 0x441f7e
mov eax, dword [esp + 0x14]
shr eax, 1
mov dword [esp + 0x1c], eax
cmp eax, ebx
jbe 0x441f7e
push eax
lea eax, [esp + 0x24]
push eax
call fcn.004405a0
mov dword [esp + 0x40], 1
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x2c]
sar ecx, 1
jne 0x441f18
call fcn.00482bb3
cmp dword [edi + 0x18], 8
jb 0x441f22
mov eax, dword [esi]
jmp 0x441f24
mov eax, esi
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x2c]
push eax
push edx
lea esi, [esp + 0x24]
call fcn.0041b63b
cmp eax, ebx
jne 0x441f70
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x2c]
sar eax, 1
jne 0x441f4c
call fcn.00482bb3
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, ebp
call fcn.00403b1e
mov dword [esp + 0x18], 1
mov byte [esp + 0x40], bl
lea edx, [esp + 0x20]
push edx
call fcn.00440610
jmp 0x441f9a
mov byte [esp + 0x40], bl
lea eax, [esp + 0x20]
push eax
call fcn.00440610
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], ebx
xor ecx, ecx
mov word [ebp + 4], cx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x18], 1
mov eax, ebp
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8
Function at 0x442f30
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4a42e8
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4d7488]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
mov eax, dword [0x4d7488]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
push eax
push 0x104
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x442f9f
mov edx, dword [0x4d967c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4d967c
call eax
add eax, 0x10
mov dword [esi], eax
jmp 0x44301a
cmp word [esp + eax*2 + 0xe], 0x5c
je 0x442fb2
mov ecx, 0x5c
mov word [esp + eax*2 + 0x10], cx
inc eax
xor edx, edx
mov word [esp + eax*2 + 0x10], dx
mov eax, dword [0x4d967c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4d967c
call edx
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x224], 2
lea eax, [esp + 0x10]
test eax, 0xffff0000
jne 0x443000
mov ecx, eax
movzx edi, cx
push edi
call fcn.00411a52
add esp, 4
test eax, eax
je 0x44301a
push edi
push eax
mov eax, esi
call fcn.00411b6b
jmp 0x44301a
lea edx, [esp + 0x10]
push edx
call fcn.00482f7b
add esp, 4
push eax
lea eax, [esp + 0x14]
push eax
mov eax, esi
call fcn.00409e86
mov dword [esp + 0x224], 0
mov dword [esp + 8], 1
mov eax, esi
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0048297b
add esp, 0x220
ret
Function at 0x443060
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a1951
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d7488]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, dword [esp + 0x38]
xor esi, esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov ebx, 1
mov dword [esp + 0x30], ebx
lea eax, [esp + 0x1c]
push eax
call fcn.00444470
mov edx, dword [0x4d967c]
mov eax, dword [edx + 0xc]
add esp, 4
mov ecx, 0x4d967c
call eax
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x30], bl
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x20]
cmp ebx, esi
jle 0x443162
mov ebp, dword [esp + 0x1c]
mov edx, dword [edi]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x443132
lea ecx, [eax - 1]
test ecx, ecx
jl 0x4431e3
cmp ecx, eax
jg 0x4431e3
movzx ecx, word [edx + ecx*2]
cmp cx, 0x5d
je 0x443132
test eax, eax
jle 0x443132
lea ecx, [eax - 1]
test ecx, ecx
jl 0x4431e3
cmp ecx, eax
jg 0x4431e3
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x443132
push 0x5c
call fcn.00441cc0
test esi, esi
jl 0x4431ed
cmp esi, ebx
jge 0x4431ed
mov eax, ebp
call fcn.00444d90
mov eax, dword [ebp]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov eax, edi
call fcn.0043164c
inc esi
add ebp, 4
cmp esi, ebx
jl 0x4430e4
xor esi, esi
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x4431c5
cmp ebx, esi
jle 0x4431b8
mov esi, eax
mov ebp, ebx
jmp 0x443180
mov dword [esp + 0x18], esi
mov dword [esp + 0x30], 0
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4431aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
sub ebp, 1
jne 0x443180
mov eax, dword [esp + 0x1c]
xor esi, esi
push eax
call fcn.004831a5
add esp, 4
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
push 0x80070057
call fcn.00403856
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]