joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51a4f8
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.0052fc74
add esp, 0x14
test eax, eax
je 0x51a534
push 3
pop ecx
jmp 0x51a537
mov ecx, dword [ebp + 0x10]
movzx eax, cx
cmp eax, ebx
jl 0x51a63d
xor edx, edx
inc edx
cmp eax, edx
jle 0x51a646
cmp eax, 3
jne 0x51a63d
cmp dword [ebp - 4], ebx
je 0x51a634
mov esi, dword [ebp - 0xc]
cmp esi, ebx
je 0x51a634
mov edi, dword [ebp - 8]
cmp edi, ebx
je 0x51a634
mov cl, byte [ebp + 0x14]
mov dword [ebp + 8], ebx
mov ebx, edx
shl ebx, cl
mov ecx, ebx
test ecx, ecx
jle 0x51a5b6
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 0x51a5af
cmp word [eax], 0x100
jae 0x51a5af
cmp word [edi + eax], 0x100
jae 0x51a5af
test ecx, ecx
jg 0x51a58f
jmp 0x51a5b6
mov dword [ebp + 8], 1
test ebx, ebx
jle 0x51a6c4
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 0x51a615
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 0x51a625
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 0x51a5d4
jmp 0x51a6c4
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 0x51a686
cmp cx, dx
jne 0x51a66d
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 0x51a6c4
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 0x51a6c4
cmp cx, dx
jne 0x51a6a6
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 0x51a690
jmp 0x51a6c4
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 0x51a6ab
mov al, 1
jmp 0x51a63f
Function at 0x51ff0d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
cmp dword [ebp + 8], edx
jne 0x51ff1e
xor eax, eax
jmp 0x52000b
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 0x51ff48
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 8
jne 0x51ff51
mov dword [ebp + 8], edx
mov ecx, dword [ebp + 0x18]
and ecx, 7
inc ecx
cmp ecx, eax
mov dword [ebp + 0xc], ecx
jb 0x51ff62
mov dword [ebp + 0xc], eax
mov ecx, ebx
xor ecx, dword [ebp + 0x18]
test ecx, 0xfffffff8
jne 0x51ff72
mov dword [ebp + 0xc], edx
mov ecx, dword [ebp + 8]
add ecx, ebx
cmp ebx, ecx
mov dword [ebp + 0x10], ecx
jae 0x51ffa6
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 + 0x6a2278]
je 0x51ff9c
or byte [ecx], dl
jmp 0x51ffa0
not dl
and byte [ecx], dl
inc ebx
cmp ebx, dword [ebp + 0x10]
jb 0x51ff7e
xor edi, edi
cmp eax, 8
jbe 0x51ffd8
sub eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
shr eax, 3
mov edi, eax
je 0x51ffd8
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.005d2a00
add esp, 0xc
lea edx, [ebx + edi*8]
jmp 0x520000
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 + 0x6a2278]
je 0x51fffb
or byte [eax], cl
jmp 0x51ffff
not cl
and byte [eax], cl
inc edx
cmp edx, dword [ebp + 0x18]
jb 0x51ffdd
xor eax, eax
pop edi
pop esi
inc eax
pop ebx
pop ebp
ret 0x18
Function at 0x52d59e
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, pe_nt_image_headers32
cmp dword [esp + 0x10], esi
mov eax, dword [edi]
jae 0x52d5c2
push eax
call fcn.0053e5c6
push 2
call fcn.0053e556
pop ecx
mov dword [edi], eax
pop ecx
push esi
push 0
push eax
call fcn.005d2a00
add esp, 0xc
pop edi
pop esi
ret

Function at 0x53c084
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x53c0b1
push esi
call fcn.0053a01d
cmp byte [esi + 0x40], 0
pop ecx
je 0x53c0aa
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 0x53c120
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x53c115
mov eax, dword [esi + 8]
test eax, eax
je 0x53c0d2
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x190]
push esi
call dword [eax]
test eax, eax
pop ecx
je 0x53c111
cmp eax, 2
je 0x53c115
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x53c0c7
cmp eax, 3
je 0x53c0f6
cmp eax, 1
jne 0x53c0c7
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x53c0c7
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x53c0c7
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
jmp 0x53c13e
cmp eax, 0xcc
je 0x53c13e
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.0053c147
pop ecx
pop esi
ret

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

Disassembly:
cmp dword [esp + 8], 0
jne 0x5427be
xor eax, eax
ret
jmp fcn.005427c3
Function at 0x54cd35
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 0x54cdbd
mov eax, dword [esi + 0x38]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.005d26c0
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 0x54cd80
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 0x54cda2
add ebx, edi
mov eax, dword [esi]
cmp dword [eax + 4], 0
je 0x54ce18
mov ecx, dword [esi + 0x74]
push ebx
add ecx, dword [esi + 0x6c]
add ecx, dword [esi + 0x38]
push ecx
push eax
call fcn.0054ce1d
add dword [esi + 0x74], eax
mov ebx, dword [esi + 0x74]
add esp, 0xc
cmp ebx, 3
jb 0x54ce04
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 0x54ce18
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x54cd41
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x56a810
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x56a830
mov edx, dword [esp + 8]
push 1
mov dword [ecx + 0x44], edx
mov eax, dword [eax + 0x58]
add eax, 4
push eax
call fcn.005d3988
mov ecx, dword [eax + 0x10]
push eax
call dword [ecx + 0x28]
add esp, 4
push 1
call fcn.005d23d6
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x56ab00
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 0x56ab26
push ebx
push esi
call fcn.0056ae10
add esp, 8
mov ebx, eax
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x24]
add eax, 0x18
cmp eax, ecx
jne 0x56ab3c
push esi
call fcn.0056ac80
add esp, 4
mov eax, dword [ebx + 8]
mov cl, byte [eax + 6]
test cl, cl
jne 0x56abf8
mov edi, dword [eax + 0xc]
mov al, byte [edi + 0x46]
test al, al
je 0x56ab67
xor ecx, ecx
add ebx, 0x10
mov cl, byte [edi + 0x45]
push ebx
push ecx
push esi
call fcn.0056acd0
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 0x56ab87
push eax
push esi
call fcn.0056aa00
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 0x56abeb
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 0x56abd1
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 0x56ac12
push 0x14
push esi
call fcn.0056aa00
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 0x56ac56
push 0xffffffffffffffff
push 0
push esi
call fcn.0056aa30
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 0x56b720
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.0056e590
mov edi, dword [esp + 0x14]
push esi
push edi
call fcn.0056a560
push esi
push edi
call fcn.0056a540
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.0x56b731
jmp dword [ecx*4 + 0x56b7a0]
mov dword [esp + 8], eax
jmp 0x56e640
mov dword [esp + 8], eax
jmp 0x56e6e0
mov edx, dword [esp + 4]
push 0
push 0x20
push eax
push edx
call fcn.0056f7c0
add esp, 0x10
ret
mov dword [esp + 8], eax
jmp 0x56eb80
mov dword [esp + 8], eax
jmp 0x56a510
mov edx, dword [eax + 0xc]
push 0
add edx, 0x11
push edx
push eax
mov eax, dword [esp + 0x10]
push eax
call fcn.0056f7c0
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.0056f7c0
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.0056f7c0
mov edx, dword [esi + 0x34]
mov eax, dword [esi + 0x10]
shl edx, 2
push 0
push edx
push eax
push edi
call fcn.0056f7c0
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 8]
shl ecx, 4
push 0
push ecx
push edx
push edi
call fcn.0056f7c0
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x14]
shl eax, 2
push 0
push eax
push ecx
push edi
call fcn.0056f7c0
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.0056f7c0
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x1c]
shl ecx, 2
push 0
push ecx
push edx
push edi
call fcn.0056f7c0
push 0
push 0x48
push esi
push edi
call fcn.0056f7c0
add esp, 0x30
pop edi
pop esi
ret
mov ecx, dword [esp + 8]
mov al, byte [ecx + 6]
test al, al
je 0x56e706
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.0056f7c0
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.0056f7c0
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 0x56ebae
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.0056f7c0
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.0056f7c0
push 0
push 0x20
push esi
push edi
call fcn.0056f7c0
add esp, 0x20
pop edi
pop esi
ret
Function at 0x56bcf0
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 0x56bd3d
mov al, byte [edi + 7]
xor ebp, ebp
test al, al
jbe 0x56bdaf
mov ebx, dword [esp + 0x14]
lea esi, [edi + 0x18]
cmp dword [esi - 8], 4
jl 0x56bd2b
mov eax, dword [esi]
test byte [eax + 5], 0x11
jne 0x56bd2b
push eax
push ebx
call fcn.0056b9a0
add esp, 8
xor eax, eax
inc ebp
mov al, byte [edi + 7]
add esi, 0x10
cmp ebp, eax
jl 0x56bd13
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [edi + 0x18]
test byte [eax + 5], 0x11
jne 0x56bd54
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.0056b9a0
add esp, 8
mov eax, dword [edi + 0xc]
test byte [eax + 5], 0x11
jne 0x56bd6b
mov edx, dword [esp + 0x14]
push eax
push edx
call fcn.0056b9a0
add esp, 8
mov al, byte [edi + 7]
xor ebx, ebx
test al, al
jbe 0x56bdaf
lea ebp, [edi + 0x20]
mov esi, dword [ebp]
mov al, byte [esi + 5]
test al, al
jne 0x56bda2
cmp dword [esi + 0x10], 4
jl 0x56bd9e
mov eax, dword [esi + 0x18]
test byte [eax + 5], 0x11
jne 0x56bd9e
push eax
mov eax, dword [esp + 0x18]
push eax
call fcn.0056b9a0
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 0x56bd77
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x56e340
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 0x56e376
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 0x56e35a
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 0x56e3a8
cmp dword [eax + 0xc], ebp
jne 0x56e3a2
mov esi, ebx
mov ecx, ebp
lea edi, [eax + 0x10]
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x56e3b8
mov ebx, dword [esp + 0x18]
mov eax, dword [eax]
test eax, eax
jne 0x56e38c
mov ecx, dword [esp + 0x14]
push edx
push ebp
push ebx
push ecx
call fcn.0056e3c0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x57c3a8
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 0x57c3e6
test eax, eax
je 0x57c3e2
cmp eax, 2
je 0x57c3de
cmp eax, 3
jne 0x57c3ef
push 0xf
jmp 0x57c3e8
push 2
jmp 0x57c3e8
push 1
jmp 0x57c3e8
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, edi
pop edi
pop ebp
ret

Function at 0x57d5bb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
xor eax, eax
push ebx
cmp byte [0x6bba4c], al
push esi
push edi
jne 0x57d7a1
push 8
mov esi, 0x6bba2c
xor ebx, ebx
pop ecx
cmp byte [ebp + 8], bl
mov edi, esi
rep stosd dword es:[edi], eax
mov dword [0x6bba64], ebx
jne 0x57d677
call fcn.0057d81d
test al, al
je 0x57d677
mov dword [0x6bba54], 0x57db96
mov dword [0x6bba58], 0x57dbac
call dword [0x6bba54]
xor ecx, ecx
mov cl, ah
movzx esi, cl
cmp esi, 1
jne 0x57d78e
xor edi, edi
xor esi, esi
push esi
push edi
push ebx
call fcn.0057dea2
add esp, 0xc
cmp eax, 5
je 0x57d63e
cmp eax, 4
jne 0x57d649
push esi
push edi
push ebx
call fcn.0057e088
add esp, 0xc
inc esi
cmp esi, 8
jl 0x57d629
inc edi
cmp edi, 0xc
jl 0x57d627
inc ebx
cmp ebx, 0x10
jl 0x57d625
cmp dword [0x6bba64], 1
jge 0x57d783
push 4
pop esi
call fcn.0057d7a6
mov eax, esi
jmp 0x57d7a1
push 8
xor eax, eax
pop ecx
mov edi, esi
rep stosd dword es:[edi], eax
mov edi, 0x6418d4
lea eax, [ebp - 0x800]
push edi
push eax
mov dword [0x6bba64], ebx
call fcn.0057bb78
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 [0x6bba50], eax
jne 0x57d745
lea eax, [ebp - 0x800]
push 0x7ff
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ebx, 0x6723a0
lea eax, [ebp - 0x800]
push ebx
push eax
call fcn.0057bbb2
lea eax, [ebp - 0x800]
push edi
push eax
call fcn.0057bbb2
add esp, 0x10
lea eax, [ebp - 0x800]
push eax
call esi
test eax, eax
mov dword [0x6bba50], eax
jne 0x57d745
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.0057bbb2
lea eax, [ebp - 0x800]
push edi
push eax
call fcn.0057bbb2
add esp, 0x10
lea eax, [ebp - 0x800]
push eax
call esi
test eax, eax
mov dword [0x6bba50], eax
jne 0x57d745
xor esi, esi
inc esi
jmp 0x57d66b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetASPI32SupportInfo
push eax
call esi
push str.SendASPI32Command
mov dword [0x6bba54], eax
push dword [0x6bba50]
call esi
xor ebx, ebx
mov dword [0x6bba58], eax
cmp dword [0x6bba54], ebx
je 0x57d77c
cmp eax, ebx
jne 0x57d60f
push 5
jmp 0x57d66a
mov byte [0x6bba4c], 1
xor eax, eax
jmp 0x57d7a1
push esi
call fcn.0057de91
pop ecx
call fcn.0057d7a6
mov eax, esi
shl eax, 8
or al, 3
pop edi
pop esi
pop ebx
leave
ret
Function at 0x57d81d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
cmp byte [0x6bba5c], 0
mov dword [ebp - 4], edi
je 0x57d838
xor al, al
jmp 0x57d8e3
push ebx
push esi
push 0x79c
mov esi, 0x618
push str.C:Dev_fmodsrc375winwin_src_fsound_cdda.c
push esi
push edi
call fcn.0057bf22
add esp, 0x10
mov dword [0x6bba60], eax
mov dword [0x6bba28], edi
mov dword [0x6bba6c], edi
xor eax, eax
mov ecx, dword [0x6bba60]
add eax, 0x3c
or dword [eax + ecx - 0x28], 0xffffffff
cmp eax, esi
jl 0x57d866
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.005d0c98
add esp, 0xc
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x57d8c5
mov eax, dword [0x6bba60]
add eax, edi
push eax
push ebx
call fcn.0057da60
mov eax, dword [0x6bba60]
pop ecx
pop ecx
cmp byte [edi + eax + 0x10], 0
je 0x57d8c5
inc dword [ebp - 4]
add edi, 0x3c
inc ebx
cmp edi, esi
jl 0x57d87e
call fcn.0057d9f6
mov dword [0x6bba28], eax
mov al, byte [ebp - 4]
pop esi
mov byte [0x6bba5c], 1
pop ebx
pop edi
leave
ret
Function at 0x58c10c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
xor ebx, ebx
cmp dword [0x6bd6d8], ebx
push esi
push edi
jne 0x58c244
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.dsound.dll
call edi
mov dword [0x6bd6d8], eax
mov eax, dword [0x688c20]
test byte [eax + 9], 0x30
je 0x58c14f
push str.dsound3d.dll
call edi
mov dword [0x6bd6dc], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DirectSoundCreate8
push dword [0x6bd6d8]
call esi
cmp eax, ebx
mov dword [0x6bd6fc], eax
jne 0x58c17d
push str.DirectSoundCreate
push dword [0x6bd6d8]
call esi
mov dword [0x6bd6f4], eax
push str.DirectSoundEnumerateA
push dword [0x6bd6d8]
call esi
cmp dword [0x6bd6fc], ebx
mov dword [0x6bd6f8], eax
setne al
push eax
push dword [0x6bd6d8]
call fcn.005996a1
cmp dword [0x6bd6fc], ebx
pop ecx
pop ecx
je 0x58c21a
lea eax, [ebp - 0x400]
push 0x104
push eax
mov dword [0x68d9e4], 8
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x58c244
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x200]
push eax
call fcn.0057bb78
lea eax, [ebp - 0x200]
push str.d3d9.dll
push eax
call fcn.0057bbb2
push ebx
lea eax, [ebp - 0x200]
push ebx
push eax
call fcn.0057c636
add esp, 0x1c
cmp eax, ebx
je 0x58c244
push eax
call fcn.0057c7dc
pop ecx
mov dword [0x68d9e4], 9
jmp 0x58c244
push str.ddraw.dll
call edi
mov edi, eax
cmp edi, ebx
je 0x58c244
push str.DirectDrawCreateEx
push edi
call esi
test eax, eax
je 0x58c23d
mov dword [0x68d9e4], 7
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebx
leave
ret