joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43bbf0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x468213
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0045bf54
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004615ea
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00462b06
test eax, eax
je 0x43bd0c
mov ecx, dword [esp + 0x3c]
call fcn.00461617
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43bcd0
push edi
mov ecx, esi
call fcn.0045ec7b
mov ecx, esi
call fcn.0043be70
cmp dword [esp + 0x38], 1
jne 0x43bd05
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0045edb6
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43e730
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43e763
push esi
call fcn.00441820
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43e75c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43e7e9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43e7d2
mov eax, dword [esi + 8]
test eax, eax
je 0x43e787
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43e7ce
cmp eax, 2
je 0x43e7d2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43e77a
cmp eax, 3
je 0x43e7ad
cmp eax, 1
jne 0x43e77a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43e77a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43e77a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043e810
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43e7f8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043e810
add esp, 4
pop esi
ret

Function at 0x45cd4a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45cd82
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045adfe
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045add6
jmp 0x45cd8e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45e438
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 0x45e47a
call fcn.00463ef1
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45e47a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45e471
xor eax, eax
jmp 0x45e482
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045e488
pop edi
pop esi
pop ebx
ret 4

Function at 0x464421
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 0x46444f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46446d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00464387
jmp 0x46446d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46446d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00464387
test edi, edi
mov eax, edi
jne 0x464457
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x403959
Capabilities:
Terminate process

Disassembly:
jmp 0x469fde
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x469fef
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405f97
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x403a8f
Capabilities:
Query environment variable

Disassembly:
jmp 0x4a41bb
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a41cc
pop esi
ret
push ebx
push edi
push esi
call fcn.004a40a2
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004043e5
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a41f4
push ebx
push esi
push edi
call fcn.00405d58
add esp, 0xc
push 0
call fcn.004069fb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x405e34
Capabilities:
Parse pe header

Disassembly:
jmp 0x41afd3
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41b012
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41b012
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41b012
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41b012
cmp dword [ecx + 0x74], 0xe
jbe 0x41b012
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4a2393
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x6657d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4a23de
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004a2855
test al, al
jne 0x4a23d8
sub edx, 2
cmp edx, edi
jne 0x4a23be
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4a2400
lea eax, [edi + 2]
cmp edx, eax
je 0x4a2400
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004a1f8c
add esp, 0x10
jmp 0x4a24fa
push esi
lea ecx, [ebp - 0x255]
call fcn.004a2855
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a2443
push dword [ebp - 0x25c]
jmp 0x4a23f0
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4a2480
cmp word [ebp - 0x226], 0
je 0x4a24a1
cmp word [ebp - 0x226], ax
jne 0x4a2480
cmp word [ebp - 0x224], 0
je 0x4a24a1
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004a1f8c
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4a24ed
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4a245a
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4a24d5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4a24fa
push 0x4a1974
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405b5f
add esp, 0x10
jmp 0x4a24ca
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403314
leave
ret
Function at 0x4accc5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401ece
mov eax, dword [0x6657d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0040658c
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4acd07
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4ace63
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406708
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x669438]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403558
mov ecx, dword [esi*4 + 0x669438]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4ace5c
cmp eax, dword [edi + ecx + 0x24]
jne 0x4ace5c
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ace5c
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403558
add esp, 0x14
test edx, edx
jl 0x4ace5c
jg 0x4acdd2
test eax, eax
jb 0x4ace5c
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4ace5c
jl 0x4acdec
cmp dword [ebp - 0x1008], eax
ja 0x4ace5c
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4ace0a
test ebx, ebx
je 0x4ace43
cmp ecx, edi
jae 0x4ace43
mov al, byte [ecx]
cmp al, 0xd
jne 0x4ace24
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4ace30
cmp byte [ecx + 1], 0xa
jne 0x4ace30
inc ecx
jmp 0x4ace30
movzx eax, al
movsx eax, byte [eax + 0x666110]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4ace0a
cmp edx, ebx
jne 0x4ace0a
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4ace61
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403314
leave
ret
Function at 0x4ad6c0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x669438]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4ad700
cmp byte [ebx], 0xa
jne 0x4ad700
or byte [eax + edi + 0x28], 4
jmp 0x4ad705
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4ad803
mov al, byte [edx]
cmp al, 0x1a
je 0x4ad7e5
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4ad734
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4ad759
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4ad763
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4ad716
jmp 0x4ad803
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ad7e0
cmp dword [ebp - 0xc], 0
je 0x4ad7e0
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x669438]
test byte [eax + edi + 0x28], 0x48
je 0x4ad7ba
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4ad7a5
mov byte [esi], dl
jmp 0x4ad7b6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x669438]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4ad803
cmp byte [ebp - 1], 0xa
jne 0x4ad7c9
cmp esi, ebx
jne 0x4ad7c9
mov byte [esi], 0xa
jmp 0x4ad802
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401a00
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4ad803
mov byte [esi], 0xd
jmp 0x4ad802
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x669438]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4ad7ff
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4ad803
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4ad85f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x669438]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4ad8a2
cmp word [esi], dx
jne 0x4ad8a2
or byte [edi + eax + 0x28], 4
jmp 0x4ad8a7
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4ad9fa
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4ad9da
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4ad8e9
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4ad91f
cmp eax, edx
jae 0x4ad92b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4ad8c1
jmp 0x4ad9fa
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ad9d6
cmp dword [ebp - 0x14], 0
je 0x4ad9d6
mov eax, dword [ebx*4 + 0x669438]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4ad9ae
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4ad977
mov word [esi], cx
jmp 0x4ad9aa
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x669438]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x669438]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x669438]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4ad9fa
pop ebx
cmp word [ebp - 4], bx
jne 0x4ad9bf
cmp esi, dword [ebp + 0xc]
jne 0x4ad9bf
mov word [esi], bx
jmp 0x4ad9f7
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401a00
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4ad9fa
push 0xd
jmp 0x4ad9f3
mov ecx, dword [ebx*4 + 0x669438]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4ad9f1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4ad9fa
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x407b20
Capabilities:
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x582198
push eax
mov dword fs:[0], esp
sub esp, 0x244
push ebx
mov eax, dword [esp + 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0x10
jne 0x407b5f
mov dword [esp + 0x250], 0xffffffff
jmp 0x407be9
push esi
or ebx, 0xffffffff
push edi
mov edi, dword [esp + 0x260]
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xc]
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
pop esi
mov al, byte [esp + ecx + 3]
lea ecx, [esp + ecx + 4]
cmp al, 0x5c
jne 0x407bb0
cmp byte [ecx - 2], 0x3a
je 0x407be2
cmp al, al
je 0x407bb4
cmp al, 0x2f
jne 0x407bb8
mov byte [ecx - 1], 0
lea ecx, [esp + 0x108]
lea edx, [esp + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, ebx
je 0x407c02
mov cl, byte [esp + 0x108]
push eax
test cl, 0x10
je 0x407bfc
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x250], ebx
lea ecx, [esp + 0x258]
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x407c17
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x258]
mov dword [esp + 0x250], ebx
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x248]
pop ebx
mov dword fs:[0], ecx
add esp, 0x250
ret 4

