joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43a750
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 0x43a790
xor edx, edx
mov word [esp + 0x18], dx
xor eax, eax
jmp 0x43a7f5
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 0x43a823
mov eax, dword [esp + 0x10]
test eax, eax
je 0x43a823
shr eax, 1
dec eax
mov dword [esp + 0x10], eax
cmp word [esp + eax*2 + 0x18], si
jne 0x43a803
test eax, eax
je 0x43a7f5
lea ecx, [esp + eax*2 + 0x16]
cmp word [ecx], 0
jne 0x43a7ed
sub ecx, 2
dec eax
jne 0x43a7e1
mov dword [esp + 0x10], eax
test eax, eax
jne 0x43a82c
test edi, edi
jne 0x43a82c
mov edi, 0x100
jmp 0x43a768
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x104
jb 0x43a81a
xor ecx, ecx
mov word [esp + 0x18], cx
xor eax, eax
jmp 0x43a7f5
xor edx, edx
mov word [esp + eax*2 + 0x18], dx
jmp 0x43a7f1
xor eax, eax
mov word [esp + 0x18], ax
jmp 0x43a7f5
mov esi, dword [esp + 0x224]
test esi, esi
je 0x43a84f
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 0x43a840
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
Function at 0x43e170
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
sub esp, 0x218
push ebx
push ebp
mov ebp, dword [0x4c6400]
push esi
push edi
push 0
mov edi, eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx ecx, word [edi]
test cx, cx
je 0x43e255
cmp word [edi + 2], 0
jne 0x43e1d5
cmp ecx, 0xa
jne 0x43e1a9
mov al, 0xd
jmp 0x43e24f
push eax
push ecx
call dword [sym.imp.USER32.dll_VkKeyScanExW]
movzx ecx, ax
mov eax, ecx
shr eax, 8
cmp al, 0xff
jne 0x43e1c9
cmp cl, 0xff
jne 0x43e1c9
xor al, al
jmp 0x43e24f
and al, 0x38
neg al
sbb al, al
not al
and al, cl
jmp 0x43e24f
mov esi, ecx
test esi, 0xffffff80
jne 0x43e1f1
push 2
push esi
call fcn.0048df2e
add esp, 8
test eax, eax
je 0x43e1f1
and esi, 0xffffffdf
cmp si, 0x56
jne 0x43e218
mov ax, word [edi + 2]
call fcn.004095a0
cmp ax, 0x4b
jne 0x43e218
push 0x10
lea ecx, [edi + 4]
push 0
push ecx
call fcn.0048e30b
add esp, 0xc
jmp 0x43e24f
xor esi, esi
lea ebx, [ebx]
mov edx, dword [esi*8 + 0x4c36f8]
push edi
push edx
call fcn.0048ccd9
add esp, 8
test eax, eax
je 0x43e288
inc esi
cmp esi, 0x6d
jl 0x43e220
mov eax, edi
call fcn.00412200
movzx ecx, ax
test cx, cx
je 0x43e255
call fcn.00412980
mov bl, al
test bl, bl
jne 0x43e2ce
push 0
lea ebx, [esp + 0x18]
mov eax, edi
call fcn.0044f9f0
mov edi, eax
add esp, 4
test edi, edi
jne 0x43e291
push 1
push eax
push 0xffffffffffffffff
push 0x4ab02c
push ebp
call fcn.00476610
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 4
mov bl, byte [esi*8 + 0x4c36fc]
jmp 0x43e251
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x28]
mov dword [esp + 0x18], eax
push 0
push ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x28], 0
call fcn.0044fca0
fstp st(0)
add esp, 8
lea eax, [esp + 0x18]
mov ebx, ebp
call fcn.00475f30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 4
mov edx, dword [esp + 0x22c]
movzx esi, word [edx]
test esi, 0xffffff80
jne 0x43e2f2
push 2
push esi
call fcn.0048df2e
add esp, 8
test eax, eax
je 0x43e2f2
and esi, 0xffffffdf
movzx eax, si
cmp eax, 0x50
je 0x43e30a
xor ecx, ecx
cmp eax, 0x54
setne cl
lea eax, [ecx - 1]
and eax, 2
jmp 0x43e30f
mov eax, 1
push eax
call fcn.0044fbf0
add esp, 4
test al, al
mov eax, 0x4aa008
jne 0x43e326
mov eax, 0x4aa00c
push 1
push 0
push 0xffffffffffffffff
push eax
push ebp
call fcn.00476610
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 4
Function at 0x43e340
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x238
push esi
mov esi, ecx
mov ecx, dword [0x4c6400]
push edi
call fcn.00413110
test esi, esi
je 0x43e4b9
cmp word [esi], 0
je 0x43e4b9
push 0x104
lea eax, [esp + 0x34]
push esi
push eax
call fcn.0048f9d4
add esp, 0xc
xor ecx, ecx
lea eax, [esp + 0x30]
mov word [esp + 0x238], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43e391
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x2e], 0x5c
je 0x43e3c8
lea edx, [eax + 1]
cmp edx, 0x105
jae 0x43e4b9
mov ecx, 0x5c
xor edx, edx
mov word [esp + eax*2 + 0x30], cx
mov word [esp + eax*2 + 0x32], dx
test byte [0x4c9e44], 1
jne 0x43e3f6
or dword [0x4c9e44], 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 [0x4c9e40], eax
jmp 0x43e3fb
mov eax, dword [0x4c9e40]
test eax, eax
je 0x43e447
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 0x43e4b9
test bl, bl
je 0x43e434
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
shrd esi, eax, 0x14
shr eax, 0x14
mov edi, eax
jmp 0x43e487
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
shrd esi, eax, 0x14
shr eax, 0x14
mov edi, eax
jmp 0x43e487
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 0x43e4b9
mov eax, dword [esp + 0x14]
test bl, bl
jne 0x43e476
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 edx, dword [0x4c6cb4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a0900
push edx
call fcn.00476610
mov eax, dword [0x4c6400]
push 0x18
push edi
push esi
call fcn.004010e0
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x4c28ec]
cmp byte [eax + 0x104], 0
jne 0x43e4e6
mov ecx, dword [0x4c6cb4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a331c
push ecx
call fcn.00476610
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
push 0x4ab02c
push 0
push 0x4a331c
call fcn.0042dbe0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x440350
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x218
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push edi
call ebp
test eax, eax
jne 0x44037d
cmp byte [0x4c910c], al
je 0x440429
call fcn.00409780
pop ebp
add esp, 0x218
ret
cmp byte [0x4c910c], 0
push ebx
push esi
mov esi, 0x4c6cb8
jne 0x440391
lea esi, [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
push 0x104
call ebx
test eax, eax
je 0x4403ef
cmp word [edi], 0
je 0x440407
cmp word [edi + 2], 0x3a
jne 0x440407
cmp word [edi + 4], 0
jne 0x440407
push esi
push edi
call fcn.0048ccd9
add esp, 8
test eax, eax
je 0x440407
push edi
lea ecx, [esp + 0x10]
push 0x4aa4a0
push ecx
call fcn.0048d0e3
add esp, 0xc
lea edx, [esp + 0xc]
push edx
call ebp
test eax, eax
je 0x440407
push esi
push 0x104
call ebx
test eax, eax
jne 0x440407
push 0x103
push edi
push esi
call fcn.0048f9d4
add esp, 0xc
xor eax, eax
mov word [esi + 0x206], ax
cmp byte [0x4c910c], 0
pop esi
pop ebx
je 0x440429
mov ecx, dword [0x4c6cb4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a0900
push ecx
call fcn.00476610
pop ebp
add esp, 0x218
ret
Function at 0x440ac0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x210
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
mov ebp, ecx
test edi, edi
je 0x440c68
cmp word [edi], 0
je 0x440c68
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x440b1c
mov ecx, dword [0x4c28ec]
shr eax, 4
not al
and al, 1
movzx edx, al
push edx
push ebp
mov dword [ecx + 0x30], 0xb7
call fcn.0042dcd0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
push 0x5c
push edi
call fcn.0048e8ad
mov ebx, eax
add esp, 8
cmp ebx, edi
jbe 0x440c2f
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x440b36
sub eax, edx
sar eax, 1
cmp eax, 0x104
jb 0x440ba3
mov eax, dword [0x4c28ec]
mov dword [eax + 0x30], 0x6f
cmp byte [eax + 0x104], cl
jne 0x440b83
mov eax, dword [0x4c6cb4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a331c
push eax
call fcn.00476610
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
mov ecx, ebp
push 0x4ab02c
push 0
push 0x4a331c
call fcn.0042dbe0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
mov esi, ebx
sub esi, edi
sar esi, 1
push esi
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.0048f9d4
add esp, 0xc
lea eax, [esp + 0x18]
xor edx, edx
push eax
mov ecx, ebp
mov word [esp + esi*2 + 0x1c], dx
call fcn.00440ac0
cmp word [ebx + 2], 0
je 0x440c1d
mov esi, dword [0x4c6cb4]
cmp byte [esi + 0x17], 0
jne 0x440be1
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x440bee
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x440c07
test byte [esi + 0x15], 4
je 0x440c02
mov eax, esi
call fcn.0042e710
mov eax, dword [esi + 8]
jmp 0x440c17
cmp al, 2
jne 0x440c12
call fcn.00401000
jmp 0x440c17
mov eax, 0x4c85b8
cmp word [eax], 0x31
jne 0x440c2f
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
sete cl
mov byte [esp + 0x14], cl
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x4c28ec]
mov dword [edx + 0x30], eax
mov eax, dword [esp + 0x14]
push eax
push ebp
call fcn.0042dcd0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
mov eax, dword [0x4c28ec]
cmp byte [eax + 0x104], 0
mov dword [eax + 0x30], 0x57
jne 0x440b85
mov ecx, dword [0x4c6cb4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a331c
push ecx
call fcn.00476610
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
Function at 0x4418f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
test edi, edi
je 0x441975
cmp byte [edi + 0x17], 0
jne 0x44190a
mov esi, dword [edi + 0xc]
jmp 0x44190c
mov esi, edi
mov bl, 8
test byte [esi + 0x15], bl
je 0x44191a
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x441933
test byte [esi + 0x15], 4
je 0x44192e
mov eax, esi
call fcn.0042e710
mov eax, dword [esi + 8]
jmp 0x441943
cmp al, 2
jne 0x44193e
call fcn.00401000
jmp 0x441943
mov eax, 0x4c85b8
cmp byte [edi + 0x17], 0
mov ebp, eax
jne 0x441950
mov esi, dword [edi + 0xc]
jmp 0x441952
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x44196c
test byte [esi + 0x15], bl
je 0x441964
mov eax, esi
call fcn.00401160
mov ebx, dword [esi + 0xc]
add esi, 0xc
jmp 0x4419a8
mov esi, 0x4c9308
mov ebx, dword [esi]
jmp 0x4419a8
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
call fcn.00476070
add esp, 0xc
test eax, eax
jne 0x4419a0
mov edx, dword [0x4c28ec]
mov dword [edx + 0x30], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
mov ebp, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
xor edi, edi
push edi
push edi
push 2
push edi
push edi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4419e9
mov dword [esp + 0x20], edi
test ebp, ebp
je 0x4419de
push edi
lea ecx, [esp + 0x24]
push ecx
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor edx, edx
cmp dword [esp + 0x20], ebx
sete dl
mov edi, edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4c28ec]
mov dword [ecx + 0x30], eax
cmp esi, 0xffffffff
je 0x441a04
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x24], 0
jne 0x441a14
push ebp
call fcn.0048e33f
add esp, 4
mov ecx, dword [esp + 0x1c]
test edi, edi
sete dl
movzx eax, dl
push eax
push ecx
call fcn.0042dcd0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x441d10
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.0040d200
test al, al
je 0x441d38
push 0x10
push 0
push edi
call fcn.0048e30b
add esp, 0xc
jmp 0x441d41
push edi
call fcn.0048df76
add esp, 4
cmp eax, 1
je 0x441da6
call fcn.00454610
test al, al
je 0x441da6
mov eax, dword [0x4c28ec]
cmp byte [eax + 0x104], 0
jne 0x441d81
mov ecx, dword [0x4c6cb4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a331c
push ecx
call fcn.00476610
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
mov ecx, dword [esp + 0x224]
push 0x4ab02c
push 0
push 0x4a331c
call fcn.0042dbe0
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 0x441df4
mov edx, dword [0x4c28ec]
cmp byte [edx + 0x104], 0
jne 0x441d81
push 1
push 0
push eax
mov eax, dword [0x4c6cb4]
push 0x4a331c
push eax
call fcn.00476610
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x441e00
sub eax, edx
sar eax, 1
cmp eax, 0x104
jb 0x441e1b
mov eax, 0x103
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esp + 0x1c]
push ebx
push edx
call fcn.00495060
lea eax, [esp + 0x24]
add esp, 0xc
push eax
call fcn.0048f003
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 0x441e8a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x441e8a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x441e8a
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 0x441e8c
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.0042dcd0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
Function at 0x441ec0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov ecx, dword [0x4c6400]
sub esp, 0x100
push esi
mov esi, eax
call fcn.00413110
test esi, esi
je 0x441f76
cmp word [esi], 0
je 0x441f76
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x441f2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4c28ec]
cmp byte [ecx + 0x104], 0
mov dword [ecx + 0x30], eax
jne 0x441faa
mov eax, dword [0x4c6cb4]
push 1
push 0
push esi
push 0x4a331c
push eax
call fcn.00476610
pop esi
add esp, 0x100
ret
mov edx, dword [0x4c6cb4]
mov ecx, dword [0x4c28ec]
push 1
push 0
push 0xffffffffffffffff
push 0x4a0900
push edx
mov dword [ecx + 0x30], 0
call fcn.00476610
mov edx, esi
lea eax, [esp + 4]
call fcn.00474850
push 1
push 0
push 0xffffffffffffffff
push eax
mov eax, dword [0x4c6400]
push eax
call fcn.00476610
pop esi
add esp, 0x100
ret
mov eax, dword [0x4c28ec]
cmp byte [eax + 0x104], 0
mov dword [eax + 0x30], 0x57
jne 0x441faa
mov ecx, dword [0x4c6cb4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a331c
push ecx
call fcn.00476610
pop esi
add esp, 0x100
ret
push 0x4ab02c
push 0
push 0x4a331c
mov ecx, edi
call fcn.0042dbe0
pop esi
add esp, 0x100
ret
Function at 0x442e90
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x4c6400]
sub esp, 0x258
push ebx
push esi
call fcn.00413110
test edi, edi
je 0x442ffd
cmp word [edi], 0
je 0x442ffd
push 0
push 0
push 3
push 0
push 7
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x442ef1
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x442f5c
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x442f3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4c28ec]
cmp byte [ecx + 0x104], 0
mov dword [ecx + 0x30], eax
jne 0x443031
mov edx, dword [0x4c6cb4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a331c
push edx
call fcn.00476610
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x2c]
xor ecx, ecx
or ecx, dword [esp + 0x30]
xor esi, esi
or eax, esi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
jmp 0x442f64
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [ebp + 0xc]
movzx esi, word [edx]
test esi, 0xffffff80
jne 0x442f8c
push 2
push esi
call fcn.0048df2e
mov ecx, dword [esp + 0x10]
add esp, 8
test eax, eax
mov eax, dword [esp + 0xc]
je 0x442f8c
and esi, 0xffffffdf
movzx edx, si
sub edx, 0x4b
je 0x442fa1
sub edx, 2
jne 0x442fb7
push edx
push 0x100000
jmp 0x442fa8
push 0
push 0x400
push eax
push ecx
call fcn.0049b6b0
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov ecx, dword [0x4c6cb4]
mov eax, dword [0x4c28ec]
push 1
push 0
push 0xffffffffffffffff
push 0x4a0900
push ecx
mov dword [eax + 0x30], 0
call fcn.00476610
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push 0x18
push edx
push eax
mov eax, dword [0x4c6400]
call fcn.004010e0
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4c28ec]
cmp byte [eax + 0x104], 0
mov dword [eax + 0x30], 0x57
jne 0x443031
mov ecx, dword [0x4c6cb4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a331c
push ecx
call fcn.00476610
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push 0x4ab02c
push 0
push 0x4a331c
call fcn.0042dbe0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x44fbf0
Capabilities:
Log keystrokes via polling

Disassembly:
test bl, bl
jne 0x44fbf7
xor al, al
ret
mov eax, dword [esp + 4]
dec eax
je 0x44fc1f
dec eax
je 0x44fc11
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 0x44fc2c
cmp bl, 3
jne 0x44fc33
lea eax, [ebx + 0x66]
cmp al, 5
ja 0x44fc59
cmp dword [0x4c65ec], 0
je 0x44fc49
movzx ecx, bl
mov al, byte [ecx + 0x4c64d8]
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 [0x4c65e8], 0
je 0x44fc88
xor ecx, ecx
xor edx, edx
mov al, bl
call fcn.00411b10
test al, al
je 0x44fc7b
push 1
call fcn.00411940
add esp, 4
movzx eax, bl
mov al, byte [eax + 0x4c64d8]
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 0x450220
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 0x450262
push esi
push eax
push 0x1000
call ebx
mov ebp, eax
test ebp, ebp
jne 0x450262
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 0x45027d
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
jmp 0x450283
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test byte [0x4c9b94], 1
mov ebx, eax
jne 0x4502b3
or dword [0x4c9b94], 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 [0x4c9b90], eax
jmp 0x4502b8
mov eax, dword [0x4c9b90]
test ebx, ebx
jne 0x4503cf
test eax, eax
je 0x4503cf
push 0x104
push edi
push ebp
call eax
mov ebx, eax
test ebx, ebx
je 0x4503cf
cmp byte [esp + 0x224], 0
je 0x450333
push 0x5c
push edi
call fcn.0048e8ad
add esp, 8
test eax, eax
je 0x4503cf
mov ecx, eax
lea esi, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x450300
sub ecx, esi
sar ecx, 1
add ecx, ecx
push ecx
add eax, 2
push eax
push edi
call fcn.0048d750
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 0x45037e
sub esi, 2
push esi
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.0048e874
add esp, 0xc
test eax, eax
jne 0x45037e
cmp word [edi + esi*2], 0x5c
je 0x4503a4
mov ax, word [esp + 0x10]
inc ax
mov word [esp + 0x10], ax
cmp ax, 0x5a
jbe 0x450345
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.0048d750
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 0x453460
Capabilities:
Create shortcut via ishelllink
Get keyboard layout

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push 0
mov esi, ecx
mov byte [esp + 0x28], 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 8]
push eax
push 0x49e748
push 1
push 0
push 0x49e758
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x45360a
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
cmp word [esi], 0
je 0x4534bb
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 0x4534ce
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
push edi
push eax
call edx
cmp word [ebx], 0
je 0x4534e1
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push ebx
push eax
call edx
mov esi, dword [esp + 0x1c]
cmp word [esi], 0
je 0x453529
cmp word [ebp], 0
je 0x453519
mov eax, ebp
call fcn.0040d200
test al, al
je 0x45350d
push 0x10
push 0
push ebp
call fcn.0048e30b
add esp, 0xc
dec eax
jmp 0x45351b
push ebp
call fcn.0048df76
add esp, 4
dec eax
jmp 0x45351b
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 [esp + 0x20]
cmp word [esi], 0
je 0x45356c
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 1
mov ecx, eax
push 0
xor edx, edx
mov eax, esi
call fcn.004122a0
add esp, 8
test al, al
je 0x45356c
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 [esp + 0x28]
cmp word [esi], 0
je 0x4535a6
mov eax, esi
call fcn.0040d200
test al, al
je 0x453590
push 0x10
push 0
push esi
call fcn.0048e30b
add esp, 0xc
jmp 0x453599
push esi
call fcn.0048df76
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 + 0x14]
push edx
push 0x49e768
push eax
mov eax, dword [ecx]
call eax
test eax, eax
js 0x4535fe
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax]
push 1
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
js 0x4535f2
mov ecx, dword [0x4c6cb4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a0900
push ecx
call fcn.00476610
mov byte [esp + 0x24], 1
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
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 + 0x24], 0
pop esi
pop ebp
je 0x453622
mov eax, 1
pop ecx
ret 0x1c
mov eax, dword [0x4c28ec]
cmp byte [eax + 0x104], 0
jne 0x45364b
mov ecx, dword [0x4c6cb4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a331c
push ecx
call fcn.00476610
pop ecx
ret 0x1c
mov ecx, dword [esp + 8]
push 0x4ab02c
push 0
push 0x4a331c
call fcn.0042dbe0
pop ecx
ret 0x1c