joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ade0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
push edi
xor edi, edi
lea eax, [esp + 0x14]
push eax
mov ecx, edi
or ecx, 1
push ecx
push 0
push str.SOFTWAREAutoHotkey
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
je 0x43ae20
xor edx, edx
mov word [esp + 0x18], dx
xor eax, eax
jmp 0x43ae85
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push str.InstallDir
push edx
mov dword [esp + 0x28], 0x208
call ebp
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x43aeb3
mov eax, dword [esp + 0x10]
test eax, eax
je 0x43aeb3
shr eax, 1
dec eax
mov dword [esp + 0x10], eax
cmp word [esp + eax*2 + 0x18], si
jne 0x43ae93
test eax, eax
je 0x43ae85
lea ecx, [esp + eax*2 + 0x16]
cmp word [ecx], 0
jne 0x43ae7d
sub ecx, 2
dec eax
jne 0x43ae71
mov dword [esp + 0x10], eax
test eax, eax
jne 0x43aebc
test edi, edi
jne 0x43aebc
mov edi, 0x100
jmp 0x43adf8
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x104
jb 0x43aeaa
xor ecx, ecx
mov word [esp + 0x18], cx
xor eax, eax
jmp 0x43ae85
xor edx, edx
mov word [esp + eax*2 + 0x18], dx
jmp 0x43ae81
xor eax, eax
mov word [esp + 0x18], ax
jmp 0x43ae85
mov esi, dword [esp + 0x224]
test esi, esi
je 0x43aedf
lea ecx, [esp + 0x18]
mov edx, ecx
sub esi, edx
nop
movzx edx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
test dx, dx
jne 0x43aed0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
Function at 0x43e3a0
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
mov eax, dword [0x4c1de8]
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 0x43e485
cmp word [esi + 2], 0
jne 0x43e40a
cmp ecx, 0xa
jne 0x43e3de
mov al, 0xd
jmp 0x43e47f
push eax
push ecx
call dword [sym.imp.USER32.dll_VkKeyScanExW]
movzx ecx, ax
mov eax, ecx
shr eax, 8
cmp al, 0xff
jne 0x43e3fe
cmp cl, 0xff
jne 0x43e3fe
xor al, al
jmp 0x43e47f
and al, 0x38
neg al
sbb al, al
not al
and al, cl
jmp 0x43e47f
mov edi, ecx
test edi, 0xffffff80
jne 0x43e426
push 2
push edi
call fcn.00489d0e
add esp, 8
test eax, eax
je 0x43e426
and edi, 0xffffffdf
cmp di, 0x56
jne 0x43e44d
mov ax, word [esi + 2]
call fcn.00409110
cmp ax, 0x4b
jne 0x43e44d
push 0x10
lea eax, [esi + 4]
push 0
push eax
call fcn.0048a0eb
add esp, 0xc
jmp 0x43e47f
xor edi, edi
nop
mov ecx, dword [edi*8 + 0x4bf1f0]
push esi
push ecx
call fcn.00488ac9
add esp, 8
test eax, eax
je 0x43e4b6
inc edi
cmp edi, 0x6d
jl 0x43e450
mov eax, esi
call fcn.00411ab0
movzx ecx, ax
test cx, cx
je 0x43e485
call fcn.00412230
mov bl, al
test bl, bl
jne 0x43e4f9
push 0
lea ebx, [esp + 0x10]
mov eax, esi
call fcn.0044e080
mov edi, eax
add esp, 4
test edi, edi
jne 0x43e4bf
mov ecx, dword [esp + 8]
push 1
push eax
push 0xffffffffffffffff
push 0x49c820
call fcn.00472870
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov bl, byte [edi*8 + 0x4bf1f4]
jmp 0x43e481
mov eax, dword [esp + 0xc]
push 0
lea edx, [esp + 0x24]
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], edx
call fcn.0044e330
fstp st(0)
mov edi, dword [esp + 0x10]
add esp, 8
lea eax, [esp + 0x10]
call fcn.004722b0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
movzx edi, word [ecx]
test edi, 0xffffff80
jne 0x43e519
push 2
push edi
call fcn.00489d0e
add esp, 8
test eax, eax
je 0x43e519
and edi, 0xffffffdf
movzx eax, di
cmp eax, 0x50
je 0x43e531
xor edx, edx
cmp eax, 0x54
setne dl
lea eax, [edx - 1]
and eax, 2
jmp 0x43e536
mov eax, 1
push eax
call fcn.0044e280
add esp, 4
test al, al
mov eax, 0x4a5aa4
jne 0x43e54d
mov eax, 0x4a5aa8
mov ecx, dword [esp + 8]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.00472870
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x43e570
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x4c1de8]
sub esp, 0x238
push esi
push edi
push 1
push 0
push 0xffffffffffffffff
push 0
mov esi, eax
call fcn.00472870
test esi, esi
je 0x43e6ff
cmp word [esi], 0
je 0x43e6ff
push 0x104
lea eax, [esp + 0x34]
push esi
push eax
call fcn.0048b674
add esp, 0xc
xor ecx, ecx
lea eax, [esp + 0x30]
mov word [esp + 0x238], cx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43e5d0
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x2e], 0x5c
je 0x43e607
lea edx, [eax + 1]
cmp edx, 0x105
jae 0x43e6ff
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 [0x4c56f8], 1
jne 0x43e63d
or dword [0x4c56f8], 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 [0x4c56f4], eax
jmp 0x43e642
mov eax, dword [0x4c56f4]
test eax, eax
je 0x43e68e
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 0x43e6ff
test bl, bl
je 0x43e67b
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
shrd esi, eax, 0x14
shr eax, 0x14
mov edi, eax
jmp 0x43e6ce
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
shrd esi, eax, 0x14
shr eax, 0x14
mov edi, eax
jmp 0x43e6ce
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 0x43e6ff
mov eax, dword [esp + 0x14]
test bl, bl
jne 0x43e6bd
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 [0x4c264c]
push 1
push 0
push 0xffffffffffffffff
push 0x49c8d4
call fcn.00472870
mov eax, dword [0x4c1de8]
push 0x18
push edi
push esi
call fcn.004010e0
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov edx, dword [0x4be40c]
cmp byte [edx + 0x104], 0
jne 0x43e729
mov eax, dword [0x4c264c]
push eax
or eax, 0xffffffff
mov ecx, 0x49f2c4
call fcn.00401200
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
push 0x49c820
push 0
push 0x49f2c4
call fcn.0042ee20
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x43f9f0
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 0x43fa20
cmp byte [0x4c4a5c], al
je 0x43facb
call fcn.004091d0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [0x4c4a5c], 0
mov esi, 0x4c2650
jne 0x43fa32
lea esi, [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
push esi
push 0x104
call ebx
test eax, eax
je 0x43fa94
cmp word [edi], 0
je 0x43faac
cmp word [edi + 2], 0x3a
jne 0x43faac
cmp word [edi + 4], 0
jne 0x43faac
push esi
push edi
call fcn.00488ac9
add esp, 8
test eax, eax
je 0x43faac
push edi
lea ecx, [esp + 0xc]
push 0x4a5f38
push ecx
call fcn.00488ed3
add esp, 0xc
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
test eax, eax
je 0x43faac
push esi
push 0x104
call ebx
test eax, eax
jne 0x43faac
push 0x103
push edi
push esi
call fcn.0048b674
add esp, 0xc
xor eax, eax
mov word [esi + 0x206], ax
cmp byte [0x4c4a5c], 0
je 0x43facb
mov ecx, dword [0x4c264c]
push 1
push 0
push 0xffffffffffffffff
push 0x49c8d4
call fcn.00472870
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x440140
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 0x4402ce
cmp word [edi], 0
je 0x4402ce
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x440194
shr eax, 4
not al
and al, 1
movzx eax, al
push 0xb7
push eax
push ebp
call fcn.0042f0e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 4
push 0x5c
push edi
call fcn.0048a584
mov ebx, eax
add esp, 8
cmp ebx, edi
jbe 0x4402a7
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4401b0
sub eax, edx
sar eax, 1
cmp eax, 0x104
jb 0x44021b
mov eax, dword [0x4be40c]
mov dword [eax + 0x30], 0x6f
cmp byte [eax + 0x104], cl
jne 0x4401fb
mov ecx, dword [0x4c264c]
push ecx
or eax, 0xffffffff
mov ecx, 0x49f2c4
call fcn.00401200
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 4
mov ecx, ebp
push 0x49c820
push 0
push 0x49f2c4
call fcn.0042ee20
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.0048b674
add esp, 0xc
lea ecx, [esp + 0x10]
xor eax, eax
push ecx
mov ecx, ebp
mov word [esp + esi*2 + 0x14], ax
call fcn.00440140
cmp word [ebx + 2], 0
je 0x440295
mov esi, dword [0x4c264c]
cmp byte [esi + 0x17], 0
jne 0x440259
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x440266
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x44027f
test byte [esi + 0x15], 4
je 0x44027a
mov eax, esi
call fcn.0042f9b0
mov eax, dword [esi + 8]
jmp 0x44028f
cmp al, 2
jne 0x44028a
call fcn.00401000
jmp 0x44028f
mov eax, 0x4c3f50
cmp word [eax], 0x31
jne 0x4402a7
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.0042f0e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 4
mov eax, dword [0x4be40c]
cmp byte [eax + 0x104], 0
mov dword [eax + 0x30], 0x57
jne 0x4401fd
mov ecx, dword [0x4c264c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
mov dword [esp + 4], ecx
or eax, 0xffffffff
mov ecx, 0x49f2c4
jmp fcn.00401200
Function at 0x441970
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.0040cb80
test al, al
je 0x441998
push 0x10
push 0
push edi
call fcn.0048a0eb
add esp, 0xc
jmp 0x4419a1
push edi
call fcn.00489d56
add esp, 4
cmp eax, 1
je 0x441a03
call fcn.00452cc0
test al, al
je 0x441a03
mov eax, dword [0x4be40c]
cmp byte [eax + 0x104], 0
jne 0x4419de
mov ecx, dword [0x4c264c]
push ecx
or eax, 0xffffffff
mov ecx, 0x49f2c4
call fcn.00401200
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
mov ecx, dword [esp + 0x224]
push 0x49c820
push 0
push 0x49f2c4
call fcn.0042ee20
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 0x441a4e
mov edx, dword [0x4be40c]
cmp byte [edx + 0x104], 0
jne 0x4419de
mov eax, dword [0x4c264c]
push eax
or eax, ebp
mov ecx, 0x49f2c4
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 0x441a53
sub eax, edx
sar eax, 1
cmp eax, 0x104
jb 0x441a6e
mov eax, 0x103
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esp + 0x1c]
push ebx
push edx
call fcn.00490c80
lea eax, [esp + 0x24]
add esp, 0xc
push eax
call fcn.0048aca1
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 0x441add
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x441add
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
test edi, edi
je 0x441add
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 0x441adf
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.0042ef10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
Function at 0x441b10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x4c1de8]
sub esp, 0x104
push esi
push 1
push 0
push 0xffffffffffffffff
push 0
mov esi, eax
call fcn.00472870
test esi, esi
je 0x441ba5
cmp word [esi], 0
je 0x441ba5
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x441b62
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [0x4be40c]
cmp byte [ecx + 0x104], 0
mov dword [ecx + 0x30], eax
jmp 0x441bb8
mov ecx, dword [0x4be40c]
mov edx, dword [0x4c264c]
mov dword [ecx + 0x30], 0
push edx
or eax, 0xffffffff
mov ecx, 0x49c8d4
call fcn.00401200
mov edx, esi
lea eax, [esp + 8]
call fcn.00470d30
mov ecx, dword [0x4c1de8]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.00472870
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4be40c]
cmp byte [eax + 0x104], 0
mov dword [eax + 0x30], 0x57
jne 0x441bd2
mov eax, dword [0x4c264c]
push eax
or eax, 0xffffffff
mov ecx, 0x49f2c4
call fcn.00401200
pop esi
mov esp, ebp
pop ebp
ret
push 0x49c820
push 0
push 0x49f2c4
mov ecx, edi
call fcn.0042ee20
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x44e280
Capabilities:
Log keystrokes via polling

Disassembly:
test bl, bl
jne 0x44e287
xor al, al
ret
mov eax, dword [esp + 4]
dec eax
je 0x44e2af
dec eax
je 0x44e2a1
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 0x44e2bc
cmp bl, 3
jne 0x44e2c3
lea eax, [ebx + 0x66]
cmp al, 5
ja 0x44e2e9
cmp dword [0x4c1f7c], 0
je 0x44e2d9
movzx ecx, bl
mov al, byte [ecx + 0x4c1e68]
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 [0x4c1f78], 0
je 0x44e318
xor ecx, ecx
xor edx, edx
mov al, bl
call fcn.00411500
test al, al
je 0x44e30b
push 1
call fcn.00411330
add esp, 4
movzx eax, bl
mov al, byte [eax + 0x4c1e68]
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 0x44e8b0
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 0x44e8f2
push esi
push eax
push 0x1000
call ebx
mov ebp, eax
test ebp, ebp
jne 0x44e8f2
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 0x44e90d
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
jmp 0x44e913
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test byte [0x4c56ac], 1
mov ebx, eax
jne 0x44e943
or dword [0x4c56ac], 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 [0x4c56a8], eax
jmp 0x44e948
mov eax, dword [0x4c56a8]
test ebx, ebx
jne 0x44ea5f
test eax, eax
je 0x44ea5f
push 0x104
push edi
push ebp
call eax
mov ebx, eax
test ebx, ebx
je 0x44ea5f
cmp byte [esp + 0x224], 0
je 0x44e9c3
push 0x5c
push edi
call fcn.0048a584
add esp, 8
test eax, eax
je 0x44ea5f
mov ecx, eax
lea esi, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x44e990
sub ecx, esi
sar ecx, 1
add ecx, ecx
push ecx
add eax, 2
push eax
push edi
call fcn.00489530
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 0x44ea0e
sub esi, 2
push esi
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.0048a5b2
add esp, 0xc
test eax, eax
jne 0x44ea0e
cmp word [edi + esi*2], 0x5c
je 0x44ea34
mov ax, word [esp + 0x10]
inc ax
mov word [esp + 0x10], ax
cmp ax, 0x5a
jbe 0x44e9d5
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.00489530
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 0x451b50
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 0x49a730
push 1
push 0
push 0x49a740
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x451cf9
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 0x451bad
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 0x451bc0
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 0x451bd6
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 0x451c1c
cmp word [ebx], 0
je 0x451c0c
mov eax, ebx
call fcn.0040cb80
test al, al
je 0x451c00
push 0x10
push 0
push ebx
call fcn.0048a0eb
add esp, 0xc
dec eax
jmp 0x451c0e
push ebx
call fcn.00489d56
add esp, 4
dec eax
jmp 0x451c0e
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 0x451c5e
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 1
mov ecx, eax
push 0
xor edx, edx
mov eax, esi
call fcn.00411b50
add esp, 8
test al, al
je 0x451c5e
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 0x451c97
mov eax, esi
call fcn.0040cb80
test al, al
je 0x451c81
push 0x10
push 0
push esi
call fcn.0048a0eb
add esp, 0xc
jmp 0x451c8a
push esi
call fcn.00489d56
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 0x49a750
push eax
mov eax, dword [ecx]
call eax
test eax, eax
js 0x451ced
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 0x451ce1
mov ecx, dword [0x4c264c]
push 1
push 0
push 0xffffffffffffffff
push 0x49c8d4
call fcn.00472870
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 0x451d12
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword [0x4be40c]
cmp byte [eax + 0x104], 0
jne 0x451d3b
mov ecx, dword [0x4c264c]
push ecx
or eax, 0xffffffff
mov ecx, 0x49f2c4
call fcn.00401200
pop esi
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, dword [ebp + 8]
push 0x49c820
push 0
push 0x49f2c4
call fcn.0042ee20
pop esi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x451d60
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0x238
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x451e28
cmp word [eax], bx
je 0x451e28
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 0x451d97
sub eax, edx
sar eax, 1
cmp eax, ebx
je 0x451dbb
cmp word [esp + eax*2 + 0x2a], 0x5c
lea eax, [esp + eax*2 + 0x2a]
jne 0x451dbb
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 0x451dc2
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.0042ef10
pop ebx
add esp, 0x238
ret
mov edx, dword [0x4be40c]
cmp byte [edx + 0x104], bl
jne 0x451e51
mov eax, dword [0x4c264c]
push eax
or eax, 0xffffffff
mov ecx, 0x49f2c4
call fcn.00401200
pop ebx
add esp, 0x238
ret
push 0x49c820
push ebx
push 0x49f2c4
mov ecx, esi
call fcn.0042ee20
pop ebx
add esp, 0x238
ret
Function at 0x451f20
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x4c1de8]
sub esp, 0x10c
push ebx
push esi
push edi
push 1
push 0
push 0xffffffffffffffff
push 0
mov edi, eax
call fcn.00472870
test edi, edi
je 0x45205b
cmp word [edi], 0
je 0x45205b
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
jne 0x451f83
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [0x4be40c]
cmp byte [ecx + 0x104], 0
mov dword [ecx + 0x30], eax
jmp 0x45206e
push esi
call fcn.00488b54
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 0x452031
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x10]
push eax
push 0x4a3524
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x452031
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.0046fd90
add esp, 0x14
push ebx
call fcn.0048a11f
mov eax, dword [0x4c264c]
mov edx, dword [0x4be40c]
add esp, 4
push eax
or eax, 0xffffffff
mov ecx, 0x49c8d4
mov dword [edx + 0x30], 0
call fcn.00401200
push 1
push 0
push 0xffffffffffffffff
mov ecx, edi
push ecx
mov ecx, dword [0x4c1de8]
call fcn.00472870
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, dword [0x4be40c]
push ebx
mov dword [edx + 0x30], eax
call fcn.0048a11f
mov eax, dword [ebp + 8]
add esp, 4
push eax
call fcn.00431390
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x4be40c]
cmp byte [eax + 0x104], 0
mov dword [eax + 0x30], 0x57
jne 0x45208d
mov ecx, dword [0x4c264c]
push ecx
or eax, 0xffffffff
mov ecx, 0x49f2c4
call fcn.00401200
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
push 0x49c820
push 0
push 0x49f2c4
call fcn.0042ee20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4