joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421ad6
Capabilities:
Get disk size
Get geographical location

Disassembly:
push 0x1c
mov eax, 0x4b044b
call fcn.0048f423
xor esi, esi
push 0x4c4850
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x20], esi
call fcn.00401b1e
mov eax, dword [0x507340]
imul eax, eax
push 0x14
cdq
pop ecx
idiv ecx
mov dword [ebp - 4], esi
cmp edx, 0xe
jne 0x421b15
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
push str.Country
lea ecx, [ebp - 0x18]
call fcn.00401b1e
push 0x505ab0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00408fd9
push 1
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x24], esp
mov esi, esp
push eax
mov byte [ebp - 4], 2
call fcn.00403b5b
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov esi, esp
push eax
mov byte [ebp - 4], 3
call fcn.00403b5b
add eax, 0x10
mov dword [esi], eax
pop ecx
mov byte [ebp - 4], 2
call fcn.00422078
add esp, 0x10
test al, al
jne 0x421baf
mov ecx, dword [ebp + 8]
push 0x4c03a0
call fcn.00401b1e
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00407864
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00407864
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00407864
mov eax, dword [ebp + 8]
jmp 0x421be3
mov esi, dword [ebp - 0x1c]
add esi, 0xfffffff0
push esi
call fcn.00403b5b
mov edi, dword [ebp + 8]
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.00407864
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00407864
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00407864
mov eax, edi
call fcn.0048f3d2
ret

Function at 0x42257b
Capabilities:
Get geographical location

Disassembly:
push 0x10
mov eax, 0x4b05fc
call fcn.0048f423
mov eax, dword [ebp + 8]
push 1
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [ebp - 0x18], esp
mov esi, esp
push eax
call fcn.00403b5b
add eax, 0x10
mov dword [esi], eax
and dword [ebp - 4], 0
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.Country
call fcn.00401b1e
push ecx
mov ecx, esp
push 0x4c4850
mov byte [ebp - 4], 1
call fcn.00401b1e
or dword [ebp - 4], 0xffffffff
call fcn.0042287e
add esp, 0x10
call fcn.0048f3d2
ret
Function at 0x42322d
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x505ef8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x94], eax
call fcn.00423444
mov esi, dword [ebp + 8]
pop ecx
mov dword [ebp - 0x88], eax
test esi, esi
je 0x4233e4
test edi, edi
je 0x4233e4
cmp eax, dword [ebp + 0x14]
ja 0x4233e4
mov edx, dword [0x507340]
push 0xb
lea ecx, [edx + 2]
lea eax, [edx + 1]
imul eax, ecx
imul eax, edx
cdq
pop ecx
idiv ecx
push 3
pop eax
xor edi, edi
cmp edx, eax
jne 0x4232de
mov ecx, edi
mov ebx, dword [0x507340]
mov eax, ebx
cdq
lea esi, [ecx + 1]
idiv esi
mov eax, ebx
sub eax, ecx
imul eax, edx
add eax, ebx
push eax
push 0x4c26c4
call fcn.0049172d
pop ecx
pop ecx
mov ecx, esi
cmp ecx, 0x1e
jl 0x4232aa
mov ebx, dword [ebp - 0x8c]
mov esi, dword [ebp + 8]
mov edx, edi
test ebx, ebx
je 0x423391
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x80], eax
cmp edx, ebx
jae 0x4232fc
movzx ecx, byte [edx + esi]
inc edx
jmp 0x4232fe
mov ecx, edi
cmp edx, ebx
jae 0x42330f
movzx eax, byte [edx + esi]
mov dword [ebp - 0x90], eax
inc edx
jmp 0x423315
mov dword [ebp - 0x90], edi
cmp edx, ebx
jae 0x423320
movzx eax, byte [edx + esi]
inc edx
jmp 0x423322
mov eax, edi
mov ebx, dword [ebp - 0x80]
shl ecx, 8
add ecx, dword [ebp - 0x90]
shl ecx, 8
add ecx, eax
mov eax, ecx
shr eax, 0x12
and eax, 0x3f
inc dword [ebp - 0x80]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx], al
mov ebx, dword [ebp - 0x80]
mov eax, ecx
shr eax, 0xc
and eax, 0x3f
inc dword [ebp - 0x80]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx], al
mov ebx, dword [ebp - 0x80]
mov eax, ecx
shr eax, 6
and eax, 0x3f
and ecx, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx], al
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov eax, ebx
mov ebx, dword [ebp - 0x8c]
mov byte [eax + 1], cl
add eax, 2
mov dword [ebp - 0x80], eax
cmp edx, ebx
jb 0x4232f5
xor edx, edx
push 3
pop ecx
mov eax, ebx
div ecx
mov ecx, dword [ebp - 0x88]
lea edx, [edx*4 + 0x4c49f8]
cmp dword [edx], edi
jle 0x4233bd
mov eax, dword [ebp - 0x84]
dec eax
add eax, ecx
mov byte [eax], 0x3d
inc edi
dec eax
cmp edi, dword [edx]
jl 0x4233b4
mov eax, dword [ebp - 0x94]
mov dword [eax], ecx
call fcn.0042163f
mov ecx, dword [0x507e94]
test al, al
mov edx, 0x4fb1102d
cmove ecx, edx
mov dword [0x507e94], ecx
mov al, 1
jmp 0x4233e6
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048f354
leave
ret
Function at 0x423570
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x530
mov eax, dword [0x505ef8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x507340]
mov eax, ecx
imul eax, ecx
imul eax, ecx
push ebx
push esi
push edi
push 0x18
cdq
pop esi
idiv esi
cmp edx, 6
jne 0x4235cc
mov eax, ecx
push 0x64
cdq
pop ecx
idiv ecx
xor ecx, ecx
push 4
lea eax, [edx + 0x63]
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048dbeb
push eax
call fcn.0048fbd7
pop ecx
pop ecx
mov ecx, dword [0x507340]
imul ecx, ecx
mov eax, ecx
push 0x15
cdq
pop ecx
idiv ecx
xor ebx, ebx
cmp edx, 0x11
jne 0x423641
mov esi, ebx
mov edi, 0xa5
call fcn.0048f9e0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
inc esi
movsd qword [ebp + esi*8 - 0x534], xmm0
cmp esi, edi
jb 0x4235e5
mov eax, ebx
mov edx, 0xa4
mov ecx, edx
cmp eax, edx
jge 0x42363c
movsd xmm0, qword [ebp + ecx*8 - 0x52c]
movsd xmm1, qword [ebp + ecx*8 - 0x534]
comisd xmm0, xmm1
jbe 0x423637
movsd qword [ebp + ecx*8 - 0x52c], xmm1
movsd qword [ebp + ecx*8 - 0x534], xmm0
dec ecx
cmp ecx, eax
jg 0x42360d
inc eax
cmp eax, edi
jl 0x423607
lea eax, [ebp - 0x530]
push eax
push 0x2001f
push ebx
push str.Software
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4236f3
push 5
pop edi
push edi
push str.tempo
push 1
mov esi, str.Tempo
push esi
push dword [ebp - 0x530]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
test eax, eax
jne 0x423696
push esi
push dword [ebp - 0x530]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov bl, 1
push dword [ebp - 0x530]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x507340]
mov eax, ecx
imul eax, ecx
push 0xc
cdq
pop esi
idiv esi
cmp edx, 3
jne 0x4236ce
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x50
pop ecx
xor edx, edx
div ecx
lea ecx, [edx + 1]
mov dword [0x507340], ecx
lea eax, [ecx + 1]
imul eax, ecx
cdq
idiv edi
cmp edx, 3
jne 0x4236f3
push 0xac
push 0xab
push str._d__d_n
call fcn.0049172d
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0048f354
leave
ret

Function at 0x423c92
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
call fcn.00424c16
xor ebx, ebx
test al, al
jne 0x423ca8
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x423cbf
test al, 0x10
je 0x423cbf
xor ebx, ebx
inc ebx
mov al, bl
pop ebx
pop ebp
ret
Function at 0x4240a7
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
call fcn.00424b74
test al, al
jne 0x4240d2
push 4
call fcn.0048e498
mov esi, eax
call fcn.0048f9e0
mov dword [esi], eax
push esi
mov dword [0x507340], eax
call fcn.0048e469
pop ecx
pop ecx
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push ebx
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4240f3
xor eax, eax
jmp 0x424146
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
call fcn.00424c34
test al, al
jne 0x424114
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetMailslotInfo]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x507340]
push 0x18
lea eax, [ecx + 1]
imul eax, ecx
cdq
pop ecx
idiv ecx
cmp edx, 7
jne 0x424143
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetMailslotInfo]
xor eax, eax
inc eax
pop esi
pop ebx
pop ebp
ret

