joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405a03
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405cce
test bl, 8
mov dword [ebp - 8], eax
je 0x405a42
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x42a2c8], eax
jmp 0x405bbf
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405a5c
test eax, eax
je 0x405b6d
test bl, 2
je 0x405b6d
mov esi, 0x425730
push edi
push esi
call fcn.00406212
cmp dword [ebp + 8], 0
je 0x405a7b
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405a81
push edi
call fcn.00405c12
cmp word [edi], 0
jne 0x405a91
cmp word [0x425730], 0x5c
jne 0x405a9c
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405b62
jmp 0x475258
cmp dword [ebp + 8], 0
je 0x405b6d
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405bbf
cmp dword [ebp - 8], esi
jne 0x405b81
inc dword [0x42a2c8]
jmp 0x405bbf
push edi
call fcn.00406555
test eax, eax
je 0x405bbf
push edi
call fcn.00405bc6
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004059bb
test eax, eax
jne 0x405bb7
cmp dword [ebp - 4], esi
je 0x405b79
push edi
push 0xfffffffffffffff1
call fcn.00405371
push esi
push edi
call fcn.004060b3
jmp 0x405bbf
push edi
push 0xffffffffffffffe5
call fcn.00405371
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x405cce
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425f30
push esi
call fcn.00406212
push esi
call fcn.00405c71
mov edi, eax
test edi, edi
jne 0x405cef
xor eax, eax
jmp 0x405d47
push edi
call fcn.004064a6
test byte [0x42a258], 0x80
je 0x405d0c
mov ax, word [edi]
test ax, ax
je 0x405ceb
cmp ax, 0x5c
je 0x405ceb
sub edi, esi
sar edi, 1
jmp 0x405d26
jmp 0x475af0
pop edi
pop esi
ret 4

Function at 0x405de7
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp loc.004750c8

