joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402375
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4e50cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_IsWindow]
push dword [esi + 0x140]
call edi
test eax, eax
jne 0x4023ae
push eax
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [esi + 0x140], eax
push dword [esi + 0x138]
call edi
mov ebx, dword [sym.imp.USER32.dll_FindWindowExW]
test eax, eax
jne 0x4023d7
push 0
push str.TrayNotifyWnd
push 0
push dword [esi + 0x140]
call ebx
mov dword [esi + 0x138], eax
push dword [esi + 0x13c]
call edi
test eax, eax
jne 0x40240b
push eax
push str.ReBarWindow32
push eax
push dword [esi + 0x140]
call ebx
lea ecx, [ebp - 0x14]
mov dword [esi + 0x13c], eax
push ecx
xorps xmm0, xmm0
push eax
movdqu xmmword [ebp - 0x14], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [esi + 0x14c]
call edi
test eax, eax
jne 0x40242c
push eax
push str.MSTaskSwWClass
push eax
push dword [esi + 0x13c]
call ebx
mov dword [esi + 0x14c], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a5ae0
mov esp, ebp
pop ebp
ret
Function at 0x402990
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4e50cc]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x224]
mov ebx, ecx
xorps xmm0, xmm0
push eax
movdqu xmmword [ebp - 0x224], xmm0
push dword [ebx + 0x13c]
call edi
mov esi, dword [ebx + 0x13c]
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4029ce
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x214]
push 0x103
push eax
push esi
call dword [sym.imp.USER32.dll_GetClassNameW]
lea eax, [ebp - 0x234]
xorps xmm0, xmm0
push eax
push esi
movdqu xmmword [ebp - 0x234], xmm0
call edi
mov eax, dword [ebx + 0x15c]
test eax, eax
je 0x402af2
cmp eax, 1
je 0x402af2
mov ecx, dword [ebp - 0x234]
mov eax, ecx
sub eax, dword [ebp - 0x21c]
mov esi, dword [ebp + 8]
cmp eax, esi
jge 0x402a97
mov eax, dword [ebp - 0x218]
sub ecx, esi
sub eax, dword [ebp - 0x220]
push 0x216
push eax
mov dword [ebp - 0x21c], ecx
sub ecx, dword [ebp - 0x224]
push ecx
push dword [ebp - 0x220]
push dword [ebp - 0x224]
push 0
push dword [ebx + 0x13c]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 0x234]
sub ecx, esi
cmp dword [ebx + 0x160], ecx
je 0x402ba0
push 4
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [ebp - 0x234]
push 0x216
push dword [ebp + 8]
sub edi, esi
mov esi, dword [ebp - 0x220]
push dword [ebp + 8]
push 0
push 0
push dword [ebx + 0x13c]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0x215
push 0
push 0
push esi
push edi
push dword [ebx + 0x13c]
jmp 0x402b91
mov ecx, dword [ebp - 0x230]
mov eax, ecx
sub eax, dword [ebp - 0x218]
cmp eax, dword [ebp + 8]
jge 0x402b41
sub ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x21c]
sub eax, dword [ebp - 0x224]
push 0x216
mov dword [ebp - 0x218], ecx
sub ecx, dword [ebp - 0x220]
push ecx
push eax
push dword [ebp - 0x220]
push dword [ebp - 0x224]
push 0
push dword [ebx + 0x13c]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebp - 0x228]
sub eax, dword [ebp + 8]
cmp dword [ebx + 0x160], eax
je 0x402ba0
push 4
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [ebp - 0x230]
xor eax, eax
mov esi, dword [ebp - 0x224]
sub edi, dword [ebp + 8]
push 0x216
push dword [ebp + 8]
push dword [ebp + 8]
push eax
push eax
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0x215
xor eax, eax
push eax
push eax
push edi
push esi
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [ebx + 0x160], edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a5ae0
mov esp, ebp
pop ebp
ret 4
Function at 0x40653d
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4e50cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
test esi, esi
je 0x40660b
push 0x206
mov word [ebp - 0x210], ax
xor edi, edi
lea eax, [ebp - 0x20e]
push edi
push eax
call sub.MSVCR120.dll_memset
push esi
push str.Light_58A7FE0C_2776_4E72_91C0_7B7FF945875E__d
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push 0x103
push eax
call dword [sym.imp.MSVCR120.dll__snwprintf_s]
lea eax, [ebp - 0x210]
mov ebx, str.LightTipsApp.cpp
push eax
push str.CheckTipsHadExistById_szMutex:_s
push edi
push ebx
call fcn.00416f00
add esp, 0x30
call fcn.004061f6
mov ecx, eax
cmp dword [ecx + 0x128], 1
je 0x4065c3
mov eax, edi
jmp 0x4065cb
xor eax, eax
cmp dword [ecx + 4], edi
cmovne eax, ecx
lea ecx, [ebp - 0x210]
push ecx
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x406608
push str.CheckTipsHadExistById_CreateMutex_Had_Existed
push edi
push ebx
call fcn.00416f00
add esp, 0xc
test esi, esi
je 0x406604
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40660b
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a5ae0
mov esp, ebp
pop ebp
ret
Function at 0x40d16f
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b34c3
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4e50cc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
lea ecx, [esp + 0x14]
push str.border
mov byte [esp + 0x17], bl
call fcn.00402cfd
lea eax, [esp + 0x13]
mov dword [esp + 0x38], ebx
mov ecx, dword [esi + 0x1d4]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004190e0
or dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x14]
push ebx
push 1
call fcn.0040304c
cmp byte [esp + 0x13], bl
mov ecx, dword [esi + 0x10c]
mov edi, dword [esi + 0xc]
push 0x1f
pop eax
cmovne ebx, eax
sub ecx, dword [esi + 4]
add edi, 0xffffffe2
add edi, ecx
mov ecx, dword [esi + 0x1e4]
test ecx, ecx
je 0x40d20d
push 0
push 0
push edi
call fcn.00449980
sub edi, 0x30
mov ecx, dword [esi + 0x1ec]
test ecx, ecx
je 0x40d224
push 0
push 0
push edi
call fcn.00449980
sub edi, 0x30
mov ecx, dword [esi + 0x1e8]
test ecx, ecx
je 0x40d238
push 0
push 0
push edi
call fcn.00449980
mov ecx, dword [esi + 0x1f4]
test ecx, ecx
je 0x40d261
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 8]
sub eax, ebx
dec eax
push ecx
push eax
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
sub eax, 2
push eax
lea eax, [ebx + 1]
push eax
push ecx
call fcn.00449900
mov ecx, dword [esi + 0x1f8]
test ecx, ecx
je 0x40d28a
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 8]
sub eax, ebx
dec eax
push ecx
push eax
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
sub eax, 2
push eax
lea eax, [ebx + 1]
push eax
push ecx
call fcn.00449900
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40dca4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40dcfd
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40dcee
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x40dcea
cmp esi, ecx
jae 0x40dcee
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec edx
jne 0x40dcda
cmp esi, ecx
jb 0x40dcf2
xor eax, eax
jmp 0x40dcfc
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40f649
Capabilities:
Hide graphical window

