joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000262f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
jne 0x10002649
xor esi, esi
jmp 0x10002677
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.100041d0
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 4], edi
jne 0x100026b4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1000269f
call esi
mov esi, eax
jmp 0x10002747
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x10002747
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x100026d8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebx
mov dword [ebp + 8], edi
jne 0x100026fa
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x100026e8
call esi
jmp 0x1000273c
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1000273e
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov eax, dword [ebp + 8]
cmp byte [esi + eax], bl
je 0x10002730
lea eax, [esi + 1]
add eax, 3
and al, 0xfc
call fcn.100041d0
lea eax, [esi + 1]
mov edi, esp
push eax
push dword [ebp + 8]
push edi
call fcn.10003de0
add esp, 0xc
mov byte [edi + esi], bl
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push edi
call fcn.100027ae
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x10003136
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
push 0x2001f
push dword [ebp + 8]
mov ebx, ecx
xor esi, esi
lea ecx, [ebp - 4]
push dword [ebx]
mov dword [ebp - 4], esi
call fcn.100030f8
mov edi, eax
cmp edi, esi
je 0x10003173
cmp dword [ebp - 4], esi
je 0x1000316f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x100031e0
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x10003191
lea eax, [ebp - 0x114]
lea ecx, [ebp - 4]
push eax
call fcn.10003136
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x100031e7
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 0x100
push eax
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push dword [ebp - 4]
call edi
test eax, eax
je 0x1000317b
cmp dword [ebp - 4], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x100031c7
push dword [ebp - 4]
call edi
mov dword [ebp - 4], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 4], esi
mov ebx, eax
je 0x100031de
push dword [ebp - 4]
call edi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
cmp dword [ebp - 4], esi
je 0x100031f5
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
jmp 0x100031e0
Function at 0x100031fa
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.100041d0
push ebx
push esi
lea eax, [ebp - 0x2014]
push edi
mov esi, ecx
push eax
mov dword [ebp - 0x14], esi
call fcn.100028f6
xor edi, edi
cmp eax, edi
jl 0x100033a4
lea eax, [ebp - 0xa]
push eax
lea eax, [ebp - 0x2014]
push eax
call fcn.100033b1
pop ecx
test eax, eax
pop ecx
jne 0x10003245
mov eax, 0x80020009
jmp 0x100033a4
mov ecx, esi
call fcn.100028ce
lea eax, [ebp - 0x1014]
mov ecx, esi
push eax
call fcn.100028f6
cmp eax, edi
jl 0x100033a4
movzx eax, word [ebp - 0xa]
sub eax, 8
je 0x1000336c
sub eax, 9
je 0x100032d1
dec eax
dec eax
jne 0x10003393
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.100041d0
mov ebx, esp
push esi
push ebx
lea eax, [ebp - 0x1014]
push 0xffffffffffffffff
push eax
push edi
push edi
mov word [ebx], di
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push ebx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x10]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
jmp 0x10003384
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, 1
mov dword [ebp - 8], eax
jne 0x1000330d
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.100041d0
mov dword [ebp - 4], esp
push ebx
push edi
push dword [ebp - 4]
call fcn.10003d80
add esp, 0xc
cmp dword [ebp - 4], edi
jne 0x10003317
mov eax, 0x80004005
jmp 0x100033a4
cmp dword [ebp - 8], 0
jle 0x10003351
mov ecx, dword [ebp - 4]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov al, byte [ebp + edi - 0x1014]
push eax
call fcn.10003430
pop ecx
mov ecx, edi
push 4
and ecx, 1
shl ecx, 2
mov edx, ecx
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 8]
jl 0x1000331d
mov eax, dword [ebp + 8]
push ebx
push dword [ebp - 4]
mov eax, dword [eax]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor edi, edi
jmp 0x10003393
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x1014]
push eax
push 1
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.100028f6
cmp eax, edi
jl 0x100033a4
xor eax, eax
lea esp, [ebp - 0x2020]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x409664
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
cmp dword [0x42001c], 0
je 0x409684
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
mov dword [0x42001c], 1
push 0x40
mov eax, 0x4120d8
add eax, 0x154
push eax
mov eax, 0x4120d8
add eax, 0x192
push eax
push 0
call dword [sym.imp.USER32.DLL_MessageBoxA]
jmp 0x4096b3
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409b36
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
mov dword [ebp - 0x54], 0
push 1
lea eax, [ebp - 0x54]
push eax
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x50], 0
mov eax, dword [ebp - 0xc]
shl eax, 2
cmp dword [eax + eax*4 + 0x412558], 0xffffffff
je 0x409b85
inc dword [ebp - 0xc]
jmp 0x409b69
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
shl ecx, 2
mov dword [ecx + ecx*4 + 0x412558], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
shl ecx, 2
mov dword [ecx + ecx*4 + 0x412560], eax
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 0
lea eax, [ebp - 0x50]
push eax
push 0x40
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
lea eax, [ebp - 0x30]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 4]
xor eax, dword [ecx + 0x10]
mov ecx, dword [ebp - 0xc]
shl ecx, 2
mov dword [ecx + ecx*4 + 0x412564], eax
test dword [ebp - 0x4c], 0xffff
jne 0x409c08
mov eax, dword [ebp - 0xc]
shl eax, 2
mov dword [eax + eax*4 + 0x412560], 4
mov eax, dword [ebp - 0xc]
shl eax, 2
cmp dword [eax + eax*4 + 0x412560], 4
je 0x409c35
push 0
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
jmp 0x409c4a
push 0
push 0
mov eax, dword [ebp - 8]
add eax, 0x40
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
jmp 0x409c4f
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409c54
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00409d57
add esp, 0x14
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x409c8e
jmp 0x409d4d
mov eax, dword [ebp - 4]
sub eax, 0x40
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.00409d57
add esp, 0x14
test eax, eax
jne 0x409cbf
jmp 0x409d48
mov dword [ebp - 0x14], 0
jmp 0x409cce
inc dword [ebp - 0x14]
mov eax, dword [ebp - 4]
sub eax, 0x40
cmp eax, dword [ebp - 0x14]
jbe 0x409cfd
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
xor edx, edx
mov dl, byte [eax + ecx + 0x40]
mov al, byte [edx + 0x412308]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov byte [ecx + edx], al
jmp 0x409ccb
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
jmp 0x409d52
jmp 0x409cfd
jmp 0x409cfd
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409d57
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
cmp dword [ebp + 0x18], 0
je 0x409d76
mov dword [ebp - 0x14], 0xc0000000
jmp 0x409d7d
mov dword [ebp - 0x14], 0x80000000
cmp dword [ebp + 0x18], 0
je 0x409d93
mov dword [ebp - 0xc], 2
jmp 0x409d9a
mov dword [ebp - 0xc], 1
cmp dword [ebp + 0x18], 0
je 0x409db0
mov dword [ebp - 4], 2
jmp 0x409db7
mov dword [ebp - 4], 3
cmp dword [ebp + 0x18], 0
je 0x409dcd
mov dword [ebp - 0x10], 4
jmp 0x409dd4
mov dword [ebp - 0x10], 2
cmp dword [ebp + 0x18], 0
je 0x409dea
mov dword [ebp - 8], 2
jmp 0x409df1
mov dword [ebp - 8], 4
push 0
push 0x80
mov eax, dword [ebp - 4]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0xffffffff
jne 0x409e28
xor eax, eax
jmp 0x409ec3
push 0
mov eax, dword [ebp + 0x18]
push eax
push 0
mov eax, dword [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
jne 0x409e66
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
jmp 0x409ec3
mov eax, dword [ebp + 0x18]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0
jne 0x409eae
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
jmp 0x409ec3
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
jmp 0x409ec3
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a358
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
cmp dword [eax], 0xffffffff
jne 0x40a374
xor eax, eax
jmp 0x40a419
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x40a389
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp dword [ebp + 0x10], eax
jbe 0x40a3b4
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor edx, edx
mov dl, byte [eax + ecx]
mov al, byte [edx + 0x412410]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov byte [ecx + edx], al
jmp 0x40a386
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
mov dword [ebp - 4], 0
jmp 0x40a3e4
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp dword [ebp + 0x10], eax
jbe 0x40a40f
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor edx, edx
mov dl, byte [eax + ecx]
mov al, byte [edx + 0x412308]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov byte [ecx + edx], al
jmp 0x40a3e1
mov eax, 1
jmp 0x40a419
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40a50d
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
cmp dword [eax], 0xffffffff
jne 0x40a526
xor eax, eax
jmp 0x40a572
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 1
je 0x40a540
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 2
jne 0x40a550
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x40a568
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
sub eax, 0x40
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, 1
jmp 0x40a572
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40a6c8
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
nop
leave
add esp, 4
popal
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
pushal
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
jmp 0x40a704
inc dword [ebp - 0xc]
mov eax, dword [0x420018]
cmp dword [ebp - 0xc], eax
jge 0x40a739
mov eax, dword [ebp - 0xc]
mov eax, dword [eax*4 + 0x4207c8]
push eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiA]
test eax, eax
jne 0x40a734
jmp 0x40a739
jmp 0x40a701
mov eax, dword [0x420018]
cmp dword [ebp - 0xc], eax
jl 0x40a763
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.00409c54
add esp, 8
mov dword [ebp - 0x10], 1
jmp 0x40a793
cmp dword [0x42021c], 0
jne 0x40a784
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_MoveFileA]
mov dword [ebp - 0x10], eax
jmp 0x40a793
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
mov dword [ebp - 0x10], eax
popal
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x40ab68
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
nop
nop
leave
add esp, 4
popal
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
pushal
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0
jmp 0x40abb0
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
shl eax, 2
cmp dword [eax + eax*4 + 0x412558], 0xffffffff
je 0x40abe4
mov eax, dword [ebp - 0x1c]
shl eax, 2
mov ecx, dword [ebp - 0x18]
cmp dword [eax + eax*4 + 0x412558], ecx
jne 0x40abdf
jmp 0x40abe4
jmp 0x40abad
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x1c]
shl eax, 2
lea eax, [eax + eax*4]
add eax, 0x412558
push eax
call fcn.0040a0e3
add esp, 0x18
test eax, eax
je 0x40ac38
cmp dword [ebp - 4], 0
je 0x40ac33
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x1c]
shl ecx, 2
add dword [ecx + ecx*4 + 0x41255c], eax
jmp 0x40ac55
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov dword [ebp - 4], eax
popal
mov eax, dword [ebp - 4]
leave
ret 0x14

Function at 0x40e299
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
test eax, eax
jne 0x40e2c1
xor eax, eax
leave
ret
mov eax, dword [ebp - 0x84]
xor ecx, ecx
sub eax, ecx
je 0x40e2f5
dec eax
je 0x40e2d5
dec eax
je 0x40e2e7
jmp 0x40e2bd
cmp dword [ebp - 0x8c], ecx
jne 0x40e2e1
push 4
jmp 0x40e2f7
jbe 0x40e2e7
push 5
jmp 0x40e2f7
cmp dword [ebp - 0x90], 5
sbb eax, eax
add eax, 7
leave
ret
push 3
pop eax
leave
ret

Function at 0x410f0d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0x14], esi
jle 0x410f3f
push ebx
push edi
mov edi, dword [ebp + 8]
sub edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
push 4
pop ebx
lea ecx, [eax + esi]
mov eax, esi
cdq
idiv ebx
mov al, byte [edx + ebp + 0x10]
xor al, byte [ecx + edi]
inc esi
cmp esi, dword [ebp + 0x14]
mov byte [ecx], al
jl 0x410f20
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x406290
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x42cd2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x4043d4
call fcn.00406fac
push 4
mov dword [esp + 0x18], 0
call fcn.00408221
mov edi, eax
add esp, 4
test edi, edi
je 0x406304
push ebx
call fcn.00406da7
mov dword [edi], eax
call fcn.00406b66
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00406f6d
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4062f8
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.00406f95
pop ebx
jmp 0x406306
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x40889b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4305e8]
jne 0x4088a5
repz ret
jmp fcn.0040dd4c
Function at 0x411e33
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4305e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040c1e9
and dword [ebp - 0x14], 0
cmp dword [0x435a98], 0
mov dword [ebp - 0x18], eax
jne 0x411ee6
push 0x403884
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x411f8e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403878
push ebx
call edi
test eax, eax
je 0x411f8e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403868
push ebx
mov dword [0x435a98], eax
call edi
push eax
call esi
push 0x403854
push ebx
mov dword [0x435a9c], eax
call edi
push eax
call esi
push 0x403838
push ebx
mov dword [0x435aa0], eax
call edi
push eax
call esi
mov dword [0x435aa8], eax
test eax, eax
je 0x411ee6
push 0x403820
push ebx
call edi
push eax
call esi
mov dword [0x435aa4], eax
mov eax, dword [0x435aa4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x411f3f
cmp dword [0x435aa8], ecx
je 0x411f3f
push eax
call esi
push dword [0x435aa8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x411f3f
test ebx, ebx
je 0x411f3f
call edi
test eax, eax
je 0x411f36
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x411f36
test byte [ebp - 8], 1
jne 0x411f3f
or dword [ebp + 0x10], 0x200000
jmp 0x411f72
mov eax, dword [0x435a9c]
cmp eax, dword [ebp - 0x18]
je 0x411f72
push eax
call esi
test eax, eax
je 0x411f72
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x411f72
mov eax, dword [0x435aa0]
cmp eax, dword [ebp - 0x18]
je 0x411f72
push eax
call esi
test eax, eax
je 0x411f72
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x435a98]
call esi
test eax, eax
je 0x411f8e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x411f90
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040889b
leave
ret

Function at 0x42a320
Capabilities:
Get common file path
Manipulate console buffer

Disassembly:
sub esp, 0xc08
cmp dword [0x7b983c], 0x37
jne 0x42a39d
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommState]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
push 0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 4]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
lea edx, [esp + 0x40c]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov eax, dword [0x7ba830]
mov dword [esp], eax
mov eax, 0x5d1
add dword [esp], eax
mov ecx, dword [esp]
mov dl, byte [ecx + esi]
mov eax, dword [0x7b97a4]
mov byte [eax + esi], dl
add esp, 0xc08
ret