joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43b130
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 0x43b170
xor edx, edx
mov word [esp + 0x18], dx
xor eax, eax
jmp 0x43b1d5
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 0x43b203
mov eax, dword [esp + 0x10]
test eax, eax
je 0x43b203
shr eax, 1
dec eax
mov dword [esp + 0x10], eax
cmp word [esp + eax*2 + 0x18], si
jne 0x43b1e3
test eax, eax
je 0x43b1d5
lea ecx, [esp + eax*2 + 0x16]
cmp word [ecx], 0
jne 0x43b1cd
sub ecx, 2
dec eax
jne 0x43b1c1
mov dword [esp + 0x10], eax
test eax, eax
jne 0x43b20c
test edi, edi
jne 0x43b20c
mov edi, 0x100
jmp 0x43b148
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x104
jb 0x43b1fa
xor ecx, ecx
mov word [esp + 0x18], cx
xor eax, eax
jmp 0x43b1d5
xor edx, edx
mov word [esp + eax*2 + 0x18], dx
jmp 0x43b1d1
xor eax, eax
mov word [esp + 0x18], ax
jmp 0x43b1d5
mov esi, dword [esp + 0x224]
test esi, esi
je 0x43b22f
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 0x43b220
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
Function at 0x43e770
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
mov eax, dword [0x4c1e68]
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 0x43e855
cmp word [esi + 2], 0
jne 0x43e7da
cmp ecx, 0xa
jne 0x43e7ae
mov al, 0xd
jmp 0x43e84f
push eax
push ecx
call dword [sym.imp.USER32.dll_VkKeyScanExW]
movzx ecx, ax
mov eax, ecx
shr eax, 8
cmp al, 0xff
jne 0x43e7ce
cmp cl, 0xff
jne 0x43e7ce
xor al, al
jmp 0x43e84f
and al, 0x38
neg al
sbb al, al
not al
and al, cl
jmp 0x43e84f
mov edi, ecx
test edi, 0xffffff80
jne 0x43e7f6
push 2
push edi
call fcn.0048a05e
add esp, 8
test eax, eax
je 0x43e7f6
and edi, 0xffffffdf
cmp di, 0x56
jne 0x43e81d
mov ax, word [esi + 2]
call fcn.00409110
cmp ax, 0x4b
jne 0x43e81d
push 0x10
lea eax, [esi + 4]
push 0
push eax
call fcn.0048a43b
add esp, 0xc
jmp 0x43e84f
xor edi, edi
nop
mov ecx, dword [edi*8 + 0x4bf260]
push esi
push ecx
call fcn.00488e19
add esp, 8
test eax, eax
je 0x43e886
inc edi
cmp edi, 0x6d
jl 0x43e820
mov eax, esi
call fcn.00411ac0
movzx ecx, ax
test cx, cx
je 0x43e855
call fcn.00412240
mov bl, al
test bl, bl
jne 0x43e8c9
push 0
lea ebx, [esp + 0x10]
mov eax, esi
call fcn.0044e490
mov edi, eax
add esp, 4
test edi, edi
jne 0x43e88f
mov ecx, dword [esp + 8]
push 1
push eax
push 0xffffffffffffffff
push 0x4a6b2c
call fcn.00472b80
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov bl, byte [edi*8 + 0x4bf264]
jmp 0x43e851
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.0044e740
fstp st(0)
mov edi, dword [esp + 0x10]
add esp, 8
lea eax, [esp + 0x10]
call fcn.004725c0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
movzx edi, word [ecx]
test edi, 0xffffff80
jne 0x43e8e9
push 2
push edi
call fcn.0048a05e
add esp, 8
test eax, eax
je 0x43e8e9
and edi, 0xffffffdf
movzx eax, di
cmp eax, 0x50
je 0x43e901
xor edx, edx
cmp eax, 0x54
setne dl
lea eax, [edx - 1]
and eax, 2
jmp 0x43e906
mov eax, 1
push eax
call fcn.0044e690
add esp, 4
test al, al
mov eax, 0x4a5b7c
jne 0x43e91d
mov eax, 0x4a5b80
mov ecx, dword [esp + 8]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.00472b80
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x43e940
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x4c1e68]
sub esp, 0x238
push esi
push edi
push 1
push 0
push 0xffffffffffffffff
push 0
mov esi, eax
call fcn.00472b80
test esi, esi
je 0x43eacf
cmp word [esi], 0
je 0x43eacf
push 0x104
lea eax, [esp + 0x34]
push esi
push eax
call fcn.0048b9c4
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 0x43e9a0
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x2e], 0x5c
je 0x43e9d7
lea edx, [eax + 1]
cmp edx, 0x105
jae 0x43eacf
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 [0x4c5778], 1
jne 0x43ea0d
or dword [0x4c5778], 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 [0x4c5774], eax
jmp 0x43ea12
mov eax, dword [0x4c5774]
test eax, eax
je 0x43ea5e
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 0x43eacf
test bl, bl
je 0x43ea4b
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
shrd esi, eax, 0x14
shr eax, 0x14
mov edi, eax
jmp 0x43ea9e
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
shrd esi, eax, 0x14
shr eax, 0x14
mov edi, eax
jmp 0x43ea9e
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 0x43eacf
mov eax, dword [esp + 0x14]
test bl, bl
jne 0x43ea8d
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 [0x4c26cc]
push 1
push 0
push 0xffffffffffffffff
push 0x49c8d0
call fcn.00472b80
mov eax, dword [0x4c1e68]
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 0x43eaf9
mov eax, dword [0x4c26cc]
push eax
or eax, 0xffffffff
mov ecx, 0x49f36c
call fcn.00401200
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
push 0x4a6b2c
push 0
push 0x49f36c
call fcn.0042f160
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x43fdc0
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 0x43fdf0
cmp byte [0x4c4adc], al
je 0x43fe9b
call fcn.004091d0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [0x4c4adc], 0
mov esi, 0x4c26d0
jne 0x43fe02
lea esi, [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
push 0x104
call ebx
test eax, eax
je 0x43fe64
cmp word [edi], 0
je 0x43fe7c
cmp word [edi + 2], 0x3a
jne 0x43fe7c
cmp word [edi + 4], 0
jne 0x43fe7c
push esi
push edi
call fcn.00488e19
add esp, 8
test eax, eax
je 0x43fe7c
push edi
lea ecx, [esp + 0xc]
push 0x4a6010
push ecx
call fcn.00489223
add esp, 0xc
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x43fe7c
push esi
push 0x104
call ebx
test eax, eax
jne 0x43fe7c
push 0x103
push edi
push esi
call fcn.0048b9c4
add esp, 0xc
xor eax, eax
mov word [esi + 0x206], ax
cmp byte [0x4c4adc], 0
je 0x43fe9b
mov ecx, dword [0x4c26cc]
push 1
push 0
push 0xffffffffffffffff
push 0x49c8d0
call fcn.00472b80
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x440510
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 0x44069e
cmp word [edi], 0
je 0x44069e
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x440564
shr eax, 4
not al
and al, 1
movzx eax, al
push 0xb7
push eax
push ebp
call fcn.0042f420
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 4
push 0x5c
push edi
call fcn.0048a8d4
mov ebx, eax
add esp, 8
cmp ebx, edi
jbe 0x440677
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x440580
sub eax, edx
sar eax, 1
cmp eax, 0x104
jb 0x4405eb
mov eax, dword [0x4be40c]
mov dword [eax + 0x30], 0x6f
cmp byte [eax + 0x104], cl
jne 0x4405cb
mov ecx, dword [0x4c26cc]
push ecx
or eax, 0xffffffff
mov ecx, 0x49f36c
call fcn.00401200
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 4
mov ecx, ebp
push 0x4a6b2c
push 0
push 0x49f36c
call fcn.0042f160
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.0048b9c4
add esp, 0xc
lea ecx, [esp + 0x10]
xor eax, eax
push ecx
mov ecx, ebp
mov word [esp + esi*2 + 0x14], ax
call fcn.00440510
cmp word [ebx + 2], 0
je 0x440665
mov esi, dword [0x4c26cc]
cmp byte [esi + 0x17], 0
jne 0x440629
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x440636
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x44064f
test byte [esi + 0x15], 4
je 0x44064a
mov eax, esi
call fcn.0042fcf0
mov eax, dword [esi + 8]
jmp 0x44065f
cmp al, 2
jne 0x44065a
call fcn.00401000
jmp 0x44065f
mov eax, 0x4c3fd0
cmp word [eax], 0x31
jne 0x440677
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.0042f420
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 0x4405cd
mov ecx, dword [0x4c26cc]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
mov dword [esp + 4], ecx
or eax, 0xffffffff
mov ecx, 0x49f36c
jmp fcn.00401200
Function at 0x441d40
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 0x441d68
push 0x10
push 0
push edi
call fcn.0048a43b
add esp, 0xc
jmp 0x441d71
push edi
call fcn.0048a0a6
add esp, 4
cmp eax, 1
je 0x441dd3
call fcn.00453090
test al, al
je 0x441dd3
mov eax, dword [0x4be40c]
cmp byte [eax + 0x104], 0
jne 0x441dae
mov ecx, dword [0x4c26cc]
push ecx
or eax, 0xffffffff
mov ecx, 0x49f36c
call fcn.00401200
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
mov ecx, dword [esp + 0x224]
push 0x4a6b2c
push 0
push 0x49f36c
call fcn.0042f160
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 0x441e1e
mov edx, dword [0x4be40c]
cmp byte [edx + 0x104], 0
jne 0x441dae
mov eax, dword [0x4c26cc]
push eax
or eax, ebp
mov ecx, 0x49f36c
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 0x441e23
sub eax, edx
sar eax, 1
cmp eax, 0x104
jb 0x441e3e
mov eax, 0x103
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esp + 0x1c]
push ebx
push edx
call fcn.00490fd0
lea eax, [esp + 0x24]
add esp, 0xc
push eax
call fcn.0048aff1
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 0x441ead
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x441ead
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x441ead
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 0x441eaf
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.0042f250
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
Function at 0x441ee0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x4c1e68]
sub esp, 0x104
push esi
push 1
push 0
push 0xffffffffffffffff
push 0
mov esi, eax
call fcn.00472b80
test esi, esi
je 0x441f75
cmp word [esi], 0
je 0x441f75
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x441f32
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4be40c]
cmp byte [ecx + 0x104], 0
mov dword [ecx + 0x30], eax
jmp 0x441f88
mov ecx, dword [0x4be40c]
mov edx, dword [0x4c26cc]
mov dword [ecx + 0x30], 0
push edx
or eax, 0xffffffff
mov ecx, 0x49c8d0
call fcn.00401200
mov edx, esi
lea eax, [esp + 8]
call fcn.00471040
mov ecx, dword [0x4c1e68]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.00472b80
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4be40c]
cmp byte [eax + 0x104], 0
mov dword [eax + 0x30], 0x57
jne 0x441fa2
mov eax, dword [0x4c26cc]
push eax
or eax, 0xffffffff
mov ecx, 0x49f36c
call fcn.00401200
pop esi
mov esp, ebp
pop ebp
ret
push 0x4a6b2c
push 0
push 0x49f36c
mov ecx, edi
call fcn.0042f160
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x44e690
Capabilities:
Log keystrokes via polling

Disassembly:
test bl, bl
jne 0x44e697
xor al, al
ret
mov eax, dword [esp + 4]
dec eax
je 0x44e6bf
dec eax
je 0x44e6b1
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 0x44e6cc
cmp bl, 3
jne 0x44e6d3
lea eax, [ebx + 0x66]
cmp al, 5
ja 0x44e6f9
cmp dword [0x4c1ffc], 0
je 0x44e6e9
movzx ecx, bl
mov al, byte [ecx + 0x4c1ee8]
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 [0x4c1ff8], 0
je 0x44e728
xor ecx, ecx
xor edx, edx
mov al, bl
call fcn.00411510
test al, al
je 0x44e71b
push 1
call fcn.00411340
add esp, 4
movzx eax, bl
mov al, byte [eax + 0x4c1ee8]
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 0x44ecc0
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 0x44ed02
push esi
push eax
push 0x1000
call ebx
mov ebp, eax
test ebp, ebp
jne 0x44ed02
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 0x44ed1d
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
jmp 0x44ed23
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test byte [0x4c572c], 1
mov ebx, eax
jne 0x44ed53
or dword [0x4c572c], 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 [0x4c5728], eax
jmp 0x44ed58
mov eax, dword [0x4c5728]
test ebx, ebx
jne 0x44ee6f
test eax, eax
je 0x44ee6f
push 0x104
push edi
push ebp
call eax
mov ebx, eax
test ebx, ebx
je 0x44ee6f
cmp byte [esp + 0x224], 0
je 0x44edd3
push 0x5c
push edi
call fcn.0048a8d4
add esp, 8
test eax, eax
je 0x44ee6f
mov ecx, eax
lea esi, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x44eda0
sub ecx, esi
sar ecx, 1
add ecx, ecx
push ecx
add eax, 2
push eax
push edi
call fcn.00489880
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 0x44ee1e
sub esi, 2
push esi
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.0048a902
add esp, 0xc
test eax, eax
jne 0x44ee1e
cmp word [edi + esi*2], 0x5c
je 0x44ee44
mov ax, word [esp + 0x10]
inc ax
mov word [esp + 0x10], ax
cmp ax, 0x5a
jbe 0x44ede5
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.00489880
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 0x451f20
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 0x4520c9
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 0x451f7d
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 0x451f90
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 0x451fa6
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 0x451fec
cmp word [ebx], 0
je 0x451fdc
mov eax, ebx
call fcn.0040cb80
test al, al
je 0x451fd0
push 0x10
push 0
push ebx
call fcn.0048a43b
add esp, 0xc
dec eax
jmp 0x451fde
push ebx
call fcn.0048a0a6
add esp, 4
dec eax
jmp 0x451fde
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 0x45202e
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 1
mov ecx, eax
push 0
xor edx, edx
mov eax, esi
call fcn.00411b60
add esp, 8
test al, al
je 0x45202e
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 0x452067
mov eax, esi
call fcn.0040cb80
test al, al
je 0x452051
push 0x10
push 0
push esi
call fcn.0048a43b
add esp, 0xc
jmp 0x45205a
push esi
call fcn.0048a0a6
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 0x4520bd
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 0x4520b1
mov ecx, dword [0x4c26cc]
push 1
push 0
push 0xffffffffffffffff
push 0x49c8d0
call fcn.00472b80
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 0x4520e2
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword [0x4be40c]
cmp byte [eax + 0x104], 0
jne 0x45210b
mov ecx, dword [0x4c26cc]
push ecx
or eax, 0xffffffff
mov ecx, 0x49f36c
call fcn.00401200
pop esi
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, dword [ebp + 8]
push 0x4a6b2c
push 0
push 0x49f36c
call fcn.0042f160
pop esi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x452130
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0x238
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x4521f8
cmp word [eax], bx
je 0x4521f8
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 0x452167
sub eax, edx
sar eax, 1
cmp eax, ebx
je 0x45218b
cmp word [esp + eax*2 + 0x2a], 0x5c
lea eax, [esp + eax*2 + 0x2a]
jne 0x45218b
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 0x452192
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.0042f250
pop ebx
add esp, 0x238
ret
mov edx, dword [0x4be40c]
cmp byte [edx + 0x104], bl
jne 0x452221
mov eax, dword [0x4c26cc]
push eax
or eax, 0xffffffff
mov ecx, 0x49f36c
call fcn.00401200
pop ebx
add esp, 0x238
ret
push 0x4a6b2c
push ebx
push 0x49f36c
mov ecx, esi
call fcn.0042f160
pop ebx
add esp, 0x238
ret
Function at 0x4522f0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x4c1e68]
sub esp, 0x10c
push ebx
push esi
push edi
push 1
push 0
push 0xffffffffffffffff
push 0
mov edi, eax
call fcn.00472b80
test edi, edi
je 0x45242b
cmp word [edi], 0
je 0x45242b
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
jne 0x452353
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4be40c]
cmp byte [ecx + 0x104], 0
mov dword [ecx + 0x30], eax
jmp 0x45243e
push esi
call fcn.00488ea4
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 0x452401
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x10]
push eax
push 0x4a3624
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x452401
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.004700a0
add esp, 0x14
push ebx
call fcn.0048a46f
mov eax, dword [0x4c26cc]
mov edx, dword [0x4be40c]
add esp, 4
push eax
or eax, 0xffffffff
mov ecx, 0x49c8d0
mov dword [edx + 0x30], 0
call fcn.00401200
push 1
push 0
push 0xffffffffffffffff
mov ecx, edi
push ecx
mov ecx, dword [0x4c1e68]
call fcn.00472b80
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.0048a46f
mov eax, dword [ebp + 8]
add esp, 4
push eax
call fcn.004316e0
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 0x45245d
mov ecx, dword [0x4c26cc]
push ecx
or eax, 0xffffffff
mov ecx, 0x49f36c
call fcn.00401200
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
push 0x4a6b2c
push 0
push 0x49f36c
call fcn.0042f160
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4