joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fb2b0
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64de48
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x6ddc7c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0
push str.CommonProgramW6432
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
test esi, esi
je 0x4fb425
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.004df0f0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
push eax
push str.CommonProgramW6432
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4fb425
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 2], 0
jne 0x4fb39e
lea eax, [ecx - 1]
push eax
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004c66f0
push eax
lea ecx, [ebp - 0x28]
call fcn.00457a10
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x4fb39e
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4fb394
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4fb4a3
push edx
push ecx
call fcn.005ff7fe
add esp, 8
push str.microsoft_sharedinkTabTip.exe
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.00468a80
mov esi, eax
add esp, 4
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4fb3e5
mov ecx, eax
call fcn.0044e3b0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x4fb41f
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4fb415
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4fb4a8
push edx
push ecx
call fcn.005ff7fe
add esp, 8
cmp dword [ebp - 0x18], 0
jne 0x4fb434
push 0x3e
push str.C:Program_FilesCommon_Filesmicrosoft_sharedinkTabTip.exe
lea ecx, [ebp - 0x28]
call fcn.0044e410
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0xa
cmovae eax, dword [ebp - 0x28]
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4fb489
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4fb47f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4fb4ad
push edx
push ecx
call fcn.005ff7fe
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005ff7bd
mov esp, ebp
pop ebp
ret
call fcn.0061f5be
call fcn.0061f5be
call fcn.0061f5be
int3
Function at 0x504480
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64e15e
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x6ddc7c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [ebp - 4], 1
mov eax, dword [esi + 0x10]
mov dword [esi], vtable.nbase::FrameworkThread.1.0
mov eax, dword [eax + 4]
mov dword [eax + esi + 0x10], vtable.nbase::FrameworkThread.0
mov word [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 3
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
lea ebx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x504534
sub eax, ebx
push eax
push dword [ebp + 8]
call fcn.0044e6d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x5045c0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x641900
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6ddc7c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x10]
mov dword [esi], vtable.nbase::FrameworkThread.1.0
mov eax, dword [eax + 4]
mov dword [eax + esi + 0x10], vtable.nbase::FrameworkThread.0
call fcn.005046e0
mov ecx, dword [esi + 0x44]
cmp ecx, 0x10
jb 0x504635
mov eax, dword [esi + 0x30]
inc ecx
cmp ecx, 0x1000
jb 0x50462b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5046d4
mov eax, edx
push ecx
push eax
call fcn.005ff7fe
add esp, 8
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0xf
mov byte [esi + 0x30], 0
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x504657
push eax
call ebx
mov edi, dword [esi + 0x24]
test edi, edi
je 0x504685
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x50467f
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x50467f
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 8]
mov dword [esi], vtable.nbase::Thread.0
test eax, eax
je 0x5046c2
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x5046af
mov eax, dword [esi + 8]
test eax, eax
je 0x5046c2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 8]
call ebx
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0061f5be
int3
Function at 0x5046e0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64e188
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x6ddc7c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x14], 0
je 0x504807
cmp byte [esi + 0x15], 0
jne 0x5047c6
cmp dword [esi + 0x1c], 0
je 0x5047c6
sub esp, 0xc
mov dword [ebp - 0x4c], 0x504830
mov eax, esp
mov dword [ebp - 0x48], 0
movq xmm0, qword [ebp - 0x4c]
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x58]
mov byte [esi + 0x15], 1
mov dword [ebp - 0x3c], esi
movq qword [eax], xmm0
mov dword [eax + 8], 0
call fcn.00504d40
mov eax, dword [ebp - 0x58]
add esp, 0xc
movq xmm0, qword [ebp - 0x50]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], vtable.._AV___Func_impl_no_alloc_V__WeakCallback_V___Binder_U_Unforced_std__AAP8FrameworkThread_nbase__AEXXZAAPAV34__std___nbase__X__V_std__.0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x1c]
push eax
call fcn.00506640
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x5047c6
mov edx, dword [ecx]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov eax, dword [esi + 8]
test eax, eax
je 0x504801
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x5047ea
mov eax, dword [esi + 8]
test eax, eax
je 0x504801
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov word [esi + 0x14], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005ff7bd
mov esp, ebp
pop ebp
ret
Function at 0x504c70
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x6eb918]
cmp eax, 2
je 0x504d00
push esi
push 0
push 1
push 0x6eb918
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x504cdc
push 4
call fcn.005ff7ce
mov esi, eax
add esp, 4
mov dword [ebp - 4], esi
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
mov edx, 0x6eb918
mov ecx, 0x504d10
mov dword [0x6eb91c], esi
call fcn.00508090
mov eax, dword [0x6eb91c]
mov dword [0x6eb918], 2
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 2
je 0x504cff
mov eax, dword [0x6eb918]
cmp eax, 2
je 0x504cff
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call esi
mov eax, dword [0x6eb918]
cmp eax, 2
jne 0x504cf1
pop esi
mov eax, dword [0x6eb91c]
mov esp, ebp
pop ebp
ret
Function at 0x507210
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x6eb920]
cmp eax, 2
je 0x5072a0
push esi
push 0
push 1
push 0x6eb920
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x50727c
push 4
call fcn.005ff7ce
mov esi, eax
add esp, 4
mov dword [ebp - 4], esi
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
mov edx, 0x6eb920
mov ecx, 0x504d10
mov dword [0x6eb924], esi
call fcn.00508090
mov eax, dword [0x6eb924]
mov dword [0x6eb920], 2
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 2
je 0x50729f
mov eax, dword [0x6eb920]
cmp eax, 2
je 0x50729f
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call esi
mov eax, dword [0x6eb920]
cmp eax, 2
jne 0x507291
pop esi
mov eax, dword [0x6eb924]
mov esp, ebp
pop ebp
ret

