joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4020e0
Capabilities:
Get file size

Disassembly:
mov eax, 0x421cfc
call fcn.0041410c
mov edx, dword [section..data]
sub esp, 0x50
mov eax, edx
not eax
and eax, 0x177
push ebx
neg eax
sbb eax, eax
or dword [0x42e004], 0x278
mov ebx, ecx
mov ecx, 0x80000000
and eax, ecx
push ebp
add eax, ecx
shr edx, 1
push esi
or edx, eax
test dword [ebx + 0x44], 0x1000000
push edi
mov edi, dword [esp + 0x74]
mov dword [section..data], edx
je 0x4022fa
xor esi, esi
xor eax, eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov ebp, esi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], esi
mov word [esp + 0x18], ax
mov dword [esp + 0x68], esi
lea eax, [esp + 0x48]
push edi
push eax
call fcn.00404523
mov byte [esp + 0x70], 1
lea ecx, [esp + 0x20]
push ecx
push eax
lea eax, [esp + 0x40]
push eax
call fcn.004078df
add esp, 0x14
mov byte [esp + 0x68], 3
push esi
push 1
lea ecx, [esp + 0x50]
call fcn.00401c39
mov byte [esp + 0x68], 4
push esi
push 1
lea ecx, [esp + 0x20]
call fcn.00401c39
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00407fbd
pop ecx
pop ecx
test al, al
je 0x4022e9
cmp dword [esp + 0x44], 8
lea eax, [ebx + 0xf0]
push eax
lea esi, [esp + 0x34]
cmovae esi, dword [esp + 0x34]
push 1
mov ecx, ebx
call fcn.0040e6e9
push ebp
push 0x80
push 3
push ebp
push 1
push 0x80000000
push esi
call dword [eax]
mov esi, eax
xor eax, eax
mov dword [esp + 0x10], esi
cmp esi, 0xffffffff
je 0x4022ba
lea eax, [ebx + 0x2f4]
push eax
push 1
mov ecx, ebx
call fcn.0040e6e9
xor ecx, ecx
push ecx
push ecx
push ecx
push 2
push ecx
push esi
call dword [eax]
mov dword [esp + 0x74], eax
cmp eax, 0xffffffff
je 0x4022c1
lea eax, [ebx + 0x80]
push eax
push 1
mov ecx, ebx
call fcn.0040e6e9
xor ecx, ecx
push ecx
push ecx
push ecx
push 4
push dword [esp + 0x84]
call dword [eax]
push ebp
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x164
mov esi, eax
call fcn.0041377a
pop ecx
mov dword [esp + 0x14], eax
mov byte [esp + 0x68], 5
test eax, eax
je 0x40226d
push ebp
push esi
push ebx
mov ecx, eax
call fcn.00404c31
mov esi, eax
jmp 0x40226f
xor esi, esi
mov byte [esp + 0x68], 4
test byte [esi], 0x80
jne 0x40228f
cmp dword [esi + 4], 0
je 0x40228f
mov ecx, esi
call fcn.00404e15
push esi
call fcn.00408513
pop ecx
jmp 0x4022a7
mov ebp, dword [esi + 0xc]
lea eax, [esp + 0x14]
push eax
mov ecx, 0x430eb4
mov dword [esp + 0x18], ebp
call fcn.00401742
mov dword [eax], esi
test ebx, ebx
je 0x4022b2
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x74]
mov esi, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
je 0x4022cd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x4022e7
or dword [esp + 0x68], 0xffffffff
push 0
push 1
lea ecx, [esp + 0x38]
call fcn.00401c39
mov eax, ebp
jmp 0x402309
xor esi, esi
or dword [esp + 0x68], 0xffffffff
push esi
push 1
lea ecx, [esp + 0x38]
call fcn.00401c39
cmp dword [edi + 0x14], 0x10
jb 0x402302
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x405b5c
Capabilities:
Parse pe header

Disassembly:
push 8
push 0x42b348
call fcn.00414130
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
lea edi, [esi + 0x28]
push dword [ebp + 0xc]
push 0x40
push ebx
push edi
call dword [ebp + 8]
add esp, 0x10
test al, al
je 0x405d3e
or dword [ebp - 4], 0xffffffff
mov edx, dword [0x42e0fc]
shl edx, 0xd
or edx, 0x146001
mov dword [0x42e0fc], edx
jne 0x405baf
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x42e0fc]
inc edx
mov eax, 0x206
cmove edx, eax
mov dword [0x42e0fc], edx
test edx, edx
jne 0x405bcf
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x42e0fc]
mov eax, 0x1e3
cmp edx, eax
cmove edx, eax
mov ecx, dword [0x42e0f8]
mov eax, ecx
not eax
and eax, 0x177
neg eax
sbb eax, eax
mov ebx, 0x80000000
and eax, ebx
add eax, ebx
shr ecx, 1
or ecx, eax
mov eax, ecx
not eax
and eax, 0x177
neg eax
sbb eax, eax
and eax, ebx
add eax, ebx
shr ecx, 1
or ecx, eax
mov eax, ecx
not eax
and eax, 0x177
neg eax
sbb eax, eax
and eax, ebx
add eax, ebx
shr ecx, 1
or ecx, eax
inc edx
mov eax, 0xc1
cmove edx, eax
mov dword [0x42e0fc], edx
mov eax, ecx
not eax
and eax, 0x177
neg eax
sbb eax, eax
and eax, ebx
add eax, ebx
shr ecx, 1
or ecx, eax
mov dword [0x42e0f8], ecx
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x405d2d
cmp dword [esi + 0x64], 0
je 0x405d2d
mov dword [ebp - 4], 1
lea edi, [esi + 0x68]
push dword [ebp + 0xc]
push 0xf8
push dword [esi + 0x64]
push edi
call dword [ebp + 8]
add esp, 0x10
test al, al
je 0x405d3e
or dword [ebp - 4], 0xffffffff
cmp dword [edi], 0x4550
jne 0x405d2d
mov eax, 0x10b
cmp word [esi + 0x80], ax
jne 0x405d2d
movzx eax, word [esi + 0x6e]
test ax, ax
je 0x405d2d
mov edi, eax
imul edi, edi, 0x28
mov eax, dword [0x42e0f8]
mov ecx, eax
not ecx
and ecx, 0x177
neg ecx
sbb ecx, ecx
neg ecx
add eax, eax
or eax, ecx
mov dword [0x42e0f8], eax
mov dword [0x42e0fc], 0x3b2
movzx ecx, word [esi + 0x7c]
mov ebx, dword [esi + 0x64]
add ecx, 0x18
add ebx, ecx
push edi
call fcn.00415435
pop ecx
mov dword [esi + 0x160], eax
test eax, eax
jne 0x405d02
push 8
jmp 0x405d44
mov dword [ebp - 4], 2
push dword [ebp + 0xc]
push edi
push ebx
push eax
call dword [ebp + 8]
add esp, 0x10
test al, al
je 0x405d3e
or dword [ebp - 4], 0xffffffff
lea eax, [ebx + edi]
mov dword [esi + 0x10], eax
xor eax, eax
jmp 0x405d45
push 0xb
jmp 0x405d44
or dword [ebp - 4], 0xffffffff
push 0x1e
pop eax
call fcn.0041416b
ret 8

