joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476909
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xcf24ca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ecx
push 0xffffffffffffffff
lea ecx, [ecx + 4]
call fcn.004775c1
mov edx, dword [ebp - 0x14]
mov dword [edx], 0xf448b4
xor eax, eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [ebp - 4], 0
xor eax, eax
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], eax
mov dword [ebp - 4], 1
xor eax, eax
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], eax
mov dword [edx + 0x28], eax
mov dword [ebp - 4], 2
xor eax, eax
mov dword [edx + 0x2c], eax
mov dword [edx + 0x30], eax
mov dword [edx + 0x34], eax
mov dword [ebp - 4], 3
xor eax, eax
mov dword [edx + 0x38], eax
mov dword [edx + 0x3c], eax
mov dword [edx + 0x40], eax
mov dword [ebp - 4], 4
xor eax, eax
mov dword [edx + 0x44], eax
mov dword [edx + 0x48], eax
mov dword [edx + 0x4c], eax
mov dword [ebp - 4], 5
xor eax, eax
mov dword [edx + 0x50], eax
mov dword [edx + 0x54], eax
mov dword [edx + 0x58], eax
mov dword [ebp - 4], 6
mov ecx, edx
mov dword [ecx + 0x5c], 0
call fcn.00476a69
mov ebx, eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x476a53
test ebx, ebx
jl 0x4769f7
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
push 0x104
lea ecx, [eax + 0x60]
push edx
push ecx
call 0xd2cd6d
add esp, 0xc
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x476a18
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp + 0x10]
lea esi, [eax + 0x164]
mov dl, byte [edi]
add edi, 1
mov byte [esi], dl
add esi, 1
test dl, dl
jne 0x476a0a
push ebx
push 0x92
push 0xd272dc
push 0xd26b80
push 6
call fcn.004783d9
add esp, 0x14
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov dword [edx], ebx
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
push 0xd272ec
push 1
call fcn.004783d9
add esp, 8
mov ebx, 0x80070057
jmp 0x4769f7
Function at 0x48dbe9
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xcf24ca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ecx
push 0xffffffffffffffff
lea ecx, [ecx + 4]
call fcn.0048e8a1
mov edx, dword [ebp - 0x14]
mov dword [edx], 0xf448b4
xor eax, eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [ebp - 4], 0
xor eax, eax
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], eax
mov dword [ebp - 4], 1
xor eax, eax
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], eax
mov dword [edx + 0x28], eax
mov dword [ebp - 4], 2
xor eax, eax
mov dword [edx + 0x2c], eax
mov dword [edx + 0x30], eax
mov dword [edx + 0x34], eax
mov dword [ebp - 4], 3
xor eax, eax
mov dword [edx + 0x38], eax
mov dword [edx + 0x3c], eax
mov dword [edx + 0x40], eax
mov dword [ebp - 4], 4
xor eax, eax
mov dword [edx + 0x44], eax
mov dword [edx + 0x48], eax
mov dword [edx + 0x4c], eax
mov dword [ebp - 4], 5
xor eax, eax
mov dword [edx + 0x50], eax
mov dword [edx + 0x54], eax
mov dword [edx + 0x58], eax
mov dword [ebp - 4], 6
mov ecx, edx
mov dword [ecx + 0x5c], 0
call fcn.0048dd49
mov ebx, eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x48dd33
test ebx, ebx
jl 0x48dcd7
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
push 0x104
lea ecx, [eax + 0x60]
push edx
push ecx
call 0xd4404d
add esp, 0xc
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x48dcf8
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp + 0x10]
lea esi, [eax + 0x164]
mov dl, byte [edi]
add edi, 1
mov byte [esi], dl
add esi, 1
test dl, dl
jne 0x48dcea
push ebx
push 0x92
push 0xd272dc
push 0xd26b80
push 6
call fcn.0048f6b9
add esp, 0x14
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov dword [edx], ebx
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
push 0xd272ec
push 1
call fcn.0048f6b9
add esp, 8
mov ebx, 0x80070057
jmp 0x48dcd7
Function at 0x4a4ca9
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xcf24ca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ecx
push 0xffffffffffffffff
lea ecx, [ecx + 4]
call fcn.004a5961
mov edx, dword [ebp - 0x14]
mov dword [edx], 0xf448b4
xor eax, eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [ebp - 4], 0
xor eax, eax
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], eax
mov dword [ebp - 4], 1
xor eax, eax
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], eax
mov dword [edx + 0x28], eax
mov dword [ebp - 4], 2
xor eax, eax
mov dword [edx + 0x2c], eax
mov dword [edx + 0x30], eax
mov dword [edx + 0x34], eax
mov dword [ebp - 4], 3
xor eax, eax
mov dword [edx + 0x38], eax
mov dword [edx + 0x3c], eax
mov dword [edx + 0x40], eax
mov dword [ebp - 4], 4
xor eax, eax
mov dword [edx + 0x44], eax
mov dword [edx + 0x48], eax
mov dword [edx + 0x4c], eax
mov dword [ebp - 4], 5
xor eax, eax
mov dword [edx + 0x50], eax
mov dword [edx + 0x54], eax
mov dword [edx + 0x58], eax
mov dword [ebp - 4], 6
mov ecx, edx
mov dword [ecx + 0x5c], 0
call fcn.004a4e09
mov ebx, eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x4a4df3
test ebx, ebx
jl 0x4a4d97
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
push 0x104
lea ecx, [eax + 0x60]
push edx
push ecx
call 0xd5b10d
add esp, 0xc
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4a4db8
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp + 0x10]
lea esi, [eax + 0x164]
mov dl, byte [edi]
add edi, 1
mov byte [esi], dl
add esi, 1
test dl, dl
jne 0x4a4daa
push ebx
push 0x92
push 0xd272dc
push 0xd26b80
push 6
call fcn.004a6779
add esp, 0x14
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov dword [edx], ebx
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
push 0xd272ec
push 1
call fcn.004a6779
add esp, 8
mov ebx, 0x80070057
jmp 0x4a4d97
Function at 0x10006089
Capabilities:
Resume thread

Disassembly:
push 0x10
mov eax, 0x10011324
call fcn.10010dbc
mov ebx, ecx
mov dword [ebp - 0x18], ebx
cmp byte [ebx + 4], 0
jne 0x100061ed
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, dword [ebx]
jne 0x100061ed
push 0x1000334a
push 0xd008
call fcn.10007073
mov edi, eax
mov dword [ebp - 0x1c], edi
pop ecx
pop ecx
test edi, edi
je 0x100061e6
push 0xc000
xor ebx, ebx
push ebx
push edi
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xc000], ebx
lea eax, [edi + 0xc004]
push 0x1000
push ebx
push eax
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xd004], ebx
test edi, edi
je 0x100061e6
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10007073
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.10007073
mov esi, eax
push esi
push 0x10003028
mov dword [ebp - 0x10], esi
call fcn.10007073
pop ecx
pop ecx
test esi, esi
jne 0x1000619a
mov ecx, edi
call fcn.10007073
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100061fa
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10014250]
mov ecx, dword [ebp - 0x14]
call esi
call fcn.10007073
test eax, eax
je 0x10006190
jg 0x10006175
mov esi, eax
mov dword [ebp - 0x10], eax
jmp 0x10006181
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x10], esi
push esi
push 0x10003050
call fcn.10007073
pop ecx
pop ecx
jmp 0x1000619a
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov byte [eax + 4], 1
lea ecx, [ebp - 0x1c]
call fcn.1000704c
lea eax, [edi + 0xc000]
mov dword [ebp - 0x1c], eax
cmp dword [eax], ebx
jbe 0x100061ce
lea esi, [edi + 8]
test byte [esi - 4], 1
je 0x100061c3
push dword [esi]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, dword [ebp - 0x1c]
inc ebx
add esi, 0xc
cmp ebx, dword [eax]
jb 0x100061b2
mov esi, dword [ebp - 0x10]
mov ecx, edi
call fcn.10007073
push 0xd008
push edi
call fcn.10007073
pop ecx
pop ecx
mov eax, esi
jmp 0x100061f2
mov eax, 0x8007000e
jmp 0x100061f2
mov eax, 0x800710dd
call fcn.10010d85
ret 4
call fcn.10007073
int3

Function at 0x10007073
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x10007082
pop dword [ebp - 8]
mov eax, 0x10007082
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x3a5ed
push 0
mov eax, 0x79d49cc
sub eax, 0xf79c0968
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0x4d5d
xor edi, edi
add edi, eax
mov edx, 0x10018600
add edx, dword [ebp - 8]
mov esi, 0x7f27b358
add esi, 0xe0586c7c
mov dword [ebp - 4], 0xa7ff6f1f
mov ebx, dword [edx]
xor ebx, esi
sub dword [ebp - 4], 0x5a6c7e27
mov dword [edi], ebx
sub dword [ebp - 4], 0x8976f6a7
add edi, 0x8785fedc
sub edi, 0x8785fed8
add edx, 0xa0270581
add edx, 0x5fd8fa83
loop 0x100070d2
add eax, 0x14fb1722
add eax, 0xeb061125
mov ebx, eax
add eax, 0x9cd8fe69
add eax, 0x6327019c
mov ecx, 0x10000000
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x40d5c4
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x40d619
push dword [esp + 0x10]
push 0x40d543
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x43c92c]
test esi, esi
je 0x40d672
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x40d611
cmp byte [esi + 0x10], 0
je 0x40d611
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x40d5ed
jmp 0x40d672
mov esi, dword [0x43c92c]
test esi, esi
je 0x40d672
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x40d66b
cmp byte [esi + 0x11], 0
je 0x40d647
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x40d65e
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push ebp
push 0x43c92c
call fcn.0041cab1
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x40d626
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x40ddbc
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, 0x1000
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebx, eax
cmp dword [esp + 0x24], 0x18
je 0x40de6b
cmp dword [esp + 0x24], 2
je 0x40de6b
push 0x2000
push edi
push dword [0x43c8bc]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
jmp 0x40de3e
cmp dword [esp + 0x18], 2
jne 0x40de56
test ebx, ebx
jne 0x40de27
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x43c8bc]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x40de56
cmp ax, 0xd
je 0x40de3e
mov word [esi + edi*2], ax
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x30]
call ebp
test eax, eax
jne 0x40ddfe
push dword [esp + 0x28]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.0041d970
jmp 0x40def1
push eax
push 0
push dword [0x43c8bc]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
jmp 0x40debd
cmp dword [esp + 0x18], 1
jne 0x40ded5
test ebx, ebx
jne 0x40deac
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x43c8bc]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x40ded5
cmp al, 0xd
je 0x40debd
mov byte [esi + edi], al
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [esp + 0x30]
call ebp
test eax, eax
jne 0x40de84
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x28]
mov byte [esi + edi], 0
push esi
jne 0x40deec
call fcn.0041d9c0
jmp 0x40def1
call fcn.0041da30
push esi
push 0
push dword [0x43c8bc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x40f7ae
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x43cfa0]
call fcn.0041c351
xor ebp, ebp
mov esi, eax
cmp dword [0x43caa8], ebp
jne 0x40f88a
xor ebx, ebx
inc ebx
mov dword [0x43caa8], ebx
call fcn.00412194
mov edi, 0xa4
push edi
push ebp
push 0x43cab0
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x43cab0], 0x13
lea eax, [esp + 0x10]
mov dword [0x43cab4], edi
mov dword [0x43cac0], 0x40f6f9
mov dword [0x43cac4], 0x40fa1f
push eax
mov dword [0x43cb18], 0x40f6d4
mov dword [0x43cb1c], 0x40f96a
mov dword [0x43cabc], 0x40f6af
mov dword [0x43cb40], 0x40f714
mov dword [0x43cb54], ebx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40f88a
cmp dword [esp + 0x20], ebx
je 0x40f872
cmp dword [esp + 0x20], 2
jne 0x40f88a
cmp dword [esp + 0x14], 5
jae 0x40f87a
mov dword [0x43cb54], ebp
jmp 0x40f88a
jne 0x40f88a
mov eax, dword [esp + 0x18]
neg eax
sbb eax, eax
and dword [0x43cb54], eax
mov eax, dword [esp + 0x140]
push ebp
push dword [0x43c8c0]
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 edi, eax
test edi, edi
je 0x40f93b
push dword [esp + 0x128]
push dword [0x43cfbc]
call fcn.0041c3e2
mov ebx, dword [esp + 0x13c]
mov esi, eax
mov dword [esi + 0x10], ebx
test ebx, ebx
je 0x40f90a
push ebx
call fcn.00417f19
test eax, eax
je 0x40f90a
push ebp
push ebp
push ebx
call fcn.00417b63
mov dword [esi + 0x18], eax
jmp 0x40f90d
mov dword [esi + 0x18], ebp
push 0x40f3ef
push 0xfffffffffffffffc
push edi
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [sym.imp.USER32.DLL_SetWindowLongW]
push 0x43cab0
push edi
push esi
push dword [esp + 0x134]
mov dword [0x43caac], eax
call fcn.00412118
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 0x1c

Function at 0x411c23
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x43cfbc]
call fcn.0041c3ba
mov ebx, eax
test ebx, ebx
je 0x411c87
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x411c4c
push dword [esp + 0xc]
push ebx
call eax
jmp 0x411c87
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.0041cdc0
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.0041cf90
pop edi
pop esi
pop ebx
ret 8
Function at 0x413f48
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov ebx, eax
test ebx, ebx
je 0x413fc2
push 9
call esi
test al, al
jns 0x413fc2
push 0x11
call esi
test al, al
js 0x413fc2
push 0x10
call esi
test al, al
js 0x413fc2
push 0x12
call esi
test al, al
js 0x413fc2
push 5
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.USER32.DLL_GetClassNameW]
push 4
lea eax, [ebp - 0x10]
push str.Rich
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x413fc2
push eax
push eax
push 0x44e
push ebx
call dword [sym.imp.USER32.DLL_SendMessageW]
test eax, 0x800
jne 0x413fc2
xor eax, eax
jmp 0x414043
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x413fea
push 0x11
call esi
test al, al
js 0x413fe2
push 0x10
call esi
test al, al
js 0x413fe2
push 0x12
call esi
test al, al
jns 0x413fea
push 1
push edi
call fcn.0041404b
mov esi, dword [sym.imp.USER32.DLL_GetPropW]
test ebx, ebx
je 0x414000
push str.PB_Hotkey
push ebx
call esi
test eax, eax
jne 0x414040
push str.PB_WindowID
push edi
call esi
mov esi, eax
test esi, esi
je 0x414040
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x414040
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 4], eax
jne 0x414040
lea eax, [esi - 1]
push eax
push dword [0x43cfcc]
call fcn.0041c3ba
test eax, eax
je 0x414040
mov eax, dword [eax + 8]
jmp 0x414042
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41436e
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x414397
test byte [esp + 8], 2
je 0x41438b
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x414399
xor eax, eax
ret 8
Function at 0x414461
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x43ce58]
push esi
test eax, eax
jne 0x414486
push fcn.0041458e
push 0x10
push 0x258
call fcn.0041c463
mov dword [0x43ce58], eax
push dword [esp + 0xc]
push eax
call fcn.0041c3e2
mov esi, eax
test esi, esi
je 0x414587
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x4144a8
mov edi, section..rdata
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x4144b8
xor eax, eax
cmp word [ebx], ax
jne 0x4144bd
mov ebx, 0x41e338
push edi
call sub.MSVCRT.dll_wcslen
push ebx
mov dword [esp + 0x24], eax
call sub.MSVCRT.dll_wcslen
add eax, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x43c8bc]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x41456e
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x41451e
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x414522
push 0x41e340
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x414522
mov edi, dword [esp + 0x18]
push ebx
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x414546
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x41455c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x41455a
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x43c8bc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x414585
cmp dword [esp + 0x14], 0xffffffff
je 0x414579
mov esi, dword [esp + 0x14]
push esi
push dword [0x43ce58]
call fcn.0041c380
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc
Function at 0x414756
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 0x414891
push ebp
xor ebp, ebp
cmp word [eax], bp
je 0x414890
push 0x104
push eax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x220], ax
lea eax, [esp + 0x18]
push eax
call sub.MSVCRT.dll_wcslen
mov ecx, eax
add esp, 0x10
lea eax, [esp + ecx*2 + 0xa]
cmp ecx, 2
je 0x4147b2
cmp ecx, 3
jne 0x4147ec
cmp word [esp + 0xe], 0x3a
jne 0x4147ec
cmp ecx, 2
jne 0x4147d0
lea eax, [esp + 0xc]
push 0x41e340
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x414890
push 0xfffffffffffffffe
pop edi
jmp 0x414890
push ebx
push 0x5c
pop ebx
movzx ecx, word [eax]
cmp cx, bx
je 0x4147fd
cmp ecx, 0x2f
jne 0x414807
xor ecx, ecx
mov word [eax], cx
sub eax, 2
jmp 0x4147f0
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x414848
test byte [esp + 0x21c], 0x10
je 0x41482d
push 0xfffffffffffffffe
pop edi
jmp 0x41483f
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
or esi, ebp
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x41488f
cmp word [esp + 0x10], bx
jne 0x414856
cmp word [esp + 0x12], bx
je 0x414867
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x41488f
cmp word [esp + 0x12], ax
jne 0x41488f
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x41487c
test al, 0x10
je 0x41488f
jmp 0x41488c
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x41488f
push 0xfffffffffffffffe
pop edi
pop ebx
pop ebp
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4

Function at 0x414990
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x4149cc
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4