joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421430
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45eeeb
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x473b80]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xcc], eax
add eax, 0x50
cmp dword [eax + 0x14], 8
jb 0x421472
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0xc0], ebx
cmp ebx, 0xffffffff
je 0x421629
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x421622
cmp esi, 0xffffffff
je 0x421622
lea eax, [esi + 2]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp - 0xc4], edi
test edi, edi
je 0x421622
push 0
lea ecx, [ebp - 0xc8]
push ecx
push esi
push edi
push ebx
mov dword [ebp - 0xc8], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x421612
push 0x20
call fcn.00444804
add esp, 4
test eax, eax
je 0x421516
call fcn.0042eff0
mov esi, eax
jmp 0x421518
xor esi, esi
mov edx, dword [ebp - 0xc8]
push edx
mov edx, edi
mov ecx, esi
call fcn.0042f1f0
test esi, esi
je 0x421535
push esi
call fcn.00444884
add esp, 4
mov al, byte [edi]
mov edx, dword [edi + 5]
mov ecx, dword [edi + 1]
mov byte [ebp - 0xd4], al
xor eax, eax
push edx
push ecx
lea esi, [ebp - 0x24]
mov word [ebp - 0x24], ax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x16], ax
call fcn.00420c40
mov ecx, dword [edi + 9]
mov ebx, dword [edi + 0xd]
add esp, 8
add edi, 0x11
mov dword [ebp - 0xd0], ecx
cmp ebx, 0x208
ja 0x421606
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x4215ce
push edi
push ebx
push esi
call fcn.00444e58
mov eax, dword [ebp - 0xcc]
add eax, 0x6c
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4215b0
mov eax, dword [eax]
mov edx, dword [ebp - 0xd0]
mov ecx, dword [ebp - 0xd4]
push edx
push ecx
push eax
mov edx, esi
lea ecx, [ebp - 0x24]
call fcn.00421200
add esp, 0xc
jmp 0x421606
push 6
push 4
lea esi, [ebp - 0xbc]
call fcn.00405930
mov esi, eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.SysIdle::_Username_allocation_bad._size__d._Err__
call fcn.00405b80
add esp, 0xc
lea esi, [ebp - 0xbc]
call fcn.00405e90
mov edi, dword [ebp - 0xc4]
mov ebx, dword [ebp - 0xc0]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00444627
mov esp, ebp
pop ebp
ret 4
Function at 0x421650
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x473b80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x477d14]
push esi
mov esi, dword [ebx + 0x24]
push edi
mov edi, esi
shl edi, 4
sub edi, esi
lea eax, [ebp - 0x1c]
add edi, edi
push eax
add edi, edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 8
call dword [sym.imp.USER32.dll_GetLastInputInfo]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
imul esi, esi, 0xea60
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
cmp eax, esi
jb 0x4217b1
mov ecx, dword [0x477d0c]
mov dword [0x477d10], eax
cmp ecx, 0x18
je 0x4216c1
test ecx, ecx
jne 0x42175c
push 0
mov byte [0x477bca], 0x17
call fcn.004471c6
add esp, 4
xor ecx, ecx
push ecx
push edi
push edx
push eax
call fcn.00447183
call fcn.0045c066
xor ecx, ecx
push edx
push eax
lea esi, [ebp - 0x14]
mov dword [0x477d18], eax
mov dword [0x477d1c], edx
mov word [ebp - 0x14], cx
mov dword [ebp - 0x12], ecx
mov dword [ebp - 0xe], ecx
mov dword [ebp - 0xa], ecx
mov word [ebp - 6], cx
call fcn.00420c40
lea eax, [ebx + 0x34]
mov esi, 8
add esp, 0x18
mov dword [0x477d10], 0
cmp dword [eax + 0x14], esi
jb 0x421726
mov eax, dword [eax]
cmp dword [ebx + 0x80], esi
lea ecx, [ebx + 0x6c]
jb 0x421733
mov ecx, dword [ecx]
movzx edx, byte [0x477bca]
push 0
push edx
push ecx
mov edx, eax
lea ecx, [ebp - 0x14]
call fcn.00421200
movzx eax, byte [0x477bca]
mov dword [0x477d0c], eax
mov eax, dword [ebp - 0x18]
add esp, 0xc
jmp 0x421761
mov esi, 8
push 0
mov dword [0x477d10], eax
call fcn.004471c6
add esp, 4
xor ecx, ecx
push ecx
push edi
push edx
push eax
call fcn.00447183
add esp, 0x10
call fcn.0045c066
mov dword [0x477d18], eax
lea eax, [ebx + 0x34]
mov dword [0x477d1c], edx
cmp dword [eax + 0x14], esi
jb 0x421798
mov eax, dword [eax]
push ebx
mov ecx, eax
call fcn.00421ae0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444627
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x477d10]
cmp eax, ecx
jae 0x421878
test ecx, ecx
je 0x421878
cmp dword [0x477d0c], 0x17
jne 0x421878
push 0
mov byte [0x477bca], 0x18
call fcn.004471c6
xor ecx, ecx
add esp, 4
push edx
push eax
lea esi, [ebp - 0x14]
mov dword [0x477d18], eax
mov dword [0x477d1c], edx
mov word [ebp - 0x14], cx
mov dword [ebp - 0x12], ecx
mov dword [ebp - 0xe], ecx
mov dword [ebp - 0xa], ecx
mov word [ebp - 6], cx
call fcn.00420c40
mov eax, 0x10624dd3
mul dword [0x477d10]
lea eax, [ebx + 0x34]
mov esi, 8
add esp, 8
shr edx, 6
cmp dword [eax + 0x14], esi
jb 0x42182d
mov eax, dword [eax]
cmp dword [ebx + 0x80], esi
lea ecx, [ebx + 0x6c]
jb 0x42183a
mov ecx, dword [ecx]
push edx
movzx edx, byte [0x477bca]
push edx
push ecx
mov edx, eax
lea ecx, [ebp - 0x14]
call fcn.00421200
movzx eax, byte [0x477bca]
add ebx, 0x50
add esp, 0xc
mov dword [0x477d0c], eax
mov dword [0x477d10], 0
cmp dword [ebx + 0x14], esi
jb 0x421871
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00444627
mov esp, ebp
pop ebp
ret
Function at 0x423e20
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x473b80]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebx + 0x14], 0
je 0x423e49
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444627
mov esp, ebp
pop ebp
ret
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
mov byte [ebx + 0x16], 0
call fcn.00449a10
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x423ef2
cmp dword [ebp - 0x114], 6
push esi
sbb eax, eax
push edi
inc eax
push 0x466034
mov byte [ebx + 0x15], al
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.NtQuerySystemInformation
push esi
call edi
push str.NtOpenProcess
push esi
mov dword [0x477d20], eax
call edi
push str.NtQueryInformationProcess
push esi
mov dword [0x477d24], eax
call edi
cmp dword [0x477d20], 0
pop edi
mov dword [0x477d28], eax
pop esi
je 0x423ef2
cmp dword [0x477d24], 0
je 0x423ef2
test eax, eax
je 0x423ef2
mov al, 1
mov byte [ebx + 0x14], al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444627
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
call fcn.00444627
mov esp, ebp
pop ebp
ret
Function at 0x426690
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp byte [esi + 4], 0
jne 0x4266e3
mov eax, dword [ebp + 8]
push 0
push 0
push 1
push 0
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0xc], eax
test eax, eax
je 0x4266d9
push 0
push 0
push esi
push 0x426650
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
test eax, eax
jne 0x4266df
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop ebp
ret 4
mov byte [esi + 4], 1
mov al, 1
pop ebp
ret 4
Function at 0x4266f0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x460a33
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x473b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi], vtable.LanAgent::laDirMonitor.0
mov byte [esi + 4], bl
mov dword [esi + 0xc], 0x42a5c0
mov dword [esi + 0x10], 0x42a3a0
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], 0x2800
mov dword [esi + 0x20], ebx
mov dword [esi + 0x34], 0x7d0
xor eax, eax
mov dword [esi + 0x50], 7
mov dword [esi + 0x4c], ebx
mov word [esi + 0x3c], ax
push ebx
push ebx
push ebx
mov byte [ebp - 4], 1
push 0xffffffffffffffff
mov word [esi + 0x58], ax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
push 0x3c
mov dword [esi + 8], eax
call fcn.00444804
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x4267ac
lea ecx, [edi + 8]
push ecx
mov dword [edi + 4], ebx
mov dword [edi + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea edx, [edi + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push ebx
push 0x100000
push ebx
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [edi], eax
jmp 0x4267ae
xor edi, edi
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x30]
push eax
mov dword [esi + 0x38], edi
mov dword [ebp - 0x30], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
add eax, eax
lea ecx, [eax*4]
push ecx
push 8
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call ebx
mov dword [esi + 0x24], eax
test eax, eax
jne 0x426808
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x14], eax
push 4
push 8
call edi
push eax
call ebx
mov dword [esi + 0x28], eax
test eax, eax
jne 0x426821
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x14], eax
push 8
push 8
call edi
push eax
call ebx
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x42683a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x14], eax
mov edx, dword [esi + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_InitializeSListHead]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 1
push 1
push 0
mov dword [esi + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x18
push 8
mov dword [esi + 0x30], eax
call edi
push eax
call ebx
mov dword [esi + 0x5c], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4272d0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x46d728
push 0x44cad0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x473b80]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x20], ebx
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x44], ebx
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x30]
lea edx, [ecx + ecx]
cmp edi, edx
jae 0x4273bf
mov dword [ebp - 4], ebx
push 0x1c
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
je 0x427394
mov ecx, dword [esi + 8]
mov dword [eax], ecx
mov edx, dword [esi + 0x1c]
mov dword [eax + 4], edx
lea ecx, [esi + 0x20]
mov dword [eax + 8], ecx
lea edx, [esi + 0x34]
mov dword [eax + 0xc], edx
mov ecx, dword [esi + 0x2c]
mov dword [eax + 0x14], ecx
mov edx, dword [esi + 0x30]
mov dword [eax + 0x18], edx
lea ecx, [ebp - 0x20]
push ecx
push ebx
push eax
mov edx, dword [esi + 0xc]
push edx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esi + 0x24]
mov dword [ecx + edi*4], eax
mov dword [ebp - 4], 0xfffffffe
inc edi
jmp 0x42730d
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x427760
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x46d9c8
push 0x44cad0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x473b80]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, ecx
push 0x208
call fcn.0042ffe1
add esp, 4
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x42783d
push 0x208
push 0
push esi
call fcn.00449a10
add esp, 0xc
push 0x104
push esi
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
test eax, eax
je 0x427835
mov edi, dword [ebx + 0x38]
mov eax, edi
call fcn.00428330
mov dword [ebp + 8], eax
test eax, eax
je 0x42783d
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x20], edx
push edi
lea edi, [ebp + 8]
call fcn.00428020
xor edi, edi
mov dword [ebp - 4], edi
cmp byte [ebx + 4], 0
je 0x42780b
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebx + 0x38]
call fcn.00428620
mov dword [ebx + 0x14], edi
mov dword [ebp - 4], 0xfffffffe
jmp 0x427834
push esi
call fcn.00444f30
add esp, 4
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x427860
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x208
mov ebx, eax
call fcn.0042ffe1
mov esi, eax
add esp, 4
test esi, esi
je 0x4278ab
push 0x208
push 0
push esi
call fcn.00449a10
mov eax, dword [ebp + 8]
add esp, 0xc
push 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
test eax, eax
jne 0x4278b6
call fcn.00444f30
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebx + 0x38]
mov eax, edi
call fcn.00428330
xor ecx, ecx
mov dword [ebp + 8], eax
cmp eax, ecx
je 0x427918
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push edi
lea edi, [ebp + 8]
mov dword [ebp - 0xc], edx
call fcn.00428020
cmp dword [ebp - 0xc], 0
je 0x427902
push esi
mov ecx, ebx
call fcn.00427760
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0x10]
mov dword [ebp - 8], eax
push ecx
jmp 0x42792e
push esi
xor bl, bl
call fcn.00444f30
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
push eax
mov ebx, dword [ebx + 0x38]
mov eax, ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xffffffff
call fcn.00428180
cmp eax, 1
push esi
sete bl
call fcn.00444f30
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x427960
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0x208
call fcn.0042ffe1
mov esi, eax
add esp, 4
test esi, esi
je 0x4279f9
push 0x208
push 0
push esi
call fcn.00449a10
mov eax, dword [ebp + 0xc]
add esp, 0xc
push 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
test eax, eax
je 0x4279f1
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + 0x38]
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, edi
call fcn.00428330
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4279f0
mov edx, dword [eax]
mov ebx, dword [edx + 4]
push edi
lea edi, [ebp + 0xc]
call fcn.00428020
test ebx, ebx
jne 0x4279df
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x38]
mov eax, esi
call fcn.00428620
xor eax, eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call fcn.00444f30
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x427d70
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x473b80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push edi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x427f31
lea ecx, [ebp - 0x18]
push ecx
push ebx
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1c], eax
test al, 7
jne 0x427f2a
cmp dword [ebp - 0x18], edi
jne 0x427f2a
push 4
push 0x1000
push 0x1000
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
cmp esi, edi
je 0x427f2a
mov dword [ebp - 0x14], edi
cmp dword [ebp - 0x1c], edi
jbe 0x427f1c
xor eax, eax
push eax
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], al
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
push 8
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x427f10
cmp dword [ebp - 0x10], 8
jne 0x427f10
push 8
lea ecx, [ebp - 0xc]
call fcn.0042f6b0
add esp, 4
cmp byte [ebp - 0xc], 0x11
sete al
and al, 1
cmp byte [ebp - 0xb], 0x20
sete cl
and al, cl
cmp byte [ebp - 0xa], 0xed
sete dl
and al, dl
cmp byte [ebp - 9], 0xfe
sete cl
test al, cl
je 0x427f10
mov edi, dword [ebp - 8]
lea edx, [edi - 0x11]
cmp edx, 0x204
ja 0x427f10
test byte [ebp - 8], 7
jne 0x427f10
push 0x1000
push 0
push esi
call fcn.00449a10
add esp, 0xc
push 0
lea eax, [ebp - 0x10]
push eax
add edi, 0xfffffff8
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x427f10
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
add ecx, 0xfffffff8
cmp eax, ecx
jne 0x427f10
push eax
mov ecx, esi
call fcn.0042f6b0
add esp, 4
cmp byte [esi], 0
lea eax, [esi + 1]
jne 0x427eea
cmp byte [eax], 0
seta cl
cmp dword [eax + 1], 0x208
jae 0x427f0a
movzx edx, cl
add eax, 5
push edx
push eax
mov eax, dword [ebp - 0x20]
call fcn.00427860
jmp 0x427f0a
cmp byte [eax], 0
seta cl
cmp dword [eax + 1], 0x208
jae 0x427f0a
mov edx, dword [ebp - 0x20]
movzx ecx, cl
push ecx
add eax, 5
push eax
push edx
call fcn.004274e0
mov eax, dword [ebp - 8]
add dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x1c]
jb 0x427dfa
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.00444627
mov esp, ebp
pop ebp
ret 8
Function at 0x428860
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, dword [ebp + 8]
movzx eax, word [edi]
mov ecx, edi
mov dword [ebx], 0
test ax, ax
je 0x428894
lea ebx, [ebx]
cmp ax, 0x5c
jne 0x428888
inc dword [ebx]
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x428880
mov eax, dword [ebx]
add eax, eax
add eax, eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 8], eax
test eax, eax
je 0x42893f
cmp word [edi], 0
mov dword [ebx], 0
mov dword [ebp - 4], 0
je 0x42893f
mov ecx, 2
sub ecx, edi
mov dword [ebp - 0xc], ecx
push esi
cmp word [edi], 0x5c
jne 0x428931
add ecx, edi
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x428929
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
push eax
push ecx
push eax
push esi
call fcn.00444f59
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x428911
xor eax, eax
mov edx, dword [ebx]
mov ecx, dword [ebp - 8]
push esi
push 0
mov dword [ecx + edx*4], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
inc dword [ebx]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add dword [ebp - 4], 2
add edi, 2
cmp word [edi], 0
jne 0x4288d3
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x428b40
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x473b80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
mov ebx, ecx
push 1
push ebx
mov byte [ebp - 0x205], 1
mov dword [ebp - 0x20c], 0
call dword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
test eax, eax
jne 0x428d29
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x428d29
mov ecx, dword [ebp - 0x20c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push ecx
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp - 0x224], edi
test edi, edi
je 0x428d12
mov eax, dword [ebp - 0x20c]
lea edx, [ebp - 0x20c]
push edx
push eax
push edi
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
test eax, eax
je 0x428d06
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp - 0x210]
push edx
xor ebx, ebx
push edi
mov dword [ebp - 0x210], ebx
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorOwner]
test eax, eax
je 0x428d06
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x210]
lea ecx, [ebp - 0x218]
push ecx
push ebx
lea edx, [ebp - 0x214]
push edx
push ebx
push eax
push ebx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x218], ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
jne 0x428d06
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x428d06
mov ecx, dword [ebp - 0x214]
lea edx, [ecx + ecx]
push edx
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x428d06
mov eax, dword [ebp - 0x218]
lea ecx, [eax + eax]
push ecx
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x428cf4
lea edx, [ebp - 0x220]
push edx
mov edx, dword [ebp - 0x210]
lea eax, [ebp - 0x218]
push eax
push edi
lea ecx, [ebp - 0x214]
push ecx
push ebx
push edx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
je 0x428ce8
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x204]
push ecx
mov dword [ebp - 0x21c], 0x100
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x428ce8
lea edx, [ebp - 0x204]
push ebx
push edx
call fcn.00447217
add esp, 8
test eax, eax
setne byte [ebp - 0x205]
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [ebp - 0x224]
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, byte [ebp - 0x205]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444627
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x205]
xor ecx, ebp
pop ebx
call fcn.00444627
mov esp, ebp
pop ebp
ret