joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001b80
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000669d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x34
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
call fcn.10001670
test al, al
je 0x10001ca3
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x10001c16
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, 0x26
mov byte [ebp - 0x40], 0x17
mov byte [ebp - 0x31], al
mov cl, 0x23
xor al, byte [ebp - 0x40]
mov dl, 0x2f
mov byte [ebp - 0x3f], al
mov ah, 0x25
mov al, byte [ebp - 0x40]
mov ch, 0x24
xor cl, al
mov byte [ebp - 0x38], 0
xor dl, al
mov byte [ebp - 0x3e], cl
xor ah, al
mov byte [ebp - 0x3d], dl
xor ch, al
mov byte [ebp - 0x3c], ah
mov dh, 0x27
mov byte [ebp - 0x41], 0
xor dh, al
mov byte [ebp - 0x3b], ch
mov al, byte [ebp - 0x31]
mov dl, 0x6a
xor al, byte [ebp - 0x40]
mov cl, 3
mov byte [ebp - 0x39], al
xor cl, dl
mov al, 0x4f
mov byte [ebp - 0x3a], dh
xor al, dl
mov byte [ebp - 0x38], 0
mov byte [ebp - 0x43], al
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x43]
mov byte [ebp - 0x44], dl
push eax
lea eax, [ebp - 0x3f]
mov byte [ebp - 0x42], cl
push eax
mov byte [ebp - 0x41], 0
call fcn.10001050
mov esi, dword [ebp - 0x30]
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
imul eax, esi
mov byte [ebp - 0x31], 1
cmp dword [0x1000b3d4], eax
je 0x10001ca7
mov byte [ebp - 0x31], 0
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x10001cdd
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10001cd3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10001cd3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10005830
add esp, 8
mov al, byte [ebp - 0x31]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100057f2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x10001d60
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
push 2
mov dword [ebp - 0x138], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x134], 0x128
lea eax, [ebp - 0x134]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x10001dd4
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
push dword [ebp - 0x138]
lea eax, [ebp - 0x110]
push eax
call edi
test eax, eax
je 0x10001df0
lea eax, [ebp - 0x134]
push eax
push esi
call ebx
test eax, eax
jne 0x10001db3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100057f2
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x12c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100057f2
mov esp, ebp
pop ebp
ret 4

