joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a470
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x670
mov eax, dword [0x5a4e60]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x40a6c6
xor eax, eax
cmp ax, word [esi]
je 0x40a6c6
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x212]
push edx
xor edi, edi
mov word [ebp - 0x214], cx
call fcn.00525e90
add esp, 0xc
push 0x250
lea eax, [ebp - 0x66c]
push edi
push eax
call fcn.00525e90
add esp, 0xc
push esi
lea ecx, [ebp - 0x214]
push 0x104
push ecx
call fcn.005231b8
lea eax, [ebp - 0x214]
add esp, 0xc
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a4f0
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x216], 0x5c
je 0x40a523
push 0x57e494
lea edx, [ebp - 0x214]
push 0x104
push edx
call fcn.00523249
add esp, 0xc
push 0x57e498
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.00523249
add esp, 0xc
lea ecx, [ebp - 0x66c]
push ecx
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40a56d
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00523022
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x40a580
mov ecx, 0x57cf34
lea eax, [ebp - 0x640]
jmp 0x40a590
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40a5b6
test dx, dx
je 0x40a5b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40a5b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x40a590
xor eax, eax
jmp 0x40a5bb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40a69a
mov ecx, 0x57e49c
lea eax, [ebp - 0x640]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40a5f6
test dx, dx
je 0x40a5f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40a5f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x40a5d0
xor eax, eax
jmp 0x40a5fb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40a69a
test byte [ebp - 0x66c], 0x10
je 0x40a699
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x41a]
push ecx
mov word [ebp - 0x41c], ax
call fcn.00525e90
add esp, 0xc
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x41c]
push 0x104
push eax
call fcn.005231b8
lea eax, [ebp - 0x41c]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a652
sub eax, edx
sar eax, 1
lea edx, [ebp - 0x640]
xor ecx, ecx
push edx
mov word [ebp + eax*2 - 0x41e], cx
lea eax, [ebp - 0x41c]
push 0x104
push eax
call fcn.00523249
lea ecx, [ebp - 0x41c]
add esp, 0xc
push ecx
call fcn.0040a470
add esp, 4
add edi, eax
jmp 0x40a69a
inc edi
lea edx, [ebp - 0x66c]
push edx
push esi
call ebx
test eax, eax
jne 0x40a580
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00523022
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00523022
mov esp, ebp
pop ebp
ret
Function at 0x40bb60
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x640
mov eax, dword [0x5a4e60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp esi, ebx
je 0x40bbc4
xor eax, eax
cmp ax, word [esi]
je 0x40bbc4
xor ecx, ecx
cmp ecx, 0x57cbdc
je 0x40bbc4
push ebx
lea edx, [ebp - 0x640]
push edx
push esi
mov dword [ebp - 0x640], ebx
mov dword [ebp - 0x63c], ebx
mov dword [ebp - 0x638], ebx
mov dword [ebp - 0x634], ebx
mov dword [ebp - 0x630], ebx
mov dword [ebp - 0x62c], ebx
call fcn.0043566e
test eax, eax
jne 0x40bbd6
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00523022
mov esp, ebp
pop ebp
ret
push edi
push 0x206
lea ecx, [ebp - 0x20a]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x20c], ax
call fcn.00525e90
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
push ebx
push ebx
push 0x19
push ebx
call edi
test eax, eax
js 0x40bce1
push 0x206
lea ecx, [ebp - 0x412]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x414], ax
call fcn.00525e90
add esp, 0xc
lea edx, [ebp - 0x414]
push edx
push ebx
push ebx
push 5
push ebx
call edi
lea eax, [ebp - 0x414]
push 0x5c
push eax
call fcn.0052321b
lea ecx, [ebp - 0x20c]
push 0x5c
push ecx
mov edi, eax
call fcn.0052321b
add esp, 0x10
cmp edi, ebx
je 0x40bc9a
cmp eax, ebx
je 0x40bc9a
push 0x57cbdc
push eax
lea eax, [ebp - 0x414]
push eax
push str._s_s_s.lnk
mov ecx, eax
xor edx, edx
push 0x104
push ecx
mov word [edi], dx
call fcn.0052350d
add esp, 0x18
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x57cbdc
lea eax, [ebp - 0x20c]
push eax
push str._s_s.lnk
mov ecx, eax
push 0x104
push ecx
call fcn.0052350d
add esp, 0x14
push str._QshaogamerD
mov edi, 0x57cbdc
lea ebx, [ebp - 0x20c]
call fcn.0040bfb0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00523022
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00523022
mov esp, ebp
pop ebp
ret

Function at 0x40bd00
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5a4e60]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp ax, word [esi]
je 0x40bd8f
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x20a]
push edx
mov word [ebp - 0x20c], cx
call fcn.00525e90
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x19
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x40bd8f
push esi
lea ecx, [ebp - 0x20c]
push ecx
push str._s_s.lnk
mov edx, ecx
push 0x104
push edx
call fcn.0052350d
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00523022
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00523022
mov esp, ebp
pop ebp
ret
Function at 0x40bda0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x5a4e60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
xor eax, eax
push edi
mov edi, ecx
cmp esi, eax
je 0x40becb
xor ecx, ecx
cmp cx, word [esi]
je 0x40becb
cmp edi, eax
je 0x40becb
xor edx, edx
cmp dx, word [edi]
je 0x40becb
push eax
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x438]
push eax
push esi
call fcn.0043566e
test eax, eax
je 0x40becb
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x20a]
push edx
mov word [ebp - 0x20c], cx
call fcn.00525e90
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x17
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x40becb
xor ecx, ecx
cmp ecx, 0x57cbf8
je 0x40be8d
push 0x57cbf8
lea edx, [ebp - 0x20c]
push edx
push str._s_s
mov eax, edx
push 0x104
push eax
call fcn.0052350d
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00523c87
add esp, 0x18
push edi
lea edx, [ebp - 0x20c]
push edx
push str._s_s.lnk
mov eax, edx
push 0x104
push eax
call fcn.0052350d
add esp, 0x14
push ebx
xor edi, edi
lea ebx, [ebp - 0x20c]
call fcn.0040bfb0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00523022
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00523022
mov esp, ebp
pop ebp
ret 4

Function at 0x40bee0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5a4e60]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp ax, word [esi]
jne 0x40bf0a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00523022
mov esp, ebp
pop ebp
ret
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x20e]
push edx
mov word [ebp - 0x210], cx
call fcn.00525e90
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push 0x17
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x40befa
xor ecx, ecx
cmp ecx, 0x57cbf8
je 0x40bf6c
push 0x57cbf8
lea edx, [ebp - 0x210]
push edx
push str._s_s
mov eax, edx
push 0x104
push eax
call fcn.0052350d
add esp, 0x14
push esi
lea ecx, [ebp - 0x210]
push ecx
push str._s_s.lnk
mov edx, ecx
push 0x104
push edx
call fcn.0052350d
add esp, 0x14
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
neg eax
call fcn.00523022
mov esp, ebp
pop ebp
ret
Function at 0x40bfb0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
test ebx, ebx
jne 0x40bfc2
xor eax, eax
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 4]
push eax
push 0x556f54
push 1
push 0
push 0x556f44
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40bfba
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push esi
push eax
call edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push 0
push esi
push eax
call edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x57ae28
push eax
mov eax, dword [ecx]
call eax
test eax, eax
js 0x40bfba
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x2c]
call eax
test edi, edi
je 0x40c034
cmp word [edi], 0
je 0x40c034
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push edi
push eax
call edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push 2
push ebx
push eax
call edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x40d160
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54b308
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x5a4e60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
cmp esi, edi
je 0x40d1f8
movzx ebx, word [ebp + 8]
push edi
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
push ebx
push esi
call dword [sym.imp.USER32.dll_LoadBitmapW]
mov dword [ebp - 0x18], eax
cmp eax, edi
jne 0x40d2e0
mov dword [ebp - 0x14], edi
push 0x57d160
push ebx
push esi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, edi
jne 0x40d20c
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, edi
je 0x40d1f8
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
xor eax, eax
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 ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x40d244
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40d230
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
push eax
push 1
push 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov esi, dword [ecx]
mov ebx, ecx
lea ecx, [ebp - 0x1c]
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [esi + 0x10]
push eax
push ebx
call edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.0040cf60
add esp, 4
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
test esi, esi
je 0x40d21a
push 0xff00ff
mov ecx, esi
call fcn.0040d300
add esp, 4
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x40d2c0
mov ecx, dword [esi + 4]
push 0xffff00ff
lea eax, [ebp - 0x18]
push eax
push ecx
call dword [sym.imp.gdiplus.dll_GdipCreateHBITMAPFromBitmap]
test eax, eax
je 0x40d2c0
mov dword [esi + 8], eax
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40d2e0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411790
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x484
mov eax, dword [0x5a4e60]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x400
push eax
mov dword [ebp - 0x470], eax
mov dword [ebp - 0x46c], eax
lea eax, [ebp - 0x414]
push eax
mov esi, ecx
mov dword [ebp - 0x480], 0x67452301
mov dword [ebp - 0x47c], 0xefcdab89
mov dword [ebp - 0x478], 0x98badcfe
mov dword [ebp - 0x474], 0x10325476
call fcn.00525e90
push 0x57f4f4
lea ecx, [ebp - 0x484]
push esi
push ecx
call fcn.00523f17
mov eax, dword [ebp - 0x484]
add esp, 0x18
test eax, eax
je 0x4118e5
push eax
push 0x400
lea edx, [ebp - 0x414]
push 1
push edx
call fcn.00525219
add esp, 0x10
test eax, eax
je 0x411863
lea esp, [esp]
lea ecx, [ebp - 0x414]
push ecx
lea esi, [ebp - 0x480]
call fcn.00411900
mov edx, dword [ebp - 0x484]
push edx
push 0x400
lea eax, [ebp - 0x414]
push 1
push eax
call fcn.00525219
add esp, 0x10
test eax, eax
jne 0x411830
lea ecx, [ebp - 0x480]
call fcn.004119b0
mov ecx, dword [ebp - 0x484]
push ecx
call fcn.0052419c
push 0x80
push 0
push edi
call fcn.00525e90
xor eax, eax
add esp, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
xor esi, esi
lea ebx, [ebx]
movzx edx, byte [ebp + esi - 0x428]
push edx
push 0x57f4e8
lea edx, [ebp - 0x14]
call fcn.004121a0
push 8
lea eax, [ebp - 0x14]
push eax
push 0x40
push edi
call fcn.00525236
inc esi
add esp, 0x18
cmp esi, 0x10
jl 0x4118a0
push edi
call fcn.0052530c
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00523022
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00523022
mov esp, ebp
pop ebp
ret

Function at 0x4121c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5a4e60]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x57f4fc]
mov edx, dword [0x57f500]
xor eax, eax
push 0x114
push eax
mov dword [0x5ae4f4], eax
mov dword [0x5ae4f8], eax
mov dword [0x5ae4fc], eax
mov dword [0x5ae500], ecx
mov ecx, dword [0x57f504]
mov dword [0x5ae504], edx
mov edx, dword [0x57f508]
lea eax, [ebp - 0x118]
push eax
mov dword [0x5ae508], ecx
mov dword [0x5ae50c], edx
call fcn.00525e90
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
jb 0x412261
call fcn.00412370
mov eax, 0x5ae4f4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00523022
mov esp, ebp
pop ebp
ret
call fcn.0053c6e0
call fcn.0053c970
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.0053d1c0
push 0x412450
push 0x5ae4d4
call fcn.0053d280
push 0x412490
push 0x5ae4d0
call fcn.0053d280
push 0x4124d0
push 0x5a640c
call fcn.0053d280
call fcn.0053cbd0
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 0x5ae4f4
call fcn.00523022
mov esp, ebp
pop ebp
ret
Function at 0x414560
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042af32
mov esi, dword [eax + 0xc]
push 0x57d160
push 0x81
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x41458d
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4145d4
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push edi
push eax
call fcn.00528a40
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
je 0x4145df
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
push ecx
call fcn.00414290
mov edx, dword [ebp + 8]
add esp, 4
push esi
mov dword [edx], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4159e0
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x5a4e60]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x114
xor esi, esi
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00525e90
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x415abc
cmp dword [ebp - 0x114], 5
jbe 0x415abc
lea edx, [ebp - 0x11c]
push edx
push 0x20019
push esi
mov eax, 4
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x124], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x415abc
lea eax, [ebp - 0x124]
push eax
mov eax, dword [ebp - 0x11c]
lea ecx, [ebp - 0x120]
push ecx
lea edx, [ebp - 0x128]
push edx
push esi
push str.EnableLUA
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x415aaf
xor ecx, ecx
cmp dword [ebp - 0x120], 1
sete cl
mov esi, ecx
mov edx, dword [ebp - 0x11c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00523022
mov esp, ebp
pop ebp
ret
Function at 0x417030
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b0
mov eax, dword [0x5a4e60]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
push edi
mov dword [ebp - 0x1b0], 0
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0x1a8], eax
mov dword [ebp - 0x1a4], eax
mov dword [ebp - 0x1a0], eax
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x198], eax
mov dword [ebp - 0x194], eax
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x18c], eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push 5
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
je 0x417174
mov edi, dword [sym.imp.USER32.dll_GetClassNameW]
lea eax, [ebp - 0x1b0]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextW]
mov dword [ebp - 0x188], eax
lea esp, [esp]
push 0x40
lea ecx, [ebp - 0x84]
push ecx
push esi
call edi
push 0x80
lea edx, [ebp - 0x184]
push edx
push esi
call ebx
mov ecx, 0x57c8e8
lea eax, [ebp - 0x184]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41710c
test dx, dx
je 0x417108
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41710c
add eax, 4
add ecx, 4
test dx, dx
jne 0x4170e6
xor eax, eax
jmp 0x417111
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x417160
mov ecx, str.32770
lea eax, [ebp - 0x84]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x417146
test dx, dx
je 0x417142
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x417146
add eax, 4
add ecx, 4
test dx, dx
jne 0x417120
xor eax, eax
jmp 0x41714b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x417160
mov eax, dword [ebp - 0x188]
mov dword [eax], esi
add eax, 4
mov dword [ebp - 0x188], eax
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
jne 0x4170c0
pop ebx
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
xor esi, esi
lea esp, [esp]
mov eax, dword [ebp + esi*4 - 0x1b0]
test eax, eax
je 0x41719d
push 0
push 0
push 0x404
push eax
call edi
inc esi
cmp esi, 0xa
jl 0x417180
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00523022
mov esp, ebp
pop ebp
ret
Function at 0x4171c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x294
mov eax, dword [0x5a4e60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x28a]
push edx
mov dword [ebp - 0x294], eax
mov word [ebp - 0x28c], cx
call fcn.00525e90
mov ebx, str.Statistic.ini
lea edi, [ebp - 0x28c]
call fcn.0040a3d0
xor eax, eax
push 0x3e
push eax
lea ecx, [ebp - 0x82]
push ecx
mov word [ebp - 0x84], ax
call fcn.00525e90
xor edx, edx
push 0x3e
push edx
lea eax, [ebp - 0x42]
push eax
mov word [ebp - 0x44], dx
call fcn.00525e90
add esp, 0x24
mov ecx, edi
push ecx
push 0x20
lea edx, [ebp - 0x44]
push edx
push str.0_121
push str.ShortKey
push 0x57ce08
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x290]
call fcn.00404770
mov eax, dword [ebp - 0x290]
cmp dword [eax - 0xc], 0
pop edi
pop ebx
jle 0x4172aa
push 0x2c
push eax
call fcn.00523e32
add esp, 8
test eax, eax
je 0x4172aa
sub eax, dword [ebp - 0x290]
sar eax, 1
cmp eax, 0xffffffff
je 0x4172aa
lea edx, [ebp + eax*2 - 0x42]
xor ecx, ecx
push edx
mov word [ebp + eax*2 - 0x44], cx
lea eax, [ebp - 0x84]
push 0x20
push eax
call fcn.005231b8
add esp, 0xc
lea ecx, [ebp - 0x44]
push ecx
call fcn.00523a4c
lea edx, [ebp - 0x84]
push edx
mov dword [esi], eax
call fcn.00523a4c
mov ecx, dword [ebp - 0x294]
mov dword [ecx], eax
mov eax, dword [ebp - 0x290]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4172ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.00523022
mov esp, ebp
pop ebp
ret 4
Function at 0x417310
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x294
mov eax, dword [0x5a4e60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x28a]
push edx
mov dword [ebp - 0x294], eax
mov word [ebp - 0x28c], cx
call fcn.00525e90
mov ebx, str.Statistic.ini
lea edi, [ebp - 0x28c]
call fcn.0040a3d0
xor eax, eax
push 0x3e
push eax
lea ecx, [ebp - 0x82]
push ecx
mov word [ebp - 0x84], ax
call fcn.00525e90
xor edx, edx
push 0x3e
push edx
lea eax, [ebp - 0x42]
push eax
mov word [ebp - 0x44], dx
call fcn.00525e90
add esp, 0x24
mov ecx, edi
push ecx
push 0x20
lea edx, [ebp - 0x44]
push edx
push 0x5806e0
push str.AltWndKey
push 0x57ce08
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x290]
call fcn.00404770
mov eax, dword [ebp - 0x290]
cmp dword [eax - 0xc], 0
pop edi
pop ebx
jle 0x4173fa
push 0x2c
push eax
call fcn.00523e32
add esp, 8
test eax, eax
je 0x4173fa
sub eax, dword [ebp - 0x290]
sar eax, 1
cmp eax, 0xffffffff
je 0x4173fa
lea edx, [ebp + eax*2 - 0x42]
xor ecx, ecx
push edx
mov word [ebp + eax*2 - 0x44], cx
lea eax, [ebp - 0x84]
push 0x20
push eax
call fcn.005231b8
add esp, 0xc
lea ecx, [ebp - 0x44]
push ecx
call fcn.00523a4c
lea edx, [ebp - 0x84]
push edx
mov dword [esi], eax
call fcn.00523a4c
mov ecx, dword [ebp - 0x294]
mov dword [ecx], eax
mov eax, dword [ebp - 0x290]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41743e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.00523022
mov esp, ebp
pop ebp
ret 4