Function at 0x4082aa
Capabilities:
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
not ecx
jmp 0x4082e4
movzx eax, byte [edi]
movzx edx, cl
xor edx, eax
push 8
dec esi
inc edi
pop eax
test dl, 1
je 0x4082d8
shr edx, 1
xor edx, 0xedb88320
jmp 0x4082da
shr edx, 1
dec eax
test eax, eax
jg 0x4082c9
shr ecx, 8
xor ecx, edx
test esi, esi
jne 0x4082bc
not ecx
pop edi
mov eax, ecx
pop esi
ret
Function at 0x40a4fc
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x10]
push ebx
push esi
mov esi, dword [esp + 0x14]
shr ecx, 2
shr esi, 2
lea ebx, [eax + ecx*4]
test ecx, ecx
je 0x40a52a
add edx, 0x5b00b610
xor edx, dword [0x42f660]
dec ecx
jne 0x40a51b
test esi, esi
je 0x40a593
mov ecx, dword [0x42e174]
push ebp
push edi
mov edi, dword [0x42e170]
mov ebp, 0x80000000
xor dword [ebx], edx
or ecx, 0x39b
inc ecx
mov eax, 0x1e5
cmove ecx, eax
inc ecx
mov eax, 0x13c
cmove ecx, eax
mov eax, edi
not eax
and eax, 0x177
or ecx, 0x7b
neg eax
sbb eax, eax
and eax, ebp
add eax, ebp
shr edi, 1
add edx, 0x5b00b610
xor edx, dword [0x42f660]
or edi, eax
lea ebx, [ebx + 4]
dec esi
jne 0x40a541
mov dword [0x42e170], edi
pop edi
mov dword [0x42e174], ecx
pop ebp
pop esi
pop ebx
ret
Function at 0x40b7c3
Capabilities:
Check if file exists
Delete file
Get common file path
Move file

Disassembly:
mov eax, 0x42212f
call fcn.0041410c
sub esp, 0x14c
push ebx
push edi
mov edi, dword [esp + 0x168]
push 0
push edi
call fcn.00411434
xor ebx, ebx
pop ecx
inc ebx
pop ecx
test al, al
jne 0x40b812
push ebx
push edi
call fcn.00411434
pop ecx
pop ecx
test al, al
jne 0x40b812
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40b9a8
cmp eax, 3
je 0x40b9a8
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40b9a8
xor ecx, ecx
push 0xf
pop eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
mov byte [esp + 8], cl
mov dword [esp + 0x15c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
mov byte [esp + 0x20], cl
mov byte [esp + 0x15c], bl
lea eax, [esp + 0x50]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40b88a
lea eax, [esp + 0x50]
push eax
call fcn.00402826
pop ecx
push eax
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x10]
call fcn.004023b0
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x40b8dd
cmp dword [esp + 0x1c], 0x10
lea eax, [esp + 8]
cmovae eax, dword [esp + 8]
cmp byte [eax + ecx - 1], 0x5c
jne 0x40b8dd
lea eax, [ecx - 1]
push eax
push 0
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x14]
call fcn.00406a82
mov byte [esp + 0x15c], 2
push eax
lea ecx, [esp + 0xc]
call fcn.0040fd82
mov byte [esp + 0x15c], bl
lea ecx, [esp + 0x38]
call fcn.004016a6
cmp dword [esp + 0x1c], 0x10
push ebp
lea eax, [esp + 0xc]
cmovae eax, dword [esp + 0xc]
push ebx
push eax
call fcn.00411434
mov ebp, dword [sym.imp.KERNEL32.dll_MoveFileExA]
pop ecx
pop ecx
test al, al
je 0x40b979
push esi
call fcn.004153ca
mov esi, eax
shl esi, 0xf
call fcn.004153ca
or eax, esi
push eax
lea eax, [esp + 0x44]
push 0x42f69c
push eax
call fcn.00407cf8
add esp, 0xc
mov byte [esp + 0x164], 3
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x1c]
call fcn.0040505e
mov byte [esp + 0x164], bl
lea ecx, [esp + 0x40]
call fcn.004016a6
cmp dword [esp + 0x24], 0x10
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
push ebx
push eax
push edi
call ebp
pop esi
test eax, eax
je 0x40b979
cmp dword [esp + 0x20], 0x10
push 4
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
push 0
push eax
call ebp
jmp 0x40b985
push 4
push 0
push edi
call ebp
test eax, eax
setne bl
mov byte [esp + 0x160], 0
lea ecx, [esp + 0x24]
call fcn.004016a6
or dword [esp + 0x160], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.004016a6
pop ebp
mov ecx, dword [esp + 0x154]
pop edi
mov al, bl
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40d2ae
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push 0x318
push 0x42bd28
call fcn.00414130
or dword [ebp - 0x1c], 0xffffffff
xor ebx, ebx
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call fcn.0040bdd3
pop ecx
mov dword [ebp - 0x1c], eax
jmp 0x40d335
or dword [ebp - 4], 0xffffffff
cmp byte [0x42f678], 0
je 0x40d555
mov byte [ebp - 0x224], bl
mov edi, 0x103
push edi
push ebx
lea eax, [ebp - 0x223]
push eax
call fcn.00414e20
add esp, 0xc
mov ecx, dword [0x430e24]
test ecx, ecx
je 0x40d3dc
lea eax, [ecx + 0x168]
push eax
push 1
call fcn.0040e6e9
cmp dword [eax], ebx
je 0x40d3dc
mov ecx, dword [0x430e24]
test ecx, ecx
je 0x40d3bb
lea eax, [ecx + 0x1dc]
push eax
push 1
call fcn.0040e6e9
mov ecx, dword [0x430e24]
cmp dword [eax], ebx
je 0x40d3bb
lea eax, [ecx + 0x1dc]
push eax
push 1
call fcn.0040e6e9
push ebx
call dword [eax]
mov esi, eax
mov ecx, dword [0x430e24]
jmp 0x40d3bd
mov esi, ebx
lea eax, [ecx + 0x168]
push eax
push 1
call fcn.0040e6e9
push 0x104
lea ecx, [ebp - 0x224]
push ecx
push esi
call dword [eax]
jmp 0x40d3de
mov eax, ebx
test eax, eax
je 0x40d555
mov byte [ebp - 0x328], bl
push edi
push ebx
lea eax, [ebp - 0x327]
push eax
call fcn.00414e20
mov byte [ebp - 0x120], bl
push edi
push ebx
lea eax, [ebp - 0x11f]
push eax
call fcn.00414e20
add esp, 0x18
lea eax, [ebp - 0x328]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40d555
cmp eax, 0xf2
ja 0x40d555
lea eax, [ebp - 0x120]
push eax
push ebx
push 0x42f804
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x40d555
mov edx, 0x42f808
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x40d45f
sub edx, esi
lea edi, [ebp - 0x120]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40d46f
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x42e190]
mov ecx, eax
not ecx
mov esi, 0x177
and ecx, esi
neg ecx
sbb ecx, ecx
neg ecx
lea edx, [eax + eax]
or edx, ecx
mov dword [0x42e190], edx
mov eax, dword [0x42e194]
inc eax
lea ecx, [esi - 0xf]
cmove eax, ecx
mov dword [0x42e194], eax
test eax, eax
jne 0x40d4e6
push 0x3be
mov eax, 0x42f80c
push eax
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x42e194]
mov edx, dword [0x42e190]
shl eax, 6
or eax, 1
mov dword [0x42e194], eax
jne 0x40d505
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x42e194]
mov edx, dword [0x42e190]
mov ecx, 0x260
cmp eax, ecx
cmove eax, ecx
mov dword [0x42e194], eax
mov eax, edx
not eax
and eax, esi
neg eax
sbb eax, eax
mov ecx, 0x80000000
and eax, ecx
add eax, ecx
shr edx, 1
or edx, eax
mov dword [0x42e190], edx
push 1
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x224]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
call esi
push 4
push ebx
lea eax, [ebp - 0x120]
push eax
call esi
mov eax, dword [ebp - 0x1c]
call fcn.0041416b
ret
Function at 0x40f24f
Capabilities:
Check for vm using instruction vpcext
Reference the vmware io port

Disassembly:
push 0xc
push 0x42c438
call fcn.00414130
mov edx, dword [0x42e1cc]
shl edx, 8
or edx, 0x13701
mov eax, 0x1e4
cmp edx, eax
cmove edx, eax
inc edx
mov eax, 0x16a
cmove edx, eax
mov dword [0x42e1cc], edx
test edx, edx
jne 0x40f2a0
push 0x15a
mov eax, 0x425568
push eax
push eax
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [0x42e1cc]
mov eax, dword [0x42e1c8]
mov ecx, eax
not ecx
mov edi, 0x177
and ecx, edi
neg ecx
sbb ecx, ecx
neg ecx
lea esi, [eax + eax]
or esi, ecx
mov dword [0x42e1c8], esi
test edx, edx
jne 0x40f2d8
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x42e1cc]
mov esi, dword [0x42e1c8]
mov eax, esi
not eax
and eax, edi
neg eax
sbb eax, eax
mov ecx, 0x80000000
and eax, ecx
add eax, ecx
shr esi, 1
or esi, eax
mov ecx, esi
not ecx
and ecx, edi
neg ecx
sbb ecx, ecx
neg ecx
lea eax, [esi + esi]
or eax, ecx
mov dword [0x42e1c8], eax
or edx, 0x3fe
mov dword [0x42e1cc], edx
mov dword [ebp - 0x1c], 0
and dword [ebp - 4], 0
push edx
push ecx
push ebx
mov eax, 0x564d5868
xor ebx, ebx
mov ecx, 0x14
mov edx, 0x5658
in eax, dx
cmp eax, 0x20
jl 0x40f345
cmp eax, 0x4000
jg 0x40f345
mov eax, 1
or dword [ebp - 0x1c], eax
pop ebx
pop ecx
pop edx
jmp 0x40f351
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 1
push ebx
xor eax, eax
xor ebx, ebx
inc eax
invalid

Function at 0x40feaf
Capabilities:
Delete directory

Disassembly:
mov edi, edi
push esi
mov esi, dword [0x43174c]
jmp 0x40fed0
cmp dword [esi + 0x14], 0x10
jb 0x40fec4
mov eax, dword [esi]
jmp 0x40fec6
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
add esi, 0x18
cmp esi, dword [0x431750]
jne 0x40feba
pop esi
ret
Function at 0x4129d6
Capabilities:
Create directory
Get file attributes

Disassembly:
mov eax, 0x421d28
call fcn.0041410c
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
push edi
cmp dword [esi + 0x14], 0x10
jb 0x4129f5
mov eax, dword [esi]
jmp 0x4129f7
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [0x42e1cc]
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
shl ecx, 9
or ecx, 1
mov edi, eax
mov dword [0x42e1cc], ecx
jne 0x412a24
push 0
call ebx
mov ecx, dword [0x42e1cc]
or ecx, 0x311
mov eax, 0x362
cmp ecx, eax
cmove ecx, eax
shl ecx, 0x1f
or ecx, 1
mov dword [0x42e1cc], ecx
cmp edi, 0xffffffff
jne 0x412bb4
push dword [0x42e1f8]
cmp dword [0x42e1fc], 0x10
mov eax, 0x42e1e8
cmovae eax, dword [0x42e1e8]
push edi
push eax
mov ecx, esi
call fcn.004116bb
mov edx, dword [0x42e1cc]
mov edi, eax
test edx, edx
jne 0x412a80
push edx
call ebx
mov edx, dword [0x42e1cc]
mov ecx, dword [0x42e1c8]
mov ebp, dword [esp + 0x40]
mov eax, ecx
not eax
and eax, 0x177
neg eax
sbb eax, eax
mov ebx, 0x80000000
and eax, ebx
add eax, ebx
shr ecx, 1
or ecx, eax
mov eax, 0x26f
cmp edx, eax
cmove edx, eax
or edx, 0x392
mov dword [0x42e1c8], ecx
mov dword [0x42e1cc], edx
cmp edi, 0xffffffff
je 0x412b01
push edi
push 0
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.00406a82
and dword [esp + 0x30], 0
push ebp
push eax
call fcn.004129d6
mov bl, al
pop ecx
neg bl
pop ecx
sbb bl, bl
or dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.004016a6
inc bl
je 0x412b01
xor al, al
jmp 0x412bc9
cmp dword [esi + 0x14], 0x10
jb 0x412b0b
mov eax, dword [esi]
jmp 0x412b0d
mov eax, esi
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x412afa
mov ecx, dword [0x42e1c8]
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, ecx
not eax
and eax, 0x177
neg eax
sbb eax, eax
mov edx, 0x80000000
and eax, edx
add eax, edx
shr ecx, 1
or ecx, eax
mov eax, dword [0x42e1cc]
mov dword [0x42e1c8], ecx
test eax, eax
jne 0x412b64
push 0x3d0
mov eax, 0x42542c
push eax
push eax
push ebx
call edi
mov eax, dword [0x42e1cc]
inc eax
mov ecx, 0x209
cmove eax, ecx
shl eax, 0x10
or eax, 1
mov dword [0x42e1cc], eax
jne 0x412b8e
push 0x1ba
mov eax, 0x425430
push eax
push eax
push ebx
call edi
mov eax, dword [0x42e1cc]
shl eax, 0x1d
or eax, 0x347
inc eax
mov ecx, 0x32e
cmove eax, ecx
push esi
mov ecx, 0x431738
mov dword [0x42e1cc], eax
call fcn.00412c3d
mov byte [ebp], bl
jmp 0x412bc7
test edi, 0x410
je 0x412afa
mov ecx, dword [esp + 0x40]
mov byte [ecx], 1
mov al, 1
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x412ca2
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x42293e
call fcn.0041410c
mov eax, 0x1038
call fcn.00417070
push ebx
xor ebx, ebx
push esi
mov dword [esp + 0x1048], ebx
lea eax, [esp + 0xc]
push eax
push 0x20019
push ebx
push dword [esp + 0x1068]
mov dword [esp + 0x24], ebx
push dword [esp + 0x1068]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [esp + 0x1054]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov dword [esp + 0x1048], ebx
mov dword [esp + 0x14], 1
test eax, eax
jne 0x412e9e
push ebp
push edi
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x20]
push eax
push ebx
push dword [esp + 0x1078]
mov dword [esp + 0x24], 0x1000
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [0x42e1c8]
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, ecx
not edx
and edx, 0x177
neg edx
sbb edx, edx
neg edx
lea edi, [ecx + ecx]
mov ecx, dword [0x42e1cc]
or edi, edx
mov ebp, eax
mov dword [0x42e1c8], edi
test ecx, ecx
jne 0x412d7c
push 0
call ebx
mov edi, dword [0x42e1c8]
mov ecx, dword [0x42e1cc]
mov eax, edi
not eax
and eax, 0x177
neg eax
sbb eax, eax
neg eax
or ecx, 0x22b
lea edx, [edi + edi]
or edx, eax
inc ecx
mov eax, 0x147
cmove ecx, eax
mov eax, edx
not eax
and eax, 0x177
or ecx, 0x11d
neg eax
sbb eax, eax
mov edi, 0x80000000
and eax, edi
add eax, edi
shr edx, 1
or edx, eax
mov dword [0x42e1cc], ecx
mov dword [0x42e1c8], edx
test ecx, ecx
jne 0x412dde
push ecx
call ebx
mov edx, dword [0x42e1c8]
mov ecx, dword [0x42e1cc]
mov eax, edx
not eax
mov edi, 0x177
and eax, edi
neg eax
sbb eax, eax
neg eax
add edx, edx
or edx, eax
xor ebx, ebx
mov dword [0x42e1c8], edx
test ecx, ecx
jne 0x412e18
push 0x2b7
mov eax, 0x42548c
push eax
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [0x42e1c8]
mov ecx, edx
not ecx
and ecx, edi
neg ecx
sbb ecx, ecx
neg ecx
lea eax, [edx + edx]
or eax, ecx
mov ecx, dword [esp + 0x10]
pop edi
test ebp, ebp
mov dword [0x42e1c8], eax
mov byte [esp + ecx + 0x40], bl
pop ebp
jne 0x412e94
mov eax, dword [esp + 0x10]
dec eax
cmp eax, 2
ja 0x412eb2
push ecx
lea eax, [esp + 0x40]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.004023b0
mov dword [esp + 0x1048], 1
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.0040fd82
mov byte [esp + 0x1048], bl
lea ecx, [esp + 0x18]
call fcn.004016a6
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1040]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
lea ecx, [esp + 0x30]
call fcn.00413fb7
push 0x42be3c
lea eax, [esp + 0x34]
push eax
call fcn.004140ae
int3
Function at 0x412f59
Capabilities:
Delete directory

Disassembly:
mov eax, 0x421d28
call fcn.0041410c
sub esp, 0x18
cmp dword [0x431748], 0
je 0x413004
push ebx
push esi
push edi
mov edi, 0x431738
mov ebx, 0x177
mov esi, 0x80000000
mov ecx, edi
call fcn.0040fdba
push eax
lea ecx, [ebp - 0x24]
call fcn.0040b04b
and dword [ebp - 4], 0
mov ecx, edi
call fcn.00412bda
cmp dword [ebp - 0x10], 0x10
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [0x42e1c8]
mov eax, ecx
not eax
and eax, ebx
neg eax
sbb eax, eax
and eax, esi
add eax, esi
shr ecx, 1
or ecx, eax
mov eax, ecx
not eax
and eax, ebx
neg eax
sbb eax, eax
or dword [0x42e1cc], 0x1fd
and eax, esi
add eax, esi
shr ecx, 1
or ecx, eax
mov dword [0x42e1c8], ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004016a6
cmp dword [0x431748], 0
jne 0x412f85
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x41f88b
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42e5c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [fcn.004134ae]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00417ae6
mov dword [ebp - 0x14], eax
cmp dword [0x4325b0], edi
jne 0x41f97c
push 0x800
push edi
push 0x427648
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x41f909
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41fa5c
push 0x427648
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x41fa5c
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41fa5c
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x4325b0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4325b4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4325b8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4325c0], eax
test eax, eax
je 0x41f979
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4325bc], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41f9a1
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41f994
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x41f9b6
push 4
pop eax
jmp 0x41fa5e
cmp dword [ebp - 0x14], edi
je 0x41f9b6
push dword [0x4325b0]
call dword [fcn.004134b2]
push 3
jmp 0x41f99b
mov eax, dword [0x4325bc]
mov ebx, dword [fcn.004134b2]
cmp eax, esi
je 0x41fa14
cmp dword [0x4325c0], esi
je 0x41fa14
push eax
call ebx
push dword [0x4325c0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41fa14
test eax, eax
je 0x41fa14
call ecx
test eax, eax
je 0x41fa09
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41fa09
test byte [ebp - 8], 1
jne 0x41fa14
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x41fa44
mov eax, dword [0x4325b4]
cmp eax, esi
je 0x41fa41
push eax
call ebx
test eax, eax
je 0x41fa41
call eax
mov edi, eax
test edi, edi
je 0x41fa41
mov eax, dword [0x4325b8]
cmp eax, esi
je 0x41fa41
push eax
call ebx
test eax, eax
je 0x41fa41
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4325b0]
call ebx
test eax, eax
je 0x41fa5c
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x41fa5e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041785b
leave
ret