Function at 0x405e16
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a580]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a584]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405e66
test edi, edi
jne 0x405e23
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405e60
Function at 0x405f41
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebx, 0x426dc8
push 0x40a5a4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
mov edi, 0x400
je 0x405f8f
push 1
push 0
push esi
call fcn.00405de7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push esi
call ebp
test eax, eax
je 0x4060ae
cmp eax, edi
jg 0x4060ae
mov esi, 0x4275c8
push edi
push esi
push dword [esp + 0x1c]
call ebp
test eax, eax
je 0x4060ae
cmp eax, edi
jg 0x4060ae
push esi
push ebx
push str._ls_ls_r_n
push 0x4269c8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42a250]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406234
push 4
push 0xc0000000
push esi
call fcn.00405de7
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x4060ae
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 0x4060a7
push edi
push esi
push ebp
call fcn.00405e6a
test eax, eax
je 0x4060a7
push str._Rename__r_n
push esi
call fcn.00405d4c
test eax, eax
jne 0x406045
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x40607a
add eax, 0xa
push 0x40a588
push eax
call fcn.00405d4c
mov ebp, eax
test ebp, ebp
je 0x406076
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406067
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406061
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x40607c
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x4269c8
push eax
call fcn.00405da2
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405e99
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4060df
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0x18]
push edi
push eax
mov eax, dword [ebp + 0x18]
xor edi, edi
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov word [esi], di
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406153
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x800
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406140
cmp dword [ebp + 0x14], 1
je 0x406143
cmp dword [ebp + 0x14], 2
je 0x406143
mov word [esi], di
push dword [ebp + 0x18]
mov word [esi + 0x7fe], di
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x406172
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 8]
and dword [ebp - 4], 0
push ebx
push esi
cmp word [ecx], 0x2d
push 0xa
pop eax
mov dword [ebp - 8], 1
push 0x39
pop ebx
jne 0x406199
inc ecx
inc ecx
or dword [ebp - 8], 0xffffffff
cmp word [ecx], 0x30
jne 0x4061c6
inc ecx
inc ecx
mov dx, word [ecx]
cmp dx, 0x30
jb 0x4061b6
cmp dx, 0x37
ja 0x4061b6
push 8
pop eax
push 0x37
pop ebx
movzx edx, dx
and edx, 0xffffffdf
cmp edx, 0x58
jne 0x4061c6
push 0x10
inc ecx
pop eax
inc ecx
movzx edx, word [ecx]
inc ecx
jmp 0x475d48
Function at 0x40657c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4065a0
xor eax, eax
test eax, eax
je 0x4065b3
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4065b3
xor ecx, ecx
jmp 0x4065b6
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x40669d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dcc], 0
push esi
jne 0x4066d4
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4066ae
mov dword [ecx*4 + 0x427dc8], eax
inc ecx
cmp ecx, 0x100
jl 0x4066a9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
jmp 0x476388

Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x4b032f8f
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..rsrc
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x66d42cac
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x10001220
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10001239
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10001274
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x10001270
lea ebx, [ebx]
cmp esi, eax
jae 0x10001274
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10001260
cmp esi, eax
jb 0x1000127a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x10001310
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp method.CDialog.virtual_312
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x10009395
cmp dword [edi + 0x54], 0
jne 0x10009395
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.1000a622
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.1000933c
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x10001480
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
sub esp, 8
mov eax, dword [0x1002ffb4]
mov ecx, dword [0x1002ffb0]
mov edx, dword [0x1002ffac]
push ebx
push esi
mov esi, eax
imul esi, ecx
add esi, 1
imul esi, eax
add edx, 2
imul edx, dword [0x1002ffb8]
sub esi, edx
mov edx, dword [0x1002ffc0]
sub esi, dword [0x1002ffbc]
push edi
mov edi, edx
imul edi, ecx
sub edi, eax
sub esi, ecx
lea eax, [edi + edi - 4]
imul eax, edx
lea ecx, [eax + esi*2 + 0x30]
mov dword [esp + 0x10], ecx
mov ebx, dword [esp + 0x10]
mov eax, dword fs:[ebx]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x1000f804
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x1000f847
call fcn.1000a622
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x1000f847
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1000f862
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.1000f3bb
test ebx, ebx
mov esi, eax
je 0x1000f860
test edi, edi
je 0x1000f860
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x10012872
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1002ea60]
jne 0x1001287c
repz ret
jmp fcn.100165aa
Function at 0x1001ec8a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1001780f
xor ebx, ebx
cmp dword [0x100328a8], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x1001ed5f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x1001ecca
xor eax, eax
jmp 0x1001ee23
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100286c4
push edi
call esi
cmp eax, ebx
je 0x1001ecc3
push eax
call fcn.100177ac
mov dword [esp], 0x100286b4
push edi
mov dword [0x100328a8], eax
call esi
push eax
call fcn.100177ac
mov dword [esp], 0x100286a0
push edi
mov dword [0x100328ac], eax
call esi
push eax
call fcn.100177ac
mov dword [0x100328b0], eax
lea eax, [ebp - 8]
push eax
call fcn.100156ac
test eax, eax
pop ecx
pop ecx
je 0x1001ed2d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100174b3
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x1001ed5f
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.100177ac
cmp eax, ebx
pop ecx
mov dword [0x100328b8], eax
je 0x1001ed5f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100177ac
pop ecx
mov dword [0x100328b4], eax
mov eax, dword [0x100328b4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x1001edd8
cmp dword [0x100328b8], esi
je 0x1001edd8
push eax
call fcn.10017818
pop ecx
call eax
cmp eax, ebx
je 0x1001eda5
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x100328b8]
call fcn.10017818
pop ecx
call eax
test eax, eax
je 0x1001eda5
test byte [ebp - 0x18], 1
jne 0x1001edd8
lea eax, [ebp - 0xc]
push eax
call fcn.100156e3
test eax, eax
pop ecx
je 0x1001edc0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100174b3
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x1001edcf
or dword [ebp + 0x10], 0x200000
jmp 0x1001ee09
or dword [ebp + 0x10], 0x40000
jmp 0x1001ee09
mov eax, dword [0x100328ac]
cmp eax, esi
je 0x1001ee09
push eax
call fcn.10017818
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1001ee09
mov eax, dword [0x100328b0]
cmp eax, esi
je 0x1001ee09
push dword [ebp - 4]
push eax
call fcn.10017818
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x100328a8]
call fcn.10017818
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406850
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452800
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x46b554]
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 edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
xor ebx, ebx
push ebx
push 1
push ebx
mov esi, ecx
push ebx
push esi
call edi
test eax, eax
jne 0x406963
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x406908
push 8
push 1
push ebx
push ebx
push esi
call edi
test eax, eax
jne 0x406963
lea edi, [ebx + 0x35]
mov eax, str.Failed_to_acquire_crypto_context_with_CRYPT_NEWKEYSET
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00404e20
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
jb 0x4068e1
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x4c], eax
jmp 0x4068e7
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x4c], ecx
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x64]
call fcn.0042fddd
push 0x4680f4
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x64], vtable.CryptException.0
call fcn.00437405
mov edi, 0x20
mov eax, str.Failed_to_acquire_crypto_context
lea esi, [ebp - 0x48]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.00404e20
mov dword [ebp - 4], 1
cmp dword [ebp - 0x34], 0x10
jb 0x40693c
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], ecx
jmp 0x406942
lea edx, [ebp - 0x48]
mov dword [ebp - 0x4c], edx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x58]
call fcn.0042fddd
push 0x4680f4
lea ecx, [ebp - 0x58]
push ecx
mov dword [ebp - 0x58], vtable.CryptException.0
call fcn.00437405
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.0042f9b2
mov esp, ebp
pop ebp
ret
Function at 0x4069c0
Capabilities:
Hash data using sha1
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452d18
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x46b554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov esi, ecx
push esi
push 0
push 0
push 0x8004
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x406a5f
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
lea edi, [eax + 0x15]
mov eax, str.Failed_to_create_hash
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
call fcn.00404e20
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0x10
jb 0x406a38
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
jmp 0x406a3e
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], ecx
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x3c]
call fcn.0042fddd
push 0x4680f4
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], vtable.CryptException.0
call fcn.00437405
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042f9b2
mov esp, ebp
pop ebp
ret 4
Function at 0x406b60
Capabilities:
Hash data via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452968
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x46b554]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov edi, edx
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.00406850
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004069c0
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x1c]
push edx
mov edx, dword [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.00406a90
mov byte [ebp - 4], 3
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x406bd6
mov eax, dword [edi]
jmp 0x406bd8
mov eax, edi
push 0
push ecx
push eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x406c1e
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x18]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptSignHashW]
lea ecx, [ebp - 0x20]
push ecx
push 0
push 0
push 0
push 2
push edx
call edi
test eax, eax
jne 0x406c56
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [ebp - 0x18]
push 0
push edx
jmp 0x406c04
mov eax, dword [ebp - 0x20]
call fcn.00406ee0
mov eax, dword [esi]
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
push ecx
push eax
push 0
push 0
push 2
push edx
call edi
test eax, eax
mov eax, dword [ebp - 0x1c]
push eax
je 0x406c3e
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [ebp - 0x18]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, 1
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 0x406cb0
Capabilities:
Hash data via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452930
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x46b554]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov esi, edx
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.00406850
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004069c0
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x1c]
push edx
mov edx, 0x94
mov ecx, 0x457d70
mov byte [ebp - 4], 2
call fcn.00406a90
cmp dword [esi + 0x14], 0x10
mov ecx, dword [esi + 0x10]
jb 0x406d26
mov eax, dword [esi]
jmp 0x406d28
mov eax, esi
push 0
push ecx
push eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x406d6e
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x18]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov edx, dword [ebp - 0x1c]
push 0
push 0
push edx
sub eax, ecx
push eax
mov eax, dword [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureW]
mov ecx, dword [ebp - 0x1c]
push ecx
test eax, eax
je 0x406d3e
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x18]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, 1
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 0x409a10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4674
call fcn.00447a90
mov eax, dword [0x46b554]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea edx, [ebp - 0x4660]
push edx
push ecx
xor esi, esi
push eax
mov dword [ebp - 0x4660], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov eax, dword [ebp - 0x4660]
cmp eax, esi
je 0x409ae1
cmp eax, 0xffffffff
je 0x409ae1
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
jmp 0x409a68
mov eax, dword [ebp - 0x4660]
lea ecx, [ebp - 0x4668]
push ecx
lea edx, [ebp - 0x2eec]
push edx
lea ecx, [ebp - 0x466c]
push ecx
push 0
lea edx, [ebp - 0x4664]
push edx
lea ecx, [ebp - 0x465c]
push ecx
push esi
push eax
mov dword [ebp - 0x4668], 0x2ee0
mov dword [ebp - 0x4664], 0x1770
call ebx
test eax, eax
jne 0x409ad4
lea eax, [ebp - 0x2eec]
xor edx, edx
push eax
mov ecx, edi
mov word [ebp - 0xe], dx
call fcn.0040ed40
push eax
lea ecx, [ebp - 0x4674]
push ecx
push edi
call fcn.0040e200
inc esi
cmp esi, 0x2710
jb 0x409a62
mov edx, dword [ebp - 0x4660]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f9b2
mov esp, ebp
pop ebp
ret

Function at 0x409d80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ebp + 8]
push esi
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push ebx
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x409db2
test eax, eax
jne 0x409df7
cmp dword [ebp - 8], 1
jne 0x409df7
mov ecx, dword [ebp - 4]
mov edx, dword [esi + 0x10]
shr ecx, 1
cmp ecx, edx
ja 0x409dce
or eax, 0xffffffff
call fcn.00405390
jmp 0x409ddb
mov eax, ecx
push edi
sub eax, edx
mov edi, esi
call fcn.0040d390
pop edi
cmp dword [esi + 0x14], 8
jb 0x409de3
mov esi, dword [esi]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push esi
push 0
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40ba70
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00447a90
mov eax, dword [0x46b554]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push edi
lea eax, [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x2004]
push 0x1ffb
push edx
call fcn.0043221b
lea edi, [ebp - 0x2004]
add esp, 0x10
dec edi
jmp 0x40bab0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40bab0
mov ax, word [0x458c38]
lea ecx, [ebp - 0x2004]
push ecx
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0042f9b2
mov esp, ebp
pop ebp
ret