joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402ce3
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
movzx eax, byte [esi]
push eax
push 0x13ed
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 1]
push eax
push 0x13ee
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 2]
push eax
push 0x13ef
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 3]
push eax
push 0x13f0
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 4]
push eax
push 0x13fb
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 5]
push eax
push 0x13f1
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 6]
push eax
push 0x13f2
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 7]
push eax
push 0x13f3
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 8]
push eax
push 0x13f4
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 9]
push eax
push 0x13f5
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 0xa]
push eax
push 0x13f6
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 0xb]
push eax
push 0x13f7
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 0xc]
push eax
push 0x13f8
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 0xd]
push eax
push 0x13fa
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 0xe]
push eax
push 0x13f9
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 0xf]
push eax
push 0x13fc
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 0x10]
push eax
push 0x13fd
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 0x11]
push eax
push 0x13fe
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 0x14]
push eax
push 0x13ff
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 0x15]
push eax
push 0x1400
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 0x16]
push eax
push 0x1401
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 0x17]
push eax
push 0x1402
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 0x18]
mov ebp, 0x1403
push eax
push ebp
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 0x19]
lea ebx, [ebp + 1]
push eax
push ebx
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 0x1a]
push eax
push 0x1405
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 0x17]
push eax
push ebp
push edi
call fcn.004010b0
movzx eax, byte [esi + 0x17]
push eax
push ebx
push edi
call fcn.004010b0
cmp byte [esi + 0x17], 0
je 0x402ec2
call fcn.00405301
test al, al
je 0x402ec2
mov al, 1
jmp 0x402ec4
xor al, al
push eax
push 0x1405
push edi
call fcn.004010b0
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x403dc0
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x1058
call fcn.0040a9a0
mov eax, dword [0x42b7a4]
xor eax, esp
mov dword [esp + 0x1054], eax
push ebx
mov ebx, dword [esp + 0x1064]
push ebp
mov ebp, dword [esp + 0x1064]
push edi
mov edi, ecx
mov dword [esp + 0xc], ebp
and dword [edi + 0x1034], 0
cmp byte [edi + 0x30], 0
jne 0x403e05
test bl, 4
jne 0x403e05
xor al, al
jmp 0x403e07
mov al, 1
push esi
mov esi, ebx
shr esi, 1
not esi
and esi, 1
inc esi
shl esi, 0x1e
test bl, 1
je 0x403e20
or esi, 0x40000000
shr ebx, 3
not ebx
and ebx, 1
test al, al
je 0x403e2f
or ebx, 2
lea ecx, [esp + 0x1c]
call fcn.0040124f
cmp byte [edi + 0x24], 0
je 0x403e44
or esi, 0x100
push 0
push 0x8000000
push 3
push 0
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x403eab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push 0x800
push eax
push dword [esp + 0x18]
call fcn.0040589d
test al, al
je 0x403eb8
push 0
push 0x8000000
push 3
push 0
push ebx
push esi
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x403eb3
mov dword [esp + 0x14], eax
jmp 0x403eb3
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
cmp ebp, 0xffffffff
jne 0x403ec9
cmp dword [esp + 0x14], 2
jne 0x403ec9
mov dword [edi + 0x1034], 1
cmp byte [edi + 0x24], 0
pop esi
je 0x403eef
cmp ebp, 0xffffffff
je 0x403eef
or dword [esp + 0x10], 0xffffffff
lea eax, [esp + 0x10]
or dword [esp + 0x14], 0xffffffff
push 0
push eax
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileTime]
xor eax, eax
cmp ebp, 0xffffffff
mov byte [edi + 0x1c], al
mov dword [edi + 0x10], eax
setne bl
mov byte [edi + 0x15], al
je 0x403f1b
push 0x800
push dword [esp + 0x10]
lea ecx, [edi + 0x32]
mov dword [edi + 8], ebp
push ecx
call fcn.00407851
mov byte [edi + 0x25], 0
mov ecx, dword [esp + 0x1060]
mov al, bl
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040a986
add esp, 0x1058
ret 8
Function at 0x404341
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x18
cmp dword [esp + 0x20], 0
push ebp
mov ebp, ecx
jne 0x404355
mov al, 1
jmp 0x404509
cmp dword [ebp + 0x10], 1
push ebx
push esi
push edi
lea edi, [ebp + 8]
mov dword [esp + 0x14], edi
jne 0x404371
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [edi], eax
jmp 0x404375
mov dword [esp + 0x14], edi
and dword [esp + 0x10], 0
xor bl, bl
cmp dword [ebp + 0x10], 0
je 0x4043c9
xor esi, esi
cmp dword [esp + 0x30], esi
jbe 0x4043f1
mov eax, dword [esp + 0x30]
sub eax, esi
cmp eax, 0x4000
jb 0x40439c
mov eax, 0x4000
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, dword [esp + 0x38]
add eax, esi
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete bl
jne 0x4043e9
add esi, 0x4000
cmp esi, dword [esp + 0x30]
jb 0x40438a
jmp 0x4043e9
push 0
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x38]
push dword [esp + 0x38]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
test bl, bl
jne 0x404500
cmp byte [ebp + 0x1e], 0
je 0x404500
cmp dword [ebp + 0x10], 0
jne 0x404500
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp]
mov edi, eax
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x420294]
mov ecx, ebp
call esi
mov dword [esp + 0x1c], eax
lea eax, [ebp + 0x32]
push eax
mov dword [esp + 0x24], edx
call fcn.004045e9
push edi
mov dword [esp + 0x1c], eax
mov esi, edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
cmp esi, edi
jb 0x404493
ja 0x40444f
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x30]
jbe 0x404493
mov edx, dword [esp + 0x1c]
mov ecx, edx
sub ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x20]
mov eax, esi
sbb eax, edi
cmp eax, edi
jg 0x404493
jl 0x40446c
cmp ecx, 0xffffffff
ja 0x404493
mov ecx, dword [esp + 0x30]
mov eax, edi
add ecx, edx
adc eax, esi
mov dword [esp + 0x24], eax
js 0x404493
jg 0x404483
cmp ecx, 0xffffffff
jbe 0x404493
lea esi, [ebp + 0x32]
mov ecx, 0x42e1c0
push esi
call fcn.004038f8
jmp 0x404496
lea esi, [ebp + 0x32]
push edi
push esi
mov ecx, 0x42e1c0
call fcn.0040376e
test al, al
je 0x4044f4
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
cmp eax, dword [esp + 0x30]
jae 0x404375
test eax, eax
je 0x404375
mov edi, dword [ebp]
push 0
mov esi, dword [edi + 0x14]
mov ecx, esi
call dword [0x420294]
mov ecx, ebp
call esi
sub eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x10]
sbb edx, 0
push edx
push eax
call dword [0x420294]
mov ecx, ebp
call dword [edi + 0x10]
mov edi, dword [esp + 0x14]
jmp 0x404375
push esi
push edi
mov ecx, 0x42e1c0
call fcn.004038f5
pop edi
pop esi
mov al, bl
mov byte [ebp + 0xc], 1
pop ebx
pop ebp
add esp, 0x18
ret 8
Function at 0x404588
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0040a9a0
mov eax, dword [0x42b7a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4045d7
push 0x800
lea eax, [ebp - 0x1004]
push eax
push edi
call fcn.0040589d
test al, al
je 0x4045d7
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0040a986
leave
ret 4

Function at 0x4045e9
Capabilities:
Get disk size

Disassembly:
push ebp
lea ebp, [esp - 0xf9c]
mov eax, 0x101c
call fcn.0040a9a0
mov eax, dword [0x42b7a4]
xor eax, ebp
mov dword [ebp + 0xf98], eax
mov eax, dword [ebp + 0xfa4]
lea ecx, [ebp - 0x68]
push 0x800
push ecx
push eax
call fcn.004057d2
and dword [ebp - 0x6c], 0
lea eax, [ebp - 0x78]
and dword [ebp - 0x70], 0
lea ecx, [ebp - 0x68]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x70]
push eax
movzx eax, word [ebp - 0x68]
neg eax
sbb eax, eax
and eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x40465b
mov edx, dword [ebp - 0x6c]
cmp edx, dword [ebp - 0x74]
ja 0x40465b
xor eax, eax
add eax, dword [ebp - 0x70]
adc edx, 0
jmp 0x40465f
xor eax, eax
xor edx, edx
mov ecx, dword [ebp + 0xf98]
xor ecx, ebp
call fcn.0040a986
add ebp, 0xf9c
leave
ret 4

Function at 0x404699
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0040a9a0
mov eax, dword [0x42b7a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00405ba0
movzx eax, word [eax]
cmp eax, 0x2e
je 0x4046d4
cmp eax, 0x20
je 0x4046d4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x404707
push esi
call fcn.00404576
test al, al
jne 0x40471a
push 0x800
lea eax, [ebp - 0x1004]
push eax
push esi
call fcn.0040589d
test al, al
je 0x40471a
push 0
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40471a
cmp byte [ebp + 0xc], 0
je 0x404716
push dword [ebp + 0x10]
push esi
call fcn.00404741
xor eax, eax
jmp 0x404732
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
push 2
pop eax
cmp ecx, eax
je 0x404732
xor eax, eax
cmp ecx, 3
sete al
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040a986
leave
ret 0xc
Function at 0x404741
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0040a9a0
mov eax, dword [0x42b7a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test eax, eax
jne 0x40479b
push 0x800
lea eax, [ebp - 0x1004]
push eax
push esi
call fcn.0040589d
test al, al
je 0x40479b
push dword [ebp + 0xc]
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a986
leave
ret 8
Function at 0x40507d
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov eax, 0x1254
call fcn.0040a9a0
mov eax, dword [0x42b7a4]
xor eax, esp
mov dword [esp + 0x1250], eax
push ebx
mov ebx, dword [esp + 0x1260]
lea eax, [esp + 4]
push ebp
push esi
mov esi, dword [esp + 0x1264]
or ebp, 0xffffffff
push edi
mov edi, dword [esp + 0x1270]
push eax
cmp esi, ebp
jne 0x40511d
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, ebp
jne 0x405138
push 0x800
lea eax, [esp + 0x264]
push eax
push ebx
call fcn.0040589d
test al, al
je 0x4050f7
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, ebp
jne 0x405138
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x405110
cmp eax, 3
je 0x405110
cmp eax, 0x12
je 0x405110
mov al, 1
jmp 0x405112
xor al, al
mov byte [edi + 0x1044], al
jmp 0x4051e0
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405138
mov esi, ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
jmp 0x405112
mov ebp, 0x800
push ebp
push ebx
push edi
call fcn.00407851
push ebp
lea eax, [esp + 0x40]
push eax
push edi
call fcn.00405c32
mov ecx, dword [esp + 0x2c]
xor eax, eax
add eax, dword [esp + 0x30]
mov dword [edi + 0x1000], eax
mov eax, dword [esp + 0x10]
adc ecx, 0
mov dword [edi + 0x1008], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 0x1004], ecx
mov ecx, dword [esp + 0x18]
mov dword [edi + 0x1028], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x102c], ecx
mov ecx, dword [esp + 0x20]
mov dword [edi + 0x1030], eax
mov eax, dword [esp + 0x24]
mov dword [edi + 0x1034], ecx
mov ecx, dword [esp + 0x28]
mov dword [edi + 0x1038], eax
lea eax, [esp + 0x24]
mov dword [edi + 0x103c], ecx
lea ecx, [edi + 0x1010]
push eax
call fcn.00407aae
lea eax, [esp + 0x14]
push eax
lea ecx, [edi + 0x1018]
call fcn.00407aae
lea eax, [esp + 0x1c]
push eax
lea ecx, [edi + 0x1020]
call fcn.00407aae
and dword [edi + 0x1040], 0
mov eax, esi
mov ecx, dword [esp + 0x1260]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040a986
add esp, 0x1254
ret 0xc

Function at 0x405301
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x42b7a4]
xor eax, ebp
mov dword [ebp + 0x94], eax
cmp byte [0x42e1d8], 0
jne 0x405364
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 0xa
ja 0x405354
jne 0x405350
cmp dword [ebp - 0x74], 0x55f0
jb 0x405350
call fcn.004053ac
test al, al
je 0x405354
xor al, al
jmp 0x405356
mov al, 1
mov byte [0x42e1d9], al
mov byte [0x42e1d8], 1
jmp 0x405369
mov al, byte [0x42e1d9]
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.0040a986
add ebp, 0x98
leave
ret
Function at 0x405815
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov word [esi], ax
lea eax, [ebp - 4]
push eax
push 1
push ebx
push str.SoftwareWinRARPaths
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [ebp + 0xc]
test eax, eax
jne 0x40586a
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push ebx
push str.AppData
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [esi], bx
je 0x405879
push esi
call fcn.00404576
test al, al
jne 0x405896
push dword [ebp + 0x10]
push edi
push esi
call fcn.004056e9
test al, al
jne 0x405896
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
call fcn.00405c06
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40589d
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.0040a9a0
mov eax, dword [0x42b7a4]
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 0x405a36
push esi
call fcn.00405a53
push esi
call fcn.0040e348
pop ecx
push esi
mov ebx, eax
call fcn.00405a7e
test al, al
je 0x405976
push esi
call fcn.00405a53
test al, al
je 0x40592f
lea eax, [ebx + 4]
cmp dword [esp + 0x1020], eax
jbe 0x405a36
push dword [esp + 0x1020]
push 0x4216b4
push edi
call fcn.00407851
push dword [esp + 0x1020]
push esi
push edi
call fcn.00407829
mov al, 1
jmp 0x405a38
push 0x5c
pop eax
cmp word [esi], ax
jne 0x405a36
lea ebp, [esi + 2]
cmp word [ebp], ax
jne 0x405a36
mov esi, dword [esp + 0x1020]
lea eax, [ebx + 6]
cmp esi, eax
jbe 0x405a36
push esi
push 0x4216b4
push edi
call fcn.00407851
push esi
push 0x4216c0
push edi
call fcn.00407829
push esi
push ebp
jmp 0x405922
lea eax, [esp + 0x10]
mov ebp, 0x7ff
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x405a36
cmp eax, ebp
ja 0x405a36
movzx eax, word [esi]
push eax
call fcn.00405ab3
test al, al
je 0x4059db
lea eax, [ebx + 6]
mov ebx, dword [esp + 0x1020]
cmp ebx, eax
jbe 0x405a36
push ebx
push 0x4216b4
push edi
call fcn.00407851
xor eax, eax
mov word [esp + 0x14], ax
lea eax, [esp + 0x10]
push ebx
push eax
push edi
call fcn.00407829
push ebx
jmp 0x405921
push 0x800
lea eax, [esp + 0x14]
push eax
call fcn.00405676
lea eax, [esp + 0x10]
push eax
call fcn.0040e348
add ebx, 4
add eax, ebx
mov ebx, dword [esp + 0x1024]
pop ecx
cmp ebx, eax
jbe 0x405a36
push ebx
push 0x4216b4
push edi
call fcn.00407851
push ebx
lea eax, [esp + 0x14]
push eax
push edi
call fcn.00407829
cmp word [esi], 0x2e
jne 0x4059d5
movzx eax, word [esi + 2]
push eax
call fcn.00405ab3
test al, al
je 0x4059d5
add esi, 4
jmp 0x4059d5
xor al, al
mov ecx, dword [esp + 0x1010]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040a986
add esp, 0x1004
ret 0xc
Function at 0x407137
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.0040a9a0
mov eax, dword [0x42b7a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
cmp esi, edi
je 0x407164
push dword [ebp + 0x10]
push edi
push esi
call fcn.00407851
lea eax, [ebp - 0x2008]
push eax
push 1
push 0
push str.SoftwareWinRARGeneral
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407239
push edi
call fcn.0040e348
pop ecx
mov ecx, 0x7ff
sub ecx, eax
lea eax, [ebp - 0x200c]
push eax
lea eax, [ebp - 0x2004]
add ecx, ecx
push eax
lea eax, [ebp - 0x2010]
mov dword [ebp - 0x200c], ecx
push eax
push 0
push str.LanguageFolder
push dword [ebp - 0x2008]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40722d
push ebx
mov word [ebp - 0x1004], ax
mov ebx, 0x800
push ebx
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ebx
lea eax, [ebp - 0x1004]
push eax
call fcn.00405676
push ebx
push edi
call fcn.00405bbc
push eax
lea eax, [ebp - 0x1004]
push eax
call fcn.00407829
lea eax, [ebp - 0x1004]
push eax
call fcn.00404576
pop ebx
test al, al
je 0x40722d
push dword [ebp + 0x10]
lea eax, [ebp - 0x1004]
push eax
push esi
call fcn.00407851
push dword [ebp - 0x2008]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040a986
leave
ret 0xc

Function at 0x407249
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x10a0]
mov eax, 0x1120
call fcn.0040a9a0
mov eax, dword [0x42b7a4]
xor eax, ebp
mov dword [ebp + 0x109c], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10ac]
mov ebx, ecx
call fcn.004073c2
lea eax, [ebp + 0x9c]
mov esi, 0x800
push esi
test edi, edi
je 0x407291
push edi
push eax
call fcn.00407851
jmp 0x40729a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push str.rarlng.dll
lea eax, [ebp + 0x9c]
push eax
call fcn.00405c32
push esi
lea eax, [ebp + 0x9c]
push eax
push eax
call fcn.00407137
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 2
pop eax
cmp dword [ebp - 0x70], eax
jne 0x4072f6
cmp dword [ebp - 0x7c], 5
ja 0x4072e4
jne 0x4072f6
cmp word [ebp + 0x94], ax
jb 0x4072f6
push eax
push 0
lea eax, [ebp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x407303
lea eax, [ebp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [0x42e148], eax
pop edi
setne al
mov byte [ebx], al
test al, al
mov eax, dword [ebp + 0x10a8]
pop esi
pop ebx
jne 0x407321
mov dword [0x42e148], eax
mov ecx, dword [ebp + 0x109c]
xor ecx, ebp
mov dword [0x42e14c], eax
call fcn.0040a986
add ebp, 0x10a0
leave
ret 8
Function at 0x4088fa
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x5a4
mov eax, dword [0x42b7a4]
xor eax, esp
mov dword [esp + 0x5a0], eax
push ebp
push esi
mov esi, dword [esp + 0x5b4]
xor ebp, ebp
push edi
mov edi, dword [esp + 0x5b4]
cmp word [esi], bp
je 0x4089d1
lea eax, [esp + 0x10]
push eax
push 0x20019
push ebp
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4089d1
push ebx
lea eax, [esp + 0x18]
mov ebx, ebp
push eax
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push ebp
jmp 0x40899f
lea eax, [esp + 0x20]
push eax
push esi
push str._s_s
lea eax, [esp + 0x1bc]
push 0x200
push eax
call fcn.004035d8
add esp, 0x14
lea eax, [esp + 0x1b0]
push eax
push edi
call fcn.004088fa
lea eax, [esp + 0x18]
inc ebx
push eax
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push ebx
push dword [esp + 0x30]
mov dword [esp + 0x30], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x40895d
push dword [esp + 0x14]
call fcn.00407f48
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop ebx
test eax, eax
jne 0x4089d1
inc dword [0x433318]
mov ecx, dword [esp + 0x5ac]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0040a986
add esp, 0x5a4
ret 8

Function at 0x408a4b
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x42b7a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push edi
push ebx
push esi
call fcn.00408029
test al, al
jne 0x408ac5
push 0x200
lea eax, [ebp - 0x404]
push eax
push ebx
push esi
call fcn.00408da3
test al, al
je 0x408ac5
lea eax, [ebp - 0x408]
push eax
push 0x20006
push 0
lea eax, [ebp - 0x404]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408ac5
push edi
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x408]
call fcn.00407f48
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a986
leave
ret 0xc