joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4023ee
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
call fcn.00402113
push dword [esp + 0x10]
call fcn.0040cc19
mov edi, eax
cmp edi, 0xffffffff
pop ecx
je 0x402444
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [esi + 4], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
push dword [esi + 4]
mov dword [esi], eax
push eax
push edi
call fcn.0040c080
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x40243d
mov eax, dword [esi]
cmp dword [eax], 0x66676572
je 0x40243d
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
ret 4

Function at 0x4027d5
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0xc]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x4027dc
sub eax, ecx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push 1
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret

Function at 0x402824
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40285d
mov ecx, dword [ebp - 4]
cmp ecx, 2
jb 0x402859
shr ecx, 1
and word [esi + ecx*2], ax
leave
ret
and word [esi], 0
leave
ret

Function at 0x402be2
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push dword [ebp + 0x18]
je 0x402c00
push dword [esi]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004028a1
add esp, 0x10
pop ebp
ret
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi], eax
pop ebp
ret

Function at 0x402c13
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20000
call fcn.004131b0
cmp dword [ebp + 8], 0
je 0x402c78
test esi, esi
je 0x402c66
push 0x22
push esi
call sub.msvcrt.dll_wcschr
test eax, eax
pop ecx
pop ecx
je 0x402c66
and word [ebp - 0x20000], 0
push esi
push str.__s_
lea eax, [ebp - 0x20000]
push 0xfffe
push eax
call sub.msvcrt.dll__snwprintf
add esp, 0x10
push dword [ebp + 0x1c]
lea eax, [ebp - 0x20000]
push eax
jmp 0x402c6a
push dword [ebp + 0x1c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
leave
ret
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
leave
ret
Function at 0x402dc3
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4004
call fcn.004131b0
push esi
xor eax, eax
cmp dword [ebp + 8], eax
push 0x4000
push eax
mov word [ebp - 0x4004], ax
lea eax, [ebp - 0x4002]
push eax
je 0x402e1f
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x4004]
push eax
push dword [edi]
push dword [ebp + 0x14]
call fcn.0040bf64
add esp, 0x18
push dword [ebp + 0x18]
lea eax, [ebp - 0x4004]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov esi, eax
jmp 0x402e62
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 0x18]
lea eax, [ebp - 0x4004]
push 0x2000
push eax
push 0x4144b8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [ebp + 0x14]
xor ecx, ecx
cmp ecx, eax
lea eax, [ebp - 0x4004]
sbb esi, esi
push edi
push eax
neg esi
call fcn.0040cf54
add esp, 0xc
mov eax, esi
pop esi
leave
ret
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