joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405450
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
push esi
push edi
test ecx, ecx
je 0x40564a
mov eax, dword [ebp + 8]
test eax, eax
je 0x40564a
mov esi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
lea edx, [ebp - 0xc]
push edx
lea edx, [ebp - 0x10]
mov dword [ebp - 4], 0x400
push edx
lea edx, [ebp - 4]
mov dword [ebp - 0x10], 0
push edx
push 0
push 1
push ecx
push eax
mov dword [ebp - 0xc], 0
call esi
push dword [ebp - 4]
call fcn.00417b5c
push dword [ebp - 4]
mov edi, eax
push 0
push edi
mov dword [ebp - 0x14], edi
call fcn.00419db0
add esp, 0x10
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
push dword [ebp - 4]
call fcn.0041c9da
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
test edi, edi
je 0x40564a
push dword [ebp - 4]
mov esi, dword [ebp - 0x14]
push esi
push edi
call fcn.004192b0
push esi
call fcn.00417b65
xor ecx, ecx
add esp, 0x10
mov dword [ebp + 0xc], ecx
cmp dword [ebp - 4], ecx
ja 0x4055a2
mov edx, ebx
cmp dword [ebp + 0x10], 0
je 0x40562b
cmp dword [edi], 0x736d6864
jne 0x405633
cmp dword [edi + 8], 0
jbe 0x405633
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x405633
mov esi, dword [edx + 0x60]
lea edi, [edx + 0x5c]
sub esi, dword [edi]
add ebx, 0xfffffff4
push edi
mov ecx, edi
lea eax, [esi + ebx]
push eax
call fcn.00401c50
mov eax, dword [ebp + 8]
add eax, 0xc
push ebx
push eax
mov eax, dword [edi]
add eax, esi
push eax
call fcn.004192b0
mov edx, dword [ebp - 8]
add esp, 0xc
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
add dword [edx + 0x58], eax
mov ecx, dword [edi]
mov edi, dword [ebp + 8]
push edi
add dword [ecx + 4], ebx
mov eax, dword [edx + 0x58]
mov dword [ecx + 8], eax
call fcn.0041c9d5
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ebx, edx
mov eax, 0xea0ea0eb
mov esi, ecx
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x23
sub esi, eax
mov eax, 0x4bda12f7
imul ecx
mov bl, byte [esi + ebx + 0x34]
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 8]
imul eax, eax, 0x1b
sub ecx, eax
mov eax, 0x78787879
xor bl, byte [ecx + edx + 0x19]
imul dword [ebp + 0xc]
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 8]
mov ecx, eax
shl ecx, 4
add ecx, eax
mov eax, dword [ebp + 0xc]
sub eax, ecx
mov ecx, dword [ebp + 0xc]
xor bl, byte [eax + edx + 8]
mov eax, ecx
and eax, 0x80000007
jns 0x405613
dec eax
or eax, 0xfffffff8
inc eax
xor bl, byte [eax + edx]
xor byte [ecx + edi], bl
inc ecx
mov dword [ebp + 0xc], ecx
cmp ecx, dword [ebp - 4]
jb 0x4055a0
jmp 0x405513
push edi
mov ecx, edx
call fcn.00405ea0
push edi
call fcn.0041c9d5
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4056c0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.00418020
mov eax, dword [0x44a214]
xor eax, ebp
mov dword [ebp - 4], eax
mov ax, word [0x436674]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x3ffe
mov word [ebp - 0x4004], ax
lea eax, [ebp - 0x4002]
push 0
push eax
call fcn.00419db0
add esp, 0xc
mov dword [ebp - 0x4008], 0
test esi, esi
je 0x4057c3
test edi, edi
je 0x4057c3
lea eax, [ebp - 0x4008]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x4057c3
cmp eax, 0x3fff
ja 0x4057c3
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4057c3
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x400c]
push eax
push 0x437aa4
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4057c3
mov esi, dword [ebp + 0x10]
lea eax, [esi + esi]
push eax
push 0
push edi
call fcn.00419db0
mov ecx, dword [ebp - 0x400c]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
lea eax, [esi - 1]
push eax
push edi
call fcn.00407780
add esp, 0x28
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418008
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00418008
mov esp, ebp
pop ebp
ret
Function at 0x4066f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x434136
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x44a214]
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 esi, 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 esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x40679c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x40679c
call fcn.00404bd0
mov esi, eax
jmp 0x40688c
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4067bf
call fcn.00404bd0
jmp 0x40687f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x4067dd
call fcn.00404bd0
jmp 0x40687f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x4067fe
mov esi, 0x8007000e
jmp 0x406881
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00404870
jmp 0x406828
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x40683f
mov esi, 0x8007000e
jmp 0x406881
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x40685f
call fcn.00404bd0
jmp 0x40687f
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.00406550
mov esi, eax
test edi, edi
je 0x40688c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4068b0
lea ecx, [ebp - 0x418]
call fcn.00405440
nop word [eax + eax]
mov eax, esi
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.00418008
mov esp, ebp
pop ebp
ret 0x10
Function at 0x408050
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 0x4080c1
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x4080c1
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4080c1
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4080c1
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 0x4080bb
push esi
push ebx
push edi
call fcn.004192b0
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 0x4080bb
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 0x4080d0
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 0x408129
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x408129
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 0x40811a
cmp esi, edx
jae 0x408129
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x408108
cmp esi, edx
jae 0x408129
cmp word [esi], 0
je 0x408129
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x40c4f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4346d8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x44a214]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
test edi, edi
je 0x40c528
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
push 0x38
mov dword [ebp - 4], 0
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp + 8], eax
call fcn.00417b1e
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
test esi, esi
je 0x40c578
mov ecx, dword [ebp + 8]
lea eax, [esi + 0x10]
mov dword [esi + 4], 1
mov dword [esi + 8], 1
mov dword [esi], vtable.std::_Ref_count_obj_class_std::function_void____cdecl___void___.0
mov dword [eax], vtable.._AV___Func_impl_no_alloc_V___Binder_U_Unforced_std__V___Binder_U_Unforced_std__P8CPluginMgr__AEXXZPAV3__2___V_std__X__V_std__.0
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0x24], eax
jmp 0x40c57a
xor esi, esi
lea eax, [esi + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], eax
test esi, esi
je 0x40c58b
lock inc dword [esi + 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x28]
inc eax
mov byte [ebp - 4], 2
cmp ecx, eax
ja 0x40c5ad
push 1
lea ecx, [edi + 0x20]
call fcn.0040eea0
mov ecx, dword [edi + 0x28]
lea eax, [ecx - 1]
and dword [edi + 0x2c], eax
mov ecx, dword [edi + 0x30]
add ecx, dword [edi + 0x2c]
mov eax, dword [edi + 0x28]
dec eax
and ecx, eax
lea eax, [ecx*4]
mov ecx, dword [edi + 0x24]
mov dword [ebp + 8], eax
cmp dword [ecx + eax], 0
jne 0x40c5ea
push 0x28
call fcn.00417b1e
mov ecx, dword [edi + 0x24]
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx + ecx], eax
mov eax, edx
mov ecx, dword [edi + 0x24]
mov eax, dword [eax + ecx]
lea ecx, [esi + 0x10]
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__lambda_7bf46d6d2cfed262ad4f012bdb85772d___void___.0
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov dword [eax + 0x24], eax
inc dword [edi + 0x30]
cmp dword [edi + 0x18], 0
jne 0x40c629
lea eax, [edi + 0x1c]
push eax
push 0
push edi
push 0x40e550
push 0
push 0
call fcn.0041f4c4
add esp, 0x18
mov dword [edi + 0x18], eax
mov byte [ebp + 0xb], 1
jmp 0x40c62d
mov byte [ebp + 0xb], 0
test esi, esi
je 0x40c652
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x40c652
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x40c652
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [ebp + 0xb]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40d980
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4348e1
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
mov eax, dword [0x44a214]
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 esi, ecx
mov dword [ebp - 0x24c], esi
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
je 0x40db72
call fcn.00413f00
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40dabd
push 0x57
push str.d:jenkins.jenkinsworkspacewhalecpan_srvhost_srvhost_srvhostpluginmgrpluginmgr.cpp
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], al
call fcn.00408ce0
push 3
push 0x437f28
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.00408ce0
mov byte [ebp - 4], 1
call fcn.00413f00
mov edi, eax
lea ecx, [ebp - 0x2e8]
push 0x73
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00402350
mov esi, eax
push str._Load_extension_item:
push esi
mov byte [ebp - 4], 2
call fcn.004036d0
mov ecx, dword [ebx]
mov edx, 0x437d10
test ecx, ecx
cmovne edx, ecx
push edx
push esi
call fcn.004013f0
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x2e8]
call fcn.00403a60
lea ecx, [ebp - 0x230]
call fcn.00403020
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0xffffffff
call fcn.00403020
mov esi, dword [ebp - 0x24c]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00419db0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [ebx]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40db72
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x40db72
push dword [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40db72
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x250], 0
push ecx
push 1
call eax
mov ecx, eax
mov dword [ebp - 0x24c], ecx
test ecx, ecx
je 0x40db72
push dword [esi + 0xc]
mov eax, dword [ecx]
push ecx
call dword [eax + 0xc]
lea eax, [ebp - 0x24c]
mov ecx, esi
push eax
call fcn.0040d370
mov eax, 1
jmp 0x40db74
xor eax, 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.00418008
mov esp, ebp
pop ebp
ret 4
Function at 0x413050
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x434d3a
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x44a214]
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.004057e0
mov ecx, eax
test ecx, ecx
je 0x413214
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.004057e0
mov ecx, eax
test ecx, ecx
je 0x41321e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 1
call fcn.004057e0
mov ecx, eax
test ecx, ecx
je 0x413228
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 0x413132
xor ecx, ecx
jmp 0x413150
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 0x413140
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.004074d0
push edi
mov ecx, ebx
call fcn.00403660
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x41316c
xor ecx, ecx
jmp 0x413184
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413174
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x1c]
call fcn.004074d0
push ebx
lea eax, [ebp + 0x10]
mov ecx, esi
push eax
call fcn.00413c80
push eax
mov ecx, ebx
mov byte [ebp - 4], 6
call fcn.00403660
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 0x4131c5
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 0x4131fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4131fe
cmp dword [esi + 0x10], 0
je 0x4131f5
push dword [edi]
call fcn.00420de6
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.00404c10
push 0x80004005
call fcn.00404c10
push 0x80004005
call fcn.00404c10
int3
Function at 0x413a80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x434e58
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x44a214]
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 0x413c54
push str.__set_log_lev0
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x413ad5
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 4]
jmp 0x413c54
push str.__set_log_lev1
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x413af3
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 4]
jmp 0x413c54
push str.__set_log_lev2
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x413b11
mov eax, dword [edi]
mov ecx, edi
push 2
call dword [eax + 4]
jmp 0x413c54
push str.__set_log_lev3
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x413b2f
mov eax, dword [edi]
mov ecx, edi
push 3
call dword [eax + 4]
jmp 0x413c54
push str.__reload_log_switch
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x413c54
lea eax, [edi + 4]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x413b54
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 0x413b87
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
cmp ecx, 8
jae 0x413b9f
movups xmm0, xmmword [eax]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 7
movups xmmword [ebp - 0x28], xmm0
jmp 0x413bdd
mov esi, ecx
mov eax, 0x7ffffffe
or esi, 7
lea ecx, [ebp - 0x28]
cmp esi, eax
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.00408960
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.004192b0
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
push 0x43a404
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00414690
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 0x413c0b
mov dword [edi + 0x1c], 0
cmp dword [edi + 0x28], 0
je 0x413c44
mov eax, dword [edi]
mov ecx, edi
push 1
mov eax, dword [eax + 8]
call eax
test al, al
je 0x413c44
push str._______log_reload_switch
lea ecx, [ebp - 0x4c]
call fcn.00412add
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.00403070
lea ecx, [ebp - 0x28]
call fcn.00403070
lea ecx, [ebp - 0x34]
call fcn.0040cf90
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.00418008
mov esp, ebp
pop ebp
ret 4
Function at 0x413ff0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x434f17
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x44a214]
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 0x41403a
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 0x414046
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [edi + 0x2c]
call fcn.00408dd0
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 0x4140b3
push 0x48
call fcn.00417b1e
mov ebx, eax
add esp, 4
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 1
test ebx, ebx
je 0x4140a7
push 0x48
push 0
push ebx
call fcn.00419db0
add esp, 0xc
mov ecx, ebx
push dword [ebp + 0x14]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call fcn.00413050
jmp 0x4140a9
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 0x4140e0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.00408dd0
push 3
push 0x43a404
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00412b42
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 0x41412f
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], eax
cmp dword [edi + 0x28], 0
je 0x41417e
mov eax, dword [edi]
mov ecx, edi
push 1
mov eax, dword [eax + 8]
call eax
test al, al
je 0x41417e
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.00408dd0
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.00403070
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4141b4
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4141aa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4141f1
push edx
push ecx
call fcn.00417b4e
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 0x4141d3
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.00418008
mov esp, ebp
pop ebp
ret 0x14
call fcn.0041c8f9
int3