joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e5fe
Capabilities:
Read .ini file

Disassembly:
push 0x838
mov eax, 0x4842be
call fcn.00417c9f
mov edi, ecx
mov ecx, dword [ebp + 0xc]
lea eax, [edi + 0x84]
cmp dword [eax + 0x14], 8
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x844], ecx
jb 0x41e629
mov eax, dword [eax]
push eax
push dword [ebp + 0x10]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
cmp esi, dword [ebp + 0x10]
jne 0x41e707
xor esi, esi
mov dword [ebp - 0x814], 7
push esi
xor eax, eax
mov dword [ebp - 0x818], esi
push 0x49ad5c
lea ecx, [ebp - 0x828]
mov word [ebp - 0x828], ax
call fcn.0040b830
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 4], esi
push esi
push eax
call fcn.00434750
push dword [ebp + 0x10]
lea eax, [ebp - 0x810]
push 0x49af18
push eax
call fcn.004142b0
add esp, 0x18
lea eax, [ebp - 0x810]
cmp byte [edi + 1], 0
mov ecx, edi
push eax
push dword [ebp - 0x844]
lea eax, [ebp - 0x840]
push ebx
push eax
je 0x41e6bc
call fcn.0041e51a
jmp 0x41e6c1
call fcn.0041e5d4
push eax
lea ecx, [ebp - 0x828]
call fcn.00409d80
push esi
push 1
lea ecx, [ebp - 0x840]
call fcn.0040b7c0
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
cmovae eax, dword [ebp - 0x828]
push eax
call fcn.004458c0
pop ecx
push 0
push 1
lea ecx, [ebp - 0x828]
mov esi, eax
call fcn.0040b7c0
mov eax, esi
call fcn.00417c5a
ret 0xc

Function at 0x41e711
Capabilities:
Read .ini file

Disassembly:
push 0x82c
mov eax, 0x482b57
call fcn.00417c9f
mov edi, ecx
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x830], eax
mov eax, dword [ebp + 0x10]
push 0x800
mov dword [ebp - 0x82c], eax
lea eax, [ebp - 0x810]
push ecx
push eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x838], esi
mov dword [ebp - 0x834], ecx
call fcn.00434750
lea eax, [edi + 0x84]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x41e76e
mov eax, dword [eax]
push eax
push 0x400
lea eax, [ebp - 0x810]
push eax
push ebx
push dword [ebp - 0x82c]
push dword [ebp - 0x830]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x810]
mov ecx, esi
push eax
call fcn.00409e80
and dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x834], 1
jb 0x41e7b4
mov eax, dword [esi]
jmp 0x41e7b6
mov eax, esi
push ebx
push eax
call fcn.004462b0
pop ecx
pop ecx
test eax, eax
jne 0x41e802
cmp byte [edi + 1], 0
lea eax, [ebp - 0x828]
push ebx
push dword [ebp - 0x82c]
mov ecx, edi
push dword [ebp - 0x830]
push eax
je 0x41e7e6
call fcn.0041e51a
jmp 0x41e7eb
call fcn.0041e5d4
push eax
mov ecx, esi
call fcn.00409d80
push 0
push 1
lea ecx, [ebp - 0x828]
call fcn.0040b7c0
mov eax, esi
call fcn.00417c5a
ret 0x10
Function at 0x41fa5c
Capabilities:
Read .ini file

Disassembly:
push 0x23c
mov eax, 0x482bf4
call fcn.00417c9f
mov ebx, ecx
call fcn.0041e4ee
lea edi, [ebx + 0xcc]
push eax
mov ecx, edi
call fcn.00409cf0
mov esi, str.SwiftImage.ini
push esi
call fcn.00445ea7
pop ecx
push eax
push esi
mov ecx, edi
call fcn.0040cb10
push 0x4890d0
push 0x4890d8
push str.MainAppInfo
lea eax, [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.0041e5aa
and dword [ebp - 4], 0
lea esi, [ebx + 0xe4]
lea eax, [ebp - 0x248]
cmp esi, eax
je 0x41fad2
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.0040b930
push 0x4890d0
mov ecx, esi
call fcn.0040dd40
test eax, eax
jne 0x41fb4e
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00434750
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x41faff
mov edi, dword [edi]
push edi
push 0x104
lea eax, [ebp - 0x218]
mov edi, 0x4890d0
push eax
push edi
push 0x4890d8
push str.MainAppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x218], 0
jne 0x41fb30
xor eax, eax
jmp 0x41fb3d
lea eax, [ebp - 0x218]
push eax
call fcn.00445ea7
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.0040b830
jmp 0x41fb53
mov edi, 0x4890d0
push edi
mov ecx, esi
call fcn.0040dd40
test eax, eax
jne 0x41fc16
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00434750
add esp, 0xc
lea eax, [ebx + 0x54]
lea ecx, [ebp - 0x230]
push eax
call fcn.00409ee0
push str.SwiftImage.ini
mov byte [ebp - 4], 1
call fcn.00445ea7
pop ecx
push eax
push str.SwiftImage.ini
lea ecx, [ebp - 0x230]
call fcn.0040cb10
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push edi
push 0x4890d8
push str.MainAppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x218], 0
jne 0x41fbe7
xor eax, eax
jmp 0x41fbf4
lea eax, [ebp - 0x218]
push eax
call fcn.00445ea7
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.0040b830
push 0
push 1
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0
call fcn.0040b7c0
push edi
mov ecx, esi
call fcn.0040dd40
test eax, eax
jne 0x41fc52
push edi
push 0x4890d8
push str.MainAppInfo
lea eax, [ebp - 0x230]
mov ecx, ebx
push eax
call fcn.0041e711
push eax
mov ecx, esi
call fcn.00409d80
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.0040b7c0
push 0
push 1
lea ecx, [ebp - 0x248]
call fcn.0040b7c0
call fcn.00417c5a
ret
Function at 0x42023b
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push 0x8c
mov eax, 0x482cc3
call fcn.00417c9f
mov ebx, dword [ebp + 0x20]
xor edi, edi
mov dword [ebp - 0x14], 7
push edi
xor eax, eax
mov dword [ebp - 4], edi
push 0x49ad5c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], ax
call fcn.0040b830
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.0042e261
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
mov esi, edi
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x420306
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push edi
cmovae eax, dword [ebp + 8]
push 0x80
push 4
push edi
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x420302
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebx], eax
call fcn.00417994
mov esi, eax
pop ecx
test esi, esi
je 0x420302
push dword [ebx]
push 0
push esi
call fcn.00434750
add esp, 0xc
lea eax, [ebp - 0x98]
push 0
push eax
push dword [ebx]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
jmp 0x420306
xor edi, edi
mov esi, edi
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.0040b7c0
push edi
push 1
lea ecx, [ebp + 8]
call fcn.0040b7c0
mov eax, esi
call fcn.00417c5a
ret
Function at 0x420324
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push 0xc8
mov eax, 0x482d0b
call fcn.00417c9f
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xd0], ebx
push ebx
xor eax, eax
mov dword [ebp - 4], ebx
push 0x49ad5c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
call fcn.0040b830
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.0042e261
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x420498
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
push ebx
cmovae eax, dword [ebp + 0xc]
push 0x80
push 4
push ebx
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4203c2
push 0x49ad5c
mov ecx, esi
call fcn.00409e80
jmp 0x4204a3
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc8], eax
inc eax
push eax
mov dword [ebp - 0xcc], eax
call fcn.00417994
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x420401
push 0x49ad5c
mov ecx, esi
call fcn.00409e80
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.0040b7c0
push ebx
jmp 0x4204af
push dword [ebp - 0xcc]
push 0
push ebx
call fcn.00434750
add esp, 0xc
lea eax, [ebp - 0xd4]
push 0
push eax
push dword [ebp - 0xc8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc8]
lea ecx, [ebp - 0xc4]
push ebx
call fcn.0042ec1c
push ebx
call fcn.004174aa
pop ecx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xc4]
call fcn.0042e46a
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.0041dba8
pop ecx
pop ecx
xor ebx, ebx
mov byte [ebp - 4], 4
push ebx
push 1
lea ecx, [ebp - 0x58]
call fcn.0040bac0
cmp dword [ebp - 0x30], ebx
jbe 0x42048d
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040b930
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.0040b7c0
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00409e00
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.0040b7c0
push ebx
push 1
lea ecx, [ebp + 0xc]
call fcn.0040b7c0
mov eax, esi
call fcn.00417c5a
ret
Function at 0x42077f
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.00445ea7
mov dword [ebp - 4], eax
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00417994
push dword [ebp + 8]
mov esi, eax
push esi
call fcn.004462f0
mov eax, dword [ebp - 4]
xor edi, edi
add esp, 0x10
xor ebx, ebx
inc edi
test eax, eax
js 0x4207f9
push 0x5c
pop ecx
cmp word [esi + ebx*2], cx
jne 0x4207f0
xor eax, eax
push esi
mov word [esi + ebx*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4207e6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4207f7
mov eax, dword [ebp - 4]
push 0x5c
pop ecx
mov word [esi + ebx*2], cx
inc ebx
cmp ebx, eax
jle 0x4207c3
jmp 0x4207f9
xor edi, edi
push esi
call fcn.004174aa
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x420809
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4a20a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
push 0x1a
push eax
push esi
call fcn.00420d19
lea eax, [ebp - 0x20c]
push eax
call fcn.00445ea7
add esp, 0x14
test eax, eax
je 0x4208c1
lea eax, [ebp - 0x20c]
push 0x49a9dc
push eax
call fcn.0044627f
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0044627f
lea eax, [ebp - 0x20c]
push 0x49a9dc
push eax
call fcn.0044627f
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42089a
lea eax, [ebp - 0x20c]
push eax
call fcn.0042077f
pop ecx
cmp word [ebp - 0x20c], si
je 0x4208b2
lea eax, [ebp - 0x20c]
push eax
call fcn.00445ea7
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.0040b830
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417499
mov esp, ebp
pop ebp
ret

Function at 0x4209fa
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4a20a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [0x4a3a4d]
test al, al
jne 0x420a93
push ebx
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00434750
add esp, 0xc
lea eax, [ebp - 0x20c]
xor ebx, ebx
inc ebx
push ebx
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x420a8a
lea eax, [ebp - 0x20c]
push eax
call fcn.00445b81
lea eax, [ebp - 0x20c]
mov dword [esp], str.config_systemprofile
push eax
call fcn.0043685a
pop ecx
pop ecx
test eax, eax
jne 0x420a82
lea eax, [ebp - 0x20c]
push str.documents_and_settingslocalservice
push eax
call fcn.0043685a
pop ecx
pop ecx
test eax, eax
je 0x420a8a
mov byte [0x4a3a4d], bl
jmp 0x420a90
mov bl, byte [0x4a3a4d]
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417499
mov esp, ebp
pop ebp
ret
Function at 0x420aa1
Capabilities:
Check if file exists

Disassembly:
push 0xc54
mov eax, 0x482ddc
call fcn.00417c9f
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xc40]
mov ebx, dword [ebp + 0xc]
mov esi, 0x208
and dword [ebp - 0xc60], 0
push esi
push 0
push eax
call fcn.00434750
push esi
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.00434750
push esi
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.00434750
push esi
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.00434750
push esi
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00434750
push esi
xor esi, esi
lea eax, [ebp - 0x420]
push esi
push eax
call fcn.00434750
xor eax, eax
mov dword [ebp - 0xc44], 7
add esp, 0x48
mov dword [ebp - 0xc48], esi
mov word [ebp - 0xc58], ax
push esi
push 0x1a
lea eax, [ebp - 0xc40]
mov dword [ebp - 4], esi
push eax
push esi
call fcn.00420d19
lea eax, [ebp - 0xc40]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004462f0
lea eax, [ebp - 0x218]
push eax
call fcn.00445ea7
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.0043670b
add esp, 0x24
test eax, eax
jne 0x420ba5
lea eax, [ebp - 0xc58]
push ebx
push eax
call fcn.00420809
pop ecx
pop ecx
lea eax, [ebp - 0xc58]
mov ecx, edi
push eax
call fcn.00409e00
push esi
push 1
jmp 0x420d06
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.004462f0
lea eax, [ebp - 0x830]
push str.Local
push eax
call fcn.0044627f
add esp, 0x10
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
inc ecx
test eax, eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
cmovne esi, ecx
push eax
call fcn.004462f0
lea eax, [ebp - 0x628]
push str.LocalLow
push eax
call fcn.0044627f
add esp, 0x10
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
test eax, eax
push 1
pop eax
cmovne ecx, eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xa38]
mov dword [ebp - 0xc5c], ecx
push eax
call fcn.004462f0
lea eax, [ebp - 0xa38]
push str.Roaming
push eax
call fcn.0044627f
add esp, 0x10
lea eax, [ebp - 0xa38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
test eax, eax
push 1
pop eax
cmovne ecx, eax
test esi, esi
je 0x420ce3
cmp dword [ebp - 0xc5c], 0
je 0x420ce3
test ecx, ecx
je 0x420ce3
push ebx
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push str._s_s_
push eax
call fcn.004142b0
add esp, 0x10
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x420cb3
lea eax, [ebp - 0x420]
push eax
call fcn.0042077f
pop ecx
cmp word [ebp - 0x420], 0
jne 0x420cc1
xor eax, eax
jmp 0x420cce
lea eax, [ebp - 0x420]
push eax
call fcn.00445ea7
pop ecx
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0xc58]
call fcn.0040b830
jmp 0x420cf2
lea eax, [ebp - 0xc58]
push ebx
push eax
call fcn.00420809
pop ecx
pop ecx
lea eax, [ebp - 0xc58]
mov ecx, edi
push eax
call fcn.00409e00
xor eax, eax
push 0
inc eax
push eax
lea ecx, [ebp - 0xc58]
call fcn.0040b7c0
mov eax, edi
call fcn.00417c5a
ret
Function at 0x421be5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4a20a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
jle 0x421c7a
lea ecx, [eax + 0x80]
add eax, 0x100
dec edi
mov dword [ebp - 0x14], ecx
shr edi, 3
inc edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], edi
mov edx, ebx
mov ecx, esi
push 8
sub edx, esi
pop edi
mov al, byte [edx + ecx]
mov byte [ecx], al
inc ecx
sub edi, 1
jne 0x421c2a
push 8
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.00433d90
push esi
push esi
push dword [ebp - 0x14]
call fcn.00420ecb
mov edx, dword [ebp - 0x18]
add esp, 0x18
xor ecx, ecx
mov al, byte [edx + ecx]
xor byte [esi + ecx], al
inc ecx
cmp ecx, 8
jl 0x421c53
push 8
lea eax, [ebp - 0xc]
push eax
push edx
call fcn.00433d90
add esp, 0xc
add ebx, 8
add esi, 8
sub dword [ebp - 0x10], 1
jne 0x421c21
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417499
mov esp, ebp
pop ebp
ret

