joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5baa30
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
lea esi, [eax - 0x10000]
movzx eax, si
push edi
test eax, eax
je 0x5baa48
sub esi, eax
cmp esi, dword [ebp + 8]
jbe 0x5baad5
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea ecx, [ecx]
lea eax, [esi - 0x50000000]
cmp eax, 0x30000000
ja 0x5baa74
mov esi, 0x4fff0000
jmp 0x5baad0
xor eax, eax
push 0x1c
lea ecx, [ebp - 0x1c]
push ecx
push esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
call ebx
test eax, eax
je 0x5baad5
mov eax, 0x10000
cmp dword [ebp - 0xc], eax
jne 0x5baabe
cmp dword [ebp - 0x10], eax
jb 0x5baabe
push 0x40
push 0x3000
push eax
push esi
call edi
test eax, eax
jne 0x5baad7
sub esi, 0x10000
jmp 0x5baad0
mov esi, dword [ebp - 0x18]
add esi, 0xffff0000
movzx eax, si
test eax, eax
je 0x5baad0
sub esi, eax
cmp esi, dword [ebp + 8]
ja 0x5baa60
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5baae0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebx
push esi
mov esi, eax
push edi
lea edi, [esi - 0x7ff80000]
cmp esi, 0x7ff80000
ja 0x5baaf8
mov edi, 0x10000
lea ebx, [esi + 0x7ff80000]
cmp esi, 0x80000000
jb 0x5bab0b
mov ebx, 0xfff80000
mov eax, dword [0x8d4434]
mov edx, dword [0x8d4430]
test eax, eax
jne 0x5bab25
test edx, edx
je 0x5bab38
mov eax, edx
mov dword [0x8d4434], eax
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x5bab38
cmp ecx, edi
jb 0x5bab38
cmp ecx, ebx
jbe 0x5bac37
mov eax, edx
mov dword [0x8d4434], eax
test edx, edx
je 0x5bab66
test eax, eax
je 0x5bab5a
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x5bab5a
cmp ecx, edi
jb 0x5bab5a
cmp ecx, ebx
jbe 0x5bac32
mov eax, dword [eax + 4]
test eax, eax
jne 0x5bab47
mov dword [0x8d4434], eax
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, 0x40000000
jbe 0x5bab90
lea eax, [esi - 0x40000000]
push edi
call fcn.005baa30
add esp, 4
test eax, eax
jne 0x5babf9
cmp esi, 0x40000000
jae 0x5baba5
push ebx
lea eax, [esi + 0x40000000]
call fcn.005ba970
add esp, 4
test eax, eax
jne 0x5babf9
cmp esi, 0x40000000
jbe 0x5babc6
push esi
lea eax, [esi - 0x40000000]
call fcn.005ba970
add esp, 4
test eax, eax
jne 0x5babf9
cmp esi, 0x40000000
jae 0x5babdb
lea eax, [esi + 0x40000000]
push esi
call fcn.005baa30
add esp, 4
test eax, eax
jne 0x5babf9
push edi
mov eax, esi
call fcn.005baa30
add esp, 4
test eax, eax
jne 0x5babf9
push ebx
mov eax, esi
call fcn.005ba970
add esp, 4
test eax, eax
je 0x5bac5e
xor edx, edx
mov dword [eax], 0x52727464
mov dword [eax + 8], edx
mov ecx, dword [0x8d4430]
mov dword [eax + 4], ecx
mov dword [0x8d4434], eax
mov dword [0x8d4430], eax
lea ecx, [eax + 0xffa8]
mov esi, 0x38b
mov dword [ecx + 0x40], edx
mov edx, ecx
sub ecx, 0x48
dec esi
jne 0x5bac22
mov dword [eax + 8], edx
jmp 0x5bac37
mov dword [0x8d4434], eax
mov esi, dword [eax + 8]
cmp esi, edi
jb 0x5bac5e
cmp esi, ebx
ja 0x5bac5e
mov edx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [eax + 8], edx
call fcn.00802690
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x5baca0
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov eax, dword [0x8d4430]
push ebx
mov ebx, 0x8d4430
test eax, eax
je 0x5bad0b
push esi
push edi
cmp dword [eax], 0x52727464
jne 0x5bad00
lea edi, [eax + 0x10000]
xor edx, edx
lea esi, [eax + 0x88]
mov ecx, dword [esi]
test ecx, ecx
je 0x5bacd5
cmp ecx, eax
jb 0x5bad00
cmp ecx, edi
jae 0x5bad00
inc edx
add esi, 0x48
cmp edx, 0x38d
jb 0x5bacc7
mov ecx, dword [eax + 4]
push 0x8000
push 0
push eax
mov dword [ebx], ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [0x8d4434], 0
jmp 0x5bad03
lea ebx, [eax + 4]
mov eax, dword [ebx]
test eax, eax
jne 0x5bacb1
pop edi
pop esi
pop ebx
ret
Function at 0x5bad10
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
call fcn.00545060
xor ebx, ebx
cmp dword [0x8d4440], ebx
je 0x5bad2e
mov eax, 0x10dd
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x8d4440
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x5bad24
push esi
mov esi, dword [0x8d4430]
mov dword [0x8d4450], ebx
mov dword [0x8d444c], ebx
mov dword [0x8d4444], ebx
mov dword [0x8d4448], ebx
cmp esi, ebx
je 0x5bad86
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10000
push esi
call edi
mov esi, dword [esi + 4]
cmp esi, ebx
jne 0x5bad70
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5bad90
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x8d4440], eax
je 0x5badab
mov eax, 0x10dd
mov esp, ebp
pop ebp
ret
push ebx
push esi
mov esi, dword [0x8d4450]
push edi
test esi, esi
je 0x5bae1d
jmp 0x5badc0
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
lea eax, [ebp - 4]
push eax
movzx eax, byte [edx + 0x36]
push ecx
mov ecx, dword [esi + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], 0
jne 0x5bae0c
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x5bae0c
push 0x48
push 0
mov edi, ebx
push ebx
and edi, 0xffff0000
call fcn.00802690
mov edx, dword [edi + 8]
mov dword [ebx + 0x40], edx
mov dword [edi + 8], ebx
add esp, 0xc
mov dword [esi + 0x10], 0
mov edi, dword [esi]
push esi
call fcn.007c8563
add esp, 4
mov esi, edi
test edi, edi
jne 0x5badc0
mov dword [0x8d4450], 0
call fcn.005ba920
mov esi, dword [0x8d444c]
test esi, esi
je 0x5bae57
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
lea esp, [esp]
mov eax, dword [esi + 4]
push eax
call ebx
mov edi, dword [esi]
push esi
call fcn.007c8563
add esp, 4
mov esi, edi
test edi, edi
jne 0x5bae40
pop edi
xor eax, eax
pop esi
mov dword [0x8d444c], eax
mov dword [0x8d4440], eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5bb1e0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x8d4444]
test eax, eax
jne 0x5bb260
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [ebp + 8]
cmp edi, eax
jne 0x5bb201
xor eax, eax
pop edi
pop ebp
ret 4
push esi
push 8
call fcn.007c8529
mov esi, eax
add esp, 4
test esi, esi
jne 0x5bb217
lea edi, [eax + 8]
jmp 0x5bb234
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x5bb24c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.007c8563
add esp, 4
pop esi
mov dword [0x8d4444], edi
mov eax, edi
mov dword [0x8d4448], 0
pop edi
pop ebp
ret 4
mov eax, dword [0x8d444c]
mov dword [esi + 4], edi
mov dword [esi], eax
mov dword [0x8d444c], esi
pop esi
xor eax, eax
pop edi
pop ebp
ret 4
Function at 0x5bb600
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x89adf8
push 0x801ff0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x8ce6f4]
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 eax, dword [ebp + 8]
test eax, eax
mov esi, 0x10000
je 0x5bb645
lea esi, [eax + 0x10000]
xor eax, 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
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea edi, [eax - 2]
nop
push 0x1c
lea eax, [ebp - 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x5bb685
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
cmp dword [ebp - 0x24], 0x1000
jne 0x5bb6ed
mov eax, dword [ebp - 0x20]
cmp al, 1
je 0x5bb6ed
test eax, 0x100
jne 0x5bb6ed
mov dword [ebp - 4], 0
mov ecx, 0x5a4d
cmp word [esi], cx
jne 0x5bb6ea
mov eax, dword [esi + 0x3c]
cmp eax, dword [ebp - 0x28]
ja 0x5bb6ea
cmp eax, 0x40
jb 0x5bb6ea
cmp dword [eax + esi], 0x4550
jne 0x5bb6ea
mov dword [ebp - 4], edi
mov eax, esi
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
mov dword [ebp - 4], edi
mov esi, dword [ebp - 0x28]
add esi, dword [ebp - 0x34]
jmp 0x5bb660
Function at 0x5bb700
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x89ae18
push 0x801ff0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x8ce6f4]
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 eax, dword [ebp + 8]
mov ecx, eax
mov dword [ebp + 8], ecx
xor esi, esi
cmp eax, esi
jne 0x5bb74d
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp + 8], eax
mov ecx, eax
mov dword [ebp - 4], esi
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x5bb764
push 0xc1
jmp 0x5bb841
mov edx, dword [ecx + 0x3c]
add edx, ecx
mov dword [ebp - 0x20], edx
cmp dword [edx], 0x4550
je 0x5bb77e
push 0xbf
jmp 0x5bb841
movzx ecx, word [edx + 0x14]
cmp cx, si
je 0x5bb83c
lea eax, [ecx + edx + 0x18]
mov dword [ebp - 0x1c], esi
movzx edx, word [edx + 6]
cmp esi, edx
jae 0x5bb83c
lea ecx, [esi + esi*4]
lea edi, [eax + ecx*8]
mov edx, 0x42a358
mov ecx, edi
jmp 0x5bb7b0
mov bl, byte [ecx]
cmp bl, byte [edx]
jne 0x5bb7d0
test bl, bl
je 0x5bb7cc
mov bl, byte [ecx + 1]
cmp bl, byte [edx + 1]
jne 0x5bb7d0
add ecx, 2
add edx, 2
test bl, bl
jne 0x5bb7b0
xor ecx, ecx
jmp 0x5bb7d5
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x5bb82a
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x5bb83c
cmp dword [edi + 0x10], 0
je 0x5bb83c
mov edx, dword [ebp + 8]
lea esi, [ecx + edx]
mov eax, dword [esi]
cmp eax, 0x40
jb 0x5bb83c
cmp dword [esi + 4], 0x727444
jne 0x5bb83c
cmp dword [esi + 8], 0
jne 0x5bb805
mov dword [esi + 8], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
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
inc esi
mov edx, dword [ebp - 0x20]
jmp 0x5bb78f
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
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 0x5bba20
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 0x678
jne 0x5bbb1f
cmp dword [ebp + 0xc], 0x678
jb 0x5bbb1f
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x10]
push ebx
or eax, 0xffffffff
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 8], eax
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], eax
lea eax, [ebp - 8]
push eax
push 0x40
push ecx
push edx
xor ebx, ebx
call edi
test eax, eax
je 0x5bbb14
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x14]
lea eax, [ebp + 0xc]
push eax
push 0x40
push ecx
push edx
call edi
test eax, eax
je 0x5bbb02
mov eax, dword [esi + 4]
mov edx, dword [esi + 0x10]
push eax
lea ecx, [esi + 0x1c]
push ecx
push edx
call fcn.008030c0
mov eax, dword [esi + 8]
mov edx, dword [esi + 0x14]
push eax
lea ecx, [esi + 0x5c]
push ecx
push edx
call fcn.008030c0
mov eax, dword [esi + 0x18]
add esp, 0x18
test eax, eax
je 0x5bbaeb
mov edx, dword [esi + 0xc]
lea ecx, [ebp + 8]
push ecx
push 0x40
push edx
push eax
call edi
test eax, eax
je 0x5bbaf0
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x18]
push eax
lea ecx, [esi + 0x664]
push ecx
push edx
call fcn.008030c0
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 0xc]
add esp, 0xc
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 0x18]
push ecx
push edx
push eax
call edi
mov ebx, 1
mov edx, dword [ebp + 0xc]
mov eax, dword [esi + 8]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [esi + 0x14]
push edx
push eax
push ecx
call edi
mov eax, dword [ebp - 8]
mov ecx, dword [esi + 4]
lea edx, [ebp - 4]
push edx
mov edx, dword [esi + 0x10]
push eax
push ecx
push edx
call edi
pop edi
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x5bc9f0
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
test ebx, ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
je 0x5bca03
mov dword [ebx], 0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x5bca11
mov dword [eax], 0
lea eax, [esp + 0xc]
push eax
push ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x5bca77
push edi
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
push esi
push 0
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x5bca6f
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push edx
push 0x42b4cc
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x5bca6f
test ebx, ebx
mov ecx, dword [esp + 0xc]
je 0x5bca62
mov eax, dword [ecx + 8]
mov dword [ebx], eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x5bca6f
mov ecx, dword [ecx + 0xc]
mov dword [eax], ecx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x5bcbd0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x100
push esi
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0xc]
push 0x42b52c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
test edi, edi
je 0x5bcc10
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x8d4464]
test eax, eax
jle 0x5bcc21
inc eax
mov dword [0x8d4464], eax
jmp 0x5bcc7a
push 0x42b4d0
call fcn.005bd250
add esp, 4
test eax, eax
mov dword [0x8d4468], eax
jne 0x5bcc98
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xfffff7d3
mov eax, dword [0x8d4468]
test eax, eax
je 0x5bcc5c
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x8d4468], 0
mov eax, 0x5bc9e0
mov dword [0x8bb354], 0x5bcb70
mov dword [0x8bb364], eax
mov dword [0x8bb368], eax
mov dword [0x8bb360], eax
test edi, edi
je 0x5bcc8c
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ax, si
pop esi
add esp, 0x100
ret
call fcn.005bcb70
mov esi, eax
test si, si
jne 0x5bcc42
mov edx, dword [esp + 0x10c]
push edx
call fcn.005bc9b0
add esp, 4
mov esi, eax
test si, si
jne 0x5bcc42
inc dword [0x8d4464]
jmp 0x5bcc7a

Function at 0x5bccd0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x100
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 8]
push 0x42b52c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x5bcd0f
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x8d4464]
test eax, eax
jg 0x5bcd24
mov dword [0x8d4464], 0
jmp 0x5bcd5e
dec eax
test eax, eax
mov dword [0x8d4464], eax
jg 0x5bcd5e
call fcn.005bc9c0
mov edx, dword [0x8d4468]
mov eax, 0x5bc9e0
push edx
mov dword [0x8bb354], 0x5bcb70
mov dword [0x8bb364], eax
mov dword [0x8bb368], eax
mov dword [0x8bb360], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
je 0x5bcd70
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
add esp, 0x100
ret
Function at 0x5bcec0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x14]
lea ecx, [esp + 4]
push ecx
push 1
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 0
mov dword [esp + 0x2c], eax
mov byte [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5bcf5d
mov eax, dword [esp + 4]
test eax, eax
je 0x5bcf6c
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5bcf5d
cmp byte [esi], 0
je 0x5bcf5d
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5bcf22
sub eax, edx
cmp byte [eax + esi - 1], 0x5c
je 0x5bcf5d
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5bcf37
sub eax, edx
cmp byte [eax + esi - 1], 0x2f
je 0x5bcf5d
dec esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x5bcf48
mov ax, word [0x42b4cc]
push edi
mov edi, esi
mov word [edi], ax
pop edi
mov eax, dword [esp + 4]
test eax, eax
je 0x5bcf6c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
ret
Function at 0x5bcf70
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
xor eax, eax
test esi, esi
je 0x5bd0dd
mov byte [esi], al
mov eax, dword [esp + 0x114]
test eax, eax
je 0x5bcf9b
mov dword [eax], 0
push ebx
push edi
push 0x42b4d0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov ebx, dword [esp + 0x118]
je 0x5bcfff
push 0x104
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x5bcfff
lea eax, [esp + 0xc]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5bcfd0
sub eax, edx
lea edi, [eax - 0xd]
test edi, edi
jbe 0x5bcfff
lea edx, [edi + 1]
cmp ebx, edx
jbe 0x5bcfff
push edi
lea eax, [esp + 0x10]
push eax
push esi
call fcn.0080ac00
add esp, 0xc
mov byte [edi + esi], 0
jmp 0x5bd088
cmp byte [esi], 0
jne 0x5bd08d
push ebx
push esi
push 0x42b584
push 0x42b55c
call fcn.005bcec0
mov al, byte [esi]
add esp, 0x10
test al, al
je 0x5bd031
push 0
push esi
call fcn.0080abe1
add esp, 8
test eax, eax
je 0x5bd034
mov byte [esi], 0
cmp byte [esi], 0
jne 0x5bd08d
push ebx
push esi
push 0x42b544
push 0x42b55c
call fcn.005bcec0
mov al, byte [esi]
add esp, 0x10
test al, al
je 0x5bd062
push 0
push esi
call fcn.0080abe1
add esp, 8
test eax, eax
je 0x5bd065
mov byte [esi], 0
cmp byte [esi], 0
jne 0x5bd08d
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x5bd085
push 0
push esi
call fcn.0080abe1
add esp, 8
test eax, eax
je 0x5bd088
mov byte [esi], 0
cmp byte [esi], 0
je 0x5bd0d2
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5bd092
sub eax, edx
cmp byte [eax + esi - 1], 0x5c
je 0x5bd0d2
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5bd0a7
sub eax, edx
cmp byte [eax + esi - 1], 0x2f
je 0x5bd0d2
mov edi, esi
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x5bd0c0
mov cx, word [0x42b4cc]
mov word [edi], cx
mov cl, byte [esi]
xor eax, eax
test cl, cl
pop edi
setne al
pop ebx
pop esi
add esp, 0x104
ret
Function at 0x5bd0f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push ebp
mov ebp, dword [esp + 0x210]
push esi
mov esi, dword [esp + 0x218]
push esi
push ebp
push 0x42b59c
push 0x42b55c
call fcn.005bcec0
mov al, byte [ebp]
add esp, 0x10
test al, al
jne 0x5bd22c
add esi, 0xfffffff6
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0
lea ecx, [esp + 0x110]
push esi
push ecx
call fcn.005bcf70
mov al, byte [esp + 0x118]
add esp, 0xc
test al, al
je 0x5bd22c
lea eax, [esp + 8]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5bd160
sub eax, edx
cmp byte [esp + eax + 7], 0x5c
push edi
je 0x5bd1a2
lea eax, [esp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5bd178
sub eax, edx
cmp byte [esp + eax + 0xb], 0x2f
je 0x5bd1a2
lea edi, [esp + 0xc]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x5bd190
mov dx, word [0x42b4cc]
mov word [edi], dx
lea eax, [esp + 0x110]
mov edx, ebp
mov ecx, eax
sub edx, ecx
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x5bd1b0
lea esi, [esp + 0x110]
lea eax, [esp + 0xc]
push ebx
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x5bd1ee
test cl, cl
je 0x5bd1ea
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x5bd1ee
add eax, 2
add esi, 2
test cl, cl
jne 0x5bd1c6
xor eax, eax
jmp 0x5bd1f3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
pop ebx
jne 0x5bd22b
mov edi, ebp
dec edi
jmp 0x5bd200
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x5bd200
mov eax, dword [0x42b590]
mov dword [edi], eax
mov ecx, dword [0x42b594]
mov dword [edi + 4], ecx
mov dx, word [0x42b598]
mov word [edi + 8], dx
mov al, byte [0x42b59a]
mov byte [edi + 0xa], al
pop edi
mov eax, ebp
pop esi
lea edx, [eax + 1]
pop ebp
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5bd233
sub eax, edx
add esp, 0x208
ret

Function at 0x5bd410
Capabilities:
Encode data using xor

Disassembly:
cmp eax, edx
jne 0x5bd434
lea ecx, [edx + edi - 1]
cmp eax, ecx
jae 0x5bd44c
lea esp, [esp]
movzx edx, byte [ecx]
xor byte [eax], dl
mov dl, byte [eax]
xor byte [ecx], dl
mov dl, byte [ecx]
xor byte [eax], dl
inc eax
dec ecx
cmp eax, ecx
jb 0x5bd420
ret
xor ecx, ecx
test edi, edi
jle 0x5bd44c
push esi
lea esi, [edx + edi - 1]
nop
mov dl, byte [esi]
mov byte [ecx + eax], dl
inc ecx
dec esi
cmp ecx, edi
jl 0x5bd440
pop esi
ret
Function at 0x5bdae0
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x875da8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8ce6f4]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, ecx
xor esi, esi
mov dword [esp + 0x14], esi
mov edi, dword [esp + 0x2c]
lea eax, [edi - 1]
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], eax
cmp eax, 0x7f
ja case.0x5bdb2e.3
movzx eax, byte [eax + 0x5bdce4]
jmp dword [eax*4 + 0x5bdcd0]
push 0x24
call fcn.007c8558
mov ebx, eax
add esp, 4
mov dword [ebx], 0x24
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x14], esi
mov ecx, dword [ebp + 8]
push esi
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], esi
mov eax, dword [ebx]
lea edx, [esp + 0x1c]
push edx
push eax
push ebx
push eax
mov eax, dword [ebp + 4]
push ebx
push 0x335004
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x5bdc06
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [esp + 0x28], 0xffffffff
call fcn.007c8563
add esp, 4
xor al, al
jmp 0x5bdcba
push 0x20
call fcn.007c8558
mov ebx, eax
add esp, 4
mov dword [ebx], 0x20
jmp 0x5bdb47
push 0x818
call fcn.007c8558
mov ebx, eax
add esp, 4
mov dword [ebx], 0x818
jmp 0x5bdb47
push 0x20
call fcn.007c8558
mov ebx, eax
mov eax, dword [esp + 0x38]
cdq
shld edx, eax, 0xb
add esp, 4
mov dword [ebx], 0x20
shl eax, 0xb
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], edx
jmp 0x5bdb4d
push esi
mov dword [esp + 0x28], 0xffffffff
call fcn.007c8563
add esp, 4
xor al, al
jmp 0x5bdcba
mov ecx, dword [esp + 0x2c]
movzx edx, byte [ecx + 0x5bdd78]
jmp dword [edx*4 + 0x5bdd64]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0xc