joyce8/EMBER2024-capa huggingface dataset:
Function at 0x518f75
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xefcdab89
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], 0x98badcfe
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], 0x10325476
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0xc3d2e1f0
pop ebp
ret

Function at 0x51a7da
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x9c], 0xffffffff
je 0x51a888
mov edx, dword [ebp + 0x10]
cmp dword [edx + 0x9c], 0x40
jbe 0x51a819
mov ecx, dword [ebp + 0x10]
add ecx, 0x40
push ecx
push dword [ebp + 0x10]
call fcn.00519055
add esp, 8
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x9c], 0x14
mov edx, 0x40
mov ecx, dword [ebp + 0x10]
sub edx, dword [ecx + 0x9c]
push edx
push 0
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x10]
add eax, dword [edx + 0x9c]
push eax
call fcn.00518c54
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
xor dword [edx + eax*4], 0x36363636
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x10
jb 0x51a844
mov ecx, dword [ebp + 0x10]
add ecx, 0x40
push ecx
call fcn.00518f75
pop ecx
mov eax, dword [ebp + 0x10]
add eax, 0x40
push eax
push 0x40
push dword [ebp + 0x10]
call fcn.00518fb9
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x9c], 0xffffffff
cmp dword [ebp + 0xc], 0
je 0x51a8a3
mov ecx, dword [ebp + 0x10]
add ecx, 0x40
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00518fb9
add esp, 0xc
pop ecx
pop ebp
ret

Function at 0x51a8a6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x9c], 0xffffffff
je 0x51a8c7
push dword [ebp + 0x10]
push 0
push 0
call fcn.0051a7da
add esp, 0xc
mov edx, dword [ebp + 0x10]
add edx, 0x40
push edx
lea ecx, [ebp - 0x18]
push ecx
call fcn.00519055
add esp, 8
xor eax, eax
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
xor dword [ecx + edx*4], 0x6a6a6a6a
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x10
jb 0x51a8df
mov eax, dword [ebp + 0x10]
add eax, 0x40
push eax
call fcn.00518f75
pop ecx
mov edx, dword [ebp + 0x10]
add edx, 0x40
push edx
push 0x40
push dword [ebp + 0x10]
call fcn.00518fb9
add esp, 0xc
mov ecx, dword [ebp + 0x10]
add ecx, 0x40
push ecx
push 0x14
lea eax, [ebp - 0x18]
push eax
call fcn.00518fb9
add esp, 0xc
mov edx, dword [ebp + 0x10]
add edx, 0x40
push edx
lea ecx, [ebp - 0x18]
push ecx
call fcn.00519055
add esp, 8
xor eax, eax
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0xc]
jae 0x51a966
mov ecx, dword [ebp - 4]
mov al, byte [ebp + ecx - 0x18]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov byte [edx + ecx], al
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jb 0x51a94b
mov esp, ebp
pop ebp
ret
Function at 0x51be0c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde8
lea eax, [ebp - 0xd8]
push eax
call fcn.0051a728
pop ecx
lea edx, [ebp - 0xd8]
push edx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0051a73f
add esp, 0xc
push 0xa0
lea ecx, [ebp - 0xd8]
push ecx
lea eax, [ebp - 0x178]
push eax
call fcn.00518c68
add esp, 0xc
lea edx, [ebp - 0x178]
push edx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0051a7da
add esp, 0xc
mov eax, dword [ebp + 0x20]
dec eax
mov ecx, 0x14
xor edx, edx
div ecx
inc eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x51bfa0
push 0x14
push 0
lea ecx, [ebp - 0x38]
push ecx
call fcn.00518c54
add esp, 0xc
push 0xa0
lea eax, [ebp - 0x178]
push eax
lea edx, [ebp - 0x218]
push edx
call fcn.00518c68
add esp, 0xc
mov ecx, dword [ebp - 4]
inc ecx
shr ecx, 0x18
mov byte [ebp - 0x24], cl
mov eax, dword [ebp - 4]
inc eax
shr eax, 0x10
mov byte [ebp - 0x23], al
mov edx, dword [ebp - 4]
inc edx
shr edx, 8
mov byte [ebp - 0x22], dl
mov cl, byte [ebp - 4]
inc ecx
mov byte [ebp - 0x21], cl
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 4
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x18]
jae 0x51bf5a
lea ecx, [ebp - 0x218]
push ecx
push dword [ebp - 0xc]
lea eax, [ebp - 0x24]
push eax
call fcn.0051a7da
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0x14
lea ecx, [ebp - 0x24]
push ecx
call fcn.0051a8a6
add esp, 0xc
xor eax, eax
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
mov cl, byte [ebp + edx - 0x24]
mov eax, dword [ebp - 0xc]
xor byte [ebp + eax - 0x38], cl
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x14
jb 0x51bf1d
push 0xa0
lea edx, [ebp - 0xd8]
push edx
lea ecx, [ebp - 0x218]
push ecx
call fcn.00518c68
add esp, 0xc
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x18]
jb 0x51beed
xor edx, edx
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 4]
shl ecx, 2
lea ecx, [ecx + ecx*4]
mov dword [ebp - 0xc], ecx
jmp 0x51bf83
mov eax, dword [ebp - 8]
mov dl, byte [ebp + eax - 0x38]
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0xc]
mov byte [ecx + eax], dl
inc dword [ebp - 8]
inc dword [ebp - 0xc]
cmp dword [ebp - 8], 0x14
jae 0x51bf91
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0x20]
jb 0x51bf6d
inc dword [ebp - 4]
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x51be89
mov esp, ebp
pop ebp
ret