Function at 0x421cdd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push str.51c285e801f71dc33e88b85e170ad1b2
mov dword [ebp - 4], esi
call fcn.00446490
mov edi, dword [ebp + 0xc]
mov edx, eax
mov ebx, dword [ebp + 8]
pop ecx
mov ecx, esi
test edi, edi
je 0x421d18
mov al, byte [esi + str.51c285e801f71dc33e88b85e170ad1b2]
xor byte [ecx + ebx], al
inc esi
xor eax, eax
cmp esi, edx
cmovge esi, eax
inc ecx
cmp ecx, edi
jb 0x421d02
lea eax, [ebp - 4]
push eax
push edi
push ebx
call fcn.00401090
test eax, eax
je 0x421d3a
mov edx, dword [ebp - 4]
test edx, edx
je 0x421d3a
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
jmp 0x421d44
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x421fa9
Capabilities:
Create directory

Disassembly:
push 0x49c
mov eax, 0x482e4f
call fcn.00417c9f
mov ebx, ecx
mov edi, dword [ebp + 8]
test edi, edi
jne 0x421fc8
xor eax, eax
jmp 0x422150
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.00434750
lea eax, [ebp - 0x110]
push edi
push eax
call fcn.00446340
push edi
xor esi, esi
call fcn.00446490
mov edi, eax
mov dword [ebp - 0x214], 7
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x218], ecx
mov word [ebp - 0x228], ax
push 0x100
push ecx
lea eax, [ebp - 0x210]
mov dword [ebp - 4], ecx
push eax
call fcn.00434750
add esp, 0x24
cmp byte [ebp + edi - 0x111], 0x5c
je 0x422037
mov byte [ebp + edi - 0x110], 0x5c
cmp byte [ebp - 0x110], 0
je 0x42213e
mov al, byte [ebp + esi - 0x110]
cmp al, 0x3a
jne 0x422057
push 2
pop eax
jmp 0x42212e
cmp al, 0x5c
jne 0x42212b
push esi
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00433d90
add esp, 0xc
cmp esi, 0x100
jae 0x42216c
lea eax, [ebp - 0x210]
mov byte [ebp + esi - 0x210], 0
push eax
lea ecx, [ebp - 0x240]
call fcn.0040a0b0
lea eax, [ebp - 0x240]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x258]
mov ecx, ebx
push eax
call fcn.004226bf
push eax
lea ecx, [ebp - 0x228]
call fcn.00409d80
push 0
push 1
lea ecx, [ebp - 0x258]
call fcn.0040b7c0
push 0
push 1
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 0
call fcn.0040bac0
cmp dword [ebp - 0x214], 8
lea ecx, [ebp - 0x4a8]
lea eax, [ebp - 0x228]
cmovae eax, dword [ebp - 0x228]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x42212b
cmp dword [ebp - 0x214], 8
lea eax, [ebp - 0x228]
push 0
cmovae eax, dword [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x422158
xor eax, eax
inc eax
add esi, eax
cmp byte [ebp + esi - 0x110], 0
jne 0x422044
push 0
push 1
lea ecx, [ebp - 0x228]
call fcn.0040b7c0
xor eax, eax
inc eax
call fcn.00417c5a
ret 4
push 0
push 1
lea ecx, [ebp - 0x228]
call fcn.0040b7c0
jmp 0x421fc1
call fcn.00417f0b
int3

Function at 0x422691
Capabilities:
Create thread

Disassembly:
mov edx, dword [ecx + 0x300]
or eax, 0xffffffff
cmp edx, eax
je 0x4226a3
cmp edx, 1
jne 0x4226be
xor eax, eax
push eax
push eax
push ecx
push 0x42242f
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
ret
Function at 0x424a87
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x30
mov eax, 0x4831cb
call fcn.00417c6b
xor esi, esi
mov dword [ebp - 0x18], 0x104
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
call fcn.0042ece1
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], esi
call fcn.0042ed15
test eax, eax
mov edi, 0xf013f
lea eax, [ebp - 0x10]
push eax
jne 0x424ac7
mov edi, 0xf003f
push edi
push esi
push str.SoftWare
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x424b27
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push edi
push esi
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x424b02
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x424b27
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x10]
call esi
lea ecx, [ebp - 0x3c]
call fcn.0042ecf4
call fcn.00417c45
ret 0xc
Function at 0x424faf
Capabilities:
Get common file path

Disassembly:
push 0x240
mov eax, 0x483266
call fcn.00417c9f
mov ebx, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
xor esi, esi
mov dword [ebp - 0x24c], edi
push esi
push eax
call fcn.00434750
add esp, 0xc
lea eax, [ebp - 0x218]
push esi
push 0x19
push eax
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call esi
test eax, eax
je 0x4250a6
and dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
je 0x42502b
lea eax, [ebp - 0x218]
push eax
call fcn.00445ea7
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.0040b830
and dword [ebp - 4], 0
push 0x49a9dc
call fcn.00445ea7
pop ecx
push eax
push 0x49a9dc
lea ecx, [ebp - 0x230]
call fcn.0040cb10
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push edi
cmovae eax, dword [ebp - 0x230]
mov ecx, ebx
push eax
call fcn.00424c12
mov edi, eax
lea ecx, [ebp - 0x230]
push 0
push 1
test edi, edi
je 0x425097
call fcn.0040b7c0
mov eax, edi
jmp 0x425158
or dword [ebp - 4], 0xffffffff
call fcn.0040b7c0
mov edi, dword [ebp - 0x24c]
push 0
push 0x10
lea eax, [ebp - 0x218]
push eax
push 0
call esi
test eax, eax
je 0x425156
and dword [ebp - 0x238], 0
xor eax, eax
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
cmp word [ebp - 0x218], ax
je 0x4250ed
lea eax, [ebp - 0x218]
push eax
call fcn.00445ea7
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.0040b830
mov esi, 0x49a9dc
mov dword [ebp - 4], 1
push esi
call fcn.00445ea7
pop ecx
push eax
push esi
lea ecx, [ebp - 0x248]
call fcn.0040cb10
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push edi
cmovae eax, dword [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.00424c12
push 0
lea ecx, [ebp - 0x248]
mov esi, eax
push 1
call fcn.0040b7c0
test esi, esi
je 0x425156
mov eax, esi
jmp 0x425158
xor eax, eax
call fcn.00417c5a
ret 4
Function at 0x425160
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x4a20a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x428], eax
xor edi, edi
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], edi
push eax
push 9
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
push reloc.WS2_32.dll_accept
mov esi, edi
mov dword [ebp - 0x41c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4251b3
xor eax, eax
jmp 0x4252b2
push ebx
push 0x208
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00434750
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ebx, edi
push 0x104
push eax
push edi
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42529f
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x425285
push 0x208
push eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0x420], 0x104
push eax
call fcn.00434750
add esp, 0xc
xor eax, eax
inc eax
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x424]
push eax
push 0
push str.DisplayName
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42527d
push dword [ebp - 0x428]
lea eax, [ebp - 0x414]
push eax
call fcn.0043685a
pop ecx
pop ecx
test eax, eax
push 1
pop eax
cmovne esi, eax
push dword [ebp - 0x41c]
call edi
push 0x104
lea eax, [ebp - 0x20c]
inc ebx
push eax
push ebx
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x4251ef
push dword [ebp - 0x418]
call edi
mov eax, esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00417499
mov esp, ebp
pop ebp
ret 4