joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4094f0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x54
mov eax, dword [0x45e088]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
mov ebx, dword [esp + 0x6c]
mov eax, ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x68]
and eax, 0x7fffeff
or eax, 0xe0000000
mov ebp, ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp + 8]
push eax
mov eax, dword [esp + 0x70]
mov edx, eax
push dword [esp + 0x78]
or edx, 0x80000000
mov byte [ebp + 0x20], 1
push dword [esp + 0x78]
test eax, eax
cmovs edx, eax
mov eax, dword [esi + 0x30]
or edx, 0x40000000
push edx
push edi
call eax
shr ebx, 0x1c
lea esi, [ebp + 0x18]
not bl
mov byte [esp + 0x13], al
and bl, 1
movzx ecx, bl
push ecx
push dword [esp + 0x80]
push dword [ebp + 0xc]
push esi
call fcn.0041ea20
mov ecx, eax
call fcn.0041e6c0
mov bl, byte [esp + 0x13]
test bl, bl
je 0x4095b4
push 0x34
lea eax, [esp + 0x28]
push 0
push eax
call fcn.00423280
add esp, 0xc
lea eax, [esp + 0x24]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x4095b4
mov ecx, dword [esi]
push 0
push 0
push dword [esp + 0x4c]
add ecx, 0x18
push dword [esp + 0x54]
call fcn.0041ecf0
lea eax, [esp + 0x58]
mov ecx, 2
lea esi, [ecx + 1]
test edi, edi
je 0x4095df
movzx edx, word [edi]
lea edi, [edi + 2]
dec ecx
test dx, dx
je 0x4095df
sub esi, 1
je 0x4095df
mov word [eax], dx
add eax, 2
test ecx, ecx
jg 0x4095c4
xor ecx, ecx
mov word [eax], cx
xor eax, eax
mov word [esp + 0x5c], ax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x409615
mov eax, dword [esp + 0x14]
mov dword [ebp + 0x1c], eax
mov ecx, dword [esp + 0x60]
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00420cb2
add esp, 0x54
ret 0x18
Function at 0x40a730
Capabilities:
Terminate process

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov ecx, dword [esi + 0x2f4]
test ecx, ecx
je 0x40a809
mov ecx, dword [ecx + 0x35c]
or eax, 0xffffffff
test ecx, ecx
je 0x40a770
mov ecx, dword [ecx + 0x29c]
test ecx, ecx
je 0x40a770
push ecx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
jne 0x40a770
or eax, 0xffffffff
or ecx, 0xffffffff
mov dword [esp + 4], vtable.HandleClass.0
test eax, eax
cmovne ecx, eax
mov dword [esp + 8], ecx
cmp ecx, 0xffffffff
je 0x40a792
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov edi, dword [esi + 0x2f4]
mov eax, dword [edi + 0x1bc]
lea ecx, [edi + 0x1bc]
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x40a7c4
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x88]
mov eax, dword [edi]
mov ecx, edi
push 0xffffffffffffffff
call dword [eax + 0x94]
mov ecx, dword [esi + 0x2f4]
pop edi
test ecx, ecx
je 0x40a7d5
mov eax, dword [ecx]
push 1
call dword [eax]
lea ecx, [esp + 4]
mov dword [esi + 0x2f4], 0
mov dword [esp + 4], vtable.HandleClass.0
call fcn.0040fd80
test al, al
je 0x40a809
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 4]
lea ecx, [esp + 4]
call dword [eax + 0x1c]
mov al, 1
pop esi
add esp, 8
ret

Function at 0x40a9c0
Capabilities:
Delete registry value

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
push esi
mov esi, ecx
mov dword [esp + 8], 0
push edi
mov dword [esp + 0x10], 0
mov ecx, dword [esi + 0xc]
mov eax, dword [esi]
or ecx, 0xf003f
mov edi, dword [esi + 4]
cmp eax, 0x80000004
je 0x40aa1d
cmp eax, 0x80000050
je 0x40aa1d
lea edx, [esp + 0xc]
push edx
push ecx
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40aa21
push 0
push edi
push eax
mov ecx, ebx
call fcn.00414cf0
test al, al
je 0x40aa44
jmp 0x40aa21
mov dword [esp + 0xc], eax
push dword [esp + 0x18]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x40aa48
push 0
push dword [esi + 4]
mov ecx, ebx
push eax
call fcn.00414cf0
test al, al
jne 0x40aa48
xor bl, bl
jmp 0x40aa4a
mov bl, 1
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40aa59
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, bl
pop ebx
add esp, 8
ret 8
Function at 0x40b240
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x24]
test bl, 2
je 0x40b26c
push edi
push esi
call fcn.004155c0
add esp, 8
test al, al
jne 0x40b26c
pop edi
pop esi
pop ebx
add esp, 0x10
ret
test bl, 4
je 0x40b33e
test esi, esi
je 0x40b335
cmp word [esi], 0
je 0x40b335
lea eax, [esp + 0xc]
mov dword [esp + 0xc], vtable.ErrorClass.0
push eax
and bl, 1
mov dword [esp + 0x14], 0
movzx eax, bl
mov ecx, 0x45ffc8
push eax
push esi
mov dword [esp + 0x18], vtable.TextErrorClass.0
mov dword [esp + 0x20], 0x441510
mov dword [esp + 0x24], 0
call fcn.00413f80
sub eax, 1
je 0x40b2f0
sub eax, 1
je 0x40b324
push edi
push esi
call fcn.004127a0
add esp, 8
test al, al
je 0x40b316
mov eax, dword [0x4600d8]
test eax, eax
je 0x40b2f0
push 0
push esi
push 5
push 4
call eax
mov bl, 1
cmp dword [esp + 0x18], 0
mov dword [esp + 0xc], vtable.TextErrorClass.0
je 0x40b30d
push dword [esp + 0x14]
call fcn.00427100
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0x10
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
sete bl
jmp 0x40b2f2
mov eax, dword [edi]
mov ecx, edi
push dword [esp + 0x14]
mov eax, dword [eax + 4]
call eax
mov bl, al
jmp 0x40b2f2
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x10
ret
push edi
push esi
call fcn.004127a0
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x40b487
Capabilities:
Create process on windows

Disassembly:
cmp dword [0x46001c], 0
push esi
mov esi, ecx
je 0x40b583
mov eax, dword [esi + 0x14]
shr eax, 0x19
test al, 1
je 0x40b4bb
mov eax, dword [esi + 0x364]
test eax, eax
je 0x40b583
push eax
call dword [sym.imp.KERNEL32.dll_DebugActiveProcess]
test eax, eax
jne 0x40b54e
mov al, 1
pop esi
ret
mov eax, dword [esi + 0x35c]
test eax, eax
je 0x40b583
or dword [eax + 0x268], 3
mov ecx, dword [esi + 0x35c]
push ebx
lea eax, [ecx + 0x294]
push eax
lea eax, [ecx + 0x2b0]
push eax
push dword [ecx + 0x260]
push 0
push dword [ecx + 0x268]
push 1
push 0
push 0
push dword [ecx + 0x4c]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne bl
cmp byte [0x4e01d8], 0
je 0x40b53d
cmp byte [0x4e0220], 0
je 0x40b53d
mov eax, dword [esi + 0x35c]
push dword [eax + 0x294]
push str.CreateProcess:_Info.hProcess__p
push 0
push 8
push 0x460180
call fcn.004173d0
add esp, 0x14
push dword [esi + 0x350]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test bl, bl
pop ebx
je 0x40b583
movzx eax, byte [esi + 0x368]
push eax
call dword [0x46001c]
mov ecx, esi
call fcn.0040abf0
mov ecx, dword [esi + 0x364]
test ecx, ecx
je 0x40b583
mov eax, dword [0x460018]
test eax, eax
je 0x40b579
push ecx
call eax
mov dword [esi + 0x364], 0
mov al, 1
pop esi
ret
Function at 0x40b590
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x228
mov eax, dword [0x45e088]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [esp + 0x22c]
test eax, eax
je 0x40b634
cmp word [eax], 0
je 0x40b634
lea ecx, [esp + 0x14]
mov dword [esp], 0
mov dword [esp + 0x10], ecx
xor ecx, ecx
push 0x45b4e0
mov word [esp + 0x18], cx
lea ecx, [esp + 4]
push eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], 0x108
call fcn.004138a0
test al, al
je 0x40b62c
push ebx
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
lea ecx, [esp + 4]
setne bl
call fcn.0040be80
mov al, bl
pop ebx
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.00420cb2
add esp, 0x228
ret
lea ecx, [esp]
call fcn.0040be80
mov ecx, dword [esp + 0x224]
xor al, al
xor ecx, esp
call fcn.00420cb2
add esp, 0x228
ret

Function at 0x40d3e0
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push esi
mov esi, ecx
push edi
push dword [esi + 0xc]
push dword [esi + 0x10]
call ebx
test eax, eax
je 0x40d43e
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jb 0x40d455
lea edi, [eax + eax]
cmp edi, ecx
jbe 0x40d42f
mov eax, dword [esi]
shr eax, 0xa
test al, 1
jne 0x40d43e
cmp dword [esi + 0x10], 0
je 0x40d41b
mov ecx, esi
call fcn.0040be80
push 0
push edi
mov ecx, esi
call fcn.00410890
mov dword [esi + 0x10], eax
test eax, eax
je 0x40d446
mov dword [esi + 0xc], edi
mov dword [esi + 4], edi
push dword [esi + 0xc]
push dword [esi + 0x10]
call ebx
test eax, eax
jne 0x40d3f7
pop edi
pop esi
xor al, al
pop ebx
ret 4
pop edi
mov dword [esi + 0xc], 0
xor al, al
pop esi
pop ebx
ret 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40d469
push eax
mov ecx, esi
call fcn.00407220
test al, al
je 0x40d43e
pop edi
pop esi
mov al, 1
pop ebx
ret 4
Function at 0x40d650
Capabilities:
Get common file path

Disassembly:
sub esp, 0x228
mov eax, dword [0x45e088]
xor eax, esp
mov dword [esp + 0x224], eax
lea eax, [esp + 0x14]
mov dword [esp], 0
mov dword [esp + 0x10], eax
xor eax, eax
push ebx
push edi
mov word [esp + 0x1c], ax
mov edi, ecx
lea eax, [esp + 0x1c]
mov dword [esp + 0xc], 0
push eax
push 0x108
mov dword [esp + 0x18], 2
mov dword [esp + 0x1c], 0x108
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40d781
mov eax, dword [0x45ffe0]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
test eax, eax
je 0x40d6ca
push dword [edi + 0xc]
push dword [edi + 0x10]
push ebp
call eax
test eax, eax
jne 0x40d747
test ebp, ebp
je 0x40d73c
mov esi, ebp
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40d6d3
sub esi, ecx
sar esi, 1
je 0x40d73c
lea ebx, [esi + 1]
cmp ebx, dword [edi + 0xc]
jbe 0x40d716
mov eax, dword [edi]
shr eax, 0xa
test al, 1
jne 0x40d747
cmp dword [edi + 0x10], 0
je 0x40d702
mov ecx, edi
call fcn.0040be80
push 0
push ebx
mov ecx, edi
call fcn.00410890
mov dword [edi + 0x10], eax
test eax, eax
je 0x40d733
mov dword [edi + 0xc], ebx
add esi, esi
mov dword [edi + 4], ebx
push esi
push ebp
push dword [edi + 0x10]
call fcn.00422d00
mov eax, dword [edi + 0x10]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
jmp 0x40d747
mov dword [edi + 0xc], 0
jmp 0x40d747
mov eax, dword [edi + 0x10]
xor ecx, ecx
mov word [eax], cx
mov dword [edi + 4], ecx
mov edx, dword [edi + 0x10]
test edx, edx
je 0x40d764
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d753
sub ecx, esi
sar ecx, 1
jmp 0x40d766
xor ecx, ecx
test ecx, ecx
lea eax, [ecx - 1]
pop esi
cmove eax, ecx
pop ebp
cmp word [edx + eax*2], 0x5c
jne 0x40d77d
xor ecx, ecx
mov word [edx + eax*2], cx
mov bl, 1
jmp 0x40d783
xor bl, bl
lea ecx, [esp + 8]
call fcn.0040be80
mov ecx, dword [esp + 0x22c]
mov al, bl
pop edi
pop ebx
xor ecx, esp
call fcn.00420cb2
add esp, 0x228
ret
Function at 0x40e8a0
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
push dword [esi + 0xc]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x40e8be
mov eax, dword [esi + 0x10]
xor ecx, ecx
mov word [eax], cx
mov dword [esi + 4], ecx
mov eax, dword [esp + 8]
test eax, eax
je 0x40e8d6
push eax
mov ecx, esi
call fcn.00407220
test al, al
jne 0x40e8d6
pop esi
ret 4
mov al, 1
pop esi
ret 4

Function at 0x40f200
Capabilities:
Check os version
Get common file path
Get geographical location
Get system information on windows

Disassembly:
mov ecx, dword [0x4e241c]
mov eax, dword fs:[0x2c]
push esi
mov esi, dword [eax + ecx*4]
cmp dword [esi + 8], 0
jne 0x40f256
push 0x2e8
call fcn.004207ec
add esp, 4
test eax, eax
je 0x40f24e
push 0x1000
push 0x444e4746
push str.Foreground
push 0
mov ecx, eax
call fcn.00405510
mov dword [esi + 8], eax
pop esi
jmp fcn.0040de00
xor eax, eax
mov dword [esi + 8], eax
pop esi
jmp fcn.0040de00

Function at 0x40fbd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x228
mov eax, dword [0x45e088]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [esp + 0x22c]
lea ecx, [esp + 0x14]
push ebx
mov dword [esp + 0x14], ecx
xor ecx, ecx
push 0x45b4e0
mov word [esp + 0x1c], cx
lea ecx, [esp + 8]
push eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 0x108
call fcn.004138a0
test al, al
je 0x40fc45
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40fc45
test al, 1
je 0x40fc45
mov bl, 1
jmp 0x40fc47
xor bl, bl
lea ecx, [esp + 4]
call fcn.0040be80
mov ecx, dword [esp + 0x228]
mov al, bl
pop ebx
xor ecx, esp
call fcn.00420cb2
add esp, 0x228
ret

Function at 0x40fdc0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x45e088]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x114
lea eax, [esp + 4]
push 0
push eax
call fcn.00423280
add esp, 0xc
mov dword [esp], 0x114
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 6
jb 0x40fe1e
cmp dword [esp + 8], 2
jb 0x40fe1e
mov al, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00420cb2
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor al, al
xor ecx, esp
call fcn.00420cb2
add esp, 0x118
ret
Function at 0x410e10
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x18]
xorps xmm0, xmm0
push ebx
movups xmmword [esp + 4], xmm0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x20]
push esi
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 0x28]
mov dword [esp + 0x18], 0
mov dword [esp + 0x18], eax
lea eax, [esp + 8]
push eax
push 0
push dword [esp + 0x34]
push dword [esp + 0x34]
push dword [ecx + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
sete bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x410e90
cmp eax, 0x3e5
jne 0x410e90
push 0xffffffffffffffff
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0xc]
mov dword [eax], ecx
test bl, bl
jne 0x410ea2
pop esi
xor al, al
pop ebx
add esp, 0x14
ret 0x14
test bl, bl
jne 0x410e86
test eax, eax
jne 0x410e86
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0xc]
mov dword [eax], ecx
mov eax, dword [esp + 8]
test eax, eax
je 0x410eb5
cmp eax, 0x103
je 0x410eb5
test ecx, ecx
je 0x410e86
pop esi
mov al, 1
pop ebx
add esp, 0x14
ret 0x14

Function at 0x4114f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x1c]
push esi
mov esi, ecx
mov dword [esp + 8], 0
push edi
mov dword [esp + 0x10], 0
mov eax, dword [esi + 0xc]
mov edx, dword [esi]
or eax, 0x20019
mov edi, dword [esi + 4]
cmp edx, 0x80000004
je 0x411556
cmp edx, 0x80000050
je 0x411556
lea ecx, [esp + 0xc]
push ecx
push eax
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x411550
push 0
push edi
push eax
mov ecx, ebx
call fcn.00414cf0
test al, al
jne 0x411550
xor bl, bl
jmp 0x411598
mov edx, dword [esp + 0xc]
jmp 0x41155a
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x20]
lea eax, [esp + 0x28]
push eax
push 0
push dword [esp + 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x411596
push 0
push dword [esi + 4]
mov ecx, ebx
push eax
call fcn.00414cf0
test al, al
jne 0x411596
xor bl, bl
jmp 0x411598
mov bl, 1
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4115a7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, bl
pop ebx
add esp, 8
ret 0x10
Function at 0x4117e0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x20
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x284]
lea ecx, [ebp + 0x284]
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x4118fd
push 0
push dword [ebp + 0x288]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 4], eax
test eax, eax
je 0x4118fd
push ebx
push esi
push edi
xor esi, esi
mov dword [esp + 0x18], 0
mov ebx, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov edi, 0x441510
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], esi
test ebx, ebx
je 0x411876
push esi
push eax
lea ecx, [esp + 0x24]
call fcn.00410890
mov esi, eax
mov dword [esp + 0x2c], esi
test esi, esi
je 0x4118ca
mov eax, dword [esp + 0x10]
mov dword [esp + 0x28], ebx
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], ebx
push ecx
push eax
push esi
push dword [ebp + 0x288]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x411895
mov byte [esi], al
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
inc eax
push eax
call fcn.00412c90
test eax, eax
je 0x4118d4
mov ecx, dword [esp + 0x10]
push ecx
push esi
inc ecx
push ecx
push eax
call fcn.0040bef0
mov edi, dword [esp + 0x24]
lea ecx, [ebp + 0x34]
add esp, 0x10
push edi
call fcn.00406e70
mov bl, al
jmp 0x4118da
mov dword [esp + 0x28], 0
jmp 0x4118d8
mov edi, dword [esp + 0x14]
xor bl, bl
lea ecx, [esp + 0x1c]
call fcn.0040be80
cmp dword [esp + 0x18], 0
je 0x4118f3
push edi
call fcn.00427100
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
add esp, 0x20
ret
mov al, 1
pop ebp
add esp, 0x20
ret
Function at 0x4127a0
Capabilities:
Delete file
Set file attributes

Disassembly:
sub esp, 0x228
mov eax, dword [0x45e088]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
mov ebx, dword [esp + 0x234]
push esi
mov esi, dword [esp + 0x234]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call edi
test eax, eax
jne 0x41288a
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 3
je 0x4127f5
sub eax, 2
je 0x412873
sub eax, 0xc9
jne 0x4128ad
lea eax, [esp + 0x20]
mov dword [esp + 0xc], 0
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0xc]
push ebx
xor eax, eax
mov dword [esp + 0x14], 0
push esi
mov dword [esp + 0x1c], 2
mov dword [esp + 0x20], 0x108
mov word [esp + 0x28], ax
call fcn.004138a0
test al, al
je 0x4128a4
push 0x80
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4128a4
push dword [esp + 0x1c]
call edi
test eax, eax
je 0x4128a4
lea ecx, [esp + 0xc]
call fcn.0040be80
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.00420cb2
add esp, 0x228
ret
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4128ad
push esi
call edi
test eax, eax
je 0x4128ad
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.00420cb2
add esp, 0x228
ret
lea ecx, [esp + 0xc]
call fcn.0040be80
test esi, esi
mov edi, str.Function
cmovne edi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4128e8
mov eax, dword [ebx]
push edi
push str.Error_in___s_
push ebx
call dword [eax + 0x20]
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.00420cb2
add esp, 0x228
ret
push 0
push edi
push eax
mov ecx, ebx
call fcn.00414cf0
mov ecx, dword [esp + 0x230]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00420cb2
add esp, 0x228
ret
Function at 0x4143a0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x194
mov eax, dword [0x45e088]
xor eax, esp
mov dword [esp + 0x190], eax
push ebp
mov ebp, dword [esp + 0x1ac]
push esi
mov esi, dword [esp + 0x1a0]
push edi
mov edi, dword [esp + 0x1b0]
call fcn.0041b570
test al, al
je 0x41444c
test esi, esi
jne 0x4143e5
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
test esi, esi
je 0x414404
test edi, edi
je 0x4143ef
cmp word [edi], 0
jne 0x414404
push 0xc8
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea edi, [esp + 0xc]
push ebx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esp + 0x1ac]
mov ebx, eax
or ecx, 0x10000
push ecx
push edi
push ebp
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, eax
test ebx, ebx
je 0x414431
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00420cb2
add esp, 0x194
ret
mov eax, dword [esp + 0x1ac]
test eax, eax
jne 0x41448f
mov ecx, dword [esp + 0x1a8]
and ecx, 0xf
cmp ecx, 4
je 0x41448a
cmp ecx, 3
je 0x41448a
cmp ecx, 5
pop edi
sete al
pop esi
inc eax
pop ebp
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00420cb2
add esp, 0x194
ret
mov eax, 6
mov ecx, dword [esp + 0x19c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00420cb2
add esp, 0x194
ret

Function at 0x414dd0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x1bc]
lea ecx, [esi + 0x1bc]
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x414df6
push 0
push dword [esi + 0x1c0]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
ret
Function at 0x415290
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 8
mov edx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [esp + 0x10], edi
cmp ebp, 0xffffffff
jne 0x4152b2
xor ebx, ebx
jmp 0x4152cb
call edx
mov edx, dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ebx, [eax + ebp]
cmp ebx, eax
jae 0x4152cb
mov edi, eax
mov ebx, ebp
neg edi
mov dword [esp + 0x10], edi
mov ecx, dword [0x4e241c]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x14], eax
nop
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x5c]
cmp dword [eax], 0
je 0x4153ad
cmp ebp, 0xffffffff
jne 0x4152fe
mov edi, 0x7d0
jmp 0x415330
call edx
add eax, edi
cmp eax, ebx
jae 0x415316
mov ecx, ebx
mov edi, 0x1f4
sub ecx, eax
cmp ecx, edi
cmovb edi, ecx
jmp 0x415330
mov eax, dword [vtable.ErrorClass.0]
mov ecx, 0x45b4e0
push str.Command_time_out
xor edi, edi
mov eax, dword [eax + 4]
call eax
test al, al
je 0x4153ad
cmp dword [esi + 0x294], 0xffffffff
je 0x4153ad
mov ecx, esi
call fcn.004117e0
test al, al
je 0x4153ad
push edi
push dword [esi + 0x294]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push dword [esi + 0x294]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x415372
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x264], ecx
test edi, edi
je 0x4153a1
cmp edi, 0xffffffff
je 0x4153d3
cmp edi, 0x80
je 0x4153d3
cmp dword [esi + 0x264], 0x103
mov edi, dword [esp + 0x10]
mov edx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [esp + 0x14]
je 0x4152e0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 8
ret 4
lea eax, [esp + 0x1c]
push eax
push dword [esi + 0x294]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4153cc
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x264], eax
mov ecx, esi
call fcn.0040a730
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret 4