joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413fd0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004435f0
mov eax, dword [0x4a62e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 1
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41402c
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443153
mov esp, ebp
pop ebp
ret 0xc
test edi, edi
je 0x414106
cmp dword [ebp + 0x10], 0
jle 0x414106
push 0x1000
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.00450d40
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov eax, ecx
cdq
and edx, 0xfff
add eax, edx
sar eax, 0xc
mov dword [ebp - 0x100c], eax
and ecx, 0x80000fff
jns 0x41407b
dec ecx
or ecx, 0xfffff000
inc ecx
xor esi, esi
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0x1008], 0
test eax, eax
jle 0x4140d7
nop
push 0x1000
lea eax, [ebp - 0x1004]
push edi
push eax
call fcn.00450240
add esp, 0xc
lea eax, [ebp - 0x1008]
push 0
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x414106
inc esi
add edi, 0x1000
cmp esi, dword [ebp - 0x100c]
jl 0x414090
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jle 0x414106
push ecx
lea eax, [ebp - 0x1004]
push edi
push eax
call fcn.00450240
add esp, 0xc
lea eax, [ebp - 0x1008]
push 0
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x1004]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00443153
mov esp, ebp
pop ebp
ret 0xc
Function at 0x418330
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4a62e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push 0x30
push 0
push esi
call fcn.00450d40
push 0x110
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], 0x114
push 0
push eax
call fcn.00450d40
add esp, 0x18
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x418393
cmp dword [ebp - 0x114], 6
mov eax, 0x30
jae 0x418398
mov eax, 0x2c
mov ecx, dword [ebp + 0x10]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
test ecx, ecx
jne 0x4183b6
push edi
call dword [sym.imp.USER32.dll_GetParent]
or dword [esi + 4], 1
mov ecx, edi
jmp 0x4183b8
mov eax, edi
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0xc], ecx
test eax, eax
je 0x4183cc
movups xmm0, xmmword [eax]
movups xmmword [esi + 0x10], xmm0
mov ecx, dword [0x4a88c4]
mov eax, esi
mov dword [esi + 0x20], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esi + 0x24], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [esi + 0x28], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00443153
mov esp, ebp
pop ebp
ret 0x18
Function at 0x419960
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47c1e0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4a62e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x10]
push eax
call fcn.004133b0
mov ecx, eax
call fcn.004138c0
push str.LdsWin11Assisttant.exe
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.00412b30
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4199c4
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [edi + 0x11c]
or ebx, 0xffffffff
cmp dword [eax - 0xc], 0
je 0x419b11
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x419b11
call fcn.0040bd70
mov ecx, eax
test ecx, ecx
je 0x419b46
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push dword [edi + 0x11c]
lea eax, [ebp - 0x14]
push str._s_t_d
push eax
call fcn.0040b5a0
mov ecx, dword [edi + 0x108]
add esp, 0x10
test ecx, ecx
je 0x419a45
mov eax, dword [ecx]
push 0
call dword [eax]
mov ecx, dword [edi + 0x108]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [edi + 0x108], 0
call fcn.0040bce0
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x419a79
mov eax, dword [ecx]
call dword [eax]
mov esi, eax
test esi, esi
je 0x419a7b
mov edx, dword [esi]
mov ecx, esi
push 0
push str.ungzip
call dword [edx + 0x30]
mov eax, dword [esi]
mov ecx, esi
push 0
push str.gzip
call dword [eax + 0x30]
jmp 0x419a7b
xor esi, esi
mov dword [edi + 0x108], esi
test esi, esi
mov esi, dword [ebp - 0x14]
je 0x419aef
push 0
push 0x7530
push 0x3ea
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0
push 1
push 0
push str.update_down_start
call fcn.0041acf0
mov ecx, eax
call fcn.00444490
mov ecx, dword [edi + 0x108]
lea eax, [edi + 0x74]
push eax
mov edx, dword [ecx]
call dword [edx]
mov ecx, dword [edi + 0x108]
push dword [ebp - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, dword [edi + 0x108]
push esi
push 0
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x10]
push eax
lea ecx, [edi + 0x114]
call fcn.004189f0
mov edi, 1
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x419b13
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x419b13
xor edi, edi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x419b32
mov ecx, dword [eax]
push eax
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 esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00407850
int3
Function at 0x41fed0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47cd3b
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x4a62e4]
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 ebx, ecx
push 0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 0xc], 0
setne byte [ebp - 0x44]
call fcn.0042fcb0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x42005a
push 0x3a
push str.d:_buildlib_commonwin11_update_assistant_srcmain_wnd.cc
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], al
call fcn.0040e510
push 3
push 0x482dd8
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0040e510
mov byte [ebp - 4], 1
call fcn.0042fcb0
mov edi, eax
lea ecx, [ebp - 0xdc]
push 0xbc
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00405aa0
mov esi, eax
push str.Web_call_OnStartCheck__is_update_check:
push esi
mov byte [ebp - 4], 2
call fcn.00406dd0
add esp, 8
mov ecx, esi
push dword [ebp - 0x44]
call fcn.00418a60
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0xdc]
call fcn.00406fb0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x41ffff
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41fff5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42008e
push edx
push ecx
call fcn.00442ea6
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x420048
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42003e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420093
push edx
push ecx
call fcn.00442ea6
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
push dword [ebp - 0x44]
lea ecx, [ebx + 0xc0]
push dword [ebx + 4]
call fcn.0040ca30
mov eax, 1
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.00443153
mov esp, ebp
pop ebp
ret 0x10
call fcn.00453ee9
call fcn.00453ee9
int3
Function at 0x420f00
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a62e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
push 0x6e
lea ecx, [edi + 0xa0]
call fcn.0041bd40
mov eax, dword [edi + 0xa0]
mov ecx, 0x4844b0
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x420f56
test dx, dx
je 0x420f52
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x420f56
add eax, 4
add ecx, 4
test dx, dx
jne 0x420f30
xor eax, eax
jmp 0x420f5b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x420f71
push 7
push str.ludashi
lea ecx, [edi + 0xa0]
call fcn.0040c6c0
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 1
push eax
lea eax, [edi + 0x7c]
mov dword [ebp - 0x20], 0
push eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call sub.gdiplus.dll_GdiplusStartup
push 0
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push 0
push 0x30
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push dword [edi + 4]
mov esi, 0x1fe
mov ebx, 0x14a
call fcn.004133b0
mov ecx, eax
call fcn.00413110
fstp qword [ebp - 0x1c]
movsd xmm0, qword [ebp - 0x1c]
comisd xmm0, xmmword [0x486218]
jbe 0x420fe8
mov esi, 0x3fc
mov ebx, 0x294
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
cdq
sub eax, edx
push 8
push ebx
sar eax, 1
push esi
shr ebx, 1
sub eax, ebx
shr esi, 1
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
cdq
sub eax, edx
sar eax, 1
sub eax, esi
push eax
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0x484e04
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, edi
call fcn.0041b690
push dword [edi + 4]
call fcn.004133b0
mov ecx, eax
call fcn.004138e0
call fcn.004133b0
mov ecx, eax
call fcn.00413b80
push 5
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00443153
mov esp, ebp
pop ebp
ret
Function at 0x423ce0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.004435f0
mov eax, dword [0x4a62e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ax, word [0x48192c]
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.00450d40
add esp, 0xc
mov dword [ebp - 0x4008], 0
test esi, esi
je 0x423de3
test edi, edi
je 0x423de3
lea eax, [ebp - 0x4008]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x423de3
cmp eax, 0x3fff
ja 0x423de3
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x423de3
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x400c]
push eax
push 0x4844ac
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x423de3
mov esi, dword [ebp + 0x10]
lea eax, [esi + esi]
push eax
push 0
push edi
call fcn.00450d40
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.00426120
add esp, 0x28
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443153
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00443153
mov esp, ebp
pop ebp
ret
Function at 0x4249f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d1f6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4a62e4]
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 0x424a9c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x424a9c
call fcn.00423900
mov esi, eax
jmp 0x424b8c
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x424abf
call fcn.00423900
jmp 0x424b7f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x424add
call fcn.00423900
jmp 0x424b7f
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 0x424afe
mov esi, 0x8007000e
jmp 0x424b81
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.004237d0
jmp 0x424b28
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x424b3f
mov esi, 0x8007000e
jmp 0x424b81
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 0x424b5f
call fcn.00423900
jmp 0x424b7f
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.00424850
mov esi, eax
test edi, edi
je 0x424b8c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x424bb0
lea ecx, [ebp - 0x418]
call fcn.00423cd0
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.00443153
mov esp, ebp
pop ebp
ret 0x10
Function at 0x426ad0
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 0x426b41
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x426b41
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x426b41
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x426b41
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 0x426b3b
push esi
push ebx
push edi
call fcn.00450240
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 0x426b3b
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 0x42ef70
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d91a
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4a62e4]
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.0040bd70
mov ecx, eax
test ecx, ecx
je 0x42f134
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.0040bd70
mov ecx, eax
test ecx, ecx
je 0x42f13e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 1
call fcn.0040bd70
mov ecx, eax
test ecx, ecx
je 0x42f148
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 0x42f052
xor ecx, ecx
jmp 0x42f070
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 0x42f060
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.004189f0
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x42f08c
xor ecx, ecx
jmp 0x42f0a4
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f094
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.0042fa30
push eax
mov ecx, ebx
mov byte [ebp - 4], 6
call fcn.004189f0
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 0x42f0e5
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 0x42f11e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x42f11e
cmp dword [esi + 0x10], 0
je 0x42f115
push dword [edi]
call fcn.0045fb22
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.00407850
push 0x80004005
call fcn.00407850
push 0x80004005
call fcn.00407850
int3
Function at 0x42f830
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47da08
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4a62e4]
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 0x42fa04
push str.__set_log_lev0
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x42f885
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 4]
jmp 0x42fa04
push str.__set_log_lev1
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x42f8a3
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 4]
jmp 0x42fa04
push str.__set_log_lev2
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x42f8c1
mov eax, dword [edi]
mov ecx, edi
push 2
call dword [eax + 4]
jmp 0x42fa04
push str.__set_log_lev3
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x42f8df
mov eax, dword [edi]
mov ecx, edi
push 3
call dword [eax + 4]
jmp 0x42fa04
push str.__reload_log_switch
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x42fa04
lea eax, [edi + 4]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x42f904
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 0x42f937
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
cmp ecx, 8
jae 0x42f94f
movups xmm0, xmmword [eax]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 7
movups xmmword [ebp - 0x28], xmm0
jmp 0x42f98d
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.0040e030
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.00450240
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
push 0x48a214
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00430460
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 0x42f9bb
mov dword [edi + 0x1c], 0
cmp dword [edi + 0x28], 0
je 0x42f9f4
mov eax, dword [edi]
mov ecx, edi
push 1
mov eax, dword [eax + 8]
call eax
test al, al
je 0x42f9f4
push str._______log_reload_switch
lea ecx, [ebp - 0x4c]
call fcn.004182e0
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.004065c0
lea ecx, [ebp - 0x28]
call fcn.004065c0
lea ecx, [ebp - 0x34]
call fcn.0042f200
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.00443153
mov esp, ebp
pop ebp
ret 4
Function at 0x42fda0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47dac7
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4a62e4]
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 0x42fdea
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 0x42fdf6
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [edi + 0x2c]
call fcn.0040e600
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 0x42fe63
push 0x48
call fcn.00430db0
mov ebx, eax
add esp, 4
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 1
test ebx, ebx
je 0x42fe57
push 0x48
push 0
push ebx
call fcn.00450d40
add esp, 0xc
mov ecx, ebx
push dword [ebp + 0x14]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call fcn.0042ef70
jmp 0x42fe59
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 0x42fe90
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.0040e600
push 3
push 0x48a214
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0042bf54
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 0x42fedf
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], eax
cmp dword [edi + 0x28], 0
je 0x42ff2e
mov eax, dword [edi]
mov ecx, edi
push 1
mov eax, dword [eax + 8]
call eax
test al, al
je 0x42ff2e
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.0040e600
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.004065c0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x42ff64
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42ff5a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42ffa1
push edx
push ecx
call fcn.00442ea6
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 0x42ff83
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.00443153
mov esp, ebp
pop ebp
ret 0x14
call fcn.00453ee9
int3