joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409e30
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4224d8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x434014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor esi, esi
mov edi, eax
cmp dword [ebp - 0x14], esi
jle 0x409eba
mov ebx, dword [ebp + 8]
push dword [edi + esi*4]
lea ecx, [ebp - 0x10]
call fcn.00406dd0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.00409ee0
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409eb4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc esi
cmp esi, dword [ebp - 0x14]
jl 0x409e75
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40c850
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422618
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x434014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [ebp + 0xc], 0
mov esi, dword [ebp + 8]
je 0x40c93d
push esi
lea eax, [edi + 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00410270
add esp, 0xc
mov esi, dword [edi + 0x24]
mov dword [ebp - 4], 0
xor ecx, ecx
mov byte [ebp - 4], 1
push 0xffffffffffffffff
push ecx
mov word [ebp - 0x48], cx
lea ecx, [ebp - 0x48]
push eax
mov dword [ebp - 0x54], vtable.InterCrypto::SystemUtilities::Registry::RegistryKey.0
mov byte [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xffffffff
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
call fcn.00401eb0
mov dword [ebp - 0x30], esi
mov word [ebp - 0x2c], 0
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 3
cmp eax, 8
jb 0x40c8fc
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00401d90
xor eax, eax
mov dword [ebp - 0x14], 7
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.0040c600
lea ecx, [ebp - 0x54]
call fcn.0040c190
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a23e
mov esp, ebp
pop ebp
ret 8
push 0
call fcn.0040db00
cmp dword [esi + 0x14], 8
jb 0x40c94c
mov esi, dword [esi]
push esi
push dword [edi + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x40c920
cmp eax, 2
je 0x40c920
push eax
push str.RegDeleteKey_failed.
lea ecx, [ebp - 0x6c]
call fcn.0040f040
push 0x431fb8
lea eax, [ebp - 0x6c]
push eax
call fcn.00411cd4
int3
Function at 0x40c980
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push dword [ebp + 0xc]
mov esi, ecx
call fcn.0040db00
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40c99c
mov eax, dword [eax]
push eax
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
pop esi
test eax, eax
je 0x40c9b0
cmp eax, 2
jne 0x40c9b6
mov esp, ebp
pop ebp
ret 8
push eax
push str.DeleteValue_failed.
lea ecx, [ebp - 0x18]
call fcn.0040f040
push 0x431fb8
lea eax, [ebp - 0x18]
push eax
call fcn.00411cd4
int3

Function at 0x40d4c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push 0
mov esi, ecx
call fcn.0040da60
test al, al
jne 0x40d4de
mov eax, dword [ebp + 0xc]
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
mov dword [ebp - 8], 4
mov dword [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x40d4f7
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
push 0
push eax
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x40d4d4
test eax, eax
jne 0x40d522
mov eax, dword [ebp - 0xc]
pop esi
mov esp, ebp
pop ebp
ret 8
push eax
push str.RegGetValue_failed.
lea ecx, [ebp - 0x24]
call fcn.0040f040
push 0x431fb8
lea eax, [ebp - 0x24]
push eax
call fcn.00411cd4
int3

Function at 0x40d540
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push 0
mov esi, ecx
call fcn.0040da60
test al, al
jne 0x40d561
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 8], 0xb
mov dword [ebp - 4], 8
cmp dword [eax + 0x14], 8
jb 0x40d57a
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push 0
push eax
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x40d554
test eax, eax
jne 0x40d5a8
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
pop esi
mov esp, ebp
pop ebp
ret 0xc
push eax
push str.RegGetValue_failed.
lea ecx, [ebp - 0x28]
call fcn.0040f040
push 0x431fb8
lea eax, [ebp - 0x28]
push eax
call fcn.00411cd4
int3
Function at 0x40d5d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push 0
mov ebx, ecx
call fcn.0040da60
test al, al
jne 0x40d5ed
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp dword [edi + 0x14], 8
jb 0x40d602
mov eax, dword [edi]
jmp 0x40d604
mov eax, edi
lea ecx, [ebp - 4]
push ecx
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push eax
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d64b
push esi
push dword [ebp - 4]
mov esi, dword [ebp + 0x10]
mov ecx, esi
call fcn.0040ee90
cmp dword [edi + 0x14], 8
jb 0x40d634
mov edi, dword [edi]
lea eax, [ebp - 4]
push eax
push dword [esi]
lea eax, [ebp - 8]
push eax
push 0
push edi
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
pop esi
pop edi
cmp eax, 2
je 0x40d5e4
test eax, eax
jne 0x40d666
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
pop ebx
mov dword [ecx], eax
mov al, 1
mov esp, ebp
pop ebp
ret 0xc
push eax
push str.RegGetValue_failed.
lea ecx, [ebp - 0x20]
call fcn.0040f040
push 0x431fb8
lea eax, [ebp - 0x20]
push eax
call fcn.00411cd4
int3
Function at 0x40e220
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 0xc], 6
sete al
movzx eax, al
push esi
push eax
mov esi, ecx
call fcn.0040db00
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 8]
sub ecx, edx
cmp dword [eax + 0x14], 8
jb 0x40e24e
mov eax, dword [eax]
push ecx
push edx
push dword [ebp + 0xc]
push 0
push eax
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
test eax, eax
jne 0x40e26a
mov esp, ebp
pop ebp
ret 0xc
push eax
push str.RegSetKeyValue_failed.
lea ecx, [ebp - 0x18]
call fcn.0040f040
push 0x431fb8
lea eax, [ebp - 0x18]
push eax
call fcn.00411cd4
int3

Function at 0x419d4a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00419a0a

Function at 0x41c230
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041c0af
Function at 0x40da1e
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.00421590
mov eax, dword [0x44277c]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1014]
push edi
mov edi, dword [esp + 0x101c]
cmp word [esi], 0
je 0x40dbb7
push esi
call fcn.0040dbdf
push esi
call fcn.00426433
pop ecx
push esi
mov ebx, eax
call fcn.0040dc0a
test al, al
je 0x40daf7
push esi
call fcn.0040dbdf
test al, al
je 0x40dab0
lea eax, [ebx + 4]
cmp dword [esp + 0x1020], eax
jbe 0x40dbb7
push dword [esp + 0x1020]
push str.__
push edi
call fcn.0041268b
push dword [esp + 0x1020]
push esi
push edi
call fcn.00412663
mov al, 1
jmp 0x40dbb9
push 0x5c
pop eax
cmp word [esi], ax
jne 0x40dbb7
lea ebp, [esi + 2]
cmp word [ebp], ax
jne 0x40dbb7
mov esi, dword [esp + 0x1020]
lea eax, [ebx + 6]
cmp esi, eax
jbe 0x40dbb7
push esi
push str.__
push edi
call fcn.0041268b
push esi
push 0x436c04
push edi
call fcn.00412663
push esi
push ebp
jmp 0x40daa3
lea eax, [esp + 0x10]
mov ebp, 0x7ff
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40dbb7
cmp eax, ebp
ja 0x40dbb7
movzx eax, word [esi]
push eax
call fcn.0040dcc2
test al, al
je 0x40db5c
lea eax, [ebx + 6]
mov ebx, dword [esp + 0x1020]
cmp ebx, eax
jbe 0x40dbb7
push ebx
push str.__
push edi
call fcn.0041268b
xor eax, eax
mov word [esp + 0x14], ax
lea eax, [esp + 0x10]
push ebx
push eax
push edi
call fcn.00412663
push ebx
jmp 0x40daa2
push 0x800
lea eax, [esp + 0x14]
push eax
call fcn.0040d52f
lea eax, [esp + 0x10]
push eax
call fcn.00426433
add ebx, 4
add eax, ebx
mov ebx, dword [esp + 0x1024]
pop ecx
cmp ebx, eax
jbe 0x40dbb7
push ebx
push str.__
push edi
call fcn.0041268b
push ebx
lea eax, [esp + 0x14]
push eax
push edi
call fcn.00412663
cmp word [esi], 0x2e
jne 0x40db56
movzx eax, word [esi + 2]
push eax
call fcn.0040dcc2
test al, al
je 0x40db56
add esi, 4
jmp 0x40db56
xor al, al
mov ecx, dword [esp + 0x1010]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004210f9
add esp, 0x1004
ret 0xc
Function at 0x42211b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42215a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42215a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42215a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42215a
cmp dword [ecx + 0x74], 0xe
jbe 0x42215a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4347a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4347cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4347cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d7a
nop
nop
sub eax, 0x403d20
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x416ef0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.sect_1
lea edi, [esi - 0xd000]
push edi
or ebp, 0xffffffff
jmp 0x416f12
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x416f19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x416f08
mov eax, 1
add ebx, ebx
jne 0x416f2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x416f20
jne 0x416f3c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x416f20
xor ecx, ecx
sub eax, 3
jb 0x416f50
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x416fc2
mov ebp, eax
add ebx, ebx
jne 0x416f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x416f68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x416f8c
inc ecx
add ebx, ebx
jne 0x416f78
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x416f6d
jne 0x416f89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x416f6d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x416fac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x416f9d
jmp 0x416f0e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x416fac
add edi, ecx
jmp 0x416f0e
pop esi
mov edi, esi
mov ecx, 0x70a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x416fca
cmp byte [edi], 0x12
jne 0x416fca
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 0x416fcf
lea edi, [esi + 0x14000]
mov eax, dword [edi]
or eax, eax
je 0x41703e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x17000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x17078]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x416ffc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1707c]
or eax, eax
je 0x417038
mov dword [ebx], eax
add ebx, 4
jmp 0x417019
call dword [esi + 0x17084]
mov ebp, dword [esi + 0x17080]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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 0x417072
sub esp, 0xffffff80
jmp 0x407c42
Function at 0x4042ec
Capabilities:
Encode data using xor

Disassembly:
push 0x44
mov eax, 0x4689b7
call fcn.0044d11f
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x50], edi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 4], edi
call fcn.00404135
pop ecx
pop ecx
mov byte [ebp - 4], 1
call fcn.0042b084
push eax
lea ecx, [ebp - 0x4c]
call fcn.004075fa
xor esi, esi
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], edi
jbe 0x404356
push esi
lea ecx, [ebp - 0x2c]
call fcn.004034de
xor byte [eax], 0x4a
push esi
lea ecx, [ebp - 0x2c]
call fcn.004034de
movzx eax, byte [eax]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00403a9b
inc esi
cmp esi, dword [ebp - 0x18]
jb 0x40432f
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x48]
call fcn.004023a5
dec dword [ebp + 0x28]
cmp dword [ebp + 0x28], edi
mov byte [ebp - 4], 3
jle 0x4043a9
push dword [ebp + 0x28]
lea eax, [ebp - 0x48]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x50], esp
push eax
call fcn.00401f61
lea eax, [ebp - 0x50]
push eax
call fcn.004042ec
add esp, 0x24
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 4
call fcn.00403ffb
mov ecx, dword [ebp - 0x50]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.00401264
lea ecx, [ebp - 0x4c]
call fcn.004040d9
mov ecx, eax
call fcn.00403ef2
push eax
mov ecx, ebx
call fcn.0040397f
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.004018c3
mov ecx, dword [ebp - 0x4c]
add ecx, 0xfffffff0
call fcn.00401264
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.004018c3
push edi
push 1
lea ecx, [ebp + 0xc]
call fcn.004018c3
mov eax, ebx
call fcn.0044d1a2
ret

Function at 0x4043f4
Capabilities:
Delete directory

Disassembly:
push 8
mov eax, 0x4689f4
call fcn.0044d0b6
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040397f
push 2
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.Kyc6OysiEC0QDQg7Kyc6Ow
mov byte [ebp - 4], 1
call fcn.004023a5
lea eax, [ebp - 0x14]
push eax
call fcn.004042ec
add esp, 0x24
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
push eax
mov byte [ebp - 4], 2
call fcn.00403e79
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00401264
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call fcn.0040397f
call fcn.00403b32
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401264
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401264
call fcn.0044d18e
ret
Function at 0x40448f
Capabilities:
Check os version

Disassembly:
push ebp
sub esp, 0x94
lea ebp, [esp - 4]
mov eax, dword [0x495180]
xor eax, ebp
mov dword [ebp + 0x94], eax
push 0xc
mov eax, 0x468a48
call fcn.0044d0b6
mov ebx, dword [ebp + 0xa0]
push 2
sub esp, 0x1c
xor esi, esi
mov dword [ebp - 0x14], esi
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.Kyc6OysiciEDGRsmGhkYOysnOjs
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], ebx
call fcn.004023a5
push ebx
call fcn.004042ec
mov dword [ebp - 4], esi
mov esi, 0x94
push esi
xor edi, edi
lea eax, [ebp]
push 0
inc edi
push eax
mov dword [ebp - 0x14], edi
call fcn.0044ca00
add esp, 0x30
lea eax, [ebp]
push eax
mov dword [ebp], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp + 4], 5
jne 0x40456a
push 2
cmp dword [ebp + 8], edi
jne 0x40453b
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.Kyc6OysieiAACAMrKyc6Oystd3c
call fcn.004023a5
lea eax, [ebp - 0x10]
push eax
call fcn.004042ec
add esp, 0x24
mov dword [ebp - 4], edi
jmp 0x4045cb
pop esi
cmp dword [ebp + 8], esi
jne 0x4045de
push 3
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.ATMpfAUzOSQFIDkJDRspIg4zAyYCCT0JLDA5OAAwJX0BMykmLj13dw
call fcn.004023a5
lea eax, [ebp - 0x10]
push eax
call fcn.004042ec
add esp, 0x24
mov dword [ebp - 4], esi
jmp 0x4045cb
cmp dword [ebp + 4], 6
jne 0x4045de
cmp dword [ebp + 8], 0
jne 0x40459f
push 4
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.Cx4HOiwLHzAFGRsMAw4hfgsOBywaPTk9CDMtCA09KXMLMnoaCQlyBQASeggHMyZyCB4HfwALHy0FEil3
call fcn.004023a5
lea eax, [ebp - 0x10]
push eax
call fcn.004042ec
add esp, 0x24
mov dword [ebp - 4], 3
jmp 0x4045cb
cmp dword [ebp + 8], edi
jne 0x4045de
push 2
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.Kyc6OysieiAAAns7Kyc6Ow
call fcn.004023a5
lea eax, [ebp - 0x10]
push eax
call fcn.004042ec
add esp, 0x24
mov dword [ebp - 4], 4
push eax
mov ecx, ebx
call fcn.00403ffb
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401264
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.0044d0a7
add ebp, 0x98
leave
ret

