joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427b4f
Capabilities:
Get common file path

Disassembly:
push 0x240
mov eax, 0x48f779
call fcn.0045b4ca
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.004357e0
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 0x427c46
and dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
je 0x427bcb
lea eax, [ebp - 0x218]
push eax
call fcn.004485b1
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00405810
and dword [ebp - 4], 0
push 0x4a80d4
call fcn.004485b1
pop ecx
push eax
push 0x4a80d4
lea ecx, [ebp - 0x230]
call fcn.00407450
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push edi
cmovae eax, dword [ebp - 0x230]
mov ecx, ebx
push eax
call fcn.004277b2
mov edi, eax
lea ecx, [ebp - 0x230]
push 0
push 1
test edi, edi
je 0x427c37
call fcn.00405750
mov eax, edi
jmp 0x427cf8
or dword [ebp - 4], 0xffffffff
call fcn.00405750
mov edi, dword [ebp - 0x24c]
push 0
push 0x10
lea eax, [ebp - 0x218]
push eax
push 0
call esi
test eax, eax
je 0x427cf6
and dword [ebp - 0x238], 0
xor eax, eax
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
cmp word [ebp - 0x218], ax
je 0x427c8d
lea eax, [ebp - 0x218]
push eax
call fcn.004485b1
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00405810
mov esi, 0x4a80d4
mov dword [ebp - 4], 1
push esi
call fcn.004485b1
pop ecx
push eax
push esi
lea ecx, [ebp - 0x248]
call fcn.00407450
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push edi
cmovae eax, dword [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.004277b2
push 0
lea ecx, [ebp - 0x248]
mov esi, eax
push 1
call fcn.00405750
test esi, esi
je 0x427cf6
mov eax, esi
jmp 0x427cf8
xor eax, eax
call fcn.0045b485
ret 4
Function at 0x427d00
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 [0x4b03e8]
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 0x427d53
xor eax, eax
jmp 0x427e52
push ebx
push 0x208
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004357e0
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 0x427e3f
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 0x427e25
push 0x208
push eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0x420], 0x104
push eax
call fcn.004357e0
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 0x427e1d
push dword [ebp - 0x428]
lea eax, [ebp - 0x414]
push eax
call fcn.00437913
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 0x427d8f
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.004168b6
mov esp, ebp
pop ebp
ret 4
Function at 0x428796
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 [0x4b03e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x428], eax
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x418], ebx
push ebx
push eax
mov esi, ebx
mov dword [ebp - 0x41c], ebx
call fcn.004357e0
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
push 0x109
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4288e1
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
jmp 0x4288bb
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 0x4288ad
push 0x208
push eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0x420], 0x104
push eax
call fcn.004357e0
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 0x4288a5
push dword [ebp - 0x428]
lea eax, [ebp - 0x414]
push eax
call fcn.00437913
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 0x428817
push dword [ebp - 0x418]
call edi
test esi, esi
jne 0x4289d6
xor ebx, ebx
lea eax, [ebp - 0x418]
push eax
push 9
push ebx
push 0x494e68
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4289d6
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
jmp 0x4289ba
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 0x4289ac
push 0x208
push eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0x424], 0x104
push eax
call fcn.004357e0
add esp, 0xc
xor eax, eax
inc eax
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x420]
push eax
push 0
push str.DisplayName
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4289a4
push dword [ebp - 0x428]
lea eax, [ebp - 0x414]
push eax
call fcn.00437913
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 0x428916
push dword [ebp - 0x418]
call edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004168b6
mov esp, ebp
pop ebp
ret 4
Function at 0x428b56
Capabilities:
Check if file exists
Get common file path
Get startup folder

Disassembly:
push 0x83c
mov eax, 0x48f8c6
call fcn.0045b4ca
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
xor ebx, ebx
push ebx
push eax
call fcn.004357e0
add esp, 0xc
lea eax, [ebp - 0x218]
push ebx
push 0x1a
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [ebp - 0x834], 7
mov dword [ebp - 0x838], ebx
mov word [ebp - 0x848], ax
cmp word [ebp - 0x218], ax
je 0x428bc1
lea eax, [ebp - 0x218]
push eax
call fcn.004485b1
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x848]
call fcn.00405810
mov dword [ebp - 4], ebx
mov ebx, str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar_
push ebx
call fcn.004485b1
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x848]
call fcn.00407450
xor ebx, ebx
cmp word [esi], bx
jne 0x428bfb
mov eax, ebx
jmp 0x428c02
push esi
call fcn.004485b1
pop ecx
push eax
push esi
lea ecx, [ebp - 0x848]
call fcn.00407450
mov esi, str..lnk
push esi
call fcn.004485b1
pop ecx
push eax
push esi
lea ecx, [ebp - 0x848]
call fcn.00407450
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x848]
push eax
call esi
test eax, eax
je 0x428d10
push 0x208
lea eax, [ebp - 0x830]
push ebx
push eax
call fcn.004357e0
push 0x208
lea eax, [ebp - 0x628]
push ebx
push eax
call fcn.004357e0
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
cmovae eax, dword [ebp - 0x848]
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.0044858f
add esp, 0x20
lea eax, [ebp - 0x628]
mov ecx, edi
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.0042750d
push 0x208
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.004357e0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [ebp - 0x420]
push eax
call fcn.004485b1
pop ecx
test eax, eax
jne 0x428cfe
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.0044858f
pop ecx
pop ecx
lea eax, [ebp - 0x420]
push eax
call esi
test eax, eax
je 0x428d10
xor esi, esi
inc esi
jmp 0x428d12
mov esi, ebx
push ebx
push 1
lea ecx, [ebp - 0x848]
call fcn.00405750
mov eax, esi
call fcn.0045b485
ret 4
Function at 0x428d2a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4b03e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [0x4b6644]
test al, al
jne 0x428dc3
push ebx
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004357e0
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 0x428dba
lea eax, [ebp - 0x20c]
push eax
call fcn.00448775
lea eax, [ebp - 0x20c]
mov dword [esp], str.config_systemprofile
push eax
call fcn.00437913
pop ecx
pop ecx
test eax, eax
jne 0x428db2
lea eax, [ebp - 0x20c]
push str.documents_and_settingslocalservice
push eax
call fcn.00437913
pop ecx
pop ecx
test eax, eax
je 0x428dba
mov byte [0x4b6644], bl
jmp 0x428dc0
mov bl, byte [0x4b6644]
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004168b6
mov esp, ebp
pop ebp
ret
Function at 0x4297e4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4b03e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push edi
push 0x208
xor esi, esi
mov edi, ecx
push esi
push eax
call fcn.004357e0
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push 0x17
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x42984f
lea eax, [ebp - 0x20c]
push 0x4a80d4
push eax
call fcn.0044851e
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00428dd1
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004168b6
mov esp, ebp
pop ebp
ret 4
Function at 0x429c16
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push 0xc8
mov eax, 0x48faaf
call fcn.0045b4ca
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xd0], ebx
push ebx
xor eax, eax
mov dword [ebp - 4], ebx
push 0x4a80e8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
call fcn.00405810
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.0041b2f4
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 0x429d8a
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 accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x429cb4
push 0x4a80e8
mov ecx, esi
call fcn.004056b0
jmp 0x429d95
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.004168ea
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x429cf3
push 0x4a80e8
mov ecx, esi
call fcn.004056b0
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00405750
push ebx
jmp 0x429da1
push dword [ebp - 0xcc]
push 0
push ebx
call fcn.004357e0
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.0041ccd7
push ebx
call fcn.004168f3
pop ecx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xc4]
call fcn.0041c525
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.0041dbd5
pop ecx
pop ecx
xor ebx, ebx
mov byte [ebp - 4], 4
push ebx
push 1
lea ecx, [ebp - 0x58]
call fcn.0041bcd8
cmp dword [ebp - 0x30], ebx
jbe 0x429d7f
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00405a30
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.00405750
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00407860
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00405750
push ebx
push 1
lea ecx, [ebp + 0xc]
call fcn.00405750
mov eax, esi
call fcn.0045b485
ret
Function at 0x42b899
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push 0x858
mov eax, 0x48fed7
call fcn.0045b4ca
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x830]
mov esi, dword [ebp + 0xc]
mov ebx, 0x208
and dword [ebp - 0x864], 0
push ebx
push 0
push eax
call fcn.004357e0
lea eax, [ebp - 0x860]
push esi
push eax
call fcn.0041dbd5
xor esi, esi
lea eax, [ebp - 0x860]
cmp dword [ebp - 0x84c], 8
mov dword [ebp - 4], esi
cmovae eax, dword [ebp - 0x860]
push eax
lea eax, [ebp - 0x848]
push eax
call fcn.00430ec7
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x848]
push eax
lea eax, [ebp - 0x830]
push 0x4a80e0
push eax
call fcn.0040cbc0
push ebx
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.004357e0
push ebx
lea eax, [ebp - 0x628]
push esi
push eax
call fcn.004357e0
add esp, 0x40
lea eax, [ebp - 0x420]
push ebx
push esi
push eax
call fcn.004357e0
add esp, 0xc
lea eax, [ebp - 0x420]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0044858f
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0044851e
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42b9c5
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
call fcn.004056b0
push 0
push 1
lea ecx, [ebp - 0x848]
call fcn.00405750
push 0
push 1
lea ecx, [ebp - 0x860]
call fcn.00405750
mov eax, edi
call fcn.0045b485
ret 8
Function at 0x42c6cd
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x49008f
call fcn.0045b4ca
mov esi, ecx
mov dword [ebp - 0x30], esi
mov ecx, dword [ebp + 8]
or ebx, 0xffffffff
cmp ecx, ebx
sete al
test al, al
je 0x42c6f9
xor eax, eax
cmp ecx, ebx
cmovne eax, ecx
jmp 0x42c85a
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x42c727
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x42c727
mov eax, dword [ebp + 8]
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], al
jmp 0x42c85a
cmp dword [esi + 0x4c], 0
je 0x42c858
mov ecx, esi
call fcn.0042c41a
xor ecx, ecx
cmp dword [esi + 0x38], ecx
jne 0x42c757
push dword [esi + 0x4c]
mov esi, dword [ebp + 8]
push esi
call fcn.0042a9d9
test al, al
pop ecx
pop ecx
cmovne ebx, esi
jmp 0x42c858
mov eax, dword [ebp + 8]
push ecx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x28], cl
lea ecx, [ebp - 0x28]
push 8
mov byte [ebp - 0x2c], al
mov dword [ebp - 0x14], 0xf
call fcn.0041bd57
and dword [ebp - 4], 0
lea eax, [esi + 0x40]
mov dword [ebp - 0x34], eax
mov edi, dword [ebp - 0x14]
mov esi, dword [esi + 0x38]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
cmp edi, 0x10
lea edx, [ebp - 0x28]
mov edi, dword [esi]
cmovae ecx, dword [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
add eax, ecx
push eax
push edx
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
lea eax, [ebp - 0x2b]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x34]
call dword [edi + 0x1c]
test eax, eax
js 0x42c84c
cmp eax, 1
jg 0x42c831
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp edi, 0x10
mov edx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x30]
cmovae eax, ecx
sub edx, eax
mov dword [ebp - 0x3c], edx
je 0x42c802
push dword [esi + 0x4c]
cmp edi, 0x10
lea eax, [ebp - 0x28]
push edx
cmovae eax, ecx
push 1
push eax
call fcn.00448383
mov edx, dword [ebp - 0x3c]
add esp, 0x10
cmp edx, eax
jne 0x42c84c
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x40], eax
jne 0x42c82c
test edx, edx
jne 0x42c782
cmp dword [ebp - 0x18], 0x20
jae 0x42c84c
push edx
push 8
lea ecx, [ebp - 0x28]
call fcn.00415bd0
jmp 0x42c77f
mov ebx, dword [ebp + 8]
jmp 0x42c84c
cmp eax, 3
jne 0x42c84c
mov eax, dword [ebp - 0x30]
push dword [eax + 0x4c]
push dword [ebp - 0x2c]
call fcn.0042a9d9
test al, al
pop ecx
cmovne ebx, dword [ebp + 8]
pop ecx
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0041bcd8
mov eax, ebx
call fcn.0045b485
ret 4
Function at 0x43021e
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push esi
push edi
mov dword [ebp - 4], eax
lea edi, [eax + 0x210]
mov esi, dword [edi]
mov dword [ebp - 8], edi
cmp esi, dword [eax + 0x214]
je 0x4302eb
lea edi, [esi + 0x28]
lea ecx, [ebx + 0xa8]
mov dword [ebp + 8], edi
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x49223c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub edi, 0xffffff80
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x49223c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x49223c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x49223c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebx + 0xa8]
push edi
push eax
call fcn.00448f30
mov edi, dword [ebp + 8]
pop ecx
pop ecx
test eax, eax
jne 0x4302c7
lea eax, [ebx + 0x28]
push edi
push eax
call fcn.00448f30
pop ecx
pop ecx
test eax, eax
je 0x430308
mov eax, 0x1b0
lea ecx, [ebx + 0xa8]
add edi, eax
add esi, eax
mov eax, dword [ebp - 4]
mov dword [ebp + 8], edi
cmp esi, dword [eax + 0x214]
jne 0x430251
mov edi, dword [ebp - 8]
lea eax, [ebx + 0xa8]
push eax
call fcn.004480c0
pop ecx
test eax, eax
je 0x430308
push ebx
mov ecx, edi
call fcn.00430c4a
mov al, 1
jmp 0x43030a
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x430b8d
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4b03e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, 0x114
push edi
push ebx
xor edi, edi
mov eax, dword [esi + 0x210]
mov dword [esi + 0x214], eax
lea eax, [ebp - 0x118]
push edi
push eax
call fcn.004357e0
add esp, 0xc
mov dword [ebp - 0x118], ebx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x430bee
mov ecx, esi
call fcn.004305e4
jmp 0x430c03
mov ebx, edi
test edi, edi
jne 0x430c03
mov ecx, esi
call fcn.004304bf
inc ebx
mov edi, eax
cmp ebx, 0xa
jl 0x430bf0
mov eax, dword [esi + 0x214]
mov ecx, 0x1b0
sub eax, dword [esi + 0x210]
cdq
idiv ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004168b6
mov esp, ebp
pop ebp
ret

Function at 0x430de6
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
push str.kernel32.dll
mov esi, ecx
call ebx
mov dword [esi], eax
test eax, eax
je 0x430e66
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x495e60
push eax
call edi
push str.IsWow64Process
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.Wow64DisableWow64FsRedirection
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.Wow64RevertWow64FsRedirection
push dword [esi]
mov dword [esi + 0x18], eax
call edi
push str.GetSystemWow64DirectoryW
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push str.advapi32.dll
mov dword [esi + 0x10], eax
call ebx
mov dword [esi + 4], eax
test eax, eax
je 0x430e65
mov ebx, str.Wow64RevertWow64FsRedirection
push ebx
push eax
call edi
push ebx
push dword [esi + 4]
mov dword [esi + 0x20], eax
call edi
mov dword [esi + 0x1c], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
ret
Function at 0x43155b
Capabilities:
Create directory

Disassembly:
push 0x49c
mov eax, 0x49075d
call fcn.0045b4ca
mov ebx, ecx
mov edi, dword [ebp + 8]
test edi, edi
jne 0x43157a
xor eax, eax
jmp 0x431702
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.004357e0
lea eax, [ebp - 0x110]
push edi
push eax
call fcn.00448a50
push edi
xor esi, esi
call fcn.004480c0
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.004357e0
add esp, 0x24
cmp byte [ebp + edi - 0x111], 0x5c
je 0x4315e9
mov byte [ebp + edi - 0x110], 0x5c
cmp byte [ebp - 0x110], 0
je 0x4316f0
mov al, byte [ebp + esi - 0x110]
cmp al, 0x3a
jne 0x431609
push 2
pop eax
jmp 0x4316e0
cmp al, 0x5c
jne 0x4316dd
push esi
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004344f0
add esp, 0xc
cmp esi, 0x100
jae 0x43171e
lea eax, [ebp - 0x210]
mov byte [ebp + esi - 0x210], 0
push eax
lea ecx, [ebp - 0x240]
call fcn.00412690
lea eax, [ebp - 0x240]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x258]
mov ecx, ebx
push eax
call fcn.00431c71
push eax
lea ecx, [ebp - 0x228]
call fcn.004071f0
push 0
push 1
lea ecx, [ebp - 0x258]
call fcn.00405750
push 0
push 1
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 0
call fcn.0041bcd8
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 0x4316dd
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 0x43170a
xor eax, eax
inc eax
add esi, eax
cmp byte [ebp + esi - 0x110], 0
jne 0x4315f6
push 0
push 1
lea ecx, [ebp - 0x228]
call fcn.00405750
xor eax, eax
inc eax
call fcn.0045b485
ret 4
push 0
push 1
lea ecx, [ebp - 0x228]
call fcn.00405750
jmp 0x431573
call fcn.004170ee
int3

Function at 0x431c43
Capabilities:
Create thread

Disassembly:
mov edx, dword [ecx + 0x300]
or eax, 0xffffffff
cmp edx, eax
je 0x431c55
cmp edx, 1
jne 0x431c70
xor eax, eax
push eax
push eax
push ecx
push 0x4319e1
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
ret