joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ece0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x8c
mov eax, dword [0x459800]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
mov ebx, dword [esp + 0x94]
push ebp
push esi
mov eax, ebx
push edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41ed04
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x10]
mov ebp, eax
call fcn.00439e90
lea ecx, [esp + 0x10]
call fcn.0043a190
lea ecx, [esp + 0x10]
call fcn.00439fa0
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.00439c70
mov ecx, edi
shr ecx, 0xa
xor eax, ecx
xor edi, eax
xor esi, esi
cmp esi, 0x64
jbe 0x41ed4f
mov eax, edi
jmp 0x41ed63
mov eax, 0x10624dd3
mul edi
shr edx, 6
imul edx, edx, 0x3e8
mov eax, edi
sub eax, edx
push eax
push esi
lea edx, [esp + 0x3c]
push 0x4528f4
push edx
mov edx, 0x32
call fcn.00433380
lea eax, [esp + 0x44]
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41ed83
sub eax, edx
sar eax, 1
add eax, ebp
cmp eax, dword [esp + 0xa4]
jae 0x41edf1
cmp esi, 0x3e8
je 0x41edf1
lea eax, [esp + 0x34]
mov edx, eax
lea ecx, [ebp + ebp]
sub ecx, edx
lea edx, [ecx + ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x41edb4
call fcn.00420cd0
test eax, eax
je 0x41eded
test ebx, ebx
je 0x41eded
cmp word [ebx], 0
je 0x41eded
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
test al, al
je 0x41eded
inc esi
jmp 0x41ed46
mov eax, ebx
jmp 0x41edf3
xor eax, eax
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00443023
add esp, 0x8c
ret 8

Function at 0x41efd0
Capabilities:
Delete file

Disassembly:
xor eax, eax
sub esp, 0x20
cmp dword [ecx + 0xc], eax
jbe 0x41f028
mov dword [ecx + 0xc], eax
mov ecx, dword [ecx]
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0x10], eax
mov dword [esp], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], ax
lea edx, [esp]
mov eax, 0x54
push edx
mov dword [esp + 8], 3
mov word [esp + 0x14], ax
mov dword [esp + 0xc], ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb eax, eax
inc eax
add esp, 0x20
ret
mov al, 1
add esp, 0x20
ret
Function at 0x41f100
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4507a6
mov eax, dword fs:[0]
push eax
mov eax, 0x18e0
call fcn.00443040
mov eax, dword [0x459800]
xor eax, esp
mov dword [esp + 0x18dc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x459800]
xor eax, esp
push eax
lea eax, [esp + 0x18f4]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1904]
mov edi, dword [esp + 0x1908]
lea ecx, [esp + 0x30]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
call fcn.0041cba0
push 1
push edi
xor ebx, ebx
push esi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1908], ebx
call fcn.0041cfe0
test al, al
je 0x41f23b
lea ecx, [esp + 0x30]
call fcn.0041cef0
mov edi, 0x10000
push edi
mov dword [esp + 0x20], eax
mov ebp, edx
call fcn.00443137
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
cmp esi, ebx
jne 0x41f1ad
mov ecx, 0x463e7c
call fcn.00418ae0
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
push edi
push ebx
push esi
mov byte [esp + 0x1908], 1
call fcn.00443580
add esp, 0xc
xor edi, edi
test ebp, ebp
jl 0x41f1fa
jg 0x41f1d6
cmp dword [esp + 0x1c], edi
jbe 0x41f1fa
push 0x10000
push esi
lea ecx, [esp + 0x38]
call fcn.0041d770
add ebx, 0x10000
adc edi, 0
cmp edi, ebp
jl 0x41f1d6
jg 0x41f1fa
cmp ebx, dword [esp + 0x1c]
jb 0x41f1d6
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0
push 0
push 0
lea ecx, [esp + 0x3c]
call fcn.0041d690
lea ecx, [esp + 0x30]
call fcn.0041ce90
lea ecx, [esp + 0x30]
call fcn.0041cc20
mov byte [esp + 0x18fc], 0
test esi, esi
je 0x41f23b
push esi
call fcn.00442994
add esp, 4
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
push 0x432
lea ecx, [esp + 0xc5c]
push ecx
push edx
lea edi, [esp + 0x14c8]
call fcn.0041f030
test al, al
je 0x41f29f
call fcn.00420cd0
test eax, eax
je 0x41f28a
cmp word [esp + 0xc58], 0
je 0x41f28a
lea eax, [esp + 0xc58]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
jmp 0x41f2cf
lea ecx, [esp + 0x14bc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne bl
jmp 0x41f2cf
call fcn.00420cd0
test eax, eax
je 0x41f2bf
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41f2bf
cmp word [eax], 0
je 0x41f2bf
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x41f2c8
mov edx, ebx
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne al
mov bl, al
lea ecx, [esp + 0x30]
mov dword [esp + 0x18fc], 0xffffffff
call fcn.0041cfb0
mov al, bl
mov ecx, dword [esp + 0x18f4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18dc]
xor ecx, esp
call fcn.00443023
add esp, 0x18ec
ret 8
Function at 0x41f310
Capabilities:
Delete directory

Disassembly:
sub esp, 0xc9c
mov eax, dword [0x459800]
xor eax, esp
mov dword [esp + 0xc98], eax
push ebx
mov ebx, dword [esp + 0xca4]
push esi
mov esi, dword [esp + 0xcac]
push edi
push 0x432
lea eax, [esp + 0x444]
push eax
push esi
lea edi, [esp + 0x18]
call fcn.0041f030
test al, al
je 0x41f37b
call fcn.00420cd0
test eax, eax
je 0x41f374
cmp word [esp + 0x440], 0
je 0x41f374
lea ecx, [esp + 0x440]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x41f39e
lea edx, [esp + 0xc]
push edx
jmp 0x41f398
call fcn.00420cd0
test eax, eax
je 0x41f397
test esi, esi
je 0x41f397
cmp word [esi], 0
je 0x41f397
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x41f39e
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [esp + 0xca4]
pop edi
test eax, eax
pop esi
setne al
pop ebx
xor ecx, esp
call fcn.00443023
add esp, 0xc9c
ret 8
Function at 0x41f3c0
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4507f6
mov eax, dword fs:[0]
push eax
mov eax, 0x41ac
call fcn.00443040
mov eax, dword [0x459800]
xor eax, esp
mov dword [esp + 0x41a8], eax
push ebp
push esi
push edi
mov eax, dword [0x459800]
xor eax, esp
push eax
lea eax, [esp + 0x41bc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x41cc]
push esi
call fcn.00428d80
test al, al
je 0x41f681
push esi
call fcn.0041dc50
test al, al
je 0x41f681
movsx eax, byte [esi]
push eax
lea ecx, [esp + 0x3988]
push 0x45292c
push ecx
call fcn.0044306b
movsx edx, byte [esp + 0x3990]
add esp, 0xc
push edx
push 0xe04
call fcn.00433c40
push eax
call fcn.00414190
add esp, 8
lea ecx, [esp + 0x10]
call fcn.00439310
lea eax, [esp + 0x3984]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x41c8], 0
call fcn.00439370
push 2
push 0
push 2
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1568]
call fcn.00435d60
lea ecx, [esp + 0xccc]
mov byte [esp + 0x41c4], 1
call fcn.00439e90
lea ecx, [esp + 0xcf0]
call fcn.00439e90
lea ecx, [esp + 0xd14]
call fcn.00439e90
lea edx, [esp + 0xb8]
push edx
lea ecx, [esp + 0x155c]
call fcn.004368c0
test eax, eax
jne 0x41f64b
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x41f4f0
mov al, byte [esi]
cmp byte [esp + 0xb8], al
jne 0x41f64b
cmp byte [esp + 0xb9], 0x3a
jne 0x41f64b
mov cx, word [esp + 0x4b8]
test cx, cx
je 0x41f537
movsx eax, al
movzx ecx, cx
cmp ecx, eax
jne 0x41f64b
cmp word [esp + 0x4ba], 0x3a
jne 0x41f64b
call fcn.00420cd0
test eax, eax
je 0x41f559
cmp word [esp + 0x4b8], 0
je 0x41f559
push 0
lea edx, [esp + 0x4bc]
push edx
call edi
jmp 0x41f565
push 0
lea eax, [esp + 0xbc]
push eax
call ebp
cmp byte [esp + 0xcc8], 0
je 0x41f5a9
call fcn.00420cd0
test eax, eax
je 0x41f596
cmp word [esp + 0x4b8], 0
je 0x41f596
lea ecx, [esp + 0x4b8]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x41f62f
lea edx, [esp + 0xb8]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x41f62f
call fcn.00420cd0
test eax, eax
je 0x41f5cd
cmp word [esp + 0x4b8], 0
je 0x41f5cd
lea eax, [esp + 0x4b8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x41f5db
lea ecx, [esp + 0xb8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne al
test al, al
jne 0x41f62f
push 0xd4e
call fcn.00433c40
push eax
lea edx, [esp + 0xbc]
push edx
lea eax, [esp + 0x3d8c]
push str._s____s
push eax
call fcn.0044306b
lea ecx, [esp + 0x3d94]
push ecx
push 0x45260c
push 0
call fcn.004149c0
add esp, 0x1c
call fcn.00413f90
mov ecx, 0x463e7c
call fcn.004186a0
lea edx, [esp + 0xb8]
push edx
lea ecx, [esp + 0x155c]
call fcn.004368c0
test eax, eax
je 0x41f4f0
lea ecx, [esp + 0x1558]
mov byte [esp + 0x41c4], 0
call fcn.00436000
mov eax, dword [esp + 0x20]
test eax, eax
je 0x41f670
push eax
call fcn.00442994
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41f681
push eax
call fcn.00442994
add esp, 4
mov ecx, dword [esp + 0x41bc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x41a8]
xor ecx, esp
call fcn.00443023
add esp, 0x41b8
ret 4
Function at 0x423590
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xb4
mov eax, dword [0x459800]
xor eax, esp
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0xb8]
push ebx
mov ebx, dword [esp + 0xc0]
push ebp
xor edx, edx
push esi
add ebx, 0xffffff88
push edi
add eax, 2
lea edi, [esp + 0x20]
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edi
mov edi, edi
cmp edx, ebx
jge 0x4236f3
lea eax, [esp + 0x48]
sub eax, 2
lea ecx, [eax + 3]
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x48]
sub ecx, eax
add ecx, 0xfffffffd
mov dword [esp + 0x3c], ecx
mov ecx, eax
neg ecx
lea esi, [esp + ecx + 0x48]
mov dword [esp + 0x44], esi
lea esi, [esp + ecx + 0x49]
mov dword [esp + 0x30], esi
lea esi, [esp + 0x48]
sub esi, eax
lea eax, [esp + ecx + 0x4a]
mov ecx, dword [esp + 0x14]
sub ebx, edx
mov dword [esp + 0x40], eax
dec ebx
mov eax, 0x88888889
mul ebx
dec esi
mov ebp, edx
shr ebp, 0xa
mov dword [esp + 0x2c], esi
mov esi, dword [edi]
mov dword [esp + 0x10], ecx
inc ebp
mov eax, dword [esp + 0x10]
xor edi, edi
lea ebx, [ebx]
movzx edx, byte [eax - 2]
mov cl, byte [eax - 1]
sub dl, cl
mov byte [esp + edi + 0x48], dl
movzx edx, byte [eax]
sub dl, cl
mov byte [esp + edi + 0x49], cl
mov byte [esp + edi + 0x4a], dl
add edi, 3
add eax, 3
cmp edi, 0x78
jl 0x423650
mov ecx, dword [esp + 0x34]
mov edi, 0x27
mov edi, edi
mov eax, dword [esp + 0x40]
movzx edx, byte [eax + ecx]
mov eax, dword [esp + 0x2c]
sub dl, byte [eax + ecx]
add ecx, 3
movsx eax, dl
cdq
mov ebx, eax
xor ebx, edx
sub ebx, edx
mov edx, dword [esp + 0x44]
mov al, byte [edx + ecx - 3]
mov edx, dword [esp + 0x3c]
sub al, byte [edx + ecx - 3]
movsx eax, al
cdq
xor eax, edx
sub eax, edx
add ebx, eax
mov eax, dword [esp + 0x30]
movzx edx, byte [eax + ecx - 3]
sub dl, byte [ecx - 3]
movsx eax, dl
cdq
xor eax, edx
sub eax, edx
add eax, esi
sub edi, 1
lea esi, [eax + ebx]
jne 0x423680
add dword [esp + 0x10], 0x780
sub ebp, 1
jne 0x423644
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x38]
mov edx, dword [esp + 0x18]
mov dword [edi], esi
inc dword [esp + 0x14]
inc edx
add edi, 4
cmp edx, 2
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edi
jle 0x4235e0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
cmp eax, ecx
ja 0x42373d
cmp eax, edx
ja 0x42373d
xor eax, eax
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.00443023
add esp, 0xb4
ret 8
cmp edx, ecx
mov ecx, dword [esp + 0xb0]
sbb eax, eax
neg eax
xor ecx, esp
inc eax
call fcn.00443023
add esp, 0xb4
ret 8
Function at 0x4260e0
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 0
push 0
mov esi, ebp
push 1
mov edi, ecx
shl esi, 5
push 0
add esi, edi
call ebx
push 0
push 0
push 1
push 0
mov dword [esi + 8], eax
call ebx
mov dword [esi + 0xc], eax
lea eax, [esp + 0x14]
push eax
push 0
push esi
push 0x424880
push 0x10000
push 0
mov dword [esi + 0x14], 0
mov byte [esi + 0x18], 0
mov byte [esi + 4], 1
mov dword [esi + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
jne 0x426168
push str.CreateThread_failed
mov ecx, 0x463e7c
call fcn.004189e0
mov ecx, 0x463e7c
call fcn.004186a0
push 2
mov ecx, 0x463e7c
call fcn.00418ac0
push 1
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
mov dword [esi], ebx
mov dword [esp + 0x1c], ebp
call fcn.00424990
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4294e0
Capabilities:
Get common file path

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov esi, dword [esp + 0x10]
lea ecx, [esp + 4]
push ecx
push 0x1a
push 0
mov byte [esi], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x429567
mov edx, dword [esp + 4]
push esi
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x429567
cmp byte [esi], 0
je 0x429567
push esi
call fcn.00429420
mov eax, esi
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x429527
mov ecx, dword [0x452b68]
mov dword [eax], ecx
mov dx, word [0x452b6c]
mov word [eax + 4], dx
mov cl, byte [0x452b6e]
push 0
push esi
mov byte [eax + 6], cl
call fcn.0041df30
test al, al
jne 0x429593
push 0
push 0
push 0
push esi
call fcn.0041e5f0
test eax, eax
je 0x429593
push 0x400
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
call fcn.00428f20
lea edx, [esi + 2]
cmp eax, edx
jb 0x429590
cmp byte [esi + 1], 0x3a
jne 0x42958f
add esi, 4
cmp eax, esi
jb 0x429590
dec eax
mov byte [eax], 0
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
pop esi
add esp, 8
ret 4

Function at 0x4295b0
Capabilities:
Get common file path

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov esi, dword [esp + 0x10]
lea edx, [esp + 4]
push edx
xor ecx, ecx
push 0x1a
push ecx
mov word [esi], cx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x42964d
mov eax, dword [esp + 4]
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x42964d
cmp word [esi], 0
je 0x42964d
push esi
call fcn.00428a90
mov eax, esi
add eax, 0xfffffffe
jmp 0x429600
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x429600
mov ecx, dword [0x452b70]
mov dword [eax], ecx
mov edx, dword [0x452b74]
mov dword [eax + 4], edx
mov ecx, dword [0x452b78]
mov dword [eax + 8], ecx
mov dx, word [0x452b7c]
push esi
push 0
mov word [eax + 0xc], dx
call fcn.0041df30
test al, al
jne 0x42967e
push 0
push 0
push esi
push 0
call fcn.0041e5f0
test eax, eax
je 0x42967e
push 0x400
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
call fcn.00428fa0
lea ecx, [esi + 4]
cmp eax, ecx
jb 0x429679
cmp word [esi + 2], 0x3a
jne 0x429676
add esi, 8
cmp eax, esi
jb 0x429679
sub eax, 2
xor edx, edx
mov word [eax], dx
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
pop esi
add esp, 8
ret 4
Function at 0x4296a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
push 1
push 0
push 0x452b88
push 0x80000001
mov byte [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4296f7
lea ecx, [esp + 4]
push ecx
push esi
lea edx, [esp + 0x10]
push edx
push eax
mov eax, dword [esp + 0x20]
push 0x452b80
push eax
mov dword [esp + 0x1c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esi], 0
je 0x429708
push 0
push esi
call fcn.0041df30
test al, al
jne 0x42970e
push esi
call fcn.004294e0
pop esi
add esp, 8
ret 4

Function at 0x429720
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
push 1
xor eax, eax
push eax
push str.SoftwareWinRARPaths
push 0x80000001
mov word [esi], ax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x429779
mov ecx, dword [esp + 0x10]
lea edx, [esp + 4]
push edx
push esi
lea eax, [esp + 0x10]
push eax
push 0
push str.AppData
push ecx
mov dword [esp + 0x1c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [esi], 0
je 0x42978b
push esi
push 0
call fcn.0041df30
test al, al
jne 0x429791
push esi
call fcn.004295b0
pop esi
add esp, 8
ret 4
Function at 0x433ae0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov eax, 0x1010
call fcn.00443040
mov eax, dword [0x459800]
xor eax, esp
mov dword [esp + 0x100c], eax
push ebx
mov ebx, dword [esp + 0x101c]
push ebp
mov ebp, dword [esp + 0x1024]
push esi
mov esi, dword [esp + 0x1020]
cmp ebx, esi
je 0x433b1c
push ebp
push esi
push ebx
call fcn.00438d60
lea eax, [esp + 0xc]
push eax
push 1
push 0
push str.SoftwareWinRARGeneral
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x433c19
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x433b42
sub eax, edx
sar eax, 1
mov ecx, 0x3ff
sub ecx, eax
add ecx, ecx
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x81c]
push eax
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0x452db4
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x433c0e
push 0x400
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x820]
push edx
mov word [esp + 0x24], ax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [esp + 0x18]
push eax
call fcn.00428a90
push esi
call fcn.00428fa0
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x433bc0
push edi
lea edi, [esp + 0x1c]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x433bd5
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
push 0
call fcn.0041df30
pop edi
test al, al
je 0x433c0e
push ebp
lea edx, [esp + 0x1c]
push edx
push ebx
call fcn.00438d60
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1018]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00443023
add esp, 0x1010
ret 0xc
Function at 0x433d40
Capabilities:
Check os version

Disassembly:
sub esp, 0x918
mov eax, dword [0x459800]
xor eax, esp
mov dword [esp + 0x914], eax
push edi
mov edi, ecx
cmp byte [edi], 0
je 0x433d77
mov eax, dword [0x463e78]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [0x463e74]
mov dword [0x463e78], ecx
mov byte [edi], 0
mov eax, dword [esp + 0x924]
lea edx, [esp + 0x118]
test eax, eax
je 0x433da1
sub edx, eax
jmp 0x433d90
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x433d90
jmp 0x433daf
push 0x400
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
lea eax, [esp + 0x11c]
push eax
mov esi, str.rarlng.dll
call fcn.00428fa0
movzx ecx, word [esi]
mov word [eax], cx
add esi, 2
add eax, 2
test cx, cx
jne 0x433dc2
push 0x400
lea ecx, [esp + 0x120]
push ecx
mov edx, ecx
push edx
call fcn.00433ae0
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x18], 2
pop esi
jne 0x433e29
mov eax, dword [esp + 8]
cmp eax, 5
ja 0x433e15
jne 0x433e29
cmp dword [esp + 0xc], 1
jbe 0x433e29
push 2
push 0
lea ecx, [esp + 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x433e37
lea edx, [esp + 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [0x463e78], eax
setne al
mov byte [edi], al
test al, al
mov eax, dword [esp + 0x920]
pop edi
mov dword [0x463e74], eax
jne 0x433e59
mov dword [0x463e78], eax
mov ecx, dword [esp + 0x914]
xor ecx, esp
call fcn.00443023
add esp, 0x918
ret 8
Function at 0x433e70
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [0x459800]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
mov ebp, ecx
mov ecx, 8
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
xor ecx, ecx
xor eax, eax
lea esp, [esp]
cmp edi, 0xa
jg 0x433fcd
cmp eax, 4
jge 0x433ee6
mov edi, edi
cmp ecx, 4
jge 0x433ee9
mov bl, byte [esp + eax*4 + 0x10]
lea edx, [ecx + edi*4]
mov byte [ebp + edx*4 + 0x14], bl
lea edx, [ecx + edi*4]
lea esi, [ebp + edx*4]
movzx edx, byte [esp + eax*4 + 0x11]
mov byte [esi + 0x15], dl
movzx edx, byte [esp + eax*4 + 0x12]
mov byte [esi + 0x16], dl
movzx edx, byte [esp + eax*4 + 0x13]
inc eax
inc ecx
cmp eax, 4
mov byte [esi + 0x17], dl
jl 0x433eb0
cmp ecx, 4
jne 0x433eee
inc edi
xor ecx, ecx
cmp eax, 4
jl 0x433ea0
cmp edi, 0xa
jg 0x433fcd
mov edx, 0x467ed8
movzx esi, byte [esp + 0x1d]
mov al, byte [esp + 0x10]
xor al, byte [esi + 0x467ff8]
movzx esi, byte [esp + 0x1e]
movzx ebx, byte [esi + 0x467ff8]
movzx esi, byte [esp + 0x1f]
xor byte [esp + 0x11], bl
movzx ebx, byte [esi + 0x467ff8]
movzx esi, byte [esp + 0x1c]
xor byte [esp + 0x12], bl
movzx ebx, byte [esi + 0x467ff8]
xor al, byte [edx]
xor byte [esp + 0x13], bl
mov byte [esp + 0x10], al
inc edx
lea eax, [esp + 0x11]
mov esi, 3
movzx ebx, byte [eax - 1]
xor byte [eax + 3], bl
movzx ebx, byte [eax]
xor byte [eax + 4], bl
movzx ebx, byte [eax + 1]
xor byte [eax + 5], bl
movzx ebx, byte [eax + 2]
xor byte [eax + 6], bl
add eax, 4
sub esi, 1
jne 0x433f50
xor eax, eax
cmp edi, 0xa
jg 0x433fcd
cmp eax, 4
jge 0x433fb7
nop
cmp ecx, 4
jge 0x433fba
movzx ebx, byte [esp + eax*4 + 0x10]
lea esi, [ecx + edi*4]
mov byte [ebp + esi*4 + 0x14], bl
movzx ebx, byte [esp + eax*4 + 0x11]
lea esi, [ecx + edi*4]
lea esi, [ebp + esi*4]
mov byte [esi + 0x15], bl
movzx ebx, byte [esp + eax*4 + 0x12]
mov byte [esi + 0x16], bl
movzx ebx, byte [esp + eax*4 + 0x13]
inc eax
inc ecx
cmp eax, 4
mov byte [esi + 0x17], bl
jl 0x433f80
cmp ecx, 4
jne 0x433fbf
inc edi
xor ecx, ecx
cmp eax, 4
jl 0x433f75
cmp edi, 0xa
jle 0x433f01
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00443023
add esp, 0x24
ret 4
Function at 0x433ff0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
mov eax, dword [0x459800]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
mov eax, ecx
push edi
lea esi, [eax + 0x24]
lea ecx, [eax + 0x28]
mov edi, 9
mov edi, edi
xor eax, eax
jmp 0x434020
movzx edx, byte [ecx - 1]
movzx edx, byte [eax + edx*4 + 0x464ed8]
movzx ebx, byte [ecx - 2]
xor dl, byte [eax + ebx*4 + 0x4652d8]
movzx ebx, byte [ecx - 3]
xor dl, byte [eax + ebx*4 + 0x4656d8]
movzx ebx, byte [ecx - 4]
xor dl, byte [eax + ebx*4 + 0x465ad8]
movzx ebx, byte [ecx + 2]
mov byte [esp + eax + 0xc], dl
movzx edx, byte [ecx + 3]
movzx edx, byte [eax + edx*4 + 0x464ed8]
xor dl, byte [eax + ebx*4 + 0x4652d8]
movzx ebx, byte [ecx + 1]
xor dl, byte [eax + ebx*4 + 0x4656d8]
movzx ebx, byte [ecx]
xor dl, byte [eax + ebx*4 + 0x465ad8]
movzx ebx, byte [ecx + 6]
mov byte [esp + eax + 0x10], dl
movzx edx, byte [ecx + 7]
movzx edx, byte [eax + edx*4 + 0x464ed8]
xor dl, byte [eax + ebx*4 + 0x4652d8]
movzx ebx, byte [ecx + 5]
xor dl, byte [eax + ebx*4 + 0x4656d8]
movzx ebx, byte [ecx + 4]
xor dl, byte [eax + ebx*4 + 0x465ad8]
movzx ebx, byte [ecx + 0xa]
mov byte [esp + eax + 0x14], dl
movzx edx, byte [ecx + 0xb]
movzx edx, byte [eax + edx*4 + 0x464ed8]
xor dl, byte [eax + ebx*4 + 0x4652d8]
movzx ebx, byte [ecx + 9]
xor dl, byte [eax + ebx*4 + 0x4656d8]
movzx ebx, byte [ecx + 8]
xor dl, byte [eax + ebx*4 + 0x465ad8]
inc eax
cmp eax, 4
mov byte [esp + eax + 0x17], dl
jl 0x434020
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [esi], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 4], edx
mov edx, dword [esp + 0x18]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
add ecx, 0x10
add esi, 0x10
sub edi, 1
jne 0x434010
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00443023
add esp, 0x14
ret