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

Disassembly:
push ebx
push edi
xor edi, edi
mov ebx, edi
cmp dword [esp + 0x10], ebx
je 0x464ae4
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 0x464ae3
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
push ebp
push edi
push dword [0x1df67e0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x464adb
push ebx
lea eax, [esp + 0x1c]
push eax
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push edi
push dword [esp + 0x1c]
call fcn.00464f02
push edi
push 0
push dword [0x1df67e0]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop esi
pop edi
mov eax, ebx
pop ebx
ret 8

Function at 0x464aeb
Capabilities:
Create thread

Disassembly:
push ecx
push ecx
push ebx
push ebp
push edi
push dword [esp + 0x18]
xor ebp, ebp
push dword [0x1e701dc]
mov ebx, ebp
call fcn.004a2432
mov edi, eax
test edi, edi
je 0x464baa
push esi
push dword [esp + 0x1c]
call fcn.00464c8b
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 0x464b6d
mov eax, dword [edi + 0xc]
cdq
sub eax, edx
sar eax, 1
push eax
push dword [esp + 0x10]
push dword [edi]
call fcn.00464e80
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 0x464bb4
push 0x2000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x464b93
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 0x4842b0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x1e6ef88], 0
jne 0x4842be
call fcn.00484230
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x1e6ef8c]
call esi
test eax, eax
jne 0x4842e1
call fcn.00484230
push dword [0x1e6ef8c]
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 0x4842f0
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 0x484350
mov ebx, 0x10
test edi, edi
jns 0x484359
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x484322
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x484370
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x1e6ef88], 0
jne 0x48437e
call fcn.00484230
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x1e6ef8c]
call esi
mov edx, eax
test edx, edx
jne 0x4843a5
call fcn.00484230
push dword [0x1e6ef8c]
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 0x4843d8
mov ebx, 0x10
test esi, esi
jns 0x4843e1
mov esi, 0x10
mov dword [edx], ebx
mov eax, edi
mov dword [edx + 4], esi
test ebp, ebp
je 0x4843f0
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x484cf2
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x1e7014c]
call fcn.004a2432
mov ebx, eax
test ebx, ebx
je 0x484d56
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x484d1b
push dword [esp + 0xc]
push ebx
call eax
jmp 0x484d56
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.004a2f70
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.004a3050
pop edi
pop esi
pop ebx
ret 8
Function at 0x487741
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x1e70520]
call fcn.004a21f6
xor ebp, ebp
mov esi, eax
cmp dword [0x1e6f330], ebp
jne 0x48781d
xor ebx, ebx
inc ebx
mov dword [0x1e6f330], ebx
call fcn.0048c607
mov edi, 0xa4
push edi
push ebp
push 0x1e6f338
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x1e6f338], 0x13
lea eax, [esp + 0x10]
mov dword [0x1e6f33c], edi
mov dword [0x1e6f348], 0x48768c
mov dword [0x1e6f34c], 0x4879b7
push eax
mov dword [0x1e6f3a0], 0x487667
mov dword [0x1e6f3a4], 0x487902
mov dword [0x1e6f344], 0x487642
mov dword [0x1e6f3c8], 0x4876a7
mov dword [0x1e6f3dc], ebx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x48781d
cmp dword [esp + 0x20], ebx
je 0x487805
cmp dword [esp + 0x20], 2
jne 0x48781d
cmp dword [esp + 0x14], 5
jae 0x48780d
mov dword [0x1e6f3dc], ebp
jmp 0x48781d
jne 0x48781d
mov eax, dword [esp + 0x18]
neg eax
sbb eax, eax
and dword [0x1e6f3dc], 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.00491a10
mov eax, dword [esp + 0x140]
push ebp
push dword [0x1df67e4]
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 0x4878f3
push dword [esp + 0x128]
push dword [0x1e7014c]
call fcn.004a2471
mov edi, dword [esp + 0x13c]
mov esi, eax
mov dword [esi + 0x10], edi
test edi, edi
je 0x4878c2
push edi
call fcn.0049d285
test eax, eax
je 0x4878c2
push ebp
push ebp
push edi
call fcn.0049cdfa
mov dword [esi + 0x18], eax
jmp 0x4878c5
mov dword [esi + 0x18], ebp
push 0x487391
push 0xfffffffffffffffc
push ebx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x1e6f338
push ebx
push esi
push dword [esp + 0x134]
mov dword [0x1e6f334], eax
call fcn.0048bc14
mov ebx, eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x114
ret 0x1c

Function at 0x4895dc
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 0x48964e
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
cmp ebx, 0xffffffff
jne 0x489605
mov ebx, eax
push dword [ebp]
call fcn.00488da8
push ebx
push dword [ebp]
mov edi, eax
call fcn.00488d7f
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.0048966e
pop ecx
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x48b504
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push dword [0x1e70520]
call fcn.004a21f6
xor ebx, ebx
mov ebp, eax
cmp dword [0x1e6f8e0], ebx
jne 0x48b598
mov esi, 0xa4
push esi
push ebx
push 0x1e6f8e8
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x1e6f8ec], esi
mov esi, dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [0x1e6f8e8], 0xa
mov dword [0x1e6f8f0], 0x48b099
push 0x7f89
push ebx
mov dword [0x1e6f960], 0x48bd4d
mov dword [0x1e6f964], 0x48bd27
mov dword [0x1e6f8f4], 0x48b0b8
mov dword [0x1e6f978], 0x48b0d8
call esi
mov dword [0x1e6f8e0], eax
test eax, eax
jne 0x48b598
push 0x7f00
push ebx
call esi
mov dword [0x1e6f8e0], 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.00491a10
push ebx
push dword [0x1df67e4]
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 0x48b664
push edi
push dword [esp + 0x14]
push dword [0x1e7014c]
call fcn.004a2471
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 [0x1df67e0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0x1e6f8e8
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.0048bc14
push 0x48b1be
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 0x48cbf9
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 0x48cd6f
mov eax, dword [esp + 0x24]
dec eax
je 0x48cd52
dec eax
jne 0x48cd6f
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.0048cbb2
pop ecx
test eax, eax
je 0x48ccb0
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x48cc73
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x48cd4e
dec ebx
je 0x48cd4a
dec ebx
je 0x48cd29
dec ebx
je 0x48cce3
sub ebx, 4
jne 0x48cd6f
test edi, edi
jne 0x48cd6f
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x48cd6f
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 0x48cc73
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x48cc6e
sub edi, 0
je 0x48cd1b
dec edi
je 0x48cd0d
dec edi
je 0x48ccff
dec edi
jne 0x48cd6f
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x48cd6f
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x48cd6f
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x48cd6f
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x48cd6f
sub edi, 0
je 0x48cd46
dec edi
je 0x48cd42
dec edi
jne 0x48cd6f
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x48cd6f
push 0x3c
jmp 0x48cd6e
push 0x32
jmp 0x48cd6e
push 0x14
jmp 0x48cd6e
push 5
jmp 0x48cd6e
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x48cd6c
cmp eax, 0xa
je 0x48cd68
cmp eax, 0x5a
jne 0x48cd6f
push 0x28
jmp 0x48cd6e
push 0x1e
jmp 0x48cd6e
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x48cefc
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x1e70140]
call fcn.004a2432
mov esi, eax
test esi, esi
je 0x48cfd6
cmp dword [ebp + 0xc], 0
je 0x48cf48
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x48cf39
cmp dword [esi + 0x1c], 0
jne 0x48cf39
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x48cfd6
test byte [ebp + 0x10], 3
je 0x48cf63
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.0048e139
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x48cf88
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 0x48cf9c
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 0x48cfb9
test ebx, ebx
je 0x48cfad
push 8
jmp 0x48cfbf
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x48cfcc
test ebx, ebx
je 0x48cfc2
push 3
pop ecx
jmp 0x48cfcc
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 0x48e4e1
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 0x48e579
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x48e576
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x48e576
lea eax, [esi - 1]
push eax
push dword [0x1e70140]
call fcn.004a2432
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x48e578
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x48e56d
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x48e660
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x48e553
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x48e61f
push eax
call esi
test al, al
jns 0x48e61f
push 0x11
call esi
test al, al
js 0x48e61f
push 0x10
call esi
test al, al
js 0x48e61f
push 0x12
call esi
test al, al
js 0x48e61f
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x48e61f
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x48e5f3
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x48e60a
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x48e66a
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x48e66a
test ebp, ebp
je 0x48e643
push 0x11
call esi
test al, al
js 0x48e63b
push 0x10
call esi
test al, al
js 0x48e63b
push 0x12
call esi
test al, al
jns 0x48e643
push 1
push ebp
call fcn.0048e676
test ebx, ebx
je 0x48e657
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x48e66a
test edi, edi
je 0x48e66a
mov eax, dword [edi + 8]
jmp 0x48e66c
and dword [esp + 0x14], 0
jmp 0x48e578
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x48e854
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 0x48e99c
xor ecx, ecx
cmp word [eax], cx
je 0x48e99c
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 0x48e8ad
cmp eax, 3
jne 0x48e8e7
cmp word [esp + 0xa], 0x3a
jne 0x48e8e7
cmp eax, 2
jne 0x48e8cb
lea eax, [esp + 8]
push 0x514390
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 0x48e99c
push 0xfffffffffffffffe
pop edi
jmp 0x48e99c
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x48e8fc
cmp ax, bx
jne 0x48e906
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x48e8ef
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x48e945
test byte [esp + 0x21c], 0x10
je 0x48e92c
push 0xfffffffffffffffe
pop edi
jmp 0x48e93c
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x48e99a
cmp word [esp + 0x10], bp
jne 0x48e953
cmp word [esp + 0x12], bp
je 0x48e972
cmp word [esp + 0x10], bx
jne 0x48e961
cmp word [esp + 0x12], bx
je 0x48e972
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x48e99a
cmp word [esp + 0x12], ax
jne 0x48e99a
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x48e987
test al, 0x10
je 0x48e99a
jmp 0x48e997
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x48e99a
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 0x48e9dd
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x48ea06
test byte [esp + 8], 2
je 0x48e9fa
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 0x48ea08
xor eax, eax
ret 8

