joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401690
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x100
push ebx
mov ebx, dword [0x4068a0]
push esi
push edi
test ebx, ebx
je 0x4016be
mov eax, dword [ebx]
push 0x406590
push eax
call fcn.004041c0
add esp, 8
test eax, eax
je 0x401729
mov ebx, dword [ebx + 0xc]
test ebx, ebx
jne 0x4016a3
mov edi, 0x406590
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str._is_not_in_the_file_list_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004010b0
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x100
ret
mov edi, 0x406690
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 5
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebx
add esp, 0x100
ret
Function at 0x402609
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4063f8
cmp edx, dword [eax]
je 0x40262b
add eax, 8
inc ecx
cmp eax, 0x406488
jl 0x40261c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4063f8]
jne 0x402759
mov eax, dword [0x4068fc]
cmp eax, 1
je 0x402733
test eax, eax
jne 0x40265c
cmp dword [0x406134], 1
je 0x402733
cmp edx, 0xfc
je 0x402759
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402693
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403560
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403650
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4026d6
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403650
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4053a0
push edi
call fcn.00403a90
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00403560
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403570
lea eax, [ebp - 0xa0]
push 0x405380
push eax
call fcn.00403570
push dword [esi + 0x4063fc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403570
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00403a05
add esp, 0x2c
pop edi
jmp 0x402759
lea eax, [ebp + 8]
lea esi, [esi + 0x4063fc]
push 0
push eax
push dword [esi]
call fcn.00403650
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x419230
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
sub ecx, eax
push ebx
sar ecx, 2
push ebp
mov ebx, ecx
mov dword [esp + 0x14], ecx
sar ebx, 1
push esi
push edi
test ebx, ebx
jle 0x419359
lea esi, [ecx - 1]
sar esi, 1
mov dword [esp + 0x18], esi
nop dword [eax]
dec ebx
mov dword [esp + 0x14], ebx
lea ecx, [eax + ebx*4]
mov eax, dword [ecx]
mov ebp, ebx
mov dword [esp + 0x10], eax
mov edx, ebx
mov dword [ecx], 0x71f078
mov edi, dword [esp + 0x24]
cmp ebx, esi
jge 0x4192bd
mov ebx, dword [esp + 0x18]
lea esi, [edx + edx]
lea ecx, [edi + 8]
lea ecx, [ecx + esi*4]
lea eax, [ecx - 4]
push eax
push ecx
call fcn.00427c80
mov ecx, dword [edi + ebp*4]
add esp, 8
movzx edx, al
xor edx, 1
inc edx
add edx, esi
mov eax, dword [edi + edx*4]
mov dword [edi + ebp*4], eax
mov ebp, edx
mov dword [edi + edx*4], ecx
cmp edx, ebx
jl 0x419284
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
cmp ebp, esi
jne 0x4192db
mov edx, dword [esp + 0x1c]
test dl, 1
jne 0x4192db
mov ecx, dword [edi + ebp*4]
mov eax, dword [edi + edx*4 - 4]
mov dword [edi + ebp*4], eax
lea ebp, [edx - 1]
mov dword [edi + edx*4 - 4], ecx
cmp ebx, ebp
jge 0x419314
nop
lea ebx, [ebp - 1]
sar ebx, 1
lea eax, [esp + 0x10]
push eax
lea esi, [edi + ebx*4]
push esi
call fcn.00427c80
add esp, 8
test al, al
je 0x41930c
mov ecx, dword [edi + ebp*4]
mov eax, dword [esi]
mov dword [edi + ebp*4], eax
mov ebp, ebx
mov dword [esi], ecx
cmp dword [esp + 0x14], ebx
jl 0x4192e0
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov ecx, dword [edi + ebp*4]
mov eax, dword [esp + 0x10]
mov dword [edi + ebp*4], eax
mov dword [esp + 0x10], ecx
mov eax, dword [ecx]
test eax, eax
je 0x41933c
cmp eax, 0xffffffff
je 0x41934c
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x41934c
push 4
push 2
push dword [esp + 0x18]
call fcn.00425140
add esp, 0xc
test ebx, ebx
jle 0x419359
mov eax, dword [esp + 0x24]
jmp 0x419260
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4195e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
mov edx, ebp
lea ebx, [eax - 1]
mov dword [esp + 0x10], edx
push esi
sar ebx, 1
mov esi, ebp
push edi
mov edi, dword [esp + 0x14]
cmp ebp, ebx
jge 0x419641
add esi, esi
lea ecx, [edi + 8]
lea ecx, [ecx + esi*4]
lea eax, [ecx - 4]
push eax
push ecx
call fcn.00427c80
movzx eax, al
add esp, 8
xor eax, 1
inc eax
add esi, eax
mov eax, dword [esp + 0x14]
mov edx, dword [eax + ebp*4]
mov ecx, dword [eax + esi*4]
mov dword [eax + ebp*4], ecx
mov ebp, esi
mov dword [eax + esi*4], edx
cmp esi, ebx
jl 0x419601
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
cmp esi, ebx
jne 0x419662
test al, 1
jne 0x419662
mov ecx, dword [edi + ebp*4]
mov eax, dword [edi + eax*4 - 4]
mov dword [edi + ebp*4], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + eax*4 - 4], ecx
lea ebp, [eax - 1]
mov edi, dword [esp + 0x14]
cmp edx, ebp
jge 0x419691
push dword [esp + 0x20]
lea ebx, [ebp - 1]
sar ebx, 1
lea esi, [edi + ebx*4]
push esi
call fcn.00427c80
add esp, 8
test al, al
je 0x419691
mov ecx, dword [edi + ebp*4]
mov eax, dword [esi]
mov dword [edi + ebp*4], eax
mov ebp, ebx
mov dword [esi], ecx
cmp dword [esp + 0x18], ebx
jl 0x419666
mov edx, dword [esp + 0x20]
mov ecx, dword [edi + ebp*4]
mov eax, dword [edx]
mov dword [edi + ebp*4], eax
pop edi
pop esi
pop ebp
mov dword [edx], ecx
pop ebx
ret
Function at 0x432370
Capabilities:
Encode data using add xor sub operations

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
test edx, edx
je 0x4323a2
movzx ecx, word [esi]
lea esi, [esi + 2]
shl eax, 4
add ecx, eax
mov eax, ecx
shr eax, 0x17
and eax, 0x1e0
xor eax, ecx
and eax, 0xfffffff
sub edx, 1
jne 0x432381
pop esi
ret
Function at 0x4362c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57821f
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x732480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
mov esi, dword [ebp + 8]
mov dword [esi], 0x71f0d0
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
mov ebx, 1
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x10], ebx
call fcn.0042f930
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
je 0x43645a
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
cmp eax, dword [ebp - 0x14]
jge 0x436354
mov eax, dword [ecx]
cmp eax, ebx
je 0x436347
test eax, eax
je 0x436347
push dword [ebp - 0x14]
mov ecx, esi
call fcn.00403100
jmp 0x436351
push dword [ebp - 0x14]
mov ecx, esi
call fcn.00430f80
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
lea eax, [edi + eax*4]
mov dword [ebp - 0x24], eax
cmp edi, eax
jae 0x436451
mov esi, dword [ebp - 0x28]
push 0xffffffffffffffff
push dword [edi]
lea eax, [ebp - 0x18]
push eax
call fcn.0042aa50
add esp, 0xc
mov ecx, eax
mov eax, dword [ecx]
or ebx, 0xa
mov dword [ebp - 0x1c], eax
mov dword [ecx], 0x71f078
mov dword [ebp - 0x10], ebx
test bl, 4
je 0x4363c0
mov eax, dword [esi]
and ebx, 0xfffffffb
mov dword [ebp - 0x10], ebx
test eax, eax
je 0x4363b0
cmp eax, 0xffffffff
je 0x4363bd
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
setne al
test al, al
jne 0x4363bd
push 4
push 2
push esi
call fcn.00425140
add esp, 0xc
mov ebx, dword [ebp - 0x10]
test bl, 2
je 0x4363fa
mov eax, dword [ebp - 0x18]
and ebx, 0xfffffffd
mov dword [ebp - 0x10], ebx
mov eax, dword [eax]
test eax, eax
je 0x4363eb
cmp eax, 0xffffffff
je 0x4363fa
mov eax, dword [ebp - 0x18]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4363fa
push 4
push 2
push dword [ebp - 0x18]
call fcn.00425140
add esp, 0xc
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 4], 2
call fcn.00402cb0
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 0
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
test ecx, ecx
je 0x436431
cmp ecx, 0xffffffff
je 0x43643e
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne cl
test cl, cl
jne 0x43643e
push 4
push 2
push eax
call fcn.00425140
add esp, 0xc
add edi, 4
cmp edi, dword [ebp - 0x24]
jae 0x43644e
mov ebx, dword [ebp - 0x10]
jmp 0x436368
mov esi, dword [ebp + 8]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LocalFree]
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 0x444c40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57989b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x732480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0x71f078
mov dword [ebp - 4], 0
mov dword [edi + 8], 0x71f078
mov dword [edi + 0x14], 0x71f078
mov dword [edi + 0x20], 0x71f078
mov dword [edi + 0x24], 0x71f078
mov dword [edi + 0x28], 0x71f078
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
mov dword [edi + 0x30], eax
cmp dword [esi + 4], 3
sete al
mov byte [edi + 0x34], al
cmp dword [esi + 4], 5
sete al
mov byte [edi + 0x35], al
mov dword [edi + 0x48], 0x71f078
mov dword [edi + 0x50], 0x71f078
mov dword [edi + 0x68], 0
mov dword [edi + 0x74], 0x71f078
mov byte [ebp - 4], 9
call fcn.0044df10
push dword [esi + 4]
lea eax, [ebp + 8]
push esi
push eax
call fcn.0044d3a0
add esp, 0xc
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 0xa
mov ecx, dword [eax + 0xc]
mov esi, dword [eax + 4]
add ecx, eax
push esi
push ecx
mov ecx, edi
call fcn.0044b750
cmp eax, esi
sete cl
mov byte [edi + 0x2e], cl
je 0x444d32
mov eax, dword [edi + 0x74]
mov byte [edi + 0x2d], 0
cmp dword [eax + 4], 0
jne 0x444d32
push str.missing_left_delim
push 0x12
lea ecx, [edi + 0x74]
call fcn.00427430
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
je 0x444d52
cmp eax, 0xffffffff
je 0x444d61
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x444d61
push 4
push 2
push dword [ebp + 8]
call fcn.00425140
add esp, 0xc
mov eax, edi
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 0x457160
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57aafd
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x732480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0x73430c
mov ecx, 1
mov edi, 0x73430c
xor eax, eax
lock cmpxchg dword [edi], ecx
test eax, eax
je 0x4571aa
mov ecx, edi
call fcn.0047aa60
mov byte [ebp - 0x14], 1
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [ebx]
cmp dword [eax + 4], 0x7ffe
jg 0x4571d6
mov ecx, ebx
call fcn.0042f930
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x4572ad
push 0xfffe
call fcn.005536f9
mov edx, eax
xor esi, esi
mov eax, dword [ebx]
add esp, 4
mov dword [ebp - 0x10], edx
cmp dword [eax + 4], esi
jle 0x4572a4
mov ebx, 0x7ffe
nop word [eax + eax]
mov ecx, dword [eax + 4]
mov edi, ecx
sub edi, esi
mov dword [ebp - 0x14], ecx
cmp edi, 0x7ffe
mov ecx, edi
cmovg ecx, ebx
cmp eax, 0x71f078
jne 0x457220
xor ebx, ebx
jmp 0x457225
mov ebx, dword [eax + 0xc]
add ebx, eax
cmp ecx, 0xffffffff
je 0x45724f
lea edx, [ecx + esi]
mov eax, esi
mov ecx, dword [ebp - 0x14]
cmp ecx, edx
cmovl edx, ecx
cmp ecx, esi
cmovl eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
xor edi, edi
test edx, edx
cmovg edi, edx
mov edx, dword [ebp - 0x10]
sub edi, ecx
cmp dword [ebp - 0x14], esi
mov ecx, esi
cmovl ecx, dword [ebp - 0x14]
xor eax, eax
test ecx, ecx
cmovg eax, ecx
add edi, edi
lea eax, [ebx + eax*2]
test eax, eax
je 0x457273
push edi
push eax
push edx
call fcn.00554ff0
add esp, 0xc
mov eax, dword [ebp - 0x10]
xor ecx, ecx
push eax
mov word [edi + eax], cx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ebx, dword [ebp + 8]
add esi, 0x7ffe
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx]
mov ebx, 0x7ffe
cmp esi, dword [eax + 4]
jl 0x457200
mov edi, 0x73430c
push edx
call fcn.005533c3
add esp, 4
xor edx, edx
mov eax, 1
lock cmpxchg dword [edi], edx
cmp eax, 1
je 0x4572c4
mov ecx, edi
call fcn.0047ae90
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 0x466eb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57b61c
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x732480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
push 8
mov dword [ebp - 4], 0
call fcn.00553354
add esp, 4
mov dword [ebp - 0x14], eax
push 0
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.004ba060
mov esi, eax
mov byte [ebp - 4], 0
push 1
mov ecx, esi
call fcn.00471d10
push dword [ebp + 8]
mov ecx, esi
call fcn.004ba9b0
mov ecx, dword [esi]
push ecx
mov eax, esp
mov edx, dword [ecx + 0x30]
mov ecx, esi
mov dword [eax], 1
call edx
mov dword [edi + 4], esi
mov eax, edi
mov word [edi + 8], 1
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0x13
mov dword [edi + 0x14], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x466f70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57b61c
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x732480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
push 8
mov dword [ebp - 4], 0
call fcn.00553354
add esp, 4
mov dword [ebp - 0x14], eax
push 0
push dword [ebp + 8]
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.004b9f80
mov esi, eax
mov byte [ebp - 4], 0
push 1
mov ecx, esi
call fcn.00471d10
mov edx, dword [esi]
mov ecx, esi
push dword [ebp + 0xc]
call dword [edx + 0x30]
mov dword [edi + 4], esi
mov eax, edi
mov word [edi + 8], 1
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0x13
mov dword [edi + 0x14], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x469e40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x5c
mov eax, dword [0x732480]
xor eax, esp
mov dword [esp + 0x58], eax
push edi
mov edi, dword [esp + 0x64]
lea eax, [esp + 4]
push eax
push 0x20119
push 0
push str.SOFTWAREMicrosoftCryptography
mov dword [esp + 0x18], edi
push 0x80000002
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x469ede
push esi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x4a
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push str.MachineGuid
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x469ede
mov eax, dword [esp + 8]
lea ecx, [esp + 0x10]
dec eax
push ecx
shr eax, 1
push eax
push edi
call fcn.00429a60
add esp, 0xc
mov eax, edi
pop edi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00553392
add esp, 0x5c
ret
mov ecx, dword [esp + 0x5c]
mov eax, edi
mov dword [edi], 0x71f078
pop edi
xor ecx, esp
call fcn.00553392
add esp, 0x5c
ret
Function at 0x46eb80
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov edx, dword [esp + 0x10]
xor eax, eax
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x14]
mov ecx, edi
sub ecx, esi
mov dword [esp + 0xc], ecx
cmp edx, 0x20
jb 0x46ec04
mov edi, 0x10
add esi, 0x10
sub edi, dword [esp + 0x1c]
nop dword [eax]
mov edx, dword [esp + 0x14]
lea esi, [esi + 0x20]
movups xmm2, xmmword [ecx + esi - 0x20]
lea ecx, [edi + esi]
movups xmm1, xmmword [eax + edx]
mov edx, dword [esp + 0x18]
add eax, 0x20
cmp ecx, edx
mov ecx, dword [esp + 0xc]
movaps xmm0, xmm1
psrlw xmm1, 8
psllw xmm0, 8
xorps xmm0, xmm1
movups xmmword [esi - 0x30], xmm0
movaps xmm0, xmm2
psrlw xmm2, 8
psllw xmm0, 8
xorps xmm0, xmm2
movups xmmword [esi - 0x20], xmm0
jbe 0x46ebb0
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
jmp 0x46ec08
mov dword [esp + 0xc], ecx
lea ecx, [eax + 0x10]
mov dword [esp + 8], ecx
cmp ecx, edx
mov ecx, dword [esp + 0xc]
ja 0x46ec33
movups xmm1, xmmword [eax + edi]
movaps xmm0, xmm1
psrlw xmm1, 8
psllw xmm0, 8
xorps xmm0, xmm1
movups xmmword [eax + esi], xmm0
mov eax, dword [esp + 8]
xor edi, edi
cmp eax, edx
jae 0x46ec65
add esi, eax
nop dword [eax + eax]
cmp edi, 0x10
jae 0x46ec65
mov cx, word [ecx + esi]
add eax, 2
mov dh, cl
add edi, 2
mov dl, ch
mov ecx, dword [esp + 0xc]
mov word [esi], dx
add esi, 2
mov edx, dword [esp + 0x18]
cmp eax, edx
jb 0x46ec40
pop edi
mov eax, edx
pop esi
add esp, 8
ret
Function at 0x46ece0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
cmp eax, 0x270
jne 0x46ed2f
lea edx, [esi + 8]
mov edi, eax
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x46ecf2
mov eax, dword [esi]
jmp 0x46ee18
cmp eax, 0x4e0
jb 0x46ee18
push ebx
mov ebx, dword [esi + 0x9c4]
lea edi, [esi + 0x9c4]
push ebp
mov ebp, 0xe3
nop dword [eax]
lea edx, [edi]
mov eax, ebx
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, ebx
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x634]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub ebp, 1
jne 0x46ed50
mov ebx, dword [esi + 0xd50]
lea edi, [esi + 0xd50]
mov ebp, 0x18c
nop dword [eax]
mov eax, ebx
lea edx, [edi]
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx - 0xd4c]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub ebp, 1
jne 0x46eda0
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop ebp
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
xor eax, eax
pop ebx
mov dword [esi], 0
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
ret

Function at 0x46ee50
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x46eecd
push ebp
mov ebp, 0x734380
cmp edi, 0x7343c0
jne 0x46ee7d
mov ecx, 1
xor eax, eax
lock cmpxchg dword [ebp], ecx
test eax, eax
je 0x46ee7d
mov ecx, ebp
call fcn.0047aa60
push ebx
mov ebx, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x46eea6
nop dword [eax + eax]
lea ecx, [edi + 4]
call fcn.0046ece0
mov dword [esi], eax
add esi, 4
cmp esi, ebx
jne 0x46ee90
mov ebp, 0x734380
pop esi
pop ebx
cmp edi, 0x7343c0
jne 0x46eec8
xor edx, edx
mov eax, 1
lock cmpxchg dword [ebp], edx
cmp eax, 1
je 0x46eec8
mov ecx, ebp
call fcn.0047ae90
pop ebp
pop edi
ret 8
pop edi
mov ecx, 0x734388
jmp fcn.0046eee0
Function at 0x46eee0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57bec0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x732480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movq xmm0, qword [0x737b38]
xor ebx, ebx
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
sub edi, edx
movq qword [ebp - 0x14], xmm0
mov ecx, dword [ebp - 0x14]
mov eax, ecx
sar edi, 2
or eax, dword [ebp - 0x10]
jne 0x46ef36
call fcn.004c2ef0
mov edx, dword [ebp + 8]
mov ecx, eax
and ecx, 0x1000
or ecx, ebx
je 0x46ef4c
push edi
push edx
call fcn.004c30f0
add esp, 8
mov ebx, eax
cmp ebx, edi
je 0x46efab
mov esi, edi
sub esi, ebx
shl esi, 2
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 4], 0
lea eax, [eax + ebx*4]
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
xor ecx, ecx
test al, al
cmovne ecx, esi
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
add ebx, eax
cmp ebx, edi
je 0x46efab
mov eax, dword [ebp + 8]
sub edi, ebx
lea esi, [eax + ebx*4]
lea edi, [esi + edi*4]
cmp esi, edi
je 0x46efab
lea eax, [ebp + 8]
push eax
call fcn.0055eb89
mov eax, dword [ebp + 8]
add esp, 4
mov dword [esi], eax
add esi, 4
cmp esi, edi
jne 0x46ef93
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
sub esp, 0x9c4
mov eax, dword [0x732480]
xor eax, esp
mov dword [esp + 0x9c0], eax
push ebx
mov ebx, dword [esp + 0x9cc]
mov edx, 0x1571
push ebp
push esi
mov ecx, 1
mov dword [ebx], 1
lea esi, [ebx + 0xc]
mov dword [ebx + 0x1388], 0xffffffff
mov dword [ebx + 8], 0x1571
mov eax, edx
lea esi, [esi + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
inc ecx
mov dword [esi - 4], edx
cmp ecx, 0x270
jb 0x46f082
push edi
lea eax, [esp + 0x9d0]
mov dword [ebx + 4], 0x270
push eax
lea eax, [esp + 0x14]
mov ecx, 0x734388
push eax
call fcn.0046eee0
xor edx, edx
lea edi, [ebx + 8]
xor esi, esi
mov eax, dword [esp + esi*4 + 0x10]
lea edi, [edi + 4]
mov ecx, eax
mov dword [edi - 4], eax
or ecx, edx
mov edx, eax
shr edx, 0x1f
test esi, esi
cmovne edx, ecx
inc esi
cmp esi, 0x270
jb 0x46f0c6
pop edi
test edx, edx
jne 0x46f0f3
mov dword [ebx + 8], 0x80000000
mov ecx, dword [esp + 0x9cc]
pop esi
pop ebp
mov dword [ebx + 4], 0x270
pop ebx
xor ecx, esp
call fcn.00553392
add esp, 0x9c4
ret