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 [0xec9124]
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 [0xec9124]
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 [0xf42ca8]
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 [0xf41900], 0
jne 0x48817e
call fcn.004880f0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0xf41904]
call esi
test eax, eax
jne 0x4881a1
call fcn.004880f0
push dword [0xf41904]
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 [0xf41900], 0
jne 0x48823e
call fcn.004880f0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0xf41904]
call esi
mov edx, eax
test edx, edx
jne 0x488265
call fcn.004880f0
push dword [0xf41904]
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 [0xf42c1c]
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 [0xf42fec]
call fcn.004a5a04
xor ebp, ebp
mov esi, eax
cmp dword [0xf41ca8], ebp
jne 0x48b6c0
xor ebx, ebx
inc ebx
mov dword [0xf41ca8], ebx
call fcn.004904ed
mov edi, 0xa4
push edi
push ebp
push 0xf41cb0
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0xf41cb0], 0x13
lea eax, [esp + 0x10]
mov dword [0xf41cb4], edi
mov dword [0xf41cc0], 0x48b52f
mov dword [0xf41cc4], 0x48b85a
push eax
mov dword [0xf41d18], 0x48b50a
mov dword [0xf41d1c], 0x48b7a5
mov dword [0xf41cbc], 0x48b4e5
mov dword [0xf41d40], 0x48b54a
mov dword [0xf41d54], 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 [0xf41d54], ebp
jmp 0x48b6c0
jne 0x48b6c0
mov eax, dword [esp + 0x18]
neg eax
sbb eax, eax
and dword [0xf41d54], 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 [0xec9128]
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 [0xf42c1c]
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 0xf41cb0
push ebx
push esi
push dword [esp + 0x134]
mov dword [0xf41cac], 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 [0xf42fec]
call fcn.004a5a04
xor ebx, ebx
mov ebp, eax
cmp dword [0xf42258], ebx
jne 0x48f4fe
mov esi, 0xa4
push esi
push ebx
push 0xf42260
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0xf42264], esi
mov esi, dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [0xf42260], 0xa
mov dword [0xf42268], 0x48efff
push 0x7f89
push ebx
mov dword [0xf422d8], 0x48fcb3
mov dword [0xf422dc], 0x48fc8d
mov dword [0xf4226c], 0x48f01e
mov dword [0xf422f0], 0x48f03e
call esi
mov dword [0xf42258], eax
test eax, eax
jne 0x48f4fe
push 0x7f00
push ebx
call esi
mov dword [0xf42258], 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 [0xec9128]
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 [0xf42c1c]
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 [0xec9124]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0xf42260
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 0x490c3b
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 0x490db1
mov eax, dword [esp + 0x24]
dec eax
je 0x490d94
dec eax
jne 0x490db1
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.00490bf4
pop ecx
test eax, eax
je 0x490cf2
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x490cb5
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x490d90
dec ebx
je 0x490d8c
dec ebx
je 0x490d6b
dec ebx
je 0x490d25
sub ebx, 4
jne 0x490db1
test edi, edi
jne 0x490db1
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x490db1
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 0x490cb5
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x490cb0
sub edi, 0
je 0x490d5d
dec edi
je 0x490d4f
dec edi
je 0x490d41
dec edi
jne 0x490db1
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x490db1
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x490db1
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x490db1
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x490db1
sub edi, 0
je 0x490d88
dec edi
je 0x490d84
dec edi
jne 0x490db1
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x490db1
push 0x3c
jmp 0x490db0
push 0x32
jmp 0x490db0
push 0x14
jmp 0x490db0
push 5
jmp 0x490db0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x490dae
cmp eax, 0xa
je 0x490daa
cmp eax, 0x5a
jne 0x490db1
push 0x28
jmp 0x490db0
push 0x1e
jmp 0x490db0
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x490f1d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0xf42c18]
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 [0xf42c18]
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 0x492903
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 0x492a4b
xor ecx, ecx
cmp word [eax], cx
je 0x492a4b
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 0x49295c
cmp eax, 3
jne 0x492996
cmp word [esp + 0xa], 0x3a
jne 0x492996
cmp eax, 2
jne 0x49297a
lea eax, [esp + 8]
push 0x51c318
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 0x492a4b
push 0xfffffffffffffffe
pop edi
jmp 0x492a4b
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x4929ab
cmp ax, bx
jne 0x4929b5
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x49299e
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x4929f4
test byte [esp + 0x21c], 0x10
je 0x4929db
push 0xfffffffffffffffe
pop edi
jmp 0x4929eb
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x492a49
cmp word [esp + 0x10], bp
jne 0x492a02
cmp word [esp + 0x12], bp
je 0x492a21
cmp word [esp + 0x10], bx
jne 0x492a10
cmp word [esp + 0x12], bx
je 0x492a21
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x492a49
cmp word [esp + 0x12], ax
jne 0x492a49
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x492a36
test al, 0x10
je 0x492a49
jmp 0x492a46
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x492a49
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 0x492a8c
Capabilities:
Copy file

Disassembly:
cmp dword [esp + 4], 0
je 0x492aac
cmp dword [esp + 8], 0
je 0x492aac
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x492aae
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 [0xf423f0]
push esi
test eax, eax
jne 0x492f28
push fcn.00493030
push 0x10
push 0x258
call fcn.004a5d13
mov dword [0xf423f0], 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 [0xec9124]
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 [0xec9124]
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 [0xf423f0]
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 [0xf43024]
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 [0xf43024]
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