joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4020fc
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call fcn.00401f9e
inc eax
je 0x402292
mov dword [ebx], 2
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x1c]
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
push edx
push edx
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
push eax
push eax
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x28]
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
push ecx
push ecx
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x5c]
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
push edx
push edx
mov dword [esp + 4], 5
mov eax, dword [ebx + 0x38]
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
push eax
push eax
mov dword [esp + 4], 5
mov eax, dword [ebx + 0x40]
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
push ecx
push ecx
lea eax, [ebx + 0x64]
mov dword [esp], eax
call fcn.004054e8
mov dword [esp + 4], 5
mov eax, dword [ebx + 0x44]
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
push edx
push edx
mov dword [esp + 4], 5
mov eax, dword [ebx + 0x48]
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
push eax
push eax
mov dword [esp + 4], 5
mov eax, dword [ebx + 0x4c]
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
push ecx
push ecx
mov dword [esp + 4], 5
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
push edx
push edx
mov dword [esp + 4], 5
mov eax, dword [ebx + 0x58]
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
push eax
push eax
mov dword [esp + 4], 5
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
push ecx
push ecx
mov dword [esp + 4], 5
mov eax, dword [ebx + 0x90]
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
push edx
push edx
mov dword [esp + 0xc], 0x41
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call sub.USER32.dll_RegisterHotKey
sub esp, 0x10
mov eax, dword [ebx + 0x48]
mov dword [esp], eax
call sub.USER32.dll_SetFocus
push eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0
mov dword [esp + 4], 0xb1
mov eax, dword [ebx + 0x48]
mov dword [esp], eax
call sub.USER32.dll_SendMessageA
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x404e9c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x54
lea edx, [ebp - 0x3c]
mov ecx, 0xd
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x3c], 4
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1005
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.USER32.dll_SendMessageA
sub esp, 0x10
mov edx, eax
xor eax, eax
dec edx
jne 0x404eed
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 4]
leave
ret

Function at 0x404ef2
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x54
lea edx, [ebp - 0x3c]
mov ecx, 0xd
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], 0xc
mov dword [ebp - 0x2c], 2
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1005
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.USER32.dll_SendMessageA
sub esp, 0x10
mov edx, eax
or eax, 0xffffffff
test edx, edx
je 0x404f60
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov eax, dword [ebp - 0x30]
shr eax, 1
and eax, 1
mov edx, dword [ebp + 0x14]
mov byte [edx], al
xor eax, eax
mov edi, dword [ebp - 4]
leave
ret
Function at 0x405014
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1bc
mov dword [esp + 4], 0x2e
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_strrchr
mov dword [ebp - 0x19c], eax
test eax, eax
jne 0x405046
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x19c], edx
xor edi, edi
mov eax, dword [ebp - 0x19c]
cmp byte [eax], 0
je 0x40525e
lea eax, [ebp - 0x19]
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x19c]
mov dword [esp + 4], edx
lea eax, [ebp - 0x20]
mov dword [esp], eax
call fcn.0045df50
mov esi, dword [ebp + 8]
add esi, 4
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 8]
mov edi, esi
jmp 0x4050a7
lea edx, [ebp - 0x20]
mov dword [esp + 4], edx
lea eax, [ebx + 0x10]
mov dword [esp], eax
call fcn.00438ce8
test eax, eax
js 0x40509e
mov eax, dword [ebx + 8]
jmp 0x4050a3
mov eax, dword [ebx + 0xc]
mov ebx, edi
mov edi, ebx
mov ebx, eax
test ebx, ebx
jne 0x405083
mov dword [ebp - 0x1a0], edi
cmp edi, esi
je 0x4050d3
mov eax, edi
add eax, 0x10
mov dword [esp + 4], eax
lea eax, [ebp - 0x20]
mov dword [esp], eax
call fcn.00438ce8
test eax, eax
jns 0x4050d3
mov dword [ebp - 0x1a0], esi
lea eax, [ebp - 0x20]
mov dword [esp], eax
call fcn.0045e500
jmp 0x4050ed
cmp dword [ebp - 0x1a0], esi
jne 0x405255
lea edx, [ebp - 0x18c]
mov ecx, 0x58
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0x111
mov dword [esp + 0xc], 0x160
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.SHELL32.DLL_SHGetFileInfoA
sub esp, 0x14
mov eax, dword [ebp - 0x18c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0xffffffff
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
mov dword [esp], eax
call sub.COMCTL32.DLL_ImageList_ReplaceIcon
sub esp, 0xc
mov edi, eax
lea eax, [ebp - 0x1a]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x19c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x24]
mov dword [esp], eax
call fcn.0045df50
mov edx, dword [ebp + 8]
mov ebx, dword [edx + 8]
jmp 0x4051a1
lea eax, [ebp - 0x24]
mov dword [esp + 4], eax
lea eax, [ebx + 0x10]
mov dword [esp], eax
call fcn.00438ce8
test eax, eax
js 0x405198
mov eax, dword [ebx + 8]
jmp 0x40519d
mov eax, dword [ebx + 0xc]
mov ebx, esi
mov esi, ebx
mov ebx, eax
test ebx, ebx
jne 0x40517d
mov dword [ebp - 0x19c], esi
cmp esi, dword [ebp - 0x1a0]
je 0x4051c9
lea eax, [esi + 0x10]
mov dword [esp + 4], eax
lea eax, [ebp - 0x24]
mov dword [esp], eax
call fcn.00438ce8
test eax, eax
jns 0x40521e
lea eax, [ebp - 0x24]
mov dword [esp + 4], eax
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call fcn.0045dff4
mov dword [ebp - 0x28], 0
lea ebx, [ebp - 0x2c]
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov edx, dword [ebp + 8]
mov dword [esp], edx
call fcn.0047b92c
mov dword [ebp - 0x19c], eax
mov dword [esp], ebx
call fcn.0045e500
jmp 0x40521e
mov eax, dword [ebp - 0x19c]
mov dword [eax + 0x14], edi
lea eax, [ebp - 0x24]
mov dword [esp], eax
call fcn.0045e500
jmp 0x40525e
mov edx, dword [ebp - 0x1a0]
mov edi, dword [edx + 0x14]
mov eax, edi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x405508
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x1c]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], esi
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x40810009
mov dword [esp + 8], 0
mov dword [esp + 4], str.SysListView32
mov dword [esp], 0
call sub.USER32.dll_CreateWindowExA
sub esp, 0x30
mov edx, eax
mov dword [ebx + 0x18], eax
or eax, 0xffffffff
test edx, edx
je 0x4056e7
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0xff
mov dword [esp + 4], 0x10
mov dword [esp], 0x10
call sub.COMCTL32.DLL_ImageList_Create
sub esp, 0x14
mov dword [ebx + 0x1c], eax
mov dword [esp + 4], 0xffffff
mov dword [esp], eax
call sub.COMCTL32.DLL_ImageList_SetBkColor
push eax
push eax
mov dword [esp + 0xc], 0x21
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1036
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call sub.USER32.dll_SendMessageA
sub esp, 0x10
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0x1003
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call sub.USER32.dll_SendMessageA
sub esp, 0x10
mov dword [esp], 0
call sub.KERNEL32.DLL_GetModuleHandleA
push ecx
mov dword [esp + 4], 0x8004
mov dword [esp], eax
call sub.USER32.dll_LoadIconA
push edx
push edx
test eax, eax
je 0x405653
mov dword [esp + 8], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebx + 0x1c]
mov dword [esp], eax
call sub.COMCTL32.DLL_ImageList_ReplaceIcon
sub esp, 0xc
mov dword [ebx + 0x20], eax
mov dword [esp], 0x13
call fcn.004056f0
mov dword [esp + 0x10], 0
sub esi, 0xeb
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.00404f66
mov dword [esp], 0x14
call fcn.004056f0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0x64
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call fcn.00404f66
mov dword [esp], 0x15
call fcn.004056f0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x87
mov dword [esp + 8], eax
mov dword [esp + 4], 2
mov dword [esp], ebx
call fcn.00404f66
xor eax, eax
lea esp, [ebp - 8]
pop ebx
pop esi
leave
ret
Function at 0x4078b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov eax, 0x205c
call fcn.0042b56c
mov edi, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x18]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x2038], edx
mov dword [ebp - 0x2034], ecx
mov dword [ebp - 0x2030], 0
mov dword [ebp - 0x202c], 0
jmp 0x407a04
mov eax, dword [ebp - 0x2038]
mov edx, dword [ebp - 0x2034]
sub eax, dword [ebp - 0x2030]
sbb edx, dword [ebp - 0x202c]
cmp edx, 0
ja 0x40791a
cmp eax, 0x1fff
ja 0x40791a
mov dword [ebp - 0x1c], eax
jmp 0x407921
mov dword [ebp - 0x1c], 0x2000
mov ecx, dword [ebp + 0x10]
mov dword [esp], ecx
call fcn.004378f4
mov ebx, eax
mov esi, edx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
lea ecx, [ebp - 0x1c]
mov dword [esp + 0xc], ecx
mov edx, dword [ebp - 0x1c]
mov dword [esp + 8], edx
lea edx, [ebp - 0x2020]
mov dword [esp + 4], edx
mov ecx, dword [ebp + 0x10]
mov dword [esp], ecx
call dword [eax + 0xc]
test eax, eax
jne 0x407a2c
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
lea edx, [ebp - 0x2020]
mov dword [esp + 4], edx
mov ecx, dword [ebp + 0xc]
mov dword [esp], ecx
call sub.KERNEL32.DLL_WriteFile
sub esp, 0x14
test eax, eax
jne 0x4079a2
call sub.KERNEL32.DLL_GetLastError
mov dword [esp], eax
call fcn.004076fc
jmp 0x407a2c
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x20]
je 0x4079b1
mov eax, 0x13
jmp 0x407a2c
test edi, edi
je 0x4079f3
mov eax, dword [edi]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x203c], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.004378f4
sub eax, ebx
sbb edx, esi
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], edi
call dword [ebp - 0x203c]
mov eax, dword [edi]
mov dword [esp], edi
call dword [eax + 0xc]
test al, al
je 0x4079f3
mov eax, 0x15
jmp 0x407a2c
mov eax, dword [ebp - 0x1c]
xor edx, edx
add dword [ebp - 0x2030], eax
adc dword [ebp - 0x202c], edx
mov edx, dword [ebp - 0x2034]
cmp dword [ebp - 0x202c], edx
jb 0x4078f1
ja 0x407a2a
mov ecx, dword [ebp - 0x2038]
cmp dword [ebp - 0x2030], ecx
jb 0x4078f1
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x407a34
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [esp + 4], 0
mov dword [esp], ebx
call sub.KERNEL32.DLL_CreateDirectoryW
push edx
push edx
test eax, eax
jne 0x407a7a
call sub.KERNEL32.DLL_GetLastError
mov edx, eax
xor eax, eax
cmp edx, 0xb7
je 0x407b26
mov dword [esp], edx
call fcn.004076fc
jmp 0x407b26
mov eax, dword [esi + 0x28]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.DLL_SetFileAttributesW
push ecx
push ecx
mov edx, eax
mov eax, 0x17
test edx, edx
je 0x407b26
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x2000000
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], ebx
call sub.KERNEL32.DLL_CreateFileW
sub esp, 0x1c
mov ebx, eax
mov eax, 1
cmp ebx, 0xffffffff
je 0x407b26
mov edx, dword [esi + 0x30]
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.DLL_SetFileTime
sub esp, 0x10
test eax, eax
jne 0x407b1b
mov dword [esp], ebx
call sub.KERNEL32.DLL_CloseHandle
push edx
mov eax, 1
jmp 0x407b26
mov dword [esp], ebx
call sub.KERNEL32.DLL_CloseHandle
push eax
xor eax, eax
lea esp, [ebp - 8]
pop ebx
pop esi
leave
ret
Function at 0x407e40
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x8c
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x18], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x28]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], edi
call sub.KERNEL32.DLL_CreateFileW
sub esp, 0x1c
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
xor ebx, ebx
inc eax
jne 0x4080bf
call sub.KERNEL32.DLL_GetLastError
mov esi, eax
cmp eax, 0x50
jne 0x40809c
mov bl, 2
cmp dword [ebp + 0x10], 0
je 0x4080bf
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0x493c70
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
lea eax, [ebp - 0x68]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00407de8
mov dword [ebp - 0x38], 0x493c70
lea eax, [ebp - 0x38]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00408fe4
test eax, eax
jne 0x408064
mov dword [esp], 0x50
call fcn.00485454
mov esi, eax
lea eax, [ebp - 0x68]
mov dword [esp + 8], eax
lea eax, [ebp - 0x38]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00409048
jmp 0x407f5b
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
lea edx, [ebp - 0x1c]
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov edx, dword [ebp + 0x10]
mov dword [esp], edx
call dword [eax + 0x24]
mov ebx, eax
test eax, eax
je 0x407fa3
jmp 0x407f8e
test esi, esi
je 0x408069
mov dword [esp], esi
call fcn.00485414
jmp 0x408069
test esi, esi
je 0x407faf
mov dword [esp], esi
call fcn.00485414
mov eax, dword [ebp - 0x1c]
cmp eax, 2
je 0x407fcf
cmp eax, 4
je 0x407fc5
test eax, eax
je 0x407fd9
jmp 0x408064
mov ebx, 0x15
jmp 0x408069
mov ebx, 8
jmp 0x408069
mov dword [esp + 4], 0
mov dword [esp], edi
call sub.KERNEL32.DLL_SetFileAttributesW
push eax
push eax
mov dword [esp], edi
call sub.KERNEL32.DLL_DeleteFileW
push esi
mov dword [esp + 0x18], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x28]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], edi
call sub.KERNEL32.DLL_CreateFileW
sub esp, 0x1c
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
inc eax
jne 0x408069
call sub.KERNEL32.DLL_GetLastError
mov dword [esp], eax
call fcn.004076fc
mov ebx, eax
jmp 0x408069
mov ebx, 1
lea eax, [ebp - 0x38]
mov dword [esp], eax
call fcn.00457ad0
jmp 0x40808f
lea eax, [ebp - 0x58]
mov dword [esp], eax
call fcn.00457ad0
jmp 0x4080bf
cmp eax, 3
jne 0x4080b5
mov dword [esp], edi
call sub.msvcrt.dll_wcslen
mov ebx, 0x21
cmp eax, 0x103
ja 0x4080bf
mov dword [esp], esi
call fcn.004076fc
mov ebx, eax
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x40922a
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 4
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebx + 8], eax
call sub.KERNEL32.DLL_GetUserDefaultLangID
mov word [ebx], ax
mov dword [ebx + 4], 0
mov dword [ebp + 8], ebx
pop ecx
pop ebx
leave
jmp fcn.00409128

