joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422540
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471106
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4899f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x78], ecx
mov eax, dword [ebp - 0x78]
mov dword [eax], vtable.CRAPCloudWorker.0
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x78]
cmp dword [ecx + 0xa4], 0
je 0x4225e3
push 0x7d0
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x4225d3
cmp dword [ebp - 0x10], 0x103
jne 0x4225d3
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x78]
mov edx, dword [ecx + 0xa4]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax + 0xa4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x78]
add ecx, 0xa0
call fcn.00406c00
mov ecx, dword [ebp - 0x78]
add ecx, 0x9c
call fcn.00406c00
push 0
push 1
mov ecx, dword [ebp - 0x78]
add ecx, 0x7c
call fcn.004070a0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x78]
add ecx, 0x20
call fcn.004224c0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
mov ecx, dword [ebp - 0x78]
add ecx, 4
call fcn.004070a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x422690
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4899f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.004472f0
add esp, 0xc
mov byte [ebp - 0x220], 0
push 0x103
push 0
lea ecx, [ebp - 0x21f]
push ecx
call fcn.004472f0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x110]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea eax, [ebp - 0x110]
push eax
call fcn.00448407
add esp, 8
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
je 0x422788
mov ecx, dword [ebp - 0x114]
mov byte [ecx], 0
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x220]
push eax
call fcn.004477e0
add esp, 8
push str._rsdebug.ini
lea ecx, [ebp - 0x220]
push ecx
call fcn.004477f0
add esp, 8
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x422782
lea eax, [ebp - 0x220]
push eax
push 0
push str.IsDebug
push str.Debug
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
setne al
jmp 0x42278a
xor al, al
jmp 0x42278a
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004472d8
mov esp, ebp
pop ebp
ret
Function at 0x425c30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.CLSIDCAA2D3B2_4BB5_4a45_A17A_122773379D99
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x425c65
jmp 0x425cb4
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x425c88
jmp 0x425cb4
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0xc]
jae 0x425c98
jmp 0x425cb4
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor edx, edx
jne 0x425c47
cmp dword [ebp - 8], 0
je 0x425ccb
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x427d10
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x4899f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xa0], 0
push 0x90
push 0
lea eax, [ebp - 0x9c]
push eax
call fcn.004472f0
add esp, 0xc
mov dword [ebp - 0xa0], 0x94
lea ecx, [ebp - 0xa0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x9c], 6
sbb eax, eax
neg eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004472d8
mov esp, ebp
pop ebp
ret

