joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a8e64
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a8ea6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00403f60
mov eax, dword [ebp - 0x10]
call fcn.004a89cc
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x4a8d8f
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00404388
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004a95f0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4a8e64
xor eax, eax
push ebp
push 0x4a8e5d
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.004a8af8
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.004a8ed8
test al, al
je 0x4a8e3b
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00403fac
mov ebx, dword [ebp - 0x38]
dec ebx
test ebx, ebx
jl 0x4a8e3b
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404308
push eax
push esi
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x4a8e37
mov eax, dword [ebp - 0x14]
call fcn.00404308
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.0040407c
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.004a8d3c
inc esi
dec ebx
jne 0x4a8df0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a8e64
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004a8af8
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.00404308
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.004a8ae4
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a8ead
lea eax, [ebp - 0x3c]
call fcn.00403ec8
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00403eec
ret

Function at 0x4a8ed8
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.00402eec
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x573814]
cmp byte [edx + 8], 0
je 0x4a8f3c
mov edx, dword [0x5737fc]
cmp dword [edx], 2
jne 0x4a8f3c
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret
Function at 0x4a8f40
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4a8ff8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x40]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.004a8ed8
test al, al
je 0x4a8fda
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00403fac
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x4a8fda
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404308
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov eax, dword [ebp - 0xc]
call fcn.00404308
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.0040407c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x34]
inc esi
dec ebx
jne 0x4a8f93
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a8fff
lea eax, [ebp - 0x2c]
call fcn.00403ec8
lea eax, [ebp - 0xc]
call fcn.00403ec8
ret

Function at 0x4a9008
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4a90c0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x40]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.004a8ed8
test al, al
je 0x4a90a2
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00403fac
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x4a90a2
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404308
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumValueA
mov eax, dword [ebp - 0xc]
call fcn.00404308
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.0040407c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x34]
inc esi
dec ebx
jne 0x4a905b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a90c7
lea eax, [ebp - 0x2c]
call fcn.00403ec8
lea eax, [ebp - 0xc]
call fcn.00403ec8
ret
Function at 0x4a9568
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00404308
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4a95a4
push ebp
call fcn.004a94f8
pop ecx
mov eax, dword [ebp - 8]
call fcn.004a89e0
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, dword [ebp + 0xc]
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x4a9b48
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4a9c5f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, esi
call fcn.004a8af8
xor eax, eax
push ebp
push 0x4a9c3a
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004a8ed8
test al, al
je 0x4a9c1e
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004a9a28
pop ecx
mov ecx, dword [ebp - 0x20]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00403fac
mov ebx, dword [ebp - 0x24]
dec ebx
test ebx, ebx
jl 0x4a9c1e
inc ebx
xor edi, edi
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404308
push eax
push edi
push esi
call sub.advapi32.dll_RegEnumValueA
test eax, eax
jne 0x4a9c1a
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404308
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.0040407c
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004a9a28
pop ecx
inc edi
dec ebx
jne 0x4a9bcf
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a9c41
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x10]
call fcn.004a8af8
ret
Function at 0x4a9c70
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
xor ecx, ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a9ea6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 4]
call fcn.004a8af8
xor eax, eax
push ebp
push 0x4a9e81
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x44]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004a8ed8
test al, al
je 0x4a9e65
mov ecx, dword [ebp - 0x40]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00403fac
mov eax, dword [ebp - 0x44]
dec eax
test eax, eax
jl 0x4a9e65
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404308
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x4a9e59
mov eax, dword [ebp - 0x14]
call fcn.00404308
mov edx, eax
lea eax, [ebp - 0x48]
call fcn.0040407c
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004a95f0
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4a9e59
xor eax, eax
push ebp
push 0x4a9e52
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 8]
call fcn.004a8af8
xor eax, eax
push ebp
push 0x4a9e34
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
call fcn.00404308
mov edx, eax
lea eax, [ebp - 0x48]
call fcn.0040407c
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004a8afc
mov eax, dword [ebp - 0x14]
call fcn.00404308
mov edx, eax
lea eax, [ebp - 0x48]
call fcn.0040407c
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004a95f0
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x4a9e11
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.004a9b48
pop ecx
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.004a9c70
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a9e18
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
inc dword [ebp - 0xc]
dec dword [ebp - 0x28]
jne 0x4a9cf5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a9e88
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x18]
call fcn.004a8af8
ret
Function at 0x4aad0c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
test dl, dl
je 0x4aad26
add esp, 0xfffffff0
call fcn.00403564
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x4aaddf
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, ebx
call fcn.00403288
mov dl, 1
mov eax, dword [0x4140e8]
call fcn.00403288
mov esi, eax
mov dword [ebx + 0x32], esi
mov byte [esi + 0x19], 0
mov dl, 1
mov eax, esi
call fcn.00417e70
push 0xa
push 0x4aae00
mov eax, dword [0x57615c]
push eax
call sub.kernel32.dll_FindResourceA
mov esi, eax
test esi, esi
je 0x4aadc9
push esi
mov eax, dword [0x57615c]
push eax
call sub.kernel32.dll_LoadResource
mov edi, eax
push esi
mov eax, dword [0x57615c]
push eax
call sub.kernel32.dll_SizeofResource
test eax, eax
je 0x4aadc9
push edi
call sub.kernel32.dll_LockResource
mov esi, eax
mov dl, 1
mov eax, dword [0x4140e8]
call fcn.00403288
mov dword [ebx + 0x2e], eax
lea eax, [ebp - 8]
mov edx, esi
call fcn.0040407c
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x2e]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, edi
call fcn.0040acb8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aade6
lea eax, [ebp - 8]
call fcn.00403ec8
ret

Function at 0x4ac044
Capabilities:
Check for software breakpoints
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov edi, edx
xor edx, edx
mov ecx, dword [edi]
sub ecx, 3
test ecx, ecx
jl 0x4ac06e
inc ecx
xor esi, esi
mov ebx, dword [eax + 0x224]
add ebx, esi
mov ebp, dword [eax + 0x220]
xor dl, byte [ebp + ebx]
inc esi
dec ecx
jne 0x4ac058
mov ecx, dword [edi]
add ecx, dword [eax + 0x224]
mov ebx, dword [eax + 0x220]
cmp dl, byte [ebx + ecx - 2]
sete dl
test dl, dl
je 0x4ac095
mov edx, dword [eax + 0x220]
cmp byte [edx + ecx - 1], 0xcc
sete dl
test dl, dl
je 0x4ac0a3
mov ecx, dword [edi]
add dword [eax + 0x224], ecx
dec dword [edi]
mov eax, edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4af7f8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
xor eax, eax
push ebp
push 0x4af89d
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
push ebp
push 0x4af857
push dword fs:[edi]
mov dword fs:[edi], esp
mov esi, edx
mov byte [ebp - 1], 0
mov eax, ecx
sub eax, 2
sub eax, 2
jl 0x4af842
inc eax
mov edx, 2
mov bl, byte [esi + edx]
xor byte [ebp - 1], bl
inc edx
dec eax
jne 0x4af838
mov al, byte [ebp - 1]
mov byte [esi + ecx - 1], al
mov byte [esi + ecx], 0xcc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4af887
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4af8a4
lea eax, [ebp - 8]
call fcn.00403ec8
ret

Function at 0x4b0f04
Capabilities:
Check for software breakpoints
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov edi, edx
xor edx, edx
mov ecx, dword [edi]
sub ecx, 3
test ecx, ecx
jl 0x4b0f2e
inc ecx
xor esi, esi
mov ebx, dword [eax + 0x267]
add ebx, esi
mov ebp, dword [eax + 0x263]
xor dl, byte [ebp + ebx]
inc esi
dec ecx
jne 0x4b0f18
mov ecx, dword [edi]
add ecx, dword [eax + 0x267]
mov ebx, dword [eax + 0x263]
cmp dl, byte [ebx + ecx - 2]
sete dl
test dl, dl
je 0x4b0f55
mov edx, dword [eax + 0x263]
cmp byte [edx + ecx - 1], 0xcc
sete dl
test dl, dl
je 0x4b0f63
mov ecx, dword [edi]
add dword [eax + 0x267], ecx
dec dword [edi]
mov eax, edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4b4ba4
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404308
push eax
call sub.kernel32.dll_GetFileAttributesA
inc eax
setne al
pop ebx
ret

Function at 0x4c850c
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
add esp, 0xfffffff4
mov esi, eax
xor ebx, ebx
lea eax, [esi + 0xc]
push eax
lea eax, [esi + 0x11f]
push eax
mov eax, dword [esi + 0x11f]
push eax
lea eax, [esi + 0x20]
push eax
mov eax, dword [esi + 4]
push eax
call sub.kernel32.dll_WriteFile_1
neg eax
sbb eax, eax
neg eax
mov byte [esp + 8], al
call fcn.0040e660
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, dword [esi + 0x127]
call fcn.004c8280
fstp qword [esp]
wait
jmp 0x4c856f
mov eax, esi
call fcn.004c8634
neg eax
sbb ebx, ebx
neg ebx
push 0xa
call sub.kernel32.dll_Sleep
test bl, bl
jne 0x4c8580
call fcn.0040e660
fcomp qword [esp]
fnstsw ax
sahf
jb 0x4c855b
cmp byte [esp + 8], 0
je 0x4c858e
push 0xa
call sub.kernel32.dll_Sleep
mov eax, esi
call fcn.004c864c
mov eax, ebx
add esp, 0xc
pop esi
pop ebx
ret
Function at 0x4c85a0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
add esp, 0xfffffff4
mov esi, eax
xor ebx, ebx
mov eax, esi
call fcn.004c864c
lea eax, [esi + 0xc]
push eax
lea eax, [esi + 0x11f]
push eax
mov eax, dword [esi + 0x11f]
push eax
lea eax, [esi + 0x20]
push eax
mov eax, dword [esi + 4]
push eax
call sub.kernel32.dll_ReadFile_1
neg eax
sbb eax, eax
neg eax
mov byte [esp + 8], al
call fcn.0040e660
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, dword [esi + 0x127]
call fcn.004c8280
fstp qword [esp]
wait
jmp 0x4c860a
mov eax, esi
call fcn.004c8634
neg eax
sbb ebx, ebx
neg ebx
push 0xa
call sub.kernel32.dll_Sleep
test bl, bl
jne 0x4c861b
call fcn.0040e660
fcomp qword [esp]
fnstsw ax
sahf
jb 0x4c85f6
cmp byte [esp + 8], 0
je 0x4c8629
push 0xa
call sub.kernel32.dll_Sleep
mov eax, ebx
add esp, 0xc
pop esi
pop ebx
ret

Function at 0x557758
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov esi, edx
mov dword [esp], eax
lea edi, [esp + 6]
lea edx, [esp + 4]
mov eax, dword [esi]
mov ecx, 2
call fcn.00532dbc
mov byte [edi], 0
cmp word [esp + 4], 1
jbe 0x5578d7
mov edx, edi
mov eax, dword [esi]
mov ecx, 1
call fcn.00532dbc
mov bl, byte [edi]
and bl, 0xdc
mov eax, ebx
add al, 0x80
cmp al, 0x57
ja 0x5577ac
and eax, 0x7f
bt dword [0x5578e8], eax
jae 0x5578b7
lea edx, [esp + 7]
mov eax, dword [esi]
mov ecx, 1
call fcn.00532dbc
lea edx, [esp + 0xa]
mov eax, dword [esi]
mov ecx, 1
call fcn.00532dbc
mov al, byte [edi]
and al, 3
and eax, 0xff
shl eax, 8
xor edx, edx
mov dl, byte [esp + 7]
or ax, dx
mov word [esp + 8], ax
xor eax, eax
mov dword [esp + 0xc], eax
test byte [esp + 0xa], 0x80
jne 0x557824
mov al, byte [esp + 0xa]
and al, 0x70
and eax, 0xff
shr eax, 4
add eax, 0xfffffffc
sub eax, 3
jb 0x557824
lea edx, [esp + 0xc]
mov eax, dword [esi]
mov ecx, 1
call fcn.00532dbc
dec word [esp + 4]
sub word [esp + 4], 3
mov byte [edi], 0
mov edx, edi
mov eax, dword [esi]
mov ecx, 1
call fcn.00532dbc
dec word [esp + 4]
test byte [edi], 0x80
je 0x55786f
mov al, byte [edi]
xor al, 0x80
mov ebp, eax
and ebp, 0xff
shl ebp, 8
mov edx, edi
mov eax, dword [esi]
mov ecx, 1
call fcn.00532dbc
dec word [esp + 4]
xor eax, eax
mov al, byte [edi]
or ebp, eax
jmp 0x557872
movzx ebp, byte [edi]
xor eax, eax
mov al, byte [esp + 0xa]
push eax
mov eax, dword [esp + 0x10]
push eax
push ebp
mov eax, dword [esi]
push eax
movzx ecx, word [esp + 0x18]
xor edx, edx
mov dl, bl
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x15]
call fcn.0053159c
jmp 0x5578cb
mov edx, edi
mov eax, dword [esi]
mov ecx, 1
call fcn.00532dbc
and byte [edi], 0xdc
dec word [esp + 4]
cmp word [esp + 4], 1
je 0x5578cb
mov al, byte [edi]
add al, 0x80
cmp al, 0x57
ja 0x5578c9
and eax, 0x7f
bt dword [0x5578e8], eax
jae 0x557899
cmp word [esp + 4], 1
ja 0x557787
mov eax, dword [esi]
call fcn.00532dd8
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x55b6d8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea4
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x15c], eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x55b8d0
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [0x5735a0]
mov eax, dword [eax]
call fcn.0043367c
jmp 0x55b724
mov eax, dword [ebp - 8]
call fcn.00404144
mov edx, eax
lea eax, [ebp - 8]
mov ecx, 1
call fcn.00404388
mov eax, dword [ebp - 8]
call fcn.00404144
mov edx, dword [ebp - 8]
mov al, byte [edx + eax - 1]
sub al, 0x2f
je 0x55b73b
sub al, 0x2d
jne 0x55b70d
mov edx, 0x55b8e8
mov eax, dword [0x572dc0]
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea edx, [ebp - 0x15c]
mov eax, dword [0x572dc0]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x15c]
call fcn.00404144
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
and eax, 0x800001ff
jns 0x55b779
dec eax
or eax, 0xfffffe00
inc eax
test eax, eax
je 0x55b793
mov eax, dword [ebp - 4]
test eax, eax
jns 0x55b789
add eax, 0x1ff
sar eax, 9
inc eax
shl eax, 9
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00402870
mov esi, eax
call fcn.00402c5c
mov eax, dword [ebp - 4]
dec eax
test eax, eax
jl 0x55b7c3
inc eax
mov dword [ebp - 0xc], eax
xor ebx, ebx
mov eax, pe_nt_image_headers32
call fcn.00402f0c
mov byte [esi + ebx], al
inc ebx
dec dword [ebp - 0xc]
jne 0x55b7b0
lea edx, [ebp - 0x15c]
mov eax, dword [0x572dc0]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x15c]
call fcn.00404144
push eax
lea edx, [ebp - 0x15c]
mov eax, dword [0x572dc0]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x15c]
call fcn.00404308
mov edx, esi
pop ecx
call fcn.00402af8
lea edx, [ebp - 0x15c]
mov eax, dword [0x572dc0]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x15c]
call fcn.00404144
mov byte [esi + eax], 0
mov eax, dword [ebp - 4]
test eax, eax
jns 0x55b82d
add eax, 0x1ff
sar eax, 9
dec eax
test eax, eax
jl 0x55b85e
inc eax
mov dword [ebp - 0xc], eax
xor ebx, ebx
xor eax, eax
mov edx, ebx
shl edx, 9
add edx, eax
mov ecx, dword [0x572dc4]
mov cl, byte [ecx + eax]
xor byte [esi + edx], cl
inc eax
cmp eax, 0x200
jne 0x55b83d
inc ebx
dec dword [ebp - 0xc]
jne 0x55b83b
lea eax, [ebp - 0x15c]
mov ecx, 0x55b900
mov edx, dword [ebp - 8]
call fcn.00404190
mov edx, dword [ebp - 0x15c]
lea eax, [ebp - 0x158]
call fcn.004060fa
mov edx, 1
lea eax, [ebp - 0x158]
call fcn.00406448
push 0
mov edx, esi
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x158]
call fcn.00406200
lea eax, [ebp - 0x158]
call fcn.00406264
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55b8d7
lea eax, [ebp - 0x15c]
call fcn.00403ec8
lea eax, [ebp - 8]
call fcn.00403ec8
ret
Function at 0x55b910
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea4
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x15c], eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x55bac4
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4140e8]
call fcn.00403288
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [0x5735a0]
mov eax, dword [eax]
call fcn.0043367c
jmp 0x55b96b
mov eax, dword [ebp - 8]
call fcn.00404144
mov edx, eax
lea eax, [ebp - 8]
mov ecx, 1
call fcn.00404388
mov eax, dword [ebp - 8]
call fcn.00404144
mov edx, dword [ebp - 8]
mov al, byte [edx + eax - 1]
sub al, 0x2f
je 0x55b982
sub al, 0x2d
jne 0x55b954
lea eax, [ebp - 0x15c]
mov ecx, 0x55badc
mov edx, dword [ebp - 8]
call fcn.00404190
mov eax, dword [ebp - 0x15c]
call fcn.0040c7c0
xor al, 1
test al, al
jne 0x55ba92
lea eax, [ebp - 0x15c]
mov ecx, 0x55badc
mov edx, dword [ebp - 8]
call fcn.00404190
mov edx, dword [ebp - 0x15c]
lea eax, [ebp - 0x158]
call fcn.004060fa
mov edx, 1
lea eax, [ebp - 0x158]
call fcn.00406431
lea eax, [ebp - 0x158]
call fcn.004062a0
mov ebx, eax
mov eax, ebx
call fcn.00402870
mov esi, eax
push 0
mov edx, esi
mov ecx, ebx
lea eax, [ebp - 0x158]
call fcn.0040619c
lea eax, [ebp - 0x158]
call fcn.00406264
test ebx, ebx
jns 0x55ba1a
add ebx, 0x1ff
sar ebx, 9
dec ebx
test ebx, ebx
jl 0x55ba4b
inc ebx
mov dword [ebp - 0xc], ebx
xor edx, edx
xor eax, eax
mov ecx, edx
shl ecx, 9
add ecx, eax
mov ebx, dword [0x572dc4]
mov bl, byte [ebx + eax]
xor byte [esi + ecx], bl
inc eax
cmp eax, 0x200
jne 0x55ba2a
inc edx
dec dword [ebp - 0xc]
jne 0x55ba28
lea eax, [ebp - 0x15c]
mov edx, esi
call fcn.0040407c
mov edx, dword [ebp - 0x15c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, eax
dec edx
lea ecx, [ebp - 0x15c]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x15c]
mov edx, 0x55baf4
call fcn.00404254
setne al
test al, al
je 0x55baa3
mov eax, dword [ebp - 4]
call fcn.004032b0
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55bacb
lea eax, [ebp - 0x15c]
call fcn.00403ec8
lea eax, [ebp - 8]
call fcn.00403ec8
ret

Function at 0x568c50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x568fc8
push dword fs:[eax]

Function at 0x56bd44
Capabilities:
Check mutex on windows

Disassembly:
push pe_nt_image_headers32
push 0x5785b0
mov eax, dword [0x573384]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
mov edx, eax
dec edx
test edx, edx
jl 0x56bd74
inc edx
mov eax, 0x5785b0
cmp byte [eax], 0x5c
jne 0x56bd70
mov byte [eax], 0x2f
inc eax
dec edx
jne 0x56bd68
push 0x5785b0
push 0
push 0
call sub.kernel32.dll_CreateMutexA
mov dword [0x5785ac], eax
cmp dword [0x5785ac], 0
je 0x56bd9f
call sub.kernel32.dll_GetLastError_1
cmp eax, 0xb7
je 0x56bd9f
xor eax, eax
ret
mov al, 1
ret