joyce8/EMBER2024-capa huggingface dataset:
Function at 0x468914
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
push edi
xor edi, edi
mov ebp, edi
cmp dword [esp + 0x10], edi
je 0x46899a
push esi
push edi
push pe_nt_image_headers32
push 3
push edi
push 1
push 0x80000000
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x468999
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push edi
push dword [0xec90cc]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x468991
push ebp
lea eax, [esp + 0x1c]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x18], ebx
jne 0x468982
push ebx
push edi
push dword [esp + 0x1c]
call fcn.00468dc2
mov ebp, eax
push edi
push 0
push dword [0xec90cc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
pop edi
mov eax, ebp
pop ebp
ret 8

Function at 0x4689a1
Capabilities:
Create thread

Disassembly:
push ecx
push ecx
push ebx
push ebp
push edi
push dword [esp + 0x18]
xor ebp, ebp
push dword [0xf42c50]
mov ebx, ebp
call fcn.004a5c40
mov edi, eax
test edi, edi
je 0x468a60
push esi
push dword [esp + 0x1c]
call fcn.00468b41
mov esi, dword [edi + 8]
lea eax, [esp + 0x14]
push ebp
push ebp
push ebp
push eax
lea eax, [esp + 0x20]
mov dword [edi + 4], 1
mov ecx, dword [esi]
push eax
mov eax, dword [edi + 0xc]
cdq
sub eax, edx
sar eax, 1
push eax
push ebp
push esi
call dword [ecx + 0x2c]
pop esi
test eax, eax
jne 0x468a23
mov eax, dword [edi + 0xc]
cdq
sub eax, edx
sar eax, 1
push eax
push dword [esp + 0x10]
push dword [edi]
call fcn.00468d40
mov eax, dword [edi + 8]
add esp, 0xc
mov ecx, dword [eax]
push ebp
push ebp
push dword [esp + 0x18]
push dword [esp + 0x18]
push eax
call dword [ecx + 0x4c]
lea eax, [esp + 0x18]
push eax
push ebp
push edi
push 0x468a6a
push 0x2000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x468a49
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
inc ebx
mov eax, dword [edi + 8]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov ecx, dword [edi + 8]
push 1
push ebp
push ebp
mov edx, dword [ecx]
push ecx
call dword [edx + 0x30]
pop edi
pop ebp
mov eax, ebx
pop ebx
pop ecx
pop ecx
ret 4
Function at 0x488170
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0xf418a8], 0
jne 0x48817e
call fcn.004880f0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0xf418ac]
call esi
test eax, eax
jne 0x4881a1
call fcn.004880f0
push dword [0xf418ac]
call esi
mov edx, dword [esp + 0x14]
lea esi, [eax + 8]
mov edi, 0x11
lea ecx, [ecx]
imul ecx, edx, 0x53a9b4fb
lea esi, [esi + 4]
mov edx, 1
sub edx, ecx
imul ecx, edx, 0x53a9b4fb
mov dword [esi + 0x40], edx
mov edx, 1
sub edx, ecx
mov dword [esi - 4], edx
dec edi
jne 0x4881b0
mov dword [eax], edi
lea ebp, [edi + 0x1f]
mov dword [eax + 4], 0xa
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax + ebx*4 + 8]
mov ecx, dword [eax + ebx*4 + 0x4c]
mov esi, dword [eax + edi*4 + 8]
ror ecx, 0xd
add ecx, dword [eax + edi*4 + 0x4c]
dec edi
ror edx, 5
add edx, esi
mov dword [eax + ebx*4 + 8], ecx
mov dword [eax + ebx*4 + 0x4c], edx
dec ebx
jns 0x488210
mov ebx, 0x10
test edi, edi
jns 0x488219
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x4881e2
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x488230
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0xf418a8], 0
jne 0x48823e
call fcn.004880f0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0xf418ac]
call esi
mov edx, eax
test edx, edx
jne 0x488265
call fcn.004880f0
push dword [0xf418ac]
call esi
mov edx, eax
mov ebx, dword [edx]
mov esi, dword [edx + 4]
mov ebp, dword [esp + 0x14]
inc ebp
mov edi, dword [edx + ebx*4 + 0x4c]
mov eax, dword [edx + ebx*4 + 8]
mov ecx, dword [edx + esi*4 + 8]
ror edi, 0xd
add edi, dword [edx + esi*4 + 0x4c]
dec esi
ror eax, 5
add eax, ecx
mov dword [edx + ebx*4 + 8], edi
mov dword [edx + ebx*4 + 0x4c], eax
dec ebx
jns 0x488298
mov ebx, 0x10
test esi, esi
jns 0x4882a1
mov esi, 0x10
mov dword [edx], ebx
mov eax, edi
mov dword [edx + 4], esi
test ebp, ebp
je 0x4882b0
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x48aab8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0xf42bc4]
call fcn.004a5c40
mov ebx, eax
test ebx, ebx
je 0x48ab1c
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x48aae1
push dword [esp + 0xc]
push ebx
call eax
jmp 0x48ab1c
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.004a6790
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
sub edi, eax
push edi
call fcn.004a6870
pop edi
pop esi
pop ebx
ret 8
Function at 0x48b5e4
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0xf42f94]
call fcn.004a5a04
xor ebp, ebp
mov esi, eax
cmp dword [0xf41c50], ebp
jne 0x48b6c0
xor ebx, ebx
inc ebx
mov dword [0xf41c50], ebx
call fcn.004904ed
mov edi, 0xa4
push edi
push ebp
push 0xf41c58
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0xf41c58], 0x13
lea eax, [esp + 0x10]
mov dword [0xf41c5c], edi
mov dword [0xf41c68], 0x48b52f
mov dword [0xf41c6c], 0x48b85a
push eax
mov dword [0xf41cc0], 0x48b50a
mov dword [0xf41cc4], 0x48b7a5
mov dword [0xf41c64], 0x48b4e5
mov dword [0xf41ce8], 0x48b54a
mov dword [0xf41cfc], ebx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x48b6c0
cmp dword [esp + 0x20], ebx
je 0x48b6a8
cmp dword [esp + 0x20], 2
jne 0x48b6c0
cmp dword [esp + 0x14], 5
jae 0x48b6b0
mov dword [0xf41cfc], ebp
jmp 0x48b6c0
jne 0x48b6c0
mov eax, dword [esp + 0x18]
neg eax
sbb eax, eax
and dword [0xf41cfc], 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.004959d3
mov eax, dword [esp + 0x140]
push ebp
push dword [0xec90d0]
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 0x51bdd4
push ebp
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x48b796
push dword [esp + 0x128]
push dword [0xf42bc4]
call fcn.004a5c7f
mov edi, dword [esp + 0x13c]
mov esi, eax
mov dword [esi + 0x10], edi
test edi, edi
je 0x48b765
push edi
call fcn.004a0b36
test eax, eax
je 0x48b765
push ebp
push ebp
push edi
call fcn.004a06f4
mov dword [esi + 0x18], eax
jmp 0x48b768
mov dword [esi + 0x18], ebp
push 0x48b234
push 0xfffffffffffffffc
push ebx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0xf41c58
push ebx
push esi
push dword [esp + 0x134]
mov dword [0xf41c54], eax
call fcn.0048fb7a
mov ebx, eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x114
ret 0x1c

