joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45b194
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404be4
xor eax, eax
push ebp
push 0x45b2fc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x45b2d9
mov dl, 1
mov eax, dword [0x42fe5c]
call fcn.0042ff5c
mov dword [ebp - 0x10], eax
mov dl, 1
mov eax, dword [0x416b3c]
call fcn.00403930
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x45b2d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0x10]
call fcn.0042fffc
xor ecx, ecx
mov edx, 0x45b314
mov eax, dword [ebp - 0x10]
call fcn.00430060
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.0043020c
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x45b2ac
inc esi
xor ebx, ebx
lea ecx, [ebp - 0x20]
mov edx, ebx
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
call fcn.00430378
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.00409258
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
call fcn.00404b40
jne 0x45b2a8
lea ecx, [ebp - 0x24]
mov edx, ebx
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.00430378
cmp byte [ebp - 5], 0
je 0x45b2a8
lea ecx, [ebp - 0x28]
mov edx, ebx
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x10]
call fcn.00430184
inc ebx
dec esi
jne 0x45b23c
mov eax, dword [ebp - 0x10]
call fcn.0042ffcc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b2d9
mov eax, dword [ebp - 0x10]
call fcn.00403960
mov eax, dword [ebp - 0x14]
call fcn.00403960
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b303
lea eax, [ebp - 0x28]
mov edx, 5
call fcn.00404758
lea eax, [ebp - 4]
call fcn.00404734
ret
Function at 0x45b344
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404be4
xor eax, eax
push ebp
push 0x45b400
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x45b3ea
mov dl, 1
mov eax, dword [0x42fe5c]
call fcn.0042ff5c
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x45b3e3
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 8]
call fcn.0042fffc
xor ecx, ecx
mov edx, 0x45b418
mov eax, dword [ebp - 8]
call fcn.00430060
mov ecx, esi
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.00430378
cmp bl, 1
jne 0x45b3c5
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.00430184
mov eax, dword [ebp - 8]
call fcn.0042ffcc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b3ea
mov eax, dword [ebp - 8]
call fcn.00403960
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b407
lea eax, [ebp - 4]
call fcn.00404734
ret

Function at 0x45ba74
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45bb9d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
call fcn.00404734
cmp dword [ebp - 4], 0
jne 0x45babc
mov eax, dword [ebp - 8]
call fcn.00404734
jmp 0x45bb75
mov eax, dword [ebp - 4]
call fcn.004049f4
test al, al
jbe 0x45bb13
mov byte [ebp - 0x12], al
mov bl, 1
lea eax, [ebp - 0x18]
mov edi, ebx
and edi, 0xff
mov edx, dword [ebp - 4]
mov dl, byte [edx + edi - 1]
movzx ecx, si
shr ecx, 8
xor dl, cl
call fcn.0040491c
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0xc]
call fcn.004049fc
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + edi - 1]
add si, ax
imul ax, si, 0x56ab
add ax, 0xa760
mov esi, eax
inc ebx
dec byte [ebp - 0x12]
jne 0x45bacd
lea eax, [ebp - 0x10]
call fcn.00404734
mov eax, dword [ebp - 0xc]
call fcn.004049f4
test al, al
jbe 0x45bb6a
mov byte [ebp - 0x12], al
mov bl, 1
xor eax, eax
mov al, bl
mov edx, dword [ebp - 0xc]
mov al, byte [edx + eax - 1]
mov byte [ebp - 0x11], al
lea eax, [ebp - 0x1c]
push eax
xor eax, eax
mov al, byte [ebp - 0x11]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x45bbb4
call fcn.00409a64
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
call fcn.004049fc
inc ebx
dec byte [ebp - 0x12]
jne 0x45bb2c
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.00404788
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bba4
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404758
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404758
ret
Function at 0x45bbbc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x45bcd7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
call fcn.00404734
test edi, edi
jne 0x45bbfe
mov eax, dword [ebp - 4]
call fcn.00404734
jmp 0x45bcaf
mov bl, 1
lea eax, [ebp - 0x10]
push eax
xor edx, edx
mov dl, bl
mov ecx, 3
mov eax, edi
call fcn.00404c54
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.00408dc8
mov edx, eax
lea eax, [ebp - 0x18]
call fcn.0040491c
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0xc]
call fcn.004049fc
add bl, 3
mov eax, edi
call fcn.004049f4
xor edx, edx
mov dl, bl
cmp eax, edx
jge 0x45bc00
lea eax, [ebp - 8]
call fcn.00404734
mov eax, dword [ebp - 0xc]
call fcn.004049f4
test al, al
jbe 0x45bca4
mov byte [ebp - 0x11], al
mov bl, 1
lea eax, [ebp - 0x1c]
xor edx, edx
mov dl, bl
mov ecx, dword [ebp - 0xc]
mov dl, byte [ecx + edx - 1]
movzx ecx, si
shr ecx, 8
xor dl, cl
call fcn.0040491c
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 8]
call fcn.004049fc
xor eax, eax
mov al, bl
mov edx, dword [ebp - 0xc]
movzx eax, byte [edx + eax - 1]
add si, ax
imul ax, si, 0x56ab
add ax, 0xa760
mov esi, eax
inc ebx
dec byte [ebp - 0x11]
jne 0x45bc5e
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00404788
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bcde
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404758
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404758
ret
Function at 0x469d4c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x469d54
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x469f46
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x469f5c
mov eax, esi
call fcn.00467bd8
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00404788
lea ecx, [ebp - 0x10]
mov edx, 0x469f70
mov eax, esi
call fcn.00467bd8
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00404788
lea ecx, [ebp - 0x14]
mov edx, 0x469f88
mov eax, esi
call fcn.00467bd8
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00404788
lea ecx, [ebp - 0x18]
mov edx, 0x469fa4
mov eax, esi
call fcn.00467bd8
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00404788
lea ecx, [ebp - 0x1c]
mov edx, 0x469fc0
mov eax, esi
call fcn.00467bd8
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00404788
lea ecx, [ebp - 0x24]
mov edx, 0x469fd8
mov eax, esi
call fcn.00467bd8
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.004089e8
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00408dc8
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x469ff0
mov eax, esi
call fcn.00467bd8
mov eax, dword [ebp - 0x28]
call fcn.0046157c
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x46a000
mov eax, esi
call fcn.00467bd8
mov eax, dword [ebp - 0x2c]
call fcn.0046157c
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x46a018
mov eax, esi
call fcn.00467bd8
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00408dc8
inc eax
je 0x469ee9
lea ecx, [ebp - 0x34]
mov edx, 0x46a018
mov eax, esi
call fcn.00467bd8
mov eax, dword [ebp - 0x34]
call fcn.00408d8c
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040a370
fstp qword [ebp - 0x3c]
wait
call fcn.0040a6d4
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x469f04
lea ecx, [ebp - 0x40]
mov edx, 0x46a018
mov eax, esi
call fcn.00467bd8
mov eax, dword [ebp - 0x40]
call fcn.0046157c
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x46a028
mov eax, esi
call fcn.00467bd8
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00404788
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x469f4d
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404758
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404758
ret
Function at 0x401990
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
mov byte [esi + 8], 0
test eax, eax
jne 0x4019bb
mov ecx, dword [esi]
test ecx, ecx
je 0x4019b8
cmp word [ecx], ax
je 0x4019b8
nop dword [eax]
inc eax
cmp word [ecx + eax*2], 0
jne 0x4019b0
mov dword [esi + 4], eax
cmp eax, 0x104
jge 0x4019fc
push edi
mov edi, dword [esi]
push 0x20a
mov dword [esi + 4], 0
call fcn.0046a22b
xor ecx, ecx
mov dword [esi], eax
add esp, 4
mov word [eax + 0x208], cx
mov eax, dword [esi]
mov word [eax], cx
test edi, edi
je 0x4019f6
push edi
call fcn.00469e73
add esp, 4
cmp dword [esi], 0
pop edi
je 0x401a19
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
push dword [esi]
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
sete al
mov byte [esi + 8], al
mov eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x404210
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov edx, dword [ecx]
xor eax, eax
mov dword [ebp - 0x14], ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], esi
push edi
mov edi, dword [ebp + 0x10]
test edx, edx
jne 0x404238
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp + 0xc]
test edi, edi
je 0x4042a6
xor eax, eax
cmp ecx, 4
je 0x4042a1
cmp ecx, 5
je 0x4042a1
cmp ecx, 2
je 0x404285
cmp ecx, 6
je 0x404285
cmp ecx, 1
je 0x404285
cmp ecx, 0xb
jne 0x404264
lea eax, [ecx - 3]
jmp 0x4042a6
cmp ecx, 7
jne 0x4043ff
xor eax, eax
cmp word [edi], ax
je 0x40427c
inc eax
cmp word [edi + eax*2], 0
jne 0x404274
lea eax, [eax*2 + 4]
jmp 0x4042a6
xor eax, eax
cmp word [edi], ax
je 0x404298
nop dword [eax]
inc eax
cmp word [edi + eax*2], 0
jne 0x404290
lea eax, [eax*2 + 2]
jmp 0x4042a6
mov eax, 4
cmp ecx, 7
jne 0x4043ff
cmp eax, 2
jbe 0x4043ff
xor esi, esi
mov dword [ebp - 4], esi
test edi, edi
je 0x4042f2
cmp word [edi], si
je 0x4042d1
inc esi
cmp word [edi + esi*2], 0
jne 0x4042c6
mov dword [ebp - 4], esi
cmp esi, 1
jle 0x4042f2
lea eax, [edi - 2]
lea eax, [eax + esi*2]
nop dword [eax]
cmp word [eax], 0xa
jne 0x4042ef
dec esi
sub eax, 2
cmp esi, 1
jg 0x4042e0
mov dword [ebp - 4], esi
xor ecx, ecx
lea eax, [esi + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046a22b
add esp, 4
mov edx, eax
xor ecx, ecx
mov dword [ebp - 0xc], edx
test esi, esi
jle 0x4043c4
cmp esi, 8
jb 0x40439a
lea eax, [edi - 2]
lea eax, [eax + esi*2]
lea ebx, [edx - 2]
lea ebx, [ebx + esi*2]
cmp edx, eax
ja 0x404336
cmp ebx, edi
jae 0x40439a
mov eax, esi
and eax, 0x80000007
jns 0x404344
dec eax
or eax, 0xfffffff8
inc eax
movaps xmm4, xmmword [0x4a9ff0]
mov ebx, esi
sub ebx, eax
mov esi, edi
sub esi, edx
mov eax, edx
mov dword [ebp - 8], esi
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 8]
nop
movups xmm3, xmmword [edx + eax]
add ecx, 8
lea eax, [eax + 0x10]
movups xmm0, xmmword [eax - 0x10]
movaps xmm2, xmm3
pcmpeqw xmm2, xmm4
movaps xmm1, xmm2
pandn xmm1, xmm0
pand xmm1, xmm2
pandn xmm2, xmm3
por xmm1, xmm2
movups xmmword [eax - 0x10], xmm1
cmp ecx, ebx
jl 0x404360
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
cmp ecx, esi
jge 0x4043c4
sub edi, edx
mov dword [ebp - 8], esi
lea ebx, [edx + ecx*2]
sub esi, ecx
movzx ecx, word [ebx + edi]
lea ebx, [ebx + 2]
xor edx, edx
mov eax, ecx
cmp ecx, 0xa
cmovne edx, eax
mov word [ebx - 2], dx
sub esi, 1
jne 0x4043a4
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
xor eax, eax
mov dword [edx + esi*2], eax
lea eax, [esi*2 + 4]
push eax
mov eax, dword [ebp - 0x14]
push edx
push 7
push 0
push dword [ebp - 0x10]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xc]
test eax, eax
sete bl
call fcn.00469e73
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push eax
push edi
push ecx
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
test eax, eax
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4056d0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47c815
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4b41e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40572a
xor esi, esi
jmp 0x40585d
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0x94
push 0x94
movlpd qword [ebp - 0x20], xmm0
call fcn.0046a22b
mov edi, eax
mov dword [ebp - 0x1c], 0x94
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 1
push dword [ebp - 0x14]
call fcn.0046a22b
push dword [ebp - 0x14]
mov ebx, eax
push 0
push edi
call fcn.0046b980
mov esi, dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
lea eax, [edi + 4]
add esp, 0x14
mov dword [edi], 0xc
push eax
push str.SeRestorePrivilege
push 0
call esi
lea eax, [edi + 0x10]
push eax
push str.SeTakeOwnershipPrivilege
push 0
call esi
lea eax, [edi + 0x1c]
push eax
push str.SeDebugPrivilege
push 0
call esi
lea eax, [edi + 0x28]
push eax
push str.SeSecurityPrivilege
push 0
call esi
lea eax, [edi + 0x34]
push eax
push str.SeBackupPrivilege
push 0
call esi
lea eax, [edi + 0x40]
push eax
push str.SeImpersonatePrivilege
push 0
call esi
lea eax, [edi + 0x4c]
push eax
push str.SeSystemProfilePrivilege
push 0
call esi
lea eax, [edi + 0x58]
push eax
push str.SeAssignPrimaryTokenPrivilege
push 0
call esi
lea eax, [edi + 0x64]
push eax
push str.SeTrustedCredManAccessPrivilege
push 0
call esi
lea eax, [edi + 0x70]
push eax
push str.SeTcbPrivilege
push 0
call esi
lea eax, [edi + 0x7c]
push eax
push str.SeIncreaseQuotaPrivilege
push 0
call esi
lea eax, [edi + 0x88]
push eax
push str.SeShutdownPrivilege
push 0
call esi
lea eax, [edi + 0xc]
mov ecx, 0xc
nop
mov dword [eax], 2
lea eax, [eax + 0xc]
sub ecx, 1
jne 0x405820
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp - 0x14]
push edi
push ecx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x405852
push ebx
xor esi, esi
call fcn.00469e73
add esp, 4
jmp 0x405854
mov esi, ebx
push edi
call fcn.00469e73
add esp, 4
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xffffffff
je 0x405870
test ecx, ecx
je 0x405870
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00469e65
mov esp, ebp
pop ebp
ret
Function at 0x408c80
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4b41e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
push 0
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call edi
test eax, eax
jne 0x408ce1
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
push eax
lea eax, [ebp - 8]
push eax
call edi
test eax, eax
je 0x408d05
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x408d19
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00469e65
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x14]
xor edi, edi
push ebx
push edi
xor bl, bl
push dword [eax]
push dword [ebp - 0x18]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x408de6
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
push edi
push ecx
push eax
push 4
push dword [ebp - 0xc]
mov dword [eax], edi
mov dword [ebp - 0x10], 4
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x408de6
mov eax, dword [ebp - 0x14]
push dword [eax]
call fcn.0046a22b
add esp, 4
mov edi, eax
push 0
push dword [ebp - 0x14]
push edi
push 2
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x408de6
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
test esi, esi
je 0x408de4
xor eax, eax
mov word [esi], ax
lea eax, [edx*2 + 1]
cmp eax, 0xffff
jg 0x408de4
xor ecx, ecx
test edx, edx
jle 0x408ddb
nop dword [eax]
nop word [eax + eax]
movzx eax, byte [ecx + edi]
shr eax, 4
movsx eax, byte [eax + str.0123456789ABCDEF]
mov word [esi], ax
movzx eax, byte [ecx + edi]
inc ecx
and eax, 0xf
movsx eax, byte [eax + str.0123456789ABCDEF]
mov word [esi + 2], ax
add esi, 4
cmp ecx, edx
jl 0x408db0
xor eax, eax
mov bl, 1
mov word [esi], ax
jmp 0x408de6
xor bl, bl
mov eax, dword [ebp - 8]
test eax, eax
je 0x408df6
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x408e04
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test edi, edi
je 0x408e11
push edi
call fcn.00469e73
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.00469e65
mov esp, ebp
pop ebp
ret 8
Function at 0x409de0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, ecx
push esi
mov ebx, edx
call edi
test eax, eax
jne 0x409e61
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x409e61
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 5
je 0x409e1f
and eax, 0xfffffffa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call edi
test eax, eax
jne 0x409e61
test bl, 2
je 0x409e3a
mov ecx, dword [ebp + 8]
push dword [ecx + 4]
push 4
push ecx
push esi
call fcn.00404020
push esi
call edi
test eax, eax
jne 0x409e61
test bl, 1
je 0x409e58
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
neg eax
sbb eax, eax
and eax, 2
pop edi
pop esi
pop ebx
pop ebp
ret 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 4

Function at 0x409e70
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, ecx
push esi
mov ebx, edx
call edi
test eax, eax
jne 0x409ef1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x409ef1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 5
je 0x409eaf
and eax, 0xfffffffa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call edi
test eax, eax
jne 0x409ef1
test bl, 2
je 0x409eca
mov ecx, dword [ebp + 8]
push dword [ecx + 4]
push 5
push ecx
push esi
call fcn.00404020
push esi
call edi
test eax, eax
jne 0x409ef1
test bl, 1
je 0x409ee8
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
neg eax
sbb eax, eax
and eax, 2
pop edi
pop esi
pop ebx
pop ebp
ret 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 4
Function at 0x40b910
Capabilities:
Create process on windows

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 0x47cbf0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x80
mov eax, dword [0x4b41e0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edx, ecx
mov dword [ebp - 0x78], edx
mov ecx, dword [ebx + 8]
xorps xmm0, xmm0
xor eax, eax
mov dword [ebp - 0x74], ecx
mov word [ebp - 0x1e], ax
mov ax, word [ebx + 0xc]
movlpd qword [ebp - 0x5c], xmm0
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x4c], xmm0
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x2e], xmm0
movlpd qword [ebp - 0x26], xmm0
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x34], 1
mov word [ebp - 0x30], ax
movups xmmword [ebp - 0x70], xmm0
test edx, edx
je 0x40b9bc
xor eax, eax
cmp word [edx], ax
je 0x40b9bc
nop
inc eax
cmp word [edx + eax*2], 0
jne 0x40b9b0
test eax, eax
jne 0x40b9c3
mov dword [ebp - 0x78], 0
test esi, esi
je 0x40b9dc
xor eax, eax
cmp word [esi], ax
je 0x40b9dc
nop
inc eax
cmp word [esi + eax*2], 0
jne 0x40b9d0
test eax, eax
jne 0x40b9de
xor esi, esi
test ecx, ecx
je 0x40b9fc
xor eax, eax
cmp word [ecx], ax
je 0x40b9fc
nop dword [eax]
inc eax
cmp word [ecx + eax*2], 0
jne 0x40b9f0
test eax, eax
jne 0x40ba03
mov dword [ebp - 0x74], 0
xorps xmm0, xmm0
mov dword [ebp - 0x80], 0
movq qword [ebp - 0x88], xmm0
xor edi, edi
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x88], edi
mov byte [ebp - 0x80], 1
mov dword [ebp - 4], edi
test esi, esi
je 0x40ba9b
push 0xfa02
mov dword [ebp - 0x84], edi
call fcn.0046a22b
mov edi, eax
add esp, 4
xor eax, eax
mov dword [ebp - 0x7c], edi
xor ecx, ecx
mov word [edi + 0xfa00], ax
cmp word [esi], ax
je 0x40ba67
nop word [eax + eax]
inc ecx
cmp word [esi + ecx*2], ax
jne 0x40ba60
cmp ecx, 0x7d00
jle 0x40ba76
mov ecx, 0x7d00
jmp 0x40ba7a
test ecx, ecx
jle 0x40ba93
mov edx, edi
sub esi, edi
mov edi, ecx
mov ax, word [esi + edx]
lea edx, [edx + 2]
mov word [edx - 2], ax
sub edi, 1
jne 0x40ba80
mov edi, dword [ebp - 0x7c]
xor eax, eax
mov esi, edi
mov word [edi + ecx*2], ax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x74]
push 0
push 0
push 0
push 0
push 0
push esi
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40bac2
xor esi, esi
jmp 0x40bace
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x70]
test edi, edi
je 0x40badb
push edi
call fcn.00469e73
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00469e65
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc