joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50f880
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
cmp byte [eax + 0x129], 0
je 0x50f8ae
mov ecx, dword [eax + 0x10]
dec ecx
je 0x50f97a
dec ecx
je 0x50f935
dec ecx
je 0x50f911
dec ecx
je 0x50f8d6
dec ecx
je 0x50f8b5
xor al, al
jmp 0x50f996
mov ecx, dword [ebp + 0xc]
imul ecx, dword [ebp + 0x10]
add dword [eax + 0x1c], ecx
mov edi, dword [edi + 4]
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
cmp eax, ecx
ja 0x50f8ce
mov eax, ecx
mov dword [edi + 0x20], eax
jmp 0x50f976
mov esi, dword [ebp + 0xc]
and dword [ebp - 4], 0
imul esi, dword [ebp + 0x10]
lea ecx, [ebp - 4]
push 0
push ecx
push esi
push dword [ebp + 8]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
cmp dword [ebp - 4], esi
jne 0x50f90a
test al, al
je 0x50f90a
xor eax, eax
inc eax
jmp 0x50f996
xor eax, eax
jmp 0x50f996
mov ecx, dword [eax + 0x134]
test ecx, ecx
je 0x50f8ae
push dword [eax + 0x14c]
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call ecx
test eax, eax
setne al
jmp 0x50f996
mov esi, dword [ebp + 0xc]
mov ecx, dword [eax + 0x1c]
imul esi, dword [ebp + 0x10]
lea edx, [ecx + esi]
cmp edx, dword [eax + 0x18]
jae 0x50f8ae
mov eax, dword [eax + 0x14]
push esi
push dword [ebp + 8]
add eax, ecx
push eax
call dword [0x6a1344]
mov eax, dword [edi + 4]
add esp, 0xc
add dword [eax + 0x1c], esi
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
cmp ecx, edx
ja 0x50f973
mov ecx, edx
mov dword [eax + 0x20], ecx
mov al, 1
jmp 0x50f996
push dword [eax + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005d2a46
sub eax, dword [ebp + 0x10]
add esp, 0x10
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
leave
ret 0xc
Function at 0x519a17
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x140
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call fcn.0052f361
add esp, 0x14
test eax, eax
je 0x519a53
push 3
pop ecx
jmp 0x519a56
mov ecx, dword [ebp + 0x10]
movzx eax, cx
cmp eax, ebx
jl 0x519b5c
xor edx, edx
inc edx
cmp eax, edx
jle 0x519b65
cmp eax, 3
jne 0x519b5c
cmp dword [ebp - 4], ebx
je 0x519b53
mov esi, dword [ebp - 0xc]
cmp esi, ebx
je 0x519b53
mov edi, dword [ebp - 8]
cmp edi, ebx
je 0x519b53
mov cl, byte [ebp + 0x14]
mov dword [ebp + 8], ebx
mov ebx, edx
shl ebx, cl
mov ecx, ebx
test ecx, ecx
jle 0x519ad5
mov edx, dword [ebp - 4]
lea eax, [esi + ecx*2]
sub edx, esi
sub edi, esi
dec ecx
dec eax
dec eax
cmp word [edx + eax], 0x100
jae 0x519ace
cmp word [eax], 0x100
jae 0x519ace
cmp word [edi + eax], 0x100
jae 0x519ace
test ecx, ecx
jg 0x519aae
jmp 0x519ad5
mov dword [ebp + 8], 1
test ebx, ebx
jle 0x519be3
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp - 4]
sub edi, esi
mov dword [ebp + 0x14], ebx
lea ecx, [eax + 1]
mov eax, dword [ebp - 8]
sub eax, esi
mov dword [ebp + 0xc], eax
cmp dword [ebp + 8], 0
je 0x519b34
movzx eax, word [esi + edi]
imul eax, eax, 0xff
cdq
mov ebx, 0xffff
idiv ebx
mov byte [ecx + 1], al
movzx eax, word [esi]
imul eax, eax, 0xff
cdq
idiv ebx
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
movzx eax, word [esi + eax]
imul eax, eax, 0xff
cdq
idiv ebx
mov byte [ecx - 1], al
mov eax, dword [ebp + 0xc]
jmp 0x519b44
mov dl, byte [esi + edi]
mov byte [ecx + 1], dl
mov dl, byte [esi]
mov byte [ecx], dl
mov dl, byte [esi + eax]
mov byte [ecx - 1], dl
inc esi
add ecx, 4
inc esi
dec dword [ebp + 0x14]
jne 0x519af3
jmp 0x519be3
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x14
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp word [ebp + 0x14], dx
mov eax, dword [ebp + 0xc]
jne 0x519ba5
cmp cx, dx
jne 0x519b8c
and byte [eax], 0
and byte [eax + 1], 0
and byte [eax + 2], 0
or byte [eax + 4], 0xff
or byte [eax + 5], 0xff
or byte [eax + 6], 0xff
jmp 0x519be3
or byte [eax], 0xff
or byte [eax + 1], 0xff
or byte [eax + 2], 0xff
and byte [eax + 4], 0
and byte [eax + 5], 0
and byte [eax + 6], 0
jmp 0x519be3
cmp cx, dx
jne 0x519bc5
xor ecx, ecx
add eax, 2
mov byte [eax - 2], cl
mov byte [eax - 1], cl
mov byte [eax], cl
inc ecx
add eax, 4
cmp ecx, 0x100
jl 0x519baf
jmp 0x519be3
xor edx, edx
add eax, 2
or cl, 0xff
sub cl, dl
inc edx
mov byte [eax - 2], cl
mov byte [eax - 1], cl
mov byte [eax], cl
add eax, 4
cmp edx, 0x100
jl 0x519bca
mov al, 1
jmp 0x519b5e
Function at 0x51f42c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
cmp dword [ebp + 8], edx
jne 0x51f43d
xor eax, eax
jmp 0x51f52a
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
imul esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
add esi, dword [ebp + 8]
push edi
mov edi, ebx
push 8
sub eax, ebx
and edi, 7
pop ecx
inc eax
sub ecx, edi
cmp ecx, eax
mov dword [ebp + 8], ecx
jb 0x51f467
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 8
jne 0x51f470
mov dword [ebp + 8], edx
mov ecx, dword [ebp + 0x18]
and ecx, 7
inc ecx
cmp ecx, eax
mov dword [ebp + 0xc], ecx
jb 0x51f481
mov dword [ebp + 0xc], eax
mov ecx, ebx
xor ecx, dword [ebp + 0x18]
test ecx, 0xfffffff8
jne 0x51f491
mov dword [ebp + 0xc], edx
mov ecx, dword [ebp + 8]
add ecx, ebx
cmp ebx, ecx
mov dword [ebp + 0x10], ecx
jae 0x51f4c5
mov edi, ebx
mov ecx, ebx
not edi
shr ecx, 3
and edi, 7
add ecx, esi
cmp dword [ebp + 0x1c], 0
mov dl, byte [edi + 0x6a1398]
je 0x51f4bb
or byte [ecx], dl
jmp 0x51f4bf
not dl
and byte [ecx], dl
inc ebx
cmp ebx, dword [ebp + 0x10]
jb 0x51f49d
xor edi, edi
cmp eax, 8
jbe 0x51f4f7
sub eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
shr eax, 3
mov edi, eax
je 0x51f4f7
mov eax, dword [ebp + 0x1c]
push edi
neg eax
sbb eax, eax
and eax, 0xff
push eax
mov eax, ebx
shr eax, 3
add eax, esi
push eax
call fcn.005d2100
add esp, 0xc
lea edx, [ebx + edi*8]
jmp 0x51f51f
mov ecx, edx
mov eax, edx
not ecx
shr eax, 3
and ecx, 7
add eax, esi
cmp dword [ebp + 0x1c], 0
mov cl, byte [ecx + 0x6a1398]
je 0x51f51a
or byte [eax], cl
jmp 0x51f51e
not cl
and byte [eax], cl
inc edx
cmp edx, dword [ebp + 0x18]
jb 0x51f4fc
xor eax, eax
pop edi
pop esi
inc eax
pop ebx
pop ebp
ret 0x18

Function at 0x52cc8f
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, 0x120
cmp dword [esp + 0x10], esi
mov eax, dword [edi]
jae 0x52ccb3
push eax
call fcn.0053dcb0
push 2
call fcn.0053dc40
pop ecx
mov dword [edi], eax
pop ecx
push esi
push 0
push eax
call fcn.005d2100
add esp, 0xc
pop edi
pop esi
ret
Function at 0x53b76e
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x53b79b
push esi
call fcn.00539707
cmp byte [esi + 0x40], 0
pop ecx
je 0x53b794
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x53b80a
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x53b7ff
mov eax, dword [esi + 8]
test eax, eax
je 0x53b7bc
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x190]
push esi
call dword [eax]
test eax, eax
pop ecx
je 0x53b7fb
cmp eax, 2
je 0x53b7ff
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x53b7b1
cmp eax, 3
je 0x53b7e0
cmp eax, 1
jne 0x53b7b1
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x53b7b1
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x53b7b1
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
jmp 0x53b828
cmp eax, 0xcc
je 0x53b828
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x15
mov eax, dword [esi]
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
call dword [eax]
pop ecx
push esi
call fcn.0053b831
pop ecx
pop esi
ret

Function at 0x541e9e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [esp + 8], 0
jne 0x541ea8
xor eax, eax
ret
jmp fcn.00541ead
Function at 0x54c426
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x2c]
mov ebx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x2c]
sub ebx, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
lea ecx, [edi + ecx - 0x106]
sub ebx, eax
cmp eax, ecx
jb 0x54c4ae
mov eax, dword [esi + 0x38]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.005d1dc0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], edi
sub dword [esi + 0x6c], edi
add esp, 0xc
sub dword [esi + 0x5c], edi
mov dword [ebp + 8], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp + 8]
mov word [eax], cx
jne 0x54c471
mov eax, dword [esi + 0x40]
mov dword [ebp + 8], edi
lea eax, [eax + edi*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp + 8]
mov word [eax], cx
jne 0x54c493
add ebx, edi
mov eax, dword [esi]
cmp dword [eax + 4], 0
je 0x54c509
mov ecx, dword [esi + 0x74]
push ebx
add ecx, dword [esi + 0x6c]
add ecx, dword [esi + 0x38]
push ecx
push eax
call fcn.0054c50e
add dword [esi + 0x74], eax
mov ebx, dword [esi + 0x74]
add esp, 0xc
cmp ebx, 3
jb 0x54c4f5
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edx, [eax + ecx]
mov ecx, dword [esi + 0x58]
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp ebx, 0x106
jae 0x54c509
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x54c432
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x569f00
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x569f20
mov edx, dword [esp + 8]
push 1
mov dword [ecx + 0x44], edx
mov eax, dword [eax + 0x58]
add eax, 4
push eax
call fcn.005d3088
mov ecx, dword [eax + 0x10]
push eax
call dword [ecx + 0x28]
add esp, 4
push 1
call fcn.005d1ad6
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x56a1f0
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [ebx]
mov ebp, ebx
push edi
mov ecx, dword [esi + 0x1c]
sub ebp, ecx
cmp eax, 6
je 0x56a216
push ebx
push esi
call fcn.0056a500
add esp, 8
mov ebx, eax
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x24]
add eax, 0x18
cmp eax, ecx
jne 0x56a22c
push esi
call fcn.0056a370
add esp, 4
mov eax, dword [ebx + 8]
mov cl, byte [eax + 6]
test cl, cl
jne 0x56a2e8
mov edi, dword [eax + 0xc]
mov al, byte [edi + 0x46]
test al, al
je 0x56a257
xor ecx, ecx
add ebx, 0x10
mov cl, byte [edi + 0x45]
push ebx
push ecx
push esi
call fcn.0056a3c0
add esp, 0xc
mov edx, dword [esi + 0x18]
mov ecx, dword [esi + 8]
xor eax, eax
sub edx, ecx
mov al, byte [edi + 0x47]
mov ecx, eax
shl ecx, 4
cmp edx, ecx
jg 0x56a277
push eax
push esi
call fcn.0056a0f0
add esp, 8
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x1c]
add eax, 0x18
lea ecx, [edx + ebp + 0x10]
mov dword [esi + 0x14], eax
mov dword [eax], ecx
mov edx, dword [esi + 0x14]
mov ecx, dword [edx]
xor edx, edx
mov dword [esi + 0xc], ecx
mov dl, byte [edi + 0x47]
shl edx, 4
add edx, ecx
mov dword [eax + 4], edx
mov ecx, dword [edi + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [eax + 4]
mov dword [eax + 0x14], 0
mov dword [eax + 8], 8
mov edx, dword [esi + 8]
cmp edx, ecx
jae 0x56a2db
mov edx, 0x10
mov ecx, dword [esi + 8]
mov dword [ecx], 0
mov ebx, dword [esi + 8]
add ebx, edx
mov dword [esi + 8], ebx
mov edi, dword [eax + 4]
mov ecx, ebx
cmp ecx, edi
jb 0x56a2c1
mov edx, dword [eax + 4]
pop edi
mov dword [esi + 8], edx
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 8]
sub eax, edx
cmp eax, 0x140
jg 0x56a302
push 0x14
push esi
call fcn.0056a0f0
add esp, 8
mov edi, dword [esi + 0x14]
mov ecx, dword [esi + 0x1c]
add edi, 0x18
mov eax, edi
lea edx, [ecx + ebp + 0x10]
mov dword [esi + 0x14], edi
mov dword [eax], edx
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx]
mov ecx, dword [esi + 8]
add ecx, 0x140
mov dword [esi + 0xc], edx
mov dword [eax + 4], ecx
mov ecx, 1
mov dword [eax + 8], ecx
mov al, byte [esi + 0x30]
test cl, al
je 0x56a346
push 0xffffffffffffffff
push 0
push esi
call fcn.0056a120
add esp, 0xc
mov edx, dword [esi + 0xc]
push esi
mov eax, dword [edx - 8]
call dword [eax + 0xc]
add esp, 4
shl eax, 4
mov ecx, eax
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret
Function at 0x56ae10
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov eax, dword [esi + 0x1c]
push eax
push esi
call fcn.0056dc80
mov edi, dword [esp + 0x14]
push esi
push edi
call fcn.00569c50
push esi
push edi
call fcn.00569c30
add esp, 0x18
pop edi
pop esi
ret
mov eax, dword [esp + 8]
xor ecx, ecx
mov cl, byte [eax + 4]
add ecx, 0xfffffffc
cmp ecx, 6
ja case.default.0x56ae21
jmp dword [ecx*4 + 0x56ae90]
mov dword [esp + 8], eax
jmp 0x56dd30
mov dword [esp + 8], eax
jmp 0x56ddd0
mov edx, dword [esp + 4]
push 0
push 0x20
push eax
push edx
call fcn.0056eeb0
add esp, 0x10
ret
mov dword [esp + 8], eax
jmp 0x56e270
mov dword [esp + 8], eax
jmp 0x569c00
mov edx, dword [eax + 0xc]
push 0
add edx, 0x11
push edx
push eax
mov eax, dword [esp + 0x10]
push eax
call fcn.0056eeb0
add esp, 0x10
ret
mov ecx, dword [eax + 0xc]
mov edx, dword [esp + 4]
add ecx, 0x10
push 0
push ecx
push eax
push edx
call fcn.0056eeb0
add esp, 0x10
ret
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0xc]
shl eax, 2
push 0
push eax
push ecx
push edi
call fcn.0056eeb0
mov edx, dword [esi + 0x34]
mov eax, dword [esi + 0x10]
shl edx, 2
push 0
push edx
push eax
push edi
call fcn.0056eeb0
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 8]
shl ecx, 4
push 0
push ecx
push edx
push edi
call fcn.0056eeb0
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x14]
shl eax, 2
push 0
push eax
push ecx
push edi
call fcn.0056eeb0
mov eax, dword [esi + 0x38]
add esp, 0x40
lea edx, [eax + eax*2]
mov eax, dword [esi + 0x18]
shl edx, 2
push 0
push edx
push eax
push edi
call fcn.0056eeb0
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x1c]
shl ecx, 2
push 0
push ecx
push edx
push edi
call fcn.0056eeb0
push 0
push 0x48
push esi
push edi
call fcn.0056eeb0
add esp, 0x30
pop edi
pop esi
ret
mov ecx, dword [esp + 8]
mov al, byte [ecx + 6]
test al, al
je 0x56ddf6
xor eax, eax
push 0
mov al, byte [ecx + 7]
inc eax
shl eax, 4
push eax
push ecx
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0056eeb0
add esp, 0x10
ret
xor eax, eax
push 0
mov al, byte [ecx + 7]
lea eax, [eax*4 + 0x24]
push eax
push ecx
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0056eeb0
add esp, 0x10
ret
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
mov cl, byte [esi + 7]
test cl, cl
je 0x56e29e
mov eax, 1
push 0
shl eax, cl
mov ecx, dword [esi + 0x10]
lea eax, [eax + eax*4]
shl eax, 3
push eax
push ecx
push edi
call fcn.0056eeb0
add esp, 0x10
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0xc]
shl edx, 4
push 0
push edx
push eax
push edi
call fcn.0056eeb0
push 0
push 0x20
push esi
push edi
call fcn.0056eeb0
add esp, 0x20
pop edi
pop esi
ret
Function at 0x56b3e0
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov al, byte [edi + 6]
test al, al
je 0x56b42d
mov al, byte [edi + 7]
xor ebp, ebp
test al, al
jbe 0x56b49f
mov ebx, dword [esp + 0x14]
lea esi, [edi + 0x18]
cmp dword [esi - 8], 4
jl 0x56b41b
mov eax, dword [esi]
test byte [eax + 5], 0x11
jne 0x56b41b
push eax
push ebx
call fcn.0056b090
add esp, 8
xor eax, eax
inc ebp
mov al, byte [edi + 7]
add esi, 0x10
cmp ebp, eax
jl 0x56b403
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [edi + 0x18]
test byte [eax + 5], 0x11
jne 0x56b444
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.0056b090
add esp, 8
mov eax, dword [edi + 0xc]
test byte [eax + 5], 0x11
jne 0x56b45b
mov edx, dword [esp + 0x14]
push eax
push edx
call fcn.0056b090
add esp, 8
mov al, byte [edi + 7]
xor ebx, ebx
test al, al
jbe 0x56b49f
lea ebp, [edi + 0x20]
mov esi, dword [ebp]
mov al, byte [esi + 5]
test al, al
jne 0x56b492
cmp dword [esi + 0x10], 4
jl 0x56b48e
mov eax, dword [esi + 0x18]
test byte [eax + 5], 0x11
jne 0x56b48e
push eax
mov eax, dword [esp + 0x18]
push eax
call fcn.0056b090
add esp, 8
mov byte [esi + 5], 1
xor ecx, ecx
inc ebx
mov cl, byte [edi + 7]
add ebp, 4
cmp ebx, ecx
jl 0x56b467
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x56da30
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov eax, ebp
push esi
shr eax, 5
inc eax
push edi
cmp ebp, eax
mov edx, ebp
mov esi, ebp
jb 0x56da66
xor ecx, ecx
mov edi, edx
mov cl, byte [ebx + esi - 1]
sub esi, eax
shl edi, 5
add ecx, edi
mov edi, edx
shr edi, 2
add ecx, edi
xor edx, ecx
cmp esi, eax
jae 0x56da4a
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 8]
mov eax, dword [eax]
dec ecx
and ecx, edx
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x56da98
cmp dword [eax + 0xc], ebp
jne 0x56da92
mov esi, ebx
mov ecx, ebp
lea edi, [eax + 0x10]
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x56daa8
mov ebx, dword [esp + 0x18]
mov eax, dword [eax]
test eax, eax
jne 0x56da7c
mov ecx, dword [esp + 0x14]
push edx
push ebp
push ebx
push ecx
call fcn.0056dab0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x57baa8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0x10]
push edi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
mov eax, dword [ebp + 0x14]
cmp eax, 0xffffffff
je 0x57bae6
test eax, eax
je 0x57bae2
cmp eax, 2
je 0x57bade
cmp eax, 3
jne 0x57baef
push 0xf
jmp 0x57bae8
push 2
jmp 0x57bae8
push 1
jmp 0x57bae8
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, edi
pop edi
pop ebp
ret

Function at 0x57ccbb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
xor eax, eax
push ebx
cmp byte [0x6bab6c], al
push esi
push edi
jne 0x57cea1
push 8
mov esi, 0x6bab4c
xor ebx, ebx
pop ecx
cmp byte [ebp + 8], bl
mov edi, esi
rep stosd dword es:[edi], eax
mov dword [0x6bab84], ebx
jne 0x57cd77
call fcn.0057cf1d
test al, al
je 0x57cd77
mov dword [0x6bab74], 0x57d296
mov dword [0x6bab78], 0x57d2ac
call dword [0x6bab74]
xor ecx, ecx
mov cl, ah
movzx esi, cl
cmp esi, 1
jne 0x57ce8e
xor edi, edi
xor esi, esi
push esi
push edi
push ebx
call fcn.0057d5a2
add esp, 0xc
cmp eax, 5
je 0x57cd3e
cmp eax, 4
jne 0x57cd49
push esi
push edi
push ebx
call fcn.0057d788
add esp, 0xc
inc esi
cmp esi, 8
jl 0x57cd29
inc edi
cmp edi, 0xc
jl 0x57cd27
inc ebx
cmp ebx, 0x10
jl 0x57cd25
cmp dword [0x6bab84], 1
jge 0x57ce83
push 4
pop esi
call fcn.0057cea6
mov eax, esi
jmp 0x57cea1
push 8
xor eax, eax
pop ecx
mov edi, esi
rep stosd dword es:[edi], eax
mov edi, 0x6418ec
lea eax, [ebp - 0x800]
push edi
push eax
mov dword [0x6bab84], ebx
call fcn.0057b278
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop ecx
pop ecx
lea eax, [ebp - 0x800]
push eax
call esi
cmp eax, ebx
mov dword [0x6bab70], eax
jne 0x57ce45
lea eax, [ebp - 0x800]
push 0x7ff
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ebx, 0x6713a0
lea eax, [ebp - 0x800]
push ebx
push eax
call fcn.0057b2b2
lea eax, [ebp - 0x800]
push edi
push eax
call fcn.0057b2b2
add esp, 0x10
lea eax, [ebp - 0x800]
push eax
call esi
test eax, eax
mov dword [0x6bab70], eax
jne 0x57ce45
lea eax, [ebp - 0x800]
push 0x7ff
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x800]
push ebx
push eax
call fcn.0057b2b2
lea eax, [ebp - 0x800]
push edi
push eax
call fcn.0057b2b2
add esp, 0x10
lea eax, [ebp - 0x800]
push eax
call esi
test eax, eax
mov dword [0x6bab70], eax
jne 0x57ce45
xor esi, esi
inc esi
jmp 0x57cd6b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetASPI32SupportInfo
push eax
call esi
push str.SendASPI32Command
mov dword [0x6bab74], eax
push dword [0x6bab70]
call esi
xor ebx, ebx
mov dword [0x6bab78], eax
cmp dword [0x6bab74], ebx
je 0x57ce7c
cmp eax, ebx
jne 0x57cd0f
push 5
jmp 0x57cd6a
mov byte [0x6bab6c], 1
xor eax, eax
jmp 0x57cea1
push esi
call fcn.0057d591
pop ecx
call fcn.0057cea6
mov eax, esi
shl eax, 8
or al, 3
pop edi
pop esi
pop ebx
leave
ret
Function at 0x57cf1d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
cmp byte [0x6bab7c], 0
mov dword [ebp - 4], edi
je 0x57cf38
xor al, al
jmp 0x57cfe3
push ebx
push esi
push 0x79c
mov esi, 0x618
push str.C:Dev_fmodsrc375winwin_src_fsound_cdda.c
push esi
push edi
call fcn.0057b622
add esp, 0x10
mov dword [0x6bab80], eax
mov dword [0x6bab48], edi
mov dword [0x6bab8c], edi
xor eax, eax
mov ecx, dword [0x6bab80]
add eax, 0x3c
or dword [eax + ecx - 0x28], 0xffffffff
cmp eax, esi
jl 0x57cf66
push 2
pop ebx
push 0x78
pop edi
mov al, bl
add al, 0x41
movsx eax, al
push eax
lea eax, [ebp - 8]
push str._c:_
push eax
call fcn.005d0398
add esp, 0xc
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x57cfc5
mov eax, dword [0x6bab80]
add eax, edi
push eax
push ebx
call fcn.0057d160
mov eax, dword [0x6bab80]
pop ecx
pop ecx
cmp byte [edi + eax + 0x10], 0
je 0x57cfc5
inc dword [ebp - 4]
add edi, 0x3c
inc ebx
cmp edi, esi
jl 0x57cf7e
call fcn.0057d0f6
mov dword [0x6bab48], eax
mov al, byte [ebp - 4]
pop esi
mov byte [0x6bab7c], 1
pop ebx
pop edi
leave
ret
Function at 0x58b80f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
xor ebx, ebx
cmp dword [0x6bc7f8], ebx
push esi
push edi
jne 0x58b947
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.dsound.dll
call edi
mov dword [0x6bc7f8], eax
mov eax, dword [0x687d48]
test byte [eax + 9], 0x30
je 0x58b852
push str.dsound3d.dll
call edi
mov dword [0x6bc7fc], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DirectSoundCreate8
push dword [0x6bc7f8]
call esi
cmp eax, ebx
mov dword [0x6bc81c], eax
jne 0x58b880
push str.DirectSoundCreate
push dword [0x6bc7f8]
call esi
mov dword [0x6bc814], eax
push str.DirectSoundEnumerateA
push dword [0x6bc7f8]
call esi
cmp dword [0x6bc81c], ebx
mov dword [0x6bc818], eax
setne al
push eax
push dword [0x6bc7f8]
call fcn.00598d81
cmp dword [0x6bc81c], ebx
pop ecx
pop ecx
je 0x58b91d
lea eax, [ebp - 0x400]
push 0x104
push eax
mov dword [0x68cb0c], 8
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x58b947
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x200]
push eax
call fcn.0057b278
lea eax, [ebp - 0x200]
push str.d3d9.dll
push eax
call fcn.0057b2b2
push ebx
lea eax, [ebp - 0x200]
push ebx
push eax
call fcn.0057bd36
add esp, 0x1c
cmp eax, ebx
je 0x58b947
push eax
call fcn.0057bedc
pop ecx
mov dword [0x68cb0c], 9
jmp 0x58b947
push str.ddraw.dll
call edi
mov edi, eax
cmp edi, ebx
je 0x58b947
push str.DirectDrawCreateEx
push edi
call esi
test eax, eax
je 0x58b940
mov dword [0x68cb0c], 7
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebx
leave
ret