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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x42ad38
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x42ad38], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405394
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4054db
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4054f8
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x4054fb
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x40552a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x40556e
test edi, edi
jne 0x405535
mov byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405568

Function at 0x405572
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4055e3
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x400
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4055d2
cmp dword [ebp + 0x14], 1
je 0x4055d4
cmp dword [ebp + 0x14], 2
je 0x4055d4
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x40582c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42ad80
push esi
call fcn.0040568b
push esi
call fcn.00405464
mov edi, eax
test edi, edi
jne 0x40584d
xor eax, eax
jmp 0x4058a5
push edi
call fcn.004056ad
test byte [0x42e928], 0x80
je 0x405866
mov al, byte [edi]
test al, al
je 0x405849
cmp al, 0x5c
je 0x405849
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub edi, esi
jmp 0x405886
push esi
call fcn.00405747
test eax, eax
je 0x405880
test byte [eax], 0x10
je 0x4058aa
push esi
call fcn.00405805
push esi
call ebx
cmp eax, edi
jg 0x405871
push esi
call fcn.004057d8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x4058a4
Function at 0x405b5e
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.0040576e
mov esi, dword [esp + 0x18]
test eax, eax
je 0x405b82
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405cbb
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x42b180], 0x4c554e
mov edi, 0x400
mov ebp, 0x42b180
test esi, esi
je 0x405bc6
push 1
push 0
push esi
call fcn.004054fb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405cc1
cmp eax, edi
jg 0x405cc1
push edi
mov esi, 0x42bac0
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405cc1
cmp eax, edi
jg 0x405cc1
push esi
push ebp
push str._s_s_r_n
push 0x42b580
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x42e8cc]
push dword [eax + 0x128]
push esi
call fcn.00405904
push 4
push 0xc0000000
push esi
call fcn.004054fb
mov ebp, eax
mov dword [esp + 0x14], ebp
cmp ebp, 0xffffffff
je 0x405cbb
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405cb4
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405cb4
cmp edi, dword [esp + 0x18]
jne 0x405cb4
push str._Rename__r_n
push esi
call fcn.004058ae
test eax, eax
jne 0x405cc8
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call fcn.0040568b
add edi, 0xa
mov eax, edi
push ebx
push 0x42b580
add eax, esi
push eax
call fcn.004054b7
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x1c]
push eax
add edi, ebx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x42e990]
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0x407614
add eax, 0xa
push eax
call fcn.004058ae
test eax, eax
je 0x405c7f
inc eax
lea ecx, [esi + edi]
mov ebp, eax
cmp eax, ecx
jae 0x405cef
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405ce4
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405c81
Function at 0x405cf7
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.0040582c
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x405d2c
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42e988], eax
jmp 0x405ebe
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x405d47
test eax, eax
je 0x405e69
test cl, 2
je 0x405e69
push edi
push ebx
mov esi, 0x42bec0
push esi
call fcn.0040568b
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x405d6a
push str..
push esi
call edi
jmp 0x405d70
push ebx
call fcn.00405805
cmp byte [ebx], 0
jne 0x405d7e
cmp byte [0x42bec0], 0x5c
jne 0x405d86
push 0x407290
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x405e5e
lea esi, [ebp - 0x11c]
push 0x3f
mov eax, esi
push eax
call fcn.00405420
cmp byte [eax], 0
je 0x405dc9
cmp byte [ebp - 0x18], 0
je 0x405dc9
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405ddf
mov al, byte [esi + 1]
test al, al
je 0x405e3d
cmp al, 0x2e
jne 0x405ddf
cmp byte [esi + 2], 0
je 0x405e3d
push esi
push edi
call fcn.0040568b
test byte [ebp - 0x148], 0x10
je 0x405e04
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405e3d
push dword [ebp + 0xc]
push ebx
call fcn.00405cf7
jmp 0x405e3d
push ebx
call fcn.004054db
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405e35
test byte [ebp + 0xc], 4
je 0x405e2d
push ebx
push 0xfffffffffffffff1
call fcn.0040471d
push 0
push ebx
call fcn.00405b5e
jmp 0x405e3d
inc dword [0x42e988]
jmp 0x405e3d
push ebx
push 0xfffffffffffffff2
call fcn.0040471d
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405dab
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405e68
mov byte [edi - 1], 0
pop edi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405ebd
cmp dword [ebp - 8], esi
je 0x405ead
push ebx
call fcn.00405747
test eax, eax
je 0x405ebd
push ebx
call fcn.004057d8
push ebx
call fcn.004054db
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405eb5
test byte [ebp + 0xc], 4
je 0x405ead
push ebx
push 0xfffffffffffffff1
call fcn.0040471d
push esi
push ebx
call fcn.00405b5e
jmp 0x405ebd
inc dword [0x42e988]
jmp 0x405ebd
push ebx
push 0xffffffffffffffe5
call fcn.0040471d
pop esi
pop ebx
leave
ret 8
Function at 0x405ec3
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x42c2c4], 0
jne 0x405f01
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405ed7
mov dword [ecx*4 + 0x42c2c0], eax
inc ecx
cmp ecx, 0x100
jl 0x405ed2
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x405f2e
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x42c2c0]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x405f0f
not eax
pop ebp
ret 0xc
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x402c00
pop dword [ebp - 0x28]
mov eax, 0x68f87d6a
sub eax, 0x68b8516a
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0xc93c7eb1
sub dword [ebp - 0x38], 0x7aea3966
mov dword [ebp - 0x34], 0x1c922ad1
sub dword [ebp - 0x34], 0xea5ede8c
mov dword [ebp - 0x30], 0xe79b141e
sub dword [ebp - 0x30], 0x9b4ecff0
mov dword [ebp - 0x2c], 0x539e29cb
add dword [ebp - 0x2c], 0xac61d635
lea eax, [ebp - 0x38]
push eax
mov eax, 0x985cacad
sub eax, 0x981c3c49
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xb9434ee3
sub dword [ebp - 0x38], 0x44d0e58d
mov dword [ebp - 0x34], 0x26dedd0c
add dword [ebp - 0x34], 0x1a8d8469
mov dword [ebp - 0x30], 0x20227183
add dword [ebp - 0x30], 0x434cfae9
mov dword [ebp - 0x2c], 0xad4ad53c
add dword [ebp - 0x2c], 0x52b52ac4
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0xb36812ea
sub eax, 0xb327a242
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x351ee
push 0
call eax
mov ecx, 0x48bde3a4
sub ecx, 0x48bda1ea
mov edx, eax
mov ebx, 0x410000
add ebx, dword [ebp - 0x28]
mov esi, 0x48446db7
add dword [ebp - 0xc], 0x614578df
mov edi, dword [ebx]
sub dword [ebp - 4], ebx
xor edi, esi
mov dword [edx], edi
sub dword [ebp - 0x20], 0x78bcc9e0
add edx, 0x6a267111
add edx, 0x95d98ef3
add ebx, 4
loop 0x402d16
add eax, 0x303b6373
add eax, 0xcfc59648
xor ebx, ebx
add ebx, eax
add eax, 0xd4b4cadf
add eax, 0x2b4b3526
mov ecx, 0x85fe35ce
sub ecx, 0x85be35ce
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x46c710
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x46000]
mov dword [edi + 0x54184], 0x471b7885
push edi
or ebp, 0xffffffff
jmp 0x46c73a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x46c741
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46c730
mov eax, 1
add ebx, ebx
jne 0x46c753
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x46c764
jne 0x46c774
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46c774
dec eax
add ebx, ebx
jne 0x46c770
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x46c748
xor ecx, ecx
sub eax, 3
jb 0x46c78c
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x46c7fe
sar eax, 1
mov ebp, eax
jmp 0x46c797
add ebx, ebx
jne 0x46c797
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x46c7a4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x46c7c8
inc ecx
add ebx, ebx
jne 0x46c7b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x46c7a9
jne 0x46c7c5
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x46c7a9
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x46c7e8
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x46c7d9
jmp 0x46c736
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x46c7e8
add edi, ecx
jmp 0x46c736
pop esi
mov edi, esi
mov ecx, 0x2573
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x46c806
cmp byte [edi], 0xd
jne 0x46c806
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x46c80b
lea edi, [esi + 0x69000]
mov eax, dword [edi]
or eax, eax
je 0x46c87a
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6ced4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6cf74]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46c838
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x6cf78]
or eax, eax
je 0x46c874
mov dword [ebx], eax
add ebx, 4
jmp 0x46c855
call dword [esi + 0x6cf7c]
popal
jmp section.UPX0
Function at 0x4019f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
lea edi, [esi + 8]
mov byte [edi], 0
mov eax, dword [esi + 4]
test eax, eax
jne 0x401a1e
mov ecx, dword [esi]
test ecx, ecx
je 0x401a1b
cmp word [ecx], ax
je 0x401a18
nop
inc eax
cmp word [ecx + eax*2], 0
jne 0x401a10
lea edi, [esi + 8]
mov dword [esi + 4], eax
cmp eax, 0x104
jge 0x401a5f
push ebx
mov ebx, dword [esi]
push 0x20a
mov dword [esi + 4], 0
call fcn.0046b90c
xor ecx, ecx
mov dword [esi], eax
add esp, 4
mov word [eax + 0x208], cx
mov eax, dword [esi]
mov word [eax], cx
test ebx, ebx
je 0x401a59
push ebx
call fcn.0046b303
add esp, 4
cmp dword [esi], 0
pop ebx
je 0x401a7b
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 [edi], al
pop edi
mov eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x404260
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 0x404288
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 0x4042f6
xor eax, eax
cmp ecx, 4
je 0x4042f1
cmp ecx, 5
je 0x4042f1
cmp ecx, 2
je 0x4042d5
cmp ecx, 6
je 0x4042d5
cmp ecx, 1
je 0x4042d5
cmp ecx, 0xb
jne 0x4042b4
lea eax, [ecx - 3]
jmp 0x4042f6
cmp ecx, 7
jne 0x40444b
xor eax, eax
cmp word [edi], ax
je 0x4042cc
inc eax
cmp word [edi + eax*2], 0
jne 0x4042c4
lea eax, [eax*2 + 4]
jmp 0x4042f6
xor eax, eax
cmp word [edi], ax
je 0x4042e8
nop dword [eax]
inc eax
cmp word [edi + eax*2], 0
jne 0x4042e0
lea eax, [eax*2 + 2]
jmp 0x4042f6
mov eax, 4
cmp ecx, 7
jne 0x40444b
cmp eax, 2
jbe 0x40444b
xor esi, esi
mov dword [ebp - 4], esi
test edi, edi
je 0x404342
cmp word [edi], si
je 0x404321
inc esi
cmp word [edi + esi*2], 0
jne 0x404316
mov dword [ebp - 4], esi
cmp esi, 1
jle 0x404342
lea eax, [edi - 2]
lea eax, [eax + esi*2]
nop dword [eax]
cmp word [eax], 0xa
jne 0x40433f
dec esi
sub eax, 2
cmp esi, 1
jg 0x404330
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.0046b90c
add esp, 4
mov edx, eax
xor ecx, ecx
mov dword [ebp - 0xc], edx
test esi, esi
jle 0x404410
cmp esi, 8
jb 0x4043e6
lea eax, [edi - 2]
lea eax, [eax + esi*2]
lea ebx, [edx - 2]
lea ebx, [ebx + esi*2]
cmp edx, eax
ja 0x404386
cmp ebx, edi
jae 0x4043e6
mov eax, esi
and eax, 0x80000007
jns 0x404394
dec eax
or eax, 0xfffffff8
inc eax
movaps xmm4, xmmword [0x4ab770]
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
andnps xmm1, xmm0
andps xmm1, xmm2
andnps xmm2, xmm3
orps xmm1, xmm2
movups xmmword [eax - 0x10], xmm1
cmp ecx, ebx
jl 0x4043b0
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
cmp ecx, esi
jge 0x404410
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 0x4043f0
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.0046b303
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 0x405730
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47dca5
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4b5200]
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 0x40578a
xor esi, esi
jmp 0x4058bd
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0x94
push 0x94
movlpd qword [ebp - 0x20], xmm0
call fcn.0046b90c
mov edi, eax
mov dword [ebp - 0x1c], 0x94
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 1
push dword [ebp - 0x14]
call fcn.0046b90c
push dword [ebp - 0x14]
mov ebx, eax
push 0
push edi
call fcn.0046ce00
mov esi, dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
lea eax, [edi + 4]
add esp, 0x14
mov dword [edi], 9
push eax
push str.SeRestorePrivilege
push 0
call esi
lea eax, [edi + 0x10]
push eax
push str.SeBackupPrivilege
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.SeTakeOwnershipPrivilege
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.SeShutdownPrivilege
push 0
call esi
lea eax, [edi + 0x64]
push eax
push str.SeIncreaseQuotaPrivilege
push 0
call esi
lea eax, [edi + 0x70]
push eax
push str.SeAssignPrimaryTokenPrivilege
push 0
call esi
lea eax, [edi + 0x7c]
push eax
push str.SeTcbPrivilege
push 0
call esi
lea eax, [edi + 0x88]
push eax
push str.SeTrustedCredManAccessPrivilege
push 0
call esi
lea eax, [edi + 0xc]
mov ecx, 0xc
nop
mov dword [eax], 2
lea eax, [eax + 0xc]
sub ecx, 1
jne 0x405880
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 0x4058b2
push ebx
xor esi, esi
call fcn.0046b303
add esp, 4
jmp 0x4058b4
mov esi, ebx
push edi
call fcn.0046b303
add esp, 4
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xffffffff
je 0x4058d0
test ecx, ecx
je 0x4058d0
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.0046b2f5
mov esp, ebp
pop ebp
ret
Function at 0x408bf0
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 [0x4b5200]
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 0x408c51
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 0x408c75
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 0x408c89
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.0046b2f5
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 0x408d58
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 0x408d58
mov eax, dword [ebp - 0x14]
push dword [eax]
call fcn.0046b90c
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 0x408d58
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
test esi, esi
je 0x408d56
xor eax, eax
mov word [esi], ax
lea eax, [edx*2 + 1]
cmp eax, 0xffff
jg 0x408d56
xor ecx, ecx
test edx, edx
jle 0x408d4d
nop dword [eax]
nop word [eax + eax]
movzx eax, byte [edi + ecx]
shr eax, 4
movzx eax, word [eax*2 + 0x49fb38]
mov word [esi], ax
movzx eax, byte [edi + ecx]
inc ecx
and eax, 0xf
movzx eax, word [eax*2 + 0x49fb38]
mov word [esi + 2], ax
add esi, 4
cmp ecx, edx
jl 0x408d20
xor eax, eax
mov bl, 1
mov word [esi], ax
jmp 0x408d58
xor bl, bl
mov eax, dword [ebp - 8]
test eax, eax
je 0x408d68
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x408d76
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test edi, edi
je 0x408d83
push edi
call fcn.0046b303
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0046b2f5
mov esp, ebp
pop ebp
ret 8