joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50eca1
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x1b8]
sub esp, 0x238
mov eax, dword [0x61dc40]
xor eax, ebp
mov dword [ebp + 0x1b4], eax
push esi
push edi
push 0x20a
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.00596530
add esp, 0xc
push 0x104
lea eax, [ebp - 0x58]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push dword [ebx + 4]
xor eax, eax
lea edi, [ebp - 0x80]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call dword [sym.imp.USER32.dll_GetDC]
push dword [ebx + 0x58]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
mov edi, eax
push edi
mov dword [ebp - 0x6c], edi
call esi
push dword [ebx + 0x5c]
mov dword [ebp - 0x70], eax
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
lea eax, [ebp - 0x58]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x50ed19
sub eax, ecx
push 0x400
lea ecx, [ebp - 0x80]
push ecx
sar eax, 1
push eax
lea eax, [ebp - 0x58]
push eax
push edi
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp - 0x70]
push edi
call esi
mov eax, dword [ebp - 0x78]
sub eax, dword [ebp - 0x80]
mov ecx, dword [ebx + 0x50]
lea esi, [ebx + 0x38]
lea edi, [ebp - 0x68]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x68]
lea esi, [edx + eax + 0x1e]
cmp esi, ecx
mov dword [ebp - 0x60], esi
jle 0x50ed68
mov esi, ecx
mov dword [ebp - 0x60], esi
sub esi, edx
xor edx, edx
lea ecx, [esi - 0x1e]
inc edx
test ecx, ecx
jg 0x50ed7c
mov ecx, esi
test ecx, ecx
jg 0x50ed7c
mov ecx, edx
cmp eax, ecx
jle 0x50ed89
mov esi, ecx
add esi, ecx
inc edx
cmp eax, esi
jg 0x50ed82
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x64]
imul eax, edx
lea ecx, [eax + ecx + 0x1e]
mov eax, dword [ebx + 0x54]
cmp ecx, eax
pop edi
mov dword [ebp - 0x5c], ecx
pop esi
jle 0x50eda8
mov dword [ebp - 0x5c], eax
push dword [ebp - 0x6c]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ReleaseDC]
lea eax, [ebp - 0x68]
push eax
mov eax, ebx
call fcn.0050ec60
mov ecx, dword [ebp + 0x1b4]
xor ecx, ebp
call fcn.0058f3cf
add ebp, 0x1b8
leave
ret
Function at 0x512422
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esi + 0x180]
push edi
cmp eax, 4
je 0x512433
cmp eax, 5
jne 0x512462
lea eax, [esi + 0x7c]
push eax
call fcn.00511268
lea edi, [esi + 0x120]
push dword [edi]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x512458
push 0
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esi + 0x180], 4
push 0
push 0
push 0x904
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.0045f8eb
push 1
push 0xd
pop ecx
mov edx, str.shotscreen
call fcn.0045f9b4
xor eax, eax
pop edi
ret

Function at 0x512535
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ecx
push ebx
push esi
mov ebx, eax
push dword [ebx + 0x120]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x51254f
call fcn.005128a3
lea esi, [ebx + 0x17c]
mov ecx, dword [esi]
test ecx, ecx
je 0x51256b
mov eax, dword [ecx]
push 1
call dword [eax]
and dword [esi], 0
and dword [ebx + 0xd8], 0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
test eax, eax
je 0x5125c1
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, ebx
call fcn.005129ef
push eax
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
call fcn.0045f8eb
push 1
push 8
pop ecx
mov edx, str.shotscreen
call fcn.0045f9b4
push 0
push 0x12b
push 0x111
push dword [ebx + 0x38]
call esi
jmp 0x5125d5
call fcn.0045f8eb
push 1
push 9
pop ecx
mov edx, str.shotscreen
call fcn.0045f9b4
mov ebx, dword [ebx + 4]
push 0
push ebx
push 0x906
push ebx
call esi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x5128a3
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x61dc40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push dword [ebx + 0x120]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x5129e1
xor edi, edi
push edi
push dword [ebx + 0x120]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x20a
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.00596530
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [ebx + 0x120]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x512911
sub eax, edx
sar eax, 1
je 0x5129b2
mov ecx, dword [ebx + 0x17c]
cmp ecx, edi
je 0x5129c6
mov eax, dword [ecx]
lea edx, [ebp - 0x218]
push edx
call dword [eax + 0x20]
mov eax, dword [ebx + 0x17c]
mov esi, dword [eax]
call fcn.0050ca94
call fcn.0050d991
mov ecx, dword [ebx + 0x17c]
push eax
call dword [esi + 0x10]
mov eax, dword [ebx + 0x17c]
mov esi, dword [eax]
call fcn.0050ca94
push eax
call fcn.0050dafb
mov ecx, dword [ebx + 0x17c]
push eax
call dword [esi + 0x30]
mov ecx, dword [ebx + 0x17c]
lea esi, [ebx + 0x154]
lea edi, [ebp - 0x22c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x220]
mov eax, dword [ebp - 0x224]
mov esi, dword [ecx]
push edx
push eax
call dword [esi + 0x24]
lea eax, [ebx + 0x7c]
call fcn.0051124a
and dword [ebx + 0x17c], 0
jmp 0x5129c6
lea esi, [ebx + 0x17c]
mov ecx, dword [esi]
cmp ecx, edi
je 0x5129c4
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi], edi
and dword [ebx + 0xd8], 0
call fcn.0045f8eb
push 1
push 7
pop ecx
mov edx, str.shotscreen
call fcn.0045f9b4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0058f3cf
leave
ret

Function at 0x513451
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x61dc40]
xor eax, ebp
mov dword [ebp + 0x94], eax
push 0x110
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.00596530
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x5134aa
cmp dword [ebp - 0x7c], 5
jae 0x5134a6
cmp dword [ebp - 0x7c], 4
jne 0x5134aa
cmp dword [ebp - 0x78], 0x5a
jb 0x5134aa
xor eax, eax
jmp 0x5134ad
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.0058f3cf
add ebp, 0x98
leave
ret
Function at 0x513ef5
Capabilities:
Check if file exists

Disassembly:
push 0x18
mov eax, 0x5ba0cb
call fcn.00598f2b
mov ebx, ecx
xor esi, esi
cmp dword [ebx + 0x85c], esi
je 0x514072
mov eax, dword [ebp + 8]
cmp eax, esi
je 0x514072
cmp word [eax], si
je 0x514072
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00407b16
lea eax, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.004187e2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
lea esi, [ebx + 0x8a4]
push eax
push esi
mov dword [ebp - 0x14], esi
call fcn.0047bf32
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
lea edi, [ebp - 0x1c]
lea esi, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
call fcn.004acc17
test al, al
jne 0x513f85
call fcn.00518626
mov esi, dword [eax + 4]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00407b6b
mov eax, esi
jmp 0x514074
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
lea esi, [ebx + 0x884]
push esi
call fcn.004bed53
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
lea edi, [ebp - 0x24]
lea esi, [ebp - 0x1c]
mov dword [ebp - 0x24], eax
call fcn.004acc17
test al, al
jne 0x513fee
push 0x34
call fcn.0058f82d
pop ecx
test eax, eax
je 0x513fca
mov edi, eax
call fcn.00518ff5
mov esi, eax
jmp 0x513fcc
xor esi, esi
test esi, esi
je 0x513fde
mov ebx, dword [ebp - 0x10]
push 0
push 1
mov eax, esi
call fcn.00519317
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
call fcn.00451891
mov dword [eax], esi
jmp 0x513f73
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x514026
push 0x34
call fcn.0058f82d
pop ecx
test eax, eax
je 0x514013
mov edi, eax
call fcn.00518ff5
mov esi, eax
jmp 0x514015
xor esi, esi
test esi, esi
je 0x513fde
mov eax, dword [ebp - 0x10]
push 0
push esi
call fcn.005192c1
jmp 0x513fde
push 6
push str.res:__
push ebx
call fcn.00590d27
add esp, 0xc
test eax, eax
jne 0x514067
push 0x34
call fcn.0058f82d
pop ecx
test eax, eax
je 0x514051
mov edi, eax
call fcn.00518ff5
mov esi, eax
jmp 0x514053
xor esi, esi
test esi, esi
je 0x513fde
push 0
lea edi, [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
mov eax, edi
jmp 0x51401e
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00407b6b
xor eax, eax
call fcn.00599003
ret 4
Function at 0x51407c
Capabilities:
Check if file exists

Disassembly:
push 0x20
mov eax, 0x5b854d
call fcn.00598f2b
mov ebx, ecx
mov esi, dword [ebp + 8]
xor edi, edi
cmp dword [esi + 0x85c], edi
je 0x514199
cmp ebx, edi
je 0x514199
cmp word [ebx], di
je 0x514199
push ebx
lea eax, [ebp - 0x14]
push eax
call fcn.00407b16
lea eax, [ebp - 0x14]
mov dword [ebp - 4], edi
call fcn.004187e2
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
add esi, 0x8a4
push esi
call fcn.0047bf32
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
lea edi, [ebp - 0x24]
lea esi, [ebp - 0x1c]
mov dword [ebp - 0x24], eax
call fcn.004acc17
test al, al
jne 0x51418e
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
push eax
add esi, 0x884
push esi
call fcn.004bed53
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
lea edi, [ebp - 0x24]
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x24], eax
call fcn.004acc17
test al, al
jne 0x51413d
mov ebx, dword [ebp - 0x14]
lea esi, [ebp - 0x1c]
call fcn.00518626
mov eax, dword [eax + 4]
push 0
push 1
call fcn.00519317
jmp 0x51418e
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x51415a
mov edi, dword [ebp - 0x14]
lea esi, [ebp - 0x1c]
call fcn.00518626
push 0
push dword [eax + 4]
jmp 0x514187
push 6
push str.res:__
push ebx
call fcn.00590d27
add esp, 0xc
test eax, eax
jne 0x51418e
lea esi, [ebp - 0x1c]
call fcn.00518626
push 0
mov esi, eax
lea edi, [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push dword [esi + 4]
mov eax, edi
call fcn.005192c1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00407b6b
call fcn.00599003
ret 4
Function at 0x517c15
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push 0x14
mov eax, 0x5bc488
call fcn.00598f2b
xor ebx, ebx
push 0x238
mov dword [ebp - 0x10], ebx
call fcn.0058f82d
pop ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x517c46
mov edi, eax
call fcn.005177e4
mov esi, eax
jmp 0x517c48
xor esi, esi
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], esi
cmp esi, ebx
jne 0x517c5b
xor eax, eax
inc eax
jmp 0x517d6e
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov eax, dword [ebp + 0xc]
mov dword [esi], ebx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x517c68
sub eax, ecx
sar eax, 1
mov ecx, 0x103
cmp eax, ecx
jbe 0x517c83
mov eax, ecx
jmp 0x517c97
mov eax, dword [ebp + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x517c89
sub eax, edx
sar eax, 1
push eax
push dword [ebp + 0xc]
lea eax, [esi + 4]
push eax
call fcn.0058fee1
mov esi, dword [esi]
add esp, 0xc
cmp esi, 2
je 0x517d6b
xor edi, edi
inc edi
cmp esi, edi
jne 0x517cca
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x517d6b
push ebx
push 0x20
push 3
push ebx
push edi
push 0x80000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x517cec
mov dword [ebp - 0x10], edi
jmp 0x517d4b
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
jbe 0x517d5c
lea eax, [esi + 2]
push eax
call fcn.0058e040
mov ebx, eax
pop ecx
test ebx, ebx
je 0x517d49
and dword [ebp - 0x18], 0
xor eax, eax
push eax
lea edi, [ebx + esi]
stosw word es:[edi], ax
lea eax, [ebp - 0x18]
push eax
push esi
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x517d3c
cmp esi, dword [ebp - 0x18]
jne 0x517d3c
push dword [ebp + 8]
mov ecx, ebx
call fcn.0051787a
pop ecx
mov dword [ebp - 0x10], eax
push ebx
call fcn.0058f807
cmp dword [ebp - 0x10], 0
pop ecx
je 0x517d5c
xor ebx, ebx
mov eax, dword [ebp + 8]
mov dword [eax], ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
call fcn.00517d74
pop ecx
pop ecx
cmp dword [ebp - 0x14], 0xffffffff
je 0x517d6b
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
call fcn.00599003
ret
Function at 0x5190ed
Capabilities:
Extract resource via kernel32 functions
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [edi + 0x10]
push ebx
push esi
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 8]
push ecx
xor ebx, ebx
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.0051556e
add esp, 0xc
test eax, eax
je 0x519148
mov eax, dword [ebp - 4]
push dword [ebp - 8]
lea esi, [edi + 0x1c]
mov dword [edi + 0x28], eax
call fcn.00518fd7
push 0x10
mov byte [edi + 0x20], bl
call sub.gdiplus.dll_GdipAlloc
cmp eax, ebx
je 0x51913e
push esi
mov esi, eax
call fcn.0047a8a0
jmp 0x519140
xor eax, eax
mov dword [edi + 0x18], eax
jmp 0x519265
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 0x10]
cmp ecx, ebx
je 0x5191cb
push 0x5fb668
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x519265
push ebx
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x5191bd
push ebx
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x5191bd
lea esi, [edi + 0x1c]
push eax
call fcn.00518fd7
push 0x10
mov dword [edi + 0x28], ebx
mov byte [edi + 0x20], 0
call sub.gdiplus.dll_GdipAlloc
test eax, eax
je 0x5191b8
push esi
mov esi, eax
call fcn.0047a8a0
jmp 0x5191ba
xor eax, eax
mov dword [edi + 0x18], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x519265
push ebx
push 0x20
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x519265
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
jbe 0x51925c
push ebx
call fcn.0058e040
mov esi, eax
pop ecx
mov dword [ebp - 0xc], esi
test esi, esi
je 0x51925c
and dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x519255
cmp ebx, dword [ebp - 8]
jne 0x519255
push dword [ebp - 0xc]
lea esi, [edi + 0x1c]
call fcn.00518fd7
push 0x10
mov dword [edi + 0x28], ebx
mov byte [edi + 0x21], 1
mov byte [edi + 0x20], 1
call sub.gdiplus.dll_GdipAlloc
test eax, eax
je 0x51924e
push esi
mov esi, eax
call fcn.0047a8a0
jmp 0x519250
xor eax, eax
mov dword [edi + 0x18], eax
jmp 0x51925c
push esi
call fcn.0058f807
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [edi + 0xc], 0
lea esi, [edi + 0x10]
call fcn.004078db
mov esi, dword [edi + 0x18]
test esi, esi
je 0x519295
call fcn.00515e4e
mov esi, dword [edi + 0x18]
mov dword [edi + 4], eax
call fcn.00515e6e
mov dword [edi + 8], eax
xor eax, eax
cmp dword [edi + 4], eax
setg al
jmp 0x519297
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x519df8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x519e79
cmp dword [ebp + 0x10], 0
je 0x519e79
mov ecx, eax
shr ecx, 0x10
test cx, cx
jne 0x519e22
movzx eax, ax
push ebx
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x519e78
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x519e77
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x519e77
and dword [esi + 0x10], 0
mov dword [esi + 8], eax
xor eax, eax
inc eax
and dword [esi + 0x1c], 0
mov byte [esi + 4], 0
mov dword [esi + 0xc], edi
mov dword [esi + 0x18], eax
mov dword [ebp - 4], eax
pop edi
pop ebx
mov eax, dword [ebp - 4]
pop esi
leave
ret 0xc

Function at 0x519e81
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [ebp - 4], edi
cmp dword [esi + 0x18], edi
je 0x519ea8
mov eax, dword [esi + 8]
cmp eax, edi
je 0x519ea8
push eax
call fcn.0058f807
pop ecx
mov dword [esi + 8], edi
mov dword [esi + 0x18], edi
cmp dword [ebp + 8], edi
je 0x519f73
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x519f73
push 0x207
push dword [ebp + 8]
lea ebx, [esi + 0x20]
push ebx
call fcn.0058fee1
add esp, 0xc
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x519f73
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, edi
mov dword [esi + 0xc], eax
mov dword [ebp + 8], edi
jle 0x519f7d
cmp eax, 0x6400000
jg 0x519f7d
inc eax
push eax
call fcn.0058e040
pop ecx
mov dword [esi + 8], eax
cmp eax, edi
je 0x519f7d
mov ecx, dword [esi + 0xc]
inc ecx
push ecx
push edi
push eax
call fcn.00596530
add esp, 0xc
push edi
lea eax, [ebp + 8]
push eax
push dword [esi + 0xc]
push dword [esi + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x519f5b
mov eax, dword [esi + 0xc]
cmp eax, dword [ebp + 8]
jne 0x519f5b
xor eax, eax
inc eax
mov dword [ebp - 4], eax
mov dword [esi + 0x18], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
jmp 0x519f6c
mov eax, dword [esi + 8]
cmp eax, edi
je 0x519f6c
push eax
call fcn.0058f807
pop ecx
mov dword [esi + 8], edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
xor eax, eax
jmp 0x519f76
Function at 0x519f81
Capabilities:
Check if file exists

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
test edi, edi
jne 0x519f91
xor eax, eax
jmp 0x519fc0
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x519f8d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x10]
test eax, eax
je 0x519f8d
and dword [esi + 0x10], 0
xor eax, eax
inc eax
and dword [esi + 0x1c], 0
mov byte [esi + 4], al
mov dword [esi + 0x18], eax
pop edi
pop esi
ret 4

Function at 0x51a7a7
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
mov eax, dword [0x61dc40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_IsWindow]
push eax
mov dword [ebp - 0x184], eax
call edi
test eax, eax
je 0x51a8b4
push dword [esi + 8]
call edi
test eax, eax
je 0x51a7e8
push dword [esi + 8]
call dword [sym.imp.USER32.dll_DestroyWindow]
lea eax, [ebp - 0x180]
push eax
mov dword [ebp - 0x180], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor ebx, ebx
push 0x58
lea eax, [ebp - 0x64]
push ebx
push eax
mov dword [ebp - 0x68], ebx
call fcn.00596530
add esp, 0xc
cmp dword [ebp - 0x170], 2
jne 0x51a849
cmp dword [ebp - 0x17c], 6
jb 0x51a849
push 0x12
pop eax
call fcn.005138c4
neg eax
mov dword [ebp - 0x68], eax
xor eax, eax
movzx ecx, word [eax + str.Microsoft_Yahei]
mov word [ebp + eax - 0x4c], cx
inc eax
inc eax
cmp cx, bx
jne 0x51a834
jmp 0x51a86b
push 0x12
pop eax
call fcn.005138c4
neg eax
mov dword [ebp - 0x68], eax
xor eax, eax
movzx ecx, word [eax + str.Tahoma]
mov word [ebp + eax - 0x4c], cx
inc eax
inc eax
cmp cx, bx
jne 0x51a858
mov edi, dword [sym.imp.GDI32.dll_CreateFontIndirectW]
cmp dword [esi + 0x28], ebx
jne 0x51a87f
lea eax, [ebp - 0x68]
push eax
call edi
mov dword [esi + 0x28], eax
cmp dword [esi + 0x2c], ebx
jne 0x51a891
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 0x53], 1
call edi
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 0x184]
mov dword [esi + 0x78], eax
cmp dword [esi + 0x7c], ebx
jne 0x51a8a2
mov dword [esi + 0x7c], eax
push ecx
mov eax, esp
mov dword [eax], ebx
push ecx
mov eax, esp
mov dword [eax], ebx
lea eax, [esi + 4]
call fcn.0051b207
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0058f3cf
leave
ret 4

Function at 0x51a8c4
Capabilities:
Hide graphical window

Disassembly:
push dword [edi + 8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x51a8ff
push ebx
mov ebx, dword [sym.imp.USER32.dll_KillTimer]
push esi
push 1
push dword [edi + 8]
call ebx
lea esi, [edi + 0xa8]
call fcn.0051a49a
push 0x64
push dword [edi + 8]
call ebx
push 0
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebx
ret
Function at 0x51e817
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1050
call fcn.005a41d0
mov eax, dword [0x61dc40]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x1050], 0
push esi
lea esi, [edi + 0xf0]
push dword [esi]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x51e89b
mov esi, dword [esi]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, esi
jne 0x51e89b
xor eax, eax
push 0x1046
push eax
mov word [ebp - 0x104c], ax
lea eax, [ebp - 0x104a]
push eax
call fcn.00596530
add esp, 0xc
push 0x824
lea eax, [ebp - 0x104c]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp dword [ebp + 8], 0
lea eax, [ebp - 0x104c]
push eax
je 0x51e8bc
lea eax, [edi + 0x1c]
push eax
call fcn.00407af8
mov eax, dword [edi + 0x1c]
sub eax, 0x10
call fcn.004090c2
add eax, 0x10
mov dword [ebx], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, ebx
pop esi
call fcn.0058f3cf
leave
ret 4
push ebx
call fcn.00407b16
jmp 0x51e8ab
Function at 0x520d04
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104c
call fcn.005a41d0
mov eax, dword [0x61dc40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0xf0]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, edi
jne 0x520e04
xor eax, eax
push 0x1046
push eax
mov word [ebp - 0x104c], ax
lea eax, [ebp - 0x104a]
push eax
call fcn.00596530
add esp, 0xc
push 0x824
lea eax, [ebp - 0x104c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test ebx, ebx
jne 0x520d6f
mov ebx, dword [esi + 0x1c]
lea eax, [ebp - 0x104c]
mov ecx, ebx
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x520d9d
test dx, dx
je 0x520d99
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x520d9d
add ecx, 4
add eax, 4
test dx, dx
jne 0x520d77
xor eax, eax
jmp 0x520da2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x520dc2
push ebx
push dword [esi + 0xf0]
lea edi, [esi + 0x13c]
mov dword [edi], 1
call dword [sym.imp.USER32.dll_SetWindowTextW]
and dword [edi], 0
push dword [esi + 0xf0]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0xb0
push dword [esi + 0xf0]
mov ebx, eax
call edi
test ax, ax
jne 0x520df3
shr eax, 0x10
cmp eax, ebx
je 0x520e04
push 0xffffffffffffffff
push 0
push 0xb1
push dword [esi + 0xf0]
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058f3cf
leave
ret 4