joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49ce66
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x4bf240]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x49cea6
call esi
test eax, eax
je 0x49ce8b
mov dword [0x4bf240], 1
jmp 0x49ceab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x49cea2
mov dword [0x4bf240], 2
jmp 0x49ceb4
xor eax, eax
jmp 0x49cf02
cmp eax, 1
jne 0x49ceaf
call esi
jmp 0x49cf02
cmp eax, 2
jne 0x49cea2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x49cefa
lea eax, [esi + esi]
push eax
call fcn.00490eb4
mov ebp, eax
test ebp, ebp
pop ecx
je 0x49cefa
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x49cefe
push ebp
call fcn.00490a53
pop ecx
xor eax, eax
jmp 0x49cf00
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x4a0618
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4bf2cc], ebx
push esi
push edi
jne 0x4a0698
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4a06d3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x4bf2cc], eax
je 0x4a06d3
push 0x4b8344
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4bf2d0], eax
call esi
cmp dword [0x4bed3c], 2
mov dword [0x4bf2d4], eax
jne 0x4a0698
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4bf2dc], eax
je 0x4a0698
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4bf2d8], eax
mov eax, dword [0x4bf2d8]
test eax, eax
je 0x4a06dd
call eax
test eax, eax
je 0x4a06c4
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4bf2dc]
test eax, eax
je 0x4a06c4
test byte [ebp - 8], 1
jne 0x4a06dd
cmp dword [0x4bed48], 4
jb 0x4a06d7
or byte [ebp + 0x12], 0x20
jmp 0x4a06fc
xor eax, eax
jmp 0x4a070c
or byte [ebp + 0x12], 4
jmp 0x4a06fc
mov eax, dword [0x4bf2d0]
test eax, eax
je 0x4a06fc
call eax
mov ebx, eax
test ebx, ebx
je 0x4a06fc
mov eax, dword [0x4bf2d4]
test eax, eax
je 0x4a06fc
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4bf2cc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a1bec
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x4a1dc2
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x4bf5e0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4a1dc2
test cl, 0x48
je 0x4a1c57
cmp byte [eax + 5], 0xa
je 0x4a1c57
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4a1ca9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4a1c91
call fcn.00494870
mov dword [eax], 9
call fcn.00494879
mov dword [eax], esi
jmp 0x4a1ca1
cmp eax, 0x6d
je 0x4a1dc2
push eax
call fcn.00494882
pop ecx
or eax, 0xffffffff
jmp 0x4a1dc4
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x4a1dbd
test eax, eax
je 0x4a1cd0
cmp byte [ebx], 0xa
jne 0x4a1cd0
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4a1cd9
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x4a1db7
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4a1da7
cmp al, 0xd
je 0x4a1d0b
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4a1d99
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4a1d25
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4a1d20
add dword [ebp + 0x10], 2
jmp 0x4a1d79
mov dword [ebp + 0x10], eax
jmp 0x4a1d95
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4a1d4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4a1d95
cmp dword [ebp - 0xc], 0
je 0x4a1d95
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4a1d6e
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4a1d79
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4a1d98
cmp ebx, dword [ebp + 0xc]
jne 0x4a1d7e
cmp byte [ebp - 1], 0xa
jne 0x4a1d7e
mov byte [ebx], 0xa
jmp 0x4a1d98
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0049d599
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a1d99
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4a1cef
jmp 0x4a1db7
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4a1db7
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4a1dc4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a25f5
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x4a260e
or eax, 0xffffffff
jmp 0x4a266f
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x4a266b
push 0x3d
push esi
call fcn.004a27f6
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4a266b
cmp esi, eax
je 0x4a266b
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x4bed5c]
sete cl
cmp eax, dword [0x4bed60]
mov dword [ebp - 4], ecx
jne 0x4a2651
mov edi, eax
call fcn.004a2594
mov dword [0x4bed5c], eax
cmp eax, ebx
jne 0x4a26aa
cmp dword [ebp + 0xc], ebx
je 0x4a2673
cmp dword [0x4bed64], ebx
je 0x4a2673
call fcn.004a1b5c
test eax, eax
je 0x4a26aa
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x4a267c
xor eax, eax
jmp 0x4a266e
push 4
call fcn.00490eb4
cmp eax, ebx
pop ecx
mov dword [0x4bed5c], eax
je 0x4a266b
mov dword [eax], ebx
cmp dword [0x4bed64], ebx
jne 0x4a26aa
push 4
call fcn.00490eb4
cmp eax, ebx
pop ecx
mov dword [0x4bed64], eax
je 0x4a266b
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x4bed5c]
sub edi, esi
push esi
call fcn.004a2547
mov edi, eax
test edi, edi
pop ecx
jl 0x4a2711
cmp dword [ebx], 0
je 0x4a2711
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00490a53
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x4a26f1
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x4a2752
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x4a26e8
mov eax, edi
shl eax, 2
push eax
push dword [0x4bed5c]
call fcn.00492a1a
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x4a2752
jmp 0x4a274d
cmp dword [ebp - 4], 0
jne 0x4a27b9
test edi, edi
jge 0x4a2721
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x4bed5c]
call fcn.00492a1a
test eax, eax
pop ecx
pop ecx
je 0x4a266b
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x4bed5c], eax
cmp dword [ebp + 0xc], 0
je 0x4a27a4
push esi
call fcn.00494b60
inc eax
inc eax
push eax
call fcn.00490eb4
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x4a27a4
push esi
push edi
call fcn.0048f860
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4a279d
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.00490a53
pop ecx
cmp dword [ebp - 4], 0
je 0x4a27b1
push esi
call fcn.00490a53
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4a266e
push esi
call fcn.00490a53
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x4a2678
Function at 0x7ffa11ef
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push esi
xor esi, esi
mov dword [ebp - 4], eax
sub edx, ebx
mov dword [ebp - 8], esi
push edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], 0x30
inc esi
and esi, 0x800000ff
jns 0x7ffa1222
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [esi + eax]
mov edi, dword [ebp - 8]
movzx edx, cl
add edi, edx
and edi, 0x800000ff
jns 0x7ffa123d
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [edi + eax]
mov dword [ebp - 8], edi
mov edi, dword [ebp - 4]
mov byte [esi + edi], al
mov eax, edi
mov edi, dword [ebp - 8]
mov byte [edi + eax], cl
movzx eax, byte [esi + eax]
mov ecx, dword [ebp - 4]
add eax, edx
mov edi, dword [ebp - 0x10]
movzx eax, al
mov al, byte [eax + ecx]
xor al, byte [edi + ebx]
mov byte [ebx], al
inc ebx
sub dword [ebp - 0xc], 1
mov eax, ecx
jne 0x7ffa1211
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x7ffa1278
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x7ffa4004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
mov dword [ebp - 0x114], edx
mov ecx, dword [ebp + 8]
push esi
mov esi, eax
mov dword [ebp - 0x10c], eax
push edi
mov dword [ebp - 0x110], ecx
lea edi, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x7ffa12aa
sub esi, edi
xor edi, edi
mov eax, edi
mov byte [ebp + eax - 0x104], al
inc eax
cmp eax, 0x100
jl 0x7ffa12b7
mov ecx, edi
mov dword [ebp - 0x108], edi
mov eax, ecx
mov bl, byte [ebp + ecx - 0x104]
cdq
idiv esi
mov eax, dword [ebp - 0x10c]
movzx ecx, bl
movsx eax, byte [edx + eax]
add edi, eax
add edi, ecx
and edi, 0x800000ff
jns 0x7ffa12fb
dec edi
or edi, 0xffffff00
inc edi
mov ecx, dword [ebp - 0x108]
mov al, byte [ebp + edi - 0x104]
mov byte [ebp + ecx - 0x104], al
inc ecx
mov byte [ebp + edi - 0x104], bl
mov dword [ebp - 0x108], ecx
cmp ecx, 0x100
jl 0x7ffa12ce
push dword [ebp - 0x110]
mov edx, dword [ebp - 0x114]
lea ecx, [ebp - 0x104]
call fcn.7ffa11ef
pop ecx
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.7ffa165c
leave
ret
Function at 0x4010c0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x42a520]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ecx, ecx
mov al, 1
push edi
lea ebx, [ebx]
movzx edx, al
mov byte [ebp + edx - 0x104], cl
mov dl, al
and dl, 0x80
mov byte [ebp + ecx - 0x204], al
inc ecx
neg dl
sbb dl, dl
mov bl, al
and dl, 0x1b
add bl, bl
xor dl, bl
xor al, dl
cmp ecx, 0x100
jl 0x4010e0
mov al, 1
mov ecx, 0x4635c0
movzx edx, al
shl edx, 0x18
mov dword [ecx], edx
mov dl, al
and dl, 0x80
add ecx, 4
neg dl
sbb dl, dl
and dl, 0x1b
add al, al
xor al, dl
cmp ecx, 0x4635e8
jl 0x401115
mov dword [0x4629c0], 0x63
mov dword [0x465b8c], 0
mov edx, 1
jmp 0x401160
movzx eax, byte [ebp + edx - 0x104]
lea ecx, [ebp - 0x105]
sub ecx, eax
mov cl, byte [ecx]
mov al, cl
rol al, 1
xor cl, al
rol al, 1
xor cl, al
rol al, 1
xor cl, al
rol al, 1
xor al, cl
xor al, 0x63
movzx eax, al
mov dword [edx*4 + 0x4629c0], eax
mov dword [eax*4 + 0x465a00], edx
inc edx
cmp edx, 0x100
jl 0x401160
xor ecx, ecx
mov dl, byte [ecx + 0x4629c0]
mov al, dl
and al, 0x80
neg al
sbb al, al
and al, 0x1b
mov bl, dl
add bl, bl
xor al, bl
movzx esi, al
movzx edx, dl
mov eax, esi
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, esi
xor eax, edx
mov dword [ecx + 0x465600], eax
ror eax, 8
mov dword [ecx + 0x465200], eax
ror eax, 8
mov dword [ecx + 0x464e00], eax
ror eax, 8
mov dword [ecx + 0x464a00], eax
mov al, byte [ecx + 0x465a00]
test al, al
je 0x40126f
movzx edx, al
movzx esi, byte [ebp + edx - 0x104]
movzx eax, byte [ebp - 0xf9]
add eax, esi
cdq
mov edi, 0xff
idiv edi
movzx eax, byte [ebp + edx - 0x204]
mov dword [ebp - 0x208], eax
movzx eax, byte [ebp - 0xf7]
add eax, esi
cdq
idiv edi
movzx eax, byte [ebp - 0xfb]
add eax, esi
movzx ebx, byte [ebp + edx - 0x204]
cdq
idiv edi
movzx eax, byte [ebp - 0xf6]
add eax, esi
mov esi, 0xff
movzx edi, byte [ebp + edx - 0x204]
cdq
idiv esi
movzx eax, byte [ebp + edx - 0x204]
mov edx, dword [ebp - 0x208]
jmp 0x401277
xor edx, edx
xor ebx, ebx
xor edi, edi
xor eax, eax
shl eax, 8
xor eax, edi
shl eax, 8
xor eax, ebx
shl eax, 8
xor eax, edx
mov dword [ecx + 0x464600], eax
ror eax, 8
mov dword [ecx + 0x464200], eax
ror eax, 8
mov dword [ecx + 0x4631c0], eax
ror eax, 8
mov dword [ecx + 0x462dc0], eax
add ecx, 4
cmp ecx, 0x400
jl 0x4011a2
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004106c7
mov esp, ebp
pop ebp
ret
Function at 0x406ea0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
mov ecx, 0x4608c0
call fcn.0040f64b
mov ebx, eax
mov dword [ebp - 4], 1
test ebx, ebx
je 0x406f54
test esi, esi
jne 0x406f54
mov eax, dword [ebp + 8]
shr eax, 4
inc eax
push esi
movzx ecx, ax
push ecx
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
je 0x406f38
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x406f32
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406f32
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
add eax, esi
and ecx, 0xf
jbe 0x406f21
cmp esi, eax
jae 0x406f25
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x406f13
cmp esi, eax
jb 0x406f29
xor eax, eax
jmp 0x406f32
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
mov esi, eax
test eax, eax
jne 0x406f5d
mov edi, dword [ebp - 4]
push edi
mov ecx, 0x4608c0
call fcn.0040f64b
mov ebx, eax
inc edi
mov dword [ebp - 4], edi
test ebx, ebx
jne 0x406ec5
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407060
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x407078
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4070aa
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x4070a6
cmp esi, eax
jae 0x4070aa
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x407098
cmp esi, eax
jb 0x4070b0
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x40ad70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421df0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x42a520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
lea eax, [ebp - 0x18]
push 0x4605d8
xor edi, edi
push eax
xor esi, esi
mov dword [ebp - 4], edi
call fcn.004097b0
mov ecx, dword [ebp - 0x18]
add esp, 8
cmp dword [ecx - 0xc], edi
je 0x40ae45
cmp edi, 2
jge 0x40ae45
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x14]
push edx
push 0
xor eax, eax
push 2
test edi, edi
push 0
setne al
push 0
push 0
push ecx
mov dword [ebp - 0x14], 0
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40ae3c
mov esi, dword [ebp - 0x14]
mov ecx, esi
mov dword [ebp - 0x28], ecx
test ebx, ebx
jne 0x40ae08
lea eax, [ebx + 0xd]
jmp 0x40ae28
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0
push 0x42692c
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x28]
xor edx, edx
test eax, eax
sete dl
mov esi, edx
test ecx, ecx
je 0x40ae3c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x18]
inc edi
jmp 0x40adc1
lea eax, [ecx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ae85
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
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 0x40ce80
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421e77
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x42a520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebx], 0x4268c0
mov dword [ebx + 0x60], 0x42683c
mov dword [ebp - 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], 0x42687c
mov edx, dword [ebx]
mov esi, dword [edx + 4]
add esi, ebx
mov dword [ebp - 0x10], 1
call fcn.0040a1a0
lea edi, [ebx + 4]
push esi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], 0
call fcn.0040e8b0
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x40cf0b
mov eax, dword [esi + 0xc]
or eax, 4
or eax, 4
push 0
mov ecx, esi
call fcn.0040a060
mov dword [ebp - 4], 2
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
push edi
mov dword [ebx + ecx], 0x4268bc
call fcn.0040e530
lea edx, [edi + 8]
mov dword [edi + 0x10], edx
lea ecx, [edi + 0x18]
mov dword [edi + 0x20], ecx
lea edx, [edi + 0x1c]
mov dword [edi + 0x24], edx
mov dword [edi], 0x426880
mov byte [edi + 0x50], 0
mov byte [edi + 0x49], 0
lea ecx, [edi + 0x28]
mov dword [edi + 0x30], ecx
xor ecx, ecx
lea eax, [edi + 0xc]
mov dword [edi + 0x14], eax
lea edx, [edi + 0x2c]
mov dword [edi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [edi + 0x24]
mov dword [eax], ecx
mov edx, dword [edi + 0x34]
mov dword [edx], ecx
mov eax, dword [edi + 0x10]
mov dword [eax], ecx
mov edx, dword [edi + 0x20]
mov dword [edx], ecx
mov eax, dword [edi + 0x30]
mov edx, dword [0x461854]
mov dword [eax], ecx
mov dword [edi + 0x54], ecx
mov dword [edi + 0x4c], edx
mov dword [edi + 0x44], ecx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40f0b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421e28
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x42a520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x1c]
push 0x42b428
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004097b0
add esp, 8
lea ecx, [ebp - 0x18]
push 0x42b474
push ecx
mov byte [ebp - 4], 1
call fcn.004097b0
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
push 0x6a
mov byte [ebp - 4], 3
call fcn.00406ea0
add esp, 4
cmp eax, ebx
je 0x40f141
push eax
lea eax, [ebx + 0x6a]
lea edi, [ebp - 0x14]
call fcn.004069d0
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx - 0xc], ebx
je 0x40f1cd
mov edx, dword [ebp - 0x18]
cmp dword [edx - 0xc], ebx
je 0x40f1cd
cmp dword [esi - 0xc], ebx
je 0x40f1cd
xor eax, eax
mov dword [ebp - 0x14], eax
nop
cmp eax, 2
jge 0x40f1cd
xor ecx, ecx
cmp eax, ebx
setne cl
push 2
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
add ecx, 0x80000001
mov dword [ebp - 0x20], ebx
call fcn.0040f030
test eax, eax
jne 0x40f1b1
mov edi, dword [ebp - 0x18]
cmp esi, ebx
je 0x40f1b1
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push ebx
push edi
mov edi, dword [ebp - 0x28]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x40f1b4
mov edi, dword [ebp - 0x28]
cmp edi, ebx
je 0x40f1c2
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], ebx
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], ebx
jmp 0x40f160
lea eax, [esi - 0x10]
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f1ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f210
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f232
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x41ec8c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42a520]
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.00415f87
and dword [ebp - 0x14], 0
cmp dword [0x461790], 0
mov dword [ebp - 0x18], eax
jne 0x41ed3f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41ede7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41ede7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x461790], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x461794], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x461798], eax
call edi
push eax
call esi
mov dword [0x4617a0], eax
test eax, eax
je 0x41ed3f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x46179c], eax
mov eax, dword [0x46179c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41ed98
cmp dword [0x4617a0], ecx
je 0x41ed98
push eax
call esi
push dword [0x4617a0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41ed98
test ebx, ebx
je 0x41ed98
call edi
test eax, eax
je 0x41ed8f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41ed8f
test byte [ebp - 8], 1
jne 0x41ed98
or dword [ebp + 0x10], 0x200000
jmp 0x41edcb
mov eax, dword [0x461794]
cmp eax, dword [ebp - 0x18]
je 0x41edcb
push eax
call esi
test eax, eax
je 0x41edcb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41edcb
mov eax, dword [0x461798]
cmp eax, dword [ebp - 0x18]
je 0x41edcb
push eax
call esi
test eax, eax
je 0x41edcb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x461790]
call esi
test eax, eax
je 0x41ede7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41ede9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004106c7
leave
ret