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

Disassembly:
sub esp, 0xc
mov eax, 0x1000
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
cmp dword [esp + 0x24], 0x18
mov ebx, eax
je 0x427a41
cmp dword [esp + 0x24], 2
je 0x427a41
push 0x2000
push ebp
push dword [0x45d4f4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
jmp 0x427a10
cmp dword [esp + 0x18], 2
jne 0x427a2c
cmp dword [esp + 0x28], 0xffffffff
je 0x4279d4
cmp ebp, dword [esp + 0x28]
jae 0x427a2c
add ebp, 2
test ebx, ebx
jne 0x4279f9
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x45d4f4]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x427a2c
cmp ax, 0xd
je 0x427a10
mov word [esi + edi*2], ax
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4279c0
push dword [esp + 0x2c]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.0043dce0
jmp 0x427ad3
push eax
push 0
push dword [0x45d4f4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp dword [esp + 0x28], 0xffffffff
je 0x427a5f
cmp ebp, dword [esp + 0x28]
jae 0x427ab7
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x427ab7
cmp dword [esp + 0x18], 1
jne 0x427ab7
inc ebp
test ebx, ebx
jne 0x427aa4
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x45d4f4]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x427ab7
cmp al, 0xd
je 0x427a52
mov byte [esi + edi], al
inc edi
dec ebx
jmp 0x427a52
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x2c]
mov byte [esi + edi], 0
push esi
jne 0x427ace
call fcn.0043dd30
jmp 0x427ad3
call fcn.0043dee0
push esi
push 0
push dword [0x45d4f4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x42a8d6
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push 0x42a825
push 0x10
push 0x2c
call fcn.0043c2b0
push 0
push 0
push 8
mov dword [0x45db28], eax
call fcn.0043c0a9
cmp word [0x45db20], 0
mov dword [0x45eb70], eax
jne 0x42a9bb
push edi
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
inc edi
test eax, eax
jne 0x42a92e
mov word [0x45db20], di
jmp 0x42a936
xor eax, eax
mov word [0x45db20], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x45db3c], eax
test eax, eax
je 0x42a9ba
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push eax
call esi
push str.freeaddrinfo
push dword [0x45db3c]
mov dword [0x45db2c], eax
call esi
push str.getnameinfo
push dword [0x45db3c]
mov dword [0x45db30], eax
call esi
push str.WSAStringToAddressA
push dword [0x45db3c]
mov dword [0x45db34], eax
call esi
cmp dword [0x45db2c], 0
mov dword [0x45db38], eax
pop esi
je 0x42a9ba
cmp dword [0x45db30], 0
je 0x42a9ba
cmp dword [0x45db34], 0
je 0x42a9ba
test eax, eax
je 0x42a9ba
mov dword [0x45db24], edi
pop edi
add esp, 0x190
ret

Function at 0x42adf6
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x45eb98]
call fcn.0043c1dd
mov ebx, eax
test ebx, ebx
je 0x42ae5a
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x42ae1f
push dword [esp + 0xc]
push ebx
call eax
jmp 0x42ae5a
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.0043cdf0
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.0043ced0
pop edi
pop esi
pop ebx
ret 8

Function at 0x42b8f3
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 0x42b965
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
cmp ebx, 0xffffffff
jne 0x42b91c
mov ebx, eax
push dword [ebp]
call fcn.0042b075
push ebx
push dword [ebp]
mov edi, eax
call fcn.0042b04c
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.0042b985
pop ecx
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x42e55e
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push dword [0x45eb7c]
call fcn.0043c03e
xor ebx, ebx
mov ebp, eax
cmp dword [0x45e248], ebx
jne 0x42e5f2
mov esi, 0xa4
push esi
push ebx
push 0x45e250
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x45e254], esi
mov esi, dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [0x45e250], 0xa
mov dword [0x45e258], 0x42e0f3
push 0x7f89
push ebx
mov dword [0x45e2c8], 0x430371
mov dword [0x45e2cc], 0x43034b
mov dword [0x45e25c], 0x42e112
mov dword [0x45e2e0], 0x42e132
call esi
mov dword [0x45e248], eax
test eax, eax
jne 0x42e5f2
push 0x7f00
push ebx
call esi
mov dword [0x45e248], 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.004326ee
push ebx
push dword [0x45d4f8]
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 0x42e6be
push edi
push dword [esp + 0x14]
push dword [0x45eb98]
call fcn.0043c21c
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 [0x45d4f4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0x45e250
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.00430284
push 0x42e218
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 0x43068c
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 0x430802
mov eax, dword [esp + 0x24]
dec eax
je 0x4307e5
dec eax
jne 0x430802
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.00430645
pop ecx
test eax, eax
je 0x430743
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x430706
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x4307e1
dec ebx
je 0x4307dd
dec ebx
je 0x4307bc
dec ebx
je 0x430776
sub ebx, 4
jne 0x430802
test edi, edi
jne 0x430802
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x430802
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 0x430706
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x430701
sub edi, 0
je 0x4307ae
dec edi
je 0x4307a0
dec edi
je 0x430792
dec edi
jne 0x430802
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x430802
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x430802
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x430802
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x430802
sub edi, 0
je 0x4307d9
dec edi
je 0x4307d5
dec edi
jne 0x430802
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x430802
push 0x3c
jmp 0x430801
push 0x32
jmp 0x430801
push 0x14
jmp 0x430801
push 5
jmp 0x430801
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4307ff
cmp eax, 0xa
je 0x4307fb
cmp eax, 0x5a
jne 0x430802
push 0x28
jmp 0x430801
push 0x1e
jmp 0x430801
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x4308ad
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
lea eax, [ebp - 0x40]
push 0x40
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebp + 8], 6
jne 0x4308de
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x60]
jmp 0x430960
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x43093a
mov eax, dword [ebp + 8]
sub eax, 0
je 0x430932
dec eax
je 0x43092a
dec eax
je 0x430922
dec eax
je 0x43091a
dec eax
je 0x430912
dec eax
jne 0x43093a
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
jmp 0x430962
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
jmp 0x430962
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
jmp 0x430962
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
jmp 0x430962
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
jmp 0x430962
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
jmp 0x430962
cmp dword [ebp + 8], 7
jne 0x43095e
push 0x2c
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.PSAPI.DLL_GetProcessMemoryInfo
test eax, eax
je 0x43095e
mov eax, dword [ebp - 0x68]
jmp 0x430960
xor eax, eax
xor edx, edx
mov esp, ebp
pop ebp
ret 4

Function at 0x431520
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x45eba8]
call fcn.0043c1dd
mov esi, eax
test esi, esi
je 0x4315fa
cmp dword [ebp + 0xc], 0
je 0x43156c
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x43155d
cmp dword [esi + 0x1c], 0
jne 0x43155d
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4315fa
test byte [ebp + 0x10], 3
je 0x431587
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.0043232f
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x4315ac
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 0x4315c0
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 0x4315dd
test ebx, ebx
je 0x4315d1
push 8
jmp 0x4315e3
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x4315f0
test ebx, ebx
je 0x4315e6
push 3
pop ecx
jmp 0x4315f0
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 0x431f5b
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 0x431ff3
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x431ff0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x431ff0
lea eax, [esi - 1]
push eax
push dword [0x45eba8]
call fcn.0043c1dd
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x431ff2
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x431fe7
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x4320da
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x431fcd
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x432099
push eax
call esi
test al, al
jns 0x432099
push 0x11
call esi
test al, al
js 0x432099
push 0x10
call esi
test al, al
js 0x432099
push 0x12
call esi
test al, al
js 0x432099
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x432099
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x43206d
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x432084
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x4320e4
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x4320e4
test ebp, ebp
je 0x4320bd
push 0x11
call esi
test al, al
js 0x4320b5
push 0x10
call esi
test al, al
js 0x4320b5
push 0x12
call esi
test al, al
jns 0x4320bd
push 1
push ebp
call fcn.004320f0
test ebx, ebx
je 0x4320d1
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x4320e4
test edi, edi
je 0x4320e4
mov eax, dword [edi + 8]
jmp 0x4320e6
and dword [esp + 0x14], 0
jmp 0x431ff2
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x432743
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 0x43288b
xor ecx, ecx
cmp word [eax], cx
je 0x43288b
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 0x43279c
cmp eax, 3
jne 0x4327d6
cmp word [esp + 0xa], 0x3a
jne 0x4327d6
cmp eax, 2
jne 0x4327ba
lea eax, [esp + 8]
push 0x448d90
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 0x43288b
push 0xfffffffffffffffe
pop edi
jmp 0x43288b
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x4327eb
cmp ax, bx
jne 0x4327f5
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x4327de
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x432834
test byte [esp + 0x21c], 0x10
je 0x43281b
push 0xfffffffffffffffe
pop edi
jmp 0x43282b
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x432889
cmp word [esp + 0x10], bp
jne 0x432842
cmp word [esp + 0x12], bp
je 0x432861
cmp word [esp + 0x10], bx
jne 0x432850
cmp word [esp + 0x12], bx
je 0x432861
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x432889
cmp word [esp + 0x12], ax
jne 0x432889
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x432876
test al, 0x10
je 0x432889
jmp 0x432886
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x432889
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 0x43289a
Capabilities:
Create directory

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

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

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

Function at 0x432936
Capabilities:
Set file attributes

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
je 0x432944
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 8
Function at 0x432a39
Capabilities:
Delete file
Set file attributes

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

Function at 0x432b6d
Capabilities:
Copy file

Disassembly:
cmp dword [esp + 4], 0
je 0x432b8d
cmp dword [esp + 8], 0
je 0x432b8d
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x432b8f
xor eax, eax
ret 8

Function at 0x432c37
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x45e554]
push esi
test eax, eax
jne 0x432c48
push fcn.00432d50
push 0x10
push 0x258
call fcn.0043c2b0
mov dword [0x45e554], eax
push dword [esp + 0xc]
push eax
call fcn.0043c21c
mov esi, eax
test esi, esi
je 0x432d49
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x432c6a
mov edi, 0x448070
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x432c7a
xor eax, eax
cmp word [ebx], ax
jne 0x432c7f
mov ebx, 0x448d94
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 [0x45d4f4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x432d30
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x432ce0
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x432ce4
push 0x448d90
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x432ce4
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 0x432d08
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x432d1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x432d1c
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x45d4f4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x432d47
cmp dword [esp + 0x14], 0xffffffff
je 0x432d3b
mov esi, dword [esp + 0x14]
push esi
push dword [0x45e554]
call fcn.0043c18e
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc
Function at 0x433570
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 0x4335ac
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 0x433a80
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x433b88
cmp word [edx], 0
je 0x433b88
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x433aae
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x433b0d
cmp dword [esi + 4], 0
mov ecx, edx
lea edi, [ecx + 2]
je 0x433ae0
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x433ac0
sub ecx, edi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.00433fc0
pop edi
pop esi
pop ecx
ret 0xc
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x433ae0
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.004340d0
mov edi, eax
test edi, edi
je 0x433b03
cmp dword [esi + 4], 0
je 0x433b5b
push dword [esp + 0x14]
push edi
push esi
call fcn.00433fc0
push edi
push 0
push dword [0x45d4f4]
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 [0x45d4f4]
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 0x433bf0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x45ebc0]
call fcn.0043c1dd
mov esi, eax
test esi, esi
je 0x433c6f
cmp dword [esi + 4], 0
je 0x433c40
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.00434140
test eax, eax
je 0x433c34
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 0x433c7a
cmp dword [esp + 8], 0
je 0x433c7a
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 0x433e50
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push ebx
push dword [0x45ebc0]
mov dword [esp + 0x10], 0
call fcn.0043c1dd
mov ebp, eax
test ebp, ebp
je 0x433fac
push esi
push edi
push ebx
call fcn.00434710
cmp dword [ebp + 4], 0
mov esi, eax
mov edi, edx
je 0x433e9c
push 4
lea eax, [esp + 0x1c]
push eax
push ebp
call fcn.00434140
mov ecx, eax
mov dword [esp + 0x10], ecx
jmp 0x433eb7
push 0
lea eax, [esp + 0x14]
push eax
push 4
lea eax, [esp + 0x24]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x10]
cmp ecx, 2
jl 0x433ee5
lea edx, [esp + 0x18]
mov eax, 0xfeff
cmp word [edx], ax
jne 0x433ee5
add esi, 2
adc edi, 0
push edi
push esi
push ebx
call fcn.00433de0
pop edi
pop esi
pop ebp
mov eax, 0x19
pop ebx
pop ecx
ret 4
cmp ecx, 3
jl 0x433f16
lea edx, [esp + 0x18]
cmp word [edx], 0xbbef
jne 0x433f16
cmp byte [edx + 2], 0xbf
jne 0x433f16
add esi, 3
adc edi, 0
push edi
push esi
push ebx
call fcn.00433de0
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
pop ecx
ret 4
cmp ecx, 2
jl 0x433f44
lea edx, [esp + 0x18]
mov eax, 0xfffe
cmp word [edx], ax
jne 0x433f44
add esi, 2
adc edi, 0
push edi
push esi
push ebx
call fcn.00433de0
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
pop ecx
ret 4
cmp ecx, 4
jl 0x433f97
lea eax, [esp + 0x18]
cmp dword [eax], 0xfeff
jne 0x433f70
add esi, 4
adc edi, 0
push edi
push esi
push ebx
call fcn.00433de0
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
pop ecx
ret 4
lea eax, [esp + 0x18]
cmp dword [eax], 0xfffe0000
jne 0x433f97
add esi, 4
adc edi, 0
push edi
push esi
push ebx
call fcn.00433de0
pop edi
pop esi
pop ebp
mov eax, 6
pop ebx
pop ecx
ret 4
push edi
push esi
push ebx
call fcn.00433de0
pop edi
pop esi
pop ebp
mov eax, 0x18
pop ebx
pop ecx
ret 4
pop ebp
mov eax, 0x18
pop ebx
pop ecx
ret 4