joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100428f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10042a00
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x100429c5
mov edx, dword [ebp - 4]
cmp edx, dword [0x1009a064]
jb 0x10042935
mov eax, dword [ebp - 4]
cmp eax, dword [0x1009a068]
ja 0x10042935
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10042905
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1005ddd0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1004295a
jmp 0x100429c5
cmp dword [ebp - 0x14], 0x10000
jne 0x100429ae
cmp dword [ebp - 0x18], 0x10000
jb 0x100429ae
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10042991
mov eax, dword [ebp - 8]
jmp 0x100429c7
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x100429a1
xor eax, eax
jmp 0x100429c7
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x100429c0
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10042a00
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10042905
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10042a30
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10042e20
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x1009da18], 0
jne 0x10042a6d
cmp dword [0x1009da14], 0
je 0x10042a6d
mov eax, dword [0x1009da14]
mov dword [0x1009da18], eax
cmp dword [0x1009da18], 0
je 0x10042aea
mov ecx, dword [0x1009da18]
cmp dword [ecx + 8], 0
je 0x10042aea
mov edx, dword [0x1009da18]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x10042aea
mov ecx, dword [0x1009da18]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x10042aea
mov eax, dword [0x1009da18]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x10042ab9
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x10042ac0
xor eax, eax
jmp 0x10042c09
mov ecx, dword [0x1009da18]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call fcn.1005ddd0
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x10042c09
mov edx, dword [0x1009da14]
mov dword [0x1009da18], edx
jmp 0x10042b06
mov eax, dword [0x1009da18]
mov ecx, dword [eax + 4]
mov dword [0x1009da18], ecx
cmp dword [0x1009da18], 0
je 0x10042b46
cmp dword [0x1009da18], 0
je 0x10042b44
mov edx, dword [0x1009da18]
cmp dword [edx + 8], 0
je 0x10042b44
mov eax, dword [0x1009da18]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x10042b44
mov edx, dword [0x1009da18]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x10042b44
jmp 0x10042a9e
jmp 0x10042af8
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10042c10
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10042c07
mov eax, dword [ebp - 0x18]
mov dword [0x1009da18], eax
mov ecx, dword [0x1009da18]
mov dword [ecx], 0x52727464
mov edx, dword [0x1009da18]
mov dword [edx + 8], 0
mov eax, dword [0x1009da18]
mov ecx, dword [0x1009da14]
mov dword [eax + 4], ecx
mov edx, dword [0x1009da18]
mov dword [0x1009da14], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x1009da18]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x10042bd7
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x10042bf7
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x10042bce
mov eax, dword [0x1009da18]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x10042a9e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10043950
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1009da14]
mov dword [ebp - 4], eax
jmp 0x10043969
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10043990
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1004398e
call sub.KERNEL32.dll_GetLastError
jmp 0x10043992
jmp 0x10043960
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10043e30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1009da24], eax
je 0x10043e54
mov eax, 0x10dd
jmp 0x10043ffc
cmp dword [0x1009da28], 0
je 0x10043e67
mov eax, dword [0x1009da28]
jmp 0x10043ffc
cmp dword [ebp + 0xc], 0
jne 0x10043e77
mov eax, 0x57
jmp 0x10043ffc
cmp dword [ebp + 8], 0
jne 0x10043e87
mov eax, 6
jmp 0x10043ffc
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x10043eb0
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x1009da28], ecx
mov edx, dword [ebp + 8]
mov dword [0x1009da2c], edx
mov eax, dword [ebp - 8]
jmp 0x10043ffc
push 0x18
call fcn.100454e6
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10043f0b
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x1009da28], ecx
cmp dword [ebp - 4], 0
je 0x10043efa
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.10045519
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x1009da2c], ecx
mov eax, dword [ebp - 8]
jmp 0x10043ffc
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.10043e10
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10043e10
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
je 0x10043f4b
cmp dword [ebp - 0xc], 0x1e
jbe 0x10043f67
mov dword [ebp - 8], 9
cmp dword [0x1009da1c], 0
je 0x10043f62
jmp 0x10043ed9
jmp 0x10043ed0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x10043f8e
mov dword [ebp - 8], 9
cmp dword [0x1009da1c], 0
je 0x10043f89
jmp 0x10043ed9
jmp 0x10043ed0
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x10043fb9
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x10043ed0
mov edx, dword [ebp - 4]
mov dword [edx + 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x1009da34]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x1009da34], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x10044010
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1009da24], eax
je 0x1004402d
mov eax, 0x10dd
jmp 0x10044110
mov eax, dword [0x1009da34]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100440ac
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x10044088
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x10044088
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10042eb0
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.10045519
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x10044035
mov dword [0x1009da34], 0
call fcn.10043790
mov ecx, dword [0x1009da30]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x100440fa
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.10045519
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x100440c4
mov dword [0x1009da30], 0
mov dword [0x1009da24], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x100445f0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1009da28], 0
je 0x10044609
mov eax, dword [0x1009da28]
jmp 0x100446a8
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x1004461a
xor eax, eax
jmp 0x100446a8
push 8
call fcn.100454e6
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10044672
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1004465b
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.10045519
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x1009da28], eax
mov dword [0x1009da2c], 0
mov eax, dword [ebp - 8]
jmp 0x100446a8
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1004468a
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1004463a
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x1009da30]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x1009da30], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x10047285
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408e84
nop
nop
mov ecx, 0x27b11fbc
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
mov ecx, 0x4f4c08bc
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Get disk information
Persist via run registry key
Persist via winlogon helper dll registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov dword [ebp - 0x10], 0xff0ff
mov dword [ebp - 8], 0x104
mov dword [ebp - 0xc], 1
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x4010ce
lea eax, [ebp - 4]
push eax
push 0x20119
push 0
push str.softwaremicrosoftwindows_ntcurrentversionwinlogon
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0x104
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x10]
push edx
push 0
push 0
lea eax, [ebp - 0x114]
push eax
mov byte [ebp - 0x111], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [ebp - 0x10]
push ecx
push 0x403188
lea edx, [ebp - 0x114]
push 0x104
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push 0x42c868
lea ecx, [ebp - 0xc]
push ecx
push 0
lea edx, [ebp - 0x114]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x42c868
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 4]
push edx
push 0x20119
push 0
push str.softwaremicrosoftwindowscurrentversion_run
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push 0x42c868
lea ecx, [ebp - 0xc]
push ecx
push 0
push str.userinit
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x42c868
mov esp, ebp
pop ebp
ret

Function at 0x401120
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
cmp eax, edi
je 0x40118c
cmp dword [ebp + 8], edi
je 0x40118c
cmp ebx, edi
je 0x40118c
push esi
push edi
push 0x80
push 2
push edi
push 7
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401182
mov ecx, dword [ebp + 8]
push edi
lea eax, [ebp - 4]
push eax
push ebx
push ecx
push esi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40117b
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x40117b
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x401690
Capabilities:
Clear file content
Parse pe header
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 4], 0
test eax, eax
je 0x4017a3
push 0
lea ecx, [ebp - 4]
push ecx
call fcn.004011a0
mov edi, eax
test edi, edi
je 0x4017a3
mov edx, 0x5a4d
cmp word [edi], dx
jne 0x401781
mov esi, dword [edi + 0x3c]
cmp dword [esi + edi], 0x4550
jne 0x401781
rdtsc
xor dword [0x426b70], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor dword [0x426b70], eax
push 0x4031fc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x401718
push str.RtlUniform
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401718
push 0x426b70
call eax
mov ecx, dword [0x426b70]
or ebx, 0xffffffff
xor edx, edx
mov eax, ecx
div ebx
add eax, ecx
mov dword [esi + edi + 0x58], eax
mov eax, dword [ebp - 4]
mov ebx, eax
test eax, eax
je 0x401781
mov eax, dword [ebp + 8]
push 0
push 0x80
push 2
push 0
push 7
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401781
push 0
lea ecx, [ebp + 8]
push ecx
push ebx
push edi
push esi
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40177a
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x4017a3
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x401820
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push str._globalroot_systemroot_system32drivers_ntfs.sys
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x4018a0
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebx
mov eax, dword [ebp + 8]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x4018a0
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x402470
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
push ebx
push esi
push edi
push 0x104
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call fcn.00402590
test eax, eax
je 0x4024a2
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00401af0
mov esi, dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
call esi
test eax, eax
jne 0x4024c4
call fcn.004018b0
test eax, eax
je 0x4024c4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call esi
push str.kernel32.dll
mov edi, eax
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
je 0x402501
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x402501
lea ecx, [esp + 0xc]
push ecx
call ebx
push eax
call esi
cmp dword [esp + 0xc], 0
je 0x402547
test edi, edi
je 0x402520
push str._apppatch_
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x40253b
lea esi, [esp + 0x10]
call fcn.004020b0
call ebx
push eax
call fcn.00401e60
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40257e
call fcn.004021f0
call fcn.00401d40
jmp 0x40257e
test edi, edi
je 0x402570
push str._apppatch_
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x402570
call fcn.004021f0
call fcn.00401ff0
call fcn.00401d40
jmp 0x40257e
lea esi, [esp + 0x10]
call fcn.004020b0
call fcn.00401ff0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x402590
Capabilities:
Get disk information
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x10c]
push ecx
mov dword [ebp - 8], 0x104
mov dword [ebp - 4], 0
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.USER32.dll_CharUpperA]
cmp dword [ebp - 0x10c], 0x444e4153
jne 0x4025f6
cmp byte [ebp - 0x108], 0x42
jne 0x4025f6
cmp byte [ebp - 0x107], 0x4f
jne 0x4025f6
cmp byte [ebp - 0x106], 0x58
je 0x40267a
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push 0
lea edx, [ebp - 0x210]
push edx
mov byte [ebp - 0x20d], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [ebp - 4]
cmp eax, 0xcd1a40
je 0x40267a
cmp eax, 0x6cbbc508
je 0x40267a
cmp eax, 0x774e1682
je 0x40267a
cmp eax, 0x837f873e
je 0x40267a
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str.c:_sand_box_
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x40267a
pop esi
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403000
Capabilities:
Get disk information

Disassembly:
sub esp, 0x430
mov eax, dword [esp + 0x434]
mov ecx, dword [eax]
push ebx
mov ebx, dword [0x43ff4c]
push ebp
push esi
mov esi, dword [eax + 4]
push edi
mov edi, dword [0x43ff48]
xor ebp, ebp
lea eax, [esp + 0x14]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x38], 0x9e3779b9
call fcn.00402fd0
mov eax, dword [0x43ff50]
mov edx, dword [0x43ff54]
add dword [esp + 0x14], 0x23f
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], 0x20
mov dword [esp + 0x24], 2
add dword [esp + 0x24], 3
mov eax, dword [0x2aeca1c]
shl ecx, 4
add ecx, dword [esp + 0x3c]
mov dword [esp + 0x10], ecx
cmp eax, 0xfa9
jne 0x403090
mov dword [0x2aeca18], 0xedeb2e40
jmp 0x40309d
cmp eax, 0x3eb
jne 0x40309d
mov dword [0x2ae9924], ebp
mov eax, dword [esp + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
shr eax, 5
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x18]
mov dword [0x2aeca14], 0xf4ea3dee
call fcn.00402fe0
mov eax, dword [esp + 0x20]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
xor dword [esp + 0x18], eax
cmp dword [0x2aeca1c], 0x213
jne 0x403118
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
push ebp
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebp
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_ChangeTimerQueueTimer]
sub esi, dword [esp + 0x18]
lea ecx, [esp + 0x10]
mov eax, esi
mov dword [esp + 0x34], esi
call fcn.00402fc0
add dword [esp + 0x10], edi
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x14]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
nop
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
mov ecx, esi
shr ecx, 5
add ecx, ebx
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x20]
xor dword [esp + 0x10], eax
cmp dword [0x2aeca1c], 0x121
jne 0x403178
push ebp
push ebp
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
mov ecx, dword [esp + 0x10]
xor ecx, dword [esp + 0x18]
lea eax, [esp + 0x28]
mov dword [esp + 0x10], ecx
call fcn.00402ff0
mov eax, dword [esp + 0x38]
sub dword [esp + 0x14], eax
sub dword [esp + 0x2c], 1
mov ecx, dword [esp + 0x28]
jne 0x403060
mov eax, dword [esp + 0x444]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x430
ret 4
Function at 0x40a4ad
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43fba0]
jne 0x40a4b7
repz ret
jmp fcn.0040d572

Function at 0x40c30e
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.00408770
and dword [ebp - 4], 0
cmp dword [0x441d38], 0
mov ebx, eax
jne 0x40c3bf
push 0x401ad8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c470
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401acc
push edi
call esi
test eax, eax
je 0x40c470
push eax
call fcn.004086fe
mov dword [esp], 0x401abc
push edi
mov dword [0x441d38], eax
call esi
push eax
call fcn.004086fe
mov dword [esp], 0x401aa8
push edi
mov dword [0x441d3c], eax
call esi
push eax
call fcn.004086fe
mov dword [esp], 0x401a8c
push edi
mov dword [0x441d40], eax
call esi
push eax
call fcn.004086fe
pop ecx
mov dword [0x441d48], eax
test eax, eax
je 0x40c3bf
push 0x401a74
push edi
call esi
push eax
call fcn.004086fe
pop ecx
mov dword [0x441d44], eax
mov eax, dword [0x441d44]
cmp eax, ebx
je 0x40c417
cmp dword [0x441d48], ebx
je 0x40c417
push eax
call fcn.00408779
push dword [0x441d48]
mov esi, eax
call fcn.00408779
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c417
test edi, edi
je 0x40c417
call esi
test eax, eax
je 0x40c40e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c40e
test byte [ebp - 0xc], 1
jne 0x40c417
or dword [ebp + 0x10], 0x200000
jmp 0x40c450
mov eax, dword [0x441d3c]
cmp eax, ebx
je 0x40c450
push eax
call fcn.00408779
pop ecx
test eax, eax
je 0x40c450
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c450
mov eax, dword [0x441d40]
cmp eax, ebx
je 0x40c450
push eax
call fcn.00408779
pop ecx
test eax, eax
je 0x40c450
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x441d38]
call fcn.00408779
pop ecx
test eax, eax
je 0x40c470
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c472
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret