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

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x422928
cmp word [edx], 0
je 0x422928
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x42284e
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x4228ad
cmp dword [esi + 4], 0
mov ecx, edx
lea edi, [ecx + 2]
je 0x422880
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422860
sub ecx, edi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.00422c90
pop edi
pop esi
pop ecx
ret 0xc
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422880
sub ecx, edi
lea eax, [esp + 8]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
push edx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
cmp ecx, 2
lea ecx, [esp + 0x14]
setne al
push ecx
dec eax
and eax, 0xfde9
push edx
push eax
call fcn.00422da0
mov edi, eax
test edi, edi
je 0x4228a3
cmp dword [esi + 4], 0
je 0x4228fb
push dword [esp + 0x14]
push edi
push esi
call fcn.00422c90
push edi
push 0
push dword [0x7b07f4]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push 0
push dword [0x7b07f4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc

Function at 0x4229a0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x422a05
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4229fd
push dword [esp + 0x10]
push dword [0x7b3a48]
call fcn.0043807f
test eax, eax
je 0x4229f3
cmp dword [eax + 4], 0
je 0x4229e2
push edi
push esi
push eax
call fcn.00422c90
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea ecx, [esp + 0xc]
push ecx
push edi
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
xor eax, eax
pop esi
pop ecx
ret 0xc

Function at 0x422b20
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x7b3a48]
call fcn.0043807f
mov esi, eax
test esi, esi
je 0x422b9f
cmp dword [esi + 4], 0
je 0x422b70
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.004232c0
test eax, eax
je 0x422b64
inc dword [esi + 0xc]
xor eax, eax
pop esi
add esp, 8
ret 4
mov eax, 1
pop esi
add esp, 8
ret 4
push 0
lea eax, [esp + 0xc]
push eax
push 1
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x422baa
cmp dword [esp + 8], 0
je 0x422baa
push 1
push 0
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 4
or eax, 0xffffffff
pop esi
add esp, 8
ret 4
Function at 0x422bc0
Capabilities:
Read file on windows

Disassembly:
push ecx
push dword [esp + 8]
mov dword [esp + 4], 0
push dword [0x7b3a48]
call fcn.0043807f
test eax, eax
je 0x422c0c
cmp dword [eax + 4], 0
je 0x422bf6
push 4
lea ecx, [esp + 4]
push ecx
push eax
call fcn.004232c0
mov eax, dword [esp]
pop ecx
ret 4
push 0
lea ecx, [esp + 0xc]
push ecx
push 4
lea ecx, [esp + 0xc]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp]
pop ecx
ret 4

Function at 0x422c90
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
mov dword [esp + 4], 0
cmp dword [esi + 0x1c], 0
jne 0x422d97
cmp dword [esi + 0x14], 1
jne 0x422cdb
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0xc]
push 1
neg eax
cdq
push ecx
push eax
push dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
push edi
mov edi, dword [esp + 0x20]
cmp eax, edi
jle 0x422d58
mov ecx, dword [esi + 8]
add ecx, dword [esi + 4]
sub ecx, eax
mov eax, edi
dec eax
je 0x422d43
dec eax
je 0x422d2c
sub eax, 2
je 0x422d17
push edi
push dword [esp + 0x20]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov ax, word [eax]
mov word [ecx], ax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov al, byte [eax]
mov byte [ecx], al
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
push esi
call fcn.00422350
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x422d85
push 0
lea eax, [esp + 0xc]
push eax
push edi
push dword [esp + 0x28]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0xc
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
push edi
push dword [esp + 0x20]
add ecx, eax
jmp 0x422d01
xor eax, eax
pop esi
add esp, 0xc
ret 0xc
Function at 0x422e10
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x7b07f4]
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x422f94
mov cl, byte [esp + 3]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
mov esi, edx
mov edi, edi
cmp ebp, 0xffffffff
je 0x422e5e
test ebp, ebp
je 0x422f00
dec ebp
cmp dword [ebx + 4], 0
je 0x422e77
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.004232c0
mov dword [esp + 0x14], eax
jmp 0x422e91
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0x13]
cmp eax, 1
jne 0x422f00
test cl, cl
je 0x422ea5
mov byte [esi], cl
inc esi
mov cl, byte [esp + 0x13]
mov eax, dword [esp + 0x18]
mov edi, esi
mov edx, dword [esp + 0x20]
dec eax
sub edi, edx
cmp edi, eax
jle 0x422ee0
mov eax, dword [esp + 0x18]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x7b07f4]
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x20], edx
lea esi, [edi + edx]
test cl, cl
je 0x422f00
cmp dword [esp + 0x2c], 0
jne 0x422e50
cmp cl, 0xd
je 0x422f07
cmp cl, 0xa
jne 0x422e50
dec esi
jmp 0x422f77
cmp dword [esp + 0x2c], 0
jne 0x422f77
cmp cl, 0xa
jne 0x422f0f
dec esi
jmp 0x422f77
cmp cl, 0xd
jne 0x422f77
dec esi
cmp dword [ebx + 4], 0
je 0x422f2e
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.004232c0
mov dword [esp + 0x14], eax
jmp 0x422f44
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x422f77
cmp dword [ebx + 4], 0
je 0x422f56
inc dword [ebx + 0xc]
jmp 0x422f77
push 1
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebx]
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, esi
sub ecx, dword [esp + 0x20]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x1c]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
add esp, 0x14
ret 0x10
Function at 0x422fa0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push 0x1000
push 0
push dword [0x7b07f4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov dword [esp + 8], ecx
test ecx, ecx
je 0x42314d
mov ax, word [esp]
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], 0x1000
mov dword [esp + 0x1c], 0x7ff
cmp ebp, 0xffffffff
je 0x422ff4
test ebp, ebp
je 0x4230ad
dec ebp
cmp dword [ebx + 4], 0
je 0x42300d
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.004232c0
mov dword [esp + 0x14], eax
jmp 0x423027
push 0
lea eax, [esp + 0x18]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
cmp eax, 2
mov ax, word [esp + 0x10]
jne 0x4230ad
test ax, ax
je 0x423041
mov word [edi], ax
add edi, 2
mov ax, word [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov esi, edi
mov edx, dword [esp + 0x1c]
sub esi, ecx
sar esi, 1
cmp esi, edx
jle 0x423088
mov eax, dword [esp + 0x20]
add edx, 0x800
add eax, 0x1000
mov dword [esp + 0x1c], edx
push eax
push ecx
push 8
push dword [0x7b07f4]
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, eax
mov ax, word [esp + 0x10]
mov dword [esp + 0x18], ecx
lea edi, [ecx + esi*2]
test ax, ax
je 0x4230ad
cmp dword [esp + 0x30], 0
jne 0x422fe6
cmp ax, 0xd
je 0x4230b4
cmp ax, 0xa
jne 0x422fe6
sub edi, 2
jmp 0x42312c
cmp dword [esp + 0x30], 0
jne 0x42312c
cmp ax, 0xa
jne 0x4230bf
sub edi, 2
jmp 0x42312c
cmp ax, 0xd
jne 0x42312c
sub edi, 2
cmp dword [ebx + 4], 0
je 0x4230e1
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.004232c0
mov dword [esp + 0x14], eax
jmp 0x4230f7
push 0
lea eax, [esp + 0x18]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [esp + 0x10], 0xa
je 0x42312c
cmp dword [ebx + 4], 0
je 0x42310b
add dword [ebx + 0xc], 2
jmp 0x42312c
push 1
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 0xfffffffe
push eax
push 0xfffffffffffffffe
push dword [ebx]
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x38]
mov ecx, edi
sub ecx, dword [esp + 0x18]
sar ecx, 1
mov dword [eax], ecx
xor eax, eax
mov word [edi], ax
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
xor eax, eax
add esp, 0x18
ret 0x10
Function at 0x423160
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x7b07f4]
mov dword [esp + 0x10], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0xc], edx
test edx, edx
je 0x4232b0
mov eax, dword [esp + 0x1c]
mov cl, byte [esp + 3]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, edx
cmp edi, 0xffffffff
je 0x4231ac
test edi, edi
je 0x42321d
dec edi
push esi
push ebp
call fcn.004233e0
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4231bf
xor cl, cl
jmp 0x4231c1
mov cl, byte [esi]
mov edx, dword [esp + 0x1c]
add esi, eax
mov eax, dword [esp + 0x14]
mov ebx, esi
sub ebx, edx
mov byte [esp + 0x13], cl
add eax, 0xfffffffb
cmp ebx, eax
jle 0x423204
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x7b07f4]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x1c], edx
lea esi, [ebx + edx]
mov eax, dword [esp + 0x2c]
test cl, cl
je 0x42321d
test eax, eax
jne 0x4231a2
cmp cl, 0xd
je 0x423221
cmp cl, 0xa
jne 0x4231a2
dec esi
jmp 0x423293
test eax, eax
jne 0x423293
cmp cl, 0xa
jne 0x423229
dec esi
jmp 0x423293
cmp cl, 0xd
jne 0x423293
dec esi
cmp dword [ebp + 4], 0
je 0x423248
push 1
lea eax, [esp + 0x17]
push eax
push ebp
call fcn.004232c0
mov dword [esp + 0x20], eax
jmp 0x42325f
push 0
lea eax, [esp + 0x24]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x423293
cmp dword [ebp + 4], 0
je 0x423271
inc dword [ebp + 0xc]
jmp 0x423293
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebp]
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, esi
sub ecx, dword [esp + 0x1c]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
add esp, 0x14
ret 0x10
Function at 0x4241b4
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
xor esi, esi
push edi
mov ebx, esi
call fcn.00431386
mov edi, eax
test edi, edi
je 0x4242aa
cmp dword [edi + 0x14], esi
je 0x4242aa
cmp dword [edi], 0xf
jne 0x4242aa
push dword [edi + 0x18]
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x4242aa
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x42429f
push dword [edi + 0x18]
push dword [edi + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push esi
push 0xffffffffffffffff
push ebp
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
mov edi, eax
mov dword [esp + 0x14], edi
test edi, edi
jle 0x42429f
lea ebx, [edi - 1]
mov eax, esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], eax
push esi
push esi
push eax
push ebp
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
add ebx, eax
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, edi
jl 0x42423c
push dword [esp + 0x20]
mov dword [esp + 0x1c], ebx
push ebx
call fcn.00438cc0
mov edi, eax
cmp dword [esp + 0x14], esi
jle 0x424299
lea eax, [ebx + 1]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], eax
push eax
push edi
push esi
push ebp
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
push 0xa
lea edi, [edi + eax*2]
pop eax
mov word [edi], ax
add edi, 2
mov eax, dword [esp + 0x10]
inc esi
cmp esi, ebx
jl 0x424276
mov ebx, dword [esp + 0x18]
xor eax, eax
mov word [edi - 2], ax
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test ebx, ebx
jne 0x4242b6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
jmp fcn.00438da0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4

Function at 0x424a79
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x7b3a54]
call fcn.0043807f
mov ebx, eax
test ebx, ebx
je 0x424add
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x424aa2
push dword [esp + 0xc]
push ebx
call eax
jmp 0x424add
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.00438cc0
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
sub edi, eax
push edi
call fcn.00438dd0
pop edi
pop esi
pop ebx
ret 8
Function at 0x427bf8
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x7b3a64]
call fcn.00437f0e
xor ebp, ebp
mov esi, eax
cmp dword [0x7b1728], ebp
jne 0x427cd4
xor ebx, ebx
inc ebx
mov dword [0x7b1728], ebx
call fcn.0042cd4e
mov edi, 0xa4
push edi
push ebp
push 0x7b1730
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x7b1730], 0x13
lea eax, [esp + 0x10]
mov dword [0x7b1734], edi
mov dword [0x7b1740], 0x427b43
mov dword [0x7b1744], 0x427e8e
push eax
mov dword [0x7b1798], 0x427b1e
mov dword [0x7b179c], 0x427dd9
mov dword [0x7b173c], 0x427af9
mov dword [0x7b17c0], 0x427b5e
mov dword [0x7b17d4], ebx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x427cd4
cmp dword [esp + 0x20], ebx
je 0x427cbc
cmp dword [esp + 0x20], 2
jne 0x427cd4
cmp dword [esp + 0x14], 5
jae 0x427cc4
mov dword [0x7b17d4], ebp
jmp 0x427cd4
jne 0x427cd4
mov eax, dword [esp + 0x18]
neg eax
sbb eax, eax
and dword [0x7b17d4], eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
call fcn.00431c85
mov eax, dword [esp + 0x140]
push ebp
push dword [0x7b07f8]
or eax, 0x50010000
push 0xffffffffffffffff
push dword [esi]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push eax
push ebp
push str.BUTTON
push ebp
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x427daa
push dword [esp + 0x128]
push dword [0x7b3a54]
call fcn.004380be
mov edi, dword [esp + 0x13c]
mov esi, eax
mov dword [esi + 0x10], edi
test edi, edi
je 0x427d79
push edi
call fcn.00433c6d
test eax, eax
je 0x427d79
push ebp
push ebp
push edi
call fcn.004338dc
mov dword [esi + 0x18], eax
jmp 0x427d7c
mov dword [esi + 0x18], ebp
push 0x427848
push 0xfffffffffffffffc
push ebx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x7b1730
push ebx
push esi
push dword [esp + 0x134]
mov dword [0x7b172c], eax
call fcn.0042ca61
mov ebx, eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x114
ret 0x1c
Function at 0x42db2b
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
lea eax, [ebp - 0x208]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, dword [ebp + 8]
or eax, 0x4000
push eax
push 0x2b4
lea eax, [ebp - 0x4bc]
push eax
push 0
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov esp, ebp
pop ebp
ret 4

Function at 0x42db70
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x42dbec
cmp dword [0x7b3360], 1
je 0x42dbec
push ebx
mov ebx, 0x7b3368
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x7b3384]
and dword [0x7b338c], 0
mov dword [0x7b3388], esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x7b3380]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [0x7b3384]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x42dbe4
push 0
push dword [0x7b3364]
mov dword [0x7b3360], 1
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop esi
ret 4
Function at 0x42dead
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [0x7b2e88], 0
jne 0x42df7e
push ebx
push ebp
push esi
xor ebp, ebp
inc ebp
push 0x7b3a84
mov dword [0x7b2e88], ebp
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov eax, 0x640
push eax
push 8
push dword [0x7b07f4]
mov dword [0x7b334c], eax
mov dword [0x7b2e8c], 0x1f4
call esi
mov dword [0x7b335c], eax
mov eax, dword [0x7b2e8c]
add eax, eax
push eax
push 8
push dword [0x7b07f4]
call esi
xor ebx, ebx
mov dword [0x7b3358], eax
push 0x7b3368
mov dword [0x7b3350], ebx
mov dword [0x7b3354], ebp
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push ebp
push ebx
call esi
push ebx
push ebx
push ebp
push ebx
mov dword [0x7b3380], eax
call esi
mov dword [0x7b3384], eax
cmp dword [0x7b3380], ebx
je 0x42df75
test eax, eax
je 0x42df75
lea eax, [esp + 0xc]
mov dword [0x7b3360], ebx
push eax
push ebx
push ebx
push 0x42d930
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x7b3364], eax
jmp 0x42df7b
mov dword [0x7b3360], ebp
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x42df80
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x42e025
cmp dword [esp + 0xc], 0
je 0x42e025
cmp dword [0x7b3360], 1
je 0x42e025
push edi
push 0x1f
push 0
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov edi, eax
cmp edi, 0xffffffff
je 0x42e024
push ebp
mov ebp, 0x7b3368
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x7b3384]
mov dword [0x7b3388], esi
mov dword [0x7b338c], edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x7b3380]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [0x7b3384]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x42e01c
push 0
push dword [0x7b3364]
mov dword [0x7b3360], 1
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
pop edi
pop esi
ret 8
Function at 0x42e42c
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x42e574
xor ecx, ecx
cmp word [eax], cx
je 0x42e574
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x42e485
cmp eax, 3
jne 0x42e4bf
cmp word [esp + 0xa], 0x3a
jne 0x42e4bf
cmp eax, 2
jne 0x42e4a3
lea eax, [esp + 8]
push 0x50f580
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x42e574
push 0xfffffffffffffffe
pop edi
jmp 0x42e574
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x42e4d4
cmp ax, bx
jne 0x42e4de
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x42e4c7
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x42e51d
test byte [esp + 0x21c], 0x10
je 0x42e504
push 0xfffffffffffffffe
pop edi
jmp 0x42e514
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x42e572
cmp word [esp + 0x10], bp
jne 0x42e52b
cmp word [esp + 0x12], bp
je 0x42e54a
cmp word [esp + 0x10], bx
jne 0x42e539
cmp word [esp + 0x12], bx
je 0x42e54a
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x42e572
cmp word [esp + 0x12], ax
jne 0x42e572
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x42e55f
test al, 0x10
je 0x42e572
jmp 0x42e56f
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x42e572
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4

Function at 0x42e583
Capabilities:
Set file attributes

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
je 0x42e591
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 8