Disassembly:
push 0x54
mov eax, 0x4b3ade
call fcn.004a6dbe
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push str.toolwindow
lea ecx, [ebp - 0x30]
mov dword [edi + 0x5f0], eax
mov byte [ebp - 0x12], bl
call fcn.00402cfd
lea eax, [ebp - 0x12]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [edi + 0x138]
call fcn.004190e0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
push ebx
push 1
call fcn.0040304c
push dword [0x4e5328]
push str.LightTipsWindow_ShowTipsWindow_nId:_d
push ebx
push str.LightTipsWindow.cpp
call fcn.00416f00
add esp, 0x10
lea eax, [ebp - 0x60]
mov esi, 0x4e5318
mov ecx, esi
push eax
call fcn.00405591
mov dword [ebp - 4], 1
inc ebx
mov edx, str.mini
mov dword [ebp - 0x18], ebx
mov ecx, eax
call fcn.0040500a
test al, al
jne 0x40f70d
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call fcn.00405591
push 3
pop ebx
mov dword [ebp - 4], 2
mov edx, str.info
mov ecx, eax
mov dword [ebp - 0x18], ebx
call fcn.0040500a
mov byte [ebp - 0x11], 0
test al, al
je 0x40f711
mov byte [ebp - 0x11], 1
test bl, 2
je 0x40f725
push 0
push 1
lea ecx, [ebp - 0x48]
and ebx, 0xfffffffd
call fcn.004032eb
test bl, 1
je 0x40f736
push 0
push 1
lea ecx, [ebp - 0x60]
call fcn.004032eb
cmp byte [ebp - 0x11], 0
je 0x40f744
mov ecx, dword [edi + 4]
call fcn.00453a10
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_BringWindowToTop]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp byte [ebp - 0x12], 0
je 0x40f797
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
xor eax, eax
mov ebx, 0x253
push ebx
push eax
push eax
push eax
push eax
push 0xffffffffffffffff
push dword [edi + 4]
call esi
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push 0xfffffffffffffffe
push dword [edi + 4]
call esi
call fcn.004a6d8c
ret
Function at 0x413de3
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b4448
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4e50cc]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x4e50cc]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x18], esi
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.gdiplus.dll_GdipCreateFromHDC]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x5c], ebx
call fcn.004096fc
xor eax, eax
mov dword [esp + 0x1c], 0xe53385ff
lea edi, [esp + 0x3c]
stosd dword es:[edi], eax
lea ecx, [esp + 0x3c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
call fcn.0040968c
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
mov esi, dword [sym.imp.gdiplus.dll_GdipFillRectangleI]
push 0x1e
push eax
push ebx
push ebx
push dword [esp + 0x50]
push dword [esp + 0x34]
call esi
mov ebx, dword [esp + 0x24]
lea edi, [esp + 0x30]
test eax, eax
mov dword [esp + 0x1c], 0xfff5f5f5
lea ecx, [esp + 0x30]
cmovne ebx, eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
call fcn.0040968c
mov edi, dword [esp + 0x18]
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 8]
mov eax, dword [edi + 0xc]
sub ecx, 0x1e
sub eax, dword [edi + 4]
push ecx
push eax
push 0x1e
push 0
push dword [esp + 0x44]
push dword [esp + 0x34]
call esi
test eax, eax
cmovne ebx, eax
xor ecx, ecx
lea eax, [esp + 0x28]
mov dword [esp + 0x28], ecx
push eax
push ecx
push ecx
mov dword [esp], 0x3f800000
push 0xffb8c0cc
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], ecx
call dword [sym.imp.gdiplus.dll_GdipCreatePen1]
mov dword [esp + 0x2c], eax
mov byte [esp + 0x58], 3
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 8]
mov eax, dword [edi + 0xc]
dec ecx
sub eax, dword [edi + 4]
push ecx
dec eax
push eax
push dword [edi + 8]
push dword [edi + 4]
push dword [esp + 0x38]
push dword [esp + 0x34]
call dword [sym.imp.gdiplus.dll_GdipDrawRectangleI]
push dword [esp + 0x14]
test eax, eax
mov ecx, edi
push dword [esp + 0x14]
cmovne ebx, eax
mov dword [esp + 0x2c], ebx
call fcn.00443b00
push dword [esp + 0x28]
call dword [sym.imp.gdiplus.dll_GdipDeletePen]
push dword [esp + 0x34]
mov esi, dword [sym.imp.gdiplus.dll_GdipDeleteBrush]
call esi
push dword [esp + 0x40]
call esi
push dword [esp + 0x20]
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004a5ae0
mov esp, ebp
pop ebp
ret 8
Function at 0x415240
Capabilities:
Get routing table

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4e50cc]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov eax, dword [0x4e5288]
test eax, eax
je 0x415276
mov ecx, edi
sub ecx, dword [0x4ed9e0]
cmp ecx, 0x3e8
jb 0x415320
push ebx
push esi
push 0x3c
mov dword [ebp - 8], 0
call dword [sym.imp.MSVCR120.dll_malloc]
add esp, 4
mov esi, eax
lea eax, [ebp - 8]
push 0
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetIpForwardTable]
mov ebx, dword [sym.imp.MSVCR120.dll_free]
cmp eax, 0x7a
jne 0x4152cd
push esi
call ebx
mov eax, dword [ebp - 8]
add esp, 4
cmp eax, 0xb2c
ja 0x4152d7
push eax
call dword [sym.imp.MSVCR120.dll_malloc]
add esp, 4
mov esi, eax
lea eax, [ebp - 8]
push 0
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetIpForwardTable]
test eax, eax
je 0x4152e8
push esi
call ebx
add esp, 4
mov dword [0x4e5288], 1
mov eax, 1
jmp 0x415318
mov edx, dword [esi]
xor ecx, ecx
test edx, edx
je 0x415306
lea eax, [esi + 4]
cmp dword [eax], 0
jne 0x4152fe
cmp dword [eax + 4], 0
je 0x4152d1
inc ecx
add eax, 0x38
cmp ecx, edx
jb 0x4152f3
push esi
call ebx
add esp, 4
mov dword [0x4e5288], 0
xor eax, eax
pop esi
mov dword [0x4ed9e0], edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004a5ae0
mov esp, ebp
pop ebp
ret
Function at 0x415ab0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4e50cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, edx
push edi
mov edi, dword [ebp + 0x14]
test ecx, ecx
je 0x415c3d
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415ae5
sub ecx, edx
sar ecx, 1
je 0x415c3d
test esi, esi
je 0x415c3d
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415b07
sub ecx, edx
sar ecx, 1
je 0x415c3d
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x4bfa28
push 1
push 0
push 0x4bfa58
mov dword [ebp - 0xc], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x415c3d
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x415c3d
mov eax, dword [ecx]
lea edx, [ebp - 0xc]
push edx
push 0x4bfa68
push ecx
call dword [eax]
test eax, eax
js 0x415c34
cmp dword [ebp - 0xc], 0
je 0x415c34
mov eax, dword [ebp - 8]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
test eax, eax
jns 0x415b9b
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], 0
jmp 0x415c37
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x415bb0
mov eax, dword [ebp - 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
test eax, eax
js 0x415b83
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x415bc5
mov eax, dword [ebp - 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
js 0x415b83
test ebx, ebx
je 0x415bd7
mov eax, dword [ebp - 8]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
test eax, eax
js 0x415b83
test edi, edi
je 0x415beb
mov eax, dword [ebp - 8]
push 0
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
test eax, eax
js 0x415b83
mov eax, dword [ebp - 8]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
test eax, eax
js 0x415b83
mov eax, dword [ebp - 0xc]
push 1
push dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov ecx, dword [ebp - 0xc]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
xor eax, eax
test esi, esi
pop edi
pop esi
setns al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5ae0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a5ae0
mov esp, ebp
pop ebp
ret
Function at 0x415fa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4e50cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], eax
xor ebx, ebx
mov esi, edx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x10], ebx
jb 0x415fd0
mov ecx, dword [edi]
lea eax, [ebp - 0xc]
mov edx, 0x20019
push eax
call fcn.00415cd0
add esp, 4
test eax, eax
jne 0x416017
cmp dword [edi + 0x14], 8
jb 0x415fed
mov edi, dword [edi]
lea eax, [ebp - 0xc]
push eax
call fcn.00415f30
neg eax
mov ecx, edi
sbb eax, eax
and eax, 0x100
lea edx, [eax + 0x20019]
call fcn.00415cd0
add esp, 4
test eax, eax
je 0x4160a7
cmp dword [esi + 0x10], ebx
jne 0x416023
mov ebx, eax
jmp 0x4160a7
cmp dword [esi + 0x14], 8
jb 0x41602d
mov eax, dword [esi]
jmp 0x41602f
mov eax, esi
lea ecx, [ebp - 0x10]
push ecx
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 8], 1
jne 0x4160a7
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4160a7
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x4160a7
cmp dword [esi + 0x14], 8
jb 0x416070
mov esi, dword [esi]
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 8]
push eax
push 0
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x416097
mov ecx, dword [ebp - 0x14]
push edi
call fcn.0040317d
mov ebx, 1
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x4160b5
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a5ae0
mov esp, ebp
pop ebp
ret

Function at 0x416340
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x4e50cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, edx
mov dword [ebp - 0x80c], ecx
xor esi, esi
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x808], ax
lea eax, [ebp - 0x806]
push eax
call sub.MSVCR120.dll_memset
push 0
call dword [sym.imp.MSVCR120.dll__time64]
push edx
push eax
push ebx
push str._s.old__d
lea eax, [ebp - 0x808]
push 0x400
push eax
call fcn.004044e3
add esp, 0x28
lea eax, [ebp - 0x808]
push 1
push eax
push ebx
call edi
test eax, eax
je 0x4163c4
push 1
push ebx
push dword [ebp - 0x80c]
call edi
test eax, eax
jne 0x4163dd
inc esi
cmp esi, 0x20
jb 0x416366
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5ae0
mov esp, ebp
pop ebp
ret
push 4
push 0
lea ecx, [ebp - 0x808]
push ecx
call edi
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a5ae0
mov esp, ebp
pop ebp
ret
Function at 0x416470
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x4e50cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov byte [ebp - 0x130], 0
push 0x12b
lea eax, [ebp - 0x12f]
push 0
push eax
mov dword [edi], vtable.core_log::log_device_file.0
call sub.MSVCR120.dll_memset
add esp, 0xc
call fcn.00401748
mov ecx, eax
test ecx, ecx
je 0x416561
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, eax
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push str.c:MyLog_
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4164e1
test al, 0x10
jne 0x4164ee
push 0
push str.c:MyLog_
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebp - 0x13a]
push eax
movzx eax, word [ebp - 0x13e]
push eax
movzx eax, word [ebp - 0x140]
push eax
push str.c:MyLogMyLog__d__02d__02d.log
push 0xffffffffffffffff
lea eax, [ebp - 0x130]
push 0x12c
push eax
call dword [sym.imp.MSVCR120.dll__snprintf_s]
push 0x4c73d4
lea eax, [ebp - 0x130]
push eax
lea eax, [edi + 4]
push eax
call dword [sym.imp.MSVCR120.dll_fopen_s]
add esp, 0x28
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41654f
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004a5ae0
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040dc51
int3

Function at 0x4165b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
je 0x4165ea
push eax
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [sym.imp.MSVCR120.dll_fwrite]
push dword [edi + 4]
push 2
push 1
push 0x4c73d0
call dword [sym.imp.MSVCR120.dll_fwrite]
push dword [edi + 4]
call dword [sym.imp.MSVCR120.dll_fflush]
add esp, 0x24
pop edi
pop ebp
ret 8

Function at 0x416730
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x20119
push 0
push str.SOFTWAREMyLogLog
push reloc.OLEAUT32.dll_SysReAllocString
mov word [0x4eda74], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4167df
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 4
push eax
push 0
push 0
push str.EnableLogToView
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, 1
test eax, eax
jne 0x4167a5
movzx eax, byte [0x4eda74]
cmp dword [ebp - 4], edi
cmove eax, edi
mov byte [0x4eda74], al
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push str.EnableLogToFile
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4167d5
movzx eax, byte [0x4eda75]
cmp dword [ebp - 4], edi
cmove eax, edi
mov byte [0x4eda75], al
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov esp, ebp
pop ebp
ret