joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409d20
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x466df4]
xor eax, esp
mov dword [esp + 0x114], eax
push pe_nt_image_headers32
lea eax, [esp + 8]
push 0
push eax
call fcn.00424c20
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 0x409d7e
cmp dword [esp + 8], 2
jb 0x409d7e
mov al, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00422f50
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor al, al
xor ecx, esp
call fcn.00422f50
add esp, 0x118
ret

Function at 0x40a520
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4429f8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x466df4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov ebx, dword [esi + 0xc]
lea eax, [esi + 4]
mov ecx, eax
mov dword [ebp - 4], 0
or ebx, 0xf003f
mov dword [ebp - 0x14], eax
call fcn.0040cea0
mov ecx, dword [ebp - 0x1c]
mov esi, dword [esi]
mov dword [ebp - 0x10], eax
test ecx, ecx
je 0x40a591
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], 0
cmp esi, 0x80000004
je 0x40a5c8
cmp esi, 0x80000050
je 0x40a5c8
lea ecx, [ebp - 0x1c]
push ecx
push ebx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40a5cb
mov ecx, dword [ebp + 0xc]
push 0
push dword [ebp - 0x10]
push eax
call fcn.00405b50
test al, al
je 0x40a5f5
jmp 0x40a5cb
mov dword [ebp - 0x1c], esi
push dword [ebp + 8]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
test esi, esi
je 0x40a5f9
mov ecx, dword [ebp - 0x14]
push 0
call fcn.0040cea0
mov ecx, dword [ebp + 0xc]
push eax
push esi
call fcn.00405b50
test al, al
jne 0x40a5f9
xor bl, bl
jmp 0x40a5fb
mov bl, 1
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40a609
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40a690
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4429f8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x466df4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov ebx, dword [esi + 0xc]
lea eax, [esi + 4]
mov ecx, eax
mov dword [ebp - 4], 0
or ebx, 0x20019
mov dword [ebp - 0x14], eax
call fcn.0040cea0
mov ecx, dword [ebp - 0x1c]
mov esi, dword [esi]
mov dword [ebp - 0x10], eax
test ecx, ecx
je 0x40a701
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], 0
cmp esi, 0x80000004
je 0x40a73f
cmp esi, 0x80000050
je 0x40a73f
lea ecx, [ebp - 0x1c]
push ecx
push ebx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40a73a
mov ecx, dword [ebp + 0xc]
push 0
push dword [ebp - 0x10]
push eax
call fcn.00405b50
test al, al
jne 0x40a73a
xor bl, bl
jmp 0x40a780
mov esi, dword [ebp - 0x1c]
jmp 0x40a742
mov dword [ebp - 0x1c], esi
push 0
push 0
push 0
push 0
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x40a75e
mov bl, 1
jmp 0x40a780
cmp esi, 2
jne 0x40a767
xor bl, bl
jmp 0x40a780
mov ecx, dword [ebp - 0x14]
push 0
call fcn.0040cea0
mov ecx, dword [ebp + 0xc]
push eax
push esi
call fcn.00405b50
test al, al
setne bl
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40a78e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40a8c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4429f8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x466df4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov ebx, dword [esi + 0xc]
lea eax, [esi + 4]
mov ecx, eax
mov dword [ebp - 4], 0
or ebx, 0x20019
mov dword [ebp - 0x14], eax
call fcn.0040cea0
mov ecx, dword [ebp - 0x1c]
mov esi, dword [esi]
mov dword [ebp - 0x10], eax
test ecx, ecx
je 0x40a931
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], 0
cmp esi, 0x80000004
je 0x40a96f
cmp esi, 0x80000050
je 0x40a96f
lea ecx, [ebp - 0x1c]
push ecx
push ebx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40a96a
mov ecx, dword [ebp + 0x14]
push 0
push dword [ebp - 0x10]
push eax
call fcn.00405b50
test al, al
jne 0x40a96a
xor bl, bl
jmp 0x40a9b3
mov esi, dword [ebp - 0x1c]
jmp 0x40a972
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x40a9b1
mov ecx, dword [ebp - 0x14]
push 0
call fcn.0040cea0
mov ecx, dword [ebp + 0x14]
push eax
push esi
call fcn.00405b50
test al, al
jne 0x40a9b1
xor bl, bl
jmp 0x40a9b3
mov bl, 1
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40a9c1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40b720
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442b28
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
mov eax, dword [0x466df4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [esi + 0xc]
lea ecx, [esi + 4]
or eax, 0x20006
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], eax
call fcn.0040cea0
mov esi, dword [esi]
mov ebx, eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40b78a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], 0
cmp esi, 0x80000004
je 0x40b7c1
cmp esi, 0x80000050
je 0x40b7c1
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x10]
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40b7c4
mov ecx, dword [ebp + 0x14]
push 0
push ebx
push eax
call fcn.00405b50
test al, al
je 0x40b7f0
jmp 0x40b7c4
mov dword [ebp - 0x18], esi
push dword [ebp + 0x10]
mov esi, dword [ebp + 8]
push dword [ebp + 0xc]
push dword [ebp + 0x18]
push 0
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40b7f4
mov ecx, dword [ebp + 0x14]
push 0
push esi
push eax
call fcn.00405b50
test al, al
jne 0x40b7f4
xor bl, bl
jmp 0x40b7f6
mov bl, 1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40b804
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x40b870
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442b58
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x466df4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 0x20]
cmp eax, 1
je 0x40b96a
cmp eax, 2
je 0x40b96a
cmp eax, 7
jne 0x40b944
push 1
lea ecx, [ebp - 0x20]
call fcn.004031f0
push dword [edi + 0x30]
mov dword [ebp - 4], 0
call fcn.0040bcc0
add esp, 4
mov dword [ebp + 0xc], eax
lea ecx, [ebp - 0x20]
push 0
push eax
call fcn.004032d0
test al, al
je 0x40b91d
push dword [ebp + 0xc]
mov esi, dword [ebp - 0x10]
push dword [edi + 0x30]
push esi
call fcn.004246a0
push 0
push 0xa
push esi
call fcn.0040c6d0
add esp, 0x18
mov ecx, ebx
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push esi
push dword [edi + 0x20]
push dword [ebp + 8]
call fcn.0040b6e0
mov bl, al
jmp 0x40b91f
xor bl, bl
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 2
call fcn.004032b0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0x10]
push dword [edi + 0x1c]
push dword [edi + 0x30]
push eax
push dword [ebp + 8]
call fcn.0040b6e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [edi + 0x30]
push esi
call fcn.0040bcc0
add esp, 4
push eax
push esi
push dword [edi + 0x20]
mov esi, dword [ebp + 8]
push 0
push esi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40b9b1
mov ecx, dword [ebp + 0x10]
push 0
push esi
push eax
call fcn.00405b50
test al, al
jne 0x40b9b1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40eb40
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442f79
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push edi
mov eax, dword [0x466df4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push dword [ebp + 8]
call fcn.00406f60
mov dword [ebx + 0x18], 0x4477bc
mov dword [ebx + 0x1c], 0
push 0
lea ecx, [ebx + 0x20]
mov dword [ebp - 4], 0
mov dword [ebx], vtable.StatusClass.0
call fcn.004039b0
lea ecx, [ebx + 0x28]
call fcn.004039e0
movsd xmm0, qword [0x445ec8]
movsd qword [ebx + 0x30], xmm0
xorps xmm0, xmm0
movups xmmword [ebx + 0x38], xmm0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x50], 0x4477bc
mov dword [ebx + 0x54], 0
lea ecx, [ebx + 0x58]
mov byte [ebp - 4], 1
push 0
mov dword [ebp + 8], ecx
mov dword [ecx], 0
call fcn.004148c0
push 0xfa0
lea ecx, [ebx + 0x5c]
mov byte [ebp - 4], 2
call fcn.004036b0
push dword [ebp + 0xc]
lea eax, [ebx + 0x64]
mov byte [ebp - 4], 3
mov ecx, ebx
mov dword [eax], 1
mov dword [ebx + 0x68], eax
call fcn.00406ee0
push dword [ebp + 0xc]
lea ecx, [ebx + 0x50]
call fcn.0040cc50
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4111e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x294]
cmp eax, 0xffffffff
je 0x4111ff
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x294], 0xffffffff
mov eax, dword [esi + 0x298]
cmp eax, 0xffffffff
je 0x41121b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x298], 0xffffffff
mov ecx, esi
pop esi
jmp fcn.00416450
Function at 0x4119b0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443338
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x466df4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebx + 0xe8]
lea ecx, [ebx + 0xe8]
call dword [eax + 0x18]
lea ecx, [ebx + 0x20]
call fcn.00404f90
cmp byte [ebx + 0x270], 0
je 0x411a91
mov ecx, dword [0x4eb0dc]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
lea ecx, [ebp - 0x18]
mov eax, dword [eax + 4]
mov esi, dword [eax + 0x68]
lea eax, [ebx + 0x5c]
push eax
call fcn.00403750
mov edi, dword [ebx + 0x68]
lea ecx, [ebp - 0x18]
mov dword [ebx + 0x68], esi
call fcn.004037d0
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x80]
call eax
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
mov bl, al
lea eax, [esi + 0x5c]
push eax
call fcn.00403750
lea ecx, [ebp - 0x20]
mov dword [esi + 0x68], edi
call fcn.004037d0
movzx eax, bl
mov ebx, esi
mov dword [ebx + 0x138], eax
test eax, eax
jne 0x411a89
mov esi, dword [ebp + 8]
lea ecx, [ebx + 0xf0]
push eax
mov edi, dword [esi]
call fcn.0040cea0
push eax
mov ecx, esi
call dword [edi + 4]
mov eax, dword [ebx + 0x138]
test eax, eax
setne al
jmp 0x411b1e
mov esi, dword [ebx + 0x1cc]
lea eax, [ebx + 0x26c]
push eax
push 4
push ebx
push 0x417530
push dword [ebx + 0x268]
push 0
call fcn.0043365f
add esp, 0x18
lea ecx, [ebx + 0x1cc]
push eax
call dword [esi + 8]
mov eax, dword [ebx + 0x1cc]
lea ecx, [ebx + 0x1cc]
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x411b0d
mov eax, dword [ebx + 0x264]
cmp eax, 3
jge 0x411af3
push dword [eax*4 + 0x44c2ac]
push dword [ebx + 0x1d0]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [ebx + 0x14]
shr eax, 0xb
not al
test al, 1
je 0x411b22
push dword [ebx + 0x1d0]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x411b22
mov ecx, dword [ebp + 8]
push 0
push str.Cannot_create_thread
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test al, al
je 0x411b77
cmp byte [ebp + 0xc], 0
je 0x411b61
mov al, byte [ebx + 0x16]
not al
test al, 1
je 0x411b61
cmp byte [ebx + 0x270], 0
jne 0x411b61
push 0x4695ec
lea ecx, [ebp - 0x28]
call fcn.00403750
push ebx
mov ecx, 0x46617c
mov dword [ebp - 4], 0
call fcn.00407010
lea ecx, [ebp - 0x28]
call fcn.004037d0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x411b90
Capabilities:
Get disk size

Disassembly:
sub esp, 0x54
mov eax, dword [0x466df4]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
mov ebx, dword [esp + 0x6c]
mov eax, ebx
push ebp
mov ebp, dword [esp + 0x60]
and eax, 0x7fffeff
push esi
push edi
or eax, 0xe0000000
mov edi, ecx
mov esi, dword [edi + 8]
lea ecx, [edi + 8]
push eax
mov eax, dword [esp + 0x70]
mov edx, eax
push dword [esp + 0x78]
or edx, 0x80000000
mov byte [edi + 0x20], 1
push dword [esp + 0x78]
test eax, eax
cmovs edx, eax
mov eax, dword [esi + 0x30]
or edx, 0x40000000
push edx
push ebp
call eax
shr ebx, 0x1c
lea esi, [edi + 0x18]
not bl
mov byte [esp + 0x13], al
and bl, 1
movzx ecx, bl
push ecx
push dword [esp + 0x80]
push dword [edi + 0xc]
push esi
call fcn.004202c0
mov ecx, eax
call fcn.0041ff70
mov bl, byte [esp + 0x13]
test bl, bl
je 0x411c54
push 0x34
lea eax, [esp + 0x28]
push 0
push eax
call fcn.00424c20
add esp, 0xc
lea eax, [esp + 0x24]
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x411c54
mov ecx, dword [esi]
push 0
push 0
push dword [esp + 0x4c]
add ecx, 0x18
push dword [esp + 0x54]
call fcn.00420580
push 2
push ebp
lea eax, [esp + 0x60]
push 3
push eax
call fcn.0040bb00
xor eax, eax
add esp, 0x10
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 0x411c97
mov eax, dword [esp + 0x14]
mov dword [edi + 0x1c], eax
mov ecx, dword [esp + 0x60]
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00422f50
add esp, 0x54
ret 0x18
Function at 0x4124d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4433cb
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x466df4]
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
mov edi, ecx
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
cmp ecx, 3
je 0x412524
push dword [ebp + 0x18]
mov eax, dword [edi]
push ecx
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp + 0xc]
mov eax, dword [eax + 0x30]
push esi
call eax
jmp 0x4125ff
test esi, esi
je 0x4125fd
cmp word [esi], 0
je 0x4125fd
push 0
push 0x108
push 2
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x26c]
call fcn.00403220
mov eax, dword [ebp - 0x25c]
xor ecx, ecx
mov word [eax], cx
push 0x465210
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x26c]
push esi
call fcn.004089e0
test al, al
je 0x4125eb
push 0x38
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.00424c20
add esp, 0xc
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4125af
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x25c]
call fcn.00433500
add esp, 8
test eax, eax
je 0x4125af
xor bl, bl
jmp 0x4125b1
mov bl, 1
lea ecx, [ebp - 0x26c]
mov dword [ebp - 4], 1
call fcn.004032b0
mov dword [ebp - 4], 0xffffffff
test bl, bl
je 0x4125fd
push dword [ebp + 0x18]
mov eax, dword [edi]
mov ecx, edi
push 4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov eax, dword [eax + 0x30]
push esi
call eax
test al, al
je 0x4125fd
mov al, 1
jmp 0x4125ff
lea ecx, [ebp - 0x26c]
mov dword [ebp - 4], 2
call fcn.004032b0
xor al, al
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.00422f50
mov esp, ebp
pop ebp
ret 0x14
Function at 0x412b50
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4434a8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x466df4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x2f4]
test ecx, ecx
je 0x412c4e
mov ecx, dword [ecx + 0x374]
or eax, 0xffffffff
test ecx, ecx
je 0x412bb3
mov ecx, dword [ecx + 0x29c]
test ecx, ecx
je 0x412bb3
push ecx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
jne 0x412bb3
or eax, 0xffffffff
or ecx, 0xffffffff
mov dword [ebp - 0x14], vtable.HandleClass.0
test eax, eax
cmovne ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
cmp ecx, 0xffffffff
je 0x412bda
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, dword [esi + 0x2f4]
mov eax, dword [edi + 0x1cc]
lea ecx, [edi + 0x1cc]
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x412c08
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x7c]
mov eax, dword [edi]
mov ecx, edi
push 0xffffffffffffffff
call dword [eax + 0x88]
mov ecx, dword [esi + 0x2f4]
test ecx, ecx
je 0x412c18
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x2f4], 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], vtable.HandleClass.0
call fcn.00414da0
test al, al
je 0x412c4e
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
call dword [eax + 0x1c]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x413600
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443548
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x466df4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
test bl, 2
je 0x413656
push edi
push esi
call fcn.00417bc0
add esp, 8
test al, al
jne 0x413656
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test bl, 4
je 0x413718
test esi, esi
je 0x413704
cmp word [esi], 0
je 0x413704
lea ecx, [ebp - 0x1c]
call fcn.0040c780
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
push eax
and bl, 1
mov ecx, 0x468998
movzx eax, bl
push eax
push esi
call fcn.00406880
sub eax, 1
je 0x4136c0
sub eax, 1
je 0x4136ec
push edi
push esi
call fcn.00416710
add esp, 8
test al, al
je 0x4136de
mov eax, dword [0x468aac]
test eax, eax
je 0x4136c0
push 0
push esi
push 5
push 4
call eax
mov bl, 1
lea ecx, [ebp - 0x1c]
call fcn.0040c7e0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
sete bl
jmp 0x4136c2
mov esi, dword [edi]
lea ecx, [ebp - 0x14]
push 0
call fcn.0040cea0
push eax
mov eax, dword [esi + 4]
mov ecx, edi
call eax
mov bl, al
jmp 0x4136c2
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push esi
call fcn.00416710
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x413857
Capabilities:
Create process on windows

Disassembly:
cmp dword [0x4689f0], 0
push esi
mov esi, ecx
je 0x413953
mov eax, dword [esi + 0x14]
shr eax, 0x19
test al, 1
je 0x41388b
mov eax, dword [esi + 0x37c]
test eax, eax
je 0x413953
push eax
call dword [sym.imp.KERNEL32.dll_DebugActiveProcess]
test eax, eax
jne 0x41391e
mov al, 1
pop esi
ret
mov eax, dword [esi + 0x374]
test eax, eax
je 0x413953
or dword [eax + 0x268], 3
mov ecx, dword [esi + 0x374]
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 [0x4ea458], 0
je 0x41390d
cmp byte [0x4ea4a0], 0
je 0x41390d
mov eax, dword [esi + 0x374]
push dword [eax + 0x294]
push str.CreateProcess:_Info.hProcess__p
push 0
push 8
push 0x46a400
call fcn.00419900
add esp, 0x14
push dword [esi + 0x368]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test bl, bl
pop ebx
je 0x413953
movzx eax, byte [esi + 0x380]
push eax
call dword [0x4689f0]
mov ecx, esi
call fcn.00412e30
mov ecx, dword [esi + 0x37c]
test ecx, ecx
je 0x413953
mov eax, dword [0x4689ec]
test eax, eax
je 0x413949
push ecx
call eax
mov dword [esi + 0x37c], 0
mov al, 1
pop esi
ret
Function at 0x413960
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44357b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x466df4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
test esi, esi
je 0x413a12
cmp word [esi], 0
je 0x413a12
push 0
push 0x108
push 2
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x234]
call fcn.00403220
mov eax, dword [ebp - 0x224]
xor ecx, ecx
mov word [eax], cx
push 0x465210
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x234]
push esi
call fcn.004089e0
test al, al
je 0x413a00
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], 1
call fcn.004032b0
mov al, bl
jmp 0x413a14
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], 2
call fcn.004032b0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00422f50
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44357b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x466df4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x220]
push 0
push 0x108
push 2
push eax
lea ecx, [ebp - 0x234]
call fcn.00403220
mov eax, dword [ebp - 0x224]
xor ecx, ecx
mov word [eax], cx
push 0x465210
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x234]
push esi
call fcn.004089e0
test al, al
je 0x414d67
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x414d67
test al, 1
je 0x414d67
mov bl, 1
jmp 0x414d69
xor bl, bl
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], 2
call fcn.004032b0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00422f50
mov esp, ebp
pop ebp
ret