Function at 0x10001e10
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100066dd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x20
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 8
call fcn.10005800
xorps xmm0, xmm0
mov dword [ebp - 0x30], eax
add esp, 4
mov dword [eax], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
push ecx
mov ecx, eax
call fcn.10001670
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x10001eb2
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x10001ee8
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10001ede
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10001ede
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10005830
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100057f2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..data
mov ebx, 0x408f6c
nop
mov ecx, 0xb92514d
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data_1
nop
mov ebx, 0x42e3d0
mov ecx, 0x4f192bf8
nop
nop
nop
nop
nop
test eax, eax
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x10002e01
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x10002e10
pop dword [ebp - 0x28]
mov eax, 0x328d4a03
sub eax, 0x228d1bf3
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x42bb0293
add dword [ebp - 0x38], 0xb9742b8
mov dword [ebp - 0x34], 0xe0289988
sub dword [ebp - 0x34], 0xadf54d43
mov dword [ebp - 0x30], 0xecf65ca4
add dword [ebp - 0x30], 0x5f55e78a
mov dword [ebp - 0x2c], 0x407d39c8
add dword [ebp - 0x2c], 0xbf82c638
lea eax, [ebp - 0x38]
push eax
mov eax, 0x534f9602
add eax, 0xbcb0c58e
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x7141b8aa
add dword [ebp - 0x38], 0x330b0ac
mov dword [ebp - 0x34], 0x9285e8e5
sub dword [ebp - 0x34], 0x51198770
mov dword [ebp - 0x30], 0x44a3747
sub dword [ebp - 0x30], 0xa0dacadb
mov dword [ebp - 0x2c], 0x8692d26f
sub dword [ebp - 0x2c], 0x8692d26f
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0x1d9bfcb7
add eax, 0xf2645ebd
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x373aa
push 0
call eax
mov ecx, 0x49ff9be
sub ecx, 0x49faf11
xor esi, esi
add esi, eax
mov edi, 0x6e678abd
add edi, 0xa1992d43
add edi, dword [ebp - 0x28]
mov ebx, 0x70266e18
add ebx, 0x2dd7b6f
xor dword [ebp - 8], edi
mov edx, dword [edi]
add dword [ebp - 4], 0xc9ab4f24
xor edx, ebx
xor dword [ebp - 0x10], ecx
mov dword [esi], edx
mov dword [ebp - 8], 0x79d3eed1
add esi, 4
add edi, 0xdcf660a2
add edi, 0x23099f62
loop 0x10002f34
add eax, 0xc74e52dd
add eax, 0x38b2caaa
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xe976cc33
sub ecx, 0xd976cc33
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x40d29e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407ccb
mov dword [ebp - 0x14], eax
cmp dword [0x437258], esi
jne 0x40d391
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d31e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d471
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d471
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d471
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x437258], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43725c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x437260], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x437268], eax
test eax, eax
je 0x40d38e
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x437264], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d3b6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d3a9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d3cb
push 4
pop eax
jmp 0x40d473
cmp dword [ebp - 0x14], esi
je 0x40d3cb
push dword [0x437258]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d3b0
mov eax, dword [0x437264]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d429
cmp dword [0x437268], edi
je 0x40d429
push eax
call ebx
push dword [0x437268]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d429
test eax, eax
je 0x40d429
call ecx
test eax, eax
je 0x40d41e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d41e
test byte [ebp - 8], 1
jne 0x40d429
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d459
mov eax, dword [0x43725c]
cmp eax, edi
je 0x40d456
push eax
call ebx
test eax, eax
je 0x40d456
call eax
mov esi, eax
test esi, esi
je 0x40d456
mov eax, dword [0x437260]
cmp eax, edi
je 0x40d456
push eax
call ebx
test eax, eax
je 0x40d456
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x437258]
call ebx
test eax, eax
je 0x40d471
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d473
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004043de
mov esp, ebp
pop ebp
ret
Function at 0x10001dd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x10001ddf
pop dword [ebp - 0x20]
mov eax, 0x12109136
add eax, 0xfdef8ca9
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x3718c
push 0
mov eax, 0xec44bed4
sub eax, 0xdc441ed0
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0x48c8
mov edi, eax
mov ebx, 0x1000d600
add ebx, dword [ebp - 0x20]
mov edx, 0x3e3afa30
add edx, 0x729cabce
add dword [ebp - 0x14], edx
mov esi, dword [ebx]
sub dword [ebp - 0x10], 0x7d7e5d23
xor esi, edx
add dword [ebp - 0x1c], edi
mov dword [edi], esi
mov dword [ebp - 8], 0xdd328e68
add edi, 0x675bec5d
add edi, 0x98a413a7
add ebx, 0x1fd98048
sub ebx, 0x1fd98044
loop 0x10001e32
add eax, 0x63aec0f7
add eax, 0x9c5254fc
xor ebx, ebx
add ebx, eax
add eax, 0xe5ec08ce
sub eax, 0xe5ec08c9
mov ecx, 0x10000000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x1000928f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000b348]
jne 0x10009299
repz ret
jmp fcn.1000966a
Function at 0x4012d0
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x4012e2
mov eax, dword [0x4c208b]
shl eax, 2
mov dword [0x4c208f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.004b5648
pop edx
call fcn.004b49cc
call fcn.004b564c
push 0
call fcn.004b6528
pop ecx
push 0x4c2034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x4c2093], eax
push 0
jmp fcn.004bf064

Function at 0x40db1c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, eax
and eax, 0xff
and edi, 0xff00
mov dword [ebp - 8], eax
shr edi, 8
mov byte [ebx], 0
mov eax, edi
mov esi, edi
mov edx, edi
and esi, 4
and edx, 1
and eax, 2
test eax, eax
mov dword [ebp - 4], edx
je 0x40db5e
mov eax, str.Ctrl_
jmp 0x40db63
mov eax, 0x53f893
push eax
push ebx
call fcn.004b57ac
add esp, 8
cmp dword [ebp - 4], 0
je 0x40db7a
mov edx, str.Shift_
jmp 0x40db7f
mov edx, 0x53f893
push edx
push ebx
call fcn.004b57ac
add esp, 8
test esi, esi
je 0x40db94
mov eax, str.Alt_
jmp 0x40db99
mov eax, 0x53f893
push eax
push ebx
call fcn.004b57ac
add esp, 8
push 0
mov edx, dword [ebp - 8]
push edx
call sub.USER32.DLL_MapVirtualKeyA
test edi, 8
mov esi, eax
je 0x40dbc3
shl esi, 0x10
or esi, 0x3000000
jmp 0x40dbcc
shl esi, 0x10
or esi, 0x2000000
push 0x64
push ebx
call fcn.004b583c
pop ecx
add ebx, eax
push ebx
push esi
call sub.USER32.DLL_GetKeyNameTextA
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x40e010
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [ebp + 8]
push edx
push 0
call sub.KERNEL32.DLL_FindResourceA
mov ebx, eax
test ebx, ebx
jne 0x40e030
xor eax, eax
jmp 0x40e09a
push ebx
push 0
call sub.KERNEL32.DLL_LoadResource
mov esi, eax
test esi, esi
jne 0x40e042
xor eax, eax
jmp 0x40e09a
push esi
call sub.KERNEL32.DLL_LockResource
mov edi, eax
test edi, edi
jne 0x40e052
xor eax, eax
jmp 0x40e09a
push ebx
push 0
call sub.KERNEL32.DLL_SizeofResource
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
push edx
push 0x42
call sub.KERNEL32.DLL_GlobalAlloc
mov ebx, eax
test ebx, ebx
jne 0x40e078
push esi
call sub.KERNEL32.DLL_FreeResource
xor eax, eax
jmp 0x40e09a
push ebx
call sub.KERNEL32.DLL_GlobalLock
mov edx, dword [ebp - 4]
push edx
push edi
push eax
call fcn.004b5670
add esp, 0xc
push ebx
call sub.KERNEL32.DLL_GlobalUnlock
push esi
call sub.KERNEL32.DLL_FreeResource
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x40e0a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40e0cd
xor eax, eax
jmp 0x40e120
push 0
push ebx
call sub.KERNEL32.DLL_GetFileSize
mov edi, eax
cmp edi, 0xffffffff
jne 0x40e0e6
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x40e120
push edi
push 0x42
call sub.KERNEL32.DLL_GlobalAlloc
mov esi, eax
test esi, esi
jne 0x40e0fe
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x40e120
push esi
call sub.KERNEL32.DLL_GlobalLock
push 0
lea edx, [ebp - 4]
push edx
push edi
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
push esi
call sub.KERNEL32.DLL_GlobalUnlock
push ebx
call sub.KERNEL32.DLL_CloseHandle
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x412790
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.KERNEL32.DLL_GetVersionExA
test eax, eax
jne 0x4127ab
xor eax, eax
jmp 0x412807
cmp dword [esp + 4], 5
jb 0x412805
cmp dword [esp + 4], 5
jne 0x4127c4
cmp dword [esp + 8], 0
jne 0x4127c4
xor eax, eax
jmp 0x412807
cmp dword [esp + 4], 5
jne 0x4127fe
cmp dword [esp + 8], 1
jne 0x4127fe
push str.Service_Pack
lea edx, [esp + 0x18]
push edx
call fcn.004b5a4c
add esp, 8
push str.Service_Pack_1
push eax
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jl 0x4127fa
mov eax, 1
jmp 0x412807
xor eax, eax
jmp 0x412807
mov eax, 1
jmp 0x412807
xor eax, eax
add esp, 0x94
ret
Function at 0x425ec8
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf0
mov ebx, esp
xor esi, esi
mov ebp, 0x108
push ebx
push ebp
call sub.KERNEL32.DLL_GetCurrentDirectoryW
mov edi, eax
cmp ebp, edi
jae 0x425f00
mov ebp, edi
mov eax, ebp
add eax, eax
push eax
call fcn.0045c458
pop ecx
mov ebx, eax
push ebx
push ebp
call sub.KERNEL32.DLL_GetCurrentDirectoryW
mov edi, eax
push 0
test edi, edi
setne al
and eax, 1
push eax
call fcn.00428588
add esp, 8
cmp edi, 2
jb 0x425f4e
cmp ebp, edi
jbe 0x425f4e
cmp word [ebx + 2], 0x3a
jne 0x425f4e
mov ax, word [ebx]
cmp ax, 0x61
jb 0x425f3a
cmp ax, 0x7a
ja 0x425f3a
movzx esi, word [ebx]
add esi, 0xffffffe0
jmp 0x425f3d
movzx esi, word [ebx]
cmp esi, 0x41
jl 0x425f4c
cmp esi, 0x5a
jg 0x425f4c
sub esi, 0x41
jmp 0x425f4e
xor esi, esi
mov eax, esp
cmp ebx, eax
je 0x425f5b
push ebx
call fcn.0045c528
pop ecx
mov eax, esi
add esp, 0x210
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x425f68
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov eax, dword [ebp + 8]
test eax, eax
jl 0x425fbb
cmp eax, 0x19
jg 0x425fbb
add ax, 0x41
mov word [ebp - 8], ax
mov word [ebp - 6], 0x3a
mov word [ebp - 4], 0
push 1
call sub.KERNEL32.DLL_SetErrorMode
mov esi, eax
lea eax, [ebp - 8]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryW
test eax, eax
push esi
setne bl
and ebx, 1
call sub.KERNEL32.DLL_SetErrorMode
push 0
push ebx
call fcn.00428588
add esp, 8
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x426394
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.0043e630
mov eax, dword [ebp + 8]
push eax
call fcn.0042613c
mov edi, eax
pop ecx
xor eax, eax
lea edx, [ebp - 4]
mov dword [ebp - 4], eax
push 0
push 0
push 0
push 0
push 0
push edx
push edi
call sub.KERNEL32.DLL_GetNamedPipeHandleStateW
test eax, eax
je 0x4264c2
cmp dword [ebp + 0x18], 0
jne 0x4263dd
cmp dword [ebp + 0x14], 0
jbe 0x4263ec
jmp 0x4263df
jle 0x4263ec
call fcn.0049f5fc
add eax, dword [ebp + 0x14]
adc edx, dword [ebp + 0x18]
jmp 0x4263f0
xor eax, eax
xor edx, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
xor esi, esi
test byte [ebp - 4], 1
jne 0x426415
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
push 0
push 0
push edx
push edi
call sub.KERNEL32.DLL_SetNamedPipeHandleState
xor ebx, ebx
test esi, esi
je 0x426420
call fcn.00432ea4
mov esi, dword [ebp + 0x10]
sub esi, ebx
cmp esi, 0x1000
jbe 0x426432
mov esi, 0x1000
push 0
lea eax, [ebp - 0x14]
push eax
push esi
mov edx, dword [ebp + 0xc]
add edx, ebx
push edx
push edi
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne cl
and ecx, 1
mov esi, ecx
test esi, esi
je 0x426458
add ebx, dword [ebp - 0x14]
jmp 0x42645f
test ebx, ebx
jne 0x42645f
or ebx, 0xffffffff
push 0
push esi
call fcn.00428588
add esp, 8
test esi, esi
je 0x4264ac
cmp ebx, dword [ebp + 0x10]
jae 0x4264ac
cmp dword [ebp + 0x18], 0
jne 0x426481
cmp dword [ebp + 0x14], 0
jb 0x42649e
jmp 0x426483
jl 0x42649e
cmp dword [ebp - 8], 0
jne 0x42648d
cmp dword [ebp - 0xc], 0
jbe 0x4264ac
call fcn.0049f5fc
cmp edx, dword [ebp - 8]
jne 0x42649c
cmp eax, dword [ebp - 0xc]
jae 0x4264ac
call fcn.0044881c
test ax, ax
je 0x426417
test byte [ebp - 4], 1
jne 0x4264d1
push 0
lea eax, [ebp - 4]
push 0
push eax
push edi
call sub.KERNEL32.DLL_SetNamedPipeHandleState
jmp 0x4264d1
push 0
push 0
call fcn.00428588
add esp, 8
or ebx, 0xffffffff
call fcn.0043e62c
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
call fcn.0043e630
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dword [eax], edx
xor ebx, ebx
mov eax, dword [ebp + 8]
push eax
call fcn.00427fb8
pop ecx
mov esi, eax
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
mov edi, eax
cmp edi, 0xffffffff
je 0x426972
push edi
call fcn.004a0b44
pop ecx
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov ebx, 1
push 0
push ebx
call fcn.00428588
add esp, 8
test esi, esi
je 0x426988
push esi
call fcn.0045c528
pop ecx
call fcn.0043e62c
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x426994
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
lea eax, [ebp - 0xc]
lea edx, [ebp - 8]
lea ecx, [ebp - 4]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push eax
push edx
push ecx
push edi
call fcn.0049f82c
add esp, 0x10
lea eax, [ebp - 0x1c]
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x14]
push eax
push edx
push ecx
lea eax, [ebp - 0x10]
push eax
mov edx, dword [ebp + 0x10]
push edx
call fcn.0049fd24
add esp, 0x14
call fcn.0043e630
push 0x42
mov ecx, dword [ebp + 8]
push ecx
call fcn.004264e0
add esp, 8
mov esi, eax
cmp esi, 0xffffffff
setne bl
and ebx, 1
test ebx, ebx
je 0x426ab1
test edi, edi
jle 0x426a01
cmp dword [ebp + 0x10], 0
jge 0x426a0c
lea eax, [ebp - 0x3c]
push eax
call sub.KERNEL32.DLL_GetLocalTime
jmp 0x426a1c
push 0x10
push 0
lea edx, [ebp - 0x3c]
push edx
call fcn.004b5704
add esp, 0xc
test edi, edi
jle 0x426a38
mov cx, word [ebp - 4]
mov word [ebp - 0x3c], cx
mov ax, word [ebp - 8]
mov word [ebp - 0x3a], ax
mov dx, word [ebp - 0xc]
mov word [ebp - 0x36], dx
cmp dword [ebp + 0x10], 0
jl 0x426a5e
mov cx, word [ebp - 0x10]
mov word [ebp - 0x34], cx
mov ax, word [ebp - 0x14]
mov word [ebp - 0x32], ax
mov dx, word [ebp - 0x18]
mov word [ebp - 0x30], dx
mov cx, word [ebp - 0x1c]
mov word [ebp - 0x2e], cx
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x3c]
push edx
call sub.KERNEL32.DLL_SystemTimeToFileTime
test eax, eax
je 0x426a9d
lea ecx, [ebp - 0x2c]
push ecx
lea eax, [ebp - 0x24]
push eax
call sub.KERNEL32.DLL_LocalFileTimeToFileTime
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x2c]
push ecx
push 0
push esi
call fcn.00425fc4
pop ecx
push eax
call sub.KERNEL32.DLL_SetFileTime
test eax, eax
setne bl
and ebx, 1
jmp 0x426a9f
xor ebx, ebx
push 0
push ebx
call fcn.00428588
add esp, 8
push esi
call fcn.00426670
pop ecx
call fcn.0043e62c
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x426ac0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
call fcn.0043e630
xor ebx, ebx
mov eax, dword [ebp + 8]
push eax
call fcn.00427fb8
pop ecx
mov dword [ebp - 4], eax
test esi, 1
mov edi, eax
je 0x426aeb
or ebx, 1
test esi, 2
je 0x426af6
or ebx, 2
test esi, 4
je 0x426b01
or ebx, 4
test esi, 0x20
je 0x426b0c
or ebx, 0x20
test ebx, ebx
jne 0x426b15
mov ebx, 0x80
push ebx
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetFileAttributesW
test eax, eax
setne dl
and edx, 1
mov ebx, edx
push 0
push ebx
call fcn.00428588
add esp, 8
test edi, edi
je 0x426b3f
push edi
call fcn.0045c528
pop ecx
call fcn.0043e62c
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x426c18
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
call fcn.0043e630
push 0
lea eax, [ebp - 4]
push eax
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.00425fc4
pop ecx
push eax
call sub.KERNEL32.DLL_ReadFile
test eax, eax
je 0x426c49
mov ebx, dword [ebp - 4]
jmp 0x426c4b
xor ebx, ebx
push 0
test eax, eax
setne al
and eax, 1
push eax
call fcn.00428588
add esp, 8
call fcn.0043e62c
mov eax, ebx
pop ebx
pop ecx
pop ebp
ret

Function at 0x426c6c
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
xor ebx, ebx
call fcn.0043e630
test edi, edi
je 0x426cb8
push 0
lea eax, [ebp - 4]
push eax
push edi
mov edx, dword [ebp + 0xc]
push edx
push esi
call fcn.00425fc4
pop ecx
push eax
call sub.KERNEL32.DLL_WriteFile
test eax, eax
je 0x426ca3
mov ebx, dword [ebp - 4]
push 0
test eax, eax
setne al
and eax, 1
push eax
call fcn.00428588
add esp, 8
jmp 0x426cd8
push 0
push esi
call fcn.00425fc4
pop ecx
push eax
call sub.KERNEL32.DLL_SetEndOfFile
test eax, eax
setne dl
and edx, 1
push edx
call fcn.00428588
add esp, 8
call fcn.0043e62c
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret