joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4084a6
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x4c4
push ebx
push ebp
xor ebx, ebx
cmp dword [esi + 0x2bc], ebx
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov ebp, 0x1003
je 0x408576
cmp dword [esi + 0x2c4], ebx
je 0x408539
push 0x2b0
lea eax, [esp + 0x224]
push ebx
push eax
mov dword [esp + 0x228], ebx
call sub.msvcrt.dll_memset
push 0x208
lea eax, [esp + 0x22]
push ebx
push eax
mov word [esp + 0x28], bx
call sub.msvcrt.dll_memset
add esp, 0x18
push 0x104
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
push 0x4001
push 0x2b4
lea eax, [esp + 0x224]
push eax
push ebx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov dword [esi + 0x2b0], eax
push eax
jmp 0x40856b
call fcn.0040bd08
push 0x60
pop ecx
shl eax, 4
xor edx, edx
div ecx
push 1
push 1
push 0x19
push eax
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
push 1
push eax
mov dword [esi + 0x2b0], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push dword [esi + 0x2b0]
push 1
push ebp
push dword [esi + 0x2a8]
call edi
cmp dword [esi + 0x2c0], ebx
je 0x40862f
cmp dword [esi + 0x2c4], ebx
je 0x4085f3
push 0x2b0
lea eax, [esp + 0x224]
push ebx
push eax
mov dword [esp + 0x228], ebx
call sub.msvcrt.dll_memset
push 0x208
lea eax, [esp + 0x22]
push ebx
push eax
mov word [esp + 0x28], bx
call sub.msvcrt.dll_memset
add esp, 0x18
push 0x104
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
push 0x4000
push 0x2b4
lea eax, [esp + 0x224]
push eax
push ebx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov dword [esi + 0x2b4], eax
push eax
jmp 0x408625
call fcn.0040bd08
push 0x60
pop ecx
shl eax, 5
xor edx, edx
div ecx
push 1
push 1
push 0x19
push eax
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
push 1
push eax
mov dword [esi + 0x2b4], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push dword [esi + 0x2b4]
push ebx
push ebp
push dword [esi + 0x2a8]
call edi
call fcn.0040bd08
push 0x60
pop ecx
shl eax, 4
xor edx, edx
div ecx
push 1
push 1
push 0x19
mov edi, eax
push edi
push edi
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov ebp, dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push ebx
mov dword [esi + 0x2ac], eax
call ebp
push 0x1000
push edi
push edi
push ebx
push 0x85
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
push ebx
mov dword [esp + 0x10], eax
call ebp
push 0x1000
push edi
push edi
push ebx
push 0x86
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
push ebx
push dword [esi + 0x2ac]
mov ebp, eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov edi, dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
mov ebx, eax
push ebx
push dword [esp + 0x10]
push dword [esi + 0x2ac]
call edi
push ebx
push ebp
push dword [esi + 0x2ac]
call edi
push dword [esp + 0xc]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
call edi
push ebp
call edi
push dword [esi + 0x2ac]
push dword [esi + 0x2a8]
call fcn.0040e39b
pop ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x4c4
ret
Function at 0x4096d8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, eax
mov edi, ecx
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [ebp - 0x10], eax
mov eax, edi
call fcn.004081a3
and dword [ebp - 4], 0
test eax, eax
mov dword [ebp - 8], eax
jle 0x409766
cmp dword [ebp + 8], 0
je 0x409723
mov eax, dword [ebp - 4]
push 0x64
cdq
pop ecx
idiv ecx
test edx, edx
jne 0x409723
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [ebp - 0x10]
cmp eax, 0x1f4
ja 0x409766
mov ebx, dword [esi + 0xc]
add ebx, dword [ebp - 4]
cmp ebx, dword [ebp - 8]
jl 0x409737
test byte [esi + 0x10], 0x20
je 0x409766
sub ebx, dword [ebp - 8]
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
mov edx, ebx
mov eax, edi
call fcn.004091c0
test eax, eax
je 0x40975b
push dword [ebp + 8]
push dword [ebp - 0xc]
call fcn.00407e16
test eax, eax
jne 0x409770
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jl 0x409700
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 4
mov eax, ebx
jmp 0x409769

Function at 0x40a22a
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.004133a0
and word [ebp - 0x2004], 0
push esi
push edi
push 0x2000
lea eax, [ebp - 0x2002]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0x418cf8
push edi
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x4144cc
push dword [ebp + 8]
mov esi, 0x418f08
push esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
je 0x40a291
cmp dword [ebp + 0x10], 0
jne 0x40a291
xor eax, eax
jmp 0x40a29f
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringW]
pop edi
pop esi
leave
ret

Function at 0x40a2a3
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.004133a0
and word [ebp - 0x2004], 0
push 0x2000
lea eax, [ebp - 0x2002]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x418cf8
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x4144cc
push dword [ebp + 8]
push 0x418f08
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
je 0x40a31c
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x2004]
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x40a309
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x40a320
Capabilities:
Read .ini file

Disassembly:
and word [esi], 0
push 0x418cf8
push dword [esp + 0xc]
push esi
push 0x4144cc
push dword [esp + 0x14]
push 0x418f08
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
mov eax, esi
ret
Function at 0x40b61a
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push edi
push dword [ebp + 0xc]
mov ebx, eax
call fcn.0040cc78
mov edi, eax
cmp edi, 0xffffffff
pop ecx
je 0x40b681
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
test ebx, ebx
mov esi, eax
je 0x40b648
mov dword [ebx], esi
mov ebx, dword [ebp + 8]
push esi
mov eax, ebx
call fcn.0040b3f0
test eax, eax
je 0x40b673
mov eax, dword [ebx]
push esi
push eax
push edi
call fcn.0040c0de
add esp, 0xc
test eax, eax
jne 0x40b677
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
jmp 0x40b677
or dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
jmp 0x40b68a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret 8

Function at 0x40b8d2
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, eax
mov eax, dword [esi]
cmp eax, 0xffffffff
push edi
jne 0x40b90f
lea edi, [esi + 4]
mov ecx, edi
call fcn.0040c6ea
mov dword [esi + 0x28c], eax
lea eax, [esi + 0x290]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi], eax
mov dword [ebp - 4], ecx
jmp 0x40b929
lea ecx, [esi + 0x290]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
mov dword [ebp - 4], eax
jne 0x40b92f
call fcn.0040b4d9
cmp dword [ebp - 4], 0
je 0x40b987
lea edx, [esi + 0x768]
push ebx
lea ebx, [esi + 0x4e0]
lea ecx, [esi + 0x2bc]
mov dword [ebp - 8], edx
lea esi, [edx + 2]
mov ax, word [edx]
inc edx
inc edx
test ax, ax
jne 0x40b948
sub edx, esi
mov esi, ecx
sar edx, 1
lea edi, [esi + 2]
mov ax, word [esi]
inc esi
inc esi
test ax, ax
jne 0x40b95b
sub esi, edi
sar esi, 1
lea eax, [esi + edx + 1]
cmp eax, 0x143
jae 0x40b982
push ecx
mov ecx, dword [ebp - 8]
mov eax, ebx
call fcn.0040d37e
pop ecx
jmp 0x40b986
and word [ebx], 0
pop ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret

Function at 0x40bd2d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x30], str.RunAs
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x20], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
leave
ret
Function at 0x40bdc6
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push ebx
push esi
push edi
lea eax, [ebp - 0x250]
push eax
push dword [ebp + 8]
xor edi, edi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40be94
push 4
pop esi
mov ecx, 0x414d88
lea eax, [ebp - 0x224]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40be21
test dx, dx
je 0x40be1d
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40be21
add eax, esi
add ecx, esi
test dx, dx
jne 0x40bdfd
xor eax, eax
jmp 0x40be26
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40be62
mov ecx, 0x414d80
lea eax, [ebp - 0x224]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40be59
test dx, dx
je 0x40be55
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40be59
add eax, esi
add ecx, esi
test dx, dx
jne 0x40be35
xor eax, eax
jmp 0x40be5e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40be7a
lea eax, [ebp - 0x250]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x40bdf2
jmp 0x40be8d
mov edi, dword [ebp + 0xc]
mov ecx, 0x94
lea esi, [ebp - 0x250]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
inc edi
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40c2a1
Capabilities:
Create process on windows

Disassembly:
push 5
mov eax, 0x4144cc
push eax
push eax
push dword [esp + 0x14]
push 0x414d90
push dword [esp + 0x18]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x20
pop ecx
cmp ecx, eax
sbb eax, eax
neg eax
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x40cc30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x40cc3a
sub eax, ecx
push 0
sar eax, 1
lea ecx, [ebp - 4]
push ecx
add eax, eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
leave
ret

Function at 0x40d308
Capabilities:
Get common file path

Disassembly:
cmp word [0x419800], 0
push ebx
mov ebx, 0x419800
jne 0x40d361
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call fcn.0040be9b
test eax, eax
pop ecx
push 0x104
push ebx
je 0x40d356
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
mov eax, ebx
call fcn.0040cbf7
call fcn.0040c04a
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x40d346
sub eax, edx
sar eax, 1
jmp 0x40d35c
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
mov dword [0x419a0c], eax
mov edx, dword [esp + 8]
mov eax, ebx
sub edx, ebx
pop ebx
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x40d36a
mov eax, dword [0x419a0c]
ret
Function at 0x40d540
Capabilities:
Get file size
Read file on windows
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [ebp + 8]
call fcn.0040cc78
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 8], eax
je 0x40d5d2
push ebx
push esi
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
lea eax, [esi + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x40d5bb
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push 0
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push esi
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x40d5bb
shr esi, 1
and word [edi + esi*2], 0
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x40d5c4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
jmp 0x40d5db
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 4]
leave
ret

Function at 0x40d673
Capabilities:
Get common file path
Get file attributes

Disassembly:
cmp word [0x419a90], 0
push esi
mov esi, 0x419a90
jne 0x40d69f
call fcn.0040d4b3
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
test al, 1
je 0x40d69f
push esi
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
mov eax, esi
pop esi
ret

Function at 0x40eb90
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 0x10]
mov edi, eax
push dword [ebp + 0xc]
mov ebx, edi
push dword [ebp + 8]
call fcn.0040ea9f
mov ebx, eax
test ebx, ebx
je 0x40ec09
push dword [ebp + 0xc]
call fcn.0040cc78
cmp eax, 0xffffffff
pop ecx
mov dword [ebp + 0xc], eax
je 0x40ec07
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
lea esi, [edi + 0xa4]
push ebx
mov eax, esi
call fcn.0040b3f0
cmp ebx, 0x32
jbe 0x40ebfa
mov eax, dword [esi]
push ebx
push eax
push dword [ebp + 0xc]
call fcn.0040c0de
mov esi, dword [esi]
add esp, 0xc
push 0x28
add edi, 4
pop ecx
mov ebx, eax
rep movsd dword es:[edi], dword [esi]
jmp 0x40ebfc
xor ebx, ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x40ec09
xor ebx, ebx
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc
Function at 0x40edac
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x304
push esi
push edi
mov edi, dword [ebp + 8]
push 0x14
pop esi
mov dword [ebp - 4], esi
call fcn.0040eb3d
mov edi, dword [ebp + 0x10]
cmp edi, esi
jae 0x40edcf
mov dword [ebp - 4], edi
push ebx
mov esi, 0xff
xor ebx, ebx
push esi
lea eax, [ebp - 0x203]
push ebx
push eax
mov byte [ebp - 0x204], bl
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x103]
push ebx
push eax
mov byte [ebp - 0x104], bl
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x303]
push ebx
push eax
mov byte [ebp - 0x304], bl
call sub.msvcrt.dll_memset
push dword [ebp - 4]
lea eax, [ebp - 0x204]
push dword [ebp + 0x14]
push eax
call sub.msvcrt.dll_memcpy
push dword [ebp - 4]
lea eax, [ebp - 0x104]
push dword [ebp + 0x14]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0x3c
xor eax, eax
cmp edi, ebx
pop ebx
jbe 0x40ee56
xor byte [ebp + eax - 0x204], 0x5c
xor byte [ebp + eax - 0x104], 0x36
inc eax
cmp eax, edi
jb 0x40ee41
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x304]
push eax
push dword [ebp + 0x1c]
lea eax, [ebp - 0x104]
push dword [ebp + 0x18]
push edi
push eax
mov eax, dword [ebp + 8]
push esi
call fcn.0040ec8a
cmp esi, 0x8003
jne 0x40ee84
push 0x10
pop eax
jmp 0x40ee8b
mov eax, esi
call fcn.0040e8be
push dword [ebp + 0x20]
push eax
lea eax, [ebp - 0x304]
push eax
push edi
lea eax, [ebp - 0x204]
push eax
mov eax, dword [ebp + 8]
push esi
call fcn.0040ec12
pop edi
pop esi
leave
ret 0x1c

