joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403e7c
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi], 0
jne 0x403ede
push edi
push str.psapi.dll
call fcn.0040cd07
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [esp], str.GetModuleBaseNameW
push eax
mov dword [esi], eax
call edi
push str.EnumProcessModules
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.EnumProcessModulesEx
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.GetModuleFileNameExW
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.EnumProcesses
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push str.GetModuleInformation
push dword [esi]
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x10], eax
pop edi
ret

Function at 0x403f07
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x674
push ebx
push esi
mov esi, dword [ebp + 8]
add esi, 0x2c
call fcn.004010d8
xor ebx, ebx
push ebx
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
push 0x228
mov dword [ebp - 4], eax
lea eax, [ebp - 0x670]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x674]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x674], 0x22c
call sub.KERNEL32.DLL_Process32FirstW
lea eax, [ebp - 0x674]
push eax
push dword [ebp - 4]
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
je 0x404081
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_OpenProcess]
lea eax, [ebp - 0x23c]
call fcn.00401099
mov eax, dword [ebp - 0x66c]
mov ecx, dword [ebp - 0x65c]
push eax
push ebx
push 0x410
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x2c], ecx
call edi
mov esi, eax
cmp esi, ebx
jne 0x403fca
call fcn.0040d380
test eax, eax
je 0x404057
push dword [ebp - 0x23c]
push ebx
push 0x1000
call edi
mov esi, eax
cmp esi, ebx
je 0x404057
push 0x208
lea eax, [ebp - 0x446]
push ebx
push eax
mov word [ebp - 0x448], bx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x448]
push eax
mov eax, dword [ebp + 8]
push esi
call fcn.00403edf
cmp word [ebp - 0x448], bx
je 0x404009
cmp word [ebp - 0x448], 0x3f
jne 0x404024
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x448]
push eax
push esi
mov dword [ebp - 8], 0x104
call fcn.00403b12
add esp, 0xc
lea eax, [ebp - 0x448]
lea ebx, [ebp - 0x238]
call fcn.00403d26
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.00403abc
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor ebx, ebx
lea eax, [ebp - 0x23c]
push eax
mov eax, dword [ebp + 8]
add eax, 0x2c
call fcn.004010f1
lea eax, [ebp - 0x674]
push eax
push dword [ebp - 4]
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x403f76
pop edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
pop ebx
leave
ret 4

Function at 0x404717
Capabilities:
Terminate process

Disassembly:
cmp dword [0x418624], 2
jne 0x404728
push 1
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
ret
Function at 0x406089
Capabilities:
Delete file
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push edi
push esi
call fcn.00404b77
test eax, eax
je 0x4060aa
lea edi, [esi + 0x6b0]
call fcn.0040d74f
jmp 0x40610e
lea edi, [ebp - 0x208]
call fcn.0040c806
mov eax, dword [esi + 0x69c]
push 1
push 1
push 2
mov ecx, edi
push ecx
push esi
call fcn.00405b3b
test eax, eax
je 0x40610e
push dword [esi + 0x208]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4060e9
mov eax, edi
push eax
call fcn.0040d4e1
pop ecx
jmp 0x4060ef
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x406101
push dword [esi + 0x208]
mov ecx, eax
call fcn.0040d587
pop ecx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
pop edi
leave
ret
Function at 0x407837
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.004131b0
push ebx
push esi
mov esi, 0x1fff
xor ebx, ebx
push esi
lea eax, [ebp - 0x2003]
push ebx
push eax
mov byte [ebp - 0x2004], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
push ebx
push esi
lea eax, [ebp - 0x2004]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
lea eax, [ebp - 0x2004]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x407884
push ebx
lea ecx, [ebp - 4]
push ecx
sub eax, esi
push eax
lea eax, [ebp - 0x2004]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop esi
pop ebx
leave
ret

Function at 0x4078a7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8004
call fcn.004131b0
push ebx
push esi
mov esi, 0x7fff
xor ebx, ebx
push esi
lea eax, [ebp - 0x8003]
push ebx
push eax
mov byte [ebp - 0x8004], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
push ebx
push esi
lea eax, [ebp - 0x8004]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
lea eax, [ebp - 0x8004]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4078f8
push ebx
lea ecx, [ebp - 4]
push ecx
sub eax, esi
push eax
lea eax, [ebp - 0x8004]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop esi
pop ebx
leave
ret
Function at 0x408470
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 0x408540
cmp dword [esi + 0x2c4], ebx
je 0x408503
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 0x408535
call fcn.0040bc43
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 0x4085f9
cmp dword [esi + 0x2c4], ebx
je 0x4085bd
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 0x4085ef
call fcn.0040bc43
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.0040bc43
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.0040e277
pop ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x4c4
ret
Function at 0x4096a2
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.0040816d
and dword [ebp - 4], 0
test eax, eax
mov dword [ebp - 8], eax
jle 0x409730
cmp dword [ebp + 8], 0
je 0x4096ed
mov eax, dword [ebp - 4]
push 0x64
cdq
pop ecx
idiv ecx
test edx, edx
jne 0x4096ed
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [ebp - 0x10]
cmp eax, 0x1f4
ja 0x409730
mov ebx, dword [esi + 0xc]
add ebx, dword [ebp - 4]
cmp ebx, dword [ebp - 8]
jl 0x409701
test byte [esi + 0x10], 0x20
je 0x409730
sub ebx, dword [ebp - 8]
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
mov edx, ebx
mov eax, edi
call fcn.0040918a
test eax, eax
je 0x409725
push dword [ebp + 8]
push dword [ebp - 0xc]
call fcn.00407de0
test eax, eax
jne 0x40973a
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jl 0x4096ca
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 4
mov eax, ebx
jmp 0x409733

Function at 0x40a1ab
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.004131b0
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, 0x418bf8
push edi
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x4144b8
push dword [ebp + 8]
mov esi, 0x418e08
push esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
je 0x40a212
cmp dword [ebp + 0x10], 0
jne 0x40a212
xor eax, eax
jmp 0x40a220
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 0x40a224
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.004131b0
and word [ebp - 0x2004], 0
push 0x2000
lea eax, [ebp - 0x2002]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x418bf8
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x4144b8
push dword [ebp + 8]
push 0x418e08
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
je 0x40a29d
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 0x40a28a
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x40a2a1
Capabilities:
Read .ini file

Disassembly:
and word [esi], 0
push 0x418bf8
push dword [esp + 0xc]
push esi
push 0x4144b8
push dword [esp + 0x14]
push 0x418e08
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
mov eax, esi
ret
Function at 0x40b817
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 0x40b854
lea edi, [esi + 4]
mov ecx, edi
call fcn.0040c68d
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 0x40b86e
lea ecx, [esi + 0x290]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
mov dword [ebp - 4], eax
jne 0x40b874
call fcn.0040b466
cmp dword [ebp - 4], 0
je 0x40b8cc
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 0x40b88d
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 0x40b8a0
sub esi, edi
sar esi, 1
lea eax, [esi + edx + 1]
cmp eax, 0x143
jae 0x40b8c7
push ecx
mov ecx, dword [ebp - 8]
mov eax, ebx
call fcn.0040d31f
pop ecx
jmp 0x40b8cb
and word [ebx], 0
pop ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret

Function at 0x40bc68
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 0x40bd01
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 0x40bdcf
push 4
pop esi
mov ecx, 0x414d10
lea eax, [ebp - 0x224]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40bd5c
test dx, dx
je 0x40bd58
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40bd5c
add eax, esi
add ecx, esi
test dx, dx
jne 0x40bd38
xor eax, eax
jmp 0x40bd61
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40bd9d
mov ecx, 0x414d08
lea eax, [ebp - 0x224]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40bd94
test dx, dx
je 0x40bd90
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40bd94
add eax, esi
add ecx, esi
test dx, dx
jne 0x40bd70
xor eax, eax
jmp 0x40bd99
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40bdb5
lea eax, [ebp - 0x250]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x40bd2d
jmp 0x40bdc8
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 0x40c243
Capabilities:
Create process on windows

Disassembly:
push 5
mov eax, 0x4144b8
push eax
push eax
push dword [esp + 0x14]
push 0x414d18
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 0x40c736
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 0x40cbd1
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 0x40cbdb
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 0x40d2a9
Capabilities:
Get common file path

Disassembly:
cmp word [0x419700], 0
push ebx
mov ebx, 0x419700
jne 0x40d302
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call fcn.0040be3d
test eax, eax
pop ecx
push 0x104
push ebx
je 0x40d2f7
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
mov eax, ebx
call fcn.0040cb98
call fcn.0040bfec
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x40d2e7
sub eax, edx
sar eax, 1
jmp 0x40d2fd
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
mov dword [0x41990c], 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 0x40d30b
mov eax, dword [0x41990c]
ret

Function at 0x40d4e1
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.0040cc19
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 8], eax
je 0x40d573
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 0x40d55c
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 0x40d55c
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 0x40d565
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 0x40d57c
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 0x40d614
Capabilities:
Get common file path
Get file attributes

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

Function at 0x40ea4f
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.0040e95e
mov ebx, eax
test ebx, ebx
je 0x40eac8
push dword [ebp + 0xc]
call fcn.0040cc19
cmp eax, 0xffffffff
pop ecx
mov dword [ebp + 0xc], eax
je 0x40eac6
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.0040b37d
cmp ebx, 0x32
jbe 0x40eab9
mov eax, dword [esi]
push ebx
push eax
push dword [ebp + 0xc]
call fcn.0040c080
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 0x40eabb
xor ebx, ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x40eac8
xor ebx, ebx
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc

Function at 0x40ec6b
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.0040e9fc
mov edi, dword [ebp + 0x10]
cmp edi, esi
jae 0x40ec8e
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 0x40ed15
xor byte [ebp + eax - 0x204], 0x5c
xor byte [ebp + eax - 0x104], 0x36
inc eax
cmp eax, edi
jb 0x40ed00
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.0040eb49
cmp esi, 0x8003
jne 0x40ed43
push 0x10
pop eax
jmp 0x40ed4a
mov eax, esi
call fcn.0040e79a
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.0040ead1
pop edi
pop esi
leave
ret 0x1c
Function at 0x40ef58
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.0040e9fc
mov edi, dword [ebp + 0x10]
cmp edi, dword [ebp + 0x18]
jae 0x40ef77
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 0x40effc
xor byte [ebp + eax - 0x100], 0x5c
xor byte [ebp + eax - 0x200], 0x36
inc eax
cmp eax, edi
jb 0x40efe7
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.0040eb49
cmp esi, 0x8003
jne 0x40f02a
push 0x10
pop eax
jmp 0x40f031
mov eax, esi
call fcn.0040e79a
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.0040eb49
pop edi
pop esi
pop ebx
leave
ret 0x20
Function at 0x40f054
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.0040e9fc
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 0x40f09c
push 0x10
pop edi
jmp 0x40f0a5
mov eax, esi
call fcn.0040e79a
mov edi, eax
cmp esi, 0x800e
mov dword [ebp + 0x60], 0x40
jne 0x40f0bb
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.0040ef58
cmp dword [ebp + 0x78], 1
jne 0x40f0ec
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 0x40f13d
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.0040ef58
mov dword [ebp + 0x5c], eax
xor eax, eax
cmp edi, ebx
jbe 0x40f127
mov cl, byte [ebp + eax - 0x24]
xor byte [ebp + eax + 0x1c], cl
inc eax
cmp eax, edi
jb 0x40f11a
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 0x40f0f7
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