joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10110c24
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [0x101c9fbc], 0
mov byte [0x101c9fc0], 0
mov dword [0x101c9fb0], 0x719
mov dword [0x101c9fb8], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
xor eax, eax
mov dword [ebp - 0x1c], eax
jmp 0x10110c82
mov dword [0x101c9fb8], 0
xor eax, eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
jmp 0x10110cc0
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x101c9fb4]
add eax, 0xfffff13a
mov dword [0x101c9fb0], eax
mov esi, dword [0x101c9fb8]
add esi, 1
mov dword [0x101c9fb8], esi
cmp esi, 0x100
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
jl 0x10110c82
jmp 0x10110c6b
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov edx, 0x100
mov dword [0x101c9fc4], 0
mov esi, dword [0x101c9fbc]
mov edi, dword [ebp - 0x18]
movzx ebx, byte [edi + eax]
add ebx, esi
mov dword [ebp - 0x2c], eax
xor esi, esi
mov dword [ebp - 0x30], edx
mov edx, esi
mov esi, dword [ebp - 0x10]
div esi
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add ebx, edx
mov dword [0x101c9fc4], ebx
mov dword [0x101c9fb4], 0xde7
mov eax, ebx
cdq
mov ebx, dword [ebp - 0x30]
idiv ebx
mov dword [0x101c9fbc], edx
mov esi, dword [ebp - 0x2c]
mov bl, byte [edi + esi]
mov byte [0x101c9fc0], bl
add ecx, 0x17b0
mov dword [0x101c9fb0], ecx
mov bl, byte [edi + edx]
mov byte [edi + esi], bl
mov dword [0x101c9fb0], 0x20e9
mov bl, byte [0x101c9fc0]
mov ecx, dword [0x101c9fbc]
mov byte [edi + ecx], bl
mov ecx, dword [0x101c9fb8]
add ecx, 1
mov dword [0x101c9fb8], ecx
cmp ecx, 0x100
mov dword [ebp - 0x34], ecx
jge 0x10110d81
mov eax, dword [0x101c9fb0]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
jmp 0x10110cc0
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10110e1c
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [0x101c9fb0], 0x1c02
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x10110ea1
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x18], eax
je 0x10110f13
jmp 0x10110f0c
mov eax, dword [ebp - 0x1c]
mov dword [0x101c9fb0], 0x848
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
je 0x10110ed0
jmp 0x10110f0c
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x10110e52
jmp 0x10110f0c
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
je 0x10110e72
mov eax, dword [ebp - 0x20]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], eax
jl 0x10110ea1
jmp 0x10110e72
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x10110f0c
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x10110f0c
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x10110f0c
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x10110e90
xor eax, eax
mov dword [ebp - 0x18], eax
jmp 0x10110f13
mov eax, dword [ebp - 0x18]
add esp, 0x20
pop ebp
ret
Function at 0x10110f1b
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x88
mov esi, esp
mov eax, 0x10
call fcn.1010f980
mov eax, esp
and eax, 0xfffffff8
mov esp, eax
mov dword [esi + 0x24], eax
call fcn.10001064
xor ecx, ecx
cmp eax, 0
mov dword [esi + 0x20], ecx
je 0x10110f61
jmp 0x1011108f
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x20], eax
jmp 0x1011108f
lea eax, [esi + 0x28]
mov ecx, dword [0x101c9fb4]
add ecx, 0xffffe60f
mov dword [0x101c9fb0], ecx
mov dword [esi + 0x18], eax
call fcn.10110e1c
xor ecx, ecx
cmp eax, 0
mov dword [esi + 0x1c], ecx
jne 0x10110f56
sub esp, 4
mov eax, dword [esi + 0x24]
mov dword [esp], eax
call fcn.1010fbaa
add esp, 4
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx]
mov dword [esi + 0x78], edx
mov dword [esi + 0x68], 0x125400
mov edx, dword [0x101c9f9c]
mov dword [esi + 0x60], edx
mov dword [esi + 0x14], eax
lea eax, [0x101102cb]
mov ecx, dword [0x101c9fa0]
mov dword [esi + 0x34], ecx
mov ecx, dword [0x101c9fa4]
mov dword [esi + 0x4c], ecx
mov ecx, dword [0x101c9fa8]
mov dword [esi + 0x64], ecx
mov ecx, dword [0x101c9fac]
mov dword [esi + 0x30], ecx
mov dword [0x101c9fb4], 0x5db
mov dword [0x101c9fb0], 0x183f
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x10]
cmp word [eax], 0x5a4d
mov dword [esi + 0xc], eax
jne 0x10111016
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esi + 8], ecx
je 0x10111028
mov eax, dword [esi + 0xc]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esi + 0x10], eax
jmp 0x10110ff7
mov eax, dword [esi + 8]
add eax, 0x50
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x7c], ecx
mov dword [0x101c9fb4], 0xffffffce
mov dword [esi + 4], eax
lea eax, [esi + 0x28]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
mov edi, dword [ecx + edx]
mov dword [esi + 0x50], edi
mov dword [0x101c9fb0], 0x108a
mov edi, dword [esi + 0x24]
mov ebx, dword [edi + 8]
push ebx
push eax
call fcn.101104a3
add esp, 8
mov dword [0x101c9fb4], 0x159a
sub esp, 4
mov ecx, esp
lea edx, [esi + 0x28]
mov dword [ecx], edx
call eax
mov eax, 1
mov dword [esi + 0x1c], eax
jmp 0x10110f56
mov eax, dword [esi + 0x20]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404214
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
cmp dword [ebp + 0xc], 0
push esi
mov esi, dword [ebp + 8]
je 0x4042f5
push esi
call fcn.00406877
test eax, eax
pop ecx
je 0x4042f5
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push str..
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4042ef
cmp byte [ebp - 0x114], 0x2e
jne 0x404285
cmp byte [ebp - 0x113], 0x2e
je 0x4042d6
cmp byte [ebp - 0x113], 0
je 0x4042d6
lea eax, [ebp - 0x114]
push eax
lea eax, [edi + esi + 1]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test byte [ebp - 0x140], 0x10
je 0x4042ad
push dword [ebp + 0xc]
push esi
call fcn.00404214
pop ecx
pop ecx
jmp 0x4042d6
push esi
push str.Delete_file:
call fcn.00406275
mov eax, dword [ebp - 0x140]
pop ecx
test al, 1
pop ecx
je 0x4042cf
xor eax, 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x140]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40426a
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
and byte [edi + esi], 0
pop edi
pop ebx
push esi
push str.Remove_directory:
call fcn.00406275
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
leave
ret

Function at 0x40430c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
xor ebx, ebx
push 0xf003f
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40439e
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
jne 0x404389
cmp dword [ebp + 0x10], ebx
jne 0x40437b
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.0040430c
add esp, 0xc
test eax, eax
jne 0x404389
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
jmp 0x40434b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
jmp 0x40439e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4043da
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
xor edi, edi
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x20]
push 0x1c
push eax
push dword [0x422de8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404455
cmp dword [ebp - 4], 0x1c
jne 0x404455
lea eax, [ebp - 0x20]
push eax
call fcn.004043a3
test eax, eax
pop ecx
je 0x404455
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x40cea8
mov esi, eax
call fcn.00401d2c
push dword [ebp - 0xc]
push esi
push 0xffffffffffffffff
call fcn.004046c8
add esp, 0x10
cmp eax, dword [ebp - 0xc]
je 0x40445c
push edi
push 0x4225e0
push str.Error_reading_installer_info_block
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
or eax, 0xffffffff
pop edi
pop esi
leave
ret
push 1
push edi
push edi
push dword [0x422de8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test byte [ebp - 0x20], 2
mov dword [0x418ec4], eax
mov dword [0x4225b8], esi
je 0x404488
inc dword [0x4225c0]
lea eax, [esi + 0x78]
jmp 0x40449f
lea eax, [esi + 0xf0]
mov dword [0x4225d0], eax
mov ecx, dword [esi + 0xe0]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [0x4225b4], eax
mov esi, dword [esi + 0x34]
lea ecx, [esi + esi*2]
lea eax, [eax + ecx*8]
mov dword [0x40cea0], eax
xor eax, eax
jmp 0x404458
Function at 0x4044e2
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
cmp ebx, edi
je 0x4044fc
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
jmp 0x404503
mov dword [ebp - 8], 0x8000
cmp ebx, edi
mov dword [ebp - 4], edi
jne 0x40450f
mov ebx, 0x410ec4
mov eax, dword [ebp + 8]
cmp eax, edi
jl 0x40452d
mov ecx, dword [0x418ec4]
push edi
add ecx, eax
push edi
push ecx
push dword [0x422de8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push 4
push eax
push dword [0x422de8]
call esi
test eax, eax
je 0x4046b5
test byte [ebp + 0xb], 0x80
je 0x40463b
push 0x40cea8
call fcn.00401d00
and dword [ebp + 8], 0x7fffffff
pop ecx
jle 0x4046c0
mov edi, 0x40cec4
jmp 0x40457d
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x4000
cmp dword [ebp + 8], eax
jge 0x40458a
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0x14]
push 0
push ecx
push eax
push edi
push dword [0x422de8]
call esi
test eax, eax
je 0x4046b5
mov eax, dword [ebp + 0x14]
mov dword [0x40cea8], edi
sub dword [ebp + 8], eax
mov dword [0x40ceac], eax
mov eax, dword [ebp - 8]
push 0x40cea8
mov dword [0x40ceb4], ebx
mov dword [0x40ceb8], eax
call fcn.00401d5b
test eax, eax
pop ecx
mov dword [ebp - 0x10], eax
jl 0x404630
mov eax, dword [0x40ceb4]
mov esi, eax
sub esi, ebx
je 0x404621
cmp dword [ebp + 0x10], 0
jne 0x404603
lea eax, [ebp + 0x14]
push 0
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404637
cmp dword [ebp + 0x14], esi
jne 0x404637
add dword [ebp - 4], esi
jmp 0x404615
sub dword [ebp - 8], esi
add dword [ebp - 4], esi
cmp dword [ebp - 8], 1
mov ebx, eax
jl 0x4046c0
cmp dword [ebp - 0x10], 1
je 0x4046c0
jmp 0x4045b3
cmp dword [ebp + 8], 0
jg 0x404577
jmp 0x4046c0
push 0xfffffffffffffffc
jmp 0x4046b7
push 0xfffffffffffffffe
jmp 0x4046b7
cmp dword [ebp + 0x10], edi
jne 0x404695
cmp dword [ebp + 8], edi
jle 0x4046c0
mov edi, 0x40cec4
mov eax, dword [ebp - 8]
cmp dword [ebp + 8], eax
jge 0x404655
mov eax, dword [ebp + 8]
xor ebx, ebx
lea ecx, [ebp - 0xc]
push ebx
push ecx
push eax
push edi
push dword [0x422de8]
call esi
test eax, eax
je 0x4046b5
lea eax, [ebp + 0x10]
push ebx
push eax
push dword [ebp - 0xc]
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404637
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
jne 0x404637
add dword [ebp - 4], eax
sub dword [ebp + 8], eax
cmp dword [ebp + 8], ebx
jg 0x40464a
jmp 0x4046c0
mov eax, dword [ebp + 0x14]
cmp dword [ebp + 8], eax
jge 0x4046a0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xc]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x422de8]
call esi
test eax, eax
jne 0x4046ba
push 0xfffffffffffffffd
pop eax
jmp 0x4046c3
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404cbd
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [0x4225b8]
push ebx
xor ebx, ebx
push ebp
mov cl, byte [eax + 0x63]
push esi
and cl, 4
push edi
mov byte [0x4225ac], cl
mov al, byte [eax + 0x63]
and al, 1
cmp dword [0x4225c0], ebx
mov byte [0x4225cc], al
jne 0x404de3
mov ebp, 0x421180
mov dword [0x40a438], 3
push ebp
mov dword [0x40a43c], ebx
call fcn.00406877
test eax, eax
pop ecx
jne 0x404dc5
mov eax, dword [0x4225b8]
cmp dword [eax + 0xa4], ebx
jl 0x404dc5
mov esi, 0x421da0
push esi
push dword [eax + 0xa8]
call fcn.004044b6
pop ecx
push eax
mov eax, dword [0x4225b8]
push dword [eax + 0xa4]
call fcn.004044b6
pop ecx
push eax
mov eax, dword [0x4225b8]
push dword [eax + 0xa0]
call fcn.00406c58
mov al, byte [0x421da0]
add esp, 0x10
cmp al, bl
je 0x404dc5
cmp al, 0x22
jne 0x404d81
mov edi, dword [sym.imp.USER32.dll_CharNextA]
push esi
call edi
mov esi, eax
mov cl, byte [eax]
cmp cl, bl
je 0x404d7f
cmp cl, 0x22
je 0x404d7f
push eax
call edi
jmp 0x404d6f
mov byte [eax], bl
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [eax + esi - 4]
cmp eax, esi
jbe 0x404dbd
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x404dbd
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x404db0
test al, 0x10
jne 0x404dbd
push esi
call fcn.00406810
cmp eax, esi
pop ecx
jb 0x404dbd
mov byte [eax], bl
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebp
call fcn.00406877
test eax, eax
pop ecx
jne 0x404de3
mov eax, dword [0x4225b8]
push dword [eax + 0xcc]
push ebp
call fcn.00406cba
pop ecx
pop ecx
mov eax, dword [0x4225b8]
mov edi, 0x4225e0
push dword [eax + 0x18]
push edi
call fcn.00406cba
mov eax, dword [0x4225b8]
pop ecx
pop ecx
cmp byte [eax + 0x62], bl
jne 0x404e72
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, eax
mov eax, dword [0x4225b8]
mov ecx, dword [eax + 0x38]
cmp ecx, 0xffffffff
je 0x404e34
push dword [eax + 0x40]
push dword [eax + 0x3c]
push ecx
push edi
push dword [0x41bd74]
call fcn.004023af
mov esi, eax
mov eax, dword [0x4225b8]
add esp, 0x14
push ebx
mov dword [0x422de4], esi
push dword [eax + 0x4c]
push dword [0x4225b4]
call fcn.004026b6
add esp, 0xc
test eax, eax
je 0x404e55
push 1
pop eax
jmp 0x404ecc
push ebx
push 0x404ed1
push esi
push 0x69
push dword [0x41bd74]
mov dword [0x422de4], ebx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
jmp 0x404ecc
push ebx
push dword [eax + 0x4c]
push dword [0x4225b4]
call fcn.004026b6
add esp, 0xc
test eax, eax
jne 0x404e50
push ebx
call fcn.00406329
test eax, eax
je 0x404eb3
cmp dword [0x4225a8], ebx
jne 0x404e50
mov eax, dword [0x4225b8]
push ebx
push dword [eax + 0x54]
push dword [0x4225b4]
call fcn.004026b6
add esp, 0xc
jmp 0x404e50
mov eax, dword [0x4225b8]
push ebx
push dword [eax + 0x50]
push dword [0x4225b4]
call fcn.004026b6
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x405497
Capabilities:
Hide graphical window

Disassembly:
cmp byte [0x4225ac], 0
push edi
je 0x4054e1
mov edi, dword [esp + 8]
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x407
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x3ee
push edi
call esi
push eax
push edi
call fcn.004054e3
mov eax, dword [0x4225c8]
pop ecx
pop ecx
pop esi
test eax, eax
je 0x4054e1
push eax
push edi
call fcn.004054e3
pop ecx
pop ecx
pop edi
ret

Function at 0x406768
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
xor esi, esi
xor eax, eax
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp + 0xc]
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4067bd
cmp dword [ebp - 0xc], esi
je 0x4067ba
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
leave
ret
Function at 0x406959
Capabilities:
Get common file path
Get file size

Disassembly:
sub esp, 0xc
and dword [esp], 0
push ebx
push ebp
push esi
push edi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [esp + 0x24]
mov esi, eax
test esi, esi
je 0x4069a9
push str.MoveFileExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406997
push 5
push edi
push dword [esp + 0x28]
call eax
mov dword [esp + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x10], 0
jne 0x406b4f
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov esi, 0x400
test edi, edi
mov ebp, 0x41b974
je 0x4069c4
push esi
push ebp
push edi
call ebx
jmp 0x4069ce
mov eax, dword [0x408364]
mov dword [0x41b974], eax
push esi
mov esi, 0x41b574
push esi
push dword [esp + 0x28]
call ebx
push esi
push ebp
push str._s_s_r_n
push 0x41b174
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov edi, eax
mov dword [esp + 0x24], edi
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor ebx, ebx
push ebx
push 0x8000080
push 4
push ebx
push ebx
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x14], esi
je 0x406b4f
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
push ebx
lea eax, [edi + ebp + 0xa]
push eax
push ebx
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x406b37
push ebx
push ebx
push ebx
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x406b2b
push 0xffffffffffffffff
push str._Rename__r_n
push ebx
call fcn.00406b5b
add esp, 0xc
test eax, eax
jne 0x406a9c
lea eax, [ebx + ebp]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add ebp, 0xa
mov eax, ebp
jmp 0x406b03
push 0xffffffffffffffff
push 0x40a4f8
push eax
call fcn.00406b5b
mov esi, eax
mov edi, ebx
inc esi
sub edi, esi
add edi, ebp
push edi
push 0x41b174
push esi
call fcn.00406b5b
add esp, 0x18
test eax, eax
jne 0x406b18
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push edi
push esi
push eax
mov dword [esp + 0x2c], eax
call fcn.00406917
mov eax, dword [esp + 0x30]
push edi
push dword [esp + 0x30]
add eax, esi
push eax
call fcn.00406917
add esp, 0x18
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edi, dword [esp + 0x24]
sub esi, ebx
mov eax, esi
mov esi, dword [esp + 0x14]
push edi
add eax, ebx
push 0x41b174
push eax
call fcn.00406917
add esp, 0xc
add ebp, edi
jmp 0x406b1c
mov esi, dword [esp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esp + 0x10], 1
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
push ebx
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x406bb3
Capabilities:
Create directory

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [sym.imp.USER32.dll_CharNextA]
cmp byte [esi], 0x20
jne 0x406bd0
push esi
call edi
mov esi, eax
cmp byte [esi], 0x20
je 0x406bc6
cmp byte [esi], 0
je 0x406c53
push esi
call edi
cmp byte [eax], 0x3a
mov bl, 0x5c
jne 0x406be9
cmp byte [eax + 1], bl
jne 0x406be9
lea esi, [eax + 2]
jmp 0x406c13
cmp byte [esi], bl
jne 0x406c53
cmp byte [esi + 1], bl
jne 0x406c53
push 2
pop ebp
mov al, byte [esi]
cmp al, bl
je 0x406c06
test al, al
je 0x406c06
push esi
call edi
mov esi, eax
jmp 0x406bf5
cmp byte [esi], 0
je 0x406c10
push esi
call edi
mov esi, eax
dec ebp
jne 0x406bf5
mov al, byte [esi]
test al, al
je 0x406c53
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp al, bl
je 0x406c30
test al, al
je 0x406c30
push esi
call edi
mov esi, eax
mov al, byte [esi]
jmp 0x406c1f
cmp byte [esi], 0
jne 0x406c3f
push 0
push dword [esp + 0x18]
call ebp
jmp 0x406c4d
and byte [esi], 0
push 0
push dword [esp + 0x18]
call ebp
mov byte [esi], bl
inc esi
mov al, byte [esi]
test al, al
jne 0x406c1f
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406c58
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406cb6
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 8]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406ca5
cmp dword [ebp + 8], 1
je 0x406ca7
mov byte [esi], bl
push dword [ebp + 0x14]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret