joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43aed0
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x20]
and esi, 0x1f
push edi
mov edi, dword [esp + 0x18]
cmp esi, 8
jb 0x43afed
mov eax, esi
shr eax, 3
cmp dword [esp + 0x28], 1
jne 0x43af70
mov dword [esp + 0x10], eax
push 0xc2b2ae3d
push 0x27d4eb4f
push dword [ebx + 4]
push dword [ebx]
call fcn.00530430
mov ecx, eax
add ebx, 8
push 0x9e3779b1
shld ecx, edx, 0x1f
shld edx, eax, 0x1f
push 0x85ebca87
push edx
push ecx
call fcn.00530430
mov ecx, eax
xor edx, ebp
xor ecx, edi
mov eax, ecx
push 0x9e3779b1
shld eax, edx, 0x1b
shld edx, ecx, 0x1b
push 0x85ebca87
push edx
push eax
call fcn.00530430
mov edi, eax
mov ebp, edx
add edi, 0xc2b2ae63
adc ebp, 0x85ebca77
sub esi, 8
sub dword [esp + 0x10], 1
jne 0x43af01
jmp 0x43afed
mov dword [esp + 0x10], eax
jmp 0x43af80
push 0xc2b2ae3d
push 0x27d4eb4f
push dword [ebx + 4]
push dword [ebx]
call fcn.00530430
mov ecx, eax
add ebx, 8
push 0x9e3779b1
shld ecx, edx, 0x1f
shld edx, eax, 0x1f
push 0x85ebca87
push edx
push ecx
call fcn.00530430
mov ecx, eax
xor edx, ebp
xor ecx, edi
mov eax, ecx
push 0x9e3779b1
shld eax, edx, 0x1b
shld edx, ecx, 0x1b
push 0x85ebca87
push edx
push eax
call fcn.00530430
mov edi, eax
mov ebp, edx
add edi, 0xc2b2ae63
adc ebp, 0x85ebca77
sub esi, 8
sub dword [esp + 0x10], 1
jne 0x43af80
mov dword [esp + 0x10], edi
mov ecx, ebx
cmp esi, 4
jb 0x43b041
mov eax, 0x9e3779b1
add ebx, 4
mul dword [ecx]
push 0xc2b2ae3d
mov edi, eax
mov eax, 0x85ebca87
mul dword [ecx]
push 0x27d4eb4f
xor eax, dword [esp + 0x18]
add edi, edx
xor edi, ebp
mov ecx, eax
shld ecx, edi, 0x17
shld edi, eax, 0x17
push edi
push ecx
call fcn.00530430
mov edi, eax
mov ebp, edx
add edi, 0x9e3779f9
adc ebp, 0x165667b1
sub esi, 4
test esi, esi
je 0x43b087
movzx eax, byte [ebx]
push 0x27d4eb2f
cdq
push 0x165667c5
push edx
push eax
call fcn.00530430
mov ecx, eax
lea ebx, [ebx + 1]
xor ecx, edi
xor edx, ebp
mov eax, ecx
push 0x9e3779b1
shld eax, edx, 0xb
shld edx, ecx, 0xb
push 0x85ebca87
push edx
push eax
call fcn.00530430
mov edi, eax
mov ebp, edx
sub esi, 1
jne 0x43b045
push 0xc2b2ae3d
xor ecx, ecx
mov esi, ebp
push 0x27d4eb4f
xor ecx, ebp
shr esi, 1
push ecx
xor esi, edi
push esi
call fcn.00530430
mov esi, eax
mov ecx, edx
shrd esi, ecx, 0x1d
push 0x165667b1
shr ecx, 0x1d
xor esi, eax
push 0x9e3779f9
xor ecx, edx
push ecx
push esi
call fcn.00530430
mov ecx, edx
xor esi, esi
pop edi
xor eax, ecx
xor edx, esi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x14
Function at 0x43dd10
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
xor edx, edx
add dword [ecx + 0x5710], eax
mov eax, dword [ecx + 0x3678]
adc edx, dword [ecx + 0x5714]
push ebx
mov ebx, dword [ecx + 0x366c]
push ebp
mov ebp, dword [ecx + 0x3668]
push esi
mov esi, dword [eax + 0x14]
push edi
lea edi, [ecx + 0x3678]
mov dword [esp + 0x10], ecx
mov dword [ecx + 0x5714], edx
mov ecx, esi
call dword [0x55770c]
mov ecx, edi
call esi
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push edx
push eax
push dword [ebx + 0x571c]
push dword [ebx + 0x5718]
push dword [ebx + 0x5714]
push dword [ebx + 0x5710]
call fcn.004c1280
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
push ebp
push edi
push dword [ebx + 4]
call fcn.00422740
mov eax, dword [ebx + 0x5708]
mov esi, ebp
test ebp, ebp
je 0x43ddbd
jmp 0x43dda0
movzx edx, byte [edi]
lea edi, [edi + 1]
movzx ecx, al
xor edx, ecx
shr eax, 8
movzx ecx, word [ebx + edx*2 + 0x3438]
xor eax, ecx
sub esi, 1
jne 0x43dda0
mov dword [ebx + 0x5708], eax
mov eax, dword [ebx + 4]
cmp byte [eax + 0x7309], 0
jne 0x43ddfc
mov eax, dword [ebx + 0x46c8]
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x55770c]
lea ecx, [ebx + 0x46c8]
call esi
test al, al
je 0x43ddfc
push ebp
push dword [esp + 0x1c]
lea ecx, [ebx + 0x46c8]
call fcn.00490400
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8