Function at 0x42421d
Capabilities:
Query environment variable

Disassembly:
push 0x200
mov eax, 0x4b083f
call fcn.0048f423
mov esi, dword [ebp + 8]
xor edi, edi
xor eax, eax
mov dword [ebp - 0x208], edi
push 0x1f2
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x202]
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x20c], esi
call fcn.004913e0
add esp, 0xc
lea eax, [ebp - 0x204]
push 0xfa
push eax
push str._userprofile_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x204]
push eax
mov ecx, esi
call fcn.00401b1e
mov eax, dword [esi]
mov dword [ebp - 4], edi
mov dword [ebp - 0x208], 1
mov ecx, esi
cmp dword [eax - 0xc], edi
je 0x4242a0
push str.AppDataLocalLow
jmp 0x4242a5
push 0x4c4ad4
call fcn.0040930b
mov eax, esi
call fcn.0048f3d2
ret
Function at 0x4244c5
Capabilities:
Get common file path
Get program files directory
Query environment variable

Disassembly:
push 0x214
mov eax, 0x4b0889
call fcn.0048f423
mov edi, dword [ebp + 8]
xor esi, esi
push 0x505ab0
mov ecx, edi
mov dword [ebp - 4], esi
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x21c], esi
call fcn.00408fd9
mov dword [ebp - 4], esi
mov dword [ebp - 0x21c], 1
call fcn.0042c0d8
test al, al
jne 0x424510
dec dword [0x5081dc]
mov ebx, esi
call fcn.0042bd20
test al, al
je 0x4245aa
mov ecx, dword [0x507340]
lea eax, [ecx + 1]
imul eax, eax
imul eax, ecx
imul eax, ecx
and eax, 0x80000003
jns 0x42453d
dec eax
or eax, 0xfffffffc
inc eax
je 0x42454d
push 1
test ecx, ecx
pop eax
cmove ecx, eax
mov dword [0x507340], ecx
push esi
push esi
push str.ProgramW6432
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4245f7
lea esi, [eax + 1]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048dbeb
pop ecx
push esi
mov ebx, eax
push ebx
push str.ProgramW6432
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
call fcn.00424ccc
test al, al
jne 0x4245a3
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetMailslotInfo]
test esi, esi
je 0x4245ec
push ebx
jmp 0x4245e5
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push esi
push eax
call fcn.004913e0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push 0x26
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4245f7
lea eax, [ebp - 0x218]
push eax
mov ecx, edi
call fcn.00407c3d
test ebx, ebx
je 0x4245f7
push ebx
call fcn.0048fbd7
pop ecx
mov eax, edi
call fcn.0048f3d2
ret
Function at 0x424a5f
Capabilities:
Write file on windows

Disassembly:
push 0
mov eax, 0x4b0972
call fcn.0048f3f0
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x80
push 4
push ebx
push ebx
push 0x40000000
push dword [eax]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x424add
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 0xc]
mov dword [ebp + 8], ebx
mov esi, dword [eax - 0xc]
push ebx
lea ecx, [ebp + 0xc]
call fcn.00406eed
mov ecx, eax
push ebx
lea eax, [ebp + 8]
push eax
lea eax, [esi + esi]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 1
sete bl
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00407864
mov al, bl
call fcn.0048f3be
ret

Function at 0x424d38
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [0x507340]
push ebx
mov eax, ecx
imul eax, ecx
push esi
push edi
push 5
pop esi
cdq
idiv esi
push 2
pop edi
xor ebx, ebx
cmp edx, edi
jne 0x424da7
jmp 0x424da3
mov eax, ecx
and eax, 0x80000001
jns 0x424d69
dec eax
or eax, 0xfffffffe
inc eax
jne 0x424d76
mov eax, ecx
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
jmp 0x424d7d
lea ecx, [ecx*2 + 1]
mov eax, ecx
push 3
cdq
pop esi
idiv esi
mov dword [0x507340], ecx
sub edx, ebx
je 0x424d98
sub edx, edi
je 0x424d9a
dec edx
je 0x424d9b
jmp 0x424da3
add ecx, edi
inc ecx
add ecx, edi
mov dword [0x507340], ecx
test ecx, ecx
jne 0x424d5b
call fcn.00424d12
test al, al
jne 0x424dc4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x50
xor edx, edx
pop ecx
div ecx
inc edx
mov dword [0x507340], edx
mov eax, dword [ebp + 8]
push ebx
push 0x80
push 4
push ebx
push edi
push 0x40000000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
call fcn.00424b74
test al, al
jne 0x424dff
call fcn.0048f9e0
mov ecx, dword [0x507340]
cmp ecx, eax
jne 0x424dff
dec ecx
mov dword [0x507340], ecx
cmp esi, 0xffffffff
je 0x424e41
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 0xc]
push ebx
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], ebx
push dword [eax - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x424e3a
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x4251b4
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x24
mov eax, 0x4b09e0
call fcn.0048f3f0
cmp byte [0x501328], 0
jne 0x4251d3
mov al, byte [0x508310]
jmp 0x4253ab
xor ebx, ebx
push str.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX0000000
lea ecx, [ebp - 0x14]
mov byte [0x501328], bl
call fcn.00401b1e
push str.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call fcn.00401b1e
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 1
mov ecx, dword [eax - 0xc]
mov eax, dword [ebp - 0x1c]
sub ecx, dword [eax - 0xc]
lea eax, [ebp - 0x10]
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.00409a87
mov byte [ebp - 4], 2
jmp 0x425253
js 0x425303
cmp word [esi], 0x30
jne 0x42525d
lea eax, [ecx - 1]
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x10]
call fcn.00409a87
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00402394
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 2
lea ecx, [ecx - 0x10]
call fcn.00407864
mov esi, dword [ebp - 0x10]
mov ecx, dword [esi - 0xc]
test ecx, ecx
jne 0x42521b
mov eax, dword [0x5084b0]
test eax, eax
je 0x42526d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SoftwareBrowserExten
lea ecx, [ebp - 0x28]
call fcn.00401b1e
push str.sionsProxySettings_
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 4
call fcn.00409229
lea ecx, [ebp - 0x10]
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 5
call fcn.004091d4
add esp, 0x18
push 0x5084b0
push 0x20019
push ebx
push dword [eax]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x20]
test eax, eax
lea ecx, [ecx - 0x10]
setne bl
call fcn.00407864
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00407864
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 2
lea ecx, [ecx - 0x10]
call fcn.00407864
test bl, bl
je 0x42530d
call fcn.00429001
xor ebx, ebx
test al, al
jne 0x42538b
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileType]
jmp 0x42538b
push 0x80070057
call fcn.00403784
xor edi, edi
push str.UseLoc
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x2c], 4
call fcn.00401b1e
push str.alSettings
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 6
call fcn.00409229
add esp, 0xc
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push edi
push dword [eax]
push dword [0x5084b0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x28]
test eax, eax
lea ecx, [ecx - 0x10]
setne bl
call fcn.00407864
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00407864
test bl, bl
je 0x42537d
xor ebx, ebx
jmp 0x42538b
cmp dword [ebp - 0x18], 0
setne al
mov byte [0x508310], al
mov bl, al
lea ecx, [esi - 0x10]
call fcn.00407864
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00407864
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00407864
mov al, bl
call fcn.0048f3be
ret
Function at 0x42b943
Capabilities:
Check os version

Disassembly:
push 0xc
mov eax, 0x4b1589
call fcn.0048f3f0
mov edi, dword [ebp + 8]
and dword [ebp - 0x18], 0
call fcn.0042be47
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, eax
shr eax, 8
movzx eax, al
movzx ebx, cl
mov dword [ebp - 0x14], eax
cmp ecx, 0x80000000
jae 0x42b97e
mov esi, ecx
shr esi, 0x10
cmp ebx, 6
jb 0x42b991
cmp eax, 2
jb 0x42b991
push edi
call fcn.0042b9d8
pop ecx
jmp 0x42b9d0
push 0x505ab0
lea ecx, [ebp - 0x10]
call fcn.00408fd9
and dword [ebp - 4], 0
push esi
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push ebx
push 0x4c571c
push eax
call fcn.00405092
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
push esi
call fcn.00403b5b
add eax, 0x10
add esp, 0x18
mov ecx, esi
mov dword [edi], eax
call fcn.00407864
mov eax, edi
call fcn.0048f3be
ret

Function at 0x42c341
Capabilities:
Get disk size

Disassembly:
push 4
mov eax, 0x4b16ff
call fcn.0048f3f0
xor esi, esi
mov dword [ebp - 0x10], esi
mov ecx, dword [ebp + 8]
push 0x505ab0
mov dword [ebp - 4], esi
call fcn.00408fd9
mov eax, dword [0x507340]
xor edx, edx
lea ecx, [eax + 1]
imul ecx, eax
inc edx
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], edx
and ecx, 0x8000000f
jns 0x42c383
dec ecx
or ecx, 0xfffffff0
inc ecx
cmp ecx, edx
jne 0x42c392
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
push dword [ebp + 0xc]
push str.0x_x
push dword [ebp + 8]
call fcn.00405092
mov eax, dword [ebp + 8]
add esp, 0xc
call fcn.0048f3be
ret
Function at 0x436001
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x4b26e2
call fcn.0048f48f
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], ebx
push 0x60
push ebx
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x43607e
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x43607e
call fcn.004035fb
mov esi, eax
jmp 0x436155
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4360a1
call fcn.004035fb
jmp 0x436148
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
test eax, eax
je 0x436097
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x4360d1
mov esi, 0x8007000e
jmp 0x43614a
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00433bbd
jmp 0x4360f7
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x4360ca
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x420]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x436097
mov eax, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor edx, edx
mov word [eax + ecx*2], dx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.00435ec8
mov esi, eax
test edi, edi
je 0x436155
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x43616e
lea ecx, [ebp - 0x418]
call fcn.00435602
mov eax, esi
call fcn.0048f3e1
ret 0x10
Function at 0x4384b2
Capabilities:
Encode data using xor

Disassembly:
push 8
mov eax, 0x4b2a4d
call fcn.0048f3f0
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov ecx, dword [ebp + 8]
xor esi, esi
inc esi
push 0x4c49e0
mov dword [ebp - 4], esi
call fcn.00416f4a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], esi
mov esi, ebx
cmp dword [eax - 0xc], ebx
jle 0x43852b
push esi
lea ecx, [ebp + 0xc]
call fcn.00409650
mov byte [ebp - 0x10], al
lea eax, [esi + 1]
push eax
lea ecx, [ebp + 0xc]
call fcn.00409650
push 0x10
mov byte [ebp - 0xf], al
lea eax, [ebp - 0x10]
push ebx
push eax
mov byte [ebp - 0xe], bl
call fcn.004945c4
mov ecx, dword [ebp + 8]
xor al, 0x2d
cbw
movzx eax, ax
add esp, 0xc
push eax
call fcn.004380c7
mov eax, dword [ebp + 0xc]
add esi, 2
cmp esi, dword [eax - 0xc]
jl 0x4384e3
lea ecx, [eax - 0x10]
call fcn.00407864
mov eax, dword [ebp + 8]
call fcn.0048f3be
ret

Function at 0x438b5d
Capabilities:
Encode data using xor

Disassembly:
push 0xc
mov eax, 0x4b2b15
call fcn.0048f3f0
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x14], esi
mov eax, dword [eax]
sub eax, 0x10
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], edi
call fcn.00403b5b
add eax, 0x10
mov dword [edi], eax
mov dword [esp], 0x4c4a30
push str.AND_
mov ecx, edi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], 1
call fcn.0041896a
call fcn.00439059
test al, al
jne 0x438bbc
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
push 0x4c6e74
push 0x4c6e78
mov ecx, edi
call fcn.0041896a
mov ecx, dword [0x507340]
mov eax, ecx
imul eax, ecx
imul eax, ecx
push 0xe
cdq
pop ebx
idiv ebx
cmp edx, 5
jne 0x438c18
mov ebx, esi
mov dword [ebp - 0x10], 0x54
jmp 0x438c04
mov eax, ecx
or eax, 0xffffff24
add ecx, eax
mov eax, ecx
imul eax, ecx
inc ebx
cmp ebx, eax
jg 0x438c12
mov eax, ecx
cdq
idiv dword [ebp - 0x10]
cmp edx, 0x9f
jne 0x438bf1
mov dword [0x507340], ebx
push 0x4c6e88
push str.___R0
mov ecx, edi
call fcn.0041896a
call fcn.004390fb
test al, al
jne 0x438c39
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
push 0x4c03a0
push str._L_
mov ecx, edi
call fcn.0041896a
call fcn.0043907b
test al, al
jne 0x438c80
mov edx, dword [0x507340]
push 8
mov ecx, esi
pop ebx
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edx
sar ecx, 1
xor ecx, eax
dec ebx
jne 0x438c5e
add edx, ecx
inc esi
cmp esi, 0x100
jl 0x438c59
mov dword [0x507340], edx
mov eax, edi
call fcn.0048f3be
ret