joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43fd30
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x21c]
mov ebp, ecx
test edi, edi
je 0x43febe
cmp word [edi], 0
je 0x43febe
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43fd84
shr eax, 4
not al
and al, 1
movzx eax, al
push 0xb7
push eax
push ebp
call fcn.0042eda0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 4
push 0x5c
push edi
call fcn.00489dc4
mov ebx, eax
add esp, 8
cmp ebx, edi
jbe 0x43fe97
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43fda0
sub eax, edx
sar eax, 1
cmp eax, 0x104
jb 0x43fe0b
mov eax, dword [0x4be3fc]
mov dword [eax + 0x30], 0x6f
cmp byte [eax + 0x100], cl
jne 0x43fdeb
mov ecx, dword [0x4c26a8]
push ecx
or eax, 0xffffffff
mov ecx, 0x49e334
call fcn.00401200
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 4
mov ecx, ebp
push 0x4a59a4
push 0
push 0x49e334
call fcn.0042eae0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 4
mov esi, ebx
sub esi, edi
sar esi, 1
push esi
lea edx, [esp + 0x14]
push edi
push edx
call fcn.0048ad94
add esp, 0xc
lea ecx, [esp + 0x10]
xor eax, eax
push ecx
mov ecx, ebp
mov word [esp + esi*2 + 0x14], ax
call fcn.0043fd30
cmp word [ebx + 2], 0
je 0x43fe85
mov esi, dword [0x4c26a8]
cmp byte [esi + 0x17], 0
jne 0x43fe49
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x43fe56
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x43fe6f
test byte [esi + 0x15], 4
je 0x43fe6a
mov eax, esi
call fcn.0042f660
mov eax, dword [esi + 8]
jmp 0x43fe7f
cmp al, 2
jne 0x43fe7a
call fcn.00401000
jmp 0x43fe7f
mov eax, 0x4c3fa8
cmp word [eax], 0x31
jne 0x43fe97
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 4
push 0xffffffffffffffff
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
sete dl
movzx eax, dl
push eax
push ebp
call fcn.0042eda0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 4
mov eax, dword [0x4be3fc]
cmp byte [eax + 0x100], 0
mov dword [eax + 0x30], 0x57
jne 0x43fded
mov ecx, dword [0x4c26a8]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
mov dword [esp + 4], ecx
or eax, 0xffffffff
mov ecx, 0x49e334
jmp fcn.00401200
Function at 0x441560
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x210
push ebx
push ebp
push esi
push edi
mov edi, eax
mov esi, ecx
mov ebx, edx
call fcn.0040c910
test al, al
je 0x441588
push 0x10
push 0
push edi
call fcn.0048992b
add esp, 0xc
jmp 0x441591
push edi
call fcn.00489596
add esp, 4
cmp eax, 1
je 0x4415f3
call fcn.00452780
test al, al
je 0x4415f3
mov eax, dword [0x4be3fc]
cmp byte [eax + 0x100], 0
jne 0x4415ce
mov ecx, dword [0x4c26a8]
push ecx
or eax, 0xffffffff
mov ecx, 0x49e334
call fcn.00401200
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
mov ecx, dword [esp + 0x224]
push 0x4a59a4
push 0
push 0x49e334
call fcn.0042eae0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x44163e
mov edx, dword [0x4be3fc]
cmp byte [edx + 0x100], 0
jne 0x4415ce
mov eax, dword [0x4c26a8]
push eax
or eax, ebp
mov ecx, 0x49e334
call fcn.00401200
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x441643
sub eax, edx
sar eax, 1
cmp eax, 0x104
jb 0x44165e
mov eax, 0x103
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esp + 0x1c]
push ebx
push edx
call fcn.004903a0
lea eax, [esp + 0x24]
add esp, 0xc
push eax
call fcn.0048a4e1
add esp, 4
push 0xa
lea ecx, [esp + 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4416cd
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4416cd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4416cd
push 0
lea edx, [esp + 0x18]
push edx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bl
jmp 0x4416cf
xor bl, bl
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x224]
test bl, bl
sete al
movzx ecx, al
push ecx
push edx
call fcn.0042ebd0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
Function at 0x441700
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x4c1e48]
sub esp, 0x104
push esi
push 1
push 0
push 0xffffffffffffffff
push 0
mov esi, eax
call fcn.00471d60
test esi, esi
je 0x441795
cmp word [esi], 0
je 0x441795
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x441752
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4be3fc]
cmp byte [ecx + 0x100], 0
mov dword [ecx + 0x30], eax
jmp 0x4417a8
mov ecx, dword [0x4be3fc]
mov edx, dword [0x4c26a8]
mov dword [ecx + 0x30], 0
push edx
or eax, 0xffffffff
mov ecx, 0x49b8c0
call fcn.00401200
mov edx, esi
lea eax, [esp + 8]
call fcn.00470200
mov ecx, dword [0x4c1e48]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.00471d60
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4be3fc]
cmp byte [eax + 0x100], 0
mov dword [eax + 0x30], 0x57
jne 0x4417c2
mov eax, dword [0x4c26a8]
push eax
or eax, 0xffffffff
mov ecx, 0x49e334
call fcn.00401200
pop esi
mov esp, ebp
pop ebp
ret
push 0x4a59a4
push 0
push 0x49e334
mov ecx, edi
call fcn.0042eae0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x44dd80
Capabilities:
Log keystrokes via polling

Disassembly:
test bl, bl
jne 0x44dd87
xor al, al
ret
mov eax, dword [esp + 4]
dec eax
je 0x44ddaf
dec eax
je 0x44dda1
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
ret
movzx ecx, bl
push ecx
call dword [sym.imp.USER32.dll_GetKeyState]
and eax, 1
ret
lea edx, [ebx - 1]
cmp dl, 5
ja 0x44ddbc
cmp bl, 3
jne 0x44ddc3
lea eax, [ebx + 0x66]
cmp al, 5
ja 0x44dde9
cmp dword [0x4c1fdc], 0
je 0x44ddd9
movzx ecx, bl
mov al, byte [ecx + 0x4c1ec8]
shr al, 7
ret
movzx edx, bl
push edx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
ret
cmp dword [0x4c1fd8], 0
je 0x44de18
xor ecx, ecx
xor edx, edx
mov al, bl
call fcn.00411340
test al, al
je 0x44de0b
push 1
call fcn.00411170
add esp, 4
movzx eax, bl
mov al, byte [eax + 0x4c1ec8]
shr al, 7
ret
movzx ecx, bl
push ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
ret
Function at 0x44e3b0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x210
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebp
push esi
push edi
mov edi, eax
mov esi, ecx
xor eax, eax
push esi
push eax
push 0x410
mov word [edi], ax
call ebx
mov ebp, eax
test ebp, ebp
jne 0x44e3f2
push esi
push eax
push 0x1000
call ebx
mov ebp, eax
test ebp, ebp
jne 0x44e3f2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
cmp byte [esp + 0x224], 0
push 0x104
push edi
push 0
push ebp
je 0x44e40d
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
jmp 0x44e413
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test byte [0x4c5714], 1
mov ebx, eax
jne 0x44e443
or dword [0x4c5714], 1
push str.GetProcessImageFileNameW
push str.psapi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4c5710], eax
jmp 0x44e448
mov eax, dword [0x4c5710]
test ebx, ebx
jne 0x44e55f
test eax, eax
je 0x44e55f
push 0x104
push edi
push ebp
call eax
mov ebx, eax
test ebx, ebx
je 0x44e55f
cmp byte [esp + 0x224], 0
je 0x44e4c3
push 0x5c
push edi
call fcn.00489dc4
add esp, 8
test eax, eax
je 0x44e55f
mov ecx, eax
lea esi, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x44e490
sub ecx, esi
sar ecx, 1
add ecx, ecx
push ecx
add eax, 2
push eax
push edi
call fcn.00488d70
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x210
ret
mov ecx, 0x41
mov dword [esp + 0x12], 0x3a
mov word [esp + 0x10], cx
push 0x104
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov esi, eax
cmp esi, 2
jbe 0x44e50e
sub esi, 2
push esi
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.00489df2
add esp, 0xc
test eax, eax
jne 0x44e50e
cmp word [edi + esi*2], 0x5c
je 0x44e534
mov ax, word [esp + 0x10]
inc ax
mov word [esp + 0x10], ax
cmp ax, 0x5a
jbe 0x44e4d5
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x210
ret
mov dx, word [esp + 0x10]
mov ax, word [esp + 0x12]
sub ebx, esi
mov word [edi], dx
lea ecx, [ebx + ebx + 2]
push ecx
lea edx, [edi + esi*2]
mov word [edi + 2], ax
push edx
add edi, 4
push edi
call fcn.00488d70
add esp, 0xc
add ebx, 2
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x210
ret
Function at 0x451610
Capabilities:
Create shortcut via ishelllink
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push esi
push 0
mov esi, ecx
mov byte [esp + 0xb], 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 8]
push eax
push 0x499720
push 1
push 0
push 0x499730
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4517b9
mov eax, dword [esp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
cmp word [esi], 0
je 0x45166d
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
push esi
push eax
call edx
cmp word [edi], 0
je 0x451680
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
push edi
push eax
call edx
mov ecx, dword [ebp + 0x14]
cmp word [ecx], 0
je 0x451696
mov eax, dword [esp + 8]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x1c]
call eax
mov esi, dword [ebp + 0x18]
cmp word [esi], 0
je 0x4516dc
cmp word [ebx], 0
je 0x4516cc
mov eax, ebx
call fcn.0040c910
test al, al
je 0x4516c0
push 0x10
push 0
push ebx
call fcn.0048992b
add esp, 0xc
dec eax
jmp 0x4516ce
push ebx
call fcn.00489596
add esp, 4
dec eax
jmp 0x4516ce
xor eax, eax
mov ecx, dword [esp + 8]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x44]
push esi
push ecx
call eax
mov esi, dword [ebp + 0x1c]
cmp word [esi], 0
je 0x45171e
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 1
mov ecx, eax
push 0
xor edx, edx
mov eax, esi
call fcn.00411990
add esp, 8
test al, al
je 0x45171e
mov ecx, dword [esp + 8]
mov edx, dword [ecx]
movzx eax, al
mov esi, 0x600
or ax, si
movzx eax, ax
push eax
push ecx
mov ecx, dword [edx + 0x34]
call ecx
mov esi, dword [ebp + 0x20]
cmp word [esi], 0
je 0x451757
mov eax, esi
call fcn.0040c910
test al, al
je 0x451741
push 0x10
push 0
push esi
call fcn.0048992b
add esp, 0xc
jmp 0x45174a
push esi
call fcn.00489596
add esp, 4
mov ecx, dword [esp + 8]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x3c]
push ecx
call eax
mov eax, dword [esp + 8]
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
push 0x499740
push eax
mov eax, dword [ecx]
call eax
test eax, eax
js 0x4517ad
mov eax, dword [esp + 0xc]
mov edx, dword [ebp + 0x10]
mov ecx, dword [eax]
push 1
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
js 0x4517a1
mov ecx, dword [0x4c26a8]
push 1
push 0
push 0xffffffffffffffff
push 0x49b8c0
call fcn.00471d60
mov byte [esp + 7], 1
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp byte [esp + 7], 0
je 0x4517d2
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword [0x4be3fc]
cmp byte [eax + 0x100], 0
jne 0x4517fb
mov ecx, dword [0x4c26a8]
push ecx
or eax, 0xffffffff
mov ecx, 0x49e334
call fcn.00401200
pop esi
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, dword [ebp + 8]
push 0x4a59a4
push 0
push 0x49e334
call fcn.0042eae0
pop esi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x451820
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0x238
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x4518e8
cmp word [eax], bx
je 0x4518e8
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x30]
push edx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea eax, [esp + 0x2c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x451857
sub eax, edx
sar eax, 1
cmp eax, ebx
je 0x45187b
cmp word [esp + eax*2 + 0x2a], 0x5c
lea eax, [esp + eax*2 + 0x2a]
jne 0x45187b
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x2c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x451882
sub eax, edx
sar eax, 1
xor edx, edx
mov word [esp + eax*2 + 0x2e], dx
lea edx, [esp + 8]
lea eax, [esp + 0x2c]
mov ecx, 0x4054
push edx
mov dword [esp + 0x22], ebx
mov dword [esp + 0x26], ebx
mov dword [esp + 0x1e], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 3
mov word [esp + 0x1c], cx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
setne al
movzx ecx, al
push ecx
push esi
call fcn.0042ebd0
pop ebx
add esp, 0x238
ret
mov edx, dword [0x4be3fc]
cmp byte [edx + 0x100], bl
jne 0x451911
mov eax, dword [0x4c26a8]
push eax
or eax, 0xffffffff
mov ecx, 0x49e334
call fcn.00401200
pop ebx
add esp, 0x238
ret
push 0x4a59a4
push ebx
push 0x49e334
mov ecx, esi
call fcn.0042eae0
pop ebx
add esp, 0x238
ret
Function at 0x4519e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x4c1e48]
sub esp, 0x10c
push ebx
push esi
push edi
push 1
push 0
push 0xffffffffffffffff
push 0
mov edi, eax
call fcn.00471d60
test edi, edi
je 0x451b1b
cmp word [edi], 0
je 0x451b1b
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
jne 0x451a43
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4be3fc]
cmp byte [ecx + 0x100], 0
mov dword [ecx + 0x30], eax
jmp 0x451b2e
push esi
call fcn.00488394
add esp, 4
mov ebx, eax
push ebx
push esi
push 0
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x451af1
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x10]
push eax
push 0x4a2574
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x451af1
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
movzx edx, cx
push edx
shr ecx, 0x10
push ecx
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
push str._u._u._u._u
mov esi, 0x80
lea edi, [esp + 0x2c]
call fcn.0046f260
add esp, 0x14
push ebx
call fcn.0048995f
mov eax, dword [0x4c26a8]
mov edx, dword [0x4be3fc]
add esp, 4
push eax
or eax, 0xffffffff
mov ecx, 0x49b8c0
mov dword [edx + 0x30], 0
call fcn.00401200
push 1
push 0
push 0xffffffffffffffff
mov ecx, edi
push ecx
mov ecx, dword [0x4c1e48]
call fcn.00471d60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x4be3fc]
push ebx
mov dword [edx + 0x30], eax
call fcn.0048995f
mov eax, dword [ebp + 8]
add esp, 4
push eax
call fcn.00431000
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x4be3fc]
cmp byte [eax + 0x100], 0
mov dword [eax + 0x30], 0x57
jne 0x451b4d
mov ecx, dword [0x4c26a8]
push ecx
or eax, 0xffffffff
mov ecx, 0x49e334
call fcn.00401200
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
push 0x4a59a4
push 0
push 0x49e334
call fcn.0042eae0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x451b70
Capabilities:
Check if file exists
Copy file
Get file attributes
Move file

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0x104
push edx
call esi
lea eax, [esp + 0x28]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x451b96
sub eax, edx
sar eax, 1
je 0x451bb8
cmp word [esp + eax*2 + 0x26], 0x5c
lea eax, [esp + eax*2 + 0x26]
jne 0x451bb8
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [esp + 0x444]
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x238]
push eax
push 0x104
push ecx
call esi
lea eax, [esp + 0x234]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x451be0
sub eax, edx
sar eax, 1
je 0x451c08
cmp word [esp + eax*2 + 0x232], 0x5c
lea eax, [esp + eax*2 + 0x232]
jne 0x451c08
xor edx, edx
mov word [eax], dx
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [esp + 0x28]
push eax
call esi
cmp eax, 0xffffffff
je 0x451c3b
test al, 0x10
je 0x451c3b
lea ecx, [esp + 0x234]
push ecx
call esi
cmp eax, 0xffffffff
je 0x451c45
test al, 0x10
je 0x451c45
cmp byte [esp + 0x448], 0
jne 0x451c61
xor al, al
pop esi
add esp, 0x43c
ret
lea edx, [esp + 0x234]
push edx
call fcn.004526c0
add esp, 4
test al, al
jne 0x451c61
pop esi
add esp, 0x43c
ret
lea eax, [esp + 0x28]
add eax, 0xfffffffe
jmp 0x451c70
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x451c70
mov ecx, dword [str..]
mov edx, dword [0x4a5938]
mov dword [eax], ecx
mov cx, word [0x4a593c]
mov dword [eax + 4], edx
mov word [eax + 8], cx
lea eax, [esp + 0x28]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x451ca0
sub eax, edx
sar eax, 1
xor edx, edx
mov word [esp + eax*2 + 0x2a], dx
lea eax, [esp + 0x234]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x451cc0
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [esp + eax*2 + 0x236], cx
xor eax, eax
mov dword [esp + 0x10], eax
lea edx, [esp + 0x28]
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edx
mov dword [esp + 8], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov word [esp + 0x24], ax
lea edx, [esp + 8]
lea eax, [esp + 0x234]
mov ecx, 0x614
push edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 2
mov word [esp + 0x1c], cx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb eax, eax
inc eax
pop esi
add esp, 0x43c
ret
Function at 0x451d40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0x104
push edx
call esi
lea eax, [esp + 0x28]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x451d66
sub eax, edx
sar eax, 1
je 0x451d88
cmp word [esp + eax*2 + 0x26], 0x5c
lea eax, [esp + eax*2 + 0x26]
jne 0x451d88
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [esp + 0x444]
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x238]
push eax
push 0x104
push ecx
call esi
lea eax, [esp + 0x234]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x451db0
sub eax, edx
sar eax, 1
je 0x451dd8
cmp word [esp + eax*2 + 0x232], 0x5c
lea eax, [esp + eax*2 + 0x232]
jne 0x451dd8
xor edx, edx
mov word [eax], dx
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [esp + 0x28]
push eax
call esi
cmp eax, 0xffffffff
je 0x451e0b
test al, 0x10
je 0x451e0b
lea ecx, [esp + 0x234]
push ecx
call esi
cmp eax, 0xffffffff
je 0x451e15
test al, 0x10
je 0x451e0b
cmp edi, 1
je 0x451e15
cmp edi, 2
je 0x451e15
xor al, al
pop esi
add esp, 0x43c
ret
lea edx, [esp + 0x234]
push edx
lea edx, [esp + 0x2c]
call fcn.004527f0
add esp, 4
test al, al
je 0x451e5d
lea eax, [esp + 0x234]
push 1
push eax
lea edx, [esp + 0x30]
call fcn.00451b70
add esp, 8
test al, al
je 0x451e0b
push 1
lea edx, [esp + 0x2c]
call fcn.00451f10
add esp, 4
pop esi
add esp, 0x43c
ret
lea eax, [esp + 0x28]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x451e64
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [esp + eax*2 + 0x2a], cx
lea eax, [esp + 0x234]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x451e84
sub eax, edx
sar eax, 1
xor edx, edx
mov word [esp + eax*2 + 0x236], dx
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 8], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov word [esp + 0x24], ax
lea eax, [esp + 0x28]
lea ecx, [esp + 0x234]
mov edx, 0x614
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], 1
mov word [esp + 0x18], dx
cmp edi, 2
jne 0x451ef4
mov eax, 0x615
mov word [esp + 0x18], ax
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb eax, eax
inc eax
pop esi
add esp, 0x43c
ret
Function at 0x451f10
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Move file

Disassembly:
sub esp, 0x230
push ebx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea eax, [esp + 0x28]
lea edx, [eax + 2]
xor ebx, ebx
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x451f36
sub eax, edx
sar eax, 1
cmp eax, ebx
je 0x451f5a
cmp word [esp + eax*2 + 0x26], 0x5c
lea eax, [esp + eax*2 + 0x26]
jne 0x451f5a
xor ecx, ecx
mov word [eax], cx
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x451f6e
test al, 0x10
jne 0x451f78
xor al, al
pop ebx
add esp, 0x230
ret
lea eax, [esp + 0x28]
cmp byte [esp + 0x238], bl
jne 0x451f99
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
pop ebx
add esp, 0x230
ret
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x451fa0
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [esp + eax*2 + 0x2a], cx
lea ecx, [esp + 4]
lea edx, [esp + 0x28]
mov eax, 0x614
push ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1e], ebx
mov dword [esp + 0x22], ebx
mov dword [esp + 0x1a], ebx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 3
mov word [esp + 0x18], ax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb eax, eax
inc eax
pop ebx
add esp, 0x230
ret