joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e910
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword [esp + 4]
push ebp
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
jle 0x42e9f3
push esi
mov esi, dword [esp + 0x14]
lea esp, [esp]
cmp edi, 3
movzx edx, byte [esi]
jl 0x42e98e
movzx eax, byte [esi + 1]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 2]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
inc ecx
mov eax, edx
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
jmp 0x42e9e0
shl edx, 0x10
cmp edi, 2
jne 0x42e99f
movzx eax, byte [esi + 1]
shl eax, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
cmp edi, 1
jne 0x42e9cd
lea edx, [edi + 0x3c]
jmp 0x42e9da
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
inc ecx
mov byte [ecx], 0x3d
sub edi, 3
inc ecx
add ebp, 4
add esi, 3
test edi, edi
jg 0x42e930
pop esi
pop edi
mov eax, ebp
mov byte [ecx], 0
pop ebp
ret

Function at 0x42fc00
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
xor esi, esi
test edx, edx
je 0x42fc47
mov al, byte [edx]
test al, al
je 0x42fc47
push edi
mov edi, 0x100
movsx eax, al
or eax, edi
mov ecx, eax
shr ecx, 2
xor ecx, eax
and ecx, 0xf
add edi, 0x100
rol esi, cl
mov ecx, eax
imul ecx, eax
mov al, byte [edx + 1]
inc edx
xor esi, ecx
test al, al
jne 0x42fc17
mov eax, esi
shr eax, 0x10
pop edi
xor eax, esi
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x431da0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x28
call fcn.00459eb0
mov eax, dword [0x47f160]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
mov ebp, dword [esp + 0x38]
dec ebp
lea edx, [ebp - 0x29]
cmp ebx, edx
push edi
mov edi, dword [esp + 0x38]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
jle 0x431e05
push 0x2d
push str..crypto_rsa_rsa_oaep.c
push 0x6e
push 0x79
push 4
call fcn.00421d00
add esp, 0x14
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00459991
add esp, 0x28
ret
cmp ebp, 0x29
jge 0x431e33
push 0x33
push str..crypto_rsa_rsa_oaep.c
push 0x78
push 0x79
push 4
call fcn.00421d00
add esp, 0x14
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00459991
add esp, 0x28
ret
push 0x37
lea eax, [ebp - 0x14]
push str..crypto_rsa_rsa_oaep.c
push eax
mov dword [esp + 0x18], eax
call fcn.004232a0
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x431e7b
push 0x3a
push str..crypto_rsa_rsa_oaep.c
push 0x41
push 0x79
push 4
call fcn.00421d00
add esp, 0x14
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00459991
add esp, 0x28
ret
push esi
mov byte [edi], 0
lea esi, [edi + 1]
push 0
add edi, 0x15
call fcn.0043f0c0
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x58]
push 0
push edi
push eax
push ecx
call fcn.0043efd0
mov edx, ebp
sub edx, ebx
sub edx, 0x29
push edx
lea eax, [edi + 0x14]
push 0
push eax
call sub.MSVCR100.dll_memset
mov edx, dword [esp + 0x3c]
mov ecx, edi
sub ecx, ebx
add ebp, ecx
push ebx
mov byte [ebp - 0x15], 1
push edx
add ebp, 0xffffffec
push ebp
call sub.MSVCR100.dll_memcpy
push 0x14
push esi
call fcn.004280e0
add esp, 0x38
test eax, eax
jg 0x431eef
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00459991
add esp, 0x28
ret
call fcn.0043f0c0
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
push eax
push 0x14
push esi
push ebx
push ebp
call fcn.00431c60
add esp, 0x14
test ebx, ebx
jle 0x431f1f
mov eax, edi
sub ebp, edi
mov ecx, ebx
mov dl, byte [eax + ebp]
xor byte [eax], dl
inc eax
sub ecx, 1
jne 0x431f14
call fcn.0043f0c0
push eax
push ebx
push edi
lea eax, [esp + 0x2c]
push 0x14
push eax
call fcn.00431c60
lea ecx, [esp + 0x34]
lea edi, [esp + 0x35]
lea ebp, [esp + 0x36]
lea edx, [esp + 0x37]
sub ecx, esi
sub edi, esi
sub ebp, esi
sub edx, esi
lea ebx, [esp + 0x38]
add esp, 0x14
sub ebx, esi
mov eax, esi
mov dword [esp + 0x10], ebx
mov esi, 4
nop
movzx ebx, byte [ecx + eax]
xor byte [eax], bl
movzx ebx, byte [edi + eax]
xor byte [eax + 1], bl
movzx ebx, byte [eax + ebp]
xor byte [eax + 2], bl
movzx ebx, byte [edx + eax]
xor byte [eax + 3], bl
mov ebx, dword [esp + 0x10]
movzx ebx, byte [ebx + eax]
xor byte [eax + 4], bl
add eax, 5
sub esi, 1
jne 0x431f60
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00423450
mov ecx, dword [esp + 0x38]
add esp, 4
lea eax, [esi + 1]
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00459991
add esp, 0x28
ret
Function at 0x431fc0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x3c
call fcn.00459eb0
mov eax, dword [0x47f160]
xor eax, esp
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x54]
push ebx
mov ebx, dword [esp + 0x54]
push ebp
push esi
xor esi, esi
dec ebx
cmp ebx, 0x29
push edi
mov edi, dword [esp + 0x58]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], esi
jl 0x432198
mov ebp, ebx
sub ebp, dword [esp + 0x5c]
jns 0x432013
mov dword [esp + 0x14], 1
xor ebp, ebp
push 0x7a
sub edi, ebp
lea edx, [edi + 0x14]
add ebx, 0xffffffec
push str..crypto_rsa_rsa_oaep.c
push ebx
mov dword [esp + 0x1c], edx
call fcn.004232a0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x43204f
push 0x7d
push str..crypto_rsa_rsa_oaep.c
push 0x41
push 0x7a
push 4
call fcn.00421d00
add esp, 0x14
jmp 0x4321bd
call fcn.0043f0c0
push eax
mov eax, dword [esp + 0x14]
push ebx
push eax
lea ecx, [esp + 0x2c]
push 0x14
push ecx
call fcn.00431c60
add esp, 0x14
cmp ebp, 0x14
mov eax, ebp
jge 0x43207e
mov dl, byte [edi + eax]
xor byte [esp + eax + 0x20], dl
inc eax
cmp eax, 0x14
jl 0x432071
call fcn.0043f0c0
push eax
push 0x14
lea eax, [esp + 0x28]
push eax
push ebx
push esi
call fcn.00431c60
add esp, 0x14
test ebx, ebx
jle 0x4320ae
mov edi, dword [esp + 0x10]
mov eax, esi
sub edi, esi
mov ebp, ebx
mov cl, byte [edi + eax]
xor byte [eax], cl
inc eax
sub ebp, 1
jne 0x4320a3
push 0
call fcn.0043f0c0
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x70]
push 0
lea edx, [esp + 0x40]
push edx
push eax
push ecx
call fcn.0043efd0
lea eax, [esp + 0x4c]
mov edx, esi
mov edi, eax
add esp, 0x18
mov ecx, 0x14
sub edx, edi
mov edi, edi
mov edi, dword [edx + eax]
cmp edi, dword [eax]
jne 0x432198
sub ecx, 4
add eax, 4
cmp ecx, 4
jae 0x4320e0
cmp dword [esp + 0x14], 0
jne 0x432198
mov eax, 0x14
cmp ebx, eax
jle 0x43211b
lea ebx, [ebx]
cmp byte [eax + esi], 0
jne 0x43211b
inc eax
cmp eax, ebx
jl 0x432110
cmp byte [eax + esi], 1
jne 0x432198
mov edx, eax
inc eax
cmp edx, ebx
jge 0x432198
sub ebx, eax
cmp dword [esp + 0x54], ebx
jge 0x432169
push 0x9b
push str..crypto_rsa_rsa_oaep.c
push 0x6d
push 0x7a
push 4
call fcn.00421d00
add esp, 0x14
push esi
or ebx, 0xffffffff
call fcn.00423450
add esp, 4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00459991
add esp, 0x3c
ret
add eax, esi
push ebx
push eax
mov eax, dword [esp + 0x24]
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
push esi
call fcn.00423450
add esp, 4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00459991
add esp, 0x3c
ret
push 0xa8
push str..crypto_rsa_rsa_oaep.c
push 0x79
push 0x7a
push 4
call fcn.00421d00
add esp, 0x14
test esi, esi
je 0x4321bd
push esi
call fcn.00423450
add esp, 4
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
or eax, 0xffffffff
call fcn.00459991
add esp, 0x3c
ret
Function at 0x432560
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x18], esi
jne 0x43262c
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
cmp al, 0x6a
je 0x432581
cmp al, 0x6b
jne 0x43262c
lea edx, [ecx + 1]
cmp al, 0x6b
jne 0x4325ed
add esi, 0xfffffffd
xor ecx, ecx
test esi, esi
jle 0x4325a1
mov al, byte [edx]
inc edx
cmp al, 0xba
je 0x4325a1
cmp al, 0xbb
jne 0x4325ca
inc ecx
cmp ecx, esi
jl 0x432591
sub esi, ecx
test ecx, ecx
jne 0x4325f0
push 0x8a
push str..crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call fcn.00421d00
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push 0x81
push str..crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call fcn.00421d00
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
add esi, 0xfffffffe
cmp byte [esi + edx], 0xcc
je 0x432619
push 0x93
push str..crypto_rsa_rsa_x931.c
push 0x8b
push 0x80
push 4
call fcn.00421d00
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esp + 8]
push esi
push edx
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x72
push str..crypto_rsa_rsa_x931.c
push 0x89
push 0x80
push 4
call fcn.00421d00
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
Function at 0x4431b0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
mov ebx, dword [esp + 0x10]
cmp ecx, dword [ebx + 4]
push esi
push edi
jge 0x4431c9
mov edi, ebx
mov ebx, eax
jmp 0x4431cb
mov edi, eax
mov eax, dword [edi + 4]
mov esi, dword [esp + 0x10]
cmp eax, dword [esi + 8]
jle 0x4431e1
push eax
push esi
call fcn.0041d950
add esp, 8
xor eax, eax
cmp dword [ebx + 4], eax
jle 0x4431fd
mov edx, dword [edi]
mov ecx, dword [ebx]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [esi]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 4]
jl 0x4431e8
cmp eax, dword [edi + 4]
jge 0x443212
mov edx, dword [edi]
mov edx, dword [edx + eax*4]
mov ecx, dword [esi]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [edi + 4]
jl 0x443202
mov edi, dword [edi + 4]
mov dword [esi + 4], edi
test edi, edi
jle 0x443236
mov eax, dword [esi]
lea eax, [eax + edi*4 - 4]
or ecx, 0xffffffff
mov edx, dword [eax]
sub eax, 4
test edx, edx
jne 0x443236
add dword [esi + 4], ecx
cmp dword [esi + 4], edx
jg 0x443225
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x457ad0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0xc
call fcn.00459eb0
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
jne 0x457aea
xor eax, eax
pop edi
add esp, 0xc
ret
push ebx
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x457b8e
push esi
mov esi, dword [esp + 0x20]
test esi, esi
je 0x457b5a
mov ecx, dword [ebx + 8]
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
call fcn.0042fe30
add esp, 8
test eax, eax
jne 0x457b7b
mov ecx, 0x46c868
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x457b44
test dl, dl
je 0x457b40
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x457b44
add eax, 2
add ecx, 2
test dl, dl
jne 0x457b24
xor eax, eax
jmp 0x457b49
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x457b5a
push edi
call sub.MSVCR100.dll_getenv
add esp, 4
test eax, eax
jne 0x457b7e
mov eax, dword [ebx + 8]
lea edx, [esp + 0xc]
push edx
push eax
mov dword [esp + 0x14], str.default
mov dword [esp + 0x18], edi
call fcn.0042fe30
add esp, 8
test eax, eax
je 0x457b85
mov eax, dword [eax + 8]
pop esi
pop ebx
pop edi
add esp, 0xc
ret
pop esi
pop ebx
xor eax, eax
pop edi
add esp, 0xc
ret
push edi
call sub.MSVCR100.dll_getenv
add esp, 4
pop ebx
pop edi
add esp, 0xc
ret

Function at 0x459991
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47f160]
jne 0x45999b
repz ret
jmp fcn.0045a218
Function at 0x451900
Capabilities:
Get disk information

Disassembly:
sub esp, 0x210
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebp
push esi
push edi
mov edi, eax
mov esi, ecx
xor eax, eax
push esi
push eax
push 0x410
mov word [edi], ax
call ebx
mov ebp, eax
test ebp, ebp
jne 0x451942
push esi
push eax
push 0x1000
call ebx
mov ebp, eax
test ebp, ebp
jne 0x451942
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
cmp byte [esp + 0x224], 0
push 0x104
push edi
push 0
push ebp
je 0x45195d
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
jmp 0x451963
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test byte [0x4cca88], 1
mov ebx, eax
jne 0x451993
or dword [0x4cca88], 1
push 0x4ae218
push 0x4ae234
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cca84], eax
jmp 0x451998
mov eax, dword [0x4cca84]
test ebx, ebx
jne 0x451aaf
test eax, eax
je 0x451aaf
push 0x104
push edi
push ebp
call eax
mov ebx, eax
test ebx, ebx
je 0x451aaf
cmp byte [esp + 0x224], 0
je 0x451a13
push 0x5c
push edi
call fcn.004915ae
add esp, 8
test eax, eax
je 0x451aaf
mov ecx, eax
lea esi, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4519e0
sub ecx, esi
sar ecx, 1
add ecx, ecx
push ecx
add eax, 2
push eax
push edi
call fcn.00490230
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x210
ret
mov ecx, 0x41
mov dword [esp + 0x12], 0x3a
mov word [esp + 0x10], cx
push 0x104
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov esi, eax
cmp esi, 2
jbe 0x451a5e
sub esi, 2
push esi
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.00491575
add esp, 0xc
test eax, eax
jne 0x451a5e
cmp word [edi + esi*2], 0x5c
je 0x451a84
mov ax, word [esp + 0x10]
inc ax
mov word [esp + 0x10], ax
cmp ax, 0x5a
jbe 0x451a25
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x210
ret
mov dx, word [esp + 0x10]
mov ax, word [esp + 0x12]
sub ebx, esi
mov word [edi], dx
lea ecx, [ebx + ebx + 2]
push ecx
lea edx, [edi + esi*2]
mov word [edi + 2], ax
push edx
add edi, 4
push edi
call fcn.00490230
add esp, 0xc
add ebx, 2
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x210
ret
Function at 0x472fd0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x210
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push 0
push edi
mov dword [esp + 0x30], 0xff
call ebx
cmp eax, 0x103
je 0x473097
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [0x4c6a44]
mov edx, dword [ecx + 0xd0]
lea eax, [esp + 0x14]
push eax
or edx, 0x20019
push edx
push 0
lea eax, [esp + 0x2c]
push eax
push edi
call ebp
mov esi, eax
test esi, esi
jne 0x4730a4
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00472fd0
mov edx, dword [esp + 0x18]
add esp, 4
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4730a4
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
test esi, esi
jne 0x4730a4
lea ecx, [esp + 0x18]
push ecx
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
push esi
push edi
mov dword [esp + 0x30], 0xff
call ebx
cmp eax, 0x103
jne 0x47301a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret

Function at 0x4730c0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
push esi
test ebx, ebx
je 0x4731b0
test edi, edi
je 0x4730d9
cmp word [edi], 0
jne 0x4730e1
test ebp, ebp
je 0x4731b0
mov ecx, dword [0x4c6a44]
mov edx, dword [ecx + 0xd0]
lea eax, [esp + 0x14]
push eax
or edx, 0x2001f
push edx
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x473182
mov eax, dword [esp + 0x14]
test ebp, ebp
jne 0x473199
push eax
call fcn.00472fd0
mov ecx, dword [esp + 0x18]
add esp, 4
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x473182
mov eax, 1
test byte [0x4ccd98], al
jne 0x473160
or dword [0x4ccd98], eax
push 0x4c0554
push str.advapi32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4ccd94], eax
jmp 0x473165
mov eax, dword [0x4ccd94]
mov edx, dword [0x4c6a44]
mov ecx, dword [edx + 0xd0]
test ecx, ecx
je 0x47318f
test eax, eax
je 0x47318f
push 0
push ecx
push edi
push ebx
call eax
mov esi, eax
cmp esi, 0xffffffff
jne 0x4731b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4731b7
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x473180
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [esp + 0x14]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x473182
mov esi, 0x57
mov eax, esi
mov edx, dword [0x4c6a44]
mov dword [edx + 0x30], eax
mov edx, dword [esp + 0x10]
test esi, esi
setne al
movzx ecx, al
push ecx
push edx
call fcn.0042fcf0
pop esi
pop ebp
pop ecx
ret 8
Function at 0x496336
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c5dd0]
jne 0x496340
repz ret
jmp fcn.0049a98f

Function at 0x498d20
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4c5dd0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00493202
and dword [ebp - 0x14], 0
cmp dword [0x4c8cdc], 0
mov dword [ebp - 0x18], eax
jne 0x498dd3
push 0x4a303c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x498e7b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4a3030
push ebx
call edi
test eax, eax
je 0x498e7b
mov esi, dword [fcn.0048f480]
push eax
call esi
push 0x4a3020
push ebx
mov dword [0x4c8cdc], eax
call edi
push eax
call esi
push 0x4a300c
push ebx
mov dword [0x4c8ce0], eax
call edi
push eax
call esi
push 0x4a2ff0
push ebx
mov dword [0x4c8ce4], eax
call edi
push eax
call esi
mov dword [0x4c8cec], eax
test eax, eax
je 0x498dd3
push 0x4a2fd8
push ebx
call edi
push eax
call esi
mov dword [0x4c8ce8], eax
mov eax, dword [0x4c8ce8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.0048f484]
cmp eax, ecx
je 0x498e2c
cmp dword [0x4c8cec], ecx
je 0x498e2c
push eax
call esi
push dword [0x4c8cec]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x498e2c
test ebx, ebx
je 0x498e2c
call edi
test eax, eax
je 0x498e23
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x498e23
test byte [ebp - 8], 1
jne 0x498e2c
or dword [ebp + 0x10], 0x200000
jmp 0x498e5f
mov eax, dword [0x4c8ce0]
cmp eax, dword [ebp - 0x18]
je 0x498e5f
push eax
call esi
test eax, eax
je 0x498e5f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x498e5f
mov eax, dword [0x4c8ce4]
cmp eax, dword [ebp - 0x18]
je 0x498e5f
push eax
call esi
test eax, eax
je 0x498e5f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4c8cdc]
call esi
test eax, eax
je 0x498e7b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x498e7d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00496336
leave
ret
Function at 0x401000
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea ecx, [ebp - 0x10]
push ecx
call esi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 8]
push edx
call esi
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
sbb ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
fild qword [ebp - 0x10]
fild qword [ebp - 0x18]
fdivp st(1)
fsub qword [0x40a810]
fabs
fcomp qword [ebp + 8]
fnstsw ax
test ah, 0x41
jne 0x401061
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401070
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Print debug messages
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x3c
push esi
call fcn.00401130
push 0x3e8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00401130
mov ecx, 0xfffffc18
sub ecx, esi
add eax, ecx
cdq
xor eax, edx
sub eax, edx
cmp eax, 0xc350
jle 0x4010b9
push 0x40a800
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
fld qword [0x40a818]
sub esp, 8
fstp qword [esp]
call fcn.00401000
add esp, 8
test al, al
je 0x4010e4
push 0x40a804
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x40a808
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x40
push 0x3000
push 0x8676
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x8676
mov esi, eax
push 0x40cb20
push esi
call fcn.004043c0
add esp, 0xc
call esi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401121
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c004]
jne 0x40112b
repz ret
jmp fcn.0040132c
Function at 0x40323b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00402194
and dword [ebp - 0x14], 0
cmp dword [0x4160ec], 0
mov dword [ebp - 0x18], eax
jne 0x4032ee
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x403396
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x403396
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4160ec], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4160f0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4160f4], eax
call edi
push eax
call esi
mov dword [0x4160fc], eax
test eax, eax
je 0x4032ee
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4160f8], eax
mov eax, dword [0x4160f8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x403347
cmp dword [0x4160fc], ecx
je 0x403347
push eax
call esi
push dword [0x4160fc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x403347
test ebx, ebx
je 0x403347
call edi
test eax, eax
je 0x40333e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40333e
test byte [ebp - 8], 1
jne 0x403347
or dword [ebp + 0x10], 0x200000
jmp 0x40337a
mov eax, dword [0x4160f0]
cmp eax, dword [ebp - 0x18]
je 0x40337a
push eax
call esi
test eax, eax
je 0x40337a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40337a
mov eax, dword [0x4160f4]
cmp eax, dword [ebp - 0x18]
je 0x40337a
push eax
call esi
test eax, eax
je 0x40337a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4160ec]
call esi
test eax, eax
je 0x403396
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x403398
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401121
leave
ret