Function at 0x48ea19
Capabilities:
Copy file

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

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

Function at 0x48ef87
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x1e6fa78]
push esi
test eax, eax
jne 0x48efac
push fcn.0048f0b4
push 0x10
push 0x258
call fcn.004a2505
mov dword [0x1e6fa78], eax
push dword [esp + 0xc]
push eax
call fcn.004a2471
mov esi, eax
test esi, esi
je 0x48f0ad
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x48efce
mov edi, 0x4fd0a8
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x48efde
xor eax, eax
cmp word [ebx], ax
jne 0x48efe3
mov ebx, 0x5143c4
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 [0x1df67e0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x48f094
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x48f044
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x48f048
push 0x514390
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x48f048
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 0x48f06c
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x48f082
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x48f080
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x1df67e0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x48f0ab
cmp dword [esp + 0x14], 0xffffffff
je 0x48f09f
mov esi, dword [esp + 0x14]
push esi
push dword [0x1e6fa78]
call fcn.004a23e3
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc
Function at 0x48f458
Capabilities:
Check if file exists
Get file attributes

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

Function at 0x48f474
Capabilities:
Set file attributes

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

Function at 0x48f560
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 0x48f59c
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 0x48fa80
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x48fae5
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x48fadd
push dword [esp + 0x10]
push dword [0x1e70558]
call fcn.004a2432
test eax, eax
je 0x48fad3
cmp dword [eax + 4], 0
je 0x48fac2
push edi
push esi
push eax
call fcn.0048ffd0
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 0x48faf0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x1e70558]
call fcn.004a2432
mov esi, eax
test esi, esi
je 0x48fb6f
cmp dword [esi + 4], 0
je 0x48fb40
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.004900e0
test eax, eax
je 0x48fb34
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 0x48fb7a
cmp dword [esp + 8], 0
je 0x48fb7a
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