joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40249b
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47d4e4
mov eax, dword fs:[0]
push eax
sub esp, 0x6c8
mov eax, dword [0x498040]
xor eax, esp
mov dword [esp + 0x6c0], eax
push ebx
push esi
push edi
mov eax, dword [0x498040]
xor eax, esp
push eax
lea eax, [esp + 0x6d8]
mov dword fs:[0], eax
mov eax, dword [ecx]
mov ebx, dword [ebp + 8]
lea edx, [esp + 0x2c]
push edx
call dword [eax + 8]
and dword [esp + 0x6e0], 0
mov ecx, str.btnParent
lea eax, [esp + 0x2c]
call fcn.00427bdf
test eax, eax
jne 0x40251e
push 0x4813e0
lea esi, [ebx + 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
mov esi, ebx
call fcn.00402256
jmp 0x4026d6
push dword [esp + 0x2c]
mov esi, str.filebtn_
call fcn.0040fb41
test eax, eax
je 0x4026d6
xor eax, eax
push 0x206
push eax
mov word [esp + 0xbc], ax
lea eax, [esp + 0xbe]
push eax
call fcn.00462d50
mov eax, dword [esp + 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
add esp, 0xc
mov edi, 0x104
push edi
add eax, 0x10
push eax
lea eax, [esp + 0xbc]
push eax
call esi
lea eax, [esp + 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4026d6
test al, 0x10
lea eax, [esp + 0xb4]
je 0x4025a8
push edi
push eax
lea eax, [ebx + 0x14]
push eax
call esi
mov ecx, ebx
call fcn.00402705
jmp 0x4026d6
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov edi, eax
test edi, edi
je 0x402685
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x4813e8
push edi
call esi
test eax, eax
je 0x4025ff
push 0x4813f4
push edi
call esi
test eax, eax
je 0x4025ff
push 0x481400
push edi
call esi
test eax, eax
je 0x4025ff
push 0x48140c
push edi
call esi
test eax, eax
je 0x4025ff
push str..jpeg
push edi
call esi
test eax, eax
jne 0x402685
xor eax, eax
push 0x40e
push eax
mov word [esp + 0x2c4], ax
lea eax, [esp + 0x2c6]
push eax
call fcn.00462d50
add esp, 0xc
lea eax, [esp + 0x10]
push str.ImgViewer.exe
push eax
call fcn.00401f87
cmp dword [eax + 0x18], 8
pop ecx
pop ecx
jb 0x40263b
mov eax, dword [eax + 4]
jmp 0x40263e
add eax, 4
lea ecx, [esp + 0xb4]
push ecx
push eax
push str.__s____s_
lea eax, [esp + 0x2c8]
push 0x208
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
push 0
push 1
lea esi, [esp + 0x18]
call fcn.0040144b
lea eax, [esp + 0x2bc]
push eax
call fcn.0040ef7f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4026d6
push 1
lea eax, [esp + 0xb8]
push eax
push 0
push eax
push str.open
push dword [ebx + 4]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x4026d6
push 0x30
push ecx
push str.warning
push str.common
call fcn.0041a2ea
add esp, 0xc
push eax
push str.shellExecuteFailed
push 0x481074
call fcn.0041a2ea
pop ecx
pop ecx
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 0x2c]
call fcn.004279a2
mov ecx, dword [esp + 0x6d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x6c0]
xor ecx, esp
call fcn.00460c7e
mov esp, ebp
pop ebp
ret 4
Function at 0x404334
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d234
mov eax, dword fs:[0]
push eax
mov eax, 0x206c
call fcn.0046c7f0
mov eax, dword [0x498040]
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
xor edi, edi
push 0xffc
lea eax, [ebp - 0x2064]
push edi
push eax
mov dword [ebp - 0x2068], edi
call fcn.00462d50
add esp, 0xc
lea eax, [ebp - 0x206c]
push eax
lea eax, [ebp - 0x2068]
push eax
lea eax, [ebp - 0x2074]
push eax
push str.curssp
push str.Softwareprojone_secshare_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x206c], 0x1000
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x404515
cmp word [ebp - 0x1ecc], di
je 0x4044c8
cmp dword [0x49d998], edi
jne 0x404400
push 0x94
call fcn.00460dab
pop ecx
mov dword [ebp - 0x2070], eax
mov dword [ebp - 4], edi
cmp eax, edi
je 0x4043f5
mov esi, eax
call fcn.0041d0a4
jmp 0x4043f7
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [0x49d998], eax
lea eax, [ebp - 0x1068]
push eax
call fcn.004041d1
push str.Arial
push 5
mov dword [ebp - 4], 1
pop eax
lea esi, [ebp - 0x1030]
mov byte [ebp - 0x1040], 0x3c
call fcn.00403687
lea eax, [ebp - 0x1ecc]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, di
jne 0x404436
sub eax, ecx
lea ecx, [ebp - 0x1ecc]
sar eax, 1
push ecx
lea esi, [ebp - 0x105c]
call fcn.00403687
mov eax, 0xff
push 0xffffffffffffffe2
mov dword [ebp - 0x103c], eax
mov dword [ebp - 0x1038], eax
pop eax
mov word [ebp - 0x103e], ax
mov eax, dword [0x49d998]
lea esi, [eax + 0x14]
push esi
mov byte [ebp - 0x1013], 1
mov byte [ebp - 0x1014], 0x1c
mov edi, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov bl, byte [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x1068]
push eax
test bl, bl
je 0x4044ac
call fcn.0041d669
jmp 0x4044b7
push dword [0x49d998]
call fcn.0041d559
or dword [ebp - 4], 0xffffffff
lea edi, [ebp - 0x1068]
call fcn.0040424e
xor edi, edi
call fcn.00404269
call fcn.0040e658
test eax, eax
je 0x404515
push str._X64AgentThread
push 0x57
push str..limits.cpp
push str._s._d:_s
lea eax, [ebp - 0x1010]
push 0x800
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x18
lea eax, [ebp - 0x1010]
push eax
push edi
push 0x40432e
call fcn.0041b685
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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.00460c7e
leave
ret
Function at 0x4047b2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
xor edi, edi
push edi
call esi
mov ebx, eax
push 0x65
push ebx
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp - 4], eax
cmp eax, edi
je 0x40481f
cmp ebx, edi
jne 0x4047df
push edi
call esi
mov ebx, eax
push 8
call fcn.00461535
pop ecx
mov ecx, dword [ebp - 4]
push edi
push edi
push eax
push 0x4046f8
push edi
push edi
mov dword [eax + 4], ecx
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp eax, edi
je 0x404817
cmp eax, 0xffffffff
je 0x404817
push 0x1f4
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
call fcn.0040456d
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404be4
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x498040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push 8
pop esi
cmp dword [eax + 0x18], esi
jb 0x404c07
mov eax, dword [eax + 4]
jmp 0x404c0a
add eax, 4
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00401f87
mov edi, dword [ebp - 0x1c]
pop ecx
pop ecx
cmp dword [ebp - 8], esi
jae 0x404c21
lea edi, [ebp - 0x1c]
call fcn.0040dbe0
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 8], esi
jae 0x404c31
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 8]
call fcn.0040f853
test eax, eax
je 0x404c73
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 8], esi
jae 0x404c49
lea eax, [ebp - 0x1c]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.0040144b
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00460c7e
leave
ret
xor bl, bl
jmp 0x404c56

Function at 0x404c77
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x498040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x400
lea eax, [ebp - 0x808]
push eax
mov esi, str.no_more_create_job
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x404cea
call fcn.0040eff1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x481b68
lea ecx, [ebp - 0x824]
call fcn.0040fbbe
cmp dword [eax + 0x18], 8
pop ecx
pop ecx
jb 0x404cd0
mov eax, dword [eax + 4]
jmp 0x404cd3
add eax, 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0
push 1
lea esi, [ebp - 0x824]
call fcn.0040144b
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00460c7e
leave
ret
Function at 0x4064dd
Capabilities:
Open clipboard

Disassembly:
push 0x3c
mov eax, 0x47c624
call fcn.0046215a
lea eax, [ebp - 0x48]
push eax
call fcn.00404cf7
pop ecx
xor ebx, ebx
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.00404583
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.004030c2
cmp dword [ebp - 0x18], ebx
jne 0x406527
push 0x10
push 0x481bc4
push 0x482178
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40657e
cmp dword [ebp - 0x14], 8
mov edi, dword [ebp - 0x28]
jae 0x406533
lea edi, [ebp - 0x28]
push ebx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40655b
call fcn.0040edb9
cmp eax, ebx
je 0x40655b
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x406553
lea eax, [ebp - 0x28]
push eax
push 0x48218c
jmp 0x40656d
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x406567
lea eax, [ebp - 0x28]
push eax
push 0x4821cc
push 0x40
mov edi, 0x482114
xor esi, esi
call fcn.0040e60a
add esp, 0xc
push ebx
push 1
lea esi, [ebp - 0x2c]
call fcn.0040144b
call fcn.004621dd
ret
Function at 0x409486
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xf94]
mov eax, 0x1014
call fcn.0046c7f0
mov eax, dword [0x498040]
xor eax, ebp
mov dword [ebp + 0xf90], eax
mov eax, dword [ebp + 0xfac]
push ebx
mov ebx, dword [ebp + 0xfa4]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0xfb0]
mov dword [ebp - 0x80], eax
test ebx, ebx
jbe 0x40951a
push esi
mov esi, 0x1000
cmp ebx, esi
ja 0x4094ce
mov esi, ebx
and dword [ebp - 0x74], 0
push 0
lea eax, [ebp - 0x74]
push eax
push esi
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x409519
cmp dword [ebp - 0x74], esi
jne 0x409519
and dword [ebp - 0x78], 0
push 0
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x74]
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x409519
mov eax, dword [ebp - 0x74]
cmp dword [ebp - 0x78], eax
jne 0x409519
sub ebx, eax
jne 0x4094c3
pop esi
mov ecx, dword [ebp + 0xf90]
xor eax, eax
test ebx, ebx
sete al
xor ecx, ebp
pop ebx
call fcn.00460c7e
add ebp, 0xf94
leave
ret
Function at 0x4098aa
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x498040]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
push esi
push esi
push 3
push esi
push esi
push connect
push eax
mov dword [ebp - 0x21c], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x218], eax
cmp eax, 0xffffffff
jne 0x4098ef
push 2
pop esi
jmp 0x4099dc
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
lea ecx, [ebp - 0x210]
push ecx
push 0x1000
push edi
push eax
mov dword [ebp - 0x210], esi
call ebx
test eax, eax
je 0x4099cd
cmp dword [ebp - 0x210], 0x1000
jne 0x4099cd
cmp dword [edi], 0x73737066
jne 0x4099cd
push 0xffc
push edi
mov eax, 0x5b11680a
call fcn.0040e5dd
cmp dword [edi + 0xffc], eax
jne 0x4099cd
cmp dword [edi + 0x108], esi
mov dword [ebp - 0x214], esi
jle 0x4099d0
push 0x1fc
lea eax, [ebp - 0x208]
push esi
push eax
mov dword [ebp - 0x20c], esi
call fcn.00462d50
add esp, 0xc
push esi
lea eax, [ebp - 0x210]
push eax
push 0x200
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x218]
call ebx
test eax, eax
je 0x4099c9
cmp dword [ebp - 0x210], 0x200
jne 0x4099c9
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0x21c]
call fcn.0040a673
inc dword [ebp - 0x214]
mov eax, dword [ebp - 0x214]
cmp eax, dword [edi + 0x108]
jl 0x40995a
jmp 0x4099d0
push 3
jmp 0x4099cf
push 0xa
pop esi
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00460c7e
leave
ret
Function at 0x409cdc
Capabilities:
Query or enumerate registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x498040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, dword [esi + 0x110]
push edi
xor edi, edi
mov dword [ebp - 0x30], eax
cmp ecx, edi
jne 0x409d09
xor eax, eax
jmp 0x409e1a
mov eax, dword [esi + 0x114]
cmp eax, ecx
jge 0x409e1a
lea eax, [esi + 0x88]
push eax
push str.Softwareprojone_secshare_ssps_
push str._s_hs
lea ecx, [ebp - 0x20]
call fcn.0040fbbe
mov eax, dword [ebp - 0x1c]
add esp, 0xc
cmp dword [ebp - 8], 8
jae 0x409d3f
lea eax, [ebp - 0x1c]
push ebx
push 4
pop ebx
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x28]
push ecx
push 0x482adc
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x24], ebx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x409d71
cmp dword [ebp - 0x28], ebx
jne 0x409d71
mov ebx, dword [ebp - 0x2c]
jmp 0x409d73
xor ebx, ebx
mov eax, dword [esi + 0x114]
cmp ebx, eax
jg 0x409d7f
mov ebx, eax
push edi
push edi
push 3
push edi
push edi
push 0x40000000
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
je 0x409e07
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
jae 0x409da7
lea eax, [ebp - 0x1c]
lea edi, [ebx + 1]
push edi
push 0x482adc
push eax
call fcn.0040fc76
push 0xffc
push esi
mov eax, 0x5b11680a
mov dword [esi + 0x114], edi
call fcn.0040e5dd
and dword [ebp - 0x28], 0
push 0
mov dword [esi + 0xffc], eax
lea eax, [ebp - 0x28]
push eax
mov edi, 0x1000
push edi
push esi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x409df5
cmp dword [ebp - 0x28], edi
je 0x409dfa
mov ebx, 0x12345678
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
jmp 0x409e0c
mov ebx, 0x12345678
push edi
push 1
lea esi, [ebp - 0x20]
call fcn.0040144b
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00460c7e
leave
ret
Function at 0x40a39c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d0d9
mov eax, dword fs:[0]
push eax
mov eax, 0x1290
call fcn.0046c7f0
mov eax, dword [0x498040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1248], eax
xor eax, eax
push 0x206
mov word [ebp - 0x23c], ax
xor ebx, ebx
lea eax, [ebp - 0x23a]
push ebx
push eax
mov edi, ecx
call fcn.00462d50
add esp, 0xc
lea esi, [ebp - 0x23c]
call fcn.0040e0b0
test eax, eax
jne 0x40a417
mov dword [ebp - 0x1240], 2
jmp 0x40a5d2
push 0xffc
lea eax, [ebp - 0x1238]
push ebx
push eax
mov dword [ebp - 0x123c], ebx
call fcn.00462d50
lea eax, [ebp - 0x23c]
add esp, 0xc
push eax
lea edx, [ebp - 0x123c]
mov ecx, edi
call fcn.004099ec
pop ecx
mov dword [ebp - 0x1240], eax
cmp eax, ebx
jne 0x40a5d2
push 7
xor eax, eax
mov byte [ebp - 0x34], bl
pop ecx
lea edi, [ebp - 0x33]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xc9c]
push eax
lea ecx, [ebp - 0x1264]
call fcn.00402d14
lea eax, [ebp - 0x1264]
push eax
lea eax, [ebp - 0x1280]
push eax
mov dword [ebp - 4], ebx
call fcn.00422afe
pop ecx
pop ecx
mov byte [ebp - 4], 1
cmp dword [eax + 0x18], 0x10
jb 0x40a49e
mov eax, dword [eax + 4]
jmp 0x40a4a1
add eax, 4
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x10e4]
push ecx
mov ecx, eax
call fcn.004097c4
pop ecx
pop ecx
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x1280]
call fcn.004030c2
or dword [ebp - 4], 0xffffffff
push ebx
push edi
lea ecx, [ebp - 0x1264]
call fcn.004030c2
lea eax, [ebp - 0x23c]
push eax
lea esi, [ebp - 0x1264]
call fcn.00402d5c
mov eax, esi
push eax
lea eax, [ebp - 0x1280]
push eax
mov dword [ebp - 4], 2
call fcn.004090f2
pop ecx
pop ecx
mov byte [ebp - 4], 3
cmp dword [eax + 0x18], 0x10
jb 0x40a50f
mov eax, dword [eax + 4]
jmp 0x40a512
add eax, 4
lea ecx, [ebp - 0x34]
push ecx
push eax
call fcn.004093df
pop ecx
pop ecx
push ebx
push edi
lea ecx, [ebp - 0x1280]
mov byte [ebp - 0x1244], al
call fcn.004030c2
or dword [ebp - 4], 0xffffffff
push ebx
push edi
lea esi, [ebp - 0x1264]
call fcn.0040144b
cmp byte [ebp - 0x1244], 0
jne 0x40a557
mov dword [ebp - 0x1240], 7
jmp 0x40a5be
movsx ax, byte [ebp - 0x1244]
movzx eax, ax
push eax
push str._c:_
lea ecx, [ebp - 0x129c]
call fcn.0040fbbe
pop ecx
pop ecx
mov dword [ebp - 4], 4
cmp dword [eax + 0x18], 8
jb 0x40a587
mov eax, dword [eax + 4]
jmp 0x40a58a
add eax, 4
push dword [ebp - 0x1248]
push eax
call fcn.0040e124
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
push 0
push edi
lea esi, [ebp - 0x129c]
inc bl
call fcn.0040144b
test bl, bl
je 0x40a5be
mov dword [ebp - 0x1240], 0x1c
cmp byte [ebp - 0x1244], 0
je 0x40a5d2
push dword [ebp - 0x1244]
call fcn.00421df9
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x1240]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00460c7e
leave
ret
Function at 0x40b49e
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x498040]
xor eax, ebp
mov dword [ebp + 0x18c], eax
and dword [ebp - 0x80], 0
push ebx
mov ebx, dword [ebp + 0x198]
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
call fcn.00462d50
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x48123c
lea eax, [ebp - 0x7c]
push eax
call edi
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea esi, [ebp - 0x7c]
call fcn.0040dcea
push str.taskbtn.png
mov eax, esi
push eax
call edi
mov eax, esi
push eax
mov esi, ebx
call fcn.00402d5c
mov ecx, dword [ebp + 0x18c]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00460c7e
add ebp, 0x190
leave
ret
Function at 0x40d805
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa94
mov eax, dword [0x498040]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x1c]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xa88], ecx
mov ecx, dword [ebp + 0x18]
push edi
mov dword [ebp - 0xa84], eax
mov dword [ebp - 0xa80], ecx
mov dword [ebp - 0xa8c], edx
test esi, esi
je 0x40da2a
test eax, eax
jne 0x40d856
test ecx, ecx
je 0x40da2a
movzx eax, word [esi + 2]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp ax, 0x3a
je 0x40d8ac
cmp ax, 0x5c
je 0x40d8ac
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x828], ax
lea eax, [ebp - 0x826]
push eax
call fcn.00462d50
add esp, 0xc
lea eax, [ebp - 0x828]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
lea eax, [ebp - 0x828]
push eax
call edi
lea esi, [ebp - 0x828]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40da2a
test al, 0x10
je 0x40da2a
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea eax, [ebp - 0x418]
push eax
call ebx
push 0x4814d4
lea eax, [ebp - 0x418]
push eax
call edi
lea eax, [ebp - 0xa78]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xa90], eax
cmp eax, 0xffffffff
je 0x40da2a
mov dword [ebp - 0xa7c], 1
push 0x482c10
lea eax, [ebp - 0xa4c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40d9ef
push 0x4813e0
lea eax, [ebp - 0xa4c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40d9ef
cmp dword [ebp - 0xa78], 0xffffffff
je 0x40d9ef
push esi
lea eax, [ebp - 0x210]
push eax
call ebx
lea eax, [ebp - 0xa4c]
push eax
lea eax, [ebp - 0x210]
push eax
call edi
test byte [ebp - 0xa78], 0x10
je 0x40d9cf
cmp dword [ebp - 0xa80], 0
je 0x40d993
push dword [ebp - 0xa8c]
lea eax, [ebp - 0x210]
push eax
call dword [ebp - 0xa80]
test eax, eax
je 0x40da0c
cmp dword [ebp + 0xc], 0
je 0x40d9ef
push dword [ebp - 0xa8c]
lea eax, [ebp - 0x210]
push dword [ebp - 0xa80]
push dword [ebp - 0xa88]
push dword [ebp - 0xa84]
push dword [ebp + 0xc]
push eax
call fcn.0040d805
push 2
pop ecx
cmp eax, ecx
jne 0x40d9ef
mov dword [ebp - 0xa7c], ecx
jmp 0x40da16
cmp dword [ebp - 0xa84], 0
je 0x40d9ef
push dword [ebp - 0xa88]
lea eax, [ebp - 0x210]
push eax
call dword [ebp - 0xa84]
test eax, eax
je 0x40da0c
lea eax, [ebp - 0xa78]
push eax
push dword [ebp - 0xa90]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40d90f
jmp 0x40da16
mov dword [ebp - 0xa7c], 2
push dword [ebp - 0xa90]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0xa7c]
jmp 0x40da2c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00460c7e
leave
ret 0x18
Function at 0x40da3d
Capabilities:
Enumerate files on windows

Disassembly:
push 0x6bc
mov eax, 0x47b462
call fcn.0046215a
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
and dword [ebp - 0x678], 0
mov dword [ebp - 0x674], eax
lea eax, [ebp - 0x6a0]
mov edi, ecx
push eax
mov dword [ebp - 0x67c], ebx
mov dword [ebp - 0x680], edi
call fcn.00406f48
xor esi, esi
inc esi
mov dword [ebp - 4], esi
test edi, edi
jne 0x40daad
lea eax, [ebp - 0x6a0]
push eax
push ebx
call fcn.004075d8
lea eax, [ebp - 0x6a0]
push eax
mov dword [ebp - 0x678], esi
mov byte [ebp - 4], 0
call fcn.00402e09
mov eax, ebx
jmp 0x40dbda
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x218]
push eax
call edi
push dword [ebp - 0x674]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call ebx
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x674], eax
cmp eax, 0xffffffff
je 0x40dbac
push 0x482c10
lea eax, [ebp - 0x644]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40db85
push 0x4813e0
lea eax, [ebp - 0x644]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40db85
cmp dword [ebp - 0x670], 0xffffffff
je 0x40db85
push dword [ebp - 0x680]
lea eax, [ebp - 0x420]
push eax
call edi
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x420]
push eax
call ebx
lea eax, [ebp - 0x420]
push eax
lea esi, [ebp - 0x6bc]
call fcn.00402d5c
mov eax, esi
push eax
lea eax, [ebp - 0x6c8]
push eax
lea eax, [ebp - 0x6a0]
push eax
mov byte [ebp - 4], 2
call fcn.00408d21
push 0
push 1
mov byte [ebp - 4], 1
call fcn.0040144b
xor esi, esi
inc esi
lea eax, [ebp - 0x670]
push eax
push dword [ebp - 0x674]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40daf5
push dword [ebp - 0x674]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x6a0]
push eax
push dword [ebp - 0x67c]
call fcn.004075d8
lea eax, [ebp - 0x6a0]
push eax
mov dword [ebp - 0x678], esi
mov byte [ebp - 4], 0
call fcn.00402e09
mov eax, dword [ebp - 0x67c]
call fcn.004621dd
ret