Function at 0x4046c7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x495180]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x110], 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.0044ca00
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x10c]
push eax
mov ecx, edi
call fcn.00404603
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0044d0a7
leave
ret
Function at 0x404816
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x318
lea ebp, [esp - 4]
mov eax, dword [0x495180]
xor eax, ebp
mov dword [ebp + 0x318], eax
push 0x10
mov eax, 0x468ad5
call fcn.0044d0b6
mov eax, dword [ebp + 0x328]
and dword [ebp - 4], 0
mov edi, dword [ebp + 0x324]
and dword [ebp - 0x14], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x1c], edi
call fcn.004047d8
mov esi, 0x105
push esi
xor ebx, ebx
lea eax, [ebp + 0x108]
push 0
inc ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0044ca00
add esp, 0x10
push esi
lea eax, [ebp + 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push esi
lea eax, [ebp]
push 0
push eax
call fcn.0044ca00
add esp, 0xc
push esi
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
lea eax, [ebp + 0x210]
push 0
push eax
call fcn.0044ca00
add esp, 0xc
lea eax, [ebp + 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push dword [ebp - 0x18]
mov ecx, edi
call fcn.00404603
push dword [ebp - 0x10]
mov ecx, edi
push str.APPPATH
mov dword [ebp - 0x14], ebx
call fcn.00403c1f
lea eax, [ebp + 0x108]
push eax
push str.SYSTEMPATH
mov ecx, edi
call fcn.00403c1f
lea eax, [ebp]
push eax
push str.WINDOWSPATH
mov ecx, edi
call fcn.00403c1f
lea eax, [ebp + 0x210]
push eax
push str.TEMPPATH
mov ecx, edi
call fcn.00403c1f
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401264
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x318]
xor ecx, ebp
call fcn.0044d0a7
add ebp, 0x31c
leave
ret
Function at 0x4064e9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0xa4
mov eax, dword [0x495180]
xor eax, ebp
mov dword [ebp + 0x64], eax
mov eax, dword [ebp + 0x7c]
mov ecx, dword [ebp + 0x70]
mov edx, dword [ebp + 0x74]
push edi
mov edi, dword [ebp + 0x78]
test eax, eax
jne 0x406521
lea eax, [ebp - 0x38]
push eax
push 1
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
jmp 0x406535
push ebx
lea ebx, [ebp - 0x38]
push ebx
or eax, 1
push eax
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop ebx
test eax, eax
je 0x40653d
xor eax, eax
jmp 0x406570
test edi, edi
je 0x406562
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0
push edi
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], 0x96
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406539
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp + 0x64]
xor ecx, ebp
pop edi
call fcn.0044d0a7
add ebp, 0x68
leave
ret
Function at 0x409384
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x100
lea ebp, [esp - 4]
mov eax, dword [0x495180]
xor eax, ebp
mov dword [ebp + 0x100], eax
push 0x44
mov eax, 0x46917d
call fcn.0044d0e9
mov ecx, dword [ebp + 0x10c]
mov eax, dword [ebp + 0x118]
mov esi, dword [ebp + 0x110]
mov edi, dword [ebp + 0x114]
xor ebx, ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], ebx
call fcn.0040396b
xor eax, eax
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x11c]
cmp eax, ebx
jne 0x4093ee
lea eax, [ebp - 0x14]
push eax
push 0x20019
jmp 0x4093f8
lea ecx, [ebp - 0x14]
push ecx
or eax, 0x20019
push eax
push ebx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4094ba
push 0xfe
lea eax, [ebp + 1]
push ebx
push eax
mov byte [ebp], bl
call fcn.0044ca00
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x30], 0xff
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], 4
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x4094b1
push dword [ebp - 0x18]
call fcn.0044f653
pop ecx
mov edi, eax
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x24]
push eax
push ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x4094aa
cmp dword [ebp - 0x24], 1
jne 0x4094aa
mov ecx, dword [ebp - 0x20]
push edi
call fcn.004040bc
push edi
call fcn.0044cc33
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x100]
xor ecx, ebp
call fcn.0044d0a7
add ebp, 0x104
leave
ret