joyce8/EMBER2024-capa huggingface dataset:
Function at 0x436b7a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor eax, eax
mov esi, ecx
push eax
push eax
push 1
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, dword [ebp + 8]
mov edi, eax
mov dword [ebx + 4], edi
test edi, edi
jne 0x436bc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
mov dword [ebp - 0x10], esi
call fcn.0040da2e
mov dword [ebp - 0xc], eax
test esi, esi
jne 0x436c8e
mov esi, dword [ebp - 4]
xor eax, eax
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 8], eax
mov dword [ebx + 8], eax
cmp dword [esi + 8], 0
jne 0x436c0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
mov dword [ebp - 0x10], esi
call fcn.0040da2e
mov dword [ebp - 0xc], eax
test esi, esi
je 0x436c09
push str.thread.exit_event
jmp 0x436c93
mov esi, dword [ebp - 4]
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0
push ebx
push 0x437306
push dword [ebp + 0xc]
push 0
call fcn.00458a9e
add esp, 0x18
mov dword [esi + 4], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x436c75
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov dword [ebp + 8], eax
call dword [edx]
test edi, edi
je 0x436c4e
push edi
call esi
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
je 0x436c5c
push dword [eax + 8]
call esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10], ebx
call fcn.0040da2e
mov dword [ebp - 0xc], eax
test ebx, ebx
je 0x436c75
push str.thread
jmp 0x436c93
test edi, edi
je 0x436c85
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.thread.entry_event
lea eax, [ebp - 0x10]
push eax
call fcn.00432531
int3

Function at 0x436c9d
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x49d3d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x436ceb
movzx ecx, byte [ebp + 0x10]
lea eax, [ebp - 0x194]
push eax
movzx eax, byte [ebp + 0xc]
shl cx, 8
or cx, ax
movzx eax, cx
push eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00449233
mov esp, ebp
pop ebp
ret
Function at 0x4379ae
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
call fcn.00437af1
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [ebx + 0x14], 8
jb 0x4379ce
mov eax, dword [ebx]
jmp 0x4379d0
mov eax, ebx
lea ecx, [ebp - 4]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp + 8], eax
test eax, eax
je 0x437a5c
push eax
call fcn.00449977
mov dword [esi + 4], eax
cmp dword [ebx + 0x14], 8
pop ecx
jb 0x4379f3
mov ebx, dword [ebx]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x437a5c
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
lea eax, [esi + 0x10]
push eax
push 0x4787f8
push dword [esi + 4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x437a5c
lea eax, [ebp + 8]
push eax
lea edi, [esi + 8]
push edi
push 0x47e8dc
push dword [esi + 4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x437a57
mov eax, dword [ebp + 8]
cmp eax, 4
jb 0x437a57
mov ecx, dword [edi]
shr eax, 2
mov dword [esi + 0xc], eax
mov ax, word [ecx]
mov word [esi], ax
mov ax, word [ecx + 2]
mov word [esi + 2], ax
xor edi, edi
inc edi
jmp 0x437a6d
cmp dword [esi + 4], edi
je 0x437a6d
push dword [esi + 4]
call fcn.00448fc6
pop ecx
mov dword [esi + 4], edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x439bf2
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push edi
mov edi, ecx
push 0
push dword [edi + 0x48]
mov byte [edi + 0x30], 1
call esi
push 0
push dword [edi + 0x40]
call esi
push 0
push dword [edi + 0x44]
call esi
push 0x439c3f
push 0x12c
push 1
push dword [edi + 0x58]
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop esi
ret

Function at 0x43a192
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx edi, word [ebp + 8]
mov esi, eax
push edi
push esi
call dword [sym.imp.USER32.dll_LoadBitmapW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x43a28e
push ebx
call fcn.0043a294
push 0x47ee28
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x43a1df
push 0xa
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov edi, eax
push esi
mov dword [ebp + 8], edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push 2
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x43a28a
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x43a28a
push dword [ebp + 8]
push ebx
push esi
call fcn.0044d410
add esp, 0xc
lea eax, [ebp - 8]
xor ebx, ebx
mov dword [ebp - 8], ebx
push eax
push ebx
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x43a27c
push ebx
push dword [ebp - 8]
call fcn.0043a16b
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x43a273
mov ecx, dword [esi + 8]
mov dword [esi + 8], ebx
test ecx, ecx
jne 0x43a26b
push 0xffffffffffffffff
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x43a26b
mov dword [esi + 8], eax
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x43b064
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, ecx
mov edx, dword [esi]
lea eax, [edx + 0x18]
push eax
push 4
push edx
push 0x43b0ad
push 0
push 0
call fcn.00458a9e
mov ecx, eax
add esp, 0x18
test ecx, ecx
jne 0x43b08b
xor al, al
pop esi
ret
mov eax, dword [esi]
add eax, 4
lock inc dword [eax]
push ecx
mov ecx, dword [esi]
add ecx, 8
call fcn.0041b2b1
mov eax, dword [esi]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov al, 1
pop esi
ret
Function at 0x43c8e7
Capabilities:
Enumerate process modules
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471f58
mov eax, dword fs:[0]
push eax
mov eax, 0x183c
call fcn.004493a0
mov eax, dword [0x49d3d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x1840]
push eax
push 0x1000
lea eax, [ebp - 0x1814]
push eax
call sub.PSAPI.DLL_EnumProcesses
mov ebx, dword [ebp - 0x1840]
xor eax, eax
and dword [ebp - 0x1834], eax
xor ecx, ecx
shr ebx, 2
mov dword [ebp - 0x183c], eax
mov dword [ebp - 0x1838], ecx
and dword [ebp - 4], ecx
test ebx, ebx
je 0x43ca2b
lea eax, [ebp - 0x1814]
mov dword [ebp - 0x1830], eax
push dword [eax]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x1844], esi
push 0x400
lea eax, [ebp - 0x814]
mov byte [ebp - 4], 1
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x43c9f8
xor eax, eax
lea ecx, [ebp - 0x182c]
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x814]
push eax
call fcn.00403a00
lea eax, [edi + 0x5c]
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x43c9c4
mov eax, dword [eax]
push ecx
push 0
push eax
lea ecx, [ebp - 0x182c]
call fcn.0040cbd1
cmp eax, 0xffffffff
je 0x43c9e9
push dword [ebp - 0x1830]
lea ecx, [ebp - 0x183c]
call fcn.0043c892
push 0
push 1
lea ecx, [ebp - 0x182c]
call fcn.00408c9a
mov byte [ebp - 4], 0
test esi, esi
je 0x43ca07
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1830]
add eax, 4
mov dword [ebp - 0x1830], eax
sub ebx, 1
jne 0x43c969
mov ecx, dword [ebp - 0x1838]
mov eax, dword [ebp - 0x183c]
push edi
push 0x43ca72
push ecx
push eax
lea eax, [ebp - 0x1848]
mov byte [edi + 0x58], 0
push eax
call fcn.0043c60a
mov bl, byte [edi + 0x58]
lea ecx, [ebp - 0x183c]
add esp, 0x14
call fcn.0043c869
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00449233
mov esp, ebp
pop ebp
ret
Function at 0x43cc5a
Capabilities:
Create new key via cryptacquirecontext
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push 0x28
mov eax, 0x471fd6
call fcn.0044931d
mov esi, ecx
mov dword [ebp - 0x34], esi
xor ebx, ebx
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x30], esi
mov dword [esi + 0x10], ebx
jb 0x43cc84
mov eax, dword [esi]
jmp 0x43cc86
mov eax, esi
mov byte [eax], bl
push str.Failed_CryptAcquireContext
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.00403984
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
push 0xf0000000
push 1
push ebx
push ebx
lea edi, [esi + 0x18]
push edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push eax
call fcn.0041564b
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00408c45
push str.Failed_CryptCreateHash
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00403984
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
push eax
lea eax, [esi + 0x1c]
push eax
push ebx
push ebx
push 0x8003
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push eax
call fcn.0041564b
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00408c45
mov eax, esi
call fcn.0044926a
ret

Function at 0x43d012
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x49d3d4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.0044d990
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x43d06c
cmp dword [ebp - 0x108], 2
jne 0x43d06c
cmp dword [ebp - 0x114], 6
jb 0x43d06c
mov al, 1
jmp 0x43d06e
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449233
mov esp, ebp
pop ebp
ret
Function at 0x43fefa
Capabilities:
Terminate process

Disassembly:
push 0x5c
mov eax, 0x472400
call fcn.004492af
mov esi, ecx
and dword [esi + 8], 0
lea ebx, [esi + 0xc]
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [esi], vtable.CUnzipper.0
mov word [ebx], ax
test edi, edi
je 0x44000d
push 0x104
call fcn.0044f3d7
mov dword [esp], 0x104
push eax
push edi
mov dword [ebp - 0x5c], eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x28]
call fcn.00403a00
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040eb50
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x43ff67
mov eax, dword [eax]
push eax
call fcn.004425a7
pop ecx
push 0
push 1
lea ecx, [ebp - 0x40]
mov dword [esi + 8], eax
call fcn.00408c45
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push 0
push 1
call fcn.00408c9a
push dword [ebp - 0x5c]
call fcn.0044f3d2
cmp dword [esi + 8], 0
pop ecx
push edi
jne 0x43ffdb
lea eax, [ebp - 0x58]
push str.unzOpen_failed_for__S
push eax
call fcn.0040ec8b
add esp, 0xc
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 1
jb 0x43ffbd
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x68]
call fcn.004043f7
push 0x4938d0
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], vtable.std::runtime_error.0
push eax
call fcn.0044b7c4
call dword [sym.imp.SHLWAPI.dll_StrDupW]
push 0x2e
mov edi, eax
push 0
push edi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
test eax, eax
je 0x43fffe
push 0x5c
pop ecx
mov word [eax], cx
xor ecx, ecx
mov word [eax + 2], cx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
call fcn.00449259
ret 4

Function at 0x4400b3
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
test esi, esi
je 0x440111
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x440111
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4400e1
shr eax, 4
and eax, 1
jmp 0x440113
push esi
call dword [sym.imp.SHLWAPI.dll_StrDupW]
push 0x5c
mov edi, eax
push 0
push edi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
test eax, eax
je 0x44012d
xor ecx, ecx
mov word [eax], cx
mov ecx, ebx
push edi
call fcn.004400b3
push edi
test eax, eax
jne 0x44011a
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x440111
xor eax, eax
inc eax
jmp 0x440113
Function at 0x44051d
Capabilities:
Timestomp file

Disassembly:
push 0x48
mov eax, 0x4724a9
call fcn.004492af
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push ebx
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x34], esi
push edi
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
push str.SetFileModTime_couldnt_open__S
push eax
call fcn.0040ec8b
push eax
xor eax, eax
inc ebx
cmp esi, 0xffffffff
mov byte [ebp - 4], bl
setne al
push eax
call fcn.0041564b
add esp, 0x14
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 0
push ebx
call fcn.00408c45
push edi
lea eax, [ebp - 0x28]
push str.SetFileModTime_failed_GetFileTime:__S
push eax
call fcn.0040ec8b
add esp, 0xc
push eax
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push eax
call fcn.0041564b
pop ecx
pop ecx
push 0
push ebx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00408c45
push edi
lea eax, [ebp - 0x28]
push str.SetFileModTime_failed_DosDateTimeToFileTime:__S
push eax
call fcn.0040ec8b
add esp, 0xc
push eax
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 3
push eax
mov eax, dword [ebp + 0xc]
push eax
shr eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
push eax
call fcn.0041564b
pop ecx
pop ecx
mov byte [ebp - 4], 0
push 0
push ebx
lea ecx, [ebp - 0x28]
call fcn.00408c45
push edi
lea eax, [ebp - 0x28]
push str.SetFileModTime_failed_LocalFileTimeToFileTime:__S
push eax
call fcn.0040ec8b
add esp, 0xc
push eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
push eax
call fcn.0041564b
pop ecx
pop ecx
push 0
push ebx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00408c45
push edi
lea eax, [ebp - 0x28]
push str.SetFileModTime_failed_SetFileTime:__S
push eax
call fcn.0040ec8b
add esp, 0xc
push eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push eax
call fcn.0041564b
pop ecx
pop ecx
push 0
push ebx
lea ecx, [ebp - 0x28]
call fcn.00408c45
test esi, esi
je 0x440681
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00449259
ret 8
Function at 0x445d3e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x445d4b
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.00444014
Function at 0x462882
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00462701

Function at 0x402e5c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40d00c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402ef4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402ed4
xor eax, eax
push ebp
push 0x402ecd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402f10
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402ed4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x40d00c]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40d00c], ax
mov esp, ebp
pop ebp
ret

Function at 0x4035f4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40f034], 0
je 0x403655
cmp word [0x40f208], 0xd7b2
jne 0x40361d
cmp dword [0x40f210], 0
jbe 0x40361d
mov eax, 0x40f204
call dword [0x40f220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40367c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40d018], 0
jne 0x403671
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406420
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
movups xmm0, xmmword [edx]
mov eax, dword [ecx]
push ebx
mov ebx, dword [ecx + 8]
movups xmmword [ebp - 0x58], xmm0
push esi
movups xmm0, xmmword [edx + 0x10]
push edi
mov edi, dword [ecx + 0xc]
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x14], eax
movups xmm0, xmmword [edx + 0x20]
mov dword [ebp - 4], eax
mov eax, dword [ecx + 4]
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x18], ecx
movups xmm0, xmmword [edx + 0x30]
mov dword [ebp - 0xc], 0
movups xmmword [ebp - 0x28], xmm0
mov esi, eax
mov dword [ebp - 8], eax
mov ecx, ebx
not esi
and ecx, eax
and esi, edi
or esi, ecx
mov edx, edi
mov ecx, dword [ebp - 0xc]
mov edi, ebx
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ecx + 0x446190]
add ecx, dword [ebp + ebx - 0x58]
add ecx, esi
add ecx, dword [ebp - 4]
rol ecx, 7
add eax, ecx
mov dword [ebp - 4], edx
mov ecx, ebx
mov ebx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 0xc], ecx
cmp ecx, 0x40
jb 0x406463
mov dword [ebp - 0x10], 0x4461d0
mov dword [ebp - 0xc], 0x51
mov esi, edi
mov dword [ebp - 8], eax
not esi
mov ecx, edi
and ecx, eax
and esi, ebx
or esi, ecx
mov edx, edi
mov ecx, dword [ebp - 0xc]
mov edi, ebx
mov ebx, dword [ebp - 0x10]
and ecx, 0xf
add dword [ebp - 0x10], 4
mov ecx, dword [ebp + ecx*4 - 0x58]
add ecx, dword [ebx]
mov ebx, dword [ebp - 8]
add ecx, esi
add ecx, dword [ebp - 4]
rol ecx, 0xc
add eax, ecx
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 0xc]
add ecx, 5
mov dword [ebp - 0xc], ecx
cmp ecx, 0xa1
jb 0x4064b1
mov ecx, 0x65
mov dword [ebp - 0x10], 0x446210
mov dword [ebp - 0xc], ecx
and ecx, 0xf
mov dword [ebp - 8], eax
mov edx, edi
mov esi, edi
xor edx, ebx
mov edi, ebx
mov ebx, dword [ebp - 0x10]
xor edx, eax
mov ecx, dword [ebp + ecx*4 - 0x58]
add dword [ebp - 0x10], 4
add ecx, dword [ebx]
mov ebx, dword [ebp - 8]
add ecx, edx
add ecx, dword [ebp - 4]
ror ecx, 0xf
add eax, ecx
mov dword [ebp - 4], esi
mov ecx, dword [ebp - 0xc]
add ecx, 3
mov dword [ebp - 0xc], ecx
cmp ecx, 0x95
jb 0x406507
mov ecx, 0x150
mov dword [ebp - 0x10], 0xc0
mov dword [ebp - 0xc], ecx
add dword [ebp - 0xc], 7
and ecx, 0xf
mov edx, edi
mov dword [ebp - 8], edi
mov edi, dword [ebp - 0x10]
not edx
or edx, eax
mov dword [ebp - 4], ebx
mov ecx, dword [ebp + ecx*4 - 0x58]
xor edx, ebx
mov ebx, eax
add ecx, dword [edi + 0x446190]
add ecx, edx
mov edx, dword [ebp - 8]
add ecx, esi
mov esi, edx
ror ecx, 0xa
add eax, ecx
mov ecx, edi
mov edi, dword [ebp - 4]
add ecx, 4
mov dword [ebp - 0x10], ecx
cmp ecx, 0x100
mov ecx, dword [ebp - 0xc]
jb 0x406554
mov ecx, dword [ebp - 0x14]
add ecx, edx
mov edx, dword [ebp - 0x18]
add dword [edx + 8], ebx
add dword [edx + 4], eax
add dword [edx + 0xc], edi
pop edi
pop esi
mov dword [edx], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4085e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x446628]
push ebx
mov dword [ebp - 7], eax
xor ebx, ebx
mov ax, word [0x44662c]
push esi
mov word [ebp - 3], ax
mov esi, ecx
mov al, byte [0x44662e]
push edi
mov edi, edx
mov byte [ebp - 1], al
nop dword [eax]
mov eax, 0x3521cfb3
mov cl, bl
mul ebx
mov eax, ebx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul eax, eax, 0x35
sub cl, al
add cl, 0x35
xor byte [ebp + ebx - 7], cl
inc ebx
cmp ebx, 7
jl 0x408610
lea ecx, [ebp - 7]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], 0
lea edx, [ecx + 1]
mov dword [ebp - 0xc], 0xf
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408654
sub ecx, edx
lea eax, [ebp - 7]
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.00403ce0
push ecx
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.00412840
mov edx, dword [ebp - 0xc]
mov ebx, eax
cmp edx, 0x10
jb 0x4086a8
mov ecx, dword [ebp - 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40869e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40870a
push edx
push ecx
call fcn.0041c138
add esp, 8
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
cmp ebx, 0xffffffff
je 0x4086f3
mov eax, dword [edi + 0x10]
lea ecx, [ebx + 6]
cmp eax, ecx
jb 0x40870f
sub eax, ecx
or edx, 0xffffffff
cmp eax, 0xffffffff
cmovb edx, eax
cmp dword [edi + 0x14], 0x10
jb 0x4086de
mov edi, dword [edi]
lea eax, [edi + ecx]
mov ecx, esi
push edx
push eax
call fcn.00403ce0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0x4458bb
mov ecx, esi
call fcn.00403ce0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00421c52
call fcn.004042a0
int3