Function at 0x409600
Capabilities:
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x582378
push eax
mov dword fs:[0], esp
sub esp, 0x244
mov eax, dword [esp + 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0x10
je 0x4096e9
push esi
push edi
mov edi, dword [esp + 0x25c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
pop esi
mov al, byte [esp + ecx - 1]
lea ecx, [esp + ecx]
cmp al, 0x5c
jne 0x409682
cmp byte [ecx - 2], 0x3a
je 0x4096e9
cmp al, al
je 0x409686
cmp al, 0x2f
jne 0x40968a
mov byte [ecx - 1], 0
lea ecx, [esp + 0x104]
lea edx, [esp]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov cl, byte [esp + 0x104]
push eax
test cl, 0x10
jne 0x4096e3
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x254]
mov dword [esp + 0x24c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x244]
mov dword fs:[0], ecx
add esp, 0x250
ret 4
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x254]
mov dword [esp + 0x24c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x244]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x250
ret 4
Function at 0x40aaf0
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5825d0
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov esi, ecx
call sub.MFC42.DLL_CCmdTarget::BeginWaitCursor
mov eax, dword [esi + 0x360]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 9
push 0x110a
push eax
call ebx
mov ebp, eax
test ebp, ebp
je 0x40ac87
lea ecx, [esp + 0x18]
push ebp
push ecx
mov ecx, esi
call fcn.004081d0
push 0x5fd02c
lea ecx, [esp + 0x18]
mov dword [esp + 0x50], 0
call sub.MFC42.DLL_CString::CString_4
push 0x5fd02c
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 1
call sub.MFC42.DLL_CString::CString_4
push 0x80a2
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 2
call sub.MFC42.DLL_CString::LoadStringA
push 0x80a4
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::LoadStringA
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push 4
push edx
push eax
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
cmp eax, 6
jne 0x40ac5a
cmp dword [esi + 0x39c], 1
jne 0x40ac00
lea ecx, [esp + 0x1c]
push ebp
push ecx
lea ecx, [esi + 0x340]
call sub.MFC42.DLL_CTreeCtrl::GetItemText
mov edx, dword [esi + 0x360]
push ebp
push 0
push 0x1101
push edx
mov byte [esp + 0x5c], 3
call ebx
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call sub.MFC42.DLL_CString::CString_3
mov ecx, esi
call fcn.0040aff0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4c], 2
call sub.MFC42.DLL_CString::CString
jmp 0x40ac5a
push 0
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator_2
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0x24]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x18]
push edx
stosw word es:[edi], ax
xor edi, edi
mov dword [esp + 0x2c], 3
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edi
mov word [esp + 0x38], 0x450
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
cmp eax, edi
jne 0x40ac5a
mov eax, dword [esi + 0x360]
push ebp
push edi
push 0x1101
push eax
call ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x4c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x4c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, esi
call sub.MFC42.DLL_CCmdTarget::EndWaitCursor
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x40
ret
Function at 0x40aff0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x582680
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x3a8]
mov edx, dword [esi + 0x3b4]
lea edi, [esi + 0x3b4]
push 0
push 0x1001
push eax
mov ecx, edi
mov dword [esp + 0x40], 0
call dword [edx + 0x28]
test eax, eax
je 0x40b193
mov eax, dword [esi + 0x388]
mov ecx, esi
push eax
call fcn.0040b1c0
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x54]
push 0x5fd02c
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [esp + 0x3c]
mov ecx, dword [esi + 0x3a4]
push eax
push ecx
lea edx, [esp + 0x10]
push str._s_s
push edx
mov byte [esp + 0x44], 1
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CStdioFile::CStdioFile
mov eax, dword [esp + 8]
push 0
push 0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 2
call sub.MFC42.DLL_CStdioFile::Open
test eax, eax
je 0x40b177
push 0x5fd02c
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 3
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CStdioFile::ReadString
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40b152
push 0x5fd02c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_4
mov edx, dword [esp + 0x14]
push 0x3b
push 1
lea eax, [esp + 0x18]
push edx
push eax
mov byte [esp + 0x44], 4
call sub.MFC42.DLL_AfxExtractSubString
test eax, eax
je 0x40b144
push 0x5fd02c
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_4
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x3a0]
push ecx
push edx
lea eax, [esp + 0x14]
push str._s_s
push eax
mov byte [esp + 0x44], 5
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x1c]
add esp, 0x10
push ecx
call edi
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CStdioFile::Close
mov edx, dword [esp + 8]
push edx
call edi
mov ecx, esi
call fcn.0040ad90
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 1
call fcn.0054ed50
lea ecx, [esp + 8]
mov byte [esp + 0x34], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov dword [esp + 0x34], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret 4

Function at 0x40b2c0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x3b0]
test eax, eax
je 0x40b2ed
push 0xffffffffffffffff
push eax
mov dword [esi + 0x3ac], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x3b0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push esi
push 0x40b2b0
push 0
push 0
mov dword [esi + 0x3ac], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x3b0], eax
pop esi
ret