Function at 0x428250
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x4899f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.00428380
add esp, 4
test eax, eax
jne 0x42827a
xor eax, eax
jmp 0x428369
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0xffffffff
jne 0x4282a6
xor eax, eax
jmp 0x428369
push 0
mov edx, dword [ebp - 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x64], eax
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
jne 0x4282e3
mov ecx, dword [ebp - 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x428369
push 0
push 0
push 0
push 4
mov edx, dword [ebp - 0x6c]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
jne 0x428316
mov eax, dword [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x428369
lea edx, [ebp - 0x60]
push edx
call fcn.00420c60
add esp, 4
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [ebp - 0x68]
push ecx
lea edx, [ebp - 0x60]
push edx
call fcn.00420ca0
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x60]
push ecx
call fcn.00421bd0
add esp, 8
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004472d8
mov esp, ebp
pop ebp
ret
Function at 0x42cbc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471c77
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x4899f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb8], ecx
mov eax, dword [ebp - 0xb8]
mov dword [eax], vtable.TiXmlBase.0
mov ecx, dword [ebp - 0xb8]
add ecx, 4
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov dword [edx + 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xffffffff
mov ecx, dword [ebp - 0xb8]
mov dword [ecx + 0xc], 0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0xb8]
mov dword [edx], vtable.TiXmlAttribute.0
mov eax, dword [ebp - 0xb8]
add eax, 0x14
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x19]
mov dword [ebp - 0x18], ecx
push 0
push 0
mov ecx, dword [ebp - 0x34]
call fcn.004070a0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0xb8]
add edx, 0x30
mov dword [ebp - 0x58], edx
lea eax, [ebp - 0x3d]
mov dword [ebp - 0x3c], eax
push 0
push 0
mov ecx, dword [ebp - 0x58]
call fcn.004070a0
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 8]
push ecx
call fcn.004482c0
add esp, 4
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xb8]
add ecx, 0x14
call fcn.004079d0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004482c0
add esp, 4
mov dword [ebp - 0x88], eax
mov edx, dword [ebp - 0x88]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xb8]
add ecx, 0x30
call fcn.004079d0
mov ecx, dword [ebp - 0xb8]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 0xb8]
mov dword [edx + 0x50], 0
mov eax, dword [ebp - 0xb8]
mov dword [eax + 0x4c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x42e900
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471f13
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4899f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5c], ecx
mov eax, dword [ebp - 0x5c]
mov dword [eax], vtable.TiXmlBase.0
mov ecx, dword [ebp - 0x5c]
add ecx, 4
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov dword [edx + 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xffffffff
mov ecx, dword [ebp - 0x5c]
mov dword [ecx + 0xc], 0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x5c]
mov dword [edx], vtable.TiXmlAttribute.0
mov eax, dword [ebp - 0x5c]
add eax, 0x14
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x19]
mov dword [ebp - 0x18], ecx
push 0
push 0
mov ecx, dword [ebp - 0x34]
call fcn.004070a0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x5c]
add edx, 0x30
mov dword [ebp - 0x58], edx
lea eax, [ebp - 0x3d]
mov dword [ebp - 0x3c], eax
push 0
push 0
mov ecx, dword [ebp - 0x58]
call fcn.004070a0
mov ecx, dword [ebp - 0x5c]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 0x5c]
mov dword [edx + 0x50], 0
mov eax, dword [ebp - 0x5c]
mov dword [eax + 0x4c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x445ac0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4899f8]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
mov byte [ebp - 0x118], 0
push 0x103
push 0
lea eax, [ebp - 0x117]
push eax
call fcn.004472f0
add esp, 0xc
cmp dword [ebp + 0x10], 0
jne 0x445b15
push 0
push 0x104
lea ecx, [ebp - 0x118]
push ecx
call fcn.00446be0
add esp, 0xc
jmp 0x445b2a
mov edx, dword [ebp + 0x10]
push edx
push 0x104
lea eax, [ebp - 0x118]
push eax
call fcn.00446b60
push 0x479528
push 0x104
lea ecx, [ebp - 0x118]
push ecx
call fcn.00446ba0
lea edx, [ebp - 0x118]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x47925b
push 0x479538
push 0x47953c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x445b71
xor eax, eax
jmp 0x445b91
push 0x2e
mov edx, dword [ebp + 8]
push edx
call fcn.00446b40
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x445b8e
mov eax, dword [ebp - 8]
mov byte [eax], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004472d8
mov esp, ebp
pop ebp
ret
Function at 0x446700
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x4899f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x134], ecx
mov eax, dword [0x475540]
mov dword [ebp - 0x14], eax
mov ecx, dword [0x475544]
mov dword [ebp - 0x10], ecx
mov edx, dword [0x475548]
mov dword [ebp - 0xc], edx
mov eax, dword [0x47554c]
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x1c]
push ecx
push 0x20019
push 0
push str.CLSIDCAA2D3B1_4BB5_4a45_A17A_122773379D99
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4467f9
mov byte [ebp - 0x130], 0
push 0x103
push 0
lea edx, [ebp - 0x12f]
push edx
call fcn.004472f0
add esp, 0xc
mov dword [ebp - 0x24], 0x104
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x130]
push ecx
lea edx, [ebp - 0x20]
push edx
push 0
mov eax, dword [ebp - 0x134]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4467cd
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x130]
push ecx
mov ecx, dword [ebp - 0x134]
call fcn.00446830
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov edx, dword [ebp - 0x10]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 8]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
jmp 0x446816
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov edx, dword [ebp - 0x10]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 8]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004472d8
mov esp, ebp
pop ebp
ret 4
Function at 0x446960
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x4899f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x124], ecx
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.004472f0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp + 8]
push edx
mov ecx, dword [ebp - 0x124]
call fcn.00446aa0
test eax, eax
je 0x446a8b
lea eax, [ebp - 0x118]
push eax
push str.CLSIDCAA2D3B1_4BB5_4a45_A17A_122773379D99
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
je 0x446a0c
lea ecx, [ebp - 0x118]
push ecx
push str.CLSIDCAA2D3B1_4BB5_4a45_A17A_122773379D99
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
je 0x446a0c
xor eax, eax
jmp 0x446a8d
mov dword [ebp - 0x120], 1
lea edx, [ebp - 0x110]
push edx
call fcn.004482c0
add esp, 4
add eax, 1
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x110]
push ecx
push 1
push 0
mov edx, dword [ebp - 0x124]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
je 0x446a70
mov dword [ebp - 0x120], 0
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x120]
jmp 0x446a8d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004472d8
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4472d8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4899f8]
jne 0x4472e2
repz ret
jmp fcn.004512d7
Function at 0x45f42d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004515f4
and dword [ebp - 4], 0
cmp dword [0x58c560], 0
mov ebx, eax
jne 0x45f4de
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x45f58f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x45f58f
push eax
call fcn.00451582
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x58c560], eax
call esi
push eax
call fcn.00451582
mov dword [esp], 0x47ba9c
push edi
mov dword [0x58c564], eax
call esi
push eax
call fcn.00451582
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x58c568], eax
call esi
push eax
call fcn.00451582
pop ecx
mov dword [0x58c570], eax
test eax, eax
je 0x45f4de
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00451582
pop ecx
mov dword [0x58c56c], eax
mov eax, dword [0x58c56c]
cmp eax, ebx
je 0x45f536
cmp dword [0x58c570], ebx
je 0x45f536
push eax
call fcn.004515fd
push dword [0x58c570]
mov esi, eax
call fcn.004515fd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x45f536
test edi, edi
je 0x45f536
call esi
test eax, eax
je 0x45f52d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x45f52d
test byte [ebp - 0xc], 1
jne 0x45f536
or dword [ebp + 0x10], 0x200000
jmp 0x45f56f
mov eax, dword [0x58c564]
cmp eax, ebx
je 0x45f56f
push eax
call fcn.004515fd
pop ecx
test eax, eax
je 0x45f56f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x45f56f
mov eax, dword [0x58c568]
cmp eax, ebx
je 0x45f56f
push eax
call fcn.004515fd
pop ecx
test eax, eax
je 0x45f56f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x58c560]
call fcn.004515fd
pop ecx
test eax, eax
je 0x45f58f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x45f591
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402f4d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp._SetFilePointer]
push esi
and dword [ebp - 8], 0
push edi
lea edi, [ecx + eax]
push 2
push 0
push edi
mov esi, 0xffff
push dword [ebp + 8]
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], edi
call ebx
cmp eax, 0xffffffff
je 0x402fa6
cmp edi, esi
jae 0x402f8a
mov dword [ebp - 4], edi
push 4
mov edi, 0x404
push 0x1000
push edi
push 0
call dword [sym.imp._VirtualAlloc]
test eax, eax
mov dword [ebp + 0xc], eax
jne 0x402fad
xor eax, eax
jmp 0x40305b
push 4
pop eax
cmp dword [ebp - 4], eax
jbe 0x403048
jmp 0x402fc3
mov eax, dword [ebp + 0x10]
mov edi, 0x404
mov ecx, dword [ebp - 4]
add eax, 0x400
cmp eax, ecx
mov dword [ebp + 0x10], ecx
ja 0x402fd5
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0xc]
mov esi, eax
sub esi, dword [ebp + 0x10]
sub eax, esi
cmp eax, edi
ja 0x402fe5
mov edi, eax
push 0
push 0
push esi
push dword [ebp + 8]
call ebx
cmp eax, 0xffffffff
je 0x403048
lea eax, [ebp - 0x10]
push 0
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp._ReadFile]
test eax, eax
je 0x403048
lea eax, [edi - 3]
mov ecx, eax
dec eax
test ecx, ecx
jle 0x40303c
mov ecx, dword [ebp + 0xc]
cmp byte [eax + ecx], 0x50
jne 0x40300e
cmp byte [eax + ecx + 1], 0x4b
jne 0x40300e
cmp byte [eax + ecx + 2], 5
jne 0x40300e
cmp byte [eax + ecx + 3], 6
jne 0x40300e
add eax, esi
test eax, eax
mov dword [ebp - 8], eax
jne 0x403048
mov eax, dword [ebp - 4]
cmp dword [ebp + 0x10], eax
jb 0x402fbb
push 0x8000
push 0
push dword [ebp + 0xc]
call dword [sym.imp._VirtualFree]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403857
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
jne 0x403872
push 0xffffffffffffff9a
jmp 0x403880
mov esi, dword [eax + 0x7c]
cmp esi, ebx
je 0x40386e
cmp dword [esi + 4], ebx
jne 0x403886
push 0xffffffffffffff9c
pop eax
jmp 0x4039c0
mov ecx, dword [ebp + 0x10]
cmp ecx, ebx
je 0x4039b4
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x18], ecx
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x60]
cmp ecx, eax
jbe 0x4038a4
mov dword [esi + 0x18], eax
cmp dword [esi + 0x18], ebx
jbe 0x4039af
cmp dword [esi + 0xc], ebx
jne 0x40390e
mov eax, dword [esi + 0x5c]
cmp eax, ebx
jbe 0x40390e
mov edi, 0x4000
cmp eax, edi
jae 0x4038cc
mov edi, eax
cmp edi, ebx
je 0x4039b4
mov eax, dword [esi + 0x68]
push ebx
add eax, dword [esi + 0x40]
push ebx
push eax
push dword [esi]
call dword [sym.imp._SetFilePointer]
cmp eax, 0xffffffff
je 0x4039b8
lea eax, [ebp + 0x10]
push ebx
push eax
push edi
push dword [esi + 4]
push dword [esi]
call dword [sym.imp._ReadFile]
test eax, eax
je 0x4039b8
mov eax, dword [esi + 4]
add dword [esi + 0x40], edi
sub dword [esi + 0x5c], edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], edi
cmp dword [esi + 0x64], ebx
jne 0x40395f
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 0xc]
cmp eax, edi
jae 0x40391f
mov edi, eax
xor eax, eax
cmp edi, ebx
jbe 0x403936
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x14]
mov cl, byte [ecx + eax]
mov byte [edx + eax], cl
inc eax
cmp eax, edi
jb 0x403925
push edi
push dword [esi + 0x14]
push dword [esi + 0x54]
call fcn.00401119
sub dword [esi + 0x60], edi
sub dword [esi + 0xc], edi
sub dword [esi + 0x18], edi
add dword [esi + 0x14], edi
add dword [esi + 8], edi
add dword [esi + 0x1c], edi
add esp, 0xc
add dword [ebp - 4], edi
mov dword [esi + 0x54], eax
jmp 0x4039a1
mov eax, dword [esi + 0x14]
mov ebx, dword [esi + 0x1c]
mov dword [ebp + 8], eax
lea eax, [esi + 8]
push 2
push eax
call fcn.00402547
mov edi, dword [esi + 0x1c]
mov dword [ebp - 8], eax
sub edi, ebx
push edi
push dword [ebp + 8]
push dword [esi + 0x54]
call fcn.00401119
sub dword [esi + 0x60], edi
add dword [ebp - 4], edi
add esp, 0x14
cmp dword [ebp - 8], 1
mov dword [esi + 0x54], eax
je 0x4039af
cmp dword [ebp - 8], 0
jne 0x4039bd
xor ebx, ebx
cmp dword [esi + 0x18], ebx
ja 0x4038ad
cmp dword [ebp - 8], ebx
jne 0x4039bd
mov eax, dword [ebp - 4]
jmp 0x4039c0
xor eax, eax
jmp 0x4039c0
or eax, 0xffffffff
jmp 0x4039c0
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403c73
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp._GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x403c9c
cmp al, 0x22
je 0x403c94
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x403c88
cmp byte [esi], 0x22
jne 0x403ca6
inc esi
jmp 0x403ca6
cmp al, 0x20
jle 0x403ca6
inc esi
cmp byte [esi], 0x20
jg 0x403ca0
mov al, byte [esi]
test al, al
je 0x403cb0
cmp al, 0x20
jle 0x403c99
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp._GetStartupInfoA]
test byte [ebp - 0x18], 1
je 0x403cca
movzx eax, word [ebp - 0x14]
jmp 0x403ccd
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp._GetModuleHandleA]
push eax
call main
push eax
call dword [sym.imp._ExitProcess]

