joyce8/EMBER2024-capa huggingface dataset:
Function at 0x466690
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x466722
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x466714
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x46670c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x4666d5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x46b7c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x499a48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov al, byte [esp + 0x28]
push ebx
xor ebx, ebx
push esi
push ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], ebx
mov byte [esp + 0x10], al
call fcn.0046b1a0
mov eax, dword [esp + 0x30]
mov dword [esp + 0x24], ebx
mov ecx, dword [eax + 4]
cmp ecx, ebx
jne 0x46b805
xor eax, eax
jmp 0x46b80a
mov eax, dword [eax + 8]
add eax, ecx
mov edx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x3c]
push edx
push eax
push ecx
lea eax, [esp + 0x20]
lea ecx, [esp + 0x44]
push eax
push ecx
call fcn.0046bdf0
mov esi, dword [esp + 0x48]
mov dl, byte [esp + 0x28]
add esp, 0x1c
lea ecx, [esp + 0xc]
mov byte [esi], dl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov eax, dword [0x49bb80]
push eax
push ebx
push ecx
mov ecx, esi
call fcn.0046af20
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x46b888
mov al, byte [ecx - 1]
cmp al, bl
je 0x46b87e
cmp al, 0xff
je 0x46b87e
dec al
mov byte [ecx - 1], al
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
dec ecx
push ecx
call fcn.00492826
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x471250
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x499be8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [esp + 0x40]
push ebx
push esi
lea ecx, [esp + 8]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.00471570
mov esi, eax
lea edx, [esp + 0x48]
xor ebx, ebx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], 0x4c732c
call fcn.00475d2c
mov ecx, dword [0x49bb80]
mov al, byte [esi]
push ecx
push ebx
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 1
mov byte [esp + 0x30], al
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.0046af20
mov esi, 0x49bbe8
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0xc]
mov byte [esp + 0x3c], 3
cmp eax, ebx
je 0x4712f7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4712ee
cmp al, 0xff
je 0x4712ee
dec al
mov byte [ecx], al
jmp 0x4712f7
push ecx
call fcn.00492826
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.0048ffd0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], 0xffffffff
cmp eax, ebx
mov dword [esp + 0x18], esi
je 0x47133d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x471334
cmp al, 0xff
je 0x471334
dec al
mov byte [ecx], al
jmp 0x47133d
push ecx
call fcn.00492826
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.00475db3
mov ecx, dword [esp + 0x34]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x48a420
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x49a6e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.0047f25e
mov eax, dword [0x49da14]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.0047f190
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.0048af30
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x48a4c7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x48a4be
cmp al, 0xff
je 0x48a4be
dec al
mov byte [ecx], al
jmp 0x48a4c7
push ecx
call fcn.00492826
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x48a4f8
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x48a4ef
cmp al, 0xff
je 0x48a4ef
dec al
mov byte [ecx], al
jmp 0x48a4f8
push ecx
call fcn.00492826
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x4951c8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x49520a
call fcn.00498522
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49520a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x495201
xor eax, eax
jmp 0x495212
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00495218
pop edi
pop esi
pop ebx
ret 4

Function at 0x4961a9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x49a078
call fcn.00475ec0
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.00498522
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x4961e8
call fcn.00498522
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4961f6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x496204
or eax, 0xffffffff
jmp 0x4962ec
mov ecx, esi
call fcn.0049611f
mov dword [ebp - 0x14], eax
call fcn.00493812
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x49623b
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x49623b
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.004937c6
push dword [ebp - 0x14]
call fcn.004932f8
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00495eb7
cmp eax, edi
je 0x4962ae
test byte [esi + 0x24], 0x10
je 0x49627c
push 4
mov ecx, esi
pop ebx
call fcn.00492cf8
test ah, 1
je 0x496274
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0049531a
cmp dword [esi + 0x1c], edi
je 0x4962ae
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00492d2c
jmp 0x4962ae
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x4962c2
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4962db
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x4962db
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00496159
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x498094
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4980c2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4980e0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00497ffa
jmp 0x4980e0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4980e0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00497ffa
test edi, edi
mov eax, edi
jne 0x4980ca
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x12fa33c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x12fa346
pushal
call 0x12fa34c
pop ebp
sub ebp, 0x10
sub ebp, 0xefa33c
jmp 0x12fa362
mov eax, 0xefa33c
add eax, ebp
add eax, 0x4c
mov ecx, 0x5b9
mov edx, 0x483291cc
xor byte [eax], dl
inc eax
dec ecx
jne 0x12fa379
jmp 0x12fa38c
inc edi
add dword [edi + 0x45], eax
invalid
Function at 0x40fe80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40fef5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, 0x104
call sub.rtl60.bpl__System__LStrSetLength_qqrv
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call sub.rtl60.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call sub.rtl60.bpl__System__LStrLen_qqrx17System_AnsiString
push eax
call sub.kernel32.dll_GetTempPathA
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call sub.rtl60.bpl__System__LStrSetLength_qqrv
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040fd80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fefc
lea eax, [ebp - 0xc]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret

Function at 0x4179c4
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor edx, edx
mov dword [ebp - 4], edx
xor edx, edx
push ebp
push 0x417a5b
push dword fs:[edx]
mov dword fs:[edx], esp
mov ecx, eax
mov dl, 1
mov eax, dword [sym.imp.adortl60.bpl__Adodb_TADOQuery_]
call sub.adortl60.bpl__Adodb_TADOQuery__bctr_qqrp18Classes_TComponent
mov ebx, eax
call sub.VEDatasets.bpl__Vedataset_Connection_qqrv
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x268]
lea eax, [ebp - 4]
push eax
call sub.VEDatasets.bpl__Vedataset_FirmaNo_qqrv
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0
call sub.VEDatasets.bpl__Vedataset_DonemNo_qqrv
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0x14]
mov ecx, 1
mov eax, 0x417a74
call sub.rtl60.bpl__Sysutils_Format_qqrx17System_AnsiStringpx14System_TVarRecxi
mov eax, dword [ebp - 4]
push eax
mov eax, ebx
call sub.adortl60.bpl__Adodb_TADOQuery_GetSQL_qqrv
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, ebx
call sub.dbrtl60.bpl__Db_TDataSet_Open_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417a62
lea eax, [ebp - 4]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret

Function at 0x425c74
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x425cd9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call sub.rtl60.bpl__Sysutils_FileExists_qqrx17System_AnsiString
test al, al
je 0x425cc3
push 3
push 0x425ce4
push 0x425ce4
mov eax, dword [ebp - 8]
call sub.rtl60.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
push 0x425ce8
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x425ce0
lea eax, [ebp - 8]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret
Function at 0x42add4
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
mov eax, 0x42ae60
mov dword [ebp - 0x30], eax
mov eax, 0x42ae80
mov dword [ebp - 0x2c], eax
mov eax, 0x42aea0
mov dword [ebp - 0x28], eax
mov eax, 0x42aec0
mov dword [ebp - 0x24], eax
mov eax, 0x42aee4
mov dword [ebp - 0x20], eax
mov eax, 0x42af04
mov dword [ebp - 0x1c], eax
mov eax, 0x42af28
mov dword [ebp - 0x18], eax
mov eax, 0x42af48
mov dword [ebp - 0x14], eax
mov eax, 0x42af68
mov dword [ebp - 0x10], eax
mov eax, 0x42af88
mov dword [ebp - 0xc], eax
mov eax, 0x42afa8
mov dword [ebp - 8], eax
lea eax, [ebp - 0x30]
mov edx, 0xa
call fcn.0041e044
mov edx, 0x42afc8
mov eax, 0x42c368
call fcn.0041e404
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x42c37c
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
mov eax, 0x42c3f8
mov dword [ebp - 0x28], eax
mov eax, 0x42c414
mov dword [ebp - 0x24], eax
mov eax, 0x42c434
mov dword [ebp - 0x20], eax
mov eax, 0x42c454
mov dword [ebp - 0x1c], eax
mov eax, 0x42c474
mov dword [ebp - 0x18], eax
mov eax, 0x42c490
mov dword [ebp - 0x14], eax
mov eax, 0x42c4b0
mov dword [ebp - 0x10], eax
mov eax, 0x42c4d0
mov dword [ebp - 0xc], eax
mov eax, 0x42c4f4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x28]
mov edx, 8
call fcn.0041e044
mov edx, 0x42c514
mov eax, 0x42d9e4
call fcn.0041e404
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x406da0
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2e0
mov eax, dword [0x4ea93c]
xor eax, esp
mov dword [esp + 0x2dc], eax
push ebx
push ebp
mov ebp, dword [esp + 0x2fc]
push esi
push edi
mov edi, dword [esp + 0x2f4]
mov ebx, ecx
push 0x1008
mov dword [esp + 0x38], ebx
call fcn.004c0acd
mov ecx, dword [esp + 0x300]
mov esi, eax
mov eax, dword [esp + 0x2fc]
add esp, 4
push edi
mov dword [esi], eax
mov dword [esi + 4], ecx
call fcn.0047def0
lea edx, [esi + 8]
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x406df7
cmp dword [ebx + 4], 0x50000
jb 0x406e27
call fcn.0044a940
cmp eax, 0x400
je 0x406e27
cmp byte [esp + 0x310], 0
jne 0x406e72
mov ebx, dword [esp + 0x300]
cmp ebx, 0xffffffff
je 0x406e37
test ebp, ebp
jne 0x406e79
cmp dword [esp + 0x2f8], 2
mov eax, 0x4201
jne 0x406e4b
mov eax, 0x4203
push eax
push 0x2b4
lea edx, [esp + 0x40]
push edx
push 0
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
cmp ebx, 0xffffffff
jne 0x406e68
mov ebx, dword [esp + 0x3c]
test ebp, ebp
jne 0x406e79
lea ebp, [esp + 0x44]
jmp 0x406e79
mov ebx, dword [esp + 0x300]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], 0x37
mov dword [esp + 0x18], ebp
test ebp, ebp
jne 0x406eb7
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x30c]
mov ecx, dword [esp + 0x308]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
push 0
mov dword [esp + 0x34], ecx
mov ecx, dword [eax]
push 0x40b
push ecx
mov dword [esp + 0x40], esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x2ec]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004bfc52
add esp, 0x2e0
ret 0x20
Function at 0x407a10
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x2d4
mov eax, dword [0x4ea93c]
xor eax, esp
mov dword [esp + 0x2d0], eax
push edi
mov edi, ecx
mov eax, dword [edi]
test eax, eax
je 0x407b39
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x14b
push eax
call esi
lea eax, [esp + 0xc]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x407aaf
mov edx, dword [esp + 0xc]
push 0x4209
push 0x2b4
lea ecx, [esp + 0x18]
push ecx
push eax
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push eax
mov eax, dword [edi]
push 0
push 0x402
push eax
call esi
mov eax, dword [0x571c7c]
mov edx, dword [esp + 0xc]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov edx, dword [esp + 0x14]
push 0
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x28]
push ecx
push edx
push 0
mov eax, ecx
push 1
push eax
mov ecx, edi
call fcn.00406da0
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jne 0x407ad8
mov edx, dword [esp + 8]
push eax
push eax
push edx
mov ecx, edi
call fcn.00407250
test al, al
jne 0x407b31
push ebx
push ebp
call fcn.0049d470
mov ebp, eax
xor esi, esi
mov ebx, 1
test ebp, ebx
je 0x407b27
lea eax, [esi + 0x41]
push eax
lea ecx, [esp + 0x2d0]
push 0x4d68dc
push ecx
mov edx, 0xa
call fcn.0043a6e0
add esp, 0xc
push 1
push 0xffffffffffffffff
push 2
push 0
push 0xffffffffffffffff
push 0
push 0
lea edx, [esp + 0x2e8]
push edx
mov ecx, edi
call fcn.00406da0
inc esi
rol ebx, 1
cmp esi, 0x20
jl 0x407ae8
pop ebp
pop ebx
mov ecx, edi
call fcn.00407760
pop esi
mov ecx, dword [esp + 0x2d4]
pop edi
xor ecx, esp
call fcn.004bfc52
add esp, 0x2d4
ret
Function at 0x407b50
Capabilities:
Check if file exists
Get file attributes
Get graphical window text

Disassembly:
mov eax, 0x1004
call fcn.004bfc70
mov eax, dword [0x4ea93c]
xor eax, esp
mov dword [esp + 0x1000], eax
push esi
push edi
push 0x800
mov esi, ecx
mov ecx, dword [esi]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea edx, [esp + 8]
push edx
call fcn.00452720
mov ecx, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 8]
push eax
push 0xffffffffffffffff
push 0x158
push ecx
call edi
cmp eax, 0xffffffff
je 0x407bfc
mov edx, dword [esi]
push 0
push eax
push 0x14e
push edx
call edi
mov ecx, esi
call fcn.004078e0
cmp byte [0x5323f1], 0
mov ecx, esi
je 0x407be0
call fcn.004075a0
pop edi
pop esi
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.004bfc52
add esp, 0x1004
ret
call fcn.004071b0
pop edi
pop esi
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.004bfc52
add esp, 0x1004
ret
cmp byte [0x5323f1], 0
je 0x407c13
lea eax, [esp + 8]
push eax
call fcn.004601f0
test al, al
je 0x407c4d
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407c4d
test al, 0x10
jne 0x407c4d
lea eax, [esp + 8]
push eax
mov ecx, 0x53ed88
call fcn.00450300
pop edi
pop esi
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.004bfc52
add esp, 0x1004
ret
lea ecx, [esp + 8]
push ecx
mov ecx, 0x53ed88
call fcn.004503d0
mov ecx, dword [esp + 0x1008]
pop edi
pop esi
xor ecx, esp
call fcn.004bfc52
add esp, 0x1004
ret
Function at 0x407c80
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2bc
mov eax, dword [0x4ea93c]
xor eax, esp
mov dword [esp + 0x2b8], eax
mov ecx, dword [esp + 0x2c4]
mov eax, dword [esp + 0x2c0]
push edi
mov edi, dword [esp + 0x2d0]
cmp ecx, 0x4e
jne 0x407d94
mov eax, dword [edi + 8]
cmp eax, 0xfffffcd9
je 0x407cf1
cmp eax, 0xfffffcda
jne 0x407cd7
cmp dword [edi + 0x21c], 2
jne 0x407cd7
mov ecx, 0x53ed78
call fcn.00407b50
xor eax, eax
pop edi
mov ecx, dword [esp + 0x2b8]
xor ecx, esp
call fcn.004bfc52
add esp, 0x2bc
ret 0x10
mov ecx, dword [edi + 0x2c]
mov eax, dword [ecx]
mov edx, dword [edi + 0xc]
push ebx
push ebp
push esi
mov dword [esp + 0x10], edx
cmp eax, 4
jne 0x407d0a
mov ebp, dword [ecx + 4]
jmp 0x407d0d
lea ebp, [ecx + 8]
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
xor ecx, ecx
cmp eax, 4
setne cl
dec ecx
and ecx, 8
mov esi, ecx
test dl, 1
je 0x407d49
mov edx, esi
or edx, 0x200
push edx
push 0x2b4
lea eax, [esp + 0x1c]
push eax
push 0
push ebp
call ebx
test eax, eax
je 0x407d49
lea ecx, [esp + 0x20]
mov dword [edi + 0x14], ecx
test byte [esp + 0x10], 6
je 0x407d70
or esi, 0x4001
push esi
push 0x2b4
lea edx, [esp + 0x1c]
push edx
push 0
push ebp
call ebx
mov eax, dword [esp + 0x18]
mov dword [edi + 0x20], eax
mov dword [edi + 0x1c], eax
or dword [edi + 0xc], 0x10000000
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
mov ecx, dword [esp + 0x2b8]
xor ecx, esp
call fcn.004bfc52
add esp, 0x2bc
ret 0x10
mov edx, dword [esp + 0x2cc]
push edi
push edx
push ecx
push eax
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov ecx, dword [esp + 0x2bc]
pop edi
xor ecx, esp
call fcn.004bfc52
add esp, 0x2bc
ret 0x10
Function at 0x409af0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x304
mov eax, dword [0x4ea93c]
xor eax, esp
mov dword [esp + 0x300], eax
push ebx
push esi
xor ecx, ecx
mov eax, 1
push edi
mov edi, edi
mov edx, eax
and dl, 0x80
movzx edx, dl
mov byte [esp + ecx + 0x10c], al
mov byte [esp + ecx + 0x20b], al
mov byte [esp + eax + 0xc], cl
inc ecx
neg edx
sbb edx, edx
and edx, 0x11b
lea esi, [eax + eax]
xor edx, esi
xor eax, edx
cmp eax, 1
jne 0x409b10
xor ecx, ecx
mov dword [ecx + 0x4ec9c0], eax
test eax, eax
je 0x409b5c
movzx eax, byte [esp + eax + 0xc]
movzx eax, byte [esp + eax + 0x125]
jmp 0x409b5e
xor eax, eax
add ecx, 4
cmp ecx, 0x28
jb 0x409b43
xor edx, edx
test dl, dl
je 0x409b82
movzx ecx, dl
movzx eax, byte [esp + ecx + 0xc]
lea ecx, [esp + 0x20b]
sub ecx, eax
movzx eax, byte [ecx]
jmp 0x409b84
xor eax, eax
lea ecx, [eax + eax]
xor ecx, eax
add ecx, ecx
xor ecx, eax
add ecx, ecx
xor ecx, eax
add ecx, ecx
xor eax, ecx
mov ebx, eax
shr ebx, 8
xor bl, al
xor bl, 0x63
je 0x409bbb
movzx eax, bl
movzx eax, byte [esp + eax + 0xc]
movzx ecx, byte [esp + eax + 0x10d]
movzx esi, byte [esp + eax + 0x125]
jmp 0x409bbf
xor ecx, ecx
xor esi, esi
shl ecx, 8
movzx eax, bl
or ecx, eax
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, esi
mov esi, ecx
rol esi, 8
mov dword [edx*4 + 0x4ed9e8], ecx
mov dword [edx*4 + 0x4edde8], esi
mov esi, ecx
rol esi, 0x10
ror ecx, 8
mov dword [edx*4 + 0x4ee5e8], ecx
mov ecx, eax
rol ecx, 8
mov dword [edx*4 + 0x4ecde8], ecx
mov ecx, eax
mov dword [edx*4 + 0x4ec9e8], eax
rol ecx, 0x10
ror eax, 8
mov dword [edx*4 + 0x4ed5e8], eax
mov dword [edx*4 + 0x4ee1e8], esi
movzx esi, dl
lea eax, [esi*8]
xor eax, esi
add eax, eax
add eax, eax
xor eax, esi
mov dword [edx*4 + 0x4ed1e8], ecx
add eax, eax
mov ecx, eax
shr ecx, 8
xor cl, al
xor cl, 5
je 0x409ca2
lea eax, [esi*8]
xor eax, esi
add eax, eax
add eax, eax
xor eax, esi
add eax, eax
mov ecx, eax
shr ecx, 8
movzx ecx, cl
movzx eax, al
xor ecx, eax
xor ecx, 5
movzx ecx, byte [esp + ecx + 0xc]
lea eax, [esp + 0x20b]
sub eax, ecx
mov bl, byte [eax]
test bl, bl
je 0x409ca4
movzx ecx, bl
movzx ecx, byte [esp + ecx + 0xc]
movzx eax, byte [esp + ecx + 0x174]
movzx edi, byte [esp + ecx + 0x1fa]
movzx esi, byte [esp + ecx + 0x1d3]
movzx ecx, byte [esp + ecx + 0x1eb]
jmp 0x409cac
xor bl, bl
xor eax, eax
xor edi, edi
xor esi, esi
xor ecx, ecx
shl eax, 8
or eax, edi
shl eax, 8
or eax, esi
shl eax, 8
or eax, ecx
movzx ecx, bl
add ecx, ecx
add ecx, ecx
mov esi, eax
rol esi, 8
mov dword [ecx + 0x4ebdc0], esi
mov esi, eax
rol esi, 0x10
mov dword [ecx + 0x4eb9c0], eax
ror eax, 8
inc edx
mov dword [ecx + 0x4ec1c0], esi
mov dword [ecx + 0x4ec5c0], eax
cmp edx, 0x100
jb 0x409b68
mov ecx, dword [esp + 0x30c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov byte [0x4ee9e8], 1
call fcn.004bfc52
add esp, 0x304
ret