joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43bd50
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
mov eax, dword [0x4c0e18]
push ebx
push edi
push 0
mov dword [esp + 0xc], eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx ecx, word [esi]
test cx, cx
je 0x43be29
cmp word [esi + 2], 0
jne 0x43bdaf
cmp ecx, 0xa
jne 0x43bd8e
mov al, 0xd
jmp 0x43be23
push eax
push ecx
call dword [sym.imp.USER32.dll_VkKeyScanExW]
movzx eax, ax
mov ecx, eax
shr ecx, 8
cmp cl, 0xff
jne 0x43be23
cmp al, 0xff
jne 0x43be23
xor al, al
jmp 0x43be23
mov edi, ecx
test edi, 0xffffff80
jne 0x43bdcb
push 2
push edi
call fcn.0048757e
add esp, 8
test eax, eax
je 0x43bdcb
and edi, 0xffffffdf
cmp di, 0x56
jne 0x43bdf2
mov ax, word [esi + 2]
call fcn.00409040
cmp ax, 0x4b
jne 0x43bdf2
push 0x10
lea edx, [esi + 4]
push 0
push edx
call fcn.0048795b
add esp, 0xc
jmp 0x43be23
xor edi, edi
mov eax, dword [edi*8 + 0x4be228]
push esi
push eax
call fcn.00486339
add esp, 8
test eax, eax
je 0x43be5a
inc edi
cmp edi, 0x6d
jl 0x43bdf4
mov eax, esi
call fcn.00411780
movzx ecx, ax
test cx, cx
je 0x43be29
call fcn.00411ec0
mov bl, al
test bl, bl
jne 0x43be9d
push 0
lea ebx, [esp + 0x10]
mov eax, esi
call fcn.0044b350
mov edi, eax
add esp, 4
test edi, edi
jne 0x43be63
mov ecx, dword [esp + 8]
push 1
push eax
push 0xffffffffffffffff
push 0x4a596c
call fcn.0046dd60
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov bl, byte [edi*8 + 0x4be22c]
jmp 0x43be25
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x20]
push 0
push edx
lea eax, [esp + 0x18]
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], ecx
call fcn.0044b600
fstp st(0)
mov edi, dword [esp + 0x10]
add esp, 8
lea eax, [esp + 0x10]
call fcn.0046d770
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
movzx edi, word [eax]
test edi, 0xffffff80
jne 0x43bebd
push 2
push edi
call fcn.0048757e
add esp, 8
test eax, eax
je 0x43bebd
and edi, 0xffffffdf
movzx eax, di
cmp eax, 0x50
je 0x43bed5
xor ecx, ecx
cmp eax, 0x54
setne cl
lea eax, [ecx - 1]
and eax, 2
jmp 0x43beda
mov eax, 1
push eax
call fcn.0044b550
add esp, 4
test al, al
mov eax, 0x4a4dc4
jne 0x43bef1
mov eax, 0x4a4dc8
mov ecx, dword [esp + 8]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.0046dd60
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x43bf10
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x4c17f0]
sub esp, 0x238
push esi
push edi
push 1
push 0
push 0xffffffffffffffff
push 0x49e30c
mov esi, eax
call fcn.0046dd60
mov ecx, dword [0x4c0e18]
push 1
push 0
push 0xffffffffffffffff
push 0
call fcn.0046dd60
test esi, esi
je 0x43c0a2
cmp word [esi], 0
je 0x43c0a2
push 0x104
lea eax, [esp + 0x34]
push esi
push eax
call fcn.00488d24
add esp, 0xc
xor ecx, ecx
lea eax, [esp + 0x30]
mov word [esp + 0x238], cx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43bf80
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x2e], 0x5c
je 0x43bfb7
lea edx, [eax + 1]
cmp edx, 0x105
jae 0x43c0a2
mov ecx, 0x5c
xor edx, edx
mov word [esp + eax*2 + 0x30], cx
mov word [esp + eax*2 + 0x32], dx
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
test byte [0x4c4894], 1
jne 0x43bfed
or dword [0x4c4894], 1
push str.GetDiskFreeSpaceExW
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4c4890], eax
jmp 0x43bff2
mov eax, dword [0x4c4890]
test eax, eax
je 0x43c03e
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x3c]
push edx
call eax
test eax, eax
je 0x43c0a2
test bl, bl
je 0x43c02b
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
shrd esi, eax, 0x14
shr eax, 0x14
mov edi, eax
jmp 0x43c07e
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
shrd esi, eax, 0x14
shr eax, 0x14
mov edi, eax
jmp 0x43c07e
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x43c0a2
mov eax, dword [esp + 0x14]
test bl, bl
jne 0x43c06d
mov eax, dword [esp + 0x10]
imul eax, dword [esp + 0xc]
imul eax, dword [esp + 8]
shr eax, 0x14
mov esi, eax
xor edi, edi
mov ecx, dword [0x4c17f0]
push 1
push 0
push 0xffffffffffffffff
push 0x49b8d0
call fcn.0046dd60
mov eax, dword [0x4c0e18]
push 0x18
push edi
push esi
call fcn.004010e0
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43d2d0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x43d310
cmp byte [0x4c3c0c], al
je 0x43d3bb
mov ecx, dword [0x4c17f0]
push 1
push eax
push 0xffffffffffffffff
push 0x49e30c
call fcn.0046dd60
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [0x4c3c0c], 0
mov esi, 0x4c17f8
jne 0x43d322
lea esi, [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
push 0x104
call ebx
test eax, eax
je 0x43d384
cmp word [edi], 0
je 0x43d39c
cmp word [edi + 2], 0x3a
jne 0x43d39c
cmp word [edi + 4], 0
jne 0x43d39c
push esi
push edi
call fcn.00486339
add esp, 8
test eax, eax
je 0x43d39c
push edi
lea ecx, [esp + 0xc]
push 0x4a5258
push ecx
call fcn.00486743
add esp, 0xc
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x43d39c
push esi
push 0x104
call ebx
test eax, eax
jne 0x43d39c
push 0x103
push edi
push esi
call fcn.00488d24
add esp, 0xc
xor eax, eax
mov word [esi + 0x206], ax
cmp byte [0x4c3c0c], 0
je 0x43d3bb
mov ecx, dword [0x4c17f0]
push 1
push 0
push 0xffffffffffffffff
push 0x49b8d0
call fcn.0046dd60
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43da40
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], ecx
test edi, edi
je 0x43db94
cmp word [edi], 0
je 0x43db94
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43daaf
mov ecx, dword [0x4bd41c]
shr eax, 4
not eax
test al, 1
mov dword [ecx + 0x30], 0xb7
mov eax, 0x49e30c
jne 0x43da94
mov eax, 0x49b8d0
mov ecx, dword [0x4c17f0]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.0046dd60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x5c
push edi
call fcn.00487df0
mov ebx, eax
add esp, 8
cmp ebx, edi
jbe 0x43db4c
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43dad0
sub eax, edx
sar eax, 1
cmp eax, 0x104
jb 0x43daf8
mov edx, dword [0x4bd41c]
mov dword [edx + 0x30], 0x6f
jmp 0x43dba1
mov esi, ebx
sub esi, edi
sar esi, 1
push esi
lea eax, [esp + 0x14]
push edi
push eax
call fcn.00488d24
xor ecx, ecx
add esp, 0xc
lea edx, [esp + 0x10]
mov word [esp + esi*2 + 0x10], cx
mov ecx, dword [esp + 0xc]
push edx
call fcn.0043da40
cmp word [ebx + 2], 0
je 0x43db3e
mov ecx, dword [0x4c17f0]
push 0
push 1
call fcn.00401240
cmp word [eax], 0x31
jne 0x43db4c
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
neg eax
sbb esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
inc esi
mov ecx, dword [0x4bd41c]
mov dword [ecx + 0x30], eax
mov eax, 0x49e30c
jne 0x43da94
mov ecx, dword [0x4c17f0]
push 1
push 0
mov eax, 0x49b8d0
push 0xffffffffffffffff
push eax
call fcn.0046dd60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [0x4bd41c]
mov dword [edx + 0x30], 0x57
mov ecx, dword [0x4c17f0]
push 1
push 0
push 0xffffffffffffffff
push 0x49e30c
call fcn.0046dd60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x43f2b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x4c17f0]
sub esp, 0x104
push esi
push 1
push 0
push 0xffffffffffffffff
push 0x49e30c
mov esi, eax
call fcn.0046dd60
mov ecx, dword [0x4c0e18]
push 1
push 0
push 0xffffffffffffffff
push 0
call fcn.0046dd60
test esi, esi
je 0x43f35e
cmp word [esi], 0
je 0x43f35e
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43f319
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4bd41c]
mov dword [ecx + 0x30], eax
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [0x4bd41c]
mov ecx, dword [0x4c17f0]
push 1
push 0
push 0xffffffffffffffff
push 0x49b8d0
mov dword [edx + 0x30], 0
call fcn.0046dd60
mov edx, esi
lea eax, [esp + 8]
call fcn.0046c2a0
mov ecx, dword [0x4c0e18]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.0046dd60
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4bd41c]
mov dword [eax + 0x30], 0x57
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x44b550
Capabilities:
Log keystrokes via polling

Disassembly:
test bl, bl
jne 0x44b557
xor al, al
ret
mov eax, dword [esp + 4]
dec eax
je 0x44b57f
dec eax
je 0x44b571
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 0x44b58c
cmp bl, 3
jne 0x44b593
lea eax, [ebx + 0x66]
cmp al, 5
ja 0x44b5b9
cmp dword [0x4c0fa8], 0
je 0x44b5a9
movzx ecx, bl
mov al, byte [ecx + 0x4c0e98]
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 [0x4c0fa4], 0
je 0x44b5e8
xor ecx, ecx
xor edx, edx
mov al, bl
call fcn.00411270
test al, al
je 0x44b5db
push 1
call fcn.004110a0
add esp, 4
movzx eax, bl
mov al, byte [eax + 0x4c0e98]
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 0x44e9e0
Capabilities:
Create shortcut via ishelllink
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x4c17f0]
sub esp, 0xc
push esi
push 1
push 0
push 0xffffffffffffffff
push 0x49e30c
mov esi, eax
call fcn.0046dd60
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 8]
push eax
push 0x499710
push 1
push 0
push 0x499720
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x44eb95
mov eax, dword [esp + 8]
mov edx, dword [ebp + 8]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
cmp word [esi], 0
je 0x44ea4e
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 0x44ea61
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
push edi
push eax
call edx
mov ecx, dword [ebp + 0x10]
cmp word [ecx], 0
je 0x44ea77
mov eax, dword [esp + 8]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x1c]
call eax
mov esi, dword [ebp + 0x14]
cmp word [esi], 0
je 0x44eabd
cmp word [ebx], 0
je 0x44eaad
mov eax, ebx
call fcn.0040c9b0
test al, al
je 0x44eaa1
push 0x10
push 0
push ebx
call fcn.0048795b
add esp, 0xc
dec eax
jmp 0x44eaaf
push ebx
call fcn.004875c6
add esp, 4
dec eax
jmp 0x44eaaf
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 + 0x18]
cmp word [esi], 0
je 0x44eaff
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 1
mov ecx, eax
push 0
xor edx, edx
mov eax, esi
call fcn.00411820
add esp, 8
test al, al
je 0x44eaff
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 + 0x1c]
cmp word [esi], 0
je 0x44eb38
mov eax, esi
call fcn.0040c9b0
test al, al
je 0x44eb22
push 0x10
push 0
push esi
call fcn.0048795b
add esp, 0xc
jmp 0x44eb2b
push esi
call fcn.004875c6
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 0x499730
push eax
mov eax, dword [ecx]
call eax
test eax, eax
js 0x44eb89
mov eax, dword [esp + 0xc]
mov edx, dword [ebp + 0xc]
mov ecx, dword [eax]
push 1
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
js 0x44eb7d
mov ecx, dword [0x4c17f0]
push 1
push 0
push 0xffffffffffffffff
push 0x49b8d0
call fcn.0046dd60
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]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x18
Function at 0x44ebb0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
push esi
xor esi, esi
cmp eax, esi
je 0x44ec93
cmp word [eax], si
je 0x44ec93
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea eax, [esp + 0x28]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x44ebf0
sub eax, edx
sar eax, 1
cmp eax, esi
je 0x44ec14
cmp word [esp + eax*2 + 0x26], 0x5c
lea eax, [esp + eax*2 + 0x26]
jne 0x44ec14
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x28]
lea edx, [eax + 2]
jmp 0x44ec20
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x44ec20
sub eax, edx
sar eax, 1
xor edx, edx
mov word [esp + eax*2 + 0x2a], dx
lea edx, [esp + 4]
lea eax, [esp + 0x28]
mov ecx, 0x4054
push edx
mov dword [esp + 0x1e], esi
mov dword [esp + 0x22], esi
mov dword [esp + 0x1a], esi
mov dword [esp + 8], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 3
mov word [esp + 0x18], cx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
mov eax, 0x49e30c
jne 0x44ec7d
mov eax, 0x49b8d0
mov ecx, dword [0x4c17f0]
push 1
push esi
push 0xffffffffffffffff
push eax
call fcn.0046dd60
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4c17f0]
push 1
push esi
push 0xffffffffffffffff
push 0x49e30c
call fcn.0046dd60
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x44ed40
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x4c17f0]
sub esp, 0x10c
push ebx
push esi
push edi
push 1
push 0
push 0xffffffffffffffff
push 0x49e30c
mov edi, eax
call fcn.0046dd60
mov ecx, dword [0x4c0e18]
push 1
push 0
push 0xffffffffffffffff
push 0
call fcn.0046dd60
test edi, edi
je 0x44ee8a
cmp word [edi], 0
je 0x44ee8a
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
jne 0x44edb7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4bd41c]
mov dword [ecx + 0x30], eax
lea eax, [esi + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.004863c4
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 0x44ee66
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x10]
push eax
push 0x4a26bc
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x44ee66
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.0046b300
add esp, 0x14
push ebx
call fcn.00487975
mov edx, dword [0x4bd41c]
mov ecx, dword [0x4c17f0]
add esp, 4
push 1
push 0
push 0xffffffffffffffff
push 0x49b8d0
mov dword [edx + 0x30], 0
call fcn.0046dd60
mov ecx, dword [0x4c0e18]
push 1
push 0
push 0xffffffffffffffff
mov eax, edi
push eax
call fcn.0046dd60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4bd41c]
push ebx
mov dword [ecx + 0x30], eax
call fcn.00487975
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [0x4bd41c]
pop edi
pop esi
mov dword [edx + 0x30], 0x57
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44eeb0
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 0x44eed6
sub eax, edx
sar eax, 1
je 0x44eef8
cmp word [esp + eax*2 + 0x26], 0x5c
lea eax, [esp + eax*2 + 0x26]
jne 0x44eef8
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 0x44ef20
sub eax, edx
sar eax, 1
je 0x44ef48
cmp word [esp + eax*2 + 0x232], 0x5c
lea eax, [esp + eax*2 + 0x232]
jne 0x44ef48
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 0x44ef7b
test al, 0x10
je 0x44ef7b
lea ecx, [esp + 0x234]
push ecx
call esi
cmp eax, 0xffffffff
je 0x44ef85
test al, 0x10
je 0x44ef85
cmp byte [esp + 0x448], 0
jne 0x44efa1
xor al, al
pop esi
add esp, 0x43c
ret
lea edx, [esp + 0x234]
push edx
call fcn.0044fa00
add esp, 4
test al, al
jne 0x44efa1
pop esi
add esp, 0x43c
ret
lea eax, [esp + 0x28]
add eax, 0xfffffffe
jmp 0x44efb0
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x44efb0
mov ecx, dword [str..]
mov edx, dword [0x4a5d9c]
mov dword [eax], ecx
mov cx, word [0x4a5da0]
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 0x44efe0
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 0x44f000
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 0x44f080
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 0x44f0a6
sub eax, edx
sar eax, 1
je 0x44f0c8
cmp word [esp + eax*2 + 0x26], 0x5c
lea eax, [esp + eax*2 + 0x26]
jne 0x44f0c8
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 0x44f0f0
sub eax, edx
sar eax, 1
je 0x44f118
cmp word [esp + eax*2 + 0x232], 0x5c
lea eax, [esp + eax*2 + 0x232]
jne 0x44f118
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 0x44f14b
test al, 0x10
je 0x44f14b
lea ecx, [esp + 0x234]
push ecx
call esi
cmp eax, 0xffffffff
je 0x44f155
test al, 0x10
je 0x44f14b
cmp edi, 1
je 0x44f155
cmp edi, 2
je 0x44f155
xor al, al
pop esi
add esp, 0x43c
ret
lea edx, [esp + 0x234]
push edx
lea edx, [esp + 0x2c]
call fcn.0044fb30
add esp, 4
test al, al
je 0x44f19d
lea eax, [esp + 0x234]
push 1
push eax
lea edx, [esp + 0x30]
call fcn.0044eeb0
add esp, 8
test al, al
je 0x44f14b
push 1
lea edx, [esp + 0x2c]
call fcn.0044f250
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 0x44f1a4
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 0x44f1c4
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 0x44f234
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 0x44f250
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 0x44f276
sub eax, edx
sar eax, 1
cmp eax, ebx
je 0x44f29a
cmp word [esp + eax*2 + 0x26], 0x5c
lea eax, [esp + eax*2 + 0x26]
jne 0x44f29a
xor ecx, ecx
mov word [eax], cx
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44f2ae
test al, 0x10
jne 0x44f2b8
xor al, al
pop ebx
add esp, 0x230
ret
lea eax, [esp + 0x28]
cmp byte [esp + 0x238], bl
jne 0x44f2d9
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 0x44f2e0
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