joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401550
Capabilities:
Check if file exists
Copy file
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x573ab4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x108]
push 0x5c
push ecx
call fcn.005059e0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 8
push str.DualPan.ini
lea edx, [ebp - 0x108]
push edx
mov byte [eax + 1], 0
call esi
cmp dword [0x575074], 0
je 0x4015d2
lea eax, [ebp - 0x108]
push eax
push 0x104
push 0x57b4c8
call fcn.00505e13
add esp, 0xc
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005057b0
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0
push 0x1a
push 0x57b4c8
push 0
call edi
push str.RSSoftwareDriversDualPan.ini
push 0x57b4c8
call esi
push 0
push 0x1a
lea ecx, [ebp - 0x20c]
push ecx
push 0
call edi
push str.RSSoftwareDrivers_
lea edx, [ebp - 0x20c]
push edx
call esi
push 0x57b4c8
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop edi
cmp eax, 0xffffffff
jne 0x401649
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.imagehlp.dll_MakeSureDirectoryPathExists]
push 0
push 0x57b4c8
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005057b0
mov esp, ebp
pop ebp
ret
Function at 0x406730
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40674b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406782
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40677e
jmp 0x406770
cmp esi, eax
jae 0x406782
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x406770
cmp esi, eax
jb 0x406789
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x408c7b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.004141c9
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x408cb4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.004088bd
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x408d12
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x408d36
cmp dword [edi + 0x74], 0
jne 0x408d36
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.004141c9
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00408cd3
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x40f773
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40f7ba
call fcn.004141c9
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40f7ba
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40f7d6
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040f278
mov esi, eax
test edi, edi
je 0x40f7d4
test ebx, ebx
je 0x40f7d4
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40ffac
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x521c74
call fcn.0050681f
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x40ffd1
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x410023
call fcn.00407ce6
push eax
lea ecx, [ebp - 0x10]
call fcn.00402a70
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00506249
push eax
call fcn.00406d15
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004013f0
mov eax, esi
call fcn.005068f7
ret 8

Function at 0x410d9a
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00410a59
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x410de4
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00409164
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00409135
jmp 0x410def
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00418a87
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x410df5
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0040f87f
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x410e32
call fcn.00410a59
mov dword [esi + 0xc], 1
jmp 0x410e37
call fcn.00410a59
cmp dword [esi], 0
je 0x410e80
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x410e58
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00409164
jmp 0x410e6a
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.004027c0
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00409135
jmp 0x410ea4
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x410ea4
push dword [esi]
push dword [ebp + 8]
call fcn.00418a87
pop esi
pop ebp
ret 0xc
Function at 0x412dc4
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x573ab4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x11c], eax
mov esi, ecx
lea eax, [ebp - 0x120]
jne 0x412e0c
push 0x52deb8
push 4
push eax
call fcn.00505e13
push eax
call fcn.00406d15
add esp, 0x10
jmp 0x412e22
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x412ea5
push edi
call fcn.00506cbe
mov edi, dword [eax]
call fcn.00506cbe
and dword [eax], 0
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00506f40
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.00506cbe
cmp dword [eax], 0
je 0x412e79
call fcn.00506cbe
push dword [eax]
call fcn.0040708c
pop ecx
jmp 0x412e80
call fcn.00506cbe
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
pop edi
je 0x412ea5
cmp dword [ebp - 0x11c], esi
jae 0x412ea5
push 0
push 0
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x412ea7
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005057b0
leave
ret
Function at 0x412eb4
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x573ab4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.0040ad71
pop ecx
cmp eax, esi
je 0x412f9e
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x412f9e
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.00506dc0
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x412f9e
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x412f9e
cmp esi, 0x14
jge 0x412f9e
push 0x10
push 0
push edi
call fcn.00508b3e
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x412f8d
call fcn.00506cbe
cmp dword [eax], 0x22
je 0x412f8d
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.00506266
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x412f63
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x576ca8], 0
jne 0x413029
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x413052
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.00412dc4
pop ecx
pop ecx
test eax, eax
jne 0x413054
inc edi
cmp edi, esi
jl 0x41302f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005057b0
leave
ret 8

Function at 0x41b4ff
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x573ab4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x41b534
xor eax, eax
jmp 0x41b587
lea eax, [ebp - 0x210]
push eax
call fcn.00506266
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x41b565
push 0x52e634
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00509967
add esp, 0xc
test eax, eax
jne 0x41b530
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00509967
add esp, 0xc
test eax, eax
jne 0x41b530
lea eax, [ebp - 0x210]
push eax
call fcn.0040adf7
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005057b0
leave
ret
Function at 0x46bda1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x46bdbb
call fcn.004141c9
mov esi, dword [eax + 0xc]
push dword [0x57896c]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x46bdd9
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x46bdd1
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x46be06
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x46bdd3
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0046bccf
mov esi, eax
jmp 0x46bdf8

Function at 0x4e2dda
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0040dcd5
call fcn.0040842c
cmp eax, esi
pop esi
jne 0x4e2df6
mov ecx, 0x576ff8
jmp fcn.0041c3d3
ret

Function at 0x4eb772
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4eb78a
mov edi, dword [esi + 0xc]
jmp 0x4eb7ca
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4eb7a3
call fcn.004114fe
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4eb7b8
call fcn.004114fe
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4eb7ca
call fcn.004114fe
call fcn.004141c9
cmp dword [eax + 0x3c], 0
je 0x4eb7df
push edi
mov ecx, ebx
call fcn.004ea5a6
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004eb68c
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4eb7fd
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4eb809
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x5057b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x573ab4]
jne 0x5057ba
repz ret
jmp fcn.0050c344
Function at 0x518340
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x573ab4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0050d36f
and dword [ebp - 0x14], 0
cmp dword [0x57b3ec], 0
mov dword [ebp - 0x18], eax
jne 0x5183f3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x51849b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x51849b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x552008
push ebx
mov dword [0x57b3ec], eax
call edi
push eax
call esi
push 0x551ff4
push ebx
mov dword [0x57b3f0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x57b3f4], eax
call edi
push eax
call esi
mov dword [0x57b3fc], eax
test eax, eax
je 0x5183f3
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x57b3f8], eax
mov eax, dword [0x57b3f8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x51844c
cmp dword [0x57b3fc], ecx
je 0x51844c
push eax
call esi
push dword [0x57b3fc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x51844c
test ebx, ebx
je 0x51844c
call edi
test eax, eax
je 0x518443
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x518443
test byte [ebp - 8], 1
jne 0x51844c
or dword [ebp + 0x10], 0x200000
jmp 0x51847f
mov eax, dword [0x57b3f0]
cmp eax, dword [ebp - 0x18]
je 0x51847f
push eax
call esi
test eax, eax
je 0x51847f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x51847f
mov eax, dword [0x57b3f4]
cmp eax, dword [ebp - 0x18]
je 0x51847f
push eax
call esi
test eax, eax
je 0x51847f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x57b3ec]
call esi
test eax, eax
je 0x51849b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x51849d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005057b0
leave
ret
Function at 0x4016a0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x84], eax
movups xmm0, xmmword [str.Window_Class]
mov ax, word [0x403310]
mov ecx, dword [ebp + 8]
push esi
movups xmmword [esp + 0x5c], xmm0
push edi
movq xmm0, qword [0x403308]
movq qword [esp + 0x70], xmm0
xorps xmm0, xmm0
mov word [esp + 0x78], ax
lea eax, [esp + 0x60]
push 0x7f00
push 0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], 0
movlpd qword [esp + 0x28], xmm0
mov dword [esp + 0x34], 0
movlpd qword [esp + 0x3c], xmm0
mov dword [esp + 0x24], 0x401670
mov dword [esp + 0x30], ecx
mov dword [esp + 0x44], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
jne 0x401768
push 0x10
push str.Error
push str.Failed_to_register_window_class.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.00401b08
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
call esi
push 0
mov edi, eax
call esi
push 0
push dword [esp + 0x18]
push 0
push 0
push edi
push eax
push 0
push 0
push 0x80000000
push str.Yolov
lea eax, [esp + 0x88]
push eax
push 0x800a0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
jne 0x4017d6
push 0x10
push str.Error
push str.Failed_to_create_window.
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.00401b08
mov esp, ebp
pop ebp
ret 0x10
push 1
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00401170
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x40]
push 0
push 0
xorps xmm0, xmm0
mov dword [esp + 0x60], 0
push 0
push eax
movaps xmmword [esp + 0x50], xmm0
movq qword [esp + 0x60], xmm0
call esi
test eax, eax
je 0x401847
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x40]
push eax
call edi
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x4c]
push eax
call esi
test eax, eax
jne 0x401824
mov ecx, dword [esp + 0x8c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00401b08
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4023d3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402412
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402412
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402412
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402412
cmp dword [ecx + 0x74], 0xe
jbe 0x402412
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10001bf3
Capabilities:
Resume thread

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
ret

Function at 0x10001c32
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea eax, [ebp - 0x2cc]
mov dword [ebp - 0x2cc], 0x10007
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov eax, dword [ebp + 8]
mov ecx, 0xb3
lea esi, [ebp - 0x2cc]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
leave
ret
Function at 0x100043e3
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x100065a4
call fcn.10006380
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov edi, 0x10006d94
mov byte [0x100068ac], bl
mov dword [0x100068a8], ebx
mov dword [esi + 0x19c], ebx
mov dword [esi + 0x1a0], ebx
mov dword [esi + 0x1a4], ebx
push edi
mov dword [0x100068a4], ebx
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x1000456a
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x1000447d
push 0x1000146c
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_2
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ebx
push eax
call fcn.10005e17
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
call fcn.10001847
jmp 0x1000456a
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [ebp - 0x14]
push ebx
push ecx
lea ecx, [esi + 0x14]
push 0x40
push ecx
push eax
call edi
push ebx
push ebx
push dword [esi + 0x50]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [esi + 0x54]
push 0xf8
push eax
push dword [ebp - 0x10]
call edi
movzx eax, word [esi + 0x68]
mov ecx, dword [esi + 0x50]
push ebx
push ebx
lea eax, [eax + ecx + 0x18]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [esi + 0x14c]
push 0x28
push eax
push dword [ebp - 0x10]
call edi
mov ax, word [esi + 0x5a]
push ebx
movzx ecx, word [esi + 0x68]
dec ax
push ebx
movzx eax, ax
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
mov ecx, dword [esi + 0x50]
lea eax, [eax + ecx + 0x18]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [esi + 0x174]
push 0x28
push eax
push dword [ebp - 0x10]
call edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0xd4]
mov ecx, dword [esi + 0x7c]
mov dword [esi + 0x1a0], eax
mov eax, dword [esi + 0xd8]
cmp dword [esi + 0x114], ebx
mov dword [esi + 0x1a4], eax
mov eax, dword [esi + 0xa4]
mov dword [esi + 0x1c0], ebx
mov dword [esi + 0x1a8], eax
mov eax, dword [0x10006b84]
add ecx, eax
mov dword [0x100068a0], ecx
add dword [esi + 0x1a0], eax
mov dword [esi + 0x19c], ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret