joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d30c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d184
mov eax, dword [0x48e890]
cmp byte [eax], 0
je 0x40d388
mov eax, dword [0x48e6b4]
call fcn.004037c8
call fcn.00403048
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040a224
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40d3d0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d3be
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x48e66c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4917f8]
call fcn.00406ae8
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x418994
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0x418a2c
push 0
mov eax, ebx
call fcn.0040589c
push eax
mov eax, dword [ebp + 8]
push eax
call sub.advapi32.dll_RegCreateKeyExA
mov ebx, eax
test ebx, ebx
jne 0x418a07
mov ebx, esi
test ebx, ebx
je 0x4189dd
sub ebx, 4
mov ebx, dword [ebx]
inc ebx
push ebx
mov eax, esi
call fcn.0040589c
push eax
push 1
push 0
mov eax, edi
call fcn.0040589c
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
test ebx, ebx
je 0x418a22
mov ecx, dword [0x48e6c8]
mov dl, 1
mov eax, dword [0x417010]
call fcn.0040d490
call fcn.00404d18
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x422470
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004221ac
dec esi
jne 0x422492
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x426eb0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.00403a58
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x48e9a0]
cmp byte [edx + 0xc], 0
je 0x426f14
mov edx, dword [0x48e998]
cmp dword [edx], 2
jne 0x426f14
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret
Function at 0x426f18
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x426fd0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.00426eb0
test al, al
je 0x426fb2
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.004054fc
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x426fb2
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040589c
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumValueA
mov eax, dword [ebp - 4]
call fcn.0040589c
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00405604
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x426f6b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x426fd7
lea eax, [ebp - 0x2c]
call fcn.0040540c
lea eax, [ebp - 4]
call fcn.0040540c
ret

Function at 0x42719c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.00426bd4
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.0040589c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x4271fb
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x48e7a8]
mov dl, 1
mov eax, dword [0x426acc]
call fcn.0040d560
call fcn.00404d18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x427204
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.0040589c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x42725c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x48e9b0]
mov dl, 1
mov eax, dword [0x426acc]
call fcn.0040d560
call fcn.00404d18
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00426c04
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x42d600
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov word [ebp - 2], cx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x42d6da
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
mov edx, esi
call fcn.00405604
mov edx, dword [ebp - 0x18]
mov eax, dword [0x493f94]
call fcn.0042cac0
test al, al
je 0x42d646
mov ebx, 1
jmp 0x42d6c4
push 0
push 0x8000080
push 3
push 0
push 1
push 0xc0000000
push esi
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42d673
call sub.kernel32.dll_GetLastError_1
mov edx, dword [ebp + 8]
mov dword [edx], eax
xor ebx, ebx
jmp 0x42d6c4
lea eax, [ebp - 0xc]
push eax
movzx eax, word [ebp - 2]
push eax
push edi
call sub.kernel32.dll_DosDateTimeToFileTime
test eax, eax
je 0x42d6a7
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
call sub.kernel32.dll_LocalFileTimeToFileTime
test eax, eax
je 0x42d6a7
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
call sub.kernel32.dll_SetFileTime
push ebx
call sub.kernel32.dll_CloseHandle_1
movzx eax, word [ebp + 0xc]
and ax, 0x27
movzx eax, ax
push eax
push esi
call sub.kernel32.dll_SetFileAttributesA
mov ebx, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d6e1
lea eax, [ebp - 0x18]
call fcn.0040540c
ret

Function at 0x42d6ec
Capabilities:
Delete file
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
push esp
push 0x104
call sub.kernel32.dll_GetTempPathA
test eax, eax
je 0x42d734
lea eax, [esp + 0x105]
push eax
push 0
push 0x42d76c
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetTempFileNameA
test eax, eax
je 0x42d734
lea eax, [esp + 0x105]
call fcn.0040a224
cmp ebx, eax
jg 0x42d738
xor eax, eax
jmp 0x42d73a
mov al, 1
mov ebx, eax
test bl, bl
je 0x42d754
lea edx, [esp + 0x105]
mov eax, esi
call fcn.0040a264
push esi
call sub.kernel32.dll_DeleteFileA
movzx eax, bl
mov edx, dword [0x48e630]
mov eax, dword [edx + eax*4]
add esp, 0x20c
pop esi
pop ebx
ret
Function at 0x42e0ec
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x42e0f5
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x42e232
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
inc dword [ebx + 0x18]
lea ecx, [ebp - 8]
mov edx, dword [ebx + 0x18]
mov eax, esi
call fcn.0042df78
mov edx, dword [ebp - 8]
lea eax, [ebx + 0x22]
call fcn.0040a2d0
lea ecx, [ebp - 0xc]
mov edx, dword [ebx + 0x14]
mov eax, esi
call fcn.0042dde4
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0x122]
call fcn.0040a2d0
lea ecx, [ebp - 0x10]
mov edx, dword [ebx + 0x18]
mov eax, esi
call fcn.0042dec0
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x222]
call fcn.0040a2d0
cmp word [esi + 0x42], 0
je 0x42e182
push edi
lea eax, [ebp - 1]
push eax
mov ecx, ebx
mov edx, esi
mov eax, dword [esi + 0x44]
call dword [esi + 0x40]
cmp byte [ebp - 1], 0
jne 0x42e1f3
lea eax, [ebp - 0x14]
lea edx, [ebx + 0x222]
mov ecx, pe_nt_image_headers32
call fcn.0040567c
mov eax, dword [ebp - 0x14]
call fcn.00409b78
lea eax, [ebp - 0x24]
lea edx, [ebx + 0x222]
mov ecx, pe_nt_image_headers32
call fcn.0040567c
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
lea edx, [ebx + 0x122]
mov ecx, pe_nt_image_headers32
call fcn.0040567c
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x18]
mov edx, 1
call fcn.0042d014
mov eax, dword [ebp - 0x18]
call fcn.0040589c
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
mov dword [esi + 0x3a2], eax
xor eax, eax
mov dword [esi + 0x3a6], eax
movzx ebx, byte [ebp - 1]
xor bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e239
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00405430
lea eax, [ebp - 0x18]
mov edx, 5
call fcn.00405430
ret
Function at 0x4302c8
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040588c
xor eax, eax
push ebp
push 0x430500
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov edx, ebx
call fcn.00405460
mov byte [ebp - 0xd], 0
test ebx, ebx
je 0x4304d8
cmp dword [0x48c0dc], 0
je 0x4304d8
xor eax, eax
push ebp
push 0x4304ce
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4304bd
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, 0x43051c
call fcn.004054a4
mov edx, dword [ebp - 4]
mov eax, 0x43052c
call fcn.004059e8
mov esi, eax
test esi, esi
jle 0x43037e
lea eax, [ebp - 8]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00405904
lea eax, [ebp - 4]
mov ecx, esi
mov edx, 1
call fcn.00405944
cmp dword [ebp - 4], 0
jne 0x43039e
mov dl, 1
mov eax, ebx
call fcn.00427778
xor edx, edx
push edx
push eax
lea edx, [ebp - 4]
mov eax, 8
call fcn.0040961c
push 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [0x48c0dc]
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00429d7c
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.00405460
mov eax, dword [0x48c0dc]
cmp byte [eax + 0x13], 0
je 0x43040a
push 0x430538
push dword [ebp - 4]
push 0x43054c
push ebx
push 0x43054c
mov eax, dword [ebp - 0xc]
push dword [eax]
lea eax, [ebp - 0x1c]
mov edx, 6
call fcn.004057a0
mov eax, dword [ebp - 0x1c]
call fcn.0040589c
push eax
call sub.kernel32.dll_OutputDebugStringA
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x430457
mov eax, dword [ebp - 0xc]
mov edx, ebx
call fcn.00405460
mov eax, dword [0x48c0dc]
cmp byte [eax + 0x11], 0
je 0x430441
push dword [ebp - 4]
push 0x430558
mov eax, dword [ebp - 0xc]
push dword [eax]
mov eax, dword [ebp - 0xc]
mov edx, 3
call fcn.004057a0
mov byte [ebp - 0xd], 0
call fcn.00404dc4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4304d8
mov byte [ebp - 0xd], 1
mov eax, dword [0x48c0dc]
cmp byte [eax + 0x11], 0
je 0x430480
push dword [ebp - 4]
push 0x430564
mov eax, dword [ebp - 0xc]
push dword [eax]
mov eax, dword [ebp - 0xc]
mov edx, 3
call fcn.004057a0
lea eax, [ebp - 8]
call fcn.0040540c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4304c4
mov eax, dword [0x48c0dc]
cmp dword [eax + 0x16], 0
je 0x4304bc
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov ebx, dword [0x48c0dc]
call dword [ebx + 0x16]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.00405460
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430507
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00405430
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405430
ret
Function at 0x43111c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x4311bd
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x4311d4
call fcn.004054a4
push 5
lea eax, [ebp - 0xe]
push eax
push 0x59
push 0x400
call sub.kernel32.dll_GetLocaleInfoA_1
cmp eax, 3
sete bl
test bl, bl
je 0x43117c
push 5
lea eax, [ebp - 9]
push eax
push 0x5a
push 0x400
call sub.kernel32.dll_GetLocaleInfoA_1
cmp eax, 3
je 0x431180
xor eax, eax
jmp 0x431182
mov al, 1
mov ebx, eax
test bl, bl
je 0x43119d
lea eax, [ebp - 4]
lea edx, [ebp - 0xe]
call fcn.00405604
mov eax, edi
lea edx, [ebp - 9]
call fcn.00405604
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00405460
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4311c4
lea eax, [ebp - 4]
call fcn.0040540c
ret

Function at 0x434b68
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, eax
push esp
push 0x105
call sub.kernel32.dll_GetTempPathA
mov eax, ebx
mov edx, esp
call fcn.00405604
cmp dword [ebx], 0
je 0x434bb8
mov eax, dword [ebx]
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x108]
test eax, eax
je 0x434ba3
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x434bb8
mov eax, ebx
mov edx, 0x434bc8
call fcn.004056d8
add esp, 0x10c
pop ebx
ret

Function at 0x437370
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7f8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x808], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x437423
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x5c3], 0
jne 0x4373ba
lea edx, [ebp - 0x808]
mov eax, ebx
call fcn.00437560
mov edx, dword [ebp - 0x808]
mov eax, esi
call fcn.00405d78
jmp 0x43740a
mov eax, dword [ebx + 0x407]
test eax, eax
je 0x43740a
cmp byte [ebx + 0x431], 0
jne 0x43740a
push eax
call sub.user32.dll_GetWindowTextLengthW
cmp eax, 0x400
jle 0x4373df
mov eax, 0x400
test eax, eax
jle 0x43740a
inc eax
push eax
lea eax, [ebp - 0x802]
push eax
mov eax, dword [ebx + 0x407]
push eax
call sub.user32.dll_GetWindowTextW
mov eax, esi
lea edx, [ebp - 0x802]
mov ecx, 0x401
call fcn.00405d5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43742a
lea eax, [ebp - 0x808]
call fcn.0040540c
ret
Function at 0x437560
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x43761b
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x5c3], 0
je 0x43759f
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00437370
mov eax, dword [ebp - 8]
mov edx, edi
call fcn.004374f8
jmp 0x437605
mov eax, dword [ebx + 0x407]
test eax, eax
je 0x4375f8
cmp byte [ebx + 0x431], 0
jne 0x4375f8
push eax
call sub.user32.dll_GetWindowTextLengthA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4375c5
xor esi, esi
jmp 0x4375e2
mov eax, dword [ebp - 4]
inc eax
call fcn.00402eec
mov esi, eax
mov eax, dword [ebp - 4]
inc eax
push eax
push esi
mov eax, dword [ebx + 0x407]
push eax
call sub.user32.dll_GetWindowTextA
mov eax, edi
mov edx, esi
call fcn.00405604
test esi, esi
je 0x437605
mov eax, esi
call fcn.00402f08
jmp 0x437605
mov eax, edi
mov edx, dword [ebx + 0x425]
call fcn.00405604
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x437622
lea eax, [ebp - 8]
call fcn.00405be8
ret
Function at 0x43d464
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, eax
push esp
push 0x105
call sub.kernel32.dll_GetTempPathA
mov eax, ebx
mov edx, esp
call fcn.00405604
cmp dword [ebx], 0
je 0x43d4b4
mov eax, dword [ebx]
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x108]
test eax, eax
je 0x43d49f
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x43d4b4
mov eax, ebx
mov edx, 0x43d4c4
call fcn.004056d8
add esp, 0x10c
pop ebx
ret

Function at 0x43d4c8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, edx
push esp
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov edx, ebx
lea eax, [esp + 4]
call fcn.0040a3c4
add esp, 0x208
pop ebx
ret

Function at 0x43e914
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov byte [eax + 8], 0
mov eax, dword [ebp - 4]
add eax, 0x11
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 9], ebx
test ebx, ebx
jbe 0x43e9a8
xor eax, eax
push ebp
push 0x43e992
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0043e868
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0xd], esi
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 9]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x11]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.version.dll_GetFileVersionInfoA
cmp eax, 1
sbb eax, eax
inc eax
mov edx, dword [ebp - 4]
mov byte [edx + 8], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43e9a8
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x43ed34
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040588c
xor eax, eax
push ebp
push 0x43ee95
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040540c
mov edx, dword [ebp - 4]
mov eax, 0x43eeac
call fcn.004059e8
test eax, eax
jne 0x43ee04
lea eax, [ebp - 8]
mov edx, 1
call fcn.00405b2c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040589c
push eax
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040589c
mov edi, eax
push edi
push 0
call sub.kernel32.dll_SearchPathA
mov ebx, eax
inc ebx
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00405b2c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040589c
push eax
push ebx
push 0
push edi
push 0
call sub.kernel32.dll_SearchPathA
test eax, eax
je 0x43edf8
mov eax, dword [ebp - 8]
call fcn.0040589c
call fcn.0040a224
mov edx, eax
lea eax, [ebp - 8]
call fcn.00405b2c
mov eax, esi
mov edx, dword [ebp - 8]
call fcn.00405460
jmp 0x43ee7a
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00405460
jmp 0x43ee7a
lea eax, [ebp - 8]
mov edx, 1
call fcn.00405b2c
push 0
mov eax, dword [ebp - 8]
call fcn.0040589c
push eax
mov eax, dword [ebp - 4]
call fcn.0040589c
mov edi, eax
push edi
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov ebx, eax
inc ebx
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00405b2c
push ebx
mov eax, dword [ebp - 8]
call fcn.0040589c
push eax
push edi
call sub.kernel32.dll_ExpandEnvironmentStringsA
test eax, eax
je 0x43ee70
mov eax, dword [ebp - 8]
call fcn.0040589c
call fcn.0040a224
mov edx, eax
lea eax, [ebp - 8]
call fcn.00405b2c
mov eax, esi
mov edx, dword [ebp - 8]
call fcn.00405460
jmp 0x43ee7a
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00405460
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43ee9c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405430
ret
Function at 0x43f55c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040588c
mov eax, dword [ebp - 8]
call fcn.0040588c
xor eax, eax
push ebp
push 0x43f68e
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x43f661
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040589c
mov edx, eax
lea eax, [ebp - 0x14]
call fcn.00405604
mov eax, dword [ebp - 0x14]
call fcn.0040589c
push eax
call sub.kernel32.dll_DeleteFileA
push 0xffff
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x41b534]
call fcn.0041e76c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x43f648
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x41b6b4]
call fcn.0041eb94
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x43f62b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.0041e5b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43f632
mov eax, dword [ebp - 0xc]
call fcn.004043f8
ret
Function at 0x43fe84
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x40c], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x440001
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, dword [ebp + 0xc]
call fcn.00405460
xor edx, edx
push ebp
push 0x43ffde
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x40c]
mov eax, edi
call fcn.0043fbf0
mov edx, dword [ebp - 0x40c]
lea eax, [ebp - 0x110]
mov ecx, 0xff
call fcn.0040a2f8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x110]
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyA
xor edx, edx
push ebp
push 0x43ffcd
push dword fs:[edx]
mov dword fs:[edx], esp
test eax, eax
je 0x43ff20
call fcn.00404dc4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43ffe8
lea eax, [ebp - 0x210]
mov ecx, 0xff
mov edx, dword [ebp - 4]
call fcn.0040a2f8
lea ebx, [ebp - 0x405]
mov dword [ebp - 8], 0x1f4
mov byte [ebx], 0
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x210]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x43ff6d
mov edx, esi
mov eax, ebx
call fcn.0040a3c4
jmp 0x43ffb0
cmp eax, 0xea
jne 0x43ffb0
mov eax, dword [ebp - 8]
call fcn.00402ed4
mov ebx, eax
mov byte [ebx], 0
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x210]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x43ffa9
mov edx, esi
mov eax, ebx
call fcn.0040a3c4
mov eax, ebx
call fcn.00402f08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43ffd4
cmp dword [ebp - 0xc], 0
je 0x43ffcc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x440008
lea eax, [ebp - 0x40c]
call fcn.0040540c
ret