Function at 0x40f099
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x300
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
call fcn.0040eb3d
mov edi, dword [ebp + 0x10]
cmp edi, dword [ebp + 0x18]
jae 0x40f0b8
mov dword [ebp + 0x18], edi
mov esi, 0xff
xor ebx, ebx
push esi
lea eax, [ebp - 0xff]
push ebx
push eax
mov byte [ebp - 0x100], bl
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x1ff]
push ebx
push eax
mov byte [ebp - 0x200], bl
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x2ff]
push ebx
push eax
mov byte [ebp - 0x300], bl
call sub.msvcrt.dll_memset
push dword [ebp + 0x18]
lea eax, [ebp - 0x100]
push dword [ebp + 0x14]
push eax
call sub.msvcrt.dll_memcpy
push dword [ebp + 0x18]
lea eax, [ebp - 0x200]
push dword [ebp + 0x14]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0x3c
xor eax, eax
cmp edi, ebx
jbe 0x40f13d
xor byte [ebp + eax - 0x100], 0x5c
xor byte [ebp + eax - 0x200], 0x36
inc eax
cmp eax, edi
jb 0x40f128
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x300]
push eax
push dword [ebp + 0x20]
lea eax, [ebp - 0x200]
push dword [ebp + 0x1c]
push edi
push eax
mov eax, dword [ebp + 8]
push esi
call fcn.0040ec8a
cmp esi, 0x8003
jne 0x40f16b
push 0x10
pop eax
jmp 0x40f172
mov eax, esi
call fcn.0040e8be
push dword [ebp + 0x24]
push eax
lea eax, [ebp - 0x300]
push eax
push edi
lea eax, [ebp - 0x100]
push eax
mov eax, dword [ebp + 8]
push esi
call fcn.0040ec8a
pop edi
pop esi
pop ebx
leave
ret 0x20
Function at 0x40f195
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0x88
push ebx
push edi
mov edi, dword [ebp + 0x6c]
call fcn.0040eb3d
xor ebx, ebx
push 0x3f
lea eax, [ebp - 0x23]
push ebx
push eax
mov dword [ebp + 0x5c], ebx
mov byte [ebp - 0x24], bl
call sub.msvcrt.dll_memset
push 0x3f
lea eax, [ebp + 0x1d]
push ebx
push eax
mov byte [ebp + 0x1c], bl
call sub.msvcrt.dll_memset
add esp, 0x18
cmp esi, 0x8003
jne 0x40f1dd
push 0x10
pop edi
jmp 0x40f1e6
mov eax, esi
call fcn.0040e8be
mov edi, eax
cmp esi, 0x800e
mov dword [ebp + 0x60], 0x40
jne 0x40f1fc
mov dword [ebp + 0x60], 0x80
lea eax, [ebp - 0x24]
push eax
push 0x14
push dword [ebp + 0x74]
push 0x14
push dword [ebp + 0x70]
push dword [ebp + 0x60]
push esi
push dword [ebp + 0x6c]
call fcn.0040f099
cmp dword [ebp + 0x78], 1
jne 0x40f22d
push edi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x1c]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 0x78]
dec eax
cmp eax, ebx
jbe 0x40f27e
mov dword [ebp + 0x78], eax
lea eax, [ebp + 0x1c]
push eax
push edi
lea eax, [ebp - 0x24]
push eax
push 0x14
push dword [ebp + 0x70]
push dword [ebp + 0x60]
push esi
push dword [ebp + 0x6c]
call fcn.0040f099
mov dword [ebp + 0x5c], eax
xor eax, eax
cmp edi, ebx
jbe 0x40f268
mov cl, byte [ebp + eax - 0x24]
xor byte [ebp + eax + 0x1c], cl
inc eax
cmp eax, edi
jb 0x40f25b
push edi
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
dec dword [ebp + 0x78]
jne 0x40f238
push edi
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 0x7c]
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0x5c]
add esp, 0xc
pop edi
pop ebx
add ebp, 0x64
leave
ret 0x14
Function at 0x40f5d1
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
mov eax, 0x11ac
call fcn.004133a0
push ebx
push esi
push edi
mov edi, dword [ebp + 0x74]
mov ebx, dword [edi + 0xa4]
xor esi, esi
push 0xfff
lea eax, [ebp - 0x113f]
push esi
push eax
mov dword [ebp + 0x64], esi
mov byte [ebp - 0x1140], 0
call sub.msvcrt.dll_memset
mov eax, dword [ebx + 0x68]
add esp, 0xc
cmp eax, 0xbb8
jae 0x40f7c0
push eax
lea eax, [ebx + 0xa0]
push eax
lea eax, [ebp - 0x1140]
push eax
call sub.msvcrt.dll_memcpy
xor eax, eax
mov byte [ebp + 0x4c], 0
lea edi, [ebp + 0x4d]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x3f
stosb byte es:[edi], al
lea eax, [ebp + 0xd]
push esi
push eax
mov byte [ebp + 0xc], 0
call sub.msvcrt.dll_memset
lea esi, [ebx + 0x84]
lea edi, [ebp + 0x4c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add esp, 0x18
movsd dword es:[edi], dword [esi]
lea eax, [ebp + 0xc]
push eax
mov byte [ebp + 0x5f], 1
push dword [ebx + 0x94]
mov esi, dword [ebx + 0x98]
lea eax, [ebp + 0x4c]
push eax
push dword [ebp + 0x7c]
push dword [ebp + 0x74]
call fcn.0040f195
push 8
pop ecx
lea eax, [ebp + 0x68]
push eax
push 0x2c
mov byte [ebp - 0x40], cl
mov dword [ebp - 0x3c], 0x6610
mov byte [ebp - 0x3f], 2
mov dword [ebp - 0x38], 0x20
lea esi, [ebp + 0xc]
lea edi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x74]
lea eax, [ebp - 0x40]
push eax
push dword [esi]
mov eax, dword [esi + 0xb4]
xor edi, edi
mov dword [ebp + 0x68], edi
call fcn.00410126
cmp dword [ebp + 0x68], edi
je 0x40f7bb
mov eax, dword [ebx + 0x68]
mov dword [ebp + 0x60], eax
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp - 0x1140]
push eax
push dword [ebp + 0x68]
mov eax, dword [esi + 0xb4]
call fcn.0041016f
push dword [ebp + 0x68]
mov eax, dword [esi + 0xb4]
call fcn.0041010f
xor eax, eax
mov cl, byte [ebp + eax + 0x2c]
xor byte [ebp + eax - 0x1140], cl
inc eax
cmp eax, 0x10
jl 0x40f6f9
push 0x7f
lea eax, [ebp - 0xbf]
push edi
push eax
mov byte [ebp - 0xc0], 0
call sub.msvcrt.dll_memset
push 0x7f
lea eax, [ebp - 0x13f]
push edi
push eax
mov byte [ebp - 0x140], 0
call sub.msvcrt.dll_memset
add esp, 0x18
lea eax, [ebp - 0xc0]
push eax
push 0x10
lea eax, [ebp - 0x1140]
push eax
push 0x14
push dword [ebp + 0x7c]
mov edi, 0x80
push edi
push dword [ebx + 0x98]
push esi
call fcn.0040f099
lea eax, [ebp - 0x140]
push eax
push 0x40
lea eax, [ebp - 0x10f0]
push eax
push 0x40
lea eax, [ebp - 0xc0]
push eax
push edi
push dword [ebx + 0x98]
push esi
call fcn.0040f099
push 0x10
pop ecx
lea edi, [ebp - 0x1130]
lea esi, [ebp - 0x140]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x40f7bb
push dword [ebp + 0x78]
lea eax, [ebp - 0x10f0]
push 0x40
push eax
mov eax, dword [ebp + 0x74]
push 0x8004
call fcn.0040ed27
mov dword [ebp + 0x64], 1
mov eax, dword [ebp + 0x64]
jmp 0x40f7cc
mov dword [edi + 0x31c], 0xfffffffe
xor eax, eax
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret 0xc
Function at 0x410047
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi], 0
jne 0x4100e9
push edi
push 0x414ac4
call fcn.0040cd66
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [esp], str.CryptAcquireContextW
push eax
mov dword [esi], eax
call edi
push str.CryptReleaseContext
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.CryptCreateHash
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.CryptGetHashParam
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.CryptHashData
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push str.CryptDestroyHash
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push str.CryptDecrypt
push dword [esi]
mov dword [esi + 0x18], eax
call edi
push str.CryptDeriveKey
push dword [esi]
mov dword [esi + 0x1c], eax
call edi
push str.CryptImportKey
push dword [esi]
mov dword [esi + 0x20], eax
call edi
push str.CryptDestroyKey
push dword [esi]
mov dword [esi + 0x28], eax
call edi
push str.CryptDuplicateKey
push dword [esi]
mov dword [esi + 0x2c], eax
call edi
mov dword [esi + 0x24], eax
pop edi
ret

Function at 0x410341
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, eax
mov eax, dword [ebx + 0x904]
push esi
xor esi, esi
cmp eax, 1
push edi
mov dword [ebp - 4], esi
je 0x410365
cmp eax, 3
je 0x410365
cmp eax, 4
jne 0x4103c1
mov eax, dword [ebx + 0x908]
cmp eax, esi
je 0x410378
push eax
lea edi, [ebp - 4]
call fcn.0040b179
push dword [ebp + 0x10]
push esi
push esi
push esi
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
cmp dword [ebx + 0x908], esi
mov edi, eax
je 0x41039f
lea esi, [ebp - 4]
call fcn.0040b097
xor esi, esi
cmp edi, esi
jne 0x4103d7
push dword [ebp + 0x10]
mov eax, dword [ebx + 0x908]
push dword [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.00406b11
mov edi, eax
cmp edi, esi
jne 0x4103d7
push dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
add ebx, 0x274
call fcn.0040f809
mov edi, eax
lea esi, [ebp - 4]
call fcn.0040b086
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc