joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4af1e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
mov eax, dword [0x56f790]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x84]
push edi
push 0x80
push 0
push eax
call fcn.004b17e0
push 0x80
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.004ae1f0
lea ecx, [ebp - 0x188]
mov edi, esi
mov eax, ecx
add esp, 0x18
mov edx, 0x104
sub edi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x4af24a
mov al, byte [edi + ecx]
test al, al
je 0x4af24a
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x4af231
lea eax, [ecx - 1]
test edx, edx
cmovne eax, ecx
mov ecx, 0x104
mov byte [eax], 0
lea eax, [ebp - 0x188]
cmp byte [eax], 0
je 0x4af26b
inc eax
sub ecx, 1
jne 0x4af260
mov edx, 0x104
mov edi, ecx
mov eax, edx
sub eax, ecx
neg edi
sbb edi, edi
and edi, eax
test ecx, ecx
je 0x4af2c0
lea ecx, [ebp - 0x188]
lea ecx, [ecx + edi]
sub edx, edi
je 0x4af2b5
lea edi, [ebp - 0x84]
mov eax, SysReAllocString
sub edi, ecx
push ebx
nop dword [eax + eax]
test eax, eax
je 0x4af2b4
mov bl, byte [edi + ecx]
test bl, bl
je 0x4af2b4
mov byte [ecx], bl
dec eax
inc ecx
sub edx, 1
jne 0x4af2a0
pop ebx
test edx, edx
lea eax, [ecx - 1]
cmovne eax, ecx
mov byte [eax], 0
push 0x100
lea eax, [ebp - 0x288]
mov dword [ebp - 0x290], 1
push 0
push eax
call fcn.004b17e0
add esp, 0xc
mov dword [ebp - 0x28c], 0x100
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x290]
push eax
push 0x54010c
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
test eax, eax
jne 0x4af37a
lea eax, [ebp - 0x288]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x4af344
test cl, cl
je 0x4af340
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x4af344
add eax, 2
add esi, 2
test cl, cl
jne 0x4af324
xor eax, eax
jmp 0x4af349
sbb eax, eax
or eax, 1
test eax, eax
je 0x4af37a
lea ecx, [ebp - 0x288]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4af356
sub ecx, edx
lea eax, [ebp - 0x288]
push ecx
push eax
push 1
push str.mid_old
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call edi
lea ecx, [ebp - 0x188]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4af383
sub ecx, edx
lea eax, [ebp - 0x188]
push ecx
push eax
push 1
push 0x54010c
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004ac4b8
mov esp, ebp
pop ebp
ret

Function at 0x4f226d
Capabilities:
Read file on windows

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

Function at 0x4f2278
Capabilities:
Read file on windows

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

Function at 0x4feea7
Capabilities:
Set environment variable

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

Function at 0x4feeb2
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004fe8dc
Function at 0x4ff497
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ff276
Function at 0x509820
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call fcn.00509e30
add esp, 8
test al, al
je 0x509845
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x509845
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x509e30
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x50b2e0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x50b30b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x50b30b
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
pop esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x50c430
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x50c447
mov eax, 0x8000ffff
pop esi
mov esp, ebp
pop ebp
ret
push edi
push 0
lea edi, [esi + 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x50c472
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x50c46c
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x50c58b
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0
mov byte [edi + 0x18], 1
call ebx
mov dword [esi + 0x40], eax
test eax, eax
jne 0x50c4a9
cmp byte [edi + 0x18], al
je 0x50c49d
push edi
mov byte [edi + 0x18], al
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
call fcn.00417590
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
call ebx
mov edi, eax
test edi, edi
jne 0x50c4e2
call fcn.00417590
push 0x2710
mov ecx, esi
mov edi, eax
call fcn.0050c5c0
test eax, eax
jns 0x50c588
test edi, edi
pop ebx
cmovns edi, eax
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push edi
mov ecx, esi
call fcn.0050c060
mov dword [ebp - 4], eax
test eax, eax
jns 0x50c512
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x2710
mov ecx, esi
call fcn.0050c5c0
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
call ebx
mov ebx, eax
test ebx, ebx
je 0x50c4b9
push 0
push 0
push ebx
mov ecx, esi
call fcn.0050c060
mov edi, eax
test edi, edi
jns 0x50c550
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x2710
mov ecx, esi
call fcn.0050c5c0
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x50c8e0
push 0
push 0
call fcn.004d6ad4
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x50c4b9
push 0xffffffffffffffff
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x50c588
call fcn.00417590
mov edi, eax
mov eax, edi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x513120
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x56f790]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
mov dword [ebp - 0x214], ebx
call fcn.004b17e0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xe
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x5132d9
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5132d9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 0x210], ebx
test ebx, ebx
je 0x5132d9
movzx ecx, word [ebx + 4]
dec ecx
shl ecx, 5
add ecx, 0x438
push ecx
call fcn.004d08f0
mov edi, eax
add esp, 4
test edi, edi
je 0x5132d9
movzx ecx, word [ebx + 4]
lea eax, [ebp - 0x20c]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [edi + 0x414], ecx
lea ecx, [edi + 0x20c]
push eax
push ecx
call esi
push 0x52bd6c
lea eax, [edi + 4]
push eax
call esi
xor ebx, ebx
cmp dword [edi + 0x414], ebx
jbe 0x5132bd
mov eax, dword [ebp - 0x210]
lea esi, [edi + 0x424]
add eax, 0x12
mov dword [ebp - 0x210], eax
nop dword [eax + eax]
movzx eax, word [eax]
push 3
push eax
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x218], eax
test eax, eax
je 0x5132d0
push eax
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x5132d0
push dword [ebp - 0x218]
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov dword [esi + 4], eax
call fcn.004d08f0
add esp, 4
mov dword [esi], eax
push dword [esi + 4]
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [esi]
call fcn.004b0ce0
lea eax, [esi - 0xc]
push eax
call fcn.00512810
add esp, 0x10
test eax, eax
je 0x5132d0
mov eax, dword [ebp - 0x210]
inc ebx
add eax, 0xe
add esi, 0x20
mov dword [ebp - 0x210], eax
cmp ebx, dword [edi + 0x414]
jb 0x513220
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ac4b8
mov esp, ebp
pop ebp
ret
push edi
call fcn.004bba85
add esp, 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ac4b8
mov esp, ebp
pop ebp
ret
Function at 0x513f70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x56f790]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x513fb5
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ac4b8
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x18]
push edi
push 0
push eax
push 0xe
lea eax, [ebp - 0x14]
push eax
push esi
call ebx
test eax, eax
je 0x51413b
cmp dword [ebp - 0x18], 0xe
jne 0x51413b
mov eax, 0x4d42
cmp word [ebp - 0x14], ax
jne 0x51413b
cmp word [ebp - 0xe], 0
jne 0x51413b
cmp word [ebp - 0xc], 0
jne 0x51413b
push 0x2c
call fcn.004d08f0
mov edi, eax
add esp, 4
test edi, edi
je 0x51413b
push 0
lea eax, [ebp - 0x18]
push eax
push 0x28
push edi
push esi
call ebx
test eax, eax
je 0x514118
cmp dword [ebp - 0x18], 0x28
jne 0x514118
cmp dword [edi], 0x28
jne 0x514118
push edi
call fcn.00513f20
movzx ebx, ax
push edi
mov dword [ebp - 0x1c], ebx
call fcn.00513890
imul eax, dword [edi + 8]
movzx ecx, bx
mov dword [ebp - 0x20], eax
add eax, 0x28
add ecx, eax
push ecx
push edi
call fcn.004d11ab
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x514118
mov ecx, dword [ebp - 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
test cx, cx
je 0x5140a1
push 0
lea eax, [ebp - 0x18]
push eax
movzx eax, cx
push eax
lea eax, [ebx + 0x28]
push eax
push esi
call edi
test eax, eax
je 0x5140f5
mov ecx, dword [ebp - 0x1c]
movzx eax, cx
cmp dword [ebp - 0x18], eax
jne 0x5140f5
mov eax, dword [ebp - 0xa]
test eax, eax
je 0x5140b9
push 0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x5140f5
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x20]
push ebx
call fcn.00513eb0
add esp, 4
push eax
push esi
call edi
test eax, eax
je 0x5140f5
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x18], eax
jne 0x5140f5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ac4b8
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.004bba85
add esp, 4
xor eax, eax
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ac4b8
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.004bba85
add esp, 4
xor eax, eax
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ac4b8
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.004ac4b8
mov esp, ebp
pop ebp
ret
Function at 0x5141b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x56f790]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x5141fa
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ac4b8
mov esp, ebp
pop ebp
ret
mov eax, 0x4d42
mov word [ebp - 0x14], ax
xor eax, eax
push esi
push edi
mov dword [ebp - 0xe], eax
call fcn.00513f20
movzx ecx, word [edi + 0xe]
add esp, 4
movzx edx, ax
push 0
lea eax, [edx + 0x36]
mov dword [ebp - 0xa], eax
movzx eax, word [edi + 0xc]
imul ecx, eax
lea eax, [edx + 0x36]
imul ecx, dword [edi + 4]
add ecx, 0x1f
sar ecx, 3
and ecx, 0xfffffffc
imul ecx, dword [edi + 8]
add eax, ecx
shr eax, 2
mov dword [ebp - 0x12], eax
lea eax, [ebp - 0x18]
push eax
push 0xe
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5142c5
cmp dword [ebp - 0x18], 0xe
jne 0x5142c5
movzx esi, word [edi + 0xe]
movzx ecx, word [edi + 0xc]
mov eax, dword [edi + 8]
imul esi, ecx
cdq
sub eax, edx
sar eax, 1
push 0
imul esi, dword [edi + 4]
mov dword [edi + 8], eax
add esi, 0x1f
sar esi, 3
and esi, 0xfffffffc
imul esi, eax
lea eax, [ebp - 0x18]
push eax
add esi, dword [ebp - 0xa]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5142c5
cmp dword [ebp - 0x18], esi
jne 0x5142c5
mov eax, dword [edi + 8]
add eax, eax
push ebx
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ac4b8
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.004ac4b8
mov esp, ebp
pop ebp
ret
Function at 0x88c10
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, ecx
mov dword [esp], 0x4e67c6a7
dec edx
test edx, edx
jl 0x88c40
inc edx
xor ecx, ecx
mov ebx, dword [esp]
shl ebx, 5
movzx edi, byte [eax + ecx]
add ebx, edi
mov edi, dword [esp]
shr edi, 2
add ebx, edi
xor dword [esp], ebx
inc ecx
dec edx
jne 0x88c25
mov ecx, esi
mov eax, esp
mov edx, 4
call fcn.0008677c
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x8c8d8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00084854
xor eax, eax
push ebp
push 0x8bd47
push dword fs:[eax]
mov dword fs:[eax], esp
or ebx, 0xffffffff
mov eax, dword [ebp - 4]
call fcn.00084664
test eax, eax
jle 0x8c92f
mov edx, 1
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + edx - 1]
mov esi, ebx
and esi, 0xff
xor ecx, esi
mov ecx, dword [ecx*4 + 0x958c8]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x8c90b
not ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x8bd4e
lea eax, [ebp - 4]
call fcn.000843e0
ret

Function at 0x8c958
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push ecx
mov dword [esp], eax
or eax, 0xffffffff
dec edx
test edx, edx
jl 0x8c98c
inc edx
xor ecx, ecx
mov ebx, dword [esp]
movzx ebx, byte [ebx + ecx]
mov esi, eax
and esi, 0xff
xor ebx, esi
mov ebx, dword [ebx*4 + 0x958c8]
shr eax, 8
xor ebx, eax
mov eax, ebx
inc ecx
dec edx
jne 0x8c969
not eax
pop edx
pop esi
pop ebx
ret

Function at 0x8c994
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push ecx
mov dword [esp], eax
or eax, 0xffffffff
dec edx
test edx, edx
jl 0x8c9c8
inc edx
xor ecx, ecx
mov ebx, dword [esp]
movzx ebx, byte [ebx + ecx]
mov esi, eax
and esi, 0xff
xor ebx, esi
mov ebx, dword [ebx*4 + 0x958c8]
shr eax, 8
xor ebx, eax
mov eax, ebx
inc ecx
dec edx
jne 0x8c9a5
not eax
pop edx
pop esi
pop ebx
ret
Function at 0x8ca70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00084854
xor eax, eax
push ebp
push 0x8bfbc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.000843e0
mov eax, dword [ebp - 4]
call fcn.00084664
mov edi, eax
test edi, edi
je 0x8cba6
mov eax, esi
shr eax, 0x18
mov byte [ebp - 0xc], al
mov eax, esi
shr eax, 0x10
mov byte [ebp - 0xb], al
mov eax, esi
shr eax, 8
mov byte [ebp - 0xa], al
mov eax, esi
mov byte [ebp - 9], al
dec ebx
cmp ebx, 0
jb 0x8cb6d
mov dword [ebp - 8], ebx
mov esi, edi
dec esi
test esi, esi
jbe 0x8cb08
mov ebx, 1
lea eax, [ebp - 4]
call fcn.000848b4
mov edx, dword [ebp - 4]
mov dl, byte [edx + ebx - 1]
xor dl, byte [ebp - 0xa]
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + ebx]
sub dl, cl
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x8cae6
lea eax, [ebp - 4]
call fcn.000848b4
mov edx, dword [ebp - 4]
mov dl, byte [edx + edi - 1]
mov cl, byte [ebp - 0xc]
sub dl, cl
mov byte [eax + edi - 1], dl
mov ebx, edi
cmp ebx, 2
jb 0x8cb4c
lea eax, [ebp - 4]
call fcn.000848b4
mov edx, dword [ebp - 4]
mov dl, byte [edx + ebx - 1]
xor dl, byte [ebp - 9]
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + ebx - 2]
sub dl, cl
mov byte [eax + ebx - 1], dl
dec ebx
cmp ebx, 1
jne 0x8cb27
lea eax, [ebp - 4]
call fcn.000848b4
mov edx, dword [ebp - 4]
mov dl, byte [edx]
mov cl, byte [ebp - 0xb]
sub dl, cl
mov byte [eax], dl
dec dword [ebp - 8]
cmp dword [ebp - 8], 0xffffffff
jne 0x8cada
lea eax, [ebp - 4]
call fcn.000848b4
mov ebx, edi
sub ebx, 4
mov edx, ebx
call fcn.0008c958
mov esi, eax
lea eax, [ebp - 4]
call fcn.000848b4
add eax, ebx
cmp esi, dword [eax]
jne 0x8cba6
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
call fcn.00084434
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.000848fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x8bfc3
lea eax, [ebp - 4]
call fcn.000843e0
ret

Function at 0x8cca8
Capabilities:
Parse pe header

Disassembly:
add esp, 0xfffffff8
xor edx, edx
mov ecx, eax
mov dword [esp], ecx
mov ecx, dword [ecx + 0x3c]
add ecx, eax
mov dword [esp + 4], ecx
mov eax, dword [esp]
cmp word [eax], 0x5a4d
jne 0x8cce9
mov eax, dword [esp + 4]
cmp dword [eax], 0x4550
jne 0x8cce9
mov eax, dword [esp + 4]
mov ax, word [eax + 0x16]
test ah, 0x20
je 0x8cce9
and ax, 2
cmp ax, 2
sete dl
mov eax, edx
pop ecx
pop edx
ret

Function at 0x8ccf0
Capabilities:
Parse pe header

Disassembly:
add esp, 0xfffffff8
xor edx, edx
mov ecx, eax
mov dword [esp], ecx
mov ecx, dword [ecx + 0x3c]
add ecx, eax
mov dword [esp + 4], ecx
mov eax, dword [esp]
cmp word [eax], 0x5a4d
jne 0x8cd41
mov eax, dword [esp + 4]
cmp dword [eax], 0x4550
jne 0x8cd41
mov eax, dword [esp + 4]
mov ax, word [eax + 0x16]
test ah, 0x20
je 0x8cd41
mov ecx, dword [esp + 4]
movzx ecx, word [ecx + 0x14]
cmp ecx, 0xe0
je 0x8cd41
and ax, 2
cmp ax, 2
sete dl
mov eax, edx
pop ecx
pop edx
ret
Function at 0x8cd04
Capabilities:
Parse pe header

Disassembly:
add esp, 0xfffffff8
xor edx, edx
mov ecx, eax
mov dword [esp], ecx
mov ecx, dword [ecx + 0x3c]
add ecx, eax
mov dword [esp + 4], ecx
mov eax, dword [esp]
cmp word [eax], 0x5a4d
jne 0x8cd41
mov eax, dword [esp + 4]
cmp dword [eax], 0x4550
jne 0x8cd41
mov eax, dword [esp + 4]
mov ax, word [eax + 0x16]
test ah, 0x20
je 0x8cd41
mov ecx, dword [esp + 4]
movzx ecx, word [ecx + 0x14]
cmp ecx, 0xe0
je 0x8cd41
and ax, 2
cmp ax, 2
sete dl
mov eax, edx
pop ecx
pop edx
ret

Function at 0x8cd48
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe4
mov dword [esp], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [esp]
call fcn.0008cca8
test al, al
je 0x8ce7c
mov eax, dword [esp]
call fcn.0008cc58
mov ebx, eax
test ebx, ebx
je 0x8ce7c
mov eax, dword [esp]
mov eax, dword [eax + 0x3c]
add eax, dword [esp]
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add eax, 0x18
mov edx, dword [esp + 8]
movzx edx, word [edx + 0x14]
add eax, edx
mov dword [esp + 0xc], eax
push 0x40
push 0x3000
push ebx
push 0
call fcn.00085780
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
je 0x8ce7c
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x14]
mov edx, dword [esp]
mov eax, dword [esp + 0x10]
call fcn.000890e0
mov eax, dword [esp + 8]
movzx edi, word [eax + 6]
dec edi
test edi, edi
jb 0x8ce74
inc edi
xor ebx, ebx
lea esi, [ebx + ebx*4]
mov eax, dword [esp + 0xc]
mov edx, dword [eax + esi*8 + 0xc]
mov eax, dword [esp + 0x10]
call fcn.0008cc0c
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
mov edx, dword [eax + esi*8 + 0x14]
mov eax, dword [esp]
call fcn.0008cc0c
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xc]
mov eax, dword [eax + esi*8 + 0x10]
test eax, eax
jne 0x8ce51
mov edx, dword [esp + 0xc]
mov edx, dword [edx + esi*8 + 0x24]
and edx, 0x40
cmp edx, 0x40
jne 0x8ce31
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x20]
jmp 0x8ce51
lea edx, [ebx + ebx*4]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + edx*8 + 0x24]
and edx, 0x80
cmp edx, 0x80
jne 0x8ce51
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x24]
mov ecx, eax
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
call fcn.000890e0
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
mov dword [eax + esi*8 + 8], edx
inc ebx
dec edi
jne 0x8cde0
mov eax, dword [esp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add esp, 0x1c
pop edi
pop esi
pop ebx
ret
Function at 0x8cd68
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe4
mov dword [esp], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [esp]
call fcn.0008cca8
test al, al
je 0x8ce7c
mov eax, dword [esp]
call fcn.0008cc58
mov ebx, eax
test ebx, ebx
je 0x8ce7c
mov eax, dword [esp]
mov eax, dword [eax + 0x3c]
add eax, dword [esp]
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add eax, 0x18
mov edx, dword [esp + 8]
movzx edx, word [edx + 0x14]
add eax, edx
mov dword [esp + 0xc], eax
push 0x40
push 0x3000
push ebx
push 0
call fcn.00085780
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
je 0x8ce7c
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x14]
mov edx, dword [esp]
mov eax, dword [esp + 0x10]
call fcn.000890e0
mov eax, dword [esp + 8]
movzx edi, word [eax + 6]
dec edi
test edi, edi
jb 0x8ce74
inc edi
xor ebx, ebx
lea esi, [ebx + ebx*4]
mov eax, dword [esp + 0xc]
mov edx, dword [eax + esi*8 + 0xc]
mov eax, dword [esp + 0x10]
call fcn.0008cc0c
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
mov edx, dword [eax + esi*8 + 0x14]
mov eax, dword [esp]
call fcn.0008cc0c
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xc]
mov eax, dword [eax + esi*8 + 0x10]
test eax, eax
jne 0x8ce51
mov edx, dword [esp + 0xc]
mov edx, dword [edx + esi*8 + 0x24]
and edx, 0x40
cmp edx, 0x40
jne 0x8ce31
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x20]
jmp 0x8ce51
lea edx, [ebx + ebx*4]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + edx*8 + 0x24]
and edx, 0x80
cmp edx, 0x80
jne 0x8ce51
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x24]
mov ecx, eax
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
call fcn.000890e0
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
mov dword [eax + esi*8 + 8], edx
inc ebx
dec edi
jne 0x8cde0
mov eax, dword [esp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add esp, 0x1c
pop edi
pop esi
pop ebx
ret