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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x62d040]
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 [0x634e1c]
jne 0x4caf42
mov ecx, edi
call fcn.004cc2e0
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret
cmp ecx, dword [0x634e24]
jne 0x4cb04a
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 0x4cb037
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 [0x633156], 0
je 0x4cafcd
mov ecx, dword [0x636110]
sub ecx, 1
jne 0x4caff2
push 0x2b2b2b
jmp 0x4cafd2
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.0057fcaf
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x634e30]
xor eax, eax
mov edx, dword [ecx]
test edx, edx
je 0x4cb06f
mov ecx, dword [ecx + 8]
jmp 0x4cb060
mov esi, dword [ecx]
cmp ebx, dword [esi + 0x5c]
je 0x4cb082
inc eax
add ecx, 4
cmp eax, edx
jb 0x4cb060
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x18]
lea eax, [edi + 0x1c]
push eax
mov ecx, esi
call fcn.004cc4c0
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret
Function at 0x4cc2e0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x62d040]
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 0x4cc490
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 [0x633156], 0
je 0x4cc3bc
mov ecx, dword [0x636110]
sub ecx, 0
je 0x4cc39d
sub ecx, 1
jne 0x4cc3e6
push 0xffffff
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [0x62dbb8]
push esi
call dword [sym.imp.GDI32.dll_SetDCBrushColor]
push 0x12
call dword [sym.imp.GDI32.dll_GetStockObject]
jmp 0x4cc3d6
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 0x4cc3d6
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 [0x633b6e], 0
jne 0x4cc3f8
cmp byte [0x633c34], 0
je 0x4cc42d
cmp byte [0x633b6f], 0
nop
je 0x4cc4a1
mov ebx, dword [0x63532c]
test ebx, ebx
je 0x4cc42a
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
push eax
push 2
push 1
push esi
push dword [0x634ecc]
call dword [0x5a38e4]
call ebx
mov ebx, dword [ebp - 0x18]
push dword [0x634e44]
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.0057fcaf
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 0x4cc42d
Function at 0x4ccee0
Capabilities:
Hide graphical window

Disassembly:
cmp dword [0x634e98], 0
push ebx
push esi
push edi
je 0x4ccfae
mov eax, dword [0x634e30]
xor ecx, ecx
xor esi, esi
mov dword [0x634e98], ecx
mov dword [0x634ed4], ecx
cmp dword [eax], ecx
jbe 0x4ccf78
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 [0x5a38e4]
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 0x4ccf66
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x634e30]
inc esi
cmp esi, dword [eax]
jae 0x4ccf78
mov ecx, dword [0x634e98]
jmp 0x4ccf10
push 0
push dword [0x634ea0]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [0x634e1c]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [0x634e24]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebx
jmp fcn.004cc900
pop edi
pop esi
pop ebx
ret
Function at 0x4d10c0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x62d040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x100
push 4
push dword [0x6337d4]
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 0x4d1154
jmp 0x4d1110
cmp esi, 8
jae 0x4d1171
push ebx
push 0
push dword [0x6337d4]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [ebp - 8]
push 4
push dword [0x6337d4]
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 0x4d1110
test edi, edi
js 0x4d1171
mov eax, edi
mov dword [0x634fb4], ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret
push ebx
push 0
lfence
push dword [0x6337d4]
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.0057fcaf
mov esp, ebp
pop ebp
ret

Function at 0x4d1560
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x62d040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x62dbb0], 0x64
push ebx
push esi
mov ebx, ecx
jb 0x4d1653
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 0x4d1653
push edi
add esi, 4
mov byte [ebp - 0x11], 0
push esi
push 4
push dword [0x6337d4]
mov dword [ebp - 8], esi
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push esi
mov edi, eax
push 0
push edi
call fcn.00581cf0
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 0x4d1630
mov edx, dword [edi]
lea ecx, [edi + 0x20]
add edx, edi
mov eax, edi
cmp ecx, edx
ja 0x4d1630
movzx ecx, byte [eax + 0xe]
cmp ecx, ebx
je 0x4d1628
add eax, dword [eax]
mov edx, dword [eax]
lea ecx, [eax + 0x20]
add edx, eax
cmp ecx, edx
jbe 0x4d1611
jmp 0x4d1630
mov al, byte [eax + 0x13]
and al, 1
mov byte [ebp - 0x11], al
push edi
push 0
push dword [0x6337d4]
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.0057fcaf
mov esp, ebp
pop ebp
ret
mov ecx, dword ds:[ebp - 4]
xor al, al
pop esi
xor ecx, ebp
pop ebx
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret
Function at 0x4e3d90
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 0x4e3dcd
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 0x4e3db2
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 0x4f31a0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
mov eax, dword [0x62d040]
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 [0x6337d4]
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.005831c0
mov bl, byte [ebp + 0x18]
add esp, 0xc
cmp bl, 3
jne 0x4f32cc
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.0056ef20
lea ecx, [esp + 0x20]
call fcn.0056eff0
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 0x4f336f
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.005714a0
lea edx, ds:[esp + 0x100]
lea ecx, [esp + 0x88]
call fcn.00571560
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 [0x6337d4]
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.0057fcaf
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4f42e0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
test byte [0x630be0], 1
push ebx
push esi
jne 0x4f4365
mov esi, 0x630be0
lock bts dword ds:[esi], 0x1f
jae 0x4f4316
test byte [0x630be0], 1
jne 0x4f4365
xor edx, edx
mov ecx, esi
call sym.SystemInformer.exe_PhfWaitForEvent
jmp 0x4f4365
push 4
push 0x635264
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x4f4338
mov dword [0x635264], 0x2e
push 4
push 0x635298
push 0xf
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x4f435a
mov dword [0x635298], 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], 0x635264
push 0
push 0x400
mov dword [esp + 0x38], 0x635298
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 0x4f4412
lea ecx, ds:[ebx - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4f4408
call fcn.004fbfa0
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 0x4f5b00
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 4], eax
mov ecx, dword [0x635280]
push esi
mov esi, dword [ebp + 8]
push edi
test ecx, ecx
je 0x4f5b43
mov eax, dword [0x63527c]
mov dword [esi], eax
mov dword [esi + 4], ecx
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0057fcaf
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 0x4f5b68
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 [0x63527c], eax
lea eax, [esp + 8]
lock or dword [eax], ecx
mov ecx, dword [esp + 0xc]
pop edi
pop esi
xor ecx, esp
mov dword [0x635280], 0x7ffe0030
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret 4
Function at 0x4f9200
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.0x4f920e
jmp dword [eax*4 + 0x4f9298]
push dword ds:[ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea ecx, [edi + 4]
call fcn.0056ef20
pop edi
pop ebp
ret 0xc
push dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea ecx, [edi + 4]
call fcn.005714a0
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 0x4f926a
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 + 0x618070]
sub edx, 1
jne 0x4f9250
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.0056ecc0
pop edi
pop ebp
ret 0xc
push 0xc000000d
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
lea ecx, [ecx]
adc eax, 0x2a004f92
xchg edx, eax
dec edi
add byte [0x75004f92], bh
xchg edx, eax
dec edi
add ah, cl
int3
Function at 0x4fa760
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
mov eax, dword [0x62d040]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [0x630b78], 1
push ebx
push esi
push edi
jne 0x4fa910
mov edi, 0x630b78
lock bts dword [edi], 0x1f
jb 0x4fa796
mov al, 1
jmp 0x4fa7aa
test byte [0x630b78], 1
jne 0x4fa7a8
xor edx, edx
mov ecx, edi
call sym.SystemInformer.exe_PhfWaitForEvent
xor al, al
test al, al
je 0x4fa910
call fcn.005306d0
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 0x5d5b0c
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 0x5d5b18
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 [0x62dbb0], 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 0x635260
mov dword [ebp - 0xac], 0
call dword [sym.imp.ntdll.dll_NtCreateDirectoryObject]
lock bts dword [edi], 0
jb 0x4fa910
mov esi, dword [0x630b7c]
test esi, esi
je 0x4fa8e6
push 0
push esi
call dword [sym.imp.ntdll.dll_NtSetEvent]
mov eax, 0xfffffffe
lock xadd dword [edi], eax
shr eax, 1
and eax, 0x7fff
sub eax, 1
jne 0x4fa910
test esi, esi
je 0x4fa910
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [0x630b7c], 0
mov ecx, dword ds:[ebp - 4]
mov eax, dword [0x635260]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret
Function at 0x4faa00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1028
call fcn.005a0530
mov eax, dword [0x62d040]
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 [0x6337d4]
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 0x4fab37
lfence
jmp 0x4faa90
mov ebx, dword [ebp - 0x1024]
test ebx, ebx
je 0x4fab53
mov eax, dword [ebp - 0x1014]
add eax, ebx
mov dword [ebp - 0x1010], eax
cmp esi, eax
jae 0x4faad9
add esi, esi
push esi
test edi, edi
jne 0x4faac8
push 4
push dword [0x6337d4]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
jmp 0x4faad7
push edi
push 4
push dword [0x6337d4]
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov edi, eax
push ebx
lea eax, [ebp - 0x100c]
push eax
mov eax, dword [ebp - 0x1014]
add eax, edi
push eax
call fcn.005831c0
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 0x4faa90
mov eax, ecx
mov edx, edi
mov dword [ebp - 0x1018], eax
cmp ecx, 0xc0000011
jne 0x4fab82
mov dword [ebp - 0x1010], 0
mov ebx, dword ds:[ebp - 0x1014]
lea eax, [ebx + 1]
cmp esi, eax
jae 0x4fabe8
inc esi
lfence
push esi
test edi, edi
jne 0x4fabd7
push 4
push dword [0x6337d4]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop
jmp 0x4fabe6
mov dword [ebp - 0x1014], ebx
mov edi, edx
mov dword [ebp - 0x1010], eax
test eax, eax
jns 0x4fab53
push edx
push 0
lfence
push dword [0x6337d4]
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.0057fcaf
mov esp, ebp
pop ebp
ret 4
push edi
push 4
push dword [0x6337d4]
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.0057fcaf
mov esp, ebp
pop ebp
ret 4
Function at 0x4fad00
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 0x4fadbb
mov eax, dword ds:[ecx + 0x3c]
test eax, eax
je 0x4fadbb
cmp eax, 0x7fffffff
jae 0x4fadbb
cmp dword [eax + ecx], 0x4550
jne 0x4fadbb
lea edx, [ecx + 0x78]
add edx, eax
mov eax, dword [edx]
test eax, eax
je 0x4fadbb
cmp dword [edx + 4], 0
je 0x4fadbb
push 0
add eax, ecx
push str.DllGetClassObject
push eax
call fcn.00525800
mov esi, eax
test esi, esi
je 0x4fadbb
lea eax, [esp + 0xc]
mov ecx, esi
push eax
push 0x5a6120
push edi
call dword [0x5a38e4]
call esi
mov edi, eax
test edi, edi
js 0x4fadb1
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 [0x5a38e4]
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 [0x5a38e4]
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