Function at 0x48d52e
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 0x48d5a0
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
cmp ebx, 0xffffffff
jne 0x48d557
mov ebx, eax
push dword [ebp]
call fcn.0048ccb0
push ebx
push dword [ebp]
mov edi, eax
call fcn.0048cc87
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.0048d5c0
pop ecx
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x48f46a
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push dword [0xf42f94]
call fcn.004a5a04
xor ebx, ebx
mov ebp, eax
cmp dword [0xf42200], ebx
jne 0x48f4fe
mov esi, 0xa4
push esi
push ebx
push 0xf42208
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0xf4220c], esi
mov esi, dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [0xf42208], 0xa
mov dword [0xf42210], 0x48efff
push 0x7f89
push ebx
mov dword [0xf42280], 0x48fcb3
mov dword [0xf42284], 0x48fc8d
mov dword [0xf42214], 0x48f01e
mov dword [0xf42298], 0x48f03e
call esi
mov dword [0xf42200], eax
test eax, eax
jne 0x48f4fe
push 0x7f00
push ebx
call esi
mov dword [0xf42200], 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.004959d3
push ebx
push dword [0xec90d0]
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 0x51be08
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x48f5ca
push edi
push dword [esp + 0x14]
push dword [0xf42bc4]
call fcn.004a5c7f
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 [0xec90cc]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0xf42208
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.0048fb7a
push 0x48f124
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 0x490f1d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0xf42bc0]
call fcn.004a5c40
mov esi, eax
test esi, esi
je 0x490ff7
cmp dword [ebp + 0xc], 0
je 0x490f69
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x490f5a
cmp dword [esi + 0x1c], 0
jne 0x490f5a
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x490ff7
test byte [ebp + 0x10], 3
je 0x490f84
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.004921a5
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x490fa9
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 0x490fbd
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 0x490fda
test ebx, ebx
je 0x490fce
push 8
jmp 0x490fe0
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x490fed
test ebx, ebx
je 0x490fe3
push 3
pop ecx
jmp 0x490fed
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 0x492554
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 0x4925ec
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4925e9
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x4925e9
lea eax, [esi - 1]
push eax
push dword [0xf42bc0]
call fcn.004a5c40
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x4925eb
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x4925e0
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x4926d3
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x4925c6
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x492692
push eax
call esi
test al, al
jns 0x492692
push 0x11
call esi
test al, al
js 0x492692
push 0x10
call esi
test al, al
js 0x492692
push 0x12
call esi
test al, al
js 0x492692
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x492692
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x492666
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x49267d
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x4926dd
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x4926dd
test ebp, ebp
je 0x4926b6
push 0x11
call esi
test al, al
js 0x4926ae
push 0x10
call esi
test al, al
js 0x4926ae
push 0x12
call esi
test al, al
jns 0x4926b6
push 1
push ebp
call fcn.004926e9
test ebx, ebx
je 0x4926ca
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x4926dd
test edi, edi
je 0x4926dd
mov eax, dword [edi + 8]
jmp 0x4926df
and dword [esp + 0x14], 0
jmp 0x4925eb
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4

Function at 0x4928c7
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x4928f0
test byte [esp + 8], 2
je 0x4928e4
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 0x4928f2
xor eax, eax
ret 8
Function at 0x492dd1
Capabilities:
Create directory

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

Function at 0x492f03
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0xf42398]
push esi
test eax, eax
jne 0x492f28
push fcn.00493030
push 0x10
push 0x258
call fcn.004a5d13
mov dword [0xf42398], eax
push dword [esp + 0xc]
push eax
call fcn.004a5c7f
mov esi, eax
test esi, esi
je 0x493029
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x492f4a
mov edi, 0x505008
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x492f5a
xor eax, eax
cmp word [ebx], ax
jne 0x492f5f
mov ebx, 0x51c31c
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 [0xec90cc]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x493010
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x492fc0
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x492fc4
push 0x51c318
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x492fc4
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 0x492fe8
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x492ffe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x492ffc
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0xec90cc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x493027
cmp dword [esp + 0x14], 0xffffffff
je 0x49301b
mov esi, dword [esp + 0x14]
push esi
push dword [0xf42398]
call fcn.004a5bf1
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc
Function at 0x4934a3
Capabilities:
Check if file exists
Get file attributes

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

Function at 0x4934bf
Capabilities:
Set file attributes

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

Function at 0x4935b0
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 0x4935ec
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 0x493ac0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x493b25
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x493b1d
push dword [esp + 0x10]
push dword [0xf42fcc]
call fcn.004a5c40
test eax, eax
je 0x493b13
cmp dword [eax + 4], 0
je 0x493b02
push edi
push esi
push eax
call fcn.004940c0
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 0x493b30
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0xf42fcc]
call fcn.004a5c40
mov esi, eax
test esi, esi
je 0x493baf
cmp dword [esi + 4], 0
je 0x493b80
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.004941d0
test eax, eax
je 0x493b74
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 0x493bba
cmp dword [esp + 8], 0
je 0x493bba
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 0x493d80
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x493e88
cmp word [edx], 0
je 0x493e88
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x493dae
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x493e0d
cmp dword [esi + 4], 0
mov ecx, edx
lea edi, [ecx + 2]
je 0x493de0
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x493dc0
sub ecx, edi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.004940c0
pop edi
pop esi
pop ecx
ret 0xc
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x493de0
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.004947a0
mov edi, eax
test edi, edi
je 0x493e03
cmp dword [esi + 4], 0
je 0x493e5b
push dword [esp + 0x14]
push edi
push esi
call fcn.004940c0
push edi
push 0
push dword [0xec90cc]
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 [0xec90cc]
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 0x493e90
Capabilities:
Write file on windows

Disassembly:
push dword [esp + 4]
push dword [0xf42fcc]
call fcn.004a5c40
test eax, eax
je 0x493eac
mov dword [esp + 4], eax
jmp fcn.00493d80
xor eax, eax
ret 0xc
Function at 0x4942f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0xec90cc]
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x494474
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 0x49433e
test ebp, ebp
je 0x4943e0
dec ebp
cmp dword [ebx + 4], 0
je 0x494357
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.004941d0
mov dword [esp + 0x14], eax
jmp 0x494371
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 0x4943e0
test cl, cl
je 0x494385
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 0x4943c0
mov eax, dword [esp + 0x18]
add eax, 0x1000
push eax
push edx
push 8
push dword [0xec90cc]
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 0x4943e0
cmp dword [esp + 0x2c], 0
jne 0x494330
cmp cl, 0xd
je 0x4943e7
cmp cl, 0xa
jne 0x494330
dec esi
jmp 0x494457
cmp dword [esp + 0x2c], 0
jne 0x494457
cmp cl, 0xa
jne 0x4943ef
dec esi
jmp 0x494457
cmp cl, 0xd
jne 0x494457
dec esi
cmp dword [ebx + 4], 0
je 0x49440e
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.004941d0
mov dword [esp + 0x14], eax
jmp 0x494424
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 0x494457
cmp dword [ebx + 4], 0
je 0x494436
inc dword [ebx + 0xc]
jmp 0x494457
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