Function at 0x40cb4c
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov dword [ebp - 0x34], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp], eax
call fcn.004148c8
mov edi, eax
mov eax, 0x41
shr edi, 3
je 0x40cc99
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
sub eax, dword [edx]
xor edx, edx
div edi
mov eax, 2
test edx, edx
jne 0x40cc99
lea eax, [edi + 0x1e]
and eax, 0x3ffffff0
call fcn.0042b56c
lea ecx, [esp + 0x27]
and ecx, 0xfffffff0
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], 0
xor ebx, ebx
jmp 0x40cc66
sub eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
cmp eax, edi
jbe 0x40cbd4
mov eax, dword [ebp + 0x14]
mov esi, dword [eax]
mov eax, dword [eax + 4]
sub eax, esi
sub eax, ebx
cmp eax, edi
jb 0x40cc94
add esi, ebx
add edx, dword [ebp - 0x2c]
cmp esi, edx
je 0x40cbeb
mov dword [esp + 8], edi
mov dword [esp + 4], edx
mov dword [esp], esi
call sub.msvcrt.dll_memmove
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x1c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov edx, dword [ebp + 0xc]
mov dword [esp], edx
call sub.ADVAPI32.dll_CryptDecrypt
sub esp, 0x18
test eax, eax
jne 0x40cc2a
call sub.KERNEL32.DLL_GetLastError
jmp 0x40cc8d
mov ecx, dword [ebp + 0x14]
mov ecx, dword [ecx]
mov dword [ebp - 0x3c], ecx
add ecx, ebx
mov dword [ebp - 0x38], ecx
cmp esi, ecx
je 0x40cc60
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 4]
sub eax, dword [ebp - 0x3c]
sub eax, ebx
cmp eax, ecx
jb 0x40cc94
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
mov ecx, dword [ebp - 0x38]
mov dword [esp], ecx
call sub.msvcrt.dll_memmove
add ebx, dword [ebp - 0x1c]
add dword [ebp - 0x2c], edi
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
mov eax, dword [eax + 4]
sub eax, edx
cmp dword [ebp - 0x2c], eax
jb 0x40cbb4
mov eax, dword [ebp + 0x18]
mov dword [eax], ebx
xor eax, eax
jmp 0x40cc99
mov eax, 1
jmp 0x40cc99
mov eax, 0x16
mov esp, dword [ebp - 0x34]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x40cd3e
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
lea edx, [ebp - 0x28]
mov dword [esp + 0x10], edx
lea edx, [ebp - 0x24]
mov dword [esp + 0xc], edx
lea edx, [ebp - 0x20]
mov dword [esp + 8], edx
mov edx, dword [edi + 4]
sub edx, dword [edi]
mov dword [esp + 4], edx
mov edx, dword [ebp + 8]
mov dword [esp], edx
mov dword [ebp - 0x44], eax
call fcn.0040cb14
mov esi, dword [ebp - 0x20]
imul esi, dword [ebp - 0x28]
mov edx, dword [edi + 4]
mov dword [ebp - 0x3c], edx
mov ebx, dword [edi]
mov dword [ebp - 0x40], ebx
mov byte [ebp - 0x19], 0
mov eax, dword [ebp - 0x44]
mov edx, dword [eax + 4]
mov ebx, dword [eax]
mov ecx, edx
sub ecx, ebx
cmp esi, ecx
jae 0x40cda6
add ebx, esi
mov dword [eax + 4], ebx
jmp 0x40cdc7
lea ebx, [ebp - 0x19]
mov dword [esp + 0xc], ebx
mov ebx, esi
sub ebx, ecx
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [ebp - 0x44], eax
call fcn.0047a8d4
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x28]
dec ebx
mov edx, dword [ebp - 0x24]
imul edx, ebx
imul ebx, dword [ebp - 0x20]
add ebx, dword [eax]
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x40]
mov edi, dword [edi]
add edi, edx
sub eax, edx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0
jmp 0x40ce6d
cmp ebx, edi
je 0x40ce06
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.msvcrt.dll_memmove
mov eax, dword [ebp - 0x20]
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x2c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov edx, dword [ebp + 0xc]
mov dword [esp], edx
call sub.ADVAPI32.dll_CryptEncrypt
sub esp, 0x1c
test eax, eax
jne 0x40ce58
call sub.KERNEL32.DLL_GetLastError
mov edx, eax
mov eax, 0x16
cmp edx, 0x80090004
jne 0x40ce82
jmp 0x40ce87
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x20]
jne 0x40ce82
sub ebx, eax
mov eax, dword [ebp - 0x24]
sub edi, eax
mov dword [ebp - 0x2c], eax
inc dword [ebp - 0x3c]
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x28]
jb 0x40cdef
mov eax, dword [ebp + 0x18]
mov dword [eax], esi
xor eax, eax
jmp 0x40ce87
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret

Function at 0x40cfc4
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
mov eax, dword [eax + 4]
sub eax, edx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.ADVAPI32.dll_CryptDecrypt
sub esp, 0x18
test eax, eax
sete al
movzx eax, al
leave
ret
Function at 0x40d44c
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
mov eax, dword [eax + 4]
sub eax, edx
mov dword [ebp - 0xc], eax
mov dword [esp + 0x18], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.ADVAPI32.dll_CryptEncrypt
sub esp, 0x1c
test eax, eax
sete al
movzx eax, al
leave
ret

Function at 0x40de2e
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2ac
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [edi + 4]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x38]
mov dword [esp], eax
call dword [sym.imp.CRYPT32.dll_CertOIDToAlgId]
push edx
mov dword [ebp - 0x290], eax
mov dword [ebp - 0x28c], 0
lea eax, [ebp - 0x1c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov edx, dword [ebp + 0x10]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x28c]
mov dword [esp], eax
call sub.ADVAPI32.dll_CryptEnumProvidersA
sub esp, 0x18
test eax, eax
je 0x40dfdc
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov ebx, eax
lea edx, [ebp - 0x1c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov edx, dword [ebp - 0x28c]
mov dword [esp], edx
call sub.ADVAPI32.dll_CryptEnumProvidersA
sub esp, 0x18
mov dword [esp + 0x10], 0xf0000000
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], esi
call sub.ADVAPI32.dll_CryptAcquireContextA
sub esp, 0x14
mov edx, 1
test eax, eax
jne 0x40df22
mov dword [esp], ebx
call fcn.00433a70
jmp 0x40dfd1
mov dword [ebp - 0x20], 0x58
mov dword [esp + 0x10], edx
lea eax, [ebp - 0x20]
mov dword [esp + 0xc], eax
lea edx, [ebp - 0x7c]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x16
mov eax, dword [esi]
mov dword [esp], eax
call sub.ADVAPI32.dll_CryptGetProvParam
sub esp, 0x14
test eax, eax
je 0x40dfd1
mov edx, 2
mov eax, dword [ebp - 0x290]
cmp dword [ebp - 0x7c], eax
jne 0x40df22
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x294], edx
mov eax, dword [edi + 4]
mov dword [esp], eax
call fcn.004148c8
cmp dword [ebp - 0x294], eax
ja 0x40dfe9
mov eax, dword [edi + 4]
mov dword [esp], eax
call fcn.004148c8
cmp eax, dword [ebp - 0x70]
ja 0x40dfe9
mov dword [esp], ebx
call fcn.00433a70
mov dword [ebp - 0x24], 0x200
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x27c]
mov dword [esp + 8], eax
mov dword [esp + 4], 4
mov eax, dword [esi]
mov dword [esp], eax
call sub.ADVAPI32.dll_CryptGetProvParam
sub esp, 0x14
xor eax, eax
jmp 0x40dfe1
inc dword [ebp - 0x28c]
jmp 0x40de65
mov eax, 0xf
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov edx, 2
jmp 0x40df22