joyce8/EMBER2024-capa huggingface dataset:
Function at 0xc01058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xc011a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xc0107e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc0106a
add dl, dl
jne 0xc01089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc010dc
xor eax, eax
add dl, dl
jne 0xc01096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc0117d
add dl, dl
jne 0xc010a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc010b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc010bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc010c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xc010d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xc01075
mov eax, 1
add dl, dl
jne 0xc010ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc010f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc010e1
sub eax, ebx
mov ebx, 1
jne 0xc01128
mov ecx, 1
add dl, dl
jne 0xc0110e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc01119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc01105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc01075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xc0113f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc0114a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc01136
cmp eax, 0x7d00
jae 0xc0116d
cmp eax, 0x500
jb 0xc01168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc01075
cmp eax, 0x7f
ja 0xc01170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc01075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xc0119e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xc01075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40397a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
lea edx, [0x4061dd]
mov ecx, edx
mov eax, dword [edx]
inc ecx
inc ecx
inc ecx
inc ecx
mov edi, dword [ecx]
mov ecx, eax
mov eax, dword [edi]
add edi, 4
mov esi, edi
mov ebx, esi
add edi, eax
mov edx, edi
dec edx
sub ecx, eax
dec ecx
dec ecx
dec ecx
dec ecx
lea eax, [0x4061dd]
mov dword [eax], ecx
inc eax
inc eax
inc eax
inc eax
mov dword [eax], edi
push ecx
mov ch, byte [edi]
mov al, byte [0x40612b]
add al, byte [esi]
xor al, ch
mov byte [edi], al
mov eax, edx
cmp esi, eax
je 0x4039ca
inc esi
pop ecx
inc edi
dec ecx
jne 0x4039ae
jmp 0x4039ce
mov esi, ebx
jmp 0x4039c3
mov edi, esi
push 0x39
push 0x4061dd
push 0x111
push dword [0x4061b9]
call dword [sym.imp.user32.dll_SendMessageA]
mov ecx, dword [0x4061dd]
mov edi, dword [0x4061e1]
mov esi, dword [0x4061d1]
mov al, byte [esi]
mov byte [edi], al
inc esi
inc edi
dec ecx
jne 0x4039fa
mov esi, dword [0x406126]
mov ecx, dword [0x406122]
push ecx
add ecx, esi
mov dword [0x40619d], ecx
pop ecx
mov eax, dword [esi]
inc esi
inc esi
nop
inc esi
inc esi
mov edi, dword [0x4061d1]
mov ebx, esi
add ebx, eax
mov dword [0x406199], ebx
mov edx, esi
add esi, eax
mov ecx, 0
movzx eax, byte [edx]
inc eax
cmp edx, ebx
jae 0x403aa1
cmp eax, ecx
jae 0x403a46
ret
sub eax, ecx
mov ecx, eax
test ecx, ecx
je 0x403a57
mov al, byte [esi]
mov byte [edi], al
inc esi
inc edi
dec ecx
jne 0x403a4e
inc edx
mov al, byte [edx]
inc edx
movzx ecx, byte [edx]
test ecx, ecx
je 0x403a6a
push ecx
mov byte [edi], al
inc edi
dec ecx
jne 0x403a63
pop ecx
inc edx
movzx eax, byte [edx]
inc cl
cmp cl, 0
jne 0x403a8b
inc al
cmp al, 0
jne 0x403a83
inc edx
movzx eax, word [edx]
inc edx
inc edx
jmp 0x403a87
mov al, 0
dec al
dec cl
jmp 0x403a9d
dec cl
inc al
cmp al, 0
jne 0x403a9b
inc edx
movzx eax, word [edx]
inc edx
inc edx
jmp 0x403a9d
dec al
jmp 0x403a3d
mov ecx, dword [0x40619d]
sub ecx, esi
test ecx, ecx
je 0x403ab6
mov al, byte [esi]
mov byte [edi], al
inc esi
inc edi
dec ecx
jne 0x403aad
mov edi, dword [0x4061d1]
mov dword [0x4061d1], edi
ret

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0xc1608c4
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
mov esi, 0x594e0a01
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4099ec
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409abf
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409ad8
push ebx
push 0x409ae4
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409a6c
mov al, 0x6a
call fcn.00409648
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.004099c0
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409a75
call fcn.004099c0
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409ac6
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x409b78
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409c2c
jmp 0x409c21
cmp dword [esi + 0x10], 0x1000
jne 0x409c0d
test byte [esi + 0x15], 1
jne 0x409c0d
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409bcc
cmp eax, 2
je 0x409bcc
cmp eax, 0x10
je 0x409bcc
cmp eax, 0x20
jne 0x409be1
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409be1
mov bl, 1
xor ebp, ebp
jmp 0x409bf2
mov eax, dword [esi]
add eax, ebp
call fcn.00409b70
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409be5
test bl, bl
je 0x409c0d
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409c2c
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409ba4
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x432005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43200c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x43534b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042708b
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x435383
xor eax, eax
jmp 0x4353af
cmp esi, dword [ebp - 4]
je 0x4353ac
cmp dword [ebp + 0xc], 0
je 0x4353ac
push dword [edi + 0x9c]
call fcn.00434f59
push dword [edi + 0x9c]
mov esi, eax
call fcn.00424fcd
pop ecx
pop ecx
cmp esi, eax
je 0x43537f
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x408670
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
jmp 0x40868a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x408691
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x408680
mov eax, 1
add ebx, ebx
jne 0x4086a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x408698
jne 0x4086b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x408698
xor ecx, ecx
sub eax, 3
jb 0x4086c8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40873a
mov ebp, eax
add ebx, ebx
jne 0x4086d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4086e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x408704
inc ecx
add ebx, ebx
jne 0x4086f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4086e5
jne 0x408701
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4086e5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x408724
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x408715
jmp 0x408686
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x408724
add edi, ecx
jmp 0x408686
pop esi
mov edi, esi
mov ecx, 0x26
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x408742
cmp byte [edi], 0
jne 0x408742
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x408747
lea edi, [esi + 0x6000]
mov eax, dword [edi]
or eax, eax
je 0x4087bf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x9dac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x9e04]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x408774
mov ecx, edi
jns 0x4087a3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x9e0c]
or eax, eax
je 0x4087b9
mov dword [ebx], eax
add ebx, 4
jmp 0x408791
call dword [esi + 0x9e08]
mov ebp, dword [esi + 0x9e10]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4087f3
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x403350
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x328
push esi
push edi
mov edi, dword [esp + 0x334]
push str.PrinterDriverData
push edi
push str.SystemCurrentControlSetControlPrintPrinters
xor eax, eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], eax
push 0x44b66c
push ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov byte [esp + 0x2c], al
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0x14
lea edx, [esp + 0x10]
push edx
push 0x20019
push 0
lea eax, [esp + 0x30]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x403445
lea ecx, [esp + 8]
push ecx
push 0x20019
push 0
push str.SystemCurrentControlSetControlPrintPrinters
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x4034dc
lea edx, [esp + 0xc]
push edx
push 0x20019
push eax
mov eax, dword [esp + 0x14]
push edi
push eax
call esi
test eax, eax
je 0x40340a
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
add esp, 0x328
ret
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push 0x20019
push 0
push str.PrinterDriverData
push eax
call esi
test eax, eax
je 0x403445
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call esi
pop edi
xor eax, eax
pop esi
add esp, 0x328
ret
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x28]
push edx
push 0
push str.PrinterID
push eax
mov dword [esp + 0x34], 4
mov dword [esp + 0x38], 3
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x4034bf
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x338]
mov al, byte [esp + 0x18]
mov dword [ecx], edx
mov byte [ecx + 4], al
mov ecx, dword [esp + 0x10]
push ecx
call esi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4034a6
push eax
call esi
mov eax, dword [esp + 8]
test eax, eax
je 0x4034b1
push eax
call esi
pop edi
mov eax, 1
pop esi
add esp, 0x328
ret
mov edx, dword [esp + 0x10]
push edx
call esi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4034d1
push eax
call esi
mov eax, dword [esp + 8]
test eax, eax
je 0x4034dc
push eax
call esi
pop edi
xor eax, eax
pop esi
add esp, 0x328
ret
Function at 0x4034f0
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x2c
lea eax, [esp]
push eax
push 0xf003f
push 0
push str.EnumRootPrinter
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403518
xor eax, eax
add esp, 0x2c
ret
push edi
xor edi, edi
push edi
push edi
xor ecx, ecx
push edi
mov dword [esp + 0x2c], ecx
push edi
mov dword [esp + 0x34], ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x3c], ecx
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x1c]
push edi
push ecx
mov dword [esp + 0x28], 0x10
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x403652
push ebp
mov ebp, dword [esp + 0x38]
push ebx
push esi
mov edi, edi
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push 0xf003f
push 0
lea eax, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4035f5
xor edx, edx
mov dword [esp + 0x24], edx
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x30], dl
lea edx, [esp + 0x28]
push edx
push 0
push str.PrinterID
push eax
mov dword [esp + 0x34], 4
mov dword [esp + 0x38], 3
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4035ea
mov cl, byte [esp + 0x24]
cmp cl, byte [ebp]
mov esi, dword [esp + 0x1c]
jne 0x4035e6
mov ecx, ebp
lea edx, [esp + 0x24]
sub ecx, edx
cmp eax, esi
jge 0x4035e8
mov bl, byte [esp + eax + 0x25]
inc eax
lea edx, [ecx + eax]
cmp bl, byte [esp + edx + 0x24]
je 0x4035d4
cmp eax, esi
je 0x403634
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
push ecx
push ecx
push ecx
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x28]
inc edi
push edi
push ecx
mov dword [esp + 0x34], 0x10
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x403560
jmp 0x40364f
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop esi
pop ebx
pop ebp
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
add esp, 0x2c
ret
Function at 0x4041b0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x8c
push ebx
mov ebx, dword [esp + 0x94]
push ebp
push esi
lea eax, [esp + 0x14]
push eax
xor ebp, ebp
push ebx
mov dword [esp + 0x1c], ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebp
jne 0x4041e3
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x8c
ret
push edi
lea ecx, [esi + 0x64]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
cmp edi, ebp
jne 0x404203
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x8c
ret
push edi
push esi
push ebp
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4042ad
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
cmp dword [esp + 0x14], 4
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
jne 0x404262
mov eax, dword [esp + 0x10]
movzx ecx, byte [eax + 2]
movzx edx, byte [eax + 3]
push ecx
movzx ecx, byte [eax]
push edx
movzx edx, byte [eax + 1]
push ecx
push edx
lea eax, [esp + 0x2c]
push str.StringFileInfo_02x_02x_02x_02x_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
jmp 0x40426e
push str.StringFileInfo040904e4_
lea ecx, [esp + 0x20]
push ecx
call esi
push str.ProductVersion
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
push edx
push edi
call sub.VERSION.dll_VerQueryValueA
cmp dword [esp + 0x14], ebp
je 0x4042ad
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xa4]
push eax
push ecx
call esi
mov ebp, 1
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x8c
ret
Function at 0x4042d0
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x274
push ebx
push esi
push edi
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x178]
rep stosd dword es:[edi], eax
push str.SOFTWARECanonVDCSETUP
lea eax, [esp + 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x184]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40435d
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push str.Path
push eax
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x404366
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
push 0x44b63c
lea ecx, [esp + 0x74]
push ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0x44
mov dword [esp + 0x5c], 1
mov word [esp + 0x60], ax
call esi
push str.AuVdc.exe
lea edx, [esp + 0x74]
push edx
call esi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push str.__remove
lea edx, [esp + 0x94]
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esp + 0x1c]
push eax
call ebx
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x404417
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push esi
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404690
Capabilities:
Get common file path

Disassembly:
push ecx
push esi
push 0x104
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov esi, eax
test esi, esi
jne 0x4046ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop esi
pop ecx
ret
mov ecx, dword [esp + 0xc]
lea eax, [esp + 4]
push eax
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edx, dword [esp + 4]
push esi
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jne 0x4046d7
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
pop esi
pop ecx
ret

Function at 0x4046e0
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x1218
call fcn.0042dd50
mov eax, dword [str.wininit.ini]
mov ecx, dword [0x44bacc]
mov edx, dword [0x44bad0]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebp
push esi
push edi
mov edi, dword [esp + 0x122c]
mov dword [esp + 0x10], eax
push edi
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x44bac4
lea ecx, [esp + 0x20]
push ecx
call esi
mov ebp, dword [esp + 0x1230]
push ebp
lea edx, [esp + 0x20]
push edx
call esi
lea eax, [esp + 0x10]
push eax
push 0x1000
lea ecx, [esp + 0x230]
push ecx
push str.RENAME
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov esi, eax
test esi, esi
jbe 0x4047ab
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + esi + 0x22c]
push eax
call ebx
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, esi
lea edx, [esp + 0x10]
mov byte [esp + eax + 0x229], 0
push edx
lea eax, [esp + 0x22c]
push eax
push str.rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1218
ret
lea ecx, [esp + 0x10]
push ecx
push ebp
push edi
push str.RENAME
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1218
ret