joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fd10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fa416
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x53f300]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x40fdbc
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x40fdbc
call fcn.0040eba0
mov edi, eax
jmp 0x40fedb
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40fddf
call fcn.0040eba0
jmp 0x40fece
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x40fdfd
call fcn.0040eba0
jmp 0x40fece
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x40fe1e
mov edi, 0x8007000e
jmp 0x40fed0
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x40ff14
jb 0x40fe3c
cmp eax, 0xffffffff
ja 0x40ff14
cmp eax, 0x400
jbe 0x40fe51
push eax
lea ecx, [ebp - 0x418]
call fcn.0040e870
jmp 0x40fe77
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x40fe77
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x40fe8e
mov edi, 0x8007000e
jmp 0x40fed0
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x40feae
call fcn.0040eba0
jmp 0x40fece
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.0040fb70
mov edi, eax
test esi, esi
je 0x40fedb
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40fef4
lea ecx, [ebp - 0x418]
call fcn.0040ef70
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045992a
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.0040b8d0
int3
Function at 0x411740
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4117b1
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x4117b1
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4117b1
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4117b1
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4117ab
push esi
push ebx
push edi
call fcn.0049b580
add esp, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4117ab
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420110
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb716
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x53f300]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
lea eax, [ebx + 4]
mov dword [ebx], vtable.CClientMgr.0
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea esi, [ebx + 0x1c]
mov dword [ebp - 4], 0
mov ecx, esi
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004226b0
mov dword [esi], eax
lea esi, [ebx + 0x30]
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x2c], 0
push 8
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.00459973
mov dword [esi], eax
add esp, 4
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
lea eax, [ebx + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4232f0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fbcb3
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x53f300]
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
mov dword [ebp - 0x44], edi
mov eax, dword [ebp + 8]
lea esi, [edi + 4]
mov ebx, dword [ebp + 0x20]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x18]
push 1
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x1c]
push esi
mov dword [ebp - 0x54], eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x4c]
add edi, 0x18
mov dword [eax + 0x20], 0
mov dword [edi], 0xc
mov dword [eax + 0x1c], esi
call fcn.0040b730
push dword [ebp - 0x50]
lea eax, [ebp - 0x4c]
mov dword [ebp - 4], 0
push 0x50d58c
push eax
call fcn.0040ba70
mov esi, dword [ebp - 0x4c]
add esp, 0xc
push edi
push ebx
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
push dword [ebp - 0x48]
push esi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov ecx, dword [ebp - 0x44]
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x423491
call fcn.00452a20
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x423491
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x77
push str.d:jenkins.jenkinsworkspacehardware_infocomputerzservicecomputerz_servicecomputerzservice_namedpipe_namedpipe.cpp
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.004099e0
push 3
push 0x50cc70
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.004099e0
mov byte [ebp - 4], 2
call fcn.00452a20
mov ebx, eax
lea ecx, [ebp - 0xf8]
push 0x1e
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040d220
mov edi, eax
push str.CNamedPipe::Create___failed__GetLastError_returned
push edi
mov byte [ebp - 4], 3
call fcn.00413970
add esp, 8
mov ecx, edi
push dword [ebp - 0x48]
call fcn.0041ba30
mov eax, dword [ebx]
mov ecx, ebx
push edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0xf8]
call fcn.0040de00
lea ecx, [ebp - 0x28]
call fcn.00406380
lea ecx, [ebp - 0x40]
call fcn.00406380
mov eax, dword [ebp - 0x44]
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
cmp dword [eax], 0xffffffff
setne bl
add esi, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4234bb
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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.0045992a
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x428700
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x568a70], 0
push ebx
push esi
push edi
jne 0x42879b
mov edi, dword [0x53f128]
xor ebx, ebx
mov byte [0x568a70], 1
mov eax, ebx
xor ecx, ecx
shl eax, 0x18
mov esi, ebx
test eax, eax
cmovs ecx, edi
shl esi, 0x19
mov eax, esi
xor eax, ecx
lea edx, [ecx + ecx]
jge 0x42873e
xor edx, edi
lea eax, [esi + esi]
mov ecx, eax
lea esi, [edx + edx]
xor ecx, edx
jge 0x42874c
xor esi, edi
add eax, eax
lea edx, [esi + esi]
mov ecx, eax
xor ecx, esi
jge 0x428759
xor edx, edi
add eax, eax
lea esi, [edx + edx]
mov ecx, eax
xor ecx, edx
jge 0x428766
xor esi, edi
add eax, eax
lea edx, [esi + esi]
mov ecx, eax
xor ecx, esi
jge 0x428773
xor edx, edi
add eax, eax
lea esi, [edx + edx]
mov ecx, eax
xor ecx, edx
jge 0x428780
xor esi, edi
add eax, eax
lea ecx, [esi + esi]
xor eax, esi
jge 0x42878b
xor ecx, edi
mov dword [ebx*4 + 0x568670], ecx
inc ebx
cmp ebx, 0x100
jb 0x428722
mov edi, dword [ebp + 0xc]
xor edx, edx
xor esi, esi
test edi, edi
je 0x4287cd
mov ebx, dword [ebp + 8]
nop dword [eax]
movzx ecx, byte [esi + ebx]
mov eax, edx
shr eax, 0x18
inc esi
xor ecx, eax
shl edx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x568670]
cmp esi, edi
jb 0x4287b0
pop edi
pop esi
mov eax, edx
pop ebx
pop ebp
ret
Function at 0x4287e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, 0x40
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
add esi, esi
mov eax, esi
mov ecx, esi
sar eax, 8
xor eax, esi
sar eax, 8
xor eax, esi
shr eax, 4
xor eax, esi
or esi, 1
and eax, 8
test al, al
cmove esi, ecx
sub edx, 1
jne 0x4287f1
push dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov ecx, ebx
call fcn.00424c70
mov eax, dword [ebx + 0x10]
xor edi, edi
mov dword [ebp - 8], eax
test eax, eax
je 0x4289ea
mov edx, esi
add esi, esi
shr edx, 0x1f
mov eax, esi
sar eax, 8
add dl, dl
xor eax, esi
mov ecx, esi
sar eax, 8
or ecx, 1
xor eax, esi
shr eax, 4
xor eax, esi
and eax, 8
test al, al
mov al, dl
cmove ecx, esi
or al, 1
movzx ebx, al
test ecx, ecx
movzx eax, dl
cmovns ebx, eax
add ecx, ecx
mov eax, ecx
add bl, bl
sar eax, 8
mov edx, ecx
xor eax, ecx
or edx, 1
sar eax, 8
xor eax, ecx
shr eax, 4
xor eax, ecx
and eax, 8
test al, al
mov al, bl
cmove edx, ecx
or al, 1
movzx ecx, al
test edx, edx
movzx eax, bl
cmovns ecx, eax
add cl, cl
mov dword [ebp - 4], ecx
lea ecx, [edx + edx]
mov eax, ecx
mov edx, ecx
sar eax, 8
or edx, 1
xor eax, ecx
sar eax, 8
xor eax, ecx
shr eax, 4
xor eax, ecx
and eax, 8
test al, al
cmove edx, ecx
mov ecx, dword [ebp - 4]
mov al, cl
or al, 1
test edx, edx
movzx ebx, al
movzx eax, cl
lea ecx, [edx + edx]
cmovns ebx, eax
mov edx, ecx
mov eax, ecx
add bl, bl
sar eax, 8
or edx, 1
xor eax, ecx
sar eax, 8
xor eax, ecx
shr eax, 4
xor eax, ecx
and eax, 8
test al, al
mov al, bl
cmove edx, ecx
or al, 1
movzx ecx, al
test edx, edx
movzx eax, bl
cmovns ecx, eax
add cl, cl
mov dword [ebp - 4], ecx
lea ecx, [edx + edx]
mov eax, ecx
mov edx, ecx
sar eax, 8
or edx, 1
xor eax, ecx
sar eax, 8
xor eax, ecx
shr eax, 4
xor eax, ecx
and eax, 8
test al, al
cmove edx, ecx
mov ecx, dword [ebp - 4]
mov al, cl
or al, 1
test edx, edx
movzx ebx, al
movzx eax, cl
lea ecx, [edx + edx]
cmovns ebx, eax
mov edx, ecx
mov eax, ecx
add bl, bl
sar eax, 8
or edx, 1
xor eax, ecx
sar eax, 8
xor eax, ecx
shr eax, 4
xor eax, ecx
and eax, 8
test al, al
mov al, bl
cmove edx, ecx
or al, 1
movzx ecx, al
test edx, edx
movzx eax, bl
cmovns ecx, eax
add cl, cl
mov dword [ebp - 4], ecx
lea ecx, [edx + edx]
mov eax, ecx
mov edx, ecx
sar eax, 8
or edx, 1
xor eax, ecx
sar eax, 8
xor eax, ecx
shr eax, 4
xor eax, ecx
and eax, 8
test al, al
cmove edx, ecx
mov ecx, dword [ebp - 4]
mov al, cl
or al, 1
test edx, edx
movzx ebx, al
movzx eax, cl
lea ecx, [edx + edx]
cmovns ebx, eax
mov esi, ecx
mov eax, esi
add bl, bl
sar eax, 8
xor eax, esi
sar eax, 8
xor eax, esi
shr eax, 4
xor eax, esi
or esi, 1
and eax, 8
test al, al
cmove esi, ecx
mov eax, dword [ebp + 8]
mov ecx, eax
cmp dword [eax + 0x14], 0x10
jb 0x4289d6
mov ecx, dword [eax]
xor byte [ecx + edi], bl
inc edi
cmp edi, dword [ebp - 8]
jb 0x428833
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x451590
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50025a
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x53f300]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.LogUtils::LogAppender.0
lea edi, [esi + 0x14]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov byte [esi + 0xc], 1
mov dword [esi + 0x10], 0
call fcn.00452960
mov ecx, eax
test ecx, ecx
je 0x451754
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
lea ebx, [esi + 0x18]
call fcn.00452960
mov ecx, eax
test ecx, ecx
je 0x45175e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 1
call fcn.00452960
mov ecx, eax
test ecx, ecx
je 0x451768
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], 0xffffffff
lea eax, [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 5
mov dword [esi + 0x10], eax
test edx, edx
jne 0x451672
xor ecx, ecx
jmp 0x451690
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x451680
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.0040c6c0
push edi
mov ecx, ebx
call fcn.0040db90
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4516ac
xor ecx, ecx
jmp 0x4516c4
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4516b4
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x1c]
call fcn.0040c6c0
push ebx
lea eax, [ebp + 0x10]
mov ecx, esi
push eax
call fcn.00452250
push eax
mov ecx, ebx
mov byte [ebp - 4], 6
call fcn.0040db90
mov edx, dword [ebp + 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x451705
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
test eax, eax
je 0x45173e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x45173e
cmp dword [esi + 0x10], 0
je 0x451735
push dword [edi]
call fcn.004c5198
add esp, 4
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.0040b8d0
push 0x80004005
call fcn.0040b8d0
push 0x80004005
call fcn.0040b8d0
int3
Function at 0x451fd0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x500368
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x53f300]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
test esi, esi
je 0x4521a4
push str.__set_log_lev0
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x452025
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 4]
jmp 0x4521a4
push str.__set_log_lev1
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x452043
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 4]
jmp 0x4521a4
push str.__set_log_lev2
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x452061
mov eax, dword [edi]
mov ecx, edi
push 2
call dword [eax + 4]
jmp 0x4521a4
push str.__set_log_lev3
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x45207f
mov eax, dword [edi]
mov ecx, edi
push 3
call dword [eax + 4]
jmp 0x4521a4
push str.__reload_log_switch
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4521a4
lea eax, [edi + 4]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x4520a4
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [edi + 0x2c]
mov dword [edi + 0x1c], 3
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], ecx
jb 0x4520d7
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
cmp ecx, 8
jae 0x4520ef
movups xmm0, xmmword [eax]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 7
movups xmmword [ebp - 0x28], xmm0
jmp 0x45212d
mov esi, ecx
mov eax, SysReAllocString
or esi, 7
lea ecx, [ebp - 0x28]
cmp esi, eax
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.00412030
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x2c]
push eax
call fcn.0049b580
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
push 0x515d94
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00453430
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45215b
mov dword [edi + 0x1c], 0
cmp dword [edi + 0x28], 0
je 0x452194
mov eax, dword [edi]
mov ecx, edi
push 1
mov eax, dword [eax + 8]
call eax
test al, al
je 0x452194
push str._______log_reload_switch
lea ecx, [ebp - 0x4c]
call fcn.0041b350
mov ecx, dword [edi + 0x28]
lea edx, [ebp - 0x4c]
push edx
mov byte [ebp - 4], 2
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x4c]
call fcn.0040d7d0
lea ecx, [ebp - 0x28]
call fcn.0040d7d0
lea ecx, [ebp - 0x34]
call fcn.00451860
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045992a
mov esp, ebp
pop ebp
ret 4
Function at 0x452c50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x500507
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x53f300]
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
mov ebx, dword [ebp + 8]
lea esi, [edi + 4]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esi
test esi, esi
je 0x452c9a
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, ebx
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x452ca6
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [edi + 0x2c]
call fcn.004476fe
cmp dword [edi + 0x28], 0
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x44], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x24], eax
jne 0x452d13
push 0x48
call fcn.00459973
mov ebx, eax
add esp, 4
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 1
test ebx, ebx
je 0x452d07
push 0x48
push 0
push ebx
call fcn.0049bb00
add esp, 0xc
mov ecx, ebx
push dword [ebp + 0x14]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call fcn.00451590
jmp 0x452d09
xor eax, eax
mov ebx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
mov dword [edi + 0x28], eax
xor eax, eax
mov dword [ebp - 0x18], 0
cmp dword [ebp + 0x10], eax
mov ecx, ebx
mov dword [ebp - 0x14], 7
sete al
lea edx, [ecx + 2]
lea eax, [eax*2 + 1]
mov dword [edi + 0x1c], eax
xor eax, eax
mov word [ebp - 0x28], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x452d40
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.004476fe
push 3
push 0x515d94
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00447563
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x452d8f
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], eax
cmp dword [edi + 0x28], 0
je 0x452dde
mov eax, dword [edi]
mov ecx, edi
push 1
mov eax, dword [eax + 8]
call eax
test al, al
je 0x452dde
push 0x10
xor eax, eax
mov dword [ebp - 0x40], 0
push str._______log_start
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
call fcn.004476fe
mov ecx, dword [edi + 0x28]
lea edx, [ebp - 0x50]
push edx
mov byte [ebp - 4], 3
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x50]
call fcn.0040d7d0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x452e14
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x452e0a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x452e51
push edx
push ecx
call fcn.0045993b
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test esi, esi
je 0x452e33
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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.0045992a
mov esp, ebp
pop ebp
ret 0x14
call fcn.004a6fba
int3
Function at 0x457320
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x500dd1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x53f300]
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, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x1c], 0
mov dword [edi], 0
call fcn.00452960
mov ecx, eax
test ecx, ecx
je 0x4574b4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], 1
push eax
push 0xf003f
push 0
push dword [ebp + 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x457475
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push 0
lea eax, [ebp - 0x18]
movlpd qword [ebp - 0x18], xmm0
push eax
push 0
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x457467
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x457475
add eax, 0x10
push 0x56c252
push eax
mov dword [ebp - 0x20], eax
call fcn.0045a0b4
mov esi, eax
add esp, 8
test esi, esi
je 0x457475
push dword [ebp - 0x20]
push 0
push esi
call fcn.0049bb00
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push 0
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x45742a
push esi
call fcn.00459920
add esp, 4
jmp 0x457475
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457430
sub ecx, edx
sar ecx, 1
je 0x45745e
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457446
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.0040c6c0
push esi
call fcn.00459920
add esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x457475
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x457494
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.0045992a
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.0040b8d0
int3