joyce8/EMBER2024-capa huggingface dataset:
Function at 0x496438
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push dword [0x16615dc]
call fcn.004ac994
xor ebx, ebx
mov ebp, eax
cmp dword [0x1660848], ebx
jne 0x4964cc
mov esi, 0xa4
push esi
push ebx
push 0x1660850
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x1660854], esi
mov esi, dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [0x1660850], 0xa
mov dword [0x1660858], 0x495fcd
push 0x7f89
push ebx
mov dword [0x16608c8], 0x496cb3
mov dword [0x16608cc], 0x496c8d
mov dword [0x166085c], 0x495fec
mov dword [0x16608e0], 0x49600c
call esi
mov dword [0x1660848], eax
test eax, eax
jne 0x4964cc
push 0x7f00
push ebx
call esi
mov dword [0x1660848], 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.0049c9d3
push ebx
push dword [0x15e7724]
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 0x496598
push edi
push dword [esp + 0x14]
push dword [0x166120c]
call fcn.004acc0f
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 [0x15e7720]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0x1660850
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.00496b7a
push 0x4960f2
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 0x497c3b
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 0x497db1
mov eax, dword [esp + 0x24]
dec eax
je 0x497d94
dec eax
jne 0x497db1
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.00497bf4
pop ecx
test eax, eax
je 0x497cf2
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x497cb5
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x497d90
dec ebx
je 0x497d8c
dec ebx
je 0x497d6b
dec ebx
je 0x497d25
sub ebx, 4
jne 0x497db1
test edi, edi
jne 0x497db1
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x497db1
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 0x497cb5
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x497cb0
sub edi, 0
je 0x497d5d
dec edi
je 0x497d4f
dec edi
je 0x497d41
dec edi
jne 0x497db1
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x497db1
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x497db1
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x497db1
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x497db1
sub edi, 0
je 0x497d88
dec edi
je 0x497d84
dec edi
jne 0x497db1
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x497db1
push 0x3c
jmp 0x497db0
push 0x32
jmp 0x497db0
push 0x14
jmp 0x497db0
push 5
jmp 0x497db0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x497dae
cmp eax, 0xa
je 0x497daa
cmp eax, 0x5a
jne 0x497db1
push 0x28
jmp 0x497db0
push 0x1e
jmp 0x497db0
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x497f1d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x1661208]
call fcn.004acbd0
mov esi, eax
test esi, esi
je 0x497ff7
cmp dword [ebp + 0xc], 0
je 0x497f69
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x497f5a
cmp dword [esi + 0x1c], 0
jne 0x497f5a
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x497ff7
test byte [ebp + 0x10], 3
je 0x497f84
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.004991a5
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x497fa9
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 0x497fbd
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 0x497fda
test ebx, ebx
je 0x497fce
push 8
jmp 0x497fe0
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x497fed
test ebx, ebx
je 0x497fe3
push 3
pop ecx
jmp 0x497fed
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 0x499554
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 0x4995ec
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4995e9
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x4995e9
lea eax, [esi - 1]
push eax
push dword [0x1661208]
call fcn.004acbd0
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x4995eb
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x4995e0
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x4996d3
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x4995c6
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x499692
push eax
call esi
test al, al
jns 0x499692
push 0x11
call esi
test al, al
js 0x499692
push 0x10
call esi
test al, al
js 0x499692
push 0x12
call esi
test al, al
js 0x499692
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x499692
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x499666
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x49967d
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x4996dd
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x4996dd
test ebp, ebp
je 0x4996b6
push 0x11
call esi
test al, al
js 0x4996ae
push 0x10
call esi
test al, al
js 0x4996ae
push 0x12
call esi
test al, al
jns 0x4996b6
push 1
push ebp
call fcn.004996e9
test ebx, ebx
je 0x4996ca
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x4996dd
test edi, edi
je 0x4996dd
mov eax, dword [edi + 8]
jmp 0x4996df
and dword [esp + 0x14], 0
jmp 0x4995eb
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4

Function at 0x4998c7
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x4998f0
test byte [esp + 8], 2
je 0x4998e4
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 0x4998f2
xor eax, eax
ret 8
Function at 0x499903
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 0x499a4b
xor ecx, ecx
cmp word [eax], cx
je 0x499a4b
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 0x49995c
cmp eax, 3
jne 0x499996
cmp word [esp + 0xa], 0x3a
jne 0x499996
cmp eax, 2
jne 0x49997a
lea eax, [esp + 8]
push 0x523318
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 0x499a4b
push 0xfffffffffffffffe
pop edi
jmp 0x499a4b
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x4999ab
cmp ax, bx
jne 0x4999b5
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x49999e
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x4999f4
test byte [esp + 0x21c], 0x10
je 0x4999db
push 0xfffffffffffffffe
pop edi
jmp 0x4999eb
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x499a49
cmp word [esp + 0x10], bp
jne 0x499a02
cmp word [esp + 0x12], bp
je 0x499a21
cmp word [esp + 0x10], bx
jne 0x499a10
cmp word [esp + 0x12], bx
je 0x499a21
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x499a49
cmp word [esp + 0x12], ax
jne 0x499a49
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x499a36
test al, 0x10
je 0x499a49
jmp 0x499a46
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x499a49
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 0x499a8c
Capabilities:
Copy file

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x499f18
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 0x499ef9
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x499ef6
cmp ecx, 0x5c
je 0x499ef6
cmp ecx, 0x2f
jne 0x499f03
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x499ee3
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x499f1a
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x499fd2
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x16609e0]
push esi
test eax, eax
jne 0x499ff7
push fcn.0049a0ff
push 0x10
push 0x258
call fcn.004acca3
mov dword [0x16609e0], eax
push dword [esp + 0xc]
push eax
call fcn.004acc0f
mov esi, eax
test esi, esi
je 0x49a0f8
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x49a019
mov edi, 0x50c008
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x49a029
xor eax, eax
cmp word [ebx], ax
jne 0x49a02e
mov ebx, 0x52331c
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 [0x15e7720]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x49a0df
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x49a08f
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x49a093
push 0x523318
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x49a093
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 0x49a0b7
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x49a0cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x49a0cb
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x15e7720]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x49a0f6
cmp dword [esp + 0x14], 0xffffffff
je 0x49a0ea
mov esi, dword [esp + 0x14]
push esi
push dword [0x16609e0]
call fcn.004acb81
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc
Function at 0x49a4a3
Capabilities:
Set file attributes

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

Function at 0x49a4b4
Capabilities:
Check if file exists
Get file attributes

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

Function at 0x49a5b0
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 0x49a5ec
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 0x49aac0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x49ab25
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x49ab1d
push dword [esp + 0x10]
push dword [0x1661614]
call fcn.004acbd0
test eax, eax
je 0x49ab13
cmp dword [eax + 4], 0
je 0x49ab02
push edi
push esi
push eax
call fcn.0049b0c0
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 0x49ab30
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x1661614]
call fcn.004acbd0
mov esi, eax
test esi, esi
je 0x49abaf
cmp dword [esi + 4], 0
je 0x49ab80
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.0049b1d0
test eax, eax
je 0x49ab74
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 0x49abba
cmp dword [esp + 8], 0
je 0x49abba
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 0x49ad80
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x49ae88
cmp word [edx], 0
je 0x49ae88
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x49adae
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x49ae0d
cmp dword [esi + 4], 0
mov ecx, edx
lea edi, [ecx + 2]
je 0x49ade0
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49adc0
sub ecx, edi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.0049b0c0
pop edi
pop esi
pop ecx
ret 0xc
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49ade0
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.0049b7a0
mov edi, eax
test edi, edi
je 0x49ae03
cmp dword [esi + 4], 0
je 0x49ae5b
push dword [esp + 0x14]
push edi
push esi
call fcn.0049b0c0
push edi
push 0
push dword [0x15e7720]
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 [0x15e7720]
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 0x49ae90
Capabilities:
Write file on windows

Disassembly:
push dword [esp + 4]
push dword [0x1661614]
call fcn.004acbd0
test eax, eax
je 0x49aeac
mov dword [esp + 4], eax
jmp fcn.0049ad80
xor eax, eax
ret 0xc

Function at 0x49af60
Capabilities:
Read file on windows

Disassembly:
push ecx
push dword [esp + 8]
mov byte [esp + 7], 0
push dword [0x1661614]
call fcn.004acbd0
test eax, eax
je 0x49afab
cmp dword [eax + 4], 0
je 0x49af95
push 1
lea ecx, [esp + 7]
push ecx
push eax
call fcn.0049b1d0
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 0x49b0c0
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 0x49b1c7
cmp dword [esi + 0x14], 1
jne 0x49b10b
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 0x49b188
mov ecx, dword [esi + 8]
add ecx, dword [esi + 4]
sub ecx, eax
mov eax, edi
dec eax
je 0x49b173
dec eax
je 0x49b15c
sub eax, 2
je 0x49b147
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.0049a5b0
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x49b1b5
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 0x49b131
xor eax, eax
pop esi
add esp, 0xc
ret 0xc
Function at 0x49b1d0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0
jne 0x49b1f1
push esi
call fcn.0049a5b0
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 0x49b265
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
dec ecx
je 0x49b252
dec ecx
je 0x49b23d
sub ecx, 2
je 0x49b22a
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 0x49b2aa
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 0x49b2cb
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
Function at 0x49b2f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x15e7720]
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x49b474
mov cl, byte [esp + 3]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
mov esi, edx
mov edi, edi
cmp ebp, 0xffffffff
je 0x49b33e
test ebp, ebp
je 0x49b3e0
dec ebp
cmp dword [ebx + 4], 0
je 0x49b357
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.0049b1d0
mov dword [esp + 0x14], eax
jmp 0x49b371
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0x13]
cmp eax, 1
jne 0x49b3e0
test cl, cl
je 0x49b385
mov byte [esi], cl
inc esi
mov cl, byte [esp + 0x13]
mov eax, dword [esp + 0x18]
mov edi, esi
mov edx, dword [esp + 0x20]
dec eax
sub edi, edx
cmp edi, eax
jle 0x49b3c0
mov eax, dword [esp + 0x18]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x15e7720]
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x20], edx
lea esi, [edi + edx]
test cl, cl
je 0x49b3e0
cmp dword [esp + 0x2c], 0
jne 0x49b330
cmp cl, 0xd
je 0x49b3e7
cmp cl, 0xa
jne 0x49b330
dec esi
jmp 0x49b457
cmp dword [esp + 0x2c], 0
jne 0x49b457
cmp cl, 0xa
jne 0x49b3ef
dec esi
jmp 0x49b457
cmp cl, 0xd
jne 0x49b457
dec esi
cmp dword [ebx + 4], 0
je 0x49b40e
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.0049b1d0
mov dword [esp + 0x14], eax
jmp 0x49b424
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x49b457
cmp dword [ebx + 4], 0
je 0x49b436
inc dword [ebx + 0xc]
jmp 0x49b457
push 1
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebx]
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, esi
sub ecx, dword [esp + 0x20]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x1c]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
add esp, 0x14
ret 0x10