joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456d50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60edbe
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x6c0924]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x54], 0
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x3c]
cmp dword [eax + 0x200b4], 0
jne 0x456db7
push 0
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
push 0x45e930
push 0
push 0
call fcn.005c3209
add esp, 0x18
mov edx, dword [ebp - 0x3c]
mov dword [edx + 0x200b4], eax
push 0x14
call fcn.0052e0d3
add esp, 4
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x40], 0
je 0x456e16
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x78], esp
lea eax, [ebp + 0x58]
push eax
call fcn.0040ce20
mov dword [ebp - 0x7c], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 0x54]
push ecx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x80], esp
lea edx, [ebp + 0x3c]
push edx
call fcn.0040ce20
mov eax, dword [ebp - 0x40]
push eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x3c]
call fcn.00457d30
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x44], ecx
jmp 0x456e1d
mov dword [ebp - 0x44], 0
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x5c], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x64], eax
push 0xc
call fcn.0052e0d3
add esp, 4
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 5
cmp dword [ebp - 0x48], 0
je 0x456e51
mov ecx, dword [ebp - 0x48]
call fcn.0045c030
mov dword [ebp - 0x4c], eax
jmp 0x456e58
mov dword [ebp - 0x4c], 0
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x60], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x50], edx
lea eax, [ebp - 0x74]
push eax
mov ecx, dword [ebp - 0x50]
call fcn.0046dca0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x6c], 0x456ad0
sub esp, 0x40
mov edx, esp
mov dword [ebp - 0x84], esp
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x64]
push ecx
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp - 0x68]
push ecx
lea eax, [ebp - 0x6c]
push eax
push edx
call fcn.0045a8d0
add esp, 0x18
lea ecx, [ebp - 0x38]
call fcn.004565e0
mov dword [ebp - 0x88], eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x3c]
add ecx, 0x2008c
call fcn.0046e070
lea edx, [ebp - 0x74]
push edx
mov ecx, dword [ebp + 8]
call fcn.0045bd60
mov eax, dword [ebp - 0x54]
or eax, 1
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x38]
call fcn.00419d10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x74]
call fcn.0045cce0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.00419e60
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x3c]
call fcn.00405e70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x58]
call fcn.00405e70
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052e057
mov esp, ebp
pop ebp
ret 0x68
Function at 0x45f7c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60f67c
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x6c0924]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x438], 0
push 0x632b88
lea ecx, [ebp - 0x42c]
call fcn.00402600
mov dword [ebp - 4], 0
mov dword [ebp - 0x440], 1
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.005b1170
add esp, 0xc
mov dword [ebp - 0x43c], 0x104
lea ecx, [ebp - 0x43c]
push ecx
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x440]
push eax
push 0x632b8c
push str.SOFTWAREComMaster
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x45f98e
push 0x208
push 0
lea ecx, [ebp - 0x420]
push ecx
call fcn.005b1170
add esp, 0xc
push 0x104
lea edx, [ebp - 0x420]
push edx
call fcn.00439660
add esp, 8
test eax, eax
je 0x45f98e
lea eax, [ebp - 0x218]
mov dword [ebp - 0x424], eax
mov ecx, dword [ebp - 0x424]
add ecx, 2
mov dword [ebp - 0x444], ecx
mov edx, dword [ebp - 0x424]
mov ax, word [edx]
mov word [ebp - 0x426], ax
add dword [ebp - 0x424], 2
cmp word [ebp - 0x426], 0
jne 0x45f8b5
mov ecx, dword [ebp - 0x424]
sub ecx, dword [ebp - 0x444]
sar ecx, 1
mov dword [ebp - 0x448], ecx
je 0x45f98e
lea edx, [ebp - 0x420]
push edx
lea ecx, [ebp - 0x434]
call fcn.00402600
mov byte [ebp - 4], 1
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x430]
call fcn.00402600
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x434]
push ecx
lea edx, [ebp - 0x430]
push edx
lea eax, [ebp - 0x454]
push eax
call fcn.00532f60
add esp, 0xc
mov dword [ebp - 0x44c], eax
mov ecx, dword [ebp - 0x44c]
mov dword [ebp - 0x450], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x450]
push edx
lea ecx, [ebp - 0x42c]
call fcn.00405f50
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x454]
call fcn.00405df0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x430]
call fcn.00405df0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x434]
call fcn.00405df0
push 0xfde9
lea ecx, [ebp - 0x42c]
call fcn.00403580
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00533e20
add esp, 0xc
mov ecx, dword [ebp - 0x438]
or ecx, 1
mov dword [ebp - 0x438], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x42c]
call fcn.00405df0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052e057
mov esp, ebp
pop ebp
ret
Function at 0x461f30
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x6c0924]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x444], ecx
mov dword [ebp - 0x42c], 1
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.005b1170
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 1
push str.wpsrv
lea ecx, [ebp - 0x434]
push ecx
call fcn.00407ff0
add esp, 0xc
mov dword [ebp - 0x430], eax
mov ecx, dword [ebp - 0x430]
call fcn.00403580
push eax
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x434]
call fcn.00405df0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x461fed
jmp 0x46210c
mov dword [ebp - 0x43c], 1
mov dword [ebp - 0x438], 0x104
mov cx, word [0x62f554]
mov word [ebp - 0x414], cx
push 0x206
push 0
lea edx, [ebp - 0x412]
push edx
call fcn.005b1170
add esp, 0xc
xor eax, eax
mov byte [ebp - 0x415], al
lea ecx, [ebp - 0x438]
push ecx
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x43c]
push eax
push 0x62f558
lea ecx, [ebp - 0x415]
call fcn.0045dbb0
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [ebp - 0x420], str.softzhushou
lea ecx, [ebp - 0x414]
mov dword [ebp - 0x41c], ecx
mov edx, dword [ebp - 0x41c]
mov ax, word [edx]
mov word [ebp - 0x422], ax
mov ecx, dword [ebp - 0x420]
cmp ax, word [ecx]
jne 0x4620da
cmp word [ebp - 0x422], 0
je 0x4620ce
mov edx, dword [ebp - 0x41c]
mov ax, word [edx + 2]
mov word [ebp - 0x424], ax
mov ecx, dword [ebp - 0x420]
cmp ax, word [ecx + 2]
jne 0x4620da
add dword [ebp - 0x41c], 4
add dword [ebp - 0x420], 4
cmp word [ebp - 0x424], 0
jne 0x462074
mov dword [ebp - 0x428], 0
jmp 0x4620e5
sbb edx, edx
or edx, 1
mov dword [ebp - 0x428], edx
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x440], eax
cmp dword [ebp - 0x440], 0
jne 0x462104
mov dword [ebp - 0x42c], 0
xor ecx, ecx
jne 0x461f53
mov eax, dword [ebp - 0x42c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052e057
mov esp, ebp
pop ebp
ret
Function at 0x469210
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x610a38
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x6c0924]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
cmp dword [ebp + 8], 0
je 0x469247
mov dword [ebp - 0x14], 0x6323b4
jmp 0x46924e
mov dword [ebp - 0x14], 0x6323b8
xor eax, eax
mov byte [ebp - 0xd], al
push 2
mov ecx, dword [ebp - 0x14]
push ecx
push 1
push 0
push 0x6323bc
lea edx, [ebp - 0x20]
push edx
call fcn.00407ff0
add esp, 0xc
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
call fcn.00403580
push eax
lea ecx, [ebp - 0xd]
call fcn.0045e3e0
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00405df0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x46e840
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x610de1
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x6c0924]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb0], ecx
call fcn.0040f510
mov ecx, eax
call fcn.00415b50
mov dword [ebp - 0xac], eax
call fcn.00478bf0
mov dword [ebp - 0x8c], eax
push 1
mov eax, dword [ebp - 0x8c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x8c]
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 0x94], al
cmp byte [ebp - 0x94], 1
je 0x46e8b7
jmp 0x46e99b
push str.d:jenkins.jenkinsworkspacelib_commonguardhpguardhpwndmainwndshadowedge.cpp
lea ecx, [ebp - 0x40]
call fcn.00408710
mov dword [ebp - 4], 0
push 0x632cdc
lea ecx, [ebp - 0x28]
call fcn.00408710
mov byte [ebp - 4], 1
call fcn.00478bf0
mov dword [ebp - 0x90], eax
push str.user_clock_close_btn
lea ecx, [ebp - 0xa8]
push ecx
call fcn.0040b970
add esp, 8
mov dword [ebp - 0x98], eax
mov edx, dword [ebp - 0x98]
mov dword [ebp - 0x9c], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x9c]
push eax
push 0x45
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x148]
call fcn.0040d3b0
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xa4], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0xa4]
call fcn.0040b2a0
push eax
mov ecx, dword [ebp - 0x90]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x90]
mov eax, dword [edx + 0x1c]
call eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x148]
call fcn.0040e140
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa8]
call fcn.00405df0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00405e70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00405e70
push 0
mov ecx, dword [ebp - 0xac]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x632cf8
lea ecx, [ebp - 0x88]
call fcn.0040d080
mov dword [ebp - 4], 4
push str.close_wnd
lea ecx, [ebp - 0x70]
call fcn.0040d080
mov byte [ebp - 4], 5
push 0x632d10
lea ecx, [ebp - 0x58]
call fcn.0040d080
mov byte [ebp - 4], 6
push 1
lea edx, [ebp - 0x88]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.0040f720
mov ecx, eax
call fcn.00449160
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x58]
call fcn.0040df90
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x70]
call fcn.0040df90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.0040df90
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052e057
mov esp, ebp
pop ebp
ret 0x10
Function at 0x470ea0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1878
call fcn.0052e070
mov eax, dword [0x6c0924]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1828], ecx
mov dword [ebp - 0x1814], 0
mov dword [ebp - 0x182c], 0x400
push 0x800
push 0
lea eax, [ebp - 0x804]
push eax
call fcn.005b1170
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1810], ecx
lea edx, [ebp - 0x804]
mov dword [ebp - 0x180c], edx
mov eax, dword [ebp - 0x180c]
mov dword [ebp - 0x1830], eax
mov ecx, dword [ebp - 0x1810]
mov dx, word [ecx]
mov word [ebp - 0x1806], dx
mov eax, dword [ebp - 0x180c]
mov cx, word [ebp - 0x1806]
mov word [eax], cx
mov edx, dword [ebp - 0x1810]
add edx, 2
mov dword [ebp - 0x1810], edx
mov eax, dword [ebp - 0x180c]
add eax, 2
mov dword [ebp - 0x180c], eax
cmp word [ebp - 0x1806], 0
jne 0x470f08
cmp dword [ebp + 0x20], 0
je 0x470f70
lea ecx, [ebp - 0x804]
push ecx
call fcn.00479d20
add esp, 4
test eax, eax
jne 0x470f70
xor eax, eax
jmp 0x4710c7
push 0x44
push 0
lea edx, [ebp - 0x1878]
push edx
call fcn.005b1170
add esp, 0xc
push 0x44
push 0
lea eax, [ebp - 0x1878]
push eax
call fcn.005b1170
add esp, 0xc
mov dword [ebp - 0x1878], 0x44
lea ecx, [ebp - 0x1878]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 0x184c], 1
mov dx, word [ebp + 0x14]
mov word [ebp - 0x1848], dx
xor eax, eax
mov dword [ebp - 0x1824], eax
mov dword [ebp - 0x1820], eax
mov dword [ebp - 0x181c], eax
mov dword [ebp - 0x1818], eax
xor ecx, ecx
mov dword [ebp - 0x1824], ecx
mov dword [ebp - 0x1820], ecx
mov dword [ebp - 0x181c], ecx
mov dword [ebp - 0x1818], ecx
mov dword [ebp - 0x1834], 0x800
push 0x1000
push 0
lea edx, [ebp - 0x1804]
push edx
call fcn.005b1170
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x47103d
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x804]
push ecx
push str.__s___s
lea edx, [ebp - 0x1804]
push edx
call fcn.0044ef80
add esp, 0x10
jmp 0x471058
lea eax, [ebp - 0x804]
push eax
push 0x634564
lea ecx, [ebp - 0x1804]
push ecx
call fcn.0044ef80
add esp, 0xc
lea edx, [ebp - 0x1824]
push edx
lea eax, [ebp - 0x1878]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x1804]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x1814], eax
cmp dword [ebp - 0x1814], 0
je 0x4710c1
cmp dword [ebp + 0x18], 0
je 0x4710a7
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp - 0x1824]
push eax
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov ecx, dword [ebp - 0x1820]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x1824]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1814]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052e057
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x477d10
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61172a
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6c0924]
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.00403160
mov ecx, eax
test ecx, ecx
je 0x477ed4
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.00403160
mov ecx, eax
test ecx, ecx
je 0x477ede
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 1
call fcn.00403160
mov ecx, eax
test ecx, ecx
je 0x477ee8
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 0x477df2
xor ecx, ecx
jmp 0x477e10
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 0x477e00
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00403a90
push edi
mov ecx, ebx
call fcn.00405f50
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x477e2c
xor ecx, ecx
jmp 0x477e44
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x477e34
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x1c]
call fcn.00403a90
push ebx
lea eax, [ebp + 0x10]
mov ecx, esi
push eax
call fcn.00478680
push eax
mov ecx, ebx
mov byte [ebp - 4], 6
call fcn.00405f50
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 0x477e85
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 0x477ebe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x477ebe
cmp dword [esi + 0x10], 0
je 0x477eb5
push dword [edi]
call fcn.005c4c67
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.00402c00
push 0x80004005
call fcn.00402c00
push 0x80004005
call fcn.00402c00
int3
Function at 0x478480
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x611818
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x6c0924]
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 0x478654
push str.__set_log_lev0
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4784d5
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 4]
jmp 0x478654
push str.__set_log_lev1
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4784f3
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 4]
jmp 0x478654
push str.__set_log_lev2
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x478511
mov eax, dword [edi]
mov ecx, edi
push 2
call dword [eax + 4]
jmp 0x478654
push str.__set_log_lev3
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x47852f
mov eax, dword [edi]
mov ecx, edi
push 3
call dword [eax + 4]
jmp 0x478654
push str.__reload_log_switch
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x478654
lea eax, [edi + 4]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x478554
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 0x478587
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
cmp ecx, 8
jae 0x47859f
movups xmm0, xmmword [eax]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 7
movups xmmword [ebp - 0x28], xmm0
jmp 0x4785dd
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.004136c0
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.005b0670
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
push 0x637a5c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00413820
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 0x47860b
mov dword [edi + 0x1c], 0
cmp dword [edi + 0x28], 0
je 0x478644
mov eax, dword [edi]
mov ecx, edi
push 1
mov eax, dword [eax + 8]
call eax
test al, al
je 0x478644
push str._______log_reload_switch
lea ecx, [ebp - 0x4c]
call fcn.0040d080
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.0040df90
lea ecx, [ebp - 0x28]
call fcn.0040df90
lea ecx, [ebp - 0x34]
call fcn.00477f20
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.0052e057
mov esp, ebp
pop ebp
ret 4
Function at 0x478d20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x611937
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x6c0924]
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 0x478d6a
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 0x478d76
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [edi + 0x2c]
call fcn.00413a60
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 0x478de3
push 0x48
call fcn.0052e0d3
mov ebx, eax
add esp, 4
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 1
test ebx, ebx
je 0x478dd7
push 0x48
push 0
push ebx
call fcn.005b1170
add esp, 0xc
mov ecx, ebx
push dword [ebp + 0x14]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call fcn.00477d10
jmp 0x478dd9
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 0x478e10
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.00413a60
push 3
push 0x637a5c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00413850
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 0x478e5f
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], eax
cmp dword [edi + 0x28], 0
je 0x478eae
mov eax, dword [edi]
mov ecx, edi
push 1
mov eax, dword [eax + 8]
call eax
test al, al
je 0x478eae
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.00413a60
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.0040df90
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x478ee4
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x478eda
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x478f21
push edx
push ecx
call fcn.0052dbb4
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 0x478f03
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.0052e057
mov esp, ebp
pop ebp
ret 0x14
call fcn.005b4ae9
int3