Function at 0x403f85
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
je 0x403fbc
cmp byte [edi], 0
je 0x403fbc
push esi
push edi
mov esi, edi
call dword [sym.imp._lstrlenA]
lea eax, [eax + edi - 1]
cmp eax, edi
jbe 0x403fb7
mov cl, byte [eax]
xor byte [esi], cl
mov cl, byte [esi]
xor byte [eax], cl
mov cl, byte [eax]
xor byte [esi], cl
inc esi
dec eax
cmp eax, esi
ja 0x403fa5
mov eax, edi
pop esi
pop edi
ret
mov eax, edi
pop edi
ret

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

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov ebx, 0x104
mov edi, 0x40df90
push ebx
mov esi, 0x40a278
push edi
push esi
push ebp
call fcn.00403e2e
push ebx
push edi
push esi
push ebp
call fcn.00403e2e
add esp, 0x20
push ebp
call dword [sym.imp._GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
pop edi
pop esi
setne cl
pop ebp
mov eax, ecx
pop ebx
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp._GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x404014
xor eax, eax
ret
movzx eax, al
shr eax, 4
and eax, 1
ret

Function at 0x404079
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp._RegOpenKeyExA]
test eax, eax
jne 0x4040ce
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
lea eax, [ebp - 0xc]
push dword [ebp + 0xc]
mov dword [ebp - 0xc], 1
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp._RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp._RegCloseKey]
leave
ret