joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4af340
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push edi
push 0x38
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x40], 0x3c
push 0
push eax
call fcn.0051fd40
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov edi, dword [ebp + 8]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x24], 5
push eax
mov dword [ebp - 0x3c], 0x40c
mov dword [ebp - 0x34], str.properties
mov dword [ebp - 0x38], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x4af3fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4af3a2
push eax
call sym.ProcessHacker.exe_PhGetNtMessage
mov edi, edi
jmp 0x4af3a8
push eax
call sym.ProcessHacker.exe_PhGetWin32Message
mov esi, eax
test esi, esi
je 0x4af3e6
push dword [esi + 4]
push 0x54ace8
push str.Unable_to_execute_the_program.
push 0xfffe
push 0x20
push edi
call sym.ProcessHacker.exe_PhShowMessage2
add esp, 0x18
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4af3fb
call fcn.004b3960
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push str.Unable_to_execute_the_program.
push 0x57e1d4
push 0x10
push edi
call sym.ProcessHacker.exe_PhShowMessage
add esp, 0x10
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4af560
Capabilities:
Create process on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
lea eax, [esp]
push ebx
push esi
push edi
push 0
push 0
push 0
push 0x5afd9c
push 0xfffffffffffffff7
push 0x20006
push eax
call sym.ProcessHacker.exe_PhCreateKey
test eax, eax
js 0x4af705
mov ecx, dword [ebp + 0xc]
call fcn.004af420
mov edx, dword [0x5afe2c]
mov edi, eax
mov word [esp + 0x10], dx
mov esi, dword [edi]
lea ecx, [edx + 2]
add esi, 2
mov word [esp + 0x12], cx
mov ecx, dword [str.LastKey]
mov dword [esp + 0x14], ecx
cmp edx, 0xfffe
ja 0x4af5df
push esi
push dword [edi + 4]
lea eax, [esp + 0x18]
push 1
push 0
push eax
push dword [esp + 0x20]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
push dword [esp + 0xc]
call dword [sym.imp.ntdll.dll_NtClose]
or ebx, 0xffffffff
lea ecx, [edi - 8]
mov eax, ebx
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4af5fe
call fcn.004b3960
lea eax, [esp + 0x18]
push eax
call sym.ProcessHacker.exe_PhGetSystemRoot
mov esi, dword [0x5afe1c]
mov edi, dword ds:[esp + 0x18]
add esi, edi
push dword [0x5b1d70]
lea eax, [esi + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
push edi
push dword [esp + 0x20]
xor edx, edx
mov dword [esp + 0x18], eax
lea ecx, [eax + 8]
mov dword [eax], esi
mov dword [eax + 4], ecx
mov word [ecx + esi], dx
push dword [eax + 4]
call fcn.00521a30
mov esi, dword ds:[esp + 0x1c]
add esp, 0xc
push dword [0x5afe1c]
mov eax, dword [esi + 4]
push dword [0x5afe20]
add eax, edi
push eax
call fcn.00521a30
add esp, 0xc
lea eax, [esp + 0x18]
push eax
call sym.ProcessHacker.exe_PhGetOwnTokenAttributes
mov edi, dword [esi + 4]
mov eax, dword [eax + 4]
and eax, 1
je 0x4af68a
push 0
push edi
push dword [ebp + 8]
call sym.ProcessHacker.exe_PhShellExecute
jmp 0x4af6f3
push 0x38
lea eax, [esp + 0x34]
mov dword [esp + 0x30], 0x3c
push 0
push eax
call fcn.0051fd40
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [esp + 0x34], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], 0
push eax
mov dword [esp + 0x34], 0x440
mov dword [esp + 0x4c], 1
mov dword [esp + 0x3c], str.runas
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edi, edi
test eax, eax
je 0x4af6f3
mov eax, dword [esp + 0x64]
test eax, eax
je 0x4af6f3
push eax
call dword [sym.imp.ntdll.dll_NtClose]
lea ecx, [esi - 8]
lock xadd dword [ecx + 4], ebx
dec ebx
jne 0x4af705
mov edi, edi
call fcn.004b3960
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4b08a0
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.0x4b08ae
jmp dword [eax*4 + 0x4b0938]
push dword ds:[ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea ecx, [edi + 4]
call fcn.0050d0c0
pop edi
pop ebp
ret 0xc
push dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea ecx, [edi + 4]
call fcn.0050f340
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 0x4b090a
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 + 0x57faa0]
sub edx, 1
jne 0x4b08f0
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.0050ce60
pop edi
pop ebp
ret 0xc
push 0xc000000d
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
lea ecx, [ecx]
mov ch, 8
dec ebx
add dl, cl
or byte [ebx], cl
fisttp qword [eax]
dec ebx
add byte [0xcc004b09], dl
int3
Function at 0x4b1ce0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x5ac004]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [0x5afdac], 1
push ebx
push esi
push edi
jne 0x4b1e88
mov eax, 0x5afdac
lock bts dword [eax], 0x1f
jae 0x4b1d2d
test byte [0x5afdac], 1
jne 0x4b1e88
xor edx, edx
mov ecx, eax
call sym.ProcessHacker.exe_PhfWaitForEvent
jmp 0x4b1e88
push 2
push 0x5afdbc
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntdll.dll_RtlInitializeSid]
push 0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntdll.dll_RtlSubAuthoritySid]
push 1
mov dword [eax], 0x20
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntdll.dll_RtlSubAuthoritySid]
mov dword [eax], 0x220
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntdll.dll_RtlLengthSid]
push 0x5acaec
mov esi, eax
call dword [sym.imp.ntdll.dll_RtlLengthSid]
push 0x5acae0
add esi, eax
call dword [sym.imp.ntdll.dll_RtlLengthSid]
add eax, 0x40
add esi, eax
push esi
push 4
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
push 1
push ebx
lea edi, [ebx + 0x14]
call dword [sym.imp.ntdll.dll_RtlCreateSecurityDescriptor]
push 2
lea ecx, [esi - 0x14]
push ecx
push edi
call dword [sym.imp.ntdll.dll_RtlCreateAcl]
push 0x5acae0
push 0xf000f
push 2
push edi
call dword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
lea eax, [ebp - 0x14]
push eax
push 0xf000f
push 2
push edi
call dword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
push 0x5acaec
push 7
push 2
push edi
call dword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
push 0
push edi
push 1
push ebx
call dword [sym.imp.ntdll.dll_RtlSetDaclSecurityDescriptor]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x18
push eax
push 0x2000000
push 0x5b3830
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0x80
mov dword [ebp - 0x24], 0x5afdc4
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0
call dword [sym.imp.ntdll.dll_NtCreateDirectoryObject]
push ebx
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov edi, 0x5afdac
lock bts dword [edi], 0
jb 0x4b1e88
mov esi, dword [0x5afdb0]
test esi, esi
je 0x4b1e5e
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 0x4b1e88
test esi, esi
je 0x4b1e88
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [0x5afdb0], 0
mov ecx, dword [ebp - 4]
mov eax, dword [0x5b3830]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0051e068
mov esp, ebp
pop ebp
ret
Function at 0x4b1ea0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5ac004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 3
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], edx
push eax
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
call dword [sym.imp.ntdll.dll_LdrFindResource_U]
test eax, eax
js 0x4b1f4d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lfence
push dword [ebp - 0x14]
push edi
call dword [sym.imp.ntdll.dll_LdrAccessResource]
nop
test eax, eax
js 0x4b1f4d
push ebx
mov ebx, dword [ebp - 0x18]
test esi, esi
je 0x4b1f0e
mov dword [esi], ebx
mov edi, dword ds:[ebp - 0x1c]
push ebx
push 4
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push ebx
mov esi, eax
push edi
push esi
call fcn.00521a30
mov eax, dword [ebp - 0x20]
add esp, 0xc
pop ebx
mov dword [eax], esi
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051e068
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.0051e068
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4b2480
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword fs:[0x18]
push esi
push edi
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
add eax, 0xc
mov dword [esp + 0x1c], eax
mov edi, dword [eax]
mov dword [esp + 0xc], edi
cmp edi, eax
je 0x4b260a
lea esp, [esp]
movzx eax, word [edi + 0x2c]
movzx ecx, word [edi + 0x24]
mov esi, dword [edi + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x30]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x4b24d6
cmp dword [edi + 0x18], eax
jne 0x4b25f6
mov eax, dword ds:[ebp + 0xc]
test eax, eax
je 0x4b25c3
cmp ecx, dword [eax]
jne 0x4b25f6
cmp byte [0x5b35f6], 1
mov edi, ecx
mov edx, dword [eax + 4]
jb 0x4b2545
shr edi, 4
test edi, edi
je 0x4b2532
mov eax, dword [esp + 0xc]
mov esi, dword [eax + 0x28]
lea esp, [esp]
movups xmm1, xmmword ds:[edx]
movups xmm0, xmmword [esi]
pcmpeqd xmm1, xmm0
pmovmskb eax, xmm1
cmp eax, 0xffff
jne 0x4b2539
add esi, 0x10
add edx, 0x10
sub edi, 1
jne 0x4b2510
shr ecx, 1
and ecx, 7
jmp 0x4b256d
and ecx, 0xf
shl edi, 4
add ecx, edi
shr ecx, 1
jmp 0x4b256d
shr edi, 2
test edi, edi
je 0x4b2568
mov eax, dword [esp + 0xc]
mov esi, dword [eax + 0x28]
mov eax, dword [esi]
cmp eax, dword [edx]
jne 0x4b25e5
add esi, 4
add edx, 4
sub edi, 1
jne 0x4b2553
shr ecx, 1
and ecx, 1
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x4b25bf
sub edx, esi
mov dword [esp + 0x18], edx
jmp 0x4b2580
movzx edi, word [edx + esi]
movzx eax, word [esi]
mov dword [esp + 0x14], edi
cmp ax, di
je 0x4b25b3
push eax
call dword [sym.imp.ntdll.dll_RtlUpcaseUnicodeChar]
push dword ds:[esp + 0x14]
movzx edi, ax
call dword [sym.imp.ntdll.dll_RtlUpcaseUnicodeChar]
cmp di, ax
jne 0x4b25f2
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
add esi, 2
sub ecx, 1
mov dword [esp + 0x10], ecx
jne 0x4b2580
mov edi, dword [esp + 0xc]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4b25db
push 1
push eax
lea eax, [esp + 0x28]
push eax
call sym.ProcessHacker.exe_PhEqualStringRef
test al, al
je 0x4b25f6
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
and ecx, 3
lea ecx, [ecx + edi*4]
shr ecx, 1
jmp 0x4b256d
mov edi, dword [esp + 0xc]
mov edi, dword ds:[edi]
mov dword [esp + 0xc], edi
cmp edi, dword [esp + 0x1c]
jne 0x4b24b0
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4b2620
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword fs:[0x18]
push ebx
push esi
push edi
mov eax, dword [eax + 0x30]
push dword [eax + 0xa0]
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 0xc]
mov eax, dword [edx + 0xc]
add edx, 0xc
cmp eax, edx
je 0x4b266b
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4b2695
lea esp, [esp]
cmp dword [eax + 0x18], ecx
je 0x4b2695
mov eax, dword [eax]
cmp eax, edx
jne 0x4b2658
xor esi, esi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0xa0]
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
test esi, esi
jne 0x4b26ea
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test eax, eax
je 0x4b266b
movzx ecx, word ds:[eax + 0x24]
test cx, cx
jne 0x4b26ae
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov esi, eax
jmp 0x4b266d
mov ebx, dword ds:[eax + 0x28]
mov edi, ecx
push dword [0x5b1d70]
lea eax, [edi + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov esi, eax
xor ecx, ecx
lea eax, [esi + 8]
mov dword [esi], edi
mov dword [esi + 4], eax
mov word [eax + edi], cx
test ebx, ebx
je 0x4b266d
push edi
push ebx
push dword [esi + 4]
call fcn.00521a30
add esp, 0xc
jmp 0x4b266d
push esi
call sym.ProcessHacker.exe_PhGetFileName
lea ecx, ds:[esi - 8]
mov edi, eax
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4b2708
call fcn.004b3960
push 0
push dword [edi + 4]
call sym.ProcessHacker.exe_PhGetFullPath
test eax, eax
je 0x4b272e
mov ecx, edi
mov edi, eax
test ecx, ecx
je 0x4b272e
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], esi
dec esi
jne 0x4b272e
call fcn.004b3960
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4b2757
push 0
push 0x5c
push edi
call sym.ProcessHacker.exe_PhFindLastCharInStringRef
nop
cmp eax, 0xffffffff
je 0x4b2753
inc eax
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4b2780
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov esi, ecx
push esi
call sym.ProcessHacker.exe_PhCountStringZ
add eax, eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0xa0]
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov eax, dword fs:[0x18]
xor ebx, ebx
mov eax, dword [eax + 0x30]
mov edi, dword [eax + 0xc]
add edi, 0xc
mov esi, dword [edi]
cmp esi, edi
je 0x4b27fe
lea ebx, [ebx]
movzx eax, word [esi + 0x2c]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x30]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push 1
push eax
lea eax, [esp + 0x20]
push eax
call sym.ProcessHacker.exe_PhEqualStringRef
test al, al
jne 0x4b27fc
mov esi, dword [esi]
cmp esi, edi
jne 0x4b27d0
jmp 0x4b27fe
mov ebx, esi
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
push dword [ecx + 0xa0]
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
test ebx, ebx
je 0x4b2822
mov eax, dword [ebx + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b2840
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, 0x5a4d
push esi
mov esi, edx
cmp word [ecx], ax
jne 0x4b2896
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x4b2896
jmp 0x4b2860
cmp eax, 0x7fffffff
jae 0x4b2896
cmp dword [eax + ecx], 0x4550
jne 0x4b2896
lea edx, [ecx + 0x78]
add edx, eax
mov eax, dword [edx]
test eax, eax
je 0x4b2896
cmp dword ds:[edx + 4], 0
je 0x4b2896
push dword [ebp + 8]
add eax, ecx
push esi
push eax
push edx
call fcn.004b2920
pop esi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4b3180
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.0053da50
mov eax, dword [0x5ac004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
mov byte [ebp - 0x1009], dl
mov ecx, 0x1000
mov dword [ebp - 0x101c], ebx
push ecx
push 4
push dword [0x5b1dac]
mov dword [ebp - 0x1014], 0
mov dword [ebp - 0x1010], ecx
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor esi, esi
mov edi, eax
push esi
push esi
push 0x1000
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x1024]
push eax
push esi
push esi
push esi
push ebx
call dword [sym.imp.ntdll.dll_NtReadFile]
test eax, eax
js 0x4b3301
lfence
lea ebx, [ebx]
mov ebx, dword [ebp - 0x1020]
test ebx, ebx
je 0x4b327e
mov eax, dword [ebp - 0x1010]
lea ecx, [ebx + esi]
mov dword [ebp - 0x1018], ecx
cmp eax, ecx
jae 0x4b3237
add eax, eax
push eax
push edi
push 4
push dword [0x5b1dac]
mov dword [ebp - 0x1010], eax
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov edi, eax
push ebx
lea eax, [ebp - 0x1008]
push eax
lea eax, [esi + edi]
push eax
call fcn.00521a30
add esp, 0xc
mov esi, dword [ebp - 0x1018]
lea eax, [ebp - 0x1008]
push 0
push 0
push 0x1000
push eax
lea eax, [ebp - 0x1024]
push eax
push 0
push 0
push 0
push dword [ebp - 0x101c]
call dword [sym.imp.ntdll.dll_NtReadFile]
test eax, eax
jns 0x4b3200
mov ecx, dword [ebp - 0x1010]
lea eax, [esi + 1]
cmp ecx, eax
jae 0x4b32a8
lea eax, ds:[ecx + 1]
push eax
push edi
push 4
lfence
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov edi, eax
test esi, esi
je 0x4b3301
cmp byte [ebp - 0x1009], 0
mov byte [esi + edi], 0
lfence
je 0x4b32cd
push esi
push edi
call sym.ProcessHacker.exe_PhConvertUtf8ToUtf16Ex
mov dword [ebp - 0x1014], eax
jmp 0x4b3301
push dword [0x5b1d68]
lea eax, [esi + 9]
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov ecx, eax
mov dword [ebp - 0x1014], ecx
lea eax, [ecx + 8]
mov dword [ecx], esi
mov dword [ecx + 4], eax
mov byte [eax + esi], 0
test edi, edi
je 0x4b3301
push esi
push edi
push dword [ecx + 4]
call fcn.00521a30
add esp, 0xc
push edi
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ecx, dword ds:[ebp - 4]
mov eax, dword [ebp - 0x1014]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0051e068
mov esp, ebp
pop ebp
ret
Function at 0x4b3340
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 0x4b33fb
mov eax, dword ds:[ecx + 0x3c]
test eax, eax
je 0x4b33fb
cmp eax, 0x7fffffff
jae 0x4b33fb
cmp dword [eax + ecx], 0x4550
jne 0x4b33fb
lea edx, [ecx + 0x78]
add edx, eax
mov eax, dword [edx]
test eax, eax
je 0x4b33fb
cmp dword [edx + 4], 0
je 0x4b33fb
push 0
push str.DllGetClassObject
add eax, ecx
push eax
push edx
call fcn.004b2920
mov esi, eax
test esi, esi
je 0x4b33fb
lea eax, [esp + 0xc]
mov ecx, esi
push eax
push 0x542630
push edi
call dword [0x5404bc]
call esi
mov edi, eax
test edi, edi
js 0x4b33f1
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 [0x5404bc]
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 [0x5404bc]
call esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
pop edi
mov eax, 0x7f
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4b3c60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [0x5b3864]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [ebp + 8]
mov esi, eax
test edi, edi
jne 0x4b3c83
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
mov eax, dword [esi]
cmp eax, 0x40
jae 0x4b3c98
mov dword [esi + eax*4 + 4], edi
mov eax, edi
inc dword [esi]
pop edi
pop esi
pop ebp
ret 4
cmp dword ds:[esi + 0x10c], 0
jne 0x4b3cc5
push 0x100
push 4
push dword [0x5b1dac]
mov dword [esi + 0x108], 0x40
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esi + 0x10c], eax
mov ecx, dword [esi + 0x104]
mov eax, dword [esi + 0x108]
cmp ecx, eax
jne 0x4b3d01
add eax, eax
mov dword [esi + 0x108], eax
shl eax, 2
push eax
push dword [esi + 0x10c]
push 4
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov ecx, dword [esi + 0x104]
mov dword [esi + 0x10c], eax
mov eax, dword [esi + 0x10c]
mov dword [eax + ecx*4], edi
mov eax, edi
inc dword [esi + 0x104]
pop edi
pop esi
pop ebp
ret 4
Function at 0x4b4000
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0x5b3868
call dword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
mov edi, eax
test edi, edi
je 0x4b401f
lock dec dword [0x5b3870]
jmp 0x4b4038
mov eax, dword [0x5b3878]
add eax, 8
push eax
push 4
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
mov ecx, dword [ebp + 0xc]
lea edx, [edi + 8]
push esi
push 0
lea eax, [ebp - 4]
mov dword [edx], ecx
mov ecx, dword [ebp + 0x10]
push eax
push edx
push 0x4b3f80
push dword [ebp + 8]
mov dword [edx + 4], ecx
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_RtlCreateUserThread]
mov esi, eax
push esi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
pop esi
js 0x4b4085
mov eax, dword [ebp - 4]
pop edi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x5b3870]
cmp eax, dword [0x5b3874]
push edi
lfence
jae 0x4b40b6
push 0x5b3868
jmp 0x4b40a0
call dword [sym.imp.ntdll.dll_RtlInterlockedPushEntrySList]
lock inc dword [0x5b3870]
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0xc
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4b40e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x5b3868
call dword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
mov esi, eax
test esi, esi
je 0x4b4102
lock dec dword [0x5b3870]
mov edi, edi
jmp 0x4b411b
mov eax, dword [0x5b3878]
add eax, 8
push eax
push 4
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
mov ecx, dword [ebp + 0xc]
lea edx, [esi + 8]
push 0
lea eax, [ebp - 4]
mov dword [edx], ecx
mov ecx, dword [ebp + 0x10]
push eax
push edx
push 0x4b3f80
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov dword [edx + 4], ecx
call dword [sym.imp.ntdll.dll_RtlCreateUserThread]
mov edi, eax
test edi, edi
js 0x4b415d
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [edx], ecx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x5b3870]
cmp eax, dword [0x5b3874]
push esi
lfence
jae 0x4b418a
push 0x5b3868
call dword [sym.imp.ntdll.dll_RtlInterlockedPushEntrySList]
lock inc dword [0x5b3870]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4b41c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x5b3868
call dword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
mov esi, eax
test esi, esi
je 0x4b41e2
lock dec dword [0x5b3870]
mov edi, edi
jmp 0x4b41fb
mov eax, dword [0x5b3878]
add eax, 8
push eax
push 4
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
mov ecx, dword [ebp + 8]
lea edx, [esi + 8]
push 0
lea eax, [ebp - 4]
mov dword [edx], ecx
mov ecx, dword [ebp + 0xc]
push eax
push edx
push 0x4b3f80
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov dword [edx + 4], ecx
call dword [sym.imp.ntdll.dll_RtlCreateUserThread]
mov edi, eax
test edi, edi
js 0x4b4243
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x5b3870]
cmp eax, dword [0x5b3874]
push esi
lfence
jae 0x4b4270
push 0x5b3868
call dword [sym.imp.ntdll.dll_RtlInterlockedPushEntrySList]
lock inc dword [0x5b3870]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4b82c0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
test esi, esi
jne 0x4b82d2
pop esi
pop ebp
ret 8
mov edx, dword [ebp + 8]
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
imul eax, eax, 0x1000193
sub esi, 1
jne 0x4b82d5
pop esi
pop ebp
ret 8

Function at 0x4b8300
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [esi]
test eax, eax
jne 0x4b8316
pop esi
pop ebx
pop ebp
ret 8
mov esi, dword ds:[esi + 4]
push edi
mov edi, eax
shr edi, 1
cmp byte [ebp + 0xc], bl
jne 0x4b8333
push eax
push esi
call sym.ProcessHacker.exe_PhHashBytes
pop edi
pop esi
pop ebx
pop ebp
ret 8
movzx eax, word ds:[esi]
lea esi, [esi + 2]
push eax
call dword [sym.imp.ntdll.dll_RtlUpcaseUnicodeChar]
movzx eax, ax
xor eax, ebx
imul ebx, eax, 0x1000193
sub edi, 1
jne 0x4b8333
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8