Function at 0x51fd34
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406ae0
xor eax, eax
push ebp
push 0x51fd8d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.00406b84
mov esi, eax
push esi
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 2
je 0x51fd75
push esi
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 5
jne 0x51fd77
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51fd94
lea eax, [ebp - 4]
call fcn.00406ae8
ret
Function at 0x51fd9c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406ae0
xor eax, eax
push ebp
push 0x51fe00
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x1c
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 4]
call fcn.00406b84
push eax
call sub.kernel32.dll_GetVolumeInformationW
mov edx, ebx
lea eax, [ebp - 0x28]
call fcn.00414e14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51fe07
lea eax, [ebp - 4]
call fcn.00406ae8
ret

Function at 0x522450
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00406ae0
xor eax, eax
push ebp
push 0x52254c
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, word [esi + 4]
mov word [ebx + 4], ax
movzx eax, word [esi + 6]
mov word [ebx + 6], ax
movzx eax, word [esi + 8]
mov word [ebx + 8], ax
movzx eax, word [esi + 0xa]
mov word [ebx + 0x64], ax
mov eax, dword [esi + 0xc]
call fcn.0051fc20
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
movzx eax, word [esi + 0x1c]
mov word [ebx + 0x1c], ax
movzx eax, word [esi + 0x1e]
mov word [ebx + 0x1e], ax
movzx eax, word [esi + 0x20]
mov word [ebx + 0x22], ax
movzx eax, word [esi + 0x22]
mov word [ebx + 0x24], ax
movzx eax, word [esi + 0x24]
mov word [ebx + 0x26], ax
mov eax, dword [esi + 0x26]
mov dword [ebx + 0x28], eax
mov eax, dword [esi + 0x2a]
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0051ddac
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00523d40
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0051dd50
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00523dbc
lea eax, [ebx + 0x50]
call fcn.004060f4
mov byte [ebx + 0x54], 0
mov byte [ebx + 0x56], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x522553
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406af0
ret
Function at 0x52255c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00406ae0
xor eax, eax
push ebp
push 0x522668
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebx + 4], 0
movzx eax, word [esi + 4]
mov word [ebx + 6], ax
movzx eax, word [esi + 6]
mov word [ebx + 8], ax
movzx eax, word [esi + 8]
mov word [ebx + 0x64], ax
mov eax, dword [esi + 0xa]
call fcn.0051fc20
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0xe]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x12]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x16]
mov dword [ebx + 0x18], eax
movzx eax, word [esi + 0x1a]
mov word [ebx + 0x1c], ax
movzx eax, word [esi + 0x1c]
mov word [ebx + 0x20], ax
mov word [ebx + 0x22], 0
mov word [ebx + 0x24], 0
mov word [ebx + 0x26], 0
xor eax, eax
mov dword [ebx + 0x28], eax
xor eax, eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
cmp dword [ebp - 4], 0
je 0x52262b
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0051ddac
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00523d40
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0051dd50
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00523dbc
jmp 0x52263d
xor edx, edx
mov eax, ebx
call fcn.00523d40
xor edx, edx
mov eax, ebx
call fcn.00523dbc
lea eax, [ebx + 0x50]
call fcn.004060f4
mov byte [ebx + 0x54], 0
mov byte [ebx + 0x56], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52266f
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406af0
ret
Function at 0x528cf4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x528e6a
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x528e45
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x216], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x216]
push eax
lea eax, [ebp - 0x21c]
mov edx, esi
call fcn.00406c64
lea eax, [ebp - 0x21c]
mov edx, 0x528e84
call fcn.00406f0c
mov eax, dword [ebp - 0x21c]
call fcn.00406b84
push eax
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x528db4
lea eax, [ebp - 0x216]
call fcn.00414ac4
mov ecx, eax
lea edx, [ebp - 0x216]
mov eax, ebx
call fcn.00406c34
jmp 0x528dbd
mov eax, ebx
xor edx, edx
call fcn.00406af8
cmp si, 0x61
jae 0x528ddf
lea edx, [ebp - 0x220]
mov eax, dword [ebx]
call fcn.0041a400
mov edx, dword [ebp - 0x220]
mov eax, ebx
call fcn.00406af8
jmp 0x528df9
lea edx, [ebp - 0x224]
mov eax, dword [ebx]
call fcn.0041a3ec
mov edx, dword [ebp - 0x224]
mov eax, ebx
call fcn.00406af8
lea eax, [ebp - 0x228]
push eax
mov eax, dword [ebx]
mov dword [ebp - 0x230], eax
mov byte [ebp - 0x22c], 0x11
lea edx, [ebp - 0x230]
xor ecx, ecx
mov eax, 0x528e98
call fcn.00414f8c
mov edx, dword [ebp - 0x228]
mov eax, ebx
call fcn.00406af8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x528e4c
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x534e20
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov ecx, dword [edi + 0x178]
mov edx, ebx
mov eax, edi
call fcn.00535128
mov esi, eax
mov dword [edi + 0x178], esi
and esi, 0xff
add dword [edi + 0x17c], esi
imul esi, dword [edi + 0x17c], 0x8088405
inc esi
mov dword [edi + 0x17c], esi
mov edx, esi
shr edx, 0x18
mov ecx, dword [edi + 0x180]
mov eax, edi
call fcn.00535128
mov dword [edi + 0x180], eax
pop edi
pop esi
pop ebx
ret

Function at 0x534e94
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [esi + 0x118]
cmp byte [eax + 0x4c], 0
jne 0x534ec8
mov edi, ecx
dec edi
test edi, edi
jl 0x534ed9
inc edi
mov eax, esi
call fcn.00534e78
xor byte [ebx], al
movzx edx, byte [ebx]
mov eax, esi
call fcn.00534e20
inc ebx
dec edi
jne 0x534eaf
jmp 0x534ed9
lea eax, [esi + 0x3c4]
push eax
push ecx
push ebx
call fcn.005193e8
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x534fb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00406638
xor eax, eax
push ebp
push 0x535026
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.00534ee0
mov dword [ebp - 8], 0xc
lea esi, [ebp - 0x14]
mov eax, edi
call fcn.00534e78
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, edi
call fcn.00534e20
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x534ff0
movzx ebx, byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53502d
lea eax, [ebp - 4]
call fcn.004060f4
ret
Function at 0x535ff4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5361e5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 0xffffffff
jle 0x5361a1
mov eax, dword [ebp - 4]
call fcn.005383f0
cmp ebx, eax
jge 0x5361a1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x120]
mov edx, ebx
call fcn.0051d4ac
mov edx, dword [0x5204f8]
call fcn.00405094
mov esi, eax
mov eax, esi
call fcn.00523c2c
test al, al
je 0x536197
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [esi + 0x50]
test eax, eax
je 0x536076
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x53618a
xor eax, eax
push ebp
push 0x536183
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0053700c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
call fcn.00438aa8
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
push dword [esi + 0x34]
push dword [esi + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea edx, [ebp - 0x46]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
mov ecx, 0x2e
mov esi, dword [eax]
call dword [esi + 0xc]
movzx eax, word [ebp - 0x2a]
movzx edx, word [ebp - 0x28]
add eax, edx
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x18]
movzx esi, word [ebp - 0x26]
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, esi
call fcn.004066c8
mov eax, dword [ebp - 8]
call fcn.004066c0
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
mov ecx, esi
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x160]
movzx eax, byte [eax + 0x28]
mov byte [ebp - 9], al
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.005365e4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x160]
movzx edx, byte [ebp - 9]
mov byte [eax + 0x28], dl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5361cf
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x40]
test al, al
jne 0x536182
mov eax, dword [ebp - 4]
call fcn.00537090
ret
mov eax, dword [ebp - 8]
mov edx, dword [esi + 0x50]
call fcn.00406148
jmp 0x5361cf
mov eax, dword [ebp - 8]
call fcn.004060f4
jmp 0x5361cf
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0x50]
push eax
push 0
lea edx, [ebp - 0x54]
mov eax, 0xb3
call fcn.00413c58
mov ecx, dword [ebp - 0x54]
mov dl, 1
mov eax, dword [0x4298a4]
call fcn.00418740
call fcn.0040592c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5361ec
lea eax, [ebp - 0x54]
call fcn.00406ae8
ret
Function at 0x542a74
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
lea eax, [ebp - 0x30]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
dec ecx
js 0x542ac5
lea eax, [ebp - 0x30]
cmp word [eax + 0x20], 3
je 0x542aac
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x542a9c
jmp 0x542ac5
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x542aad
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x561254
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x5612cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x41
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00406c64
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, 0x5612e8
call fcn.00406fcc
mov eax, dword [ebp - 4]
call fcn.00406b84
push eax
call sub.kernel32.dll_GetDriveTypeW
add eax, 0xfffffffe
sub eax, 2
jae 0x5612ac
mov edx, dword [ebp - 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc ebx
cmp ebx, 0x5b
jne 0x561272
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5612d4
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406af0
ret

Function at 0x5616c8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x5617c8
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
mov eax, 0x1a
call fcn.0055fd10
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.0041a26c
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
mov ecx, 0x5617e0
call fcn.00406fcc
push dword [ebp - 8]
lea ecx, [ebp - 0x14]
mov eax, dword [ebx + 0x4f8]
mov edx, 0x561840
call fcn.004de660
push dword [ebp - 0x14]
push 0x561864
lea eax, [ebp - 4]
mov edx, 3
call fcn.004070b0
mov eax, dword [ebp - 8]
call fcn.0052d4f0
test al, al
jne 0x56174b
mov eax, dword [ebp - 8]
call fcn.0052d4f8
xor eax, eax
push ebp
push 0x5617a6
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x18]
mov eax, dword [ebx + 0x500]
call fcn.004144ac
mov eax, dword [ebp - 0x18]
push eax
push 0
mov eax, dword [ebx + 0x500]
mov ecx, dword [ebp - 4]
xor edx, edx
call fcn.0055fb8c
push 5
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00406b84
push eax
push 0x561870
push 0
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5617ad
ret
Function at 0x56224c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00406ae0
xor eax, eax
push ebp
push 0x562389
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x57a0d8]
mov eax, dword [eax]
mov ecx, 0x5623a4
mov edx, 0x5623b8
call fcn.004df344
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x40]
dec eax
test eax, eax
jl 0x562366
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.004dc668
mov esi, eax
lea ecx, [ebp - 8]
mov edx, 0x5623d4
mov eax, esi
call fcn.004de660
mov eax, dword [ebp - 8]
test eax, eax
je 0x5622e4
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x5622e4
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.004062e0
mov ebx, eax
test ebx, ebx
je 0x5622ef
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 8]
push eax
mov ecx, ebx
sub ecx, 4
mov edx, 5
mov eax, dword [ebp - 8]
call fcn.004072d8
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00406fcc
lea ecx, [ebp - 0xc]
mov edx, 0x5623f4
mov eax, esi
call fcn.004de660
push 5
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004144ac
mov eax, dword [ebp - 0x1c]
call fcn.00406b84
push eax
mov eax, dword [ebp - 0xc]
call fcn.00406b84
push eax
mov eax, dword [ebp - 8]
call fcn.00406b84
push eax
push 0x562408
call sub.user32.dll_GetDesktopWindow
push eax
call sub.shell32.dll_ShellExecuteW
inc dword [ebp - 0x14]
dec dword [ebp - 0x18]
jne 0x5622ab
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x562390
lea eax, [ebp - 0x1c]
call fcn.00406ae8
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406af0
ret

Function at 0x5637bc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x563853
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00413650
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, 0x56386c
call fcn.00406fcc
mov eax, dword [ebp - 4]
call fcn.00481658
mov eax, dword [ebp + 8]
mov ebx, dword [eax - 4]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
call fcn.00406b84
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
call fcn.004c5da8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56385a
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406af0
ret