Function at 0x507f30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov edx, dword [ebp + 8]
push ebx
push esi
mov ebx, ecx
xor ecx, ecx
lea eax, [edx - 1]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], eax
sar eax, 1
push edi
xor edi, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
test eax, eax
jle 0x507ff6
lea esi, [edi + edi]
lea eax, [esi*8]
sub eax, esi
lea edi, [esi + 2]
mov edx, dword [ebx + eax*8 + 0x70]
lea ecx, [ebx + eax*8]
mov ebx, dword [ecx + 0x3c]
mov eax, dword [ecx + 0x38]
cmp dword [ecx + 0x74], ebx
jg 0x507f9c
jl 0x507f9f
cmp edx, eax
ja 0x507f9c
cmp dword [ecx + 0x74], ebx
jl 0x507f9f
jg 0x507f94
cmp edx, eax
jb 0x507f9f
mov eax, dword [ecx + 0x78]
cmp eax, dword [ecx + 0x40]
jle 0x507f9f
lea edi, [esi + 1]
mov ebx, dword [esp + 0x14]
lea eax, [edi*8]
mov ecx, dword [esp + 0x10]
sub eax, edi
lea esi, [ebx + eax*8]
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [esi + 4]
lea edx, [ebx + eax*8]
mov eax, dword [esi]
mov dword [edx], eax
mov dword [edx + 4], ecx
lea ecx, [edx + 0x10]
mov eax, dword [esi + 8]
mov dword [edx + 8], eax
mov al, byte [esi + 0xc]
mov byte [edx + 0xc], al
lea eax, [esi + 0x10]
push eax
call fcn.004c1de0
mov eax, dword [esp + 0x18]
mov ecx, edi
mov dword [esp + 0x10], ecx
cmp edi, eax
jl 0x507f62
mov edx, dword [ebp + 8]
cmp edi, eax
jne 0x50803e
test dl, 1
jne 0x50803e
lea eax, [edx*8]
sub eax, edx
lea esi, [ebx + eax*8]
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [esi - 0x34]
lea edx, [ebx + eax*8]
mov eax, dword [esi - 0x38]
mov dword [edx], eax
mov dword [edx + 4], ecx
lea ecx, [edx + 0x10]
mov eax, dword [esi - 0x30]
mov dword [edx + 8], eax
mov al, byte [esi - 0x2c]
mov byte [edx + 0xc], al
lea eax, [esi - 0x28]
push eax
call fcn.004c1de0
mov ecx, dword [esp + 0x1c]
push dword [ebp + 0x10]
mov edx, ecx
push dword [ebp + 0xc]
push ecx
mov ecx, ebx
call fcn.00507b80
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5081f0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 8]
mov dword [esi], vtable.nbase::Thread.0
test eax, eax
je 0x508237
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x508220
mov eax, dword [esi + 8]
test eax, eax
je 0x508237
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
test byte [ebp + 8], 1
je 0x508248
push 0x10
push esi
call fcn.005ff7fe
add esp, 8
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x5082a0
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov esi, ecx
lea edi, [esi + 4]
push edi
push 0
push esi
push 0x508360
push 0
push 0
call fcn.00625a58
mov edx, eax
add esp, 0x18
mov dword [esi + 8], edx
cmp edx, 2
jae 0x5082d5
mov dword [esi + 8], 0
xor edx, edx
mov dword [edi], 0
mov ecx, dword [esi + 0xc]
test ecx, ecx
jle 0x50834d
or eax, 0xffffffff
cmp ecx, 1
jne 0x5082fd
mov eax, 0xfffffffe
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, dword [esi + 8]
cmp edx, 1
pop edi
seta al
pop esi
ret
cmp ecx, 2
jne 0x508319
or eax, 0xffffffff
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, dword [esi + 8]
cmp edx, 1
pop edi
seta al
pop esi
ret
cmp ecx, 3
jne 0x508337
mov eax, 2
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, dword [esi + 8]
cmp edx, 1
pop edi
seta al
pop esi
ret
cmp ecx, 4
mov edi, 0xf
cmove eax, edi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, dword [esi + 8]
cmp edx, 1
pop edi
seta al
pop esi
ret

Function at 0x508e80
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, ecx
call fcn.00507210
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 1
cmp byte [eax + 0x14], 0
lea eax, [ebp - 0x1c]
je 0x508ed5
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
push 0xf
push 0xf
push 0
push eax
call edi
test eax, eax
jne 0x508ed1
push 1
push 0x113
push 0x113
push eax
lea eax, [ebp - 0x1c]
push eax
call edi
test eax, eax
jne 0x508ed1
xor bl, bl
jmp 0x508ee7
mov bl, 1
jmp 0x508ee7
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
setne bl
push 0
lea edi, [esi + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test bl, bl
jne 0x508f00
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
cmp eax, vtable.nbase::WinUIMessagePump.0
jne 0x508f4d
push 1
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x508f3b
push eax
push esi
push 0x401
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.00508c70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.00508c70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call edx
jmp 0x508f3b
Function at 0x509810
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64e868
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6ddc7c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0xc]
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp dword [edi + 0x24], 0
je 0x509868
call fcn.00507210
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, dword [edi + 0x24]
jne 0x509868
mov bl, 1
jmp 0x50986a
xor bl, bl
test esi, esi
je 0x509875
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5098c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64e8a0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x6ddc7c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0xc]
xor bl, bl
push esi
mov dword [ebp - 0x4c], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp dword [edi + 0x24], 0
je 0x50998e
call fcn.00507210
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, dword [edi + 0x24]
je 0x50998e
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.00450c60
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x509947
lea ecx, [ebx + 8]
lock inc dword [ecx]
or eax, 0xffffffff
lock xadd dword [ecx], eax
jne 0x509947
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], vtable.._AV___Func_impl_no_alloc_V__WeakCallback_V___Binder_U_Unforced_std__AAP8MessageLoopProxy_nbase__BEXXZAAPBV34__std___nbase__X__V_std__.0
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], 0x5099d0
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
mov ecx, dword [edi + 0x24]
push eax
call fcn.00506640
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x50998c
mov edx, dword [ecx]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov bl, 1
test esi, esi
je 0x509999
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
jne 0x5099a5
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005ff7bd
mov esp, ebp
pop ebp
ret
Function at 0x517570
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x51761f
push esi
call fcn.0052c790
add esp, 4
test al, al
jne 0x51761f
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x517597
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.00537050
add esp, 0xc
test eax, eax
je 0x5175cb
sub eax, esi
push eax
push 0x2e
push esi
call fcn.00537050
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x5175cd
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
lea ebx, [esi + edi]
mov edi, 0x1505
cmp esi, ebx
jae 0x5175fe
nop dword [eax]
mov al, byte [esi]
push eax
call fcn.00527d80
movsx ecx, al
inc esi
mov eax, edi
add esp, 4
shl eax, 5
add eax, edi
xor ecx, eax
mov edi, ecx
cmp esi, ebx
jb 0x5175e0
mov eax, 0x4104105
mov esi, edi
mul edi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 5
mov ecx, esi
shl ecx, 6
sub ecx, esi
sub edi, ecx
mov eax, edi
pop edi
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x523440
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp byte [esi + 0x6cb], 0
je 0x5234dd
cmp dword [esi + 0x1a4], 0
je 0x523497
push esi
call fcn.005125e0
push 1
push esi
mov byte [esp + 0x14], al
call fcn.00512850
push dword [esi + 0x154]
mov eax, dword [esi + 0x1a4]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call eax
push dword [esp + 0x28]
push esi
call fcn.00512850
add esp, 0x28
pop esi
ret
mov ecx, dword [esp + 0xc]
mov eax, ecx
sub eax, 0
je 0x5234ac
sub eax, 1
je 0x5234ac
sub eax, 1
jne 0x5234dd
push dword [esi + 0x150]
lea eax, [ecx*2 + 0x654138]
push 1
add eax, ecx
push 2
push eax
call fcn.0061b613
push dword [esi + 0x150]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.0061b613
add esp, 0x20
pop esi
ret
Function at 0x525fc0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x654564
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x525fda
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x654580
push esi
call fcn.00627970
add esp, 8
test eax, eax
je 0x526022
test ebp, ebp
je 0x526013
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x526048
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x526048
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x5260ff
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x526065
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x5260f5
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x5260f5
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x526097
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5260b0
sub ecx, edx
sub ecx, esi
add ecx, ebx
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x5260c0
test ebp, ebp
je 0x5260ec
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x6d9004]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x6d9004]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret