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

Disassembly:
mov eax, 0x1090
call fcn.00466a00
mov eax, dword [0x48d1f4]
xor eax, esp
mov dword [esp + 0x108c], eax
mov ecx, dword [esp + 0x1094]
mov dword [esp + 0xc], ecx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42a2a6
push ebx
sub ecx, edx
mov dword [esp + 0x14], 0
push ebp
sar ecx, 1
push esi
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x1c]
push edi
mov dword [esp + 0x24], 0
call fcn.00458200
lea ecx, [esp + 0x20]
call fcn.00457f40
mov edi, eax
mov ecx, edx
mov ebx, 0x368f0847
mov dword [esp + 0x10], edi
mul ebx
mov ebp, 0x4f8b588e
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], eax
mov esi, edx
mov eax, edi
mul ebp
mov edi, eax
mov ebp, edx
mov eax, ecx
mul ebx
mov ecx, eax
mov ebx, edx
mov eax, dword [esp + 0x14]
mov edx, 0x4f8b588e
mul edx
add ecx, esi
mov dword [esp + 0x28], eax
adc ebx, 0
add edi, ecx
mov ecx, dword [esp + 0x28]
adc ebp, 0
mov dword [esp + 0x30], edi
xor eax, eax
add ebx, ebp
mov ebp, dword [esp + 0x10]
adc eax, eax
add ecx, ebx
adc edx, eax
mov eax, dword [esp + 0x14]
sub ebp, ecx
sbb eax, edx
shrd ebp, eax, 1
shr eax, 1
add ebp, ecx
adc eax, edx
shrd ebp, eax, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
xor edi, edi
mov eax, 0x4f8b588f
mov dword [esp + 0x10], ecx
mul ebp
mov eax, ebp
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0xf
imul eax, eax, 0xc350
sub ebp, eax
lea eax, [esp + 0x38]
push ebp
push ecx
push str._u._03u
push 0x32
push eax
call fcn.00407ec0
lea ecx, [esp + 0x4c]
add esp, 0x14
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42a397
mov esi, dword [esp + 0x18]
sub ecx, edx
sar ecx, 1
lea eax, [ecx + esi]
mov ecx, dword [esp + 0x10a8]
cmp eax, ecx
jae 0x42a455
mov ebx, dword [esp + 0x1c]
cmp edi, 0x3e8
je 0x42a455
sub ecx, esi
lea eax, [esp + 0x38]
push ecx
push eax
lea eax, [ebx + esi*2]
push eax
call fcn.00456ab0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42a413
push 0x800
lea eax, [esp + 0xa0]
push eax
push ebx
call fcn.0043bf70
test al, al
je 0x42a472
lea eax, [esp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42a472
inc ebp
lea eax, [esp + 0x38]
push ebp
push dword [esp + 0x14]
inc edi
push str._u._03u
push 0x32
push eax
call fcn.00407ec0
lea eax, [esp + 0x4c]
add esp, 0x14
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42a435
mov ecx, dword [esp + 0x10a8]
sub eax, edx
sar eax, 1
add eax, esi
cmp eax, ecx
jb 0x42a3c0
xor eax, eax
mov ecx, dword [esp + 0x109c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004669f1
add esp, 0x1090
ret 8
mov eax, ebx
jmp 0x42a457
Function at 0x42a480
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x1004
call fcn.00466a00
mov eax, dword [0x48d1f4]
xor eax, esp
mov dword [esp + 0x1000], eax
push esi
mov esi, dword [esp + 0x100c]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x42a4ce
push 0x800
lea eax, [esp + 8]
push eax
push esi
call fcn.0043bf70
test al, al
je 0x42a4ce
push 0
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [esp + 0x1004]
pop esi
xor ecx, esp
call fcn.004669f1
add esp, 0x1004
ret 4

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

Disassembly:
mov eax, 0x1068
call fcn.00466a00
mov eax, dword [0x48d1f4]
xor eax, esp
mov dword [esp + 0x1064], eax
push ebx
mov ebx, dword [esp + 0x1078]
push ebp
mov ebp, dword [esp + 0x1074]
push esi
push edi
mov edi, dword [esp + 0x1080]
push ebx
push ebp
push edi
call fcn.00456ab0
push 0x32
push str.temp
lea eax, [esp + 0x18]
push eax
call fcn.00456ab0
xor esi, esi
lea esp, [esp]
push 0x2e
lea eax, [esp + 0x1c]
push eax
lea eax, [esi + 0x3e8]
push 0
push eax
call fcn.00456880
push ebx
lea eax, [esp + 0x14]
push eax
push edi
call fcn.0043cc40
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42a591
push 0x800
lea eax, [esp + 0x78]
push eax
push edi
call fcn.0043bf70
test al, al
je 0x42a59a
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42a59a
inc esi
cmp esi, 0x3e8
jb 0x42a540
push edi
push ebp
call fcn.0042a5c0
mov ecx, dword [esp + 0x1074]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004669f1
add esp, 0x1068
ret 0xc

Function at 0x42a5c0
Capabilities:
Move file

Disassembly:
mov eax, 0x2004
call fcn.00466a00
mov eax, dword [0x48d1f4]
xor eax, esp
mov dword [esp + 0x2000], eax
push ebx
push esi
mov esi, dword [esp + 0x2014]
push edi
mov edi, dword [esp + 0x2014]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
test eax, eax
jne 0x42a63f
push 0x800
lea eax, [esp + 0x1010]
push eax
push edi
call fcn.0043bf70
test al, al
je 0x42a63f
push 0x800
lea eax, [esp + 0x10]
push eax
push esi
call fcn.0043bf70
test al, al
je 0x42a63f
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
jmp 0x42a641
mov al, bl
mov ecx, dword [esp + 0x200c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004669f1
add esp, 0x2004
ret 8
Function at 0x42a690
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x1028
call fcn.00466a00
mov eax, dword [0x48d1f4]
xor eax, esp
mov dword [esp + 0x1024], eax
mov ecx, dword [esp + 0x1038]
push ebx
push ebp
mov ebp, dword [esp + 0x103c]
push esi
mov esi, dword [esp + 0x1038]
push edi
mov edi, dword [esp + 0x1040]
mov dword [esp + 0x18], ecx
test edi, edi
je 0x42a6dc
mov eax, dword [edi]
or eax, dword [edi + 4]
mov byte [esp + 0x10], 1
jne 0x42a6e1
mov byte [esp + 0x10], 0
test ebp, ebp
je 0x42a6f2
mov eax, dword [ebp]
or eax, dword [ebp + 4]
mov byte [esp + 0x12], 1
jne 0x42a6f7
mov byte [esp + 0x12], 0
test ecx, ecx
je 0x42a707
mov eax, dword [ecx]
or eax, dword [ecx + 4]
mov byte [esp + 0x11], 1
jne 0x42a70c
mov byte [esp + 0x11], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42a740
push 0x800
lea eax, [esp + 0x38]
push eax
push esi
call fcn.0043bf70
test al, al
je 0x42a754
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42a754
test bl, 1
je 0x42a754
push 0
push esi
mov byte [esp + 0x1b], 1
call fcn.0042a870
jmp 0x42a759
mov byte [esp + 0x13], 0
push 0
push 0x2000000
push 3
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x42a7bd
push 0x800
lea eax, [esp + 0x38]
push eax
push esi
call fcn.0043bf70
test al, al
je 0x42a848
push 0
push 0x2000000
push 3
push 0
push 3
push 0x40000000
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x42a848
cmp byte [esp + 0x10], 0
je 0x42a7d0
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
call fcn.00457fd0
cmp byte [esp + 0x12], 0
je 0x42a7e3
lea eax, [esp + 0x2c]
mov ecx, ebp
push eax
call fcn.00457fd0
cmp byte [esp + 0x11], 0
je 0x42a7f8
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
call fcn.00457fd0
movzx eax, byte [esp + 0x10]
lea ecx, [esp + 0x1c]
neg eax
mov edi, dword [esp + 0x14]
sbb eax, eax
and eax, ecx
lea ecx, [esp + 0x24]
push eax
movzx eax, byte [esp + 0x15]
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [esp + 0x30]
push eax
movzx eax, byte [esp + 0x1a]
neg eax
sbb eax, eax
and eax, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0x13], 0
je 0x42a848
push ebx
push esi
call fcn.0042a870
mov ecx, dword [esp + 0x1034]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004669f1
add esp, 0x1028
ret 0x10
Function at 0x42a870
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x1004
call fcn.00466a00
mov eax, dword [0x48d1f4]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
push esi
push dword [esp + 0x1014]
mov esi, dword [esp + 0x1014]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test eax, eax
jne 0x42a8d5
push 0x800
lea eax, [esp + 0xc]
push eax
push esi
call fcn.0043bf70
test al, al
je 0x42a8d5
push dword [esp + 0x1014]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
jmp 0x42a8d7
mov al, bl
mov ecx, dword [esp + 0x1008]
pop esi
pop ebx
xor ecx, esp
call fcn.004669f1
add esp, 0x1004
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b000
mov eax, dword fs:[0]
push eax
mov eax, 0x3054
call fcn.00466a00
mov eax, dword [0x48d1f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push esi
call fcn.0043c330
test al, al
je 0x42aa8e
lea ecx, [ebp - 0x3060]
call fcn.0042b710
push esi
lea ecx, [ebp - 0x3060]
mov dword [ebp - 4], 0
call fcn.0042b8e0
push 0
lea eax, [ebp - 0x2058]
mov dword [ebp - 0x1048], 0
push eax
lea ecx, [ebp - 0x3060]
mov dword [ebp - 0x1044], 0
mov dword [ebp - 0x1040], 0
mov dword [ebp - 0x103c], 0
mov dword [ebp - 0x1038], 0
mov dword [ebp - 0x1034], 0
call fcn.0042b7c0
lea ecx, [ebp - 0x3060]
mov bl, al
call fcn.0042b730
mov al, bl
jmp 0x42aac7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42aac4
push 0x800
lea eax, [ebp - 0x1010]
push eax
push esi
call fcn.0043bf70
test al, al
je 0x42aac1
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004669f1
mov esp, ebp
pop ebp
ret 4
Function at 0x42aaf0
Capabilities:
Delete directory

Disassembly:
mov eax, 0x2068
call fcn.00466a00
mov eax, dword [0x48d1f4]
xor eax, esp
mov dword [esp + 0x2064], eax
push ebx
push esi
mov esi, dword [esp + 0x2074]
lea eax, [esp + 0x1008]
push 0x832
push eax
push esi
call fcn.0042a4f0
test al, al
je 0x42ab6e
lea eax, [esp + 0x1008]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x42ab6a
push 0x800
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1010]
push eax
call fcn.0043bf70
test al, al
je 0x42ab6a
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
test bl, bl
jne 0x42abaa
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x42aba2
push 0x800
lea eax, [esp + 0xc]
push eax
push esi
call fcn.0043bf70
test al, al
je 0x42aba2
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
test bl, bl
jne 0x42abaa
xor al, al
jmp 0x42abac
mov al, 1
mov ecx, dword [esp + 0x206c]
pop esi
pop ebx
xor ecx, esp
call fcn.004669f1
add esp, 0x2068
ret 4
Function at 0x42abd0
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x30a0]
mov eax, 0x30a0
call fcn.00466a00
push 0xffffffffffffffff
push 0x47b045
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x48d1f4]
xor eax, ebp
mov dword [ebp + 0x309c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x30a8]
lea ecx, [ebp]
mov dword [ebp - 0x18], esi
call fcn.00427a00
push 1
push esi
lea ecx, [ebp]
mov dword [ebp - 4], 0
call fcn.00428160
test al, al
je 0x42ad02
lea ecx, [ebp]
call fcn.00428050
push 0x10000
push 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0x10000
call fcn.0046a903
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x42ac77
mov ecx, 0x49d17c
call fcn.004213d0
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], 0x10000
push 0x10000
push 0
push ebx
mov byte [ebp - 4], 1
call fcn.00468da0
xor esi, esi
add esp, 0xc
xor edi, edi
cmp dword [ebp - 0x10], esi
jl 0x42acc8
jg 0x42aca5
cmp dword [ebp - 0x14], esi
jbe 0x42acc8
push 0x10000
push ebx
lea ecx, [ebp]
call fcn.00428c10
add esi, 0x10000
adc edi, 0
cmp edi, dword [ebp - 0x10]
jl 0x42aca5
jg 0x42acc8
cmp esi, dword [ebp - 0x14]
jb 0x42aca5
lea ecx, [ebp]
call fcn.004280d0
push 0
push 0
push 0
lea ecx, [ebp]
call fcn.00428780
lea ecx, [ebp]
call fcn.00428ab0
lea ecx, [ebp]
call fcn.00427c40
test ebx, ebx
je 0x42acfb
push ebx
call fcn.0046a8f3
add esp, 4
mov esi, dword [ebp - 0x18]
mov byte [ebp - 4], 0
push 0x832
lea eax, [ebp + 0x1038]
push eax
push esi
call fcn.0042a4f0
test al, al
je 0x42ad60
lea eax, [ebp + 0x1038]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test eax, eax
jne 0x42ad5c
push 0x800
lea eax, [ebp + 0x209c]
push eax
lea eax, [ebp + 0x1038]
push eax
call fcn.0043bf70
test al, al
je 0x42ad5c
lea eax, [ebp + 0x209c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test bl, bl
jne 0x42ad9c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test eax, eax
jne 0x42ad98
push 0x800
lea eax, [ebp + 0x209c]
push eax
push esi
call fcn.0043bf70
test al, al
je 0x42ad98
lea eax, [ebp + 0x209c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test bl, bl
je 0x42ad9e
mov bl, 1
lea ecx, [ebp]
call fcn.00427a50
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x309c]
xor ecx, ebp
call fcn.004669f1
lea esp, [ebp + 0x30a0]
pop ebp
ret 4
Function at 0x42b900
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov eax, 0x1254
call fcn.00466a00
mov eax, dword [0x48d1f4]
xor eax, esp
mov dword [esp + 0x1250], eax
push ebx
mov ebx, dword [esp + 0x1260]
lea eax, [esp + 4]
push esi
mov esi, dword [esp + 0x1260]
push edi
mov edi, dword [esp + 0x126c]
push eax
cmp esi, 0xffffffff
jne 0x42b9ac
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42b9d1
push 0x800
lea eax, [esp + 0x260]
push eax
push ebx
call fcn.0043bf70
test al, al
je 0x42b97d
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42b9d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x42b99f
cmp eax, 3
je 0x42b99f
cmp eax, 0x12
je 0x42b99f
mov al, 1
mov byte [edi + 0x1044], al
jmp 0x42ba7c
xor al, al
mov byte [edi + 0x1044], al
jmp 0x42ba7c
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x42b9d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne cl
or eax, 0xffffffff
mov byte [edi + 0x1044], cl
jmp 0x42ba7e
push 0x800
push ebx
push edi
call fcn.00456ab0
push 0x800
lea eax, [esp + 0x3c]
push eax
push edi
call fcn.0043cc40
mov ecx, dword [esp + 0x28]
xor eax, eax
add eax, dword [esp + 0x2c]
mov dword [edi + 0x1000], eax
mov eax, dword [esp + 0xc]
adc ecx, 0
mov dword [edi + 0x1008], eax
mov eax, dword [esp + 0x10]
mov dword [edi + 0x1004], ecx
mov ecx, dword [esp + 0x14]
mov dword [edi + 0x1028], eax
mov eax, dword [esp + 0x18]
mov dword [edi + 0x102c], ecx
mov ecx, dword [esp + 0x1c]
mov dword [edi + 0x1030], eax
mov eax, dword [esp + 0x20]
mov dword [edi + 0x1034], ecx
mov ecx, dword [esp + 0x24]
mov dword [edi + 0x1038], eax
lea eax, [esp + 0x20]
mov dword [edi + 0x103c], ecx
lea ecx, [edi + 0x1010]
push eax
call fcn.00458650
lea eax, [esp + 0x10]
push eax
lea ecx, [edi + 0x1018]
call fcn.00458650
lea eax, [esp + 0x18]
push eax
lea ecx, [edi + 0x1020]
call fcn.00458650
mov eax, esi
mov ecx, dword [esp + 0x125c]
mov dword [edi + 0x1040], 0
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004669f1
add esp, 0x1254
ret 0xc

Function at 0x42e1b0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x48d1f4]
xor eax, esp
mov dword [esp + 0x114], eax
cmp byte [0x49d194], 0
jne 0x42e240
lea eax, [esp]
mov dword [esp], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 4]
cmp eax, 0xa
ja 0x42e21f
jne 0x42e1fc
cmp dword [esp + 0xc], 0x55f0
jb 0x42e1fc
call fcn.0042e260
test al, al
je 0x42e21f
xor al, al
mov byte [0x49d194], 1
mov byte [0x49d195], al
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004669f1
add esp, 0x118
ret
mov al, 1
mov byte [0x49d195], al
mov byte [0x49d194], al
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004669f1
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
mov al, byte [0x49d195]
xor ecx, esp
call fcn.004669f1
add esp, 0x118
ret
Function at 0x431790
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x40
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
cmp dword [edi + 0x104], 0
mov eax, dword [edi + 0x612c]
mov dword [edi + 0x614c], eax
mov eax, dword [edi + 0x6250]
jne 0x431832
cmp eax, 0xc
mov eax, dword [esp + 0x54]
jb 0x4317dc
cmp eax, 0x20000
jb 0x4317dc
push 1
push eax
push dword [esp + 0x58]
call fcn.004319d0
pop edi
pop esi
pop ebx
add esp, 0x40
ret 8
mov esi, dword [esp + 0x50]
lea ebx, [esi + eax]
cmp esi, ebx
je 0x4319c2
jmp 0x4317f0
mov eax, dword [edi + 0xd0]
push 0xa10
push 0x5dcb0000
push dword [eax + esi + 4]
push dword [eax + esi]
call fcn.00466f60
mov eax, dword [edi + 0xe0]
shr edx, 0xe
mov ecx, dword [eax + edx*4]
mov dword [eax + edx*4], esi
mov eax, dword [edi + 0xe4]
mov dword [eax + esi*4], ecx
inc esi
cmp esi, ebx
jne 0x4317f0
pop edi
pop esi
pop ebx
add esp, 0x40
ret 8
mov ecx, dword [esp + 0x54]
cmp eax, 2
jb 0x4318ad
cmp ecx, 0x100
jb 0x4318ad
cmp eax, 8
jae 0x431896
mov eax, dword [esp + 0x50]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x30], ecx
mov ecx, dword [edi + 0x6144]
push 0x431e00
mov dword [esp + 0x2c], edi
call fcn.004578f0
mov ecx, dword [edi + 0x6144]
lea eax, [esp + 0x24]
push eax
push 0x431d70
call fcn.004578f0
mov ecx, dword [edi + 0x6144]
call fcn.00457ae0
pop edi
pop esi
pop ebx
add esp, 0x40
ret 8
push 0
push ecx
push dword [esp + 0x58]
mov ecx, edi
call fcn.004319d0
pop edi
pop esi
pop ebx
add esp, 0x40
ret 8
mov ebx, dword [esp + 0x50]
mov eax, dword [edi + 0x6148]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ebx
lea eax, [ebx + ecx]
mov dword [esp + 0x20], eax
cmp ebx, eax
je 0x4319c2
push ebp
nop
mov ecx, dword [edi + 0xd0]
add ecx, ebx
movzx eax, byte [ecx]
movzx esi, byte [ecx + 1]
movzx ebx, byte [ecx + 2]
movzx ebp, byte [ecx + 3]
imul eax, eax, 0x2773
movzx edx, byte [ecx + 4]
xor esi, eax
imul eax, esi, 0x2773
and esi, 0x3fff
add esi, dword [edi + 0xd4]
xor ebx, eax
imul eax, ebx, 0x2773
and ebx, 0x3ffff
xor ebp, eax
imul eax, ebp, 0x2773
and ebp, 0x3ffff
xor edx, eax
mov al, byte [esi]
and edx, dword [edi + 0xec]
mov byte [esp + 0x13], al
mov eax, dword [edi + 0xd8]
mov dword [esp + 0x20], edx
movzx edi, word [eax + ebx*2]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xdc]
mov ecx, dword [eax + ebp*4]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xe0]
mov edx, dword [eax + edx*4]
mov eax, dword [esp + 0x18]
mov byte [esi], al
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0xd8]
mov esi, dword [esp + 0x18]
mov word [eax + ebx*2], si
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov eax, dword [esi + 0xdc]
mov dword [eax + ebp*4], ebx
mov eax, dword [esi + 0xe0]
mov esi, dword [esp + 0x20]
mov dword [eax + esi*4], ebx
mov esi, dword [esp + 0x1c]
mov al, byte [esp + 0x13]
mov word [esi + 1], di
mov edi, dword [esp + 0x14]
mov dword [esi + 3], ecx
mov byte [esi], al
add esi, 7
mov dword [esp + 0x1c], esi
mov eax, dword [edi + 0xe4]
mov dword [eax + ebx*4], edx
inc ebx
mov dword [esp + 0x18], ebx
cmp ebx, dword [esp + 0x24]
jne 0x4318d0
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x40
ret 8
Function at 0x43bd20
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 0x10
xor eax, eax
push ebx
push edi
mov edi, dword [esp + 0x1c]
mov word [edi], ax
lea eax, [esp + 0xc]
push eax
push 1
push 0
push str.SoftwareWinRARPaths
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [esp + 0x20]
test eax, eax
jne 0x43bd79
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ebx
push eax
push edi
lea eax, [esp + 0x1c]
push eax
push 0
push str.AppData
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [edi], 0
je 0x43bd8d
push edi
call fcn.00429bd0
test al, al
jne 0x43be9b
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
xor eax, eax
mov word [edi], ax
mov byte [esp + 0xb], al
lea eax, [esp + 0x10]
push eax
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x43be01
push edi
push dword [esp + 0x14]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x43be01
cmp word [edi], 0
je 0x43be01
push ebx
push edi
call fcn.0043ad70
push ebx
push 0x47feac
push edi
call fcn.00456a50
push edi
call fcn.00429bd0
mov byte [esp + 0xb], al
test al, al
jne 0x43be01
cmp byte [esp + 0x24], al
je 0x43be01
push 0
push 0
push edi
call fcn.0042a160
test eax, eax
sete byte [esp + 0xb]
mov eax, dword [esp + 0x14]
push esi
push dword [esp + 0x14]
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x47d2b8]
call esi
cmp byte [esp + 0xf], 0
pop esi
jne 0x43be9b
push ebx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43be31
sub ecx, edx
sar ecx, 1
lea eax, [ecx - 1]
test eax, eax
js 0x43be65
lea ecx, [edi + eax*2]
lea ebx, [ebx]
movzx edx, word [ecx]
cmp edx, 0x5c
je 0x43be77
cmp edx, 0x2f
je 0x43be77
sub ecx, 2
sub eax, 1
jns 0x43be50
cmp word [edi], 0
je 0x43be7c
cmp word [edi + 2], 0x3a
jne 0x43be7c
lea ecx, [edi + 4]
jmp 0x43be8c
add ecx, 2
jmp 0x43be7e
mov ecx, edi
lea eax, [edi + 4]
cmp ecx, eax
jb 0x43be96
cmp word [edi + 2], 0x3a
jne 0x43be93
lea eax, [edi + 8]
cmp ecx, eax
jb 0x43be96
sub ecx, 2
xor eax, eax
mov word [ecx], ax
pop edi
pop ebx
add esp, 0x10
ret 0xc