joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406488
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
xor eax, eax
push eax
push eax
mov ebp, dword [esp + 0x14]
mov ebx, dword [ebp + 0xc]
and ebx, ebx
jne 0x40649b
jmp 0x4064d0
push 0
lea eax, [esp + 4]
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
mov ebp, dword [esp + 0x24]
push dword [ebp + 0xc]
call sub.KERNEL32.dll_WriteFile
mov dword [esp + 4], eax
mov ebp, dword [esp + 0x14]
push dword [ebp + 0xc]
call sub.KERNEL32.dll_FlushFileBuffers
mov eax, dword [esp]
jmp 0x4064d0
add esp, 8
pop ebx
pop ebp
ret 0xc
Function at 0x40b818
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
xor eax, eax
push eax
push eax
push eax
mov ebp, dword [esp + 0x18]
mov ebx, dword [ebp + 0xc]
and ebx, ebx
jne 0x40b82c
jmp 0x40b888
push 0
lea eax, [esp + 0xc]
push eax
push 0x100
mov ebp, dword [esp + 0x24]
mov ebx, dword [ebp + 0x40]
add ebx, dword [esp + 0x10]
push ebx
mov ebp, dword [esp + 0x28]
push dword [ebp + 0xc]
call sub.KERNEL32.dll_ReadFile
mov dword [esp], eax
mov ebx, dword [esp + 8]
and ebx, ebx
jle 0x40b86a
mov ebx, dword [esp + 4]
add ebx, dword [esp + 8]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 8]
and ebx, ebx
jne 0x40b82c
mov ebx, dword [esp + 4]
dec ebx
push ebx
mov ebp, dword [esp + 0x1c]
pop eax
mov dword [ebp + 0x44], eax
mov eax, dword [esp + 4]
jmp 0x40b888
add esp, 0xc
pop ebx
pop ebp
ret 4

Function at 0x41752c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4175a0
push edi
push dword [ebp + 8]
push dword [0x44c090]
call fcn.0042366a
mov edi, eax
test edi, edi
je 0x41759f
push ebx
mov ebx, dword [ebp + 0x10]
cmp ebx, 0x19
jne 0x417562
push esi
call fcn.00432af0
jmp 0x41756d
cmp ebx, 2
jne 0x41756f
push esi
call fcn.00432b80
mov esi, eax
push 0
lea eax, [ebp - 4]
push eax
push esi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp ebx, 0x19
jne 0x417593
push esi
call fcn.00432b70
jmp 0x41759e
cmp ebx, 2
jne 0x41759e
push esi
call fcn.00432c30
pop ebx
pop edi
mov eax, dword [ebp - 4]
pop esi
leave
ret 0xc
Function at 0x417fa4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [esp + 0x10], ebx
je 0x417ff3
push dword [esp + 0x10]
push 0x417f22
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x44b9a4]
cmp esi, ebx
je 0x418047
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x417feb
cmp byte [esi + 0x10], bl
je 0x417feb
push 3
push ebx
push ebx
push ebx
push ebx
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, edi
cmp edi, ebx
jne 0x417fc8
jmp 0x418047
mov esi, dword [0x44b9a4]
cmp esi, ebx
je 0x418047
push ebp
mov ebp, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x418040
cmp byte [esi + 0x11], bl
je 0x41801d
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], bl
je 0x418033
push 3
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push edi
push 0x44b9a4
call fcn.00423d51
pop ecx
pop ecx
mov esi, ebp
cmp ebp, ebx
jne 0x417ffe
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x41bea2
Capabilities:
Get socket status
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x920
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
inc eax
xor edi, edi
xor ebx, ebx
cmp dword [esi], eax
jne 0x41bf25
mov esi, dword [esi + 8]
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
lea eax, [ebp - 0x120]
push eax
lea eax, [esi + 1]
push eax
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.WSOCK32.DLL_select]
cmp eax, edi
jl 0x41bf1c
je 0x41bf21
lea eax, [ebp - 0x120]
push eax
push esi
call sub.WSOCK32.DLL___WSAFDIsSet
test eax, eax
je 0x41bf21
lea eax, [ebp + 8]
push eax
push 0x4004667f
push esi
call dword [sym.imp.WSOCK32.DLL_ioctlsocket]
test eax, eax
jne 0x41bf1c
cmp dword [ebp + 8], edi
je 0x41bf1c
push 2
jmp 0x41bf1e
push 4
pop ebx
jmp 0x41bf7f
xor ebx, ebx
jmp 0x41bf7f
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
push 0x800
lea eax, [ebp - 0x920]
push eax
push dword [esi + 0x10]
mov dword [ebp - 4], 0x10
call dword [sym.imp.WSOCK32.DLL_recvfrom]
mov dword [ebp + 8], eax
cmp eax, edi
jle 0x41bf7f
push 2
pop ebx
push eax
push edi
push dword [0x44b554]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
push ecx
mov dword [esi + 0x18], ecx
lea ecx, [ebp - 0x920]
push ecx
push eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x41bf88
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [esi], 1
jne 0x41bfab
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 8]
call dword [sym.imp.WSOCK32.DLL_recv]
mov edi, eax
jmp 0x41bfec
cmp dword [esi + 0x14], edi
je 0x41bfec
mov eax, dword [esi + 0x18]
mov edi, dword [ebp + 0x10]
cmp edi, eax
jle 0x41bfbc
mov edi, eax
push edi
push dword [esi + 0x1c]
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0x18], edi
mov eax, dword [esi + 0x18]
add dword [esi + 0x1c], edi
add esp, 0xc
test eax, eax
jne 0x41bfec
push dword [esi + 0x14]
push eax
push dword [0x44b554]
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [esi + 0x14], 0
mov eax, edi
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x41c10f
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push ebx
xor ebx, ebx
inc ebx
cmp dword [0x44bb70], 0
jne 0x41c13b
push 0x41c067
push 0x10
push 0x2c
mov dword [0x44bb70], ebx
call fcn.0042370b
mov dword [0x44bb58], eax
cmp word [0x44bb6c], 0
jne 0x41c1d2
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WSOCK32.DLL_WSAStartup]
test eax, eax
jne 0x41c161
mov eax, ebx
jmp 0x41c163
xor eax, eax
push str.ws2_32.dll
mov word [0x44bb6c], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x44bb54], eax
test eax, eax
je 0x41c1d2
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push eax
call esi
push str.freeaddrinfo
push dword [0x44bb54]
mov dword [0x44bb60], eax
call esi
push str.getnameinfo
push dword [0x44bb54]
mov dword [0x44bb64], eax
call esi
cmp dword [0x44bb60], 0
mov dword [0x44bb68], eax
pop esi
je 0x41c1d2
cmp dword [0x44bb64], 0
je 0x41c1d2
test eax, eax
je 0x41c1d2
mov dword [0x44bb5c], ebx
movsx eax, word [0x44bb6c]
pop ebx
add esp, 0x190
ret
Function at 0x41c5e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 1
jne 0x41c602
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 8]
call dword [sym.imp.WSOCK32.DLL_send]
jmp 0x41c641
push 2
pop eax
mov word [ebp - 0x10], ax
mov eax, dword [esi + 4]
mov dword [ebp - 0xc], eax
movzx eax, word [esi + 8]
push eax
call dword [sym.imp.WSOCK32.DLL_htons]
mov word [ebp - 0xe], ax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x41c629
mov eax, dword [eax]
jmp 0x41c62c
mov eax, dword [esi + 0x10]
push 0x10
lea ecx, [ebp - 0x10]
push ecx
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WSOCK32.DLL_sendto]
pop esi
leave
ret 0xc

Function at 0x41c75e
Capabilities:
Get graphical window text

Disassembly:
push edi
push dword [esp + 8]
push dword [0x44c118]
call fcn.0042366a
mov edi, eax
test edi, edi
je 0x41c7c0
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x41c787
push dword [esp + 0xc]
push edi
call eax
jmp 0x41c7c0
push ebx
push esi
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowTextLengthA]
push dword [esp + 0x14]
mov esi, eax
push esi
call fcn.00424090
mov ebx, eax
lea eax, [esi + 1]
push eax
push ebx
mov byte [ebx], 0
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowTextA]
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
sub esi, eax
push esi
call fcn.00424130
pop esi
pop ebx
pop edi
ret 8
Function at 0x41d49b
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x5c]
sub esp, 0x98
push ebx
push esi
push edi
push dword [0x44c11c]
call fcn.00423754
xor edi, edi
mov dword [ebp + 0x58], eax
cmp dword [0x44bcec], edi
jne 0x41d56c
xor ebx, ebx
inc ebx
mov dword [0x44bcec], ebx
call fcn.0041e0d3
mov esi, 0xa4
push esi
push edi
push 0x44bc48
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [0x44bc48], 0x13
mov dword [0x44bc4c], esi
mov dword [0x44bc58], 0x41cdf0
mov dword [0x44bc5c], 0x41cdce
mov dword [0x44bcb0], 0x41ce2e
mov dword [0x44bcb4], 0x41ce53
mov dword [0x44bc54], 0x41ce0b
mov dword [0x44bcd8], 0x41cf08
mov dword [0x44bc40], ebx
mov dword [ebp - 0x3c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x41d56c
cmp dword [ebp - 0x2c], ebx
je 0x41d566
cmp dword [ebp - 0x2c], 2
jne 0x41d56c
cmp dword [ebp - 0x38], 5
jb 0x41d566
jne 0x41d56c
cmp dword [ebp - 0x34], edi
jne 0x41d56c
mov dword [0x44bc40], edi
mov eax, dword [ebp + 0x58]
push edi
push dword [0x44b558]
push 0xffffffffffffffff
push dword [eax]
mov eax, dword [ebp + 0x7c]
push dword [ebp + 0x74]
or eax, 0x50010000
push dword [ebp + 0x70]
push dword [ebp + 0x6c]
push dword [ebp + 0x68]
push eax
push edi
push str.BUTTON
push edi
call dword [sym.imp.USER32.DLL_CreateWindowExA]
mov dword [ebp + 0x74], eax
cmp eax, edi
je 0x41d606
push dword [ebp + 0x64]
push dword [0x44c118]
call fcn.004235e5
mov ebx, dword [ebp + 0x78]
mov esi, eax
mov dword [esi + 0x10], ebx
cmp ebx, edi
je 0x41d5d4
push ebx
call fcn.004226c8
test eax, eax
je 0x41d5d4
push edi
push edi
push ebx
call fcn.004227aa
mov dword [esi + 0x18], eax
jmp 0x41d5d7
mov dword [esi + 0x18], edi
push 0x41d1cd
push 0xfffffffffffffffc
push dword [ebp + 0x74]
mov dword [esi + 0x14], edi
mov dword [esi + 0x1c], edi
call dword [sym.imp.USER32.DLL_SetWindowLongA]
push 0x44bc48
push dword [ebp + 0x74]
mov dword [0x44bc44], eax
push esi
push dword [ebp + 0x64]
call fcn.0041dfed
mov dword [ebp + 0x74], eax
mov eax, dword [ebp + 0x74]
pop edi
pop esi
pop ebx
add ebp, 0x5c
leave
ret 0x1c
Function at 0x41eb0b
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov edi, eax
mov bl, pe_nt_image_headers32
test edi, edi
je 0x41eb87
push 9
call esi
test bl, al
je 0x41eb87
push 0x11
call esi
test bl, al
jne 0x41eb87
push 0x10
call esi
test bl, al
jne 0x41eb87
push 0x12
call esi
test bl, al
jne 0x41eb87
push 5
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetClassNameA]
push 4
lea eax, [esp + 0x14]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x41eb87
push eax
push eax
push 0x44e
push edi
call dword [sym.imp.USER32.DLL_SendMessageA]
test eax, 0x800
jne 0x41eb87
xor eax, eax
jmp 0x41ec09
push ebp
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x41ebb0
push 0x11
call esi
test bl, al
jne 0x41eba8
push 0x10
call esi
test bl, al
jne 0x41eba8
push 0x12
call esi
test bl, al
je 0x41ebb0
push 1
push ebp
call fcn.0041eac4
mov esi, dword [sym.imp.USER32.DLL_GetPropA]
test edi, edi
je 0x41ebc6
push str.PB_Hotkey
push edi
call esi
test eax, eax
jne 0x41ec06
push str.PB_WindowID
push ebp
call esi
mov esi, eax
test esi, esi
je 0x41ec06
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x41ec06
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x10], eax
jne 0x41ec06
dec esi
push esi
push dword [0x44c120]
call fcn.0042366a
test eax, eax
je 0x41ec06
mov eax, dword [eax + 8]
jmp 0x41ec08
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x41f433
Capabilities:
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x248
push ebx
push esi
or esi, 0xffffffff
xor ebx, ebx
push edi
mov edi, esi
cmp eax, ebx
je 0x41f574
cmp byte [eax], bl
je 0x41f574
push 0x104
push eax
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], bl
call sub.MSVCRT.dll_strlen
add esp, 0x10
lea ecx, [ebp + eax - 0x109]
cmp eax, 2
je 0x41f48e
cmp eax, 3
jne 0x41f4cd
cmp byte [ebp - 0x107], 0x3a
jne 0x41f4cd
cmp eax, 2
jne 0x41f4af
lea eax, [ebp - 0x108]
push 0x43e244
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x41f574
or esi, 0xffffffff
jmp 0x41f571
mov al, byte [ecx]
cmp al, 0x5c
je 0x41f4d7
cmp al, 0x2f
jne 0x41f4dc
mov byte [ecx], bl
dec ecx
jmp 0x41f4cd
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
or ebx, 0xffffffff
cmp eax, ebx
je 0x41f522
test byte [ebp - 0x248], 0x10
je 0x41f507
push 0xfffffffffffffffe
pop edi
mov esi, ebx
jmp 0x41f519
mov esi, dword [ebp - 0x22c]
xor edi, edi
or edi, dword [ebp - 0x228]
xor edx, edx
or esi, edx
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x41f574
cmp byte [ebp - 0x108], 0x5c
jne 0x41f534
cmp byte [ebp - 0x107], 0x5c
je 0x41f546
cmp byte [ebp - 0x108], 0x2e
jne 0x41f574
cmp byte [ebp - 0x107], 0x2e
jne 0x41f574
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, ebx
je 0x41f55d
test al, 0x10
je 0x41f574
jmp 0x41f56f
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x41f574
mov esi, ebx
push 0xfffffffffffffffe
pop edi
mov eax, edi
pop edi
mov edx, esi
pop esi
pop ebx
leave
ret 4

Function at 0x41f57f
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [ebp + 8], 0
je 0x41f5ef
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 0
call sub.MSVCRT.dll_strlen
add esp, 0x10
lea eax, [ebp + eax - 0x108]
jmp 0x41f5d1
mov dl, byte [eax - 1]
cmp dl, 0x20
je 0x41f5d0
cmp dl, 0x5c
je 0x41f5d0
cmp dl, 0x2f
jne 0x41f5db
dec eax
lea ecx, [ebp - 0x108]
cmp eax, ecx
ja 0x41f5be
mov byte [eax], 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x41f5f1
xor eax, eax
leave
ret 4

Function at 0x41f605
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x41f62e
test byte [esp + 8], 2
je 0x41f622
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x41f630
xor eax, eax
ret 8
Function at 0x41f6b0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
cmp dword [esi + 0x14], eax
jne 0x41f6e5
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4

Function at 0x41fb30
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov ecx, dword [0x44c138]
push esi
push eax
push ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.0042366a
mov esi, eax
test esi, esi
je 0x41fbf7
mov ecx, dword [esp + 0x14]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
test ecx, ecx
je 0x41fbaf
cmp byte [ecx], 0
je 0x41fbaf
cmp dword [esi + 4], 0
mov eax, ecx
push edi
lea edi, [eax + 1]
je 0x41fb97
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41fb80
sub eax, edi
push eax
push ecx
push esi
call fcn.0041fdf0
mov dword [esp + 0xc], eax
jmp 0x41fbae
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41fb97
push 0
lea edx, [esp + 0x10]
push edx
sub eax, edi
push eax
mov eax, dword [esi]
push ecx
push eax
call ebp
pop edi
cmp dword [esi + 4], 0
je 0x41fbd2
push 2
push 0x43e07c
push esi
call fcn.0041fdf0
mov ecx, eax
mov eax, dword [esp + 8]
pop ebp
add eax, ecx
pop esi
add esp, 8
ret 8
mov edx, dword [esi]
push 0
lea ecx, [esp + 0x10]
push ecx
push 2
push 0x43e07c
push edx
call ebp
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
pop ebp
add eax, ecx
pop esi
add esp, 8
ret 8
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 8

Function at 0x41fc10
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov ecx, dword [0x44c138]
push esi
push eax
push ecx
mov dword [esp + 0xc], 0
call fcn.0042366a
mov esi, eax
test esi, esi
je 0x41fc93
cmp dword [esi + 4], 0
je 0x41fc62
push 1
lea edx, [esp + 8]
push edx
push esi
call fcn.0041fef0
test eax, eax
je 0x41fc56
inc dword [esi + 0xc]
xor eax, eax
pop esi
add esp, 8
ret 4
mov eax, 1
pop esi
add esp, 8
ret 4
mov edx, dword [esi]
push 0
lea eax, [esp + 0xc]
push eax
push 1
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41fc9e
cmp dword [esp + 8], 0
je 0x41fc9e
mov eax, dword [esi]
push 1
push 0
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 4
or eax, 0xffffffff
pop esi
add esp, 8
ret 4
Function at 0x41fcb0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x14]
push ebx
push ebp
push edi
push eax
push 0x1000
mov dword [esp + 0x1c], 0x1000
call fcn.00424090
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x44c138]
push ecx
mov edi, eax
push edx
mov ebp, edi
call fcn.0042366a
mov ebx, eax
test ebx, ebx
je 0x41fdc9
push esi
lea ecx, [ecx]
mov byte [esp + 0x13], 0
cmp dword [ebx + 4], 0
je 0x41fd0e
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.0041fef0
mov dword [esp + 0x14], eax
jmp 0x41fd25
mov eax, dword [ebx]
push 0
lea ecx, [esp + 0x18]
push ecx
push 1
lea edx, [esp + 0x1f]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov al, byte [esp + 0x13]
test al, al
je 0x41fd35
mov byte [ebp], al
mov al, byte [esp + 0x13]
inc ebp
mov ecx, dword [esp + 0x18]
mov esi, ebp
sub esi, edi
cmp esi, ecx
jl 0x41fd5f
mov edx, dword [esp + 0x24]
add ecx, 0x1000
push edx
push ecx
mov dword [esp + 0x20], ecx
call fcn.00424090
mov edi, eax
mov al, byte [esp + 0x13]
lea ebp, [esi + edi]
test al, al
je 0x41fdc8
cmp dword [esp + 0x14], 0
je 0x41fd76
cmp al, 0xd
je 0x41fd76
cmp al, 0xa
jne 0x41fcf0
dec ebp
cmp al, 0xd
jne 0x41fdc8
cmp dword [ebx + 4], 0
je 0x41fd90
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.0041fef0
jmp 0x41fda7
mov eax, dword [ebx]
push 0
lea ecx, [esp + 0x18]
push ecx
push 1
lea edx, [esp + 0x1f]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x41fdc8
cmp dword [ebx + 4], 0
je 0x41fdb9
inc dword [ebx + 0xc]
jmp 0x41fdc8
mov ecx, dword [ebx]
push 1
push 0
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop esi
sub edi, ebp
add edi, dword [esp + 0x14]
mov byte [ebp], 0
push edi
call fcn.00424130
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x41fdf0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 1
push edi
mov dword [esp + 8], 0
jne 0x41fe25
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
push 1
push 0
neg eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], edx
mov ecx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ecx, edi
jle 0x41fe9a
mov eax, dword [esi + 8]
add eax, dword [esi + 4]
sub eax, ecx
mov ecx, edi
dec ecx
je 0x41fe87
dec ecx
je 0x41fe72
sub ecx, 2
je 0x41fe5f
mov ecx, dword [esp + 0x14]
push edi
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov dword [eax], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cx, word [edx]
mov word [eax], cx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cl, byte [edx]
mov byte [eax], cl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
push esi
call fcn.0041f6b0
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x41fec7
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
push 0
lea edx, [esp + 0xc]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x14]
push edi
push edx
add ecx, eax
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
Function at 0x41fef0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 0
push edi
jne 0x41ff11
push esi
call fcn.0041f6b0
mov dword [esi + 0x14], 1
mov dword [esi + 0xc], 0
mov ebx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ebx, edi
jl 0x41ff86
mov eax, dword [esi + 0x10]
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
dec ecx
je 0x41ff73
dec ecx
je 0x41ff5e
sub ecx, 2
je 0x41ff4b
push edi
push eax
mov eax, dword [esp + 0x1c]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [eax]
mov edx, dword [esp + 0x14]
mov dword [edx], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ax, word [eax]
mov ecx, dword [esp + 0x14]
mov word [ecx], ax
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov dl, byte [eax]
mov eax, dword [esp + 0x14]
mov byte [eax], dl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [esi + 0x10]
push ebp
mov ebp, dword [esp + 0x18]
sub ecx, ebx
add ecx, dword [esi + 4]
push ebx
push ecx
push ebp
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 8]
add esp, 0xc
sub edi, ebx
add ebp, ebx
push 0
cmp edi, eax
jl 0x41ffcf
mov eax, dword [esi]
lea edx, [esp + 0x18]
push edx
push edi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
mov dword [esi + 0xc], 0
pop esi
add eax, ebx
pop ebx
ret 0xc
mov edx, dword [esi + 4]
lea ecx, [esp + 0x18]
push ecx
push eax
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
cmp edi, eax
jle 0x41fff2
mov edi, eax
mov ecx, dword [esi + 4]
push edi
push ecx
push ebp
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0xc], edi
add esp, 0xc
pop ebp
lea eax, [ebx + edi]
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x422560
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push edi
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
mov dword [0x44c044], eax
cmp eax, edi
je 0x422593
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x44c048], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [0x44c040], 1
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4225d1
cmp dword [ebp - 0xc], 1
je 0x4225e2
cmp dword [ebp - 0xc], 2
jne 0x4225d1
cmp dword [ebp - 0x18], 5
jb 0x4225e2
jne 0x4225d1
cmp dword [ebp - 0x14], edi
jne 0x4225d1
mov dword [0x44c040], edi
cmp dword [0x44c040], edi
je 0x4225e8
call fcn.004224a7
test eax, eax
jne 0x4225e8
mov dword [0x44c040], edi
pop edi
add ebp, 0x78
leave
ret