joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4141e0
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2b8
mov eax, dword [0x5513d4]
xor eax, esp
mov dword [esp + 0x2b4], eax
push esi
mov esi, dword [esp + 0x2c0]
lea eax, [esp + 4]
push edi
mov edi, dword [esp + 0x2c8]
push 0x4009
push 0x2b4
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [esp + 0xc]
push 0x400b
push 0x2b4
mov dword [edi + 0x18], eax
lea eax, [esp + 0x10]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x2bc]
mov dword [edi + 0x1c], eax
pop edi
pop esi
xor ecx, esp
call fcn.00502f8e
add esp, 0x2b8
ret 8
Function at 0x415340
Capabilities:
Get file system object information

Disassembly:
mov eax, 0x12b8
call fcn.00502fa0
mov eax, dword [0x5513d4]
xor eax, esp
mov dword [esp + 0x12b4], eax
mov eax, dword [esp + 0x12bc]
push esi
mov esi, ecx
push 0x4001
push 0x2b4
mov dword [esi], eax
lea eax, [esp + 0xc]
push eax
push 0
push 0x524968
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
jne 0x4153b6
push eax
push 0x800
lea eax, [esp + 0x2c0]
push eax
call fcn.004d5520
push 0x4001
push 0x2b4
lea eax, [esp + 0xc]
push eax
push 0
lea eax, [esp + 0x2c8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push eax
push 0
push 0x1109
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x12b8]
pop esi
xor ecx, esp
call fcn.00502f8e
add esp, 0x12b8
ret 4

Function at 0x416a70
Capabilities:
Delete file

Disassembly:
push ecx
push esi
mov esi, ecx
xor eax, eax
push edi
lea edi, [esi + 0x103a]
mov byte [esi + 0x38], 0
mov word [edi], ax
lea eax, [esp + 0xb]
mov edx, dword [esi + 4]
push eax
lea eax, [edx + 0x5028]
push eax
lea eax, [edx + 0xb552]
push eax
call fcn.00416af0
test al, al
jne 0x416ac0
cmp byte [esp + 0xb], al
jne 0x416ae7
mov eax, dword [esi + 4]
mov ecx, 0x58c304
add eax, 0xb552
push eax
call fcn.0046dc70
pop edi
pop esi
pop ecx
ret
mov eax, dword [esi + 8]
mov ecx, esi
push dword [eax + 4]
call fcn.00416700
mov ecx, esi
call fcn.00416140
cmp byte [esi + 0x38], 0
je 0x416ae7
cmp word [edi], 0
je 0x416ae7
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
pop ecx
ret

Function at 0x416cd0
Capabilities:
Get file size

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
cmp byte [edi + 0x10], 0
je 0x416d18
mov edx, dword [esp + 0x10]
push ebx
xor ebx, ebx
mov dword [edx], 0
mov dword [edx + 4], 0
cmp dword [edi + 0x18], ebx
jbe 0x416d0f
xor esi, esi
mov ecx, dword [edi + 0x14]
lea esi, [esi + 0x10]
mov eax, dword [ecx + esi - 8]
add dword [edx], eax
mov eax, dword [ecx + esi - 4]
adc dword [edx + 4], eax
inc ebx
cmp ebx, dword [edi + 0x18]
jb 0x416cf6
pop ebx
pop edi
mov al, 1
pop esi
pop ecx
ret 4
lea eax, [esp + 8]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x416d3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x416d3f
pop edi
xor al, al
pop esi
pop ecx
ret 4
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov edx, dword [esp + 8]
add ecx, esi
pop edi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
pop ecx
ret 4
Function at 0x418463
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push esi
mov esi, ecx
cmp byte [esi + 0x10], 0
je 0x418550
mov ecx, dword [esi + 0x18]
push edi
xor edi, edi
test ecx, ecx
je 0x41848c
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x14]
cmp edx, dword [eax]
je 0x41848c
inc edi
add eax, 0x10
cmp edi, ecx
jb 0x418480
cmp edi, ecx
jb 0x41849a
pop edi
xor al, al
pop esi
add esp, 0x18
ret 0xc
mov edx, dword [esp + 0x24]
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov ecx, edi
push ebx
mov ebx, dword [esp + 0x2c]
shl ecx, 4
push ebp
mov ebp, edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], edx
lea esp, [esp]
test ebx, ebx
je 0x41852e
mov eax, dword [esi + 0x14]
mov eax, dword [ecx + eax]
mov dword [esi + 8], eax
mov byte [esi + 0x10], 0
cmp ebp, edi
jbe 0x4184eb
lea eax, [esp + 0x20]
mov ecx, esi
push eax
push 0
push 0
push 0
call fcn.00418810
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push ebx
push edx
mov ecx, esi
call fcn.00418460
mov byte [esi + 0x10], 1
test al, al
je 0x418544
mov eax, dword [esp + 0x18]
inc ebp
mov edx, dword [esp + 0x10]
sub ebx, eax
mov ecx, dword [esp + 0x1c]
add edx, eax
add dword [esp + 0x14], eax
add ecx, 0x10
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], ecx
cmp ebp, dword [esi + 0x18]
jb 0x4184c0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
pop ebp
pop ebx
pop edi
mov dword [eax], ecx
mov al, 1
pop esi
add esp, 0x18
ret 0xc
pop ebp
pop ebx
pop edi
xor al, al
pop esi
add esp, 0x18
ret 0xc
push 0
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
pop esi
setne al
add esp, 0x18
ret 0xc

Function at 0x418df2
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x18]
add dword [esi + 0x20], edi
mov ecx, dword [esi + 0x20]
adc dword [esi + 0x24], 0
mov edx, dword [esi + 0x24]
jne 0x418e0d
test ecx, ecx
je 0x418e4c
mov ebp, dword [esi + 0x2c]
mov ebx, dword [esi + 0x28]
cmp edx, ebp
ja 0x418e4c
jb 0x418e1d
cmp ecx, ebx
jae 0x418e4c
mov eax, dword [esi + 0xc]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ebp
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov byte [eax + 0x30], 1
cmp byte [esi + 5], 0
mov bl, 1
mov ebp, dword [esp + 0x14]
je 0x418e60
mov eax, dword [esp + 0x1c]
mov dword [eax], edi
jmp 0x418e76
push 0
push dword [esp + 0x20]
push edi
push ebp
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bl
mov ecx, dword [esi + 0xc]
push edi
push ebp
push dword [ecx + 4]
call fcn.0041e620
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret 0xc
Function at 0x41beb0
Capabilities:
Hash data using crc32b

Disassembly:
xor ecx, ecx
mov eax, ecx
shl eax, 0x18
test eax, eax
jns 0x41bec4
add eax, eax
xor eax, 0x4c11db7
jmp 0x41bec6
add eax, eax
test eax, eax
jns 0x41bed3
add eax, eax
xor eax, 0x4c11db7
jmp 0x41bed5
add eax, eax
test eax, eax
jns 0x41bee2
add eax, eax
xor eax, 0x4c11db7
jmp 0x41bee4
add eax, eax
test eax, eax
jns 0x41bef1
add eax, eax
xor eax, 0x4c11db7
jmp 0x41bef3
add eax, eax
test eax, eax
jns 0x41bf00
add eax, eax
xor eax, 0x4c11db7
jmp 0x41bf02
add eax, eax
test eax, eax
jns 0x41bf0f
add eax, eax
xor eax, 0x4c11db7
jmp 0x41bf11
add eax, eax
test eax, eax
jns 0x41bf1e
add eax, eax
xor eax, 0x4c11db7
jmp 0x41bf20
add eax, eax
test eax, eax
jns 0x41bf2d
add eax, eax
xor eax, 0x4c11db7
jmp 0x41bf2f
add eax, eax
mov dword [ecx*4 + 0x552e60], eax
inc ecx
cmp ecx, 0x100
jl 0x41beb2
ret

Function at 0x41e440
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x20]
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
call fcn.00485280
push edi
push dword [esp + 0x1c]
xor ecx, ecx
push esi
mov word [eax], cx
call fcn.0049ce50
push esi
call fcn.00474160
test al, al
je 0x41e481
pop edi
mov al, 1
pop esi
add esp, 0xc
ret 0xc
xor eax, eax
mov word [esi], ax
lea eax, [esp + 8]
push eax
push 1
push 0
push 0x525c98
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41e4cd
lea eax, [edi + edi]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push esi
lea eax, [esp + 0x18]
push eax
push 0
push 0
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.00485280
push edi
push dword [esp + 0x1c]
xor ecx, ecx
push esi
mov word [eax], cx
call fcn.0049ce50
push esi
call fcn.00474160
pop edi
pop esi
add esp, 0xc
ret 0xc

Function at 0x41ec70
Capabilities:
Check if file exists

Disassembly:
mov dword [ecx + 0x102c], 0
mov dword [ecx + 0x1028], 0
jmp fcn.00472d30
Function at 0x427470
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4274b4
push esi
mov esi, dword [esp + 0x10]
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor eax, esi
shrd esi, edx, 8
movzx ecx, al
shr edx, 8
xor esi, dword [ecx*8 + 0x557290]
xor edx, dword [ecx*8 + 0x557294]
sub edi, 1
jne 0x427487
mov eax, esi
pop esi
pop edi
pop ebx
ret 0x10
mov eax, dword [esp + 0xc]
pop edi
pop ebx
ret 0x10
Function at 0x42c270
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51c0b8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5513d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
xor eax, eax
lea ecx, [ebp - 0x2c]
push 0x800
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], al
call fcn.00404d60
mov dword [ebp - 4], 0
xor eax, eax
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp - 0x2c]
mov word [ebx + 0x8524], ax
test edi, edi
jle 0x42c3af
nop
mov eax, 0x800
cmp edi, 0x800
ja 0x42c2f0
movzx eax, di
movzx ebx, ax
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x523720]
mov ecx, dword [ebp + 8]
call esi
cmp eax, ebx
jne 0x42c391
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x523720]
mov ecx, dword [ebp + 0xc]
call esi
mov esi, dword [ebp - 0x2c]
test al, al
je 0x42c338
mov ecx, dword [ebp + 0xc]
push ebx
push esi
call fcn.00473490
cmp dword [ebp + 0x14], 0
je 0x42c377
mov edx, ebx
test edx, edx
je 0x42c377
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x18]
movzx eax, word [eax + 0x8524]
movsx ecx, byte [esi]
lea esi, [esi + 1]
xor ecx, eax
shr ax, 8
movzx ecx, cl
xor ax, word [edi + ecx*2 + 8]
movzx eax, ax
mov word [edi + 0x8524], ax
sub edx, 1
jne 0x42c351
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp - 0x14]
sub edi, ebx
mov esi, dword [ebp - 0x2c]
add eax, ebx
mov dword [ebp - 0x14], eax
mov dword [ebp + 0x10], edi
test edi, edi
jg 0x42c2e0
jmp 0x42c3b1
mov eax, dword [ebp - 0x18]
mov ecx, 0x58c304
mov eax, dword [eax + 4]
add eax, 0xb552
push eax
call fcn.0046d940
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
jmp 0x42c3b1
xor eax, eax
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x42c3d7
cmp byte [ebp - 0x1c], 0
je 0x42c3cb
push dword [ebp - 0x24]
push esi
call fcn.0049a3e0
push esi
call fcn.005097b2
mov eax, dword [ebp - 0x14]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00502f8e
mov esp, ebp
pop ebp
ret 0x10

Function at 0x433730
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov ebx, ecx
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x433748
pop esi
pop ebp
mov al, 1
pop ebx
ret 8
push edi
mov edi, dword [esp + 0x18]
mov eax, dword [edi + 0x1c]
add eax, 0xfffffff0
cmp esi, eax
jb 0x433759
mov esi, eax
mov edi, dword [edi + 4]
xor edx, edx
add edi, 0x10
test esi, esi
je 0x433784
movzx eax, byte [edi]
lea edi, [edi + 1]
mov ecx, edx
shl edx, 8
shr ecx, 8
xor ecx, eax
movzx eax, cl
xor edx, dword [ebx + eax*4 + 0x1a90]
sub esi, 1
jne 0x433765
pop edi
movzx eax, dx
cmp eax, dword [ebp + 0x10]
pop esi
pop ebp
sete al
pop ebx
ret 8
Function at 0x43d710
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
xor ecx, ecx
mov edx, 2
lea edi, [eax + 1]
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005030d4
add esp, 4
mov esi, eax
push edi
push esi
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [0x5835a0]
push esi
call fcn.004b5b40
push esi
call fcn.004d4a60
push esi
call fcn.005030dd
add esp, 4
pop edi
pop esi
ret 4

Function at 0x43d9d0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1004
call fcn.00502fa0
mov eax, dword [0x5513d4]
xor eax, esp
mov dword [esp + 0x1000], eax
mov eax, dword [esp + 0x1008]
push ebp
push 0x526a10
push eax
call fcn.00475430
mov ebp, eax
test ebp, ebp
jne 0x43da1c
lea eax, [ebp + 0x32]
pop ebp
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.00502f8e
add esp, 0x1004
ret 8
push esi
mov esi, dword [esp + 0x1014]
xor eax, eax
cmp esi, 0x8000
jbe 0x43db30
push ebx
push edi
push eax
mov eax, esi
shr eax, 3
add eax, 0x1000
push eax
push ebp
call fcn.0050d9a9
push ebp
push 0x1000
lea eax, [esp + 0x24]
push 1
push eax
call fcn.0050d63f
add esp, 0x1c
push eax
lea eax, [esp + 0x14]
push eax
call fcn.0043d770
mov ecx, esi
mov ebx, eax
shr ecx, 2
push 0
add ecx, 0x1000
push ecx
push ebp
call fcn.0050d9a9
push ebp
push 0x1000
lea eax, [esp + 0x24]
push 1
push eax
call fcn.0050d63f
add esp, 0x1c
push eax
lea eax, [esp + 0x14]
push eax
call fcn.0043d770
lea ecx, [esi + esi]
mov edi, eax
shr ecx, 2
push 0
add ecx, 0x1000
push ecx
push ebp
call fcn.0050d9a9
push ebp
push 0x1000
lea eax, [esp + 0x24]
push 1
push eax
call fcn.0050d63f
add esp, 0x1c
push eax
lea eax, [esp + 0x14]
push eax
call fcn.0043d770
mov esi, eax
mov eax, dword [esp + 0x101c]
push 0
lea ecx, [eax + eax*2]
shr ecx, 2
add ecx, 0x1000
push ecx
push ebp
call fcn.0050d9a9
push ebp
push 0x1000
lea eax, [esp + 0x24]
push 1
push eax
call fcn.0050d63f
add esp, 0x1c
push eax
lea eax, [esp + 0x14]
push eax
call fcn.0043d770
add eax, esi
add eax, edi
add eax, ebx
cdq
and edx, 3
push ebp
lea esi, [edx + eax]
sar esi, 2
call fcn.00509ce0
add esp, 4
mov eax, esi
pop edi
pop ebx
jmp 0x43db71
cmp esi, 0x1000
jbe 0x43db40
lea eax, [esi - 0x1000]
shr eax, 1
push 0
push eax
push ebp
call fcn.0050d9a9
push ebp
push 0x1000
lea eax, [esp + 0x1c]
push 1
push eax
call fcn.0050d63f
push ebp
mov esi, eax
call fcn.00509ce0
add esp, 0x20
lea eax, [esp + 8]
push esi
push eax
call fcn.0043d770
mov ecx, dword [esp + 0x1008]
pop esi
pop ebp
xor ecx, esp
call fcn.00502f8e
add esp, 0x1004
ret 8
Function at 0x440e90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51d086
mov eax, dword fs:[0]
push eax
mov eax, 0x61a0
call fcn.00502fa0
mov eax, dword [0x5513d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x441014
push esi
call fcn.00474360
test al, al
je 0x441014
push esi
call fcn.00474640
test al, al
jne 0x441014
mov esi, edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x440ef7
sub esi, ecx
push edi
sar esi, 1
call fcn.00485280
cmp word [eax], 0
je 0x441014
push 0x800
lea eax, [ebp - 0x1010]
push eax
push 0x524704
push edi
call fcn.00484d90
lea ecx, [ebp - 0x1070]
call fcn.0049cee0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x1070]
call fcn.0049cf80
push 2
push 0
push 2
lea eax, [ebp - 0x1070]
push eax
lea ecx, [ebp - 0x61ac]
call fcn.00498fe0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20b8]
call fcn.00404800
lea eax, [ebp - 0x20b8]
push eax
lea ecx, [ebp - 0x61ac]
call fcn.00499cb0
test eax, eax
jne 0x440fed
mov edi, edi
push esi
lea eax, [ebp - 0x20b8]
push edi
push eax
call fcn.00509bed
add esp, 0xc
test eax, eax
jne 0x440fed
push edi
call fcn.00474990
cmp byte [ebp - 0x10ac], 0
je 0x440fcb
test byte [ebp - 0x1078], 1
je 0x440fd7
lea eax, [ebp - 0x20b8]
push eax
call fcn.00473ce0
jmp 0x440fd7
lea eax, [ebp - 0x20b8]
push eax
call fcn.00473d60
lea eax, [ebp - 0x20b8]
push eax
lea ecx, [ebp - 0x61ac]
call fcn.00499cb0
test eax, eax
je 0x440f90
push edi
call fcn.00473ce0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x61ac]
call fcn.004990d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1070]
call fcn.00404c50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00502f8e
mov esp, ebp
pop ebp
ret 4

Function at 0x441040
Capabilities:
Get common file path

Disassembly:
cmp dword [esp + 8], 0x104
jb 0x441065
push dword [esp + 4]
push 0
push 0
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x441065
mov al, 1
ret 8
push ebx
push dword [esp + 0xc]
xor bl, bl
push str.unknown_folder
push dword [esp + 0x10]
call fcn.0049ce90
mov al, bl
pop ebx
ret 8
Function at 0x446fa0
Capabilities:
Get common file path

Disassembly:
cmp dword [0x558bac], 1
je fcn.004d68b0
push dword [esp + 8]
lea eax, [ecx + 0x1044]
push eax
push dword [esp + 0xc]
call fcn.0049ce90
ret 8

Function at 0x447bf0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x18
mov eax, dword [0x5513d4]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
push edi
lea eax, [esp + 8]
mov esi, ecx
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [esp + 8]
push eax
push dword [esi + 0x30]
call dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [esp + 8]
push eax
push 0
push 0x1012
push dword [esi + 0x30]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
movsx edi, ax
call dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
movsx esi, ax
call dword [sym.imp.USER32.dll_GetKeyState]
test byte [esp + 0x10], 1
cwde
jne 0x447c83
test edi, 0x8000
jne 0x447c83
test esi, 0x8000
jne 0x447c83
test eax, 0x8000
jne 0x447c83
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00502f8e
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00502f8e
add esp, 0x18
ret
Function at 0x44b8a0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2004
call fcn.00502fa0
mov eax, dword [0x5513d4]
xor eax, esp
mov dword [esp + 0x2000], eax
push esi
push 1
push str.RestoreFolder
push 0x5248b8
mov esi, ecx
call fcn.004ae540
push 0x800
push 0x52452c
test eax, eax
je 0x44b938
lea eax, [esp + 0xc]
push eax
push str.LastFolder
push 0x5248b8
call fcn.004ae6d0
cmp word [esp + 4], 0
je 0x44b9db
lea eax, [esp + 4]
push eax
call fcn.00474160
test al, al
je 0x44b9db
push 0x800
lea eax, [esp + 8]
push eax
lea eax, [esi + 0x1044]
push eax
call fcn.0049ce90
pop esi
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.00502f8e
add esp, 0x2004
ret
lea eax, [esp + 0x100c]
push eax
push str.StartFolder
push 0x5247ac
call fcn.004ae6d0
xor eax, eax
mov word [esp + 4], ax
lea eax, [esp + 4]
push 0x800
push eax
lea eax, [esp + 0x100c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x44b9db
cmp eax, 0x800
jae 0x44b9db
cmp word [esp + 4], 0
je 0x44b9db
mov ecx, 0x524968
lea eax, [esp + 4]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x44b9b6
test dx, dx
je 0x44b9b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x44b9b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x44b990
xor eax, eax
jmp 0x44b9bb
sbb eax, eax
or eax, 1
test eax, eax
je 0x44b9db
push 0x800
lea eax, [esp + 8]
add esi, 0x1044
push eax
push esi
call fcn.0049ce90
push esi
call fcn.0040cf00
mov ecx, dword [esp + 0x2004]
pop esi
xor ecx, esp
call fcn.00502f8e
add esp, 0x2004
ret
Function at 0x44db80
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
test esi, esi
je 0x44dc99
mov edi, esi
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x44db93
sub edi, ecx
sar edi, 1
je 0x44dc99
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x44dbb9
pop edi
pop esi
ret 4
push ebx
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea eax, [edi*2 + 2]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x44dbff
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x44dbff
lea ecx, [edi + 1]
push ecx
push eax
push esi
call fcn.004a0240
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
lea eax, [edi*2 + 2]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x44dc4a
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, eax
test ebp, ebp
je 0x44dc49
lea ecx, [edi + 1]
push ecx
push ebp
push esi
call fcn.004a0240
push ebp
push ebp
call dword [sym.imp.USER32.dll_CharToOemA]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 7
call dword [sym.imp.USER32.dll_SetClipboardData]
pop ebp
lea eax, [edi*2 + 2]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
pop ebx
test edi, edi
je 0x44dc93
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, eax
test ecx, ecx
je 0x44dc93
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x44dc73
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
mov eax, 1
pop esi
ret 4
Function at 0x44dfc0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x28
mov eax, dword [0x5513d4]
xor eax, esp
mov dword [esp + 0x24], eax
push ebp
mov ebp, dword [esp + 0x30]
push esi
push edi
push ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea esi, [eax + 1]
lea ecx, [esi + esi]
push ecx
call fcn.005097b7
mov edi, eax
add esp, 4
test edi, edi
je 0x44e1a1
push esi
push edi
xor eax, eax
push ebp
mov word [edi], ax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, edi
lea ecx, [esi + 2]
lea esp, [esp]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x44e010
push ebx
lea eax, [esp + 0x24]
sub esi, ecx
push eax
push ebp
sar esi, 1
call dword [sym.imp.USER32.dll_GetClientRect]
push ebp
call dword [sym.imp.USER32.dll_GetDC]
push 0
push 0
push 0x31
mov ebx, eax
push ebp
mov dword [esp + 0x20], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
push esi
push edi
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x2c]
jl 0x44e184
push edi
call fcn.00485280
mov edx, eax
cmp edx, edi
je 0x44e0b5
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44e080
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push edi
call fcn.005043a0
mov esi, edi
add esp, 0xc
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x44e0a6
sub esi, ecx
sar esi, 1
lea eax, [esp + 0x14]
mov ebx, esi
push eax
push esi
push edi
push dword [esp + 0x1c]
shr ebx, 1
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
lea esi, [edi + 4]
lea esi, [esi + ebx*2]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x44e0d5
mov ecx, dword [esp + 0x14]
sub eax, edx
sar eax, 1
cmp ecx, dword [esp + 0x2c]
jl 0x44e178
mov ebp, dword [esp + 0x10]
mov ecx, 0x2026
jmp 0x44e100
cmp ebx, 1
jb 0x44e174
cmp eax, 1
jb 0x44e174
lea eax, [eax*2 + 2]
mov word [esi - 6], cx
push eax
lea eax, [esi - 4]
push esi
push eax
call fcn.005043a0
mov ecx, edi
add esp, 0xc
lea edx, [ecx + 2]
jmp 0x44e130
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44e130
sub ecx, edx
lea eax, [esp + 0x14]
push eax
sar ecx, 1
dec ebx
push ecx
push edi
push ebp
sub esi, 2
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x44e156
mov ecx, dword [esp + 0x14]
sub eax, edx
sar eax, 1
cmp ecx, dword [esp + 0x2c]
mov ecx, 0x2026
jge 0x44e100
mov ebp, dword [esp + 0x1c]
push edi
push ebp
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ebx, dword [esp + 0x10]
push dword [esp + 0x20]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
push ebp
call dword [sym.imp.USER32.dll_ReleaseDC]
push edi
call fcn.005097b2
add esp, 4
pop ebx
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00502f8e
add esp, 0x28
ret 4