joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428c34
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov byte [ebp - 9], cl
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x428d07
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040bd8c
cmp byte [ebp - 9], 0
je 0x428cc5
mov eax, ebx
call fcn.0040ca18
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
test ah, 4
je 0x428cc5
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004265d8
test al, al
je 0x428cc5
mov eax, dword [ebp - 8]
call fcn.0042936c
test al, al
je 0x428cba
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.004290e0
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00430228
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
call fcn.0040cc84
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040bd8c
push edi
mov eax, dword [ebp - 4]
call fcn.0040ca18
push eax
call sub.KERNEL32.DLL_SetFileAttributesW
test eax, eax
jne 0x428cdf
call sub.KERNEL32.DLL_GetLastError
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428d0e
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040b9c4
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040b9c4
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x428dc3
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, esi
call fcn.0040ca18
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
mov edi, eax
cmp edi, 0xffffffff
je 0x428da8
test edi, 0x400
je 0x428d9f
lea edx, [ebp - 4]
mov eax, esi
call fcn.004265d8
test al, al
je 0x428d9f
mov eax, dword [ebp - 4]
call fcn.0042936c
test al, al
je 0x428d8f
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.004290e0
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.00430228
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
call fcn.0040cc84
mov eax, dword [ebp - 4]
call fcn.0040ca18
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
mov edi, eax
test edi, 1
setne bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428dca
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040b9c4
ret

Function at 0x428efc
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.0040ca18
mov ebp, eax
push ebp
call sub.KERNEL32.DLL_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x428f51
call sub.KERNEL32.DLL_GetLastError
mov edi, eax
push ebp
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x428f4b
test ah, 4
je 0x428f4b
test al, 0x10
je 0x428f4b
mov eax, esi
call fcn.0040ca18
push eax
call sub.KERNEL32.DLL_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x428f51
push edi
call sub.KERNEL32.DLL_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42d684
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW
test eax, eax
jle 0x42d6bd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040baec
jmp 0x42d6c6
mov eax, ebx
mov edx, esi
call fcn.0040bd44
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42d6d0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
test eax, eax
jle 0x42d6f2
movzx eax, word [esp]
jmp 0x42d6f4
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x42e9f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x42eb15
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042e7f8
mov esi, eax
mov eax, dword [0x883628]
cmp byte [eax], 0
je 0x42eabd
mov eax, dword [0x882e7c]
call fcn.00407f04
call fcn.004070e8
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.KERNEL32.DLL_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x42e9c0]
call fcn.0040e90c
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.KERNEL32.DLL_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x42eb30
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x42eaf9
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x882d58]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x887634]
call fcn.0040eea0
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42eb1c
lea eax, [ebp - 4]
mov edx, dword [0x42e9c0]
call fcn.0040ea30
ret
Function at 0x42fbd4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42fcaa
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040bd8c
lea eax, [ebp - 4]
call fcn.0040bf34
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040ca18
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42fc94
mov eax, ebx
call fcn.00406f74
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x42fc8d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040ca18
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42fc77
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x42fcbc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42fc77
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42fc94
mov eax, dword [ebp - 0x10]
call fcn.00406f90
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42fcb1
lea eax, [ebp - 4]
call fcn.0040b964
ret

Function at 0x42fcc0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42fdc0
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040bd8c
lea eax, [ebp - 4]
call fcn.0040bf34
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040ca18
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42fdaa
mov eax, ebx
call fcn.00406f74
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x42fda3
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040ca18
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42fd8d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x42fdd4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42fd8d
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42fdaa
mov eax, dword [ebp - 0x10]
call fcn.00406f90
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42fdc7
lea eax, [ebp - 4]
call fcn.0040b964
ret
Function at 0x430e70
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.0040be74
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00411ee4
mov edi, eax
cmp edi, 0x104
jbe 0x430e1b
mov eax, edi
add eax, eax
call fcn.00406f74
mov esi, eax
jmp 0x430e1d
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00411ee4
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x430e56
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x430e40
mov eax, esp
cmp esi, eax
je 0x430e63
mov eax, esi
call fcn.00406f90
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x430e9c
cmp bl, 0
je 0x430e98
cmp bl, 0x41
jl 0x430e93
cmp bl, 0x5a
jg 0x430e93
or bl, 0x20
xor al, bl
inc esi
jmp 0x430e77
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x430ddc

Function at 0x43176c
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.0040cad4
add esp, 0x800
pop ebx
ret
Function at 0x4344d4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x4344f4
sub eax, 4
mov eax, dword [eax]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x43450e
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x434509
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x434513
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x434581
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x4345ca
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x43453f
inc dword [ebp - 0xc]
jmp 0x434557
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x434557
cmp dword [ebp - 0xc], 0
jle 0x434557
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x434579
xor eax, eax
jmp 0x434575
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x434574
mov eax, esi
jmp 0x4345cd
inc eax
cmp eax, ecx
jle 0x434561
inc esi
cmp esi, dword [ebp - 8]
jl 0x43452b
jmp 0x4345ca
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x4345ca
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x4345a2
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x4345c4
xor eax, eax
jmp 0x4345c0
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x4345bf
mov eax, esi
jmp 0x4345cd
inc eax
cmp eax, ecx
jle 0x4345ac
inc esi
cmp esi, dword [ebp - 8]
jl 0x43458a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x434a38
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov word [ebp - 0xa], cx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x434a57
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x434a67
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, dword [ebp + 8]
sub ebx, esi
inc ebx
cmp dword [ebp + 8], 0
jl 0x434b89
test ebx, ebx
jl 0x434b89
test esi, esi
jle 0x434b89
mov eax, dword [ebp - 8]
call fcn.0040ca18
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040ca18
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, eax
add ecx, eax
movzx eax, word [ebp - 0xa]
cmp ax, word [ebp + 0xc]
je 0x434b26
xor eax, eax
mov dword [ebp - 0x14], eax
test ebx, ebx
jl 0x434b89
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x434b0b
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x434ada
inc dword [ebp - 0x14]
jmp 0x434aea
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp + 0xc]
jne 0x434aea
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jle 0x434af5
or eax, 0xffffffff
jmp 0x434b0b
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x434b08
inc eax
jmp 0x434b0b
or eax, 0xffffffff
test eax, eax
jl 0x434b13
cmp esi, eax
jg 0x434ac8
cmp esi, eax
jg 0x434b1e
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x434b8c
inc edx
dec dword [ebp - 0x1c]
jne 0x434ac4
jmp 0x434b89
mov byte [ebp - 0x15], 0
test ebx, ebx
jl 0x434b89
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x434b70
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x434b4f
movzx ebx, byte [ebp - 0x15]
xor bl, 1
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x434b5a
or eax, 0xffffffff
jmp 0x434b70
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x434b6d
inc eax
jmp 0x434b70
or eax, 0xffffffff
test eax, eax
jl 0x434b78
cmp esi, eax
jg 0x434b38
cmp esi, eax
jg 0x434b83
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x434b8c
inc edx
dec dword [ebp - 0x1c]
jne 0x434b34
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x48c878
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x48c880
mov eax, edx
pop esi
pop ebx
ret

Function at 0x4cab50
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4cabee
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xd]
je 0x4cabb2
cmp byte [ebx + 0x11], 0
jne 0x4cabb2
cmp byte [ebx + 0x24], 0
jne 0x4cabb2
mov byte [ebx + 0xf], 0
mov byte [ebx + 0xd], 0
mov eax, dword [ebx + 8]
push eax
call sub.KERNEL32.DLL_ResumeThread
cmp eax, 1
je 0x4cabd3
lea edx, [ebp - 4]
mov eax, dword [0x8834e0]
call fcn.00411e50
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x49e01c]
call fcn.0042eb40
call fcn.0040afe4
jmp 0x4cabd3
lea edx, [ebp - 8]
mov eax, dword [0x8834e0]
call fcn.00411e50
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x49e01c]
call fcn.0042eb40
call fcn.0040afe4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cabf5
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040b9c4
ret

Function at 0x4cb408
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4cb456
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.KERNEL32.DLL_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004ca9d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4cb46f
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4cb478
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.KERNEL32.DLL_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004ca9d0
dec esi
jne 0x4cb49a
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret

Function at 0x4cdff8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x889e58
cmp dword [edi], 0
jne 0x4ce074
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x889e54]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x8638cc
mov ecx, 2
call fcn.004071e8
mov edx, 0x4cdfd0
lea eax, [esi + 5]
call fcn.004cdff0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004cdff0
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x4ce049
mov dword [0x889e54], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4febe4
Capabilities:
Get disk information

Disassembly:
push ebx
push esi
push edi
push ecx
mov dword [esp], eax
xor ebx, ebx
cmp dword [esp], 0
je 0x4fec49
mov eax, dword [esp]
call fcn.004fefd8
test al, al
je 0x4fec49
mov eax, dword [esp]
call fcn.004fed7c
mov esi, eax
call sub.KERNEL32.DLL_GetLogicalDrives
mov edi, eax
dec esi
mov eax, dword [esp]
movzx eax, word [eax + esi*2]
mov edx, eax
mov ecx, eax
add ecx, 0xffffff9f
sub cx, 0x1a
jae 0x4fec2c
mov edx, eax
and dx, 0xffdf
mov eax, edx
cmp ax, 0x41
jb 0x4fec49
cmp ax, 0x5a
ja 0x4fec49
sub al, 0x41
mov ecx, eax
shr edi, cl
and edi, 1
cmp edi, 1
sete bl
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x507464
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x50761f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040bd8c
mov eax, dword [ebp - 4]
call fcn.00506db4
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x5074b6
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.0040ce9c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.005080ac
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x507595
xor eax, eax
push ebp
push 0x50758e
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00507054
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.00507654
test al, al
je 0x50756c
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.0040baec
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x50756c
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.0040ca18
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.00506fb4
test al, al
je 0x507566
mov eax, dword [ebp - 8]
call fcn.0040ca18
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.0040ca80
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.00507464
dec ebx
cmp ebx, 0xffffffff
jne 0x507515
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x507595
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.00507054
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey
ret
cmp byte [0x889ea4], 0
je 0x5075d5
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
and eax, 0x300
push eax
mov eax, dword [ebp - 4]
call fcn.0040ca18
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.00507040
push eax
call sub.advapi32.dll_RegDeleteKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.00506fb4
mov ebx, eax
jmp 0x5075fc
mov eax, dword [ebp - 4]
call fcn.0040ca18
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.00507040
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.00506fb4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x507626
lea eax, [ebp - 0x3c]
call fcn.0040b964
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040b9c4
ret
Function at 0x5076c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x507778
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x48]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.00507654
test al, al
je 0x50775a
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.0040baec
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x50775a
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040ca18
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov eax, dword [ebp - 4]
call fcn.0040ca18
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.0040ca80
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
inc esi
dec ebx
jne 0x507713
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50777f
lea eax, [ebp - 0x2c]
call fcn.0040b964
lea eax, [ebp - 4]
call fcn.0040b964
ret

Function at 0x507934
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x5079ec
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x48]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.00507654
test al, al
je 0x5079ce
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.0040baec
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x5079ce
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040ca18
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumValueW
mov eax, dword [ebp - 4]
call fcn.0040ca18
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.0040ca80
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
inc esi
dec ebx
jne 0x507987
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5079f3
lea eax, [ebp - 0x2c]
call fcn.0040b964
lea eax, [ebp - 4]
call fcn.0040b964
ret