joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x403203
pop dword [ebp - 0x4c]
mov eax, 0x1503c17d
sub eax, 0x14c38f7a
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x131cd05
add dword [ebp - 0x5c], 0x4d207846
mov dword [ebp - 0x58], 0xd754a96f
add dword [ebp - 0x58], 0x5adea2d6
mov dword [ebp - 0x54], 0xa48a120
add dword [ebp - 0x54], 0x4203a30e
mov dword [ebp - 0x50], 0x3a787065
add dword [ebp - 0x50], 0xc5878f9b
lea eax, [ebp - 0x5c]
push eax
mov eax, 0xae959d1d
add eax, 0x51aae36f
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0x8c45180b
add dword [ebp - 0x5c], 0xe82d514b
mov dword [ebp - 0x58], 0x814411fa
sub dword [ebp - 0x58], 0x3fd7b085
mov dword [ebp - 0x54], 0xad59f89a
add dword [ebp - 0x54], 0xb61573d2
mov dword [ebp - 0x50], 0x7aa83f3e
sub dword [ebp - 0x50], 0x7aa83f3e
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x39d71
push 0
call eax
mov ecx, 0x9c9c0524
sub ecx, 0x9c9bb028
mov edi, eax
mov esi, 0x9940d9dd
sub esi, 0x98ffc9dd
add esi, dword [ebp - 0x4c]
mov ebx, 0xc26a50ab
add ebx, 0x2fc15cb4
mov edx, dword [esi]
mov dword [ebp - 0x10], 0x877a840d
add edx, ebx
xor dword [ebp - 0x28], ebx
mov dword [edi], edx
add dword [ebp - 0x30], 0x67d2c4f8
add edi, 0x77721cd0
sub edi, 0x77721ccc
add esi, 0x49ed0540
add esi, 0xb612fac4
loop 0x403320
add eax, 0x34e70523
add eax, 0xcb1a41a0
xor ebx, ebx
add ebx, eax
add eax, 0x10d2d550
sub eax, 0x10d2d54b
mov ecx, 0x66348aae
sub ecx, 0x65f48aae
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x406420
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x43bdfb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x4046f4
call fcn.00407081
push 4
mov dword [esp + 0x18], 0
call fcn.00407f26
mov edi, eax
add esp, 4
test edi, edi
je 0x406494
push ebx
call fcn.00406f59
mov dword [edi], eax
call fcn.00406d18
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00407042
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406488
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.0040706a
pop ebx
jmp 0x406496
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x408991
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43f520]
jne 0x40899b
repz ret
jmp fcn.0040d0ec
Function at 0x411d32
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43f520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040b091
and dword [ebp - 0x14], 0
cmp dword [0x442374], 0
mov dword [ebp - 0x18], eax
jne 0x411de5
push 0x403954
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x411e8d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403948
push ebx
call edi
test eax, eax
je 0x411e8d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403938
push ebx
mov dword [0x442374], eax
call edi
push eax
call esi
push 0x403924
push ebx
mov dword [0x442378], eax
call edi
push eax
call esi
push 0x403908
push ebx
mov dword [0x44237c], eax
call edi
push eax
call esi
mov dword [0x442384], eax
test eax, eax
je 0x411de5
push 0x4038f0
push ebx
call edi
push eax
call esi
mov dword [0x442380], eax
mov eax, dword [0x442380]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x411e3e
cmp dword [0x442384], ecx
je 0x411e3e
push eax
call esi
push dword [0x442384]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x411e3e
test ebx, ebx
je 0x411e3e
call edi
test eax, eax
je 0x411e35
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x411e35
test byte [ebp - 8], 1
jne 0x411e3e
or dword [ebp + 0x10], 0x200000
jmp 0x411e71
mov eax, dword [0x442378]
cmp eax, dword [ebp - 0x18]
je 0x411e71
push eax
call esi
test eax, eax
je 0x411e71
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x411e71
mov eax, dword [0x44237c]
cmp eax, dword [ebp - 0x18]
je 0x411e71
push eax
call esi
test eax, eax
je 0x411e71
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x442374]
call esi
test eax, eax
je 0x411e8d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x411e8f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408991
leave
ret
Function at 0x43a900
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
sub esp, 0xc0c
cmp dword [0x7c7100], 0x37
jne 0x43a998
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FatalAppExitW]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
push 0
lea eax, [esp + 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea edx, [esp + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProfileSectionW]
push 0
lea eax, [esp + 0x10]
push eax
push 0
push 0x404228
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push 0
push 0
push 0
push 0x404240
push 0x404290
push 0x4042d0
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov ecx, dword [0x7c7104]
mov dword [esp], ecx
mov eax, 0x5d1
add dword [esp], eax
mov edx, dword [esp]
mov al, byte [edx + esi]
mov ecx, dword [0x447164]
mov byte [ecx + esi], al
add esp, 0xc0c
ret
Function at 0x43ac00
Capabilities:
Enumerate files on windows
Manipulate console buffer
Move file
Read .ini file

Disassembly:
mov eax, dword [0x7c7100]
mov ecx, dword [0x447164]
sub esp, 0xdbc
push ebx
push ebp
shr eax, 3
xor ebx, ebx
push esi
push edi
cmp eax, ebx
jbe 0x43ae14
mov edi, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], eax
jmp 0x43ac36
mov edi, dword [esp + 0x1c]
xor ebx, ebx
cmp dword [0x7c7100], 0x1c
jne 0x43ac4d
lea eax, [esp + 0x3c]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov ecx, dword [edi + 4]
mov edx, dword [0x440700]
mov eax, dword [str.t1_7]
mov esi, dword [edi]
mov ebp, dword [0x440708]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x44070c]
mov edi, 0xc6ef3720
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], 0x20
jmp 0x43ac8a
xor ebx, ebx
mov eax, esi
mov edx, esi
shl eax, 4
shr edx, 5
add edx, dword [esp + 0x30]
add eax, ebp
lea ecx, [edi + esi]
xor eax, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
mov dword [0x7c6084], ebx
mov eax, dword [esp + 0x18]
add dword [0x7c6084], eax
mov edx, dword [0x7c6084]
mov dword [esp + 0x28], edx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x28]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
sub dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
shl ecx, 4
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x2c]
add dword [esp + 0x10], eax
cmp dword [0x7c7100], 0x1be
mov eax, dword [esp + 0x14]
lea ebx, [edi + eax]
jne 0x43ad24
lea edx, [esp + 0x38]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov eax, dword [esp + 0x14]
shr eax, 5
add eax, dword [esp + 0x34]
cmp dword [0x7c7100], 0x979
mov dword [0x7c6088], 0xff6b3619
mov dword [0x7c608c], 0xffffffff
mov dword [esp + 0x18], eax
jne 0x43ad8f
push 0x404120
push 0
lea eax, [esp + 0x5d0]
push eax
push 0x404198
push 0x4041b8
push 0x404214
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0
lea ecx, [esp + 0x1cc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
xor dword [esp + 0x10], ebx
mov eax, dword [esp + 0x18]
xor dword [esp + 0x10], eax
mov eax, dword [0x7c7100]
sub esi, dword [esp + 0x10]
cmp eax, 0x93
je 0x43adb1
add edi, 0x61c88647
dec dword [esp + 0x20]
jne 0x43ac88
cmp eax, 0x8d4
jne 0x43adcd
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov dword [edi], esi
mov dword [edi + 4], eax
cmp dword [0x7c7100], 0x17
jne 0x43ae03
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
lea ecx, [esp + 0x88]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add edi, 8
dec dword [esp + 0x24]
mov dword [esp + 0x1c], edi
jne 0x43ac30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xdbc
ret
Function at 0x409978
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409a4b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409a64
push ebx
push 0x409a70
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00403388
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402750
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004033e8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x4099f8
mov al, 0x69
call fcn.0040961c
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040994c
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409a01
call fcn.0040994c
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a52
lea eax, [ebp - 4]
call fcn.0040316c
ret

Function at 0x409b04
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409bb8
jmp 0x409bad
cmp dword [esi + 0x10], 0x1000
jne 0x409b99
test byte [esi + 0x15], 1
jne 0x409b99
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409b58
cmp eax, 2
je 0x409b58
cmp eax, 0x10
je 0x409b58
cmp eax, 0x20
jne 0x409b6d
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409b6d
mov bl, 1
xor ebp, ebp
jmp 0x409b7e
mov eax, dword [esi]
add eax, ebp
call fcn.00409afc
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409b71
test bl, bl
je 0x409b99
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409bb8
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409b30
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x432001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
nop
sub eax, 0x407245
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x410640
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
sub esp, 0x30
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x20]
mov eax, dword [ecx + 0x10]
push edx
push eax
call fcn.0040fb20
cmp dword [ebp - 0x20], 0
pop ecx
pop ecx
jne 0x410666
call 0x411590
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0
jne 0x410747
lea esi, [ebp - 0x20]
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0xc]
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x24], edi
call fcn.0040fcb0
mov dword [ebp - 0x34], eax
pop ecx
movzx eax, word [ebp - 0x34]
cmp eax, 0x13
ja 0x4106f8
jmp dword [eax*4 + 0x40faa4]
call 0x411590
jmp 0x410710
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
add eax, dword [esi + 2]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov edx, ebx
mov ecx, ebx
mov edi, ebx
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 4]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 8]
mov dword [ecx + 0x1c], eax
mov eax, dword [ebp - 0x38]
mov dword [edi + 0x20], eax
jmp 0x41074f
xor eax, eax
mov esi, dword [ebp + 8]
mov dword [esi + 0x20], eax
lea esi, [ebp - 0x20]
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0xc]
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x24], ebx
call fcn.0040fcb0
mov dword [ebp - 0x34], eax
pop ecx
movzx edx, word [ebp - 0x34]
cmp edx, 0x13
ja 0x410824
jmp dword [edx*4 + 0x40fb84]
call 0x411590
jmp 0x410842
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x20]
mov eax, edx
mov eax, dword [ebp + 8]
push edx
push ecx
push eax
mov dword [ebp - 0x14], edx
call fcn.00410200
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x14]
mov esi, dword [eax + 0xc]
add esp, 0xc
add esi, dword [edi + 0xa]
mov dword [ebp - 0x38], esi
mov ebx, dword [eax + 0x18]
mov eax, dword [ebp - 0x38]
mov dword [eax], ebx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x14]
mov eax, dword [ebp - 0x38]
mov dword [eax + 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ebp - 0x38]
mov dword [eax + 8], ecx
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x14]
cmp byte [eax], 0x2a
jne 0x4108b4
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
add esi, 0x10
mov dword [eax + 0xc], esi
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x18]
mov edx, dword [eax]
mov eax, dword [ebp - 0x38]
add edx, dword [ebp - 0x10]
mov dword [eax + 0x10], edx
jmp 0x4108c3
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov eax, dword [ebp - 0x38]
add ecx, dword [ebp - 0x10]
mov dword [eax + 0xc], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 6]
mov eax, dword [ebp + 8]
mov ebx, dword [eax]
mov esi, dword [eax + 4]
mov edi, dword [eax + 8]
mov ebp, dword [eax + 0xc]
fninit
nop
wait
jmp ecx
Function at 0x4014e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429f04
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x43e064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0xc
call fcn.0040c31f
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi + 8], 0
push 0x11
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.0040c31f
mov dword [esi], eax
xorps xmm0, xmm0
add esp, 8
lea ecx, [eax + 0x11]
mov dword [esi + 8], ecx
movups xmmword [eax], xmm0
mov byte [eax + 0x10], 0
add eax, 0x11
mov dword [esi + 4], eax
xor ecx, ecx
mov eax, 0x453d9e2d
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
mov edx, ecx
shr eax, 8
imul eax, eax, 0x193
sub edx, eax
mov al, byte [edx + 0x43a460]
mov dl, byte [ecx + edi]
xor dl, al
mov eax, dword [esi]
mov byte [ecx + eax], dl
inc ecx
cmp ecx, 0x11
jb 0x401560
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403730
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x403762
jl 0x403755
test ecx, ecx
jne 0x403762
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x403822
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.00405920
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x4037ce
jg 0x40378d
test esi, esi
je 0x4037ce
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x4037a5
mov eax, dword [esp + 0x10]
jl 0x40379f
cmp eax, esi
jae 0x4037a5
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.0040dc80
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x4037ef
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x40380b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x403774
jl 0x40380b
test ecx, ecx
jne 0x403774
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov esi, dword [ebp + 0x10]
sbb esi, edx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x403860
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x403860
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.0040dc80
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [esp + 0x18], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x4038c9
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x403886
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x4038b4
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.00413bda
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x4038c9
cmp edi, eax
ja 0x403892
test edi, edi
je 0x4038c9
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.00413bda
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a214
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x43e064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0xc
call fcn.0040c31f
mov ebx, eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movq qword [ebx], xmm0
mov dword [ebx + 8], 0
push 0xc
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
call fcn.0040c31f
mov dword [ebx], eax
xorps xmm0, xmm0
add esp, 8
lea ecx, [eax + 0xc]
mov dword [ebx + 8], ecx
xor ecx, ecx
movq qword [eax], xmm0
mov dword [eax + 8], 0
add eax, 0xc
mov dword [ebx + 4], eax
mov eax, esi
not eax
mov dword [ebp - 0x10], eax
mov eax, 1
sub eax, esi
mov dword [ebp - 0x14], eax
mov eax, 2
sub eax, esi
mov dword [ebp - 0x18], eax
mov eax, 3
sub eax, esi
add esi, 2
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], esi
lea edi, [esi + ecx]
mov eax, 0x453d9e2d
mul ecx
mov esi, dword [ebp - 0x10]
mov eax, ecx
sub eax, edx
add esi, edi
shr eax, 1
add eax, edx
mov edx, ecx
shr eax, 8
imul eax, eax, 0x193
sub edx, eax
mov al, byte [edx + 0x43a600]
mov dl, byte [edi - 2]
xor dl, al
mov eax, dword [ebx]
mov byte [ecx + eax], dl
mov eax, 0x453d9e2d
mul esi
sub esi, edx
shr esi, 1
add esi, edx
mov edx, ecx
shr esi, 8
imul eax, esi, 0x193
lea esi, [ecx + 2]
sub edx, eax
mov al, byte [edx + 0x43a601]
mov dl, byte [edi - 1]
xor dl, al
mov eax, dword [ebx]
mov byte [eax + ecx + 1], dl
mov eax, 0x453d9e2d
mul esi
sub esi, edx
shr esi, 1
add esi, edx
mov edx, ecx
shr esi, 8
imul eax, esi, 0x193
mov esi, dword [ebp - 0x14]
add esi, edi
sub edx, eax
mov al, byte [edx + 0x43a602]
mov dl, byte [edi]
xor dl, al
mov eax, dword [ebx]
mov byte [eax + ecx + 2], dl
mov eax, 0x453d9e2d
mul esi
sub esi, edx
shr esi, 1
add esi, edx
mov edx, ecx
shr esi, 8
imul eax, esi, 0x193
mov esi, dword [ebp - 0x18]
add esi, edi
sub edx, eax
mov al, byte [edx + 0x43a603]
mov dl, byte [edi + 1]
xor dl, al
mov eax, dword [ebx]
mov byte [eax + ecx + 3], dl
mov eax, 0x453d9e2d
mul esi
sub esi, edx
shr esi, 1
add esi, edx
mov edx, ecx
shr esi, 8
imul eax, esi, 0x193
mov esi, dword [ebp - 0x1c]
sub edx, eax
mov al, byte [edx + 0x43a604]
mov dl, byte [edi + 2]
xor dl, al
mov eax, dword [ebx]
add esi, edi
mov byte [eax + ecx + 4], dl
mov eax, 0x453d9e2d
mul esi
sub esi, edx
shr esi, 1
add esi, edx
mov edx, ecx
shr esi, 8
imul eax, esi, 0x193
mov esi, dword [ebp - 0x20]
sub edx, eax
mov al, byte [edx + 0x43a605]
mov dl, byte [edi + 3]
xor dl, al
mov eax, dword [ebx]
mov byte [eax + ecx + 5], dl
add ecx, 6
cmp ecx, 0xc
jb 0x4040b2
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret