joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c97c0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x62a040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
mov ecx, dword [edi + 0x14]
cmp ecx, dword [0x63267c]
jne 0x4c9802
mov ecx, edi
call fcn.004cabc0
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057c26f
mov esp, ebp
pop ebp
ret
cmp ecx, dword [0x632684]
jne 0x4c990a
mov eax, dword [edi + 0x24]
sub eax, dword [edi + 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x28]
sub eax, dword [edi + 0x20]
push ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
test ebx, ebx
je 0x4c98f7
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebp - 8]
mov esi, eax
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push esi
mov dword [ebp - 0x1c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 1
push esi
mov dword [ebp - 0x18], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
cmp byte [0x6309b7], 0
je 0x4c988d
mov ecx, dword [0x633990]
sub ecx, 1
jne 0x4c98b2
push 0x2b2b2b
jmp 0x4c9892
push 0xffffff
push esi
call dword [sym.imp.GDI32.dll_SetDCBrushColor]
push 0x12
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_FillRect]
push 0xcc0020
push 0
push 0
push esi
push dword [edi + 0x28]
push dword [edi + 0x24]
push dword [edi + 0x20]
push dword [edi + 0x1c]
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x18]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push dword ds:[ebp - 0x1c]
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
push ebx
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057c26f
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x632690]
xor eax, eax
mov edx, dword [ecx]
test edx, edx
je 0x4c992f
mov ecx, dword [ecx + 8]
jmp 0x4c9920
mov esi, dword [ecx]
cmp ebx, dword [esi + 0x5c]
je 0x4c9942
inc eax
add ecx, 4
cmp eax, edx
jb 0x4c9920
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057c26f
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x18]
lea eax, [edi + 0x1c]
push eax
mov ecx, esi
call fcn.004cada0
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057c26f
mov esp, ebp
pop ebp
ret
Function at 0x4cabc0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x62a040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov eax, dword [edi + 0x24]
sub eax, dword [edi + 0x1c]
push dword [edi + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x28]
sub eax, dword [edi + 0x20]
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x4cad70
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword ds:[ebp - 8]
mov esi, eax
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push esi
mov dword [ebp - 0x20], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 1
push esi
mov dword [ebp - 0x1c], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
cmp byte [0x6309b7], 0
je 0x4cac9c
mov ecx, dword [0x633990]
sub ecx, 0
je 0x4cac7d
sub ecx, 1
jne 0x4cacc6
push 0xffffff
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [0x62abb8]
push esi
call dword [sym.imp.GDI32.dll_SetDCBrushColor]
push 0x12
call dword [sym.imp.GDI32.dll_GetStockObject]
jmp 0x4cacb6
push 0
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0xffffff
push esi
call dword [sym.imp.GDI32.dll_SetDCBrushColor]
push 0x12
call dword [sym.imp.GDI32.dll_GetStockObject]
jmp 0x4cacb6
push 8
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 5
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_FillRect]
cmp byte [0x6313cd], 0
jne 0x4cacd8
cmp byte [0x6313cf], 0
je 0x4cad0d
cmp byte [0x6313ce], 0
nop
je 0x4cad81
mov ebx, dword [0x632b8c]
test ebx, ebx
je 0x4cad0a
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
push eax
push 2
push 1
push esi
push dword [0x63272c]
call dword [0x5a08ec]
call ebx
mov ebx, dword [ebp - 0x18]
push dword [0x6326a4]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x25
lea eax, [ebp - 0x14]
push eax
push 4
push str.Back
push esi
call dword [sym.imp.USER32.dll_DrawTextW]
push 0xcc0020
push 0
push 0
push esi
push dword [edi + 0x28]
push dword [edi + 0x24]
push dword [edi + 0x20]
push dword [edi + 0x1c]
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x1c]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x20]
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
push ebx
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057c26f
mov esp, ebp
pop ebp
ret
push 5
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_FillRect]
jmp 0x4cad0d
Function at 0x4cb7c0
Capabilities:
Hide graphical window

Disassembly:
cmp dword [0x6326f8], 0
push ebx
push esi
push edi
je 0x4cb88e
mov eax, dword [0x632690]
xor ecx, ecx
xor esi, esi
mov dword [0x6326f8], ecx
mov dword [0x632734], ecx
cmp dword [eax], ecx
jbe 0x4cb858
lea esp, [esp]
mov eax, dword [eax + 8]
push 0
push ecx
push 3
mov ebx, dword [eax + esi*4]
push ebx
mov edi, dword [ebx + 0xc]
mov ecx, edi
call dword [0x5a08ec]
call edi
mov edi, dword [ebx + 0x20]
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 3
push eax
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0
push dword [ebx + 0x58]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebx + 0x54]
test eax, eax
je 0x4cb846
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x632690]
inc esi
cmp esi, dword [eax]
jae 0x4cb858
mov ecx, dword [0x6326f8]
jmp 0x4cb7f0
push 0
push dword [0x632700]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [0x63267c]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [0x632684]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebx
jmp fcn.004cb1e0
pop edi
pop esi
pop ebx
ret
Function at 0x4cf900
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x62a040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x100
push 4
push dword [0x631034]
mov dword [ebp - 8], 0x100
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push ebx
push 0x64
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, eax
xor esi, esi
cmp edi, 0xc0000004
jne 0x4cf994
jmp 0x4cf950
cmp esi, 8
jae 0x4cf9b1
push ebx
push 0
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [ebp - 8]
push 4
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push ebx
push 0x64
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, eax
inc esi
cmp edi, 0xc0000004
je 0x4cf950
test edi, edi
js 0x4cf9b1
mov eax, edi
mov dword [0x632814], ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057c26f
mov esp, ebp
pop ebp
ret
push ebx
push 0
lfence
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057c26f
mov esp, ebp
pop ebp
ret

Function at 0x4cfda0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x62a040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x62abb0], 0x64
push ebx
push esi
mov ebx, ecx
jb 0x4cfe93
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push 0
push 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push 0xaf
call dword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
mov esi, dword [ebp - 8]
test esi, esi
je 0x4cfe93
push edi
add esi, 4
mov byte [ebp - 0x11], 0
push esi
push 4
push dword [0x631034]
mov dword [ebp - 8], esi
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push esi
mov edi, eax
push 0
push edi
call fcn.0057e450
add esp, 0xc
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push 0
push dword [ebp - 8]
push edi
push 4
push eax
push 0xaf
call dword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
mov edi, edi
test eax, eax
js 0x4cfe70
mov edx, dword [edi]
lea ecx, [edi + 0x20]
add edx, edi
mov eax, edi
cmp ecx, edx
ja 0x4cfe70
movzx ecx, byte [eax + 0xe]
cmp ecx, ebx
je 0x4cfe68
add eax, dword [eax]
mov edx, dword [eax]
lea ecx, [eax + 0x20]
add edx, eax
cmp ecx, edx
jbe 0x4cfe51
jmp 0x4cfe70
mov al, byte [eax + 0x13]
and al, 1
mov byte [ebp - 0x11], al
push edi
push 0
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov al, byte [ebp - 0x11]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057c26f
mov esp, ebp
pop ebp
ret
mov ecx, dword ds:[ebp - 4]
xor al, al
pop esi
xor ecx, ebp
pop ebx
call fcn.0057c26f
mov esp, ebp
pop ebp
ret
Function at 0x4e2570
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
xor esi, esi
mov edi, dword [ebx + 0x80]
cmp dword [edi], esi
jbe 0x4e25ad
movzx eax, dl
lea ecx, [eax*4]
mov dword [ebp - 4], ecx
mov eax, dword [edi + 8]
mov edx, dword [eax + esi*4]
inc esi
xor ecx, dword [edx]
and ecx, 4
xor dword [edx], ecx
mov edi, dword [ebx + 0x80]
mov ecx, dword [ebp - 4]
cmp esi, dword [edi]
jb 0x4e2592
push 0
push 0
push 0x404
push dword [ebx + 0x5c]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f12c0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
mov eax, dword [0x62a040]
xor eax, esp
mov dword [esp + 0x108], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ecx]
push ebx
mov ebx, dword [ecx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0xfc], eax
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ecx + 8]
movzx eax, ax
mov ch, al
mov cl, ah
movzx eax, word [esp + 0x106]
mov word [esp + 0x104], cx
mov ch, al
mov cl, ah
lea eax, [esi + 0x10]
push eax
push 4
push dword [0x631034]
bswap edx
mov dword [esp + 0x20], edx
mov word [esp + 0x112], cx
mov dword [esp + 0x24], eax
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, dword [esp + 0x14]
push esi
push dword [esp + 0x14]
mov dword [eax], ecx
mov ecx, dword [esp + 0x10c]
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov dword [esp + 0x14], eax
mov dword [eax + 0xc], ebx
add eax, 0x10
push eax
call fcn.0057e5b0
mov bl, byte [ebp + 0x18]
add esp, 0xc
cmp bl, 3
jne 0x4f13ec
lea eax, [esi + 0x10]
mov dword [esp + 0x28], 0x67452301
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x20]
push eax
mov edx, esi
mov dword [esp + 0x30], 0xefcdab89
mov dword [esp + 0x34], 0x98badcfe
mov dword [esp + 0x38], 0x10325476
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call fcn.0056b400
lea ecx, [esp + 0x20]
call fcn.0056b4d0
mov eax, dword [esp + 0x7c]
mov edi, dword [esp + 0x78]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x14], eax
jmp 0x4f148f
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x88]
mov esi, dword [esp + 0xc]
mov edx, esi
push eax
mov dword [esp + 0xa4], 0x67452301
mov dword [esp + 0xa8], 0xefcdab89
mov dword [esp + 0xac], 0x98badcfe
mov dword [esp + 0xb0], 0x10325476
mov dword [esp + 0xb4], 0xc3d2e1f0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
call fcn.0056d9e0
lea edx, ds:[esp + 0x100]
lea ecx, [esp + 0x88]
call fcn.0056daa0
mov eax, dword [esp + 0x10c]
mov bl, 5
mov edi, dword [esp + 0x100]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x108]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x104]
mov dword [esp + 0xc], eax
push esi
push 0
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov edx, dword ds:[esp + 0x1c]
mov eax, dword [esp + 0xc]
shl bl, 4
mov dword [edx], edi
mov dword [edx + 4], eax
mov eax, dword [esp + 0x10]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x14]
mov dword [edx + 0xc], eax
mov eax, dword [edx]
bswap eax
mov dword [edx], eax
movzx eax, word [edx + 4]
mov ch, al
mov cl, ah
movzx eax, word [edx + 6]
mov word [edx + 4], cx
mov ch, al
mov cl, ah
mov word [edx + 6], cx
mov al, byte [edx + 8]
shr ecx, 8
and al, 0x3f
and cl, 0xf
or al, 0x80
or cl, bl
mov byte [edx + 8], al
pop edi
mov byte [edx + 7], cl
mov ecx, dword [esp + 0x110]
pop esi
pop ebx
xor ecx, esp
call fcn.0057c26f
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4f2400
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
test byte [0x62dbe0], 1
push ebx
push esi
jne 0x4f2485
mov esi, 0x62dbe0
lock bts dword [esi], 0x1f
setb al
test al, al
je 0x4f2439
test byte [0x62dbe0], 1
jne 0x4f2485
xor edx, edx
mov ecx, esi
call sym.SystemInformer.exe_PhfWaitForEvent
jmp 0x4f2485
push 4
push 0x632ac4
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x4f245b
mov dword [0x632ac4], 0x2e
push 4
push 0x632af8
push 0xf
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x4f247d
mov dword [0x632af8], 0x2c
mov ecx, esi
call sym.SystemInformer.exe_PhfEndInitOnce
mov eax, dword [ebp + 0xc]
mov ecx, 3
mov dword [esp + 0x10], eax
xor eax, eax
cmp byte [ebp + 0x10], al
push 0
cmovne eax, ecx
mov dword [esp + 0x18], 0
push 0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
push dword [ebp + 8]
mov dword [esp + 0x2c], 0x632ac4
push 0
push 0x400
mov dword [esp + 0x38], 0x632af8
mov dword [esp + 0x3c], 1
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov esi, eax
mov dword [esp + 0xc], 0
push 0
push 0
lea eax, [esp + 0x10]
lea ecx, [esi + esi]
push eax
mov dword [esp + 0x14], ecx
call sym.SystemInformer.exe_PhCreateString3
mov ebx, eax
lea eax, [esp + 0x10]
push esi
push dword [ebx + 4]
push eax
push dword [ebp + 8]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
test eax, eax
jne 0x4f2532
lea ecx, ds:[ebx - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4f2528
call fcn.004f9e40
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push dword [ebx + 4]
call sym.SystemInformer.exe_PhCountStringZ
add eax, eax
mov dword [ebx], eax
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4f3c20
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov eax, dword [0x62a040]
xor eax, esp
mov dword [esp + 4], eax
mov ecx, dword [0x632ae0]
push esi
mov esi, dword [ebp + 8]
push edi
test ecx, ecx
je 0x4f3c63
mov eax, dword [0x632adc]
mov dword [esi], eax
mov dword [esi + 4], ecx
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0057c26f
mov esp, ebp
pop ebp
ret 4
push 0x7ffe0030
call sym.SystemInformer.exe_PhCountStringZ
lea ecx, ds:[eax + eax]
movzx eax, word [ecx + 0x7ffe002e]
mov edx, ecx
mov edi, eax
cmp eax, 0x5c
jne 0x4f3c88
lea edx, [ecx - 2]
lea eax, [ecx - 2]
mov dword [esi], edx
cmp edi, 0x5c
mov dword [esi + 4], 0x7ffe0030
cmovne eax, ecx
xor ecx, ecx
mov dword [0x632adc], eax
lea eax, [esp + 8]
lock or dword [eax], ecx
mov ecx, dword [esp + 0xc]
pop edi
pop esi
xor ecx, esp
mov dword [0x632ae0], 0x7ffe0030
call fcn.0057c26f
mov esp, ebp
pop ebp
ret 4
Function at 0x4f71c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
cmp eax, 3
ja case.default.0x4f71ce
jmp dword [eax*4 + 0x4f7258]
push dword ds:[ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea ecx, [edi + 4]
call fcn.0056b400
pop edi
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
mov ecx, dword [edi + 4]
not ecx
push esi
mov esi, dword [ebp + 0xc]
test edx, edx
je 0x4f722a
lea ecx, [ecx]
movsx eax, byte [esi]
lea esi, [esi + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6150e0]
sub edx, 1
jne 0x4f7210
not ecx
pop esi
mov dword [edi + 4], ecx
pop edi
pop ebp
ret 0xc
push dword ds:[ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea ecx, [edi + 4]
call fcn.0056b1a0
pop edi
pop ebp
ret 0xc
push 0xc000000d
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
lea ecx, [ecx]
aad 0x71
dec edi
add dl, ch
jno 0x4f72ae
add ch, bh
jno 0x4f72b2
add byte [0xcc004f72], dh
int3
inc esi
pop esp

Function at 0x4f86e0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
mov eax, dword [0x62a040]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [0x62db78], 1
push ebx
push esi
push edi
jne 0x4f884d
mov edi, 0x62db78
lock bts dword [edi], 0x1f
setb al
test al, al
jne 0x4f871b
mov al, 1
jmp 0x4f872f
test byte [0x62db78], 1
jne 0x4f872d
xor edx, edx
mov ecx, edi
call sym.SystemInformer.exe_PhfWaitForEvent
xor al, al
test al, al
je 0x4f884d
call fcn.0052d900
mov esi, eax
lea eax, [ebp - 0xa0]
push 1
push eax
mov bl, byte [esi + 1]
call dword [sym.imp.ntdll.dll_RtlCreateSecurityDescriptor]
movzx ecx, bl
lea eax, [ebp - 0x8c]
push 2
lea ecx, [ecx*4 + 0x4c]
push ecx
push eax
call dword [sym.imp.ntdll.dll_RtlCreateAcl]
push 0x5d2b6c
push 0xf000f
push 2
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
push esi
push 0xf000f
push 2
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
push 0x5d2b78
push 7
push 2
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
push 0
lea eax, [ebp - 0x8c]
push eax
push 1
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.ntdll.dll_RtlSetDaclSecurityDescriptor]
cmp dword [0x62abb0], 0x64
mov dword ds:[ebp - 0xa8], 0x420040
sbb eax, eax
mov dword [ebp - 0xa4], str.BaseNamedObjectsSystemInformer
and eax, 0xfffff000
mov dword [ebp - 0xc0], 0x18
add eax, 0x1080
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xb8], eax
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0xc0]
push eax
push 0x2000000
push 0x632ac0
mov dword [ebp - 0xac], 0
call dword [sym.imp.ntdll.dll_NtCreateDirectoryObject]
mov ecx, edi
call sym.SystemInformer.exe_PhfEndInitOnce
mov ecx, dword [ebp - 4]
mov eax, dword [0x632ac0]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0057c26f
mov esp, ebp
pop ebp
ret
Function at 0x4f8900
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1028
call fcn.0059cbf0
mov eax, dword [0x62a040]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, 0x1000
mov dword [ebp - 0x101c], edx
push esi
push 4
push dword [0x631034]
mov dword [ebp - 0x1018], ecx
mov dword [ebp - 0x1020], eax
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor ebx, ebx
mov edi, eax
push ebx
push ebx
push esi
lea eax, [ebp - 0x100c]
mov dword [ebp - 0x1014], ebx
push eax
lea eax, [ebp - 0x1028]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x1018]
call dword [sym.imp.ntdll.dll_NtReadFile]
mov ecx, eax
mov dword [ebp - 0x1010], ecx
test ecx, ecx
js 0x4f8a37
lfence
jmp 0x4f8990
mov ebx, dword [ebp - 0x1024]
test ebx, ebx
je 0x4f8a53
mov eax, dword [ebp - 0x1014]
lea ecx, [eax + ebx]
mov dword [ebp - 0x1010], ecx
cmp esi, ecx
jae 0x4f89df
add esi, esi
push esi
test edi, edi
jne 0x4f89c8
push 4
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
jmp 0x4f89d7
push edi
push 4
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov edi, eax
mov eax, dword [ebp - 0x1014]
push ebx
lea ecx, [ebp - 0x100c]
add eax, edi
push ecx
push eax
call fcn.0057e5b0
add esp, 0xc
mov ebx, dword [ebp - 0x1010]
lea eax, [ebp - 0x100c]
mov dword [ebp - 0x1014], ebx
push 0
push 0
push 0x1000
push eax
lea eax, [ebp - 0x1028]
push eax
push 0
push 0
push 0
push dword [ebp - 0x1018]
call dword [sym.imp.ntdll.dll_NtReadFile]
mov ecx, eax
mov dword [ebp - 0x1010], eax
test ecx, ecx
jns 0x4f8990
mov eax, ecx
mov edx, edi
mov dword [ebp - 0x1018], eax
cmp ecx, 0xc0000011
jne 0x4f8a82
mov dword [ebp - 0x1010], 0
mov ebx, dword ds:[ebp - 0x1014]
lea eax, [ebx + 1]
cmp esi, eax
jae 0x4f8ae8
inc esi
lfence
push esi
test edi, edi
jne 0x4f8ad7
push 4
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop
jmp 0x4f8ae6
mov dword [ebp - 0x1014], ebx
mov edi, edx
mov dword [ebp - 0x1010], eax
test eax, eax
jns 0x4f8a53
push edx
push 0
lfence
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp - 0x101c]
mov dword [eax], 0
mov eax, dword [ebp - 0x1020]
mov dword [eax], 0
mov eax, dword [ebp - 0x1018]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0057c26f
mov esp, ebp
pop ebp
ret 4
push edi
push 4
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov edi, eax
mov eax, dword [ebp - 0x101c]
mov ecx, dword [ebp - 8]
mov byte [ebx + edi], 0
xor ecx, ebp
mov dword [eax], edi
mov eax, dword [ebp - 0x1020]
pop edi
pop esi
mov dword [eax], ebx
mov eax, dword [ebp - 0x1010]
pop ebx
call fcn.0057c26f
mov esp, ebp
pop ebp
ret 4
Function at 0x4f8c80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov eax, 0x5a4d
push esi
push edi
mov edi, edx
cmp word [ecx], ax
jne 0x4f8d3b
mov eax, dword ds:[ecx + 0x3c]
test eax, eax
je 0x4f8d3b
cmp eax, 0x7fffffff
jae 0x4f8d3b
cmp dword [eax + ecx], 0x4550
jne 0x4f8d3b
lea edx, [ecx + 0x78]
add edx, eax
mov eax, dword [edx]
test eax, eax
je 0x4f8d3b
cmp dword [edx + 4], 0
je 0x4f8d3b
push 0
add eax, ecx
push str.DllGetClassObject
push eax
call fcn.00522ae0
mov esi, eax
test esi, esi
je 0x4f8d3b
lea eax, [esp + 0xc]
mov ecx, esi
push eax
push 0x5a3120
push edi
call dword [0x5a08ec]
call esi
mov edi, eax
test edi, edi
js 0x4f8d31
mov eax, dword [esp + 0xc]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov esi, dword [eax]
push 0
push eax
mov esi, dword [esi + 0xc]
mov ecx, esi
call dword [0x5a08ec]
call esi
mov edi, eax
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x5a08ec]
call esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
pop edi
mov eax, 0x8007007f
pop esi
mov esp, ebp
pop ebp
ret 8