Function at 0x443ca0
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 0x443cb8
pop esi
pop ebp
mov al, 1
pop ebx
ret 8
push edi
mov edi, dword [esp + 0x18]
mov eax, dword [edi + 0x18]
add eax, 0xfffffff0
cmp esi, eax
jb 0x443cc9
mov esi, eax
mov edi, dword [edi + 4]
xor edx, edx
add edi, 0x10
test esi, esi
je 0x443cf4
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 + 0x1ab0]
sub esi, 1
jne 0x443cd5
pop edi
movzx eax, dx
cmp eax, dword [ebp + 0x10]
pop esi
pop ebp
sete al
pop ebx
ret 8
Function at 0x450a30
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x54e9cd
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x58cb30]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x218]
lea ecx, [ebp]
mov esi, dword [ebp + 0x214]
xor edi, edi
mov eax, ecx
mov dword [ebp - 0x14], edi
mov edx, 0x104
sub esi, eax
mov dword [ebx], 0
lea esp, [esp]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x450ab7
movzx eax, word [esi + ecx]
test ax, ax
je 0x450ab0
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x450a90
jmp 0x450ab4
test edx, edx
jne 0x450ab7
sub ecx, 2
xor eax, eax
push 0x55b6b8
mov word [ecx], ax
lea eax, [ebp]
push 0x104
push eax
call fcn.004507e0
lea eax, [ebp]
push eax
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x450b91
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x450b26
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x450bef
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x450c1f
jmp 0x450bef
mov eax, dword [ebp + 0x210]
push 0x55b688
push 0xc9
push eax
call fcn.0044f9f0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x450b5b
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x450c35
xor edi, edi
test esi, esi
jns 0x450bef
mov eax, dword [ebp + 0x210]
push esi
push 0x55b688
push 0x62
push eax
call fcn.0044fa40
mov eax, dword [ebp + 0x210]
push esi
push 0x55b688
push 0x6b
push eax
call fcn.0044fa40
mov eax, esi
jmp 0x450bfa
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push ecx
push eax
call fcn.0044ecd0
mov esi, eax
test esi, esi
jns 0x450bda
mov eax, dword [ebp + 0x210]
push esi
push 0x55b688
push 0xcf
push eax
call fcn.0044fa40
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x450b65
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x450c4b
jmp 0x450b65
mov eax, dword [ebp - 0x14]
cdq
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0044da30
lea eax, [edi*4]
mov dword [ebx], eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00530218
lea esp, [ebp + 0x20c]
pop ebp
ret 8
mov eax, dword [ebp + 0x210]
push str.D:ProjectsWinRARpackagesMicrosoft.Windows.ImplementationLibrary.1.0.220201.1includewil_resource.h
push 0x937
push eax
call fcn.00450e00
mov eax, dword [ebp + 0x210]
push str.D:ProjectsWinRARpackagesMicrosoft.Windows.ImplementationLibrary.1.0.220201.1includewil_resource.h
push 0x937
push eax
call fcn.00450e00
mov eax, dword [ebp + 0x210]
push str.D:ProjectsWinRARpackagesMicrosoft.Windows.ImplementationLibrary.1.0.220201.1includewil_resource.h
push 0x937
push eax
call fcn.00450e00
int3
Function at 0x4533d0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1004
call fcn.00530230
mov eax, dword [0x58cb30]
xor eax, esp
mov dword [esp + 0x1000], eax
mov eax, dword [esp + 0x1008]
push ebp
push 0x55ba0c
push eax
call fcn.004928f0
mov ebp, eax
test ebp, ebp
jne 0x45341c
lea eax, [ebp + 0x32]
pop ebp
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.00530218
add esp, 0x1004
ret 8
push esi
mov esi, dword [esp + 0x1014]
xor eax, eax
cmp esi, 0x8000
jbe 0x453530
push ebx
push edi
push eax
mov eax, esi
shr eax, 3
add eax, 0x1000
push eax
push ebp
call fcn.0053ccab
push ebp
push 0x1000
lea eax, [esp + 0x24]
push 1
push eax
call fcn.0053c895
add esp, 0x1c
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00453170
mov ecx, esi
mov ebx, eax
shr ecx, 2
push 0
add ecx, 0x1000
push ecx
push ebp
call fcn.0053ccab
push ebp
push 0x1000
lea eax, [esp + 0x24]
push 1
push eax
call fcn.0053c895
add esp, 0x1c
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00453170
lea ecx, [esi + esi]
mov edi, eax
shr ecx, 2
push 0
add ecx, 0x1000
push ecx
push ebp
call fcn.0053ccab
push ebp
push 0x1000
lea eax, [esp + 0x24]
push 1
push eax
call fcn.0053c895
add esp, 0x1c
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00453170
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.0053ccab
push ebp
push 0x1000
lea eax, [esp + 0x24]
push 1
push eax
call fcn.0053c895
add esp, 0x1c
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00453170
add eax, esi
add eax, edi
add eax, ebx
cdq
and edx, 3
push ebp
lea esi, [edx + eax]
sar esi, 2
call fcn.005391cd
add esp, 4
mov eax, esi
pop edi
pop ebx
jmp 0x453571
cmp esi, 0x1000
jbe 0x453540
lea eax, [esi - 0x1000]
shr eax, 1
push 0
push eax
push ebp
call fcn.0053ccab
push ebp
push 0x1000
lea eax, [esp + 0x1c]
push 1
push eax
call fcn.0053c895
push ebp
mov esi, eax
call fcn.005391cd
add esp, 0x20
lea eax, [esp + 8]
push esi
push eax
call fcn.00453170
mov ecx, dword [esp + 0x1008]
pop esi
pop ebp
xor ecx, esp
call fcn.00530218
add esp, 0x1004
ret 8
Function at 0x4573b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54ed56
mov eax, dword fs:[0]
push eax
mov eax, 0x6194
call fcn.00530230
mov eax, dword [0x58cb30]
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 0x45757b
push esi
call fcn.00491560
test al, al
je 0x45757b
push esi
call fcn.00491830
test al, al
jne 0x45757b
mov esi, edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x457417
sub esi, ecx
push edi
sar esi, 1
call fcn.004a3770
cmp word [eax], 0
je 0x45757b
push 0x800
lea eax, [ebp - 0x1010]
push eax
push 0x5588cc
push edi
call fcn.004a2fb0
lea ecx, [ebp - 0x106c]
call fcn.004bdb30
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x106c]
call fcn.004bdbd0
push 2
push 1
push 2
lea eax, [ebp - 0x106c]
push eax
lea ecx, [ebp - 0x61a0]
call fcn.004b9840
mov byte [ebp - 4], 1
lea eax, [ebp - 0x20b4]
push eax
lea ecx, [ebp - 0x61a0]
mov dword [ebp - 0x10a4], 0
mov dword [ebp - 0x10a0], 0
mov dword [ebp - 0x109c], 0
mov dword [ebp - 0x1098], 0
mov dword [ebp - 0x1094], 0
mov dword [ebp - 0x1090], 0
call fcn.004ba530
test eax, eax
jne 0x45754c
nop
push esi
lea eax, [ebp - 0x20b4]
push edi
push eax
call fcn.0053968d
add esp, 0xc
test eax, eax
jne 0x45754c
lea eax, [ebp - 0x20b4]
push eax
call fcn.00491e60
cmp byte [ebp - 0x10a8], 0
je 0x45752a
cmp byte [ebp - 0x10a7], 0
jne 0x45751c
test byte [ebp - 0x1074], 1
je 0x457536
lea eax, [ebp - 0x20b4]
push eax
call fcn.00490d30
jmp 0x457536
lea eax, [ebp - 0x20b4]
push eax
call fcn.00490db0
lea eax, [ebp - 0x20b4]
push eax
lea ecx, [ebp - 0x61a0]
call fcn.004ba530
test eax, eax
je 0x4574e0
push edi
call fcn.00490d30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x61a0]
call fcn.004b9930
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x106c]
test eax, eax
je 0x45757b
push eax
call fcn.0053867f
add esp, 4
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.00530218
mov esp, ebp
pop ebp
ret 4

Function at 0x4575a0
Capabilities:
Get common file path

Disassembly:
cmp dword [esp + 8], 0x104
jb 0x4575c5
push dword [esp + 4]
push 0
push 0
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4575c5
mov al, 1
ret 8
push ebx
push dword [esp + 0xc]
xor bl, bl
push str.unknown_folder
push dword [esp + 0x10]
call fcn.004bdae0
mov al, bl
pop ebx
ret 8
Function at 0x4592f0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
movzx eax, byte [esi]
push eax
push 0x65
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 1]
push eax
push 0x66
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 2]
push eax
push 0x67
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 3]
push eax
push 0x68
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 4]
push eax
push 0x73
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 5]
push eax
push 0x69
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 6]
push eax
push 0x6a
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 7]
push eax
push 0x6b
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 8]
push eax
push 0x6c
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 9]
push eax
push 0x6d
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 0xa]
push eax
push 0x6e
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 0xb]
push eax
push 0x6f
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 0xc]
push eax
push 0x70
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 0xd]
push eax
push 0x72
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 0xe]
push eax
push 0x71
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 0xf]
push eax
push 0x74
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 0x10]
push eax
push 0x75
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 0x11]
push eax
push 0x76
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 0x14]
push eax
push 0x78
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 0x15]
push eax
push 0x79
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 0x16]
push eax
push 0x7a
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 0x17]
push eax
push 0x7b
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 0x18]
push eax
push 0x7c
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 0x19]
push eax
push 0x7d
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 0x1a]
push eax
push 0x7e
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
movzx eax, byte [esi + 0x17]
push eax
push 0x7c
push edi
call fcn.00413250
movzx eax, byte [esi + 0x17]
push eax
push 0x7d
push edi
call fcn.00413250
cmp byte [esi + 0x17], 0
je 0x459490
call fcn.00495bc0
test al, al
je 0x459490
mov al, 1
push eax
push 0x7e
push edi
call fcn.00413250
pop edi
pop esi
ret 8
xor al, al
push eax
push 0x7e
push edi
call fcn.00413250
pop edi
pop esi
ret 8
Function at 0x45d220
Capabilities:
Get common file path

Disassembly:
cmp dword [0x5943f8], 1
je fcn.004fe630
push dword [esp + 8]
lea eax, [ecx + 0x103c]
push eax
push dword [esp + 0xc]
call fcn.004bdae0
ret 8

Function at 0x45de60
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x1c
mov eax, dword [0x58cb30]
xor eax, esp
mov dword [esp + 0x18], 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 + 0x28]
call dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [esp + 8]
push eax
push 0
push 0x1012
push dword [esi + 0x28]
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 0x45def3
test edi, 0x8000
jne 0x45def3
test esi, 0x8000
jne 0x45def3
test eax, 0x8000
jne 0x45def3
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00530218
add esp, 0x1c
ret
mov ecx, dword [esp + 0x20]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00530218
add esp, 0x1c
ret
Function at 0x45dfb0
Capabilities:
Get file system object information

Disassembly:
mov eax, 0x3330
call fcn.00530230
mov eax, dword [0x58cb30]
xor eax, esp
mov dword [esp + 0x332c], eax
push esi
push edi
mov edi, ecx
mov esi, 1
push 0x800
push 0x3d4
call fcn.004b7300
push eax
lea eax, [esp + 0x33c]
push eax
call fcn.004bdae0
cmp esi, 1
jbe 0x45e02d
lea eax, [esp + 0x334]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45e000
sub eax, edx
lea ecx, [esp + 0x334]
sar eax, 1
push esi
push str.___u_
push 0x800
lea eax, [ecx + eax*2]
push eax
call fcn.00404ce0
add esp, 0x10
cmp esi, 0x3e8
ja 0x45e0ba
lea eax, [esp + 0x1334]
mov dword [esp + 0x44], 1
mov dword [esp + 0x58], eax
lea eax, [esp + 0x44]
push eax
push 0
push 0x104b
push dword [edi + 0x28]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x6c], 0x800
mov dword [esp + 0x58], 0
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x45e0ba
lea ecx, [ecx]
lea eax, [esp + 0x334]
push eax
lea eax, [esp + 0x1338]
push eax
call fcn.004c1ba0
test eax, eax
je 0x45e1c8
inc dword [esp + 0x48]
lea eax, [esp + 0x44]
push eax
push 0
push 0x104b
push dword [edi + 0x28]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x45e080
push 0
push 0
push 0x1004
push dword [edi + 0x28]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
mov esi, eax
lea eax, [esp + 0x2338]
push 0x800
push eax
call fcn.004fd1a0
push 0x4001
push 0x2b4
lea eax, [esp + 0x88]
push eax
push 0
lea eax, [esp + 0x2344]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [esp + 0x84]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x334]
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
push eax
push 0
push 0x104d
push dword [edi + 0x28]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 0
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [edi + 0x28]
call dword [sym.imp.USER32.dll_SetFocus]
push 0
push esi
push 0x1076
push dword [edi + 0x28]
mov byte [edi + 0x39], 1
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x3334]
pop edi
pop esi
xor ecx, esp
call fcn.00530218
add esp, 0x3330
ret
inc esi
jmp 0x45dfd1
Function at 0x461a20
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2004
call fcn.00530230
mov eax, dword [0x58cb30]
xor eax, esp
mov dword [esp + 0x2000], eax
push esi
push 1
push str.RestoreFolder
push 0x558ad0
mov esi, ecx
call fcn.004cffa0
push 0x800
push 0x558718
test eax, eax
je 0x461ab8
lea eax, [esp + 0xc]
push eax
push str.LastFolder
push 0x558ad0
call fcn.004d0210
cmp word [esp + 4], 0
je 0x461b5b
lea eax, [esp + 4]
push eax
call fcn.00491350
test al, al
je 0x461b5b
push 0x800
lea eax, [esp + 8]
push eax
lea eax, [esi + 0x103c]
push eax
call fcn.004bdae0
pop esi
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.00530218
add esp, 0x2004
ret
lea eax, [esp + 0x100c]
push eax
push str.StartFolder
push 0x5589a8
call fcn.004d0210
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 0x461b5b
cmp eax, 0x800
jae 0x461b5b
cmp word [esp + 4], 0
je 0x461b5b
mov ecx, 0x558b90
lea eax, [esp + 4]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x461b36
test dx, dx
je 0x461b32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x461b36
add eax, 4
add ecx, 4
test dx, dx
jne 0x461b10
xor eax, eax
jmp 0x461b3b
sbb eax, eax
or eax, 1
test eax, eax
je 0x461b5b
push 0x800
lea eax, [esp + 8]
add esi, 0x103c
push eax
push esi
call fcn.004bdae0
push esi
call fcn.0040fb80
mov ecx, dword [esp + 0x2004]
pop esi
xor ecx, esp
call fcn.00530218
add esp, 0x2004
ret
Function at 0x4638a0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
test esi, esi
je 0x4639b9
mov edi, esi
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x4638b3
sub edi, ecx
sar edi, 1
je 0x4639b9
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x4638d9
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 0x46391f
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x46391f
lea ecx, [edi + 1]
push ecx
push eax
push esi
call fcn.004c1790
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 0x46396a
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, eax
test ebp, ebp
je 0x463969
lea ecx, [edi + 1]
push ecx
push ebp
push esi
call fcn.004c1790
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 0x4639b3
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, eax
test ecx, ecx
je 0x4639b3
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x463993
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 0x464ef0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
mov ebx, ecx
call fcn.00495f30
cmp eax, 0x600
jb 0x464f1d
mov ecx, dword [ebx]
movzx eax, byte [esp + 0xc]
push eax
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 0x10]
mov ecx, esi
call dword [0x55770c]
call esi
pop esi
pop ebx
ret 4
mov ecx, dword [ebx + 8]
mov al, byte [esp + 0xc]
mov byte [ecx + 0x18], al
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x464f99
push edi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
xor ecx, ecx
mov edx, 2
lea esi, [eax + 1]
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00530413
add esp, 4
mov edi, eax
push esi
push edi
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
push 0
push 0xb1
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
push 8
push 0x102
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push edi
call fcn.0053041c
add esp, 4
pop edi
pop esi
pop ebx
ret 4