joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408210
Capabilities:
Encrypt data using aes via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8628
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x53e300]
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 edi, ecx
mov eax, dword [edi + 8]
lea ebx, [edi + 8]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], ecx
test eax, eax
je 0x40826a
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [ebp - 0x48]
mov dword [ebx], 0
mov byte [edi + 0x10], 0
cmp dword [edi + 4], 0
mov dword [ebp - 4], 0
je 0x408399
test ecx, ecx
je 0x4083b4
mov esi, dword [ebp + 0xc]
cmp esi, 0x10
je 0x408299
cmp esi, 0x18
je 0x408299
cmp esi, 0x20
jne 0x4083cf
push 0x2c
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.0049a420
add esp, 0xc
mov dword [ebp - 0x40], 0x208
mov byte [ebp - 4], 1
cmp esi, 0x10
je 0x4082e0
cmp esi, 0x18
je 0x4082d2
cmp esi, 0x20
jne 0x4083ea
mov dword [ebp - 0x3c], 0x6610
mov eax, esi
jmp 0x4082ec
mov dword [ebp - 0x3c], 0x660f
mov eax, 0x18
jmp 0x4082ec
mov dword [ebp - 0x3c], 0x660e
mov eax, 0x10
push esi
push dword [ebp - 0x48]
mov dword [ebp - 0x38], eax
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0040af60
add esp, 0x10
test eax, eax
jne 0x408405
push ebx
push 0
push 0
lea eax, [esi + 0xc]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x408426
push 0
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 1
push eax
push 4
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x408447
jmp 0x408363
mov al, 1
lea ecx, [ebp - 0x40]
mov edx, 4
nop dword [eax]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub edx, 1
jne 0x408370
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.004597ba
mov esp, ebp
pop ebp
ret 8
push str.SetKey:_Provider_is_not_valid
lea ecx, [ebp - 0x58]
call fcn.00405b00
push 0x52c9d0
lea eax, [ebp - 0x58]
push eax
call fcn.0049af74
push str.SetKey:_Key_buffer_is_NULL
lea ecx, [ebp - 0x64]
call fcn.00405b00
push 0x52c9d0
lea eax, [ebp - 0x64]
push eax
call fcn.0049af74
push str.SetKey:_Key_size_is_not_valid
lea ecx, [ebp - 0x70]
call fcn.00405b00
push 0x52c9d0
lea eax, [ebp - 0x70]
push eax
call fcn.0049af74
push str.SetKey:_Key_size_is_not_valid
lea ecx, [ebp - 0x7c]
call fcn.00405b00
push 0x52c9d0
lea eax, [ebp - 0x7c]
push eax
call fcn.0049af74
push str.SetKey:_Unable_to_copy_key
lea ecx, [ebp - 0x88]
call fcn.00405b00
push 0x52c9d0
lea eax, [ebp - 0x88]
push eax
call fcn.0049af74
push str.SetKey:_Import_key_failed
lea ecx, [ebp - 0x94]
call fcn.00405b00
push 0x52c9d0
lea eax, [ebp - 0x94]
push eax
call fcn.0049af74
push str.SetKey:_Set_CBC_mode_failed
lea ecx, [ebp - 0xa0]
call fcn.00405b00
push 0x52c9d0
lea eax, [ebp - 0xa0]
push eax
call fcn.0049af74
push 0
push 0
call fcn.0049af74
int3
Function at 0x40c520
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x52cad8
push 0x49aa40
mov eax, dword fs:[0]
push eax
sub esp, 0x848
mov eax, dword [0x53e300]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 4], 0
test esi, esi
je 0x40c694
cmp word [esi], 0
je 0x40c694
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c580
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
ja 0x40c694
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c694
push 0x800
push 0
lea eax, [ebp - 0x81c]
push eax
call fcn.0049a420
push esi
push 0x50b490
push 0x3ff
lea eax, [ebp - 0x81c]
push eax
call fcn.0040c7f0
push 0x3c
push 0
lea eax, [ebp - 0x858]
push eax
call fcn.0049a420
add esp, 0x28
mov dword [ebp - 0x858], 0x3c
lea eax, [ebp - 0x81c]
mov dword [ebp - 0x848], eax
mov dword [ebp - 0x84c], 0x50b49c
mov dword [ebp - 0x844], ebx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x83c], eax
mov dword [ebp - 0x854], 0x440
cmp dword [ebp + 0x14], 0
je 0x40c633
push esi
call fcn.00454280
add esp, 4
test eax, eax
je 0x40c694
lea eax, [ebp - 0x858]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
test esi, esi
je 0x40c65b
cmp dword [ebp + 0x18], 0
je 0x40c65b
push dword [ebp + 0x20]
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test edi, edi
je 0x40c670
test esi, esi
je 0x40c680
push edi
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test esi, esi
je 0x40c680
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x40c69d
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 ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004597ba
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x40cb10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40cb69
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40cb69
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40cb5a
cmp esi, edx
jae 0x40cb69
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x40cb48
cmp esi, edx
jae 0x40cb69
cmp word [esi], 0
je 0x40cb69
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x40fd10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8d26
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x53e300]
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.004597ba
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.00499ea0
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 0x4fa026
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x53e300]
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.004226a0
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.00459803
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 0x4232e0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fa5c3
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x53e300]
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 0x50c57c
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 0x423481
call fcn.004528b0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x423481
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 0x50bc60
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.004528b0
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 0x4234ab
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.004597ba
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x428700
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x567a70], 0
push ebx
push esi
push edi
jne 0x42879b
mov edi, dword [0x53e128]
xor ebx, ebx
mov byte [0x567a70], 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 + 0x567670], 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 + 0x567670]
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.00424c60
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 0x451420
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4feaca
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x53e300]
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.004527f0
mov ecx, eax
test ecx, ecx
je 0x4515e4
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.004527f0
mov ecx, eax
test ecx, ecx
je 0x4515ee
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 1
call fcn.004527f0
mov ecx, eax
test ecx, ecx
je 0x4515f8
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 0x451502
xor ecx, ecx
jmp 0x451520
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 0x451510
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 0x45153c
xor ecx, ecx
jmp 0x451554
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x451544
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.004520e0
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 0x451595
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 0x4515ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4515ce
cmp dword [esi + 0x10], 0
je 0x4515c5
push dword [edi]
call fcn.004c3ab8
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 0x451e60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4febd8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x53e300]
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 0x452034
push str.__set_log_lev0
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x451eb5
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 4]
jmp 0x452034
push str.__set_log_lev1
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x451ed3
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 4]
jmp 0x452034
push str.__set_log_lev2
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x451ef1
mov eax, dword [edi]
mov ecx, edi
push 2
call dword [eax + 4]
jmp 0x452034
push str.__set_log_lev3
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x451f0f
mov eax, dword [edi]
mov ecx, edi
push 3
call dword [eax + 4]
jmp 0x452034
push str.__reload_log_switch
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x452034
lea eax, [edi + 4]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x451f34
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 0x451f67
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
cmp ecx, 8
jae 0x451f7f
movups xmm0, xmmword [eax]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 7
movups xmmword [ebp - 0x28], xmm0
jmp 0x451fbd
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.00499ea0
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
push 0x514c94
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004532c0
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 0x451feb
mov dword [edi + 0x1c], 0
cmp dword [edi + 0x28], 0
je 0x452024
mov eax, dword [edi]
mov ecx, edi
push 1
mov eax, dword [eax + 8]
call eax
test al, al
je 0x452024
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.004516f0
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.004597ba
mov esp, ebp
pop ebp
ret 4