joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48b810
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x1e54a18]
call fcn.004a5cf4
xor ebp, ebp
mov esi, eax
cmp dword [0x1e536b0], ebp
jne 0x48b8ec
xor ebx, ebx
inc ebx
mov dword [0x1e536b0], ebx
call fcn.004906b2
mov edi, 0xa4
push edi
push ebp
push 0x1e536b8
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x1e536b8], 0x13
lea eax, [esp + 0x10]
mov dword [0x1e536bc], edi
mov dword [0x1e536c8], 0x48b75b
mov dword [0x1e536cc], 0x48ba86
push eax
mov dword [0x1e53720], 0x48b736
mov dword [0x1e53724], 0x48b9d1
mov dword [0x1e536c4], 0x48b711
mov dword [0x1e53748], 0x48b776
mov dword [0x1e5375c], ebx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x48b8ec
cmp dword [esp + 0x20], ebx
je 0x48b8d4
cmp dword [esp + 0x20], 2
jne 0x48b8ec
cmp dword [esp + 0x14], 5
jae 0x48b8dc
mov dword [0x1e5375c], ebp
jmp 0x48b8ec
jne 0x48b8ec
mov eax, dword [esp + 0x18]
neg eax
sbb eax, eax
and dword [0x1e5375c], eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
call fcn.00495c99
mov eax, dword [esp + 0x140]
push ebp
push dword [0x1ddab44]
or eax, 0x50010000
push 0xffffffffffffffff
push dword [esi]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push eax
push ebp
push str.BUTTON
push ebp
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x48b9c2
push dword [esp + 0x128]
push dword [0x1e54644]
call fcn.004a5f6f
mov edi, dword [esp + 0x13c]
mov esi, eax
mov dword [esi + 0x10], edi
test edi, edi
je 0x48b991
push edi
call fcn.004a0e4f
test eax, eax
je 0x48b991
push ebp
push ebp
push edi
call fcn.004a09c4
mov dword [esi + 0x18], eax
jmp 0x48b994
mov dword [esi + 0x18], ebp
push 0x48b460
push 0xfffffffffffffffc
push ebx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x1e536b8
push ebx
push esi
push dword [esp + 0x134]
mov dword [0x1e536b4], eax
call fcn.0048fd3f
mov ebx, eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x114
ret 0x1c

Function at 0x48d6fe
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push 0
push 0
push 0x1304
push dword [ebp]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x48d770
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
cmp ebx, 0xffffffff
jne 0x48d727
mov ebx, eax
push dword [ebp]
call fcn.0048ce80
push ebx
push dword [ebp]
mov edi, eax
call fcn.0048ce57
add esp, 0xc
mov esi, eax
push 0
push ebx
push 0x130c
push dword [ebp]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
push dword [ebp]
call fcn.0048d790
pop ecx
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x48f62f
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push dword [0x1e54a18]
call fcn.004a5cf4
xor ebx, ebx
mov ebp, eax
cmp dword [0x1e53c60], ebx
jne 0x48f6c3
mov esi, 0xa4
push esi
push ebx
push 0x1e53c68
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x1e53c6c], esi
mov esi, dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [0x1e53c68], 0xa
mov dword [0x1e53c70], 0x48f1c4
push 0x7f89
push ebx
mov dword [0x1e53ce0], 0x48fe78
mov dword [0x1e53ce4], 0x48fe52
mov dword [0x1e53c74], 0x48f1e3
mov dword [0x1e53cf8], 0x48f203
call esi
mov dword [0x1e53c60], eax
test eax, eax
jne 0x48f6c3
push 0x7f00
push ebx
call esi
mov dword [0x1e53c60], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00495c99
push ebx
push dword [0x1ddab44]
push 0xffffffffffffffff
push dword [ebp]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push 0x40000000
push dword [esp + 0x48]
push str.STATIC
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x48f78f
push edi
push dword [esp + 0x14]
push dword [0x1e54644]
call fcn.004a5f6f
mov edi, eax
push 8
or dword [edi + 0x10], 0xffffffff
call dword [sym.imp.USER32.dll_GetSysColor]
push 0x14
push 0
mov dword [edi + 0x14], eax
push dword [0x1ddab40]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0x1e53c68
push ebx
push edi
push dword [esp + 0x20]
mov dword [esi], ecx
mov ecx, dword [esp + 0x40]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0xc], ecx
mov byte [esi + 0x10], 0
mov dword [edi + 0x1c], esi
call fcn.0048fd3f
push 0x48f2e9
push 0xfffffffffffffffc
push dword [edi]
mov ebx, eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 1
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 0x20
Function at 0x490df3
Capabilities:
Check os version

Disassembly:
sub esp, 0x350
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x114
xor ebx, ebx
mov esi, 0xc8
and dword [esp + 0x10], ebx
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x490f69
mov eax, dword [esp + 0x24]
dec eax
je 0x490f4c
dec eax
jne 0x490f69
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.00490dac
pop ecx
test eax, eax
je 0x490eaa
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x490e6d
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x490f48
dec ebx
je 0x490f44
dec ebx
je 0x490f23
dec ebx
je 0x490edd
sub ebx, 4
jne 0x490f69
test edi, edi
jne 0x490f69
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x490f69
lea eax, [esp + 0x244]
mov dword [esp + 0x244], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x490e6d
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x490e68
sub edi, 0
je 0x490f15
dec edi
je 0x490f07
dec edi
je 0x490ef9
dec edi
jne 0x490f69
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x490f69
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x490f69
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x490f69
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x490f69
sub edi, 0
je 0x490f40
dec edi
je 0x490f3c
dec edi
jne 0x490f69
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x490f69
push 0x3c
jmp 0x490f68
push 0x32
jmp 0x490f68
push 0x14
jmp 0x490f68
push 5
jmp 0x490f68
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x490f66
cmp eax, 0xa
je 0x490f62
cmp eax, 0x5a
jne 0x490f69
push 0x28
jmp 0x490f68
push 0x1e
jmp 0x490f68
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x4910d5
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x1e54638]
call fcn.004a5f30
mov esi, eax
test esi, esi
je 0x4911af
cmp dword [ebp + 0xc], 0
je 0x491121
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x491112
cmp dword [esi + 0x1c], 0
jne 0x491112
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4911af
test byte [ebp + 0x10], 3
je 0x49113c
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.0049235d
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x491161
xor ebx, ebx
cmp dword [esi + 0x3c], 0x1000000
sete bl
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x491175
push dword [esi]
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [esi]
mov ebx, eax
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
test dword [ebp + 0x10], 0x2000000
je 0x491192
test ebx, ebx
je 0x491186
push 8
jmp 0x491198
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x4911a5
test ebx, ebx
je 0x49119b
push 3
pop ecx
jmp 0x4911a5
xor eax, eax
test ecx, ecx
setne al
lea ecx, [eax + 1]
push ecx
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x492705
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, dword [esp + 0x3c]
mov ebx, eax
and dword [esp + 0x10], edi
push str.PB_WindowID
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x49279d
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x49279a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x49279a
lea eax, [esi - 1]
push eax
push dword [0x1e54638]
call fcn.004a5f30
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x49279c
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x492791
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x492884
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x492777
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x492843
push eax
call esi
test al, al
jns 0x492843
push 0x11
call esi
test al, al
js 0x492843
push 0x10
call esi
test al, al
js 0x492843
push 0x12
call esi
test al, al
js 0x492843
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x492843
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x492817
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x49282e
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x49288e
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x49288e
test ebp, ebp
je 0x492867
push 0x11
call esi
test al, al
js 0x49285f
push 0x10
call esi
test al, al
js 0x49285f
push 0x12
call esi
test al, al
jns 0x492867
push 1
push ebp
call fcn.0049289a
test ebx, ebx
je 0x49287b
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x49288e
test edi, edi
je 0x49288e
mov eax, dword [edi + 8]
jmp 0x492890
and dword [esp + 0x14], 0
jmp 0x49279c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x492a78
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x492bc0
xor ecx, ecx
cmp word [eax], cx
je 0x492bc0
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x492ad1
cmp eax, 3
jne 0x492b0b
cmp word [esp + 0xa], 0x3a
jne 0x492b0b
cmp eax, 2
jne 0x492aef
lea eax, [esp + 8]
push 0x51c3c0
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x492bc0
push 0xfffffffffffffffe
pop edi
jmp 0x492bc0
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x492b20
cmp ax, bx
jne 0x492b2a
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x492b13
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x492b69
test byte [esp + 0x21c], 0x10
je 0x492b50
push 0xfffffffffffffffe
pop edi
jmp 0x492b60
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x492bbe
cmp word [esp + 0x10], bp
jne 0x492b77
cmp word [esp + 0x12], bp
je 0x492b96
cmp word [esp + 0x10], bx
jne 0x492b85
cmp word [esp + 0x12], bx
je 0x492b96
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x492bbe
cmp word [esp + 0x12], ax
jne 0x492bbe
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x492bab
test al, 0x10
je 0x492bbe
jmp 0x492bbb
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x492bbe
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4

Function at 0x492c01
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x492c2a
test byte [esp + 8], 2
je 0x492c1e
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x492c2c
xor eax, eax
ret 8

Function at 0x492c3d
Capabilities:
Copy file

Disassembly:
cmp dword [esp + 4], 0
je 0x492c5d
cmp dword [esp + 8], 0
je 0x492c5d
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x492c5f
xor eax, eax
ret 8
Function at 0x493079
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x4930f1
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcslen
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x4930d2
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x4930cf
cmp ecx, 0x5c
je 0x4930cf
cmp ecx, 0x2f
jne 0x4930dc
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x4930bc
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x4930f3
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x4931ab
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x1e53df8]
push esi
test eax, eax
jne 0x4931d0
push fcn.004932d8
push 0x10
push 0x258
call fcn.004a6003
mov dword [0x1e53df8], eax
push dword [esp + 0xc]
push eax
call fcn.004a5f6f
mov esi, eax
test esi, esi
je 0x4932d1
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x4931f2
mov edi, 0x5050b0
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x493202
xor eax, eax
cmp word [ebx], ax
jne 0x493207
mov ebx, 0x51c3f4
push edi
call sub.MSVCRT.dll_wcslen
push ebx
mov dword [esp + 0x24], eax
call sub.MSVCRT.dll_wcslen
add eax, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x1ddab40]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4932b8
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x493268
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x49326c
push 0x51c3c0
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x49326c
mov edi, dword [esp + 0x18]
push ebx
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x493290
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x4932a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4932a4
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x1ddab40]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x4932cf
cmp dword [esp + 0x14], 0xffffffff
je 0x4932c3
mov esi, dword [esp + 0x14]
push esi
push dword [0x1e53df8]
call fcn.004a5ee1
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc
Function at 0x49367c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x493692
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x493695
or eax, 0xffffffff
ret 4

Function at 0x493698
Capabilities:
Set file attributes

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
je 0x4936a6
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 8

Function at 0x493780
Capabilities:
Write file on windows

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

Function at 0x493c90
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x493cf5
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x493ced
push dword [esp + 0x10]
push dword [0x1e54a50]
call fcn.004a5f30
test eax, eax
je 0x493ce3
cmp dword [eax + 4], 0
je 0x493cd2
push edi
push esi
push eax
call fcn.00494290
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea ecx, [esp + 0xc]
push ecx
push edi
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
xor eax, eax
pop esi
pop ecx
ret 0xc

Function at 0x493d00
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x1e54a50]
call fcn.004a5f30
mov esi, eax
test esi, esi
je 0x493d7f
cmp dword [esi + 4], 0
je 0x493d50
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.004943a0
test eax, eax
je 0x493d44
inc dword [esi + 0xc]
xor eax, eax
pop esi
add esp, 8
ret 4
mov eax, 1
pop esi
add esp, 8
ret 4
push 0
lea eax, [esp + 0xc]
push eax
push 1
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x493d8a
cmp dword [esp + 8], 0
je 0x493d8a
push 1
push 0
push 0xffffffffffffffff
push dword [esi]
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 0x493f50
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x494058
cmp word [edx], 0
je 0x494058
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x493f7e
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x493fdd
cmp dword [esi + 4], 0
mov ecx, edx
lea edi, [ecx + 2]
je 0x493fb0
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x493f90
sub ecx, edi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.00494290
pop edi
pop esi
pop ecx
ret 0xc
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x493fb0
sub ecx, edi
lea eax, [esp + 8]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
push edx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
cmp ecx, 2
lea ecx, [esp + 0x14]
setne al
push ecx
dec eax
and eax, 0xfde9
push edx
push eax
call fcn.00494970
mov edi, eax
test edi, edi
je 0x493fd3
cmp dword [esi + 4], 0
je 0x49402b
push dword [esp + 0x14]
push edi
push esi
call fcn.00494290
push edi
push 0
push dword [0x1ddab40]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push 0
push dword [0x1ddab40]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc

Function at 0x494060
Capabilities:
Write file on windows

Disassembly:
push dword [esp + 4]
push dword [0x1e54a50]
call fcn.004a5f30
test eax, eax
je 0x49407c
mov dword [esp + 4], eax
jmp fcn.00493f50
xor eax, eax
ret 0xc

Function at 0x494130
Capabilities:
Read file on windows

Disassembly:
push ecx
push dword [esp + 8]
mov byte [esp + 7], 0
push dword [0x1e54a50]
call fcn.004a5f30
test eax, eax
je 0x49417b
cmp dword [eax + 4], 0
je 0x494165
push 1
lea ecx, [esp + 7]
push ecx
push eax
call fcn.004943a0
movzx eax, byte [esp + 3]
pop ecx
ret 4
push 0
lea ecx, [esp + 0xc]
push ecx
push 1
lea ecx, [esp + 0xf]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
movzx eax, byte [esp + 3]
pop ecx
ret 4
Function at 0x494290
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
mov dword [esp + 4], 0
cmp dword [esi + 0x1c], 0
jne 0x494397
cmp dword [esi + 0x14], 1
jne 0x4942db
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0xc]
push 1
neg eax
cdq
push ecx
push eax
push dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
push edi
mov edi, dword [esp + 0x20]
cmp eax, edi
jle 0x494358
mov ecx, dword [esi + 8]
add ecx, dword [esi + 4]
sub ecx, eax
mov eax, edi
dec eax
je 0x494343
dec eax
je 0x49432c
sub eax, 2
je 0x494317
push edi
push dword [esp + 0x20]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov ax, word [eax]
mov word [ecx], ax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov al, byte [eax]
mov byte [ecx], al
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
push esi
call fcn.00493780
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x494385
push 0
lea eax, [esp + 0xc]
push eax
push edi
push dword [esp + 0x28]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0xc
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
push edi
push dword [esp + 0x20]
add ecx, eax
jmp 0x494301
xor eax, eax
pop esi
add esp, 0xc
ret 0xc
Function at 0x4943a0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0
jne 0x4943c1
push esi
call fcn.00493780
mov dword [esi + 0x14], 1
mov dword [esi + 0xc], 0
mov ebx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x10]
cmp ebx, edi
jl 0x494435
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
dec ecx
je 0x494422
dec ecx
je 0x49440d
sub ecx, 2
je 0x4943fa
push edi
push eax
push dword [esp + 0x1c]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [eax]
mov eax, dword [esp + 0x14]
mov dword [eax], ecx
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov cx, word [eax]
mov eax, dword [esp + 0x14]
mov word [eax], cx
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [esp + 0x14]
mov dl, byte [eax]
mov eax, edi
mov byte [ecx], dl
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
push ebp
mov ebp, dword [esp + 0x18]
sub eax, ebx
add eax, dword [esi + 4]
push ebx
push eax
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 0x49447a
lea eax, [esp + 0x18]
push eax
push edi
push ebp
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
mov dword [esi + 0xc], 0
add eax, ebx
pop esi
pop ebx
ret 0xc
lea ecx, [esp + 0x18]
push ecx
push eax
push dword [esi + 4]
push dword [esi]
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 0x49449b
mov edi, eax
push edi
push dword [esi + 4]
push ebp
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0xc], edi
lea eax